/* ==========================================================================
   Trusted Tradie Network — UI enhancements
   Progressive polish layer. Load after brand.css.
   Does not replace layout, tokens, or component structure.
   ========================================================================== */

/* ── Foundations ─────────────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* Account password dialog: isolated from header and page layouts. */
.account-password-modal:not([hidden]) {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.account-password-modal__panel {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.account-password-modal__panel [data-account-password-close] {
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
}

.account-password-modal__panel input {
    min-height: 44px;
    font-size: 16px;
}

.account-password-modal__panel .site-password-wrap .site-password-input {
    min-height: 2.5rem;
    height: 2.5rem;
}

.account-password-modal__panel .site-password-toggle {
    top: 50%;
    transform: translateY(-50%);
}

.account-password-client-error {
    color: #dc2626;
}

.account-password-modal__actions > button {
    min-height: 44px;
}

@media (max-width: 540px) {
    .account-password-modal:not([hidden]) { padding: 16px; }
    .account-password-modal__panel {
        padding: 20px 16px;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        border-radius: 14px;
    }
    .account-password-modal__actions {
        flex-direction: column-reverse;
    }
    .account-password-modal__actions > button { width: 100%; }
}

/* Resources, pricing and post-a-job — shared premium public-page language */
.ttn-resource-page,
.ttn-pricing-page,
.ttn-post-job-page {
    --ttn-ink: #132844;
    --ttn-ink-soft: #213a5b;
    --ttn-orange: #f5822d;
    --ttn-orange-dark: #d96616;
    --ttn-canvas: #f5f7fa;
    --ttn-line: #dfe5ec;
    --ttn-muted: #68778b;
    background: var(--ttn-canvas);
}

.ttn-resource-page > .min-h-screen,
.ttn-pricing-page > .min-h-screen,
.ttn-post-job-page > .min-h-screen {
    background: var(--ttn-canvas) !important;
}

.ttn-resource-page > .min-h-screen > section:first-child .bg-orange-100 {
    color: #cf6d18 !important;
    border: 1px solid rgba(245, 130, 45, 0.35);
    background: rgba(245, 130, 45, 0.14) !important;
}

.ttn-resource-page input,
.ttn-resource-page select,
.ttn-resource-page textarea,
.ttn-pricing-page input,
.ttn-pricing-page select,
.ttn-post-job-page input,
.ttn-post-job-page select,
.ttn-post-job-page textarea {
    min-height: 3rem;
    border-color: #d7dee8 !important;
    border-radius: 0.8rem !important;
    color: var(--ttn-ink);
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15, 35, 59, 0.03);
}

.ttn-resource-page input:focus,
.ttn-resource-page select:focus,
.ttn-resource-page textarea:focus,
.ttn-pricing-page input:focus,
.ttn-pricing-page select:focus,
.ttn-post-job-page input:focus,
.ttn-post-job-page select:focus,
.ttn-post-job-page textarea:focus {
    border-color: var(--ttn-orange) !important;
    box-shadow: 0 0 0 3px rgba(245, 130, 45, 0.13) !important;
    outline: none;
}

/* Resources hub */
.ttn-resource-page--hub > .min-h-screen > section:nth-child(2) {
    position: relative;
    z-index: 2;
    max-width: 72rem;
    margin-top: -2.35rem;
}

.ttn-resource-page--hub > .min-h-screen > section:nth-child(2) > .grid > a {
    position: relative;
    min-height: 15rem;
    padding: 1.75rem !important;
    border: 1px solid var(--ttn-line) !important;
    border-radius: 1.15rem !important;
    box-shadow: 0 14px 35px rgba(15, 35, 59, 0.07);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.ttn-resource-page--hub
    > .min-h-screen
    > section:nth-child(2)
    > .grid
    > a:hover {
    transform: translateY(-4px);
    border-color: #f4c29f !important;
    box-shadow: 0 20px 45px rgba(15, 35, 59, 0.11);
}
.ttn-resource-page--hub .grid > a > div:first-child {
    color: var(--ttn-orange) !important;
    border: 1px solid #f4d4bd;
    background: #fff4eb !important;
}

.ttn-resource-page--hub .grid > a h2 {
    color: var(--ttn-ink) !important;
    font-size: 1.15rem;
}

.ttn-resource-page--hub .grid > a p {
    color: var(--ttn-muted) !important;
}

.ttn-resource-page--hub .grid > a span {
    color: var(--ttn-orange-dark) !important;
}

.ttn-resource-page--hub
    > .min-h-screen
    > section:nth-child(2)
    > div:last-child {
    overflow: hidden;
    border: 1px solid rgba(245, 130, 45, 0.34);
    border-radius: 1.15rem !important;
    background: linear-gradient(135deg, #152c49, #203f62) !important;
    box-shadow: 0 18px 44px rgba(15, 35, 59, 0.13);
}

/* Guides and cost-guide directories */
.ttn-resource-page--guides > .min-h-screen > section:nth-child(2),
.ttn-resource-page--cost-guides [data-tabs] > section:last-child {
    position: relative;
    z-index: 2;
    margin-top: -2rem;
}

.ttn-resource-page--guides > .min-h-screen > section:nth-child(2) > .grid > a,
.ttn-resource-page--cost-guides [data-tab-panel] > .grid > div {
    overflow: hidden;
    border-color: var(--ttn-line) !important;
    border-radius: 1rem !important;
    box-shadow: 0 8px 24px rgba(15, 35, 59, 0.055);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.ttn-resource-page--guides
    > .min-h-screen
    > section:nth-child(2)
    > .grid
    > a:hover,
.ttn-resource-page--cost-guides [data-tab-panel] > .grid > div:hover {
    transform: translateY(-3px);
    border-color: #f3bd97 !important;
    box-shadow: 0 15px 34px rgba(15, 35, 59, 0.1);
}

.ttn-resource-page--guides .grid > a > div > div:first-child,
.ttn-resource-page--cost-guides [data-tab-panel] > .grid > div .bg-orange-100 {
    color: var(--ttn-orange-dark) !important;
    background: #fff3e9 !important;
}

.ttn-resource-page--guides h3,
.ttn-resource-page--cost-guides h3 {
    color: var(--ttn-ink) !important;
}

.ttn-resource-page--cost-guides [data-tabs] > section:first-child {
    position: relative;
    z-index: 3;
    margin-top: -1.5rem;
}

.ttn-resource-page--cost-guides [data-tabs] > section:first-child > div {
    padding: 0.7rem;
    border: 1px solid var(--ttn-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 35, 59, 0.08);
}

.ttn-resource-page [data-tab-trigger][data-state="active"] {
    color: #fff !important;
    border-color: var(--ttn-ink) !important;
    background: var(--ttn-ink) !important;
}

.ttn-resource-page [data-tab-trigger][data-state="inactive"] {
    color: #526176 !important;
    background: #f0f3f7 !important;
}

.ttn-resource-page--cost-guides .bg-green-50,
.ttn-resource-page--cost-guides .bg-green-100 {
    background: #eef4fa !important;
}

.ttn-resource-page--cost-guides .text-green-600,
.ttn-resource-page--cost-guides .text-green-700,
.ttn-resource-page--cost-guides .text-green-800 {
    color: #315a83 !important;
}

.ttn-resource-page--cost-guides .border-green-200 {
    border-color: #cddbe9 !important;
}

/* Calculator workspace */
.ttn-resource-page--calculators > .min-h-screen > section:nth-child(2) {
    position: relative;
    z-index: 3;
    margin-top: -2.1rem;
}

.ttn-resource-page--calculators > .min-h-screen > section:nth-child(2) > div {
    padding: 1rem 1.1rem;
    border: 1px solid var(--ttn-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 35, 59, 0.08);
}

.ttn-resource-page--calculators [data-tabs] > section {
    max-width: 56rem;
}

.ttn-resource-page--calculators [data-tabs] > section:nth-child(1) > div,
.ttn-resource-page--calculators [data-tab-panel] > div {
    border-color: var(--ttn-line) !important;
    border-radius: 1rem !important;
    background: #fff !important;
    box-shadow: 0 12px 32px rgba(15, 35, 59, 0.07);
}

.ttn-resource-page--calculators [data-tabs] > section:nth-child(2) > div {
    padding: 0.65rem;
    border: 1px solid var(--ttn-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 35, 59, 0.05);
}

.ttn-resource-page--calculators [data-calc] button[data-state="active"] {
    color: #fff !important;
    border-color: var(--ttn-ink) !important;
    background: var(--ttn-ink) !important;
}

.ttn-resource-page--calculators [data-calc-avg] {
    color: var(--ttn-orange-dark) !important;
}

/* Pricing calculator redesign */
.ttn-resource-page--calculators {
    background: #f5f7fa;
    color: #14243a;
}
.calc-shell {
    width: min(1140px, calc(100% - 32px));
    margin-inline: auto;
}
.calc-hero {
    position: relative;
    overflow: hidden;
    padding: 60px 0 64px;
    color: #14243a;
    border-bottom: 1px solid #eee7df;
    background: linear-gradient(180deg, #fff8f1 0%, #fffdfa 58%, #f8f9fb 100%);
}
.calc-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.calc-hero__content h1 {
    max-width: 760px;
    margin: 14px auto 10px;
    color: #10233d;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.04em;
}
.calc-hero__content > p {
    max-width: 700px;
    margin: 0 auto;
    color: #5f6f82;
    font-size: 0.92rem;
    line-height: 1.65;
}
.calc-eyebrow {
    display: inline-flex;
    min-height: 2.15rem;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    color: #d96616;
    border: 1px solid #f3c9aa;
    border-radius: 999px;
    background: #fff0e4;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.calc-eyebrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}
.calc-hero__trust {
    display: none;
}
.calc-hero__trust span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.calc-hero__trust span::before {
    content: "✓";
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #f5822d;
    font-size: 0.67rem;
    font-weight: 900;
}
.calc-hero__trust strong {
    color: #fff;
}
.calc-hero__glow {
    display: none;
}
.calc-hero__glow--one {
    width: 370px;
    height: 370px;
    top: -210px;
    left: -90px;
    background: rgba(245, 130, 45, 0.12);
}
.calc-hero__glow--two {
    width: 420px;
    height: 420px;
    right: -190px;
    bottom: -280px;
    border: 80px solid rgba(255, 255, 255, 0.035);
}

.ttn-resource-page--calculators .calc-workspace {
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding-top: 32px;
    padding-bottom: 72px;
}
.calc-progress {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 16px 26px;
    border: 1px solid #dde5ec;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 34px rgba(15, 35, 59, 0.1);
}
.calc-progress__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 148px;
    color: #8290a1;
}
.calc-progress__item > span {
    display: grid;
    flex: 0 0 31px;
    height: 31px;
    place-items: center;
    border: 1px solid #d9e0e8;
    border-radius: 50%;
    background: #f5f7fa;
    font-size: 0.76rem;
    font-weight: 800;
}
.calc-progress__item strong,
.calc-progress__item small {
    display: block;
}
.calc-progress__item strong {
    color: #42536a;
    font-size: 0.78rem;
}
.calc-progress__item small {
    margin-top: 2px;
    font-size: 0.67rem;
}
.calc-progress__item.is-active > span {
    color: #fff;
    border-color: #f5822d;
    background: #f5822d;
    box-shadow: 0 5px 12px rgba(245, 130, 45, 0.28);
}
.calc-progress__item.is-active strong {
    color: #172b44;
}
.calc-progress__line {
    flex: 1;
    height: 1px;
    margin: 0 18px;
    background: #dce3ea;
}

.calc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.8fr);
    gap: 24px;
    align-items: start;
}
.calc-form-card,
.calc-result-card {
    border: 1px solid #dfe6ed;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(17, 39, 64, 0.07);
}
.calc-form-card {
    padding: 30px 34px 34px;
}
.calc-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8edf2;
}
.calc-card-heading__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #e96f17;
    border-radius: 12px;
    background: #fff0e5;
}
.calc-card-heading__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.calc-card-heading div > span {
    color: #f5822d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.calc-card-heading h2 {
    margin: 0;
    color: #142a44;
    font-size: 1.35rem;
    font-weight: bold;
}
.calc-checklist {
    display: grid;
    grid-template-columns: 1fr minmax(210px, 0.85fr);
    gap: 16px;
    align-items: center;
    margin-top: 22px;
    padding: 15px 17px;
    border: 1px solid #f5d6bf;
    border-radius: 13px;
    background: #fff8f3;
}
.calc-checklist__copy {
    display: flex;
    align-items: center;
    gap: 10px;
}
.calc-checklist__copy > svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #e96f17;
    stroke-width: 1.9;
}
.calc-checklist__copy strong,
.calc-checklist__copy span {
    display: block;
}
.calc-checklist__copy strong {
    color: #27384c;
    font-size: 0.78rem;
}
.calc-checklist__copy span {
    color: #7a8796;
    font-size: 0.7rem;
}
.calc-section {
    padding-top: 26px;
}
.calc-section + .calc-section {
    margin-top: 25px;
    border-top: 1px solid #e8edf2;
}
.calc-section__title {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 13px;
}
.calc-section__title > span:first-child {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    color: #e96f17;
    border-radius: 7px;
    background: #fff0e5;
    font-size: 0.7rem;
    font-weight: 900;
}
.calc-section__title label,
.calc-section__title .calc-label {
    display: block;
    color: #24364b;
    font-size: 0.88rem;
    font-weight: 800;
}
.calc-section__title small {
    display: block;
    margin-top: 2px;
    color: #7d8a99;
    font-size: 0.72rem;
    line-height: 1.4;
}
.calc-control {
    width: 100%;
    min-height: 47px;
    padding: 0 42px 0 14px;
    color: #26384c;
    border: 1px solid #ced8e2;
    border-radius: 10px;
    outline: none;
    background: #fff;
    font: inherit;
    font-size: 0.84rem;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.calc-control:hover {
    border-color: #9cabb9;
}
.calc-control:focus {
    border-color: #f5822d;
    box-shadow: 0 0 0 3px rgba(245, 130, 45, 0.13);
}
.calc-control--icon {
    padding-left: 48px;
}
.calc-control--compact {
    min-height: 40px;
    font-size: 0.76rem;
}
.calc-select-wrap,
.calc-input-wrap {
    position: relative;
}
.calc-select-wrap > svg,
.calc-input-wrap > svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 16px;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: #f5822d;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.calc-pattern,
.calc-location-hint {
    margin: 8px 0 0 0px;
    color: #6f7d8c;
    font-size: 0.7rem;
}
.calc-postcode-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.calc-postcode-row .calc-input-wrap {
    width: min(230px, 100%);
}
.calc-privacy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7b8998;
    font-size: 0.68rem;
}
.calc-privacy svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #4d8b71;
    stroke-width: 1.8;
}
.calc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.calc-field {
    padding: 14px;
    border: 1px solid #e1e7ed;
    border-radius: 12px;
    background: #f9fafc;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.calc-field:focus-within {
    border-color: #f3b384;
    background: #fffaf6;
}
.calc-field > label {
    display: block;
    margin-bottom: 8px;
    color: #34475d;
    font-size: 0.75rem;
    font-weight: 750;
}
.calc-field .calc-control {
    min-height: 42px;
    background: #fff;
}
.calc-field-hint {
    margin: 6px 2px 0;
    color: #8592a1;
    font-size: 0.66rem;
}

.calc-result-card {
    position: sticky;
    top: 94px;
    overflow: hidden;
    padding: 27px;
    color: #fff;
    border: 0;
    background: linear-gradient(150deg, #10263f 0%, #173a5d 100%);
    box-shadow: 0 20px 45px rgba(15, 35, 59, 0.19);
}
.calc-result-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -90px;
    right: -80px;
    border: 35px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
}
.calc-result-card__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.calc-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cbd8e5;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.calc-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #68d391;
    box-shadow: 0 0 0 4px rgba(104, 211, 145, 0.12);
}
.calc-result-card__icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #f69a58;
    stroke-width: 1.7;
}
.calc-result {
    padding: 32px 0 5px;
}
.calc-result > p:first-child {
    margin: 0 0 7px;
    color: #b8c7d7;
    font-size: 0.78rem;
}
.calc-result > strong {
    display: block;
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.calc-result__caption {
    display: block;
    margin-top: 8px;
    color: #91a6ba;
    font-size: 0.69rem;
}
.calc-unit {
    margin: 20px 0 0;
    padding: 11px 12px;
    color: #d8e2ec;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.68rem;
    line-height: 1.5;
}
.calc-explanation {
    margin: 15px 0 0;
    padding-left: 0;
    color: #c0cede;
    font-size: 0.8rem;
    line-height: 24px;
}
.calc-validation {
    margin-top: 12px;
    color: #ffd4a8;
    font-size: 0.68rem;
}
.calc-quote-only {
    padding: 30px 0 8px;
}
.calc-quote-only__icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    place-items: center;
    color: #fff;
    border-radius: 12px;
    background: #f5822d;
    font-size: 1.1rem;
    font-weight: 900;
}
.calc-quote-only strong {
    display: block;
    font-size: 1.35rem;
}
.calc-quote-only p {
    color: #b9c8d7;
    font-size: 0.76rem;
    line-height: 1.6;
}
.calc-result-divider {
    height: 1px;
    margin: 24px 0 17px;
    background: rgba(255, 255, 255, 0.11);
}
.calc-result-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #9fb0c1;
}
.calc-result-note svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #f69a58;
    stroke-width: 1.8;
}
.calc-result-note p {
    margin: 0;
    font-size: 0.65rem;
    line-height: 1.55;
}
.calc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    margin-top: 20px;
    color: #fff !important;
    border-radius: 10px;
    background: linear-gradient(135deg, #f5822d, #e96c15);
    box-shadow: 0 9px 22px rgba(229, 101, 15, 0.25);
    font-size: 0.8rem;
    font-weight: 800;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.calc-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(229, 101, 15, 0.32);
}
.calc-cta svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.calc-cta-note {
    display: block;
    margin-top: 11px;
    color: #8fa3b6;
    text-align: center;
    font-size: 0.61rem;
}
.calc-bottom-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin-top: 25px;
    padding: 20px 24px;
    border: 1px solid #dee5ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 39, 64, 0.05);
}
.calc-bottom-banner__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #e96f17;
    border-radius: 12px;
    background: #fff0e5;
}
.calc-bottom-banner__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}
.calc-bottom-banner strong {
    color: #24384f;
    font-size: 0.82rem;
}
.calc-bottom-banner p {
    margin: 2px 0 0;
    color: #7c8998;
    font-size: 0.71rem;
}
.calc-bottom-banner > a {
    color: #e96f17;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .calc-layout {
        grid-template-columns: 1fr;
    }
    .calc-result-card {
        position: relative;
        top: auto;
    }
    .calc-progress__item div {
        display: none;
    }
    .calc-progress__item {
        min-width: auto;
    }
    .calc-progress {
        max-width: 340px;
    }
}
@media (max-width: 600px) {
    .calc-shell {
        width: min(100% - 22px, 1140px);
    }
    .calc-hero {
        padding: 48px 0 52px;
    }
    .calc-hero__content h1 {
        font-size: 2rem;
    }
    .calc-hero__content > p {
        font-size: 0.9rem;
    }
    .calc-hero__trust {
        gap: 9px 14px;
    }
    .calc-progress {
        padding: 13px 18px;
    }
    .calc-progress__line {
        margin: 0 10px;
    }
    .calc-form-card {
        padding: 22px 18px 26px;
        border-radius: 16px;
    }
    .calc-checklist {
        grid-template-columns: 1fr;
    }
    .calc-fields {
        grid-template-columns: 1fr;
    }
    .calc-postcode-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }
    .calc-postcode-row .calc-input-wrap {
        width: 100%;
    }
    .calc-result-card {
        padding: 23px 20px;
        border-radius: 16px;
    }
    .calc-bottom-banner {
        grid-template-columns: auto 1fr;
        padding: 17px;
    }
    .calc-bottom-banner > a {
        grid-column: 1 / -1;
        padding-top: 11px;
        border-top: 1px solid #edf0f3;
        text-align: center;
    }
}

/* Editorial article */
.ttn-resource-page--article > .min-h-screen > section:first-child > div {
    max-width: 52rem;
}

.ttn-resource-page--article article {
    position: relative;
    z-index: 2;
    max-width: 52rem;
    margin-top: -2rem;
    margin-bottom: 4rem;
    padding: 2.5rem 3rem 3rem !important;
    border: 1px solid var(--ttn-line);
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 35, 59, 0.08);
}

.ttn-resource-page--article article h2 {
    color: var(--ttn-ink) !important;
    letter-spacing: -0.02em;
}

.ttn-resource-page--article article > div:not(:last-child) {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8edf2;
}

.ttn-resource-page--article article > div:last-child {
    border: 1px solid rgba(245, 130, 45, 0.32);
    background: linear-gradient(135deg, #152c49, #203f62) !important;
    box-shadow: 0 14px 30px rgba(15, 35, 59, 0.13);
}

.ttn-resource-page--article article > div:last-child h2 {
    color: #fff !important;
}

/* Pricing */
.ttn-pricing-page > .min-h-screen > section:not(:first-child) {
    position: relative;
}

.ttn-pricing-page > .min-h-screen > section:nth-child(2) {
    z-index: 3;
    margin-top: -2.5rem;
}

.ttn-pricing-page section > .grid > .relative.bg-white,
.ttn-pricing-page #business-portal .relative.bg-white {
    border-width: 1px !important;
    border-color: var(--ttn-line) !important;
    border-radius: 1.15rem !important;
    box-shadow: 0 12px 34px rgba(15, 35, 59, 0.075) !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ttn-pricing-page section > .grid > .relative.bg-white:hover,
.ttn-pricing-page #business-portal .relative.bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 35, 59, 0.11) !important;
}

.ttn-pricing-page section > .grid > .relative.bg-white.border-orange-500 {
    border-top: 4px solid var(--ttn-orange) !important;
}

.ttn-pricing-page .text-green-500,
.ttn-pricing-page .text-green-600,
.ttn-pricing-page .text-green-700 {
    color: #315a83 !important;
}

.ttn-pricing-page .bg-green-50,
.ttn-pricing-page .bg-green-100 {
    background: #eef4fa !important;
}

.ttn-pricing-page .border-green-200,
.ttn-pricing-page .border-green-300 {
    border-color: #b9cde0 !important;
}

.ttn-pricing-page details,
.ttn-pricing-page #tier-selector > div,
.ttn-pricing-page section > .bg-white {
    border-color: var(--ttn-line) !important;
}

.ttn-pricing-page button,
.ttn-pricing-page a.bg-orange-500 {
    border-radius: 0.75rem !important;
}

/* Post a job */
.ttn-post-job-page > .min-h-screen {
    padding-top: 0 !important;
}

.ttn-post-job-page > .min-h-screen > section:first-child {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.ttn-post-job-page > .min-h-screen > div {
    position: relative;
    z-index: 2;
    max-width: 58rem;
    margin-top: -2.35rem;
    padding-bottom: 4rem;
}

.ttn-post-job-page > .min-h-screen > div > a {
    margin: 0 0 0.85rem 0.25rem !important;
    color: #526176 !important;
}

.ttn-post-job-page > .min-h-screen > div > .bg-white {
    padding: 2.2rem 2.4rem !important;
    border: 1px solid var(--ttn-line) !important;
    border-top: 4px solid var(--ttn-orange) !important;
    border-radius: 1.2rem !important;
    box-shadow: 0 18px 46px rgba(15, 35, 59, 0.1) !important;
}

.ttn-post-job-page > .min-h-screen > div > .bg-white > h1 {
    color: var(--ttn-ink) !important;
    letter-spacing: -0.025em;
}

.ttn-post-job-page form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.ttn-post-job-page form > * {
    margin-top: 0 !important;
}

.ttn-post-job-page form > div:nth-child(1),
.ttn-post-job-page form > div:nth-child(2),
.ttn-post-job-page form > div:nth-last-child(3),
.ttn-post-job-page form > p,
.ttn-post-job-page form > button {
    grid-column: 1 / -1;
}

.ttn-post-job-page form > div > label {
    display: inline-block;
    margin-bottom: 0.25rem;
    color: var(--ttn-ink);
    font-weight: 650;
}

.ttn-post-job-page form > div:nth-last-child(3) > div {
    border-color: #ccd6e2 !important;
    background: #f8fafc;
}

.ttn-post-job-page form > div:nth-last-child(3) > div:hover {
    border-color: var(--ttn-orange) !important;
    background: #fff8f2;
}

.ttn-post-job-page form > button[type="submit"] {
    min-height: 3.25rem;
    border-radius: 0.8rem !important;
    background: var(--ttn-orange) !important;
    box-shadow: 0 10px 22px rgba(245, 130, 45, 0.22);
}

.ttn-post-job-page form > button[type="submit"]:hover {
    background: var(--ttn-orange-dark) !important;
}

@media (max-width: 767px) {
    .ttn-resource-page > .min-h-screen > section:first-child,
    .ttn-pricing-page > .min-h-screen > section:first-child,
    .ttn-post-job-page > .min-h-screen > section:first-child {
        padding-top: 3.4rem !important;
        padding-bottom: 4.4rem !important;
    }

    .ttn-resource-page--article article {
        margin-inline: 0.8rem;
        margin-bottom: 0;
        padding: 1.4rem 1.1rem 2rem !important;
    }

    .ttn-post-job-page > .min-h-screen > div > .bg-white {
        padding: 1.35rem 1.1rem !important;
    }

    .ttn-post-job-page form {
        grid-template-columns: 1fr;
    }

    .ttn-post-job-page form > * {
        grid-column: 1 !important;
    }

    .ttn-post-job-page form .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Lower homepage section refinements */
.home-leaderboard {
    padding-block: clamp(3rem, 4.5vw, 1.5rem);
    border-block: 1px solid #edf0f4;
    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(255, 244, 232, 0.9),
            transparent 25rem
        ),
        #f6f8fb;
}

.home-leaderboard > div {
    max-width: 66rem;
}

.home-leaderboard > div > div:first-child {
    margin-bottom: 2rem;
}

.home-leaderboard > div > div:first-child p {
    color: #68717d;
}

.home-leaderboard__search {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) auto;
    gap: 0.65rem;
    align-items: center;
    max-width: 100%;
    margin: 0 auto 1.35rem;
    padding: 0.7rem;
    border-color: #dfe4ea;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(24, 32, 43, 0.09);
}

.home-leaderboard__search input,
.home-leaderboard__search select,
.home-leaderboard__search .select2-container,
.home-leaderboard__search .select2-selection--single {
    width: 100% !important;
    min-height: 3rem !important;
    border-color: #dfe4ea !important;
    border-radius: 11px !important;
}

.home-leaderboard__search button {
    min-height: 3rem;
    padding-inline: 1.55rem;
    border-radius: 11px;
}

.home-leaderboard__search button:hover {
    transform: translateY(-1px);
}

.home-leaderboard .ttn-empty-state {
    max-width: 60rem;
    min-height: 255px;
    margin-inline: auto;
    padding: 2rem 1.5rem;
    border-color: #dfe4ea;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(24, 32, 43, 0.055);
}

.home-leaderboard .ttn-empty-state__visual {
    width: 88px;
    margin-bottom: 0.85rem;
}

.home-leaderboard .ttn-empty-state__title {
    margin-bottom: 0.35rem;
    font-size: 1.08rem;
    font-weight: 700;
}

.home-leaderboard .ttn-empty-state__description {
    max-width: 25rem;
}

.home-leaderboard .ttn-empty-state__actions {
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.home-leaderboard .ttn-empty-state__actions a,
.home-leaderboard > div > div:last-child a {
    border-radius: 999px;
    flex: 1 1 auto;
    min-width: 9.5rem;
    max-width: 100%;
}

.home-leaderboard > div > div:last-child {
    margin-top: 1.35rem;
}

.home-faq {
    padding-block: clamp(4rem, 5.5vw, 5.5rem);
    border-block: 1px solid #f0ece7;
    background: #fffaf5;
}

.home-faq__inner {
    max-width: 70rem;
}

.home-faq__inner > div:first-child {
    max-width: 48rem;
    margin-inline: auto;
    margin-bottom: 2.25rem;
}

.home-faq__inner > div:first-child p {
    color: #68717d;
}

.home-faq details {
    border-color: #e1e5ea;
    border-radius: 15px;
    box-shadow: 0 7px 20px rgba(24, 32, 43, 0.045);
}

.home-faq details[open] {
    border-color: #ffc98f;
    box-shadow: 0 14px 34px rgba(77, 51, 25, 0.09);
}

.home-faq summary {
    min-height: 4rem;
    padding: 1.05rem 1.3rem;
}

.home-faq summary h3 {
    font-size: 0.98rem;
    font-weight: 650;
}

.home-faq details > p {
    padding: 0 3.5rem 1.3rem 1.3rem;
    line-height: 1.7;
}

.home-faq__inner > div:last-child {
    margin-top: 1.4rem;
}

.home-faq__inner > div:last-child a,
.home-pricing > div:last-child a {
    min-height: 2.75rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid #ffd2a5;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(247, 136, 21, 0.08);
}

.home-faq__inner > div:last-child a:hover,
.home-pricing > div:last-child a:hover {
    transform: translateY(-2px);
    border-color: #f7a34b;
    box-shadow: 0 12px 26px rgba(247, 136, 21, 0.13);
}

.home-pricing {
    padding-block: clamp(4rem, 5.5vw, 5.5rem);
    border-bottom: 1px solid #e9edf2;
    background: #f4f7fb;
}

.home-pricing > div:first-child {
    margin-bottom: 2.35rem;
}

.home-pricing .grid > div {
    min-height: 185px;
    padding: 1.7rem;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(24, 32, 43, 0.065);
}

.home-pricing .grid > div::before {
    height: 4px;
}

.home-pricing .grid > div > p:first-child {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    margin-bottom: 0.75rem;
    padding-inline: 0.65rem;
    border-radius: 999px;
    background: #fff2e4;
    letter-spacing: 0.08em;
}

.home-pricing .grid > div > p:nth-child(2) {
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.home-pricing .grid > div > p:last-child {
    max-width: 22rem;
    margin-top: 0.8rem;
    line-height: 1.55;
}

.home-pricing > div:last-child {
    margin-top: 1.6rem;
}

.home-advertise {
    padding-top: 4rem;
    padding-bottom: 0.75rem;
}

.home-tradie-cta {
    padding-top: 0.75rem;
    padding-bottom: 4rem;
}

.home-advertise__panel h2 {
    color: #fff;
}

.home-advertise__panel > div {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.home-advertise__panel > div > div:first-child {
    max-width: 37rem;
}

.home-advertise__panel a,
.home-tradie-cta__panel a {
    min-height: 2.75rem;
    border-radius: 999px;
}

.home-advertise__panel .advertise-spotlight__stat {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-tradie-cta__panel {
    background-image:
        linear-gradient(
            90deg,
            rgba(247, 136, 21, 0.99) 0%,
            rgba(239, 118, 13, 0.94) 45%,
            rgba(239, 118, 13, 0.32) 74%,
            rgba(239, 118, 13, 0.08) 100%
        ),
        var(--home-tradie-cta-bg-image);
    background-position: 64% center;
}

.home-tradie-cta__panel h2 {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.home-proof {
    margin-top: 0;
    padding-block: 1.5rem;
}

.home-proof > div > div {
    justify-content: flex-start;
    padding: 1.2rem;
    border: 1px solid #e2e7ed;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 32, 43, 0.045);
    text-align: left;
}

.home-proof svg {
    box-sizing: content-box;
    width: 1.2rem;
    height: 1.2rem;
    padding: 0.6rem;
    border-radius: 12px;
    background: #f7f9fc;
}

@media (max-width: 767px) {
    .home-leaderboard__search {
        grid-template-columns: 1fr;
    }

    .home-leaderboard .ttn-empty-state {
        min-height: 0;
        padding: 1.75rem 1rem;
    }

    .home-leaderboard .ttn-empty-state__visual {
        width: 76px;
    }

    .home-faq details > p {
        padding: 0 1rem 1rem;
    }

    .home-advertise,
    .home-tradie-cta {
        padding-block: 0.75rem;
    }

    .home-advertise__panel > div {
        grid-template-columns: 1fr;
    }

    .home-advertise__panel {
        background-image:
            linear-gradient(rgba(20, 31, 47, 0.94), rgba(20, 31, 47, 0.94)),
            var(--home-advertise-bg-image);
    }

    .home-tradie-cta__panel {
        background-image:
            linear-gradient(rgba(239, 118, 13, 0.92), rgba(239, 118, 13, 0.96)),
            var(--home-tradie-cta-bg-image);
    }

    .home-proof {
        padding-block: 1.25rem;
    }

    .home-proof > div {
        gap: 0.75rem;
    }
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ── Page entrance ───────────────────────────────────────────────────────── */
.min-h-screen.flex.flex-col > main {
    animation: ttn-fade-in 0.45s ease-out both;
}

body.auth-page > * {
    animation: ttn-fade-in 0.45s ease-out both;
}

@keyframes ttn-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Auth shell ──────────────────────────────────────────────────────────── */
body.auth-page {
    background-color: hsl(var(--background));
    background-image:
        radial-gradient(
            ellipse 90% 55% at 50% -15%,
            rgba(247, 136, 21, 0.1),
            transparent 65%
        ),
        radial-gradient(
            ellipse 50% 40% at 100% 100%,
            rgba(247, 136, 21, 0.05),
            transparent 55%
        ),
        radial-gradient(
            ellipse 40% 35% at 0% 90%,
            rgba(247, 136, 21, 0.04),
            transparent 50%
        );
}

.auth-shell {
    position: relative;
}

.auth-card {
    box-shadow: var(--brand-shadow-card);
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.auth-card:hover {
    box-shadow: 0 20px 48px rgba(60, 43, 25, 0.1);
}

.auth-portal-link {
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-portal-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--brand-shadow-md);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auth-brand__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
    padding: 0.875rem 1.25rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--brand-line);
    box-shadow: var(--brand-shadow-sm);
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.auth-brand__logo:hover {
    box-shadow: var(--brand-shadow-md);
    transform: translateY(-1px);
}

.auth-brand__logo img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

/* ── Auth split layout (login / register) ─────────────────────────────────── */
.auth-page-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem 2.5rem;
}

.auth-page-logo {
    position: absolute;
    top: 1.5rem;
    left: 1rem;
    display: block;
    z-index: 10;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.auth-page-logo:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.auth-page-logo img {
    display: block;
    height: 32px;
    width: auto;
    max-width: min(220px, 55vw);
}

.auth-split-card {
    display: flex;
    width: 100%;
    max-width: 56rem;
    min-height: 32rem;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--brand-shadow-card);
    animation: ttn-fade-in 0.5s ease-out both;
}

.auth-split-card__form {
    flex: 1 1 50%;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-split-card__form .auth-brand {
    align-items: flex-start;
    text-align: left;
}

.auth-split-card__form .auth-card {
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

.auth-split-card__form .auth-card:hover {
    box-shadow: none;
    transform: none;
}

.auth-split-card__visual {
    display: none;
    flex: 1 1 50%;
    position: relative;
    overflow: hidden;
    background: var(--brand-subtle);
}

.auth-split-card__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .auth-page-shell {
        padding: 4rem 1.5rem 2.5rem;
    }

    .auth-page-logo {
        left: 1.5rem;
    }

    .auth-split-card__form {
        padding: 2.5rem 2.25rem;
    }

    .auth-split-card__visual {
        display: block;
    }
}

@media (min-width: 1024px) {
    .auth-page-logo {
        left: 2rem;
    }

    .auth-split-card__form {
        padding: 3rem 2.75rem;
    }
}

/* ── Post a Job CTA — float, glow, shimmer (clipped inside button) ─────── */
.btn-post-job {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    will-change: transform, box-shadow;
    background: linear-gradient(135deg, #f78815 0%, #ff9f3a 45%, #df7108 100%);
    background-size: 200% 200%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    animation:
        ttn-post-job-float 2.4s ease-in-out infinite,
        ttn-post-job-glow 2.4s ease-in-out infinite,
        ttn-post-job-gradient 5s ease infinite;
}

/* Shimmer — clipped by overflow:hidden; never paints over sibling buttons */
.btn-post-job::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 48%,
        rgba(255, 255, 255, 0.1) 52%,
        transparent 70%
    );
    transform: translateX(-140%);
    animation: ttn-post-job-shine 3.2s ease-in-out infinite;
}

.btn-post-job > * {
    position: relative;
    z-index: 1;
}

.btn-post-job svg {
    transition: transform 0.25s ease;
    animation: ttn-post-job-icon 2.4s ease-in-out infinite;
}

.btn-post-job:hover {
    animation: none;
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 10px 28px rgba(247, 136, 21, 0.55),
        0 0 0 3px rgba(247, 136, 21, 0.12);
    background-position: 100% 50%;
}

.btn-post-job:hover svg {
    animation: none;
    transform: scale(1.15) rotate(90deg);
}

.btn-post-job:active {
    transform: translateY(0) scale(0.97);
}

.btn-post-job:hover::after {
    animation: none;
    opacity: 0;
}

/* Mobile FAB — pulse rings stay inside wrapper, not over nav items */
.btn-post-job-fab-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-top: -1rem;
    isolation: isolate;
}

.btn-post-job-fab-ring {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 9999px;
    border: 2px solid rgba(247, 136, 21, 0.45);
    pointer-events: none;
    animation: ttn-post-job-ring 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.btn-post-job-fab-ring--delay {
    animation-delay: 1.2s;
}

.btn-post-job-fab {
    position: relative;
    z-index: 1;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: linear-gradient(145deg, #ff9f3a 0%, #f78815 50%, #df7108 100%);
    background-size: 200% 200%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    will-change: transform, box-shadow;
    animation:
        ttn-post-job-float-fab 2.4s ease-in-out infinite,
        ttn-post-job-glow-fab 2.4s ease-in-out infinite,
        ttn-post-job-gradient 5s ease infinite;
}

.btn-post-job-fab svg {
    animation: ttn-post-job-icon 2.4s ease-in-out infinite;
}

.btn-post-job-fab-wrap:hover .btn-post-job-fab {
    animation: none;
    transform: translateY(-4px) scale(1.06);
    box-shadow:
        0 14px 32px rgba(247, 136, 21, 0.6),
        0 0 0 5px rgba(247, 136, 21, 0.18);
}

.btn-post-job-fab-wrap:hover .btn-post-job-fab svg {
    animation: none;
    transform: scale(1.12) rotate(90deg);
}

.btn-post-job-fab-wrap:hover .btn-post-job-fab-ring {
    animation: none;
    opacity: 0;
}

@keyframes ttn-post-job-float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.03);
    }
}

@keyframes ttn-post-job-float-fab {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-7px) scale(1.05);
    }
}

@keyframes ttn-post-job-glow {
    0%,
    100% {
        box-shadow: 0 4px 14px rgba(247, 136, 21, 0.4);
    }
    50% {
        box-shadow: 0 8px 22px rgba(247, 136, 21, 0.5);
    }
}

@keyframes ttn-post-job-glow-fab {
    0%,
    100% {
        box-shadow:
            0 8px 22px rgba(247, 136, 21, 0.45),
            0 0 0 0 rgba(247, 136, 21, 0.25);
    }
    50% {
        box-shadow:
            0 14px 32px rgba(247, 136, 21, 0.6),
            0 0 0 8px rgba(247, 136, 21, 0.1);
    }
}

@keyframes ttn-post-job-gradient {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes ttn-post-job-ring {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    100% {
        transform: scale(1.22);
        opacity: 0;
    }
}

@keyframes ttn-post-job-shine {
    0%,
    68%,
    100% {
        transform: translateX(-140%);
    }
    82% {
        transform: translateX(140%);
    }
}

@keyframes ttn-post-job-icon {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.auth-split-card__form > p.text-center {
    text-align: left;
}

@media (prefers-reduced-motion: reduce) {
    .btn-post-job,
    .btn-post-job-fab,
    .btn-post-job-fab-ring,
    .btn-post-job svg,
    .btn-post-job-fab svg {
        animation: none !important;
    }
}

/* ── Header ──────────────────────────────────────────────────────────────── */
[data-header] {
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

[data-header].is-scrolled,
[data-header].shadow-md {
    border-bottom-color: rgba(233, 233, 233, 0.9);
}

[data-header] nav a,
[data-header] [data-dropdown-trigger] {
    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        transform 0.15s ease;
}

[data-header] nav a:active,
[data-header] [data-dropdown-trigger]:active {
    transform: scale(0.98);
}

[data-dropdown-content] {
    transform-origin: top left;
    animation: ttn-dropdown-in 0.18s ease-out both;
}

@keyframes ttn-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[data-mobile-menu]:not([hidden]) {
    animation: ttn-slide-down 0.22s ease-out both;
}

@keyframes ttn-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Dashboard top bars ──────────────────────────────────────────────────── */
.min-h-screen.bg-slate-50 > .bg-white.border-b {
    position: sticky;
    top: 0rem;
    z-index: 20;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 0 rgba(233, 233, 233, 0.8);
}

/* ── Cards & surfaces ────────────────────────────────────────────────────── */
.bg-card.rounded-2xl,
.bg-card.rounded-xl,
.bg-white.rounded-xl,
.bg-white.rounded-2xl {
    transition:
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

a.bg-card.rounded-2xl:hover,
a.bg-white.rounded-xl:hover {
    transform: translateY(-2px);
}

/* Dashboard / panel cards */
aside .bg-white.rounded-xl,
.max-w-7xl .bg-white.rounded-xl.border {
    box-shadow: var(--brand-shadow-sm);
}

aside .bg-white.rounded-xl:hover,
.max-w-7xl .bg-white.rounded-xl.border:hover {
    box-shadow: var(--brand-shadow-md);
}

/* Stat / feature tiles on marketing pages */
.grid .text-center.p-6 {
    border-radius: 1rem;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.grid .text-center.p-6:hover {
    background-color: rgba(255, 244, 232, 0.35);
    transform: translateY(-2px);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
button,
a.inline-flex,
[role="button"] {
    transition-property:
        color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: 0.18s;
    transition-timing-function: ease;
}

button:active:not(:disabled):not(.site-password-toggle),
a.inline-flex:active:not(.btn-post-job) {
    transform: scale(0.98);
}

/* ── Password visibility toggle (auth forms) ─────────────────────────────── */
.site-password-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.site-password-wrap .site-password-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-right: 2.75rem;
}

.site-password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-radius: 0.375rem;
    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.site-password-toggle svg {
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

.site-password-toggle [data-password-icon="hide"],
.site-password-wrap.is-showing [data-password-icon="show"] {
    display: none !important;
}

.site-password-wrap.is-showing [data-password-icon="hide"] {
    display: block !important;
}

.site-password-toggle:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--accent) / 0.5);
}

.site-password-toggle:active {
    transform: translateY(-50%);
}

[x-cloak] {
    display: none !important;
}

/* ── Empty state illustrations ───────────────────────────────────────────── */
.ttn-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 0.75rem;
    border: 0;
    background: #fff;
}

.ttn-empty-state--compact {
    padding: 1.75rem 1.25rem;
}

.ttn-empty-state__visual {
    width: min(180px, 70%);
    margin-bottom: 1rem;
}

.ttn-empty-state__visual img {
    display: block;
    width: 100%;
    height: auto;
}

.ttn-empty-state__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.ttn-empty-state__description {
    margin: 0;
    max-width: 28rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: hsl(var(--muted-foreground));
}

.ttn-empty-state__description a {
    color: #ea580c;
    font-weight: 500;
}

.ttn-empty-state__description a:hover {
    color: #c2410c;
    text-decoration: underline;
}

.ttn-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.ttn-empty-state__actions a {
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 9.5rem;
    max-width: 100%;
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

input:not([type="checkbox"]):not([type="radio"]):hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
    border-color: #f5b16a;
}

label {
    letter-spacing: 0.01em;
}

/* Hero search form */
form.bg-white.rounded-2xl.shadow-xl {
    box-shadow: var(--brand-shadow-card);
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

form.bg-white.rounded-2xl.shadow-xl:focus-within {
    box-shadow: 0 22px 50px rgba(60, 43, 25, 0.12);
    transform: translateY(-1px);
}

/* ── Tables ──────────────────────────────────────────────────────────────── */
table {
    border-collapse: separate;
    border-spacing: 0;
}

.overflow-x-auto table thead th {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

.overflow-x-auto table tbody tr {
    transition: background-color 0.15s ease;
}

.overflow-x-auto table tbody tr:hover {
    background-color: rgba(255, 244, 232, 0.25);
}

/* ── Sidebar navigation (dashboards) ─────────────────────────────────────── */
aside nav button[data-tab-trigger],
aside nav a {
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        padding-left 0.15s ease;
}

aside nav button[data-tab-trigger][data-state="active"],
aside nav button[data-tab-trigger]:hover {
    padding-left: 0.875rem;
}

/* Mobile tab pills */
[data-tab-trigger].rounded-full {
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.15s ease,
        box-shadow 0.18s ease;
}

[data-tab-trigger][data-state="active"].rounded-full {
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

/* ── Modals / dialogs ────────────────────────────────────────────────────── */
[data-dialog]:not([hidden]) {
    animation: ttn-dialog-backdrop 0.2s ease-out both;
}

[data-dialog]:not([hidden]) > * {
    animation: ttn-dialog-panel 0.25s ease-out both;
}

@keyframes ttn-dialog-backdrop {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes ttn-dialog-panel {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── Support chat ────────────────────────────────────────────────────────── */
[data-chat-open] {
    animation: ttn-chat-pulse 3s ease-in-out infinite;
}

@keyframes ttn-chat-pulse {
    0%,
    100% {
        box-shadow: 0 10px 25px rgba(247, 136, 21, 0.25);
    }
    50% {
        box-shadow: 0 10px 30px rgba(247, 136, 21, 0.4);
    }
}

[data-chat-panel]:not([hidden]) {
    animation: ttn-chat-panel 0.28s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

/* Keep support chat clear of the fixed mobile navigation. */
@media (max-width: 767px) {
    [data-chat-open] {
        right: max(1rem, env(safe-area-inset-right)) !important;
        bottom: calc(5.25rem + env(safe-area-inset-bottom)) !important;
        width: 3rem !important;
        height: 3rem !important;
        z-index: 60;
    }

    [data-chat-open] svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    [data-chat-panel] {
        right: max(0.75rem, env(safe-area-inset-right)) !important;
        bottom: calc(5.25rem + env(safe-area-inset-bottom)) !important;
        width: calc(100vw - 1.5rem) !important;
        max-width: none !important;
        height: min(
            32rem,
            calc(100dvh - 7rem - env(safe-area-inset-bottom))
        ) !important;
        max-height: calc(
            100dvh - 7rem - env(safe-area-inset-bottom)
        ) !important;
        z-index: 60;
    }
}

@keyframes ttn-chat-panel {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Mobile bottom nav ───────────────────────────────────────────────────── */
nav.safe-area-bottom {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -4px 20px rgba(60, 43, 25, 0.06);
}

nav.safe-area-bottom a[data-nav-path] {
    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

nav.safe-area-bottom a[data-nav-path]:active {
    transform: scale(0.95);
}

nav.safe-area-bottom a[data-nav-path] .w-12 {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

nav.safe-area-bottom a[data-nav-path]:active .w-12 {
    transform: scale(0.94);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer.bg-slate-900 {
    border-top: 1px solid rgba(51, 65, 85, 0.45);
}

footer.bg-slate-900 a {
    position: relative;
    transition: color 0.18s ease;
}

footer.bg-slate-900 ul a:hover {
    color: #fff;
}

footer.bg-slate-900 .border-t a:hover {
    color: rgb(203 213 225);
}

/* ── Homepage advertise spotlight ───────────────────────────────────────── */
.advertise-spotlight {
    background: linear-gradient(to bottom right, #0f172a, #1e293b, #0f172a);
}

.advertise-spotlight__badge {
    background: rgba(255, 255, 255, 0.1);
}

.advertise-spotlight__stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.advertise-spotlight__btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.advertise-spotlight__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── Accordion ───────────────────────────────────────────────────────────── */
[data-accordion-trigger] {
    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}

[data-accordion-panel]:not([hidden]) {
    animation: ttn-accordion-open 0.22s ease-out both;
}

@keyframes ttn-accordion-open {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Chips / trade category links ────────────────────────────────────────── */
a.shrink-0.whitespace-nowrap.border {
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.15s ease,
        box-shadow 0.18s ease;
}

a.shrink-0.whitespace-nowrap.border:hover {
    transform: translateY(-1px);
    box-shadow: var(--brand-shadow-sm);
}

/* ── Typography refinements ────────────────────────────────────────────────── */
h1,
h2,
h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.font-display {
    line-height: 1.15;
}

/* ── Focus visibility (keyboard users) ───────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ── Site Select2 (web panels) ───────────────────────────────────────────── */
select.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.site-select2-host,
.flex-1.relative:has(> select.select2-hidden-accessible),
.relative:has(> select.select2-hidden-accessible) {
    position: relative;
}

/* Hide decorative icons that sat over native selects once Select2 mounts. */
.relative:has(> select.select2-hidden-accessible) > svg.absolute,
.flex-1.relative:has(> select.select2-hidden-accessible) > svg.absolute {
    display: none !important;
}

/* Only the Select2 control should fill its field. The detached dropdown keeps
   its calculated width, otherwise its left offset can create page overflow. */
body select.select2-hidden-accessible + .select2-container {
    width: 100% !important;
}

body .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
    height: auto;
    padding: 0 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: none;
}

body
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    padding: 0 1.75rem 0 0;
    line-height: 1.25rem;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

body
    .select2-container--default
    .select2-selection--single
    .select2-selection__placeholder {
    color: hsl(var(--muted-foreground));
}

body
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    position: absolute;
    top: 0;
    right: 0.65rem;
    width: 1.25rem;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Solid caret: down when closed, up when open. */
body
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    position: static;
    display: block;
    width: 0;
    height: 0;
    margin: 0;
    border-style: solid;
    border-width: 6px 5px 0 5px;
    border-color: #5b6573 transparent transparent transparent;
    left: auto;
    top: auto;
}

body
    .select2-container--default.select2-container--open
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-width: 0 5px 6px 5px;
    border-color: transparent transparent #5b6573 transparent;
}

body
    .select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    margin-right: 0.25rem;
    color: hsl(var(--muted-foreground));
}
body
    .select2-container--default.select2-container--focus
    .select2-selection--single,
body
    .select2-container--default.select2-container--open
    .select2-selection--single {
    border-color: #f78815;
    box-shadow: 0 0 0 2px rgba(247, 136, 21, 0.25);
    outline: none;
}

body .select2-container .select2-selection--multiple {
    min-height: 2.5rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.5rem;
    background: #fff;
}

/* Inline multi-select search is tiny; the global input:focus-visible outline
   renders as a double vertical bar next to the caret. Keep it invisible. */
body .select2-container .select2-search--inline .select2-search__field,
body .select2-container .select2-search--inline .select2-search__field:focus,
body
    .select2-container
    .select2-search--inline
    .select2-search__field:focus-visible {
    margin: 0.2rem 0 0;
    padding: 0;
    min-width: 0.75em;
    width: auto !important;
    height: 1.5rem;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    caret-color: hsl(var(--foreground));
}

body
    .select2-container--default.select2-container--focus
    .select2-selection--multiple,
body
    .select2-container--default.select2-container--open
    .select2-selection--multiple {
    border-color: #f78815;
    box-shadow: 0 0 0 2px rgba(247, 136, 21, 0.25);
}

.select2-dropdown {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    z-index: 80;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid hsl(var(--input));
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.select2-container--default
    .select2-search--dropdown
    .select2-search__field:focus {
    border-color: #f78815;
    outline: none;
    box-shadow: 0 0 0 2px rgba(247, 136, 21, 0.2);
}

.select2-container--default .select2-results__option {
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    text-align: left;
}

.select2-container--default
    .select2-results__option--highlighted.select2-results__option--selectable {
    background: #fff7ed;
    color: #9a3412;
}

.select2-container--default .select2-results__option--selected {
    background: #ffedd5;
    color: #9a3412;
}

/* Postcode search results mirror the public site location picker. */
.postcode-select2-dropdown {
    padding: 0.32rem;
    border-color: #e6ebf1;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 16px 34px rgba(23, 36, 58, 0.14);
}

.postcode-select2-dropdown .select2-search--dropdown {
    padding: 0.25rem 0.25rem 0.4rem;
}

.postcode-select2-dropdown .select2-search--dropdown .select2-search__field {
    min-height: 2.25rem;
    padding-inline: 0.65rem;
    border-radius: 0.55rem;
    font-size: 0.78rem;
}

.postcode-select2-dropdown .select2-results__option {
    margin: 0;
    padding: 0 !important;
    border: 0;
    border-radius: 0.58rem;
    background: transparent !important;
}

.postcode-select2-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    min-height: 2.65rem;
    padding: 0.5rem 0.62rem;
    color: #24344b;
}

.postcode-select2-result__suburb {
    min-width: 0;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.postcode-select2-result__meta {
    flex: 0 0 auto;
    color: #748197;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.postcode-select2-dropdown
    .select2-results__option--highlighted.select2-results__option--selectable
    .postcode-select2-result,
.postcode-select2-dropdown
    .select2-results__option--selected
    .postcode-select2-result {
    color: #a84e0e;
    border-radius: 0.58rem;
    background: #fff5eb;
}

.postcode-select2-dropdown
    .select2-results__option--highlighted.select2-results__option--selectable
    .postcode-select2-result__meta,
.postcode-select2-dropdown
    .select2-results__option--selected
    .postcode-select2-result__meta {
    color: #c56522;
}

.postcode-select2-dropdown.is-grouped .select2-results__option[role="group"] {
    padding: 0 !important;
}

.postcode-select2-dropdown.is-grouped .select2-results__group {
    display: block;
    padding: 8px 10px 2px !important;
    color: #8a9099;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.postcode-select2-dropdown.is-grouped .select2-results__option--selectable {
    padding: 0.55rem 0.7rem !important;
    color: #24344b;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
}

.postcode-select2-dropdown.is-grouped .select2-results__option--highlighted.select2-results__option--selectable,
.postcode-select2-dropdown.is-grouped .select2-results__option--selected.select2-results__option--selectable {
    color: #d9560d;
    background: #fff3e9 !important;
}

/* Compact selects in dense toolbars (home / leaderboard h-9) */
.h-9 + .select2-container .select2-selection--single,
select.h-9 + .select2-container .select2-selection--single,
.flex-1.h-9 + .select2-container .select2-selection--single {
    min-height: 2.25rem;
}

select.h-9 ~ .select2-container .select2-selection--single,
form
    .h-9.select2-hidden-accessible
    + .select2-container
    .select2-selection--single {
    min-height: 2.25rem;
}

/* ==========================================================================
   2026 public homepage — Editorial Trust direction
   Scoped to .home-premium so authenticated and admin product surfaces keep
   their existing layout behavior.
   ========================================================================== */

.home-premium {
    --home-ink: #18202b;
    --home-copy: #5f6772;
    --home-warm: #fffaf4;
    --home-soft: #f7f9fc;
    --home-line: #e7ebf0;
    --home-radius: 18px;
    color: var(--home-ink);
    overflow: clip;
    background: #fff;
}

.home-premium section {
    position: relative;
}

.home-premium h1,
.home-premium h2,
.home-premium h3 {
    color: var(--home-ink);
    text-wrap: balance;
}

.home-premium p {
    text-wrap: pretty;
}

.home-premium a,
.home-premium button,
.home-premium input,
.home-premium select,
.home-premium summary {
    transition-duration: 220ms;
    transition-timing-function: cubic-bezier(0.2, 0.75, 0.25, 1);
}

.home-premium a:focus-visible,
.home-premium button:focus-visible,
.home-premium summary:focus-visible {
    outline: 3px solid rgba(247, 136, 21, 0.3);
    outline-offset: 3px;
}

header[data-header] {
    border-bottom: 1px solid rgba(231, 235, 240, 0.85);
    box-shadow: 0 8px 30px rgba(24, 32, 43, 0.04);
    backdrop-filter: blur(14px);
}

header[data-header] > div:first-child > div {
    height: 4.25rem;
}

header[data-header] nav a,
header[data-header] nav button {
    border-radius: 999px;
}

header[data-header] nav a.is-current,
header[data-header] #site-mobile-menu a.is-current {
    color: #df7108;
    background: #fff4e8;
    font-weight: 650;
}

@media (min-width: 1200px) {
    header[data-header] > div:first-child > div > nav {
        flex-shrink: 0;
    }

    header[data-header] .header-location-trigger.has-location {
        max-width: 11.5rem;
    }
}

header[data-header] [data-dropdown-content] {
    margin-top: 0.65rem;
    padding: 0.5rem;
    border-color: var(--home-line, #e7ebf0);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(24, 32, 43, 0.14);
}

header[data-header] .btn-post-job {
    min-height: 2.35rem;
    padding-inline: 1rem;
    border-radius: 999px;
}

.home-hero {
    height: 92svh;
    display: flex;
    align-items: center;
    padding-block: clamp(4.5rem, 7vw, 7rem);
    background: #f7f4ef;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.93) 34%,
        rgba(255, 255, 255, 0.66) 53%,
        rgba(255, 255, 255, 0.08) 78%
    );
}

.home-hero__image {
    z-index: 1;
    opacity: 1;
    background-position: center center;
}

.home-hero__content {
    width: 100%;
    text-align: left;
}

.home-hero__content > h1,
.home-hero__content > p,
.home-hero__content > form,
.home-hero__content > .home-trust,
.home-hero__content > div:last-child {
    margin-left: 0;
    margin-right: 0;
    max-width: 720px;
}

.home-hero__content > h1 {
    max-width: 720px;
    margin-bottom: 1rem;
    font-size: clamp(2.35rem, 3.9vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-hero__content > p:first-of-type {
    max-width: 590px;
    margin-bottom: 0.7rem;
    color: #48515d;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.7;
}

.home-hero__content > p:nth-of-type(2) {
    max-width: 600px;
    margin-bottom: 1.7rem;
    color: #707986;
    font-size: 0.78rem;
    line-height: 1.6;
}

.home-search {
    max-width: 680px;
    padding: 0.8rem;
    border: 1px solid #ffe0bf;
    border-radius: var(--home-radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 24px 70px rgba(42, 48, 57, 0.16),
        0 2px 8px rgba(42, 48, 57, 0.06);
    backdrop-filter: blur(12px);
}

.home-search > div {
    gap: 0.65rem;
}

.home-search > div > div:first-child {
    gap: 0.55rem;
}

.home-search input {
    min-height: 3.25rem;
    border-color: var(--home-line);
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--home-line);
}

.home-search button {
    border-radius: 11px;
    font-weight: 650;
}

.home-search button:hover {
    transform: translateY(-2px);
}

.home-trust {
    justify-content: flex-start;
    gap: 0.7rem 1.15rem;
    margin-top: 1.35rem;
    color: #545d69;
    font-weight: 550;
}

.home-trust span {
    padding: 0.3rem 0.1rem;
}

.home-how {
    width: 100%;
    max-width: 80rem;
    padding-block: clamp(4rem, 6vw, 6.5rem);
}

.home-how > div:first-child,
.home-browse > div > h2,
.home-leaderboard > div > div:first-child,
.home-faq__inner > div:first-child,
.home-pricing > div:first-child {
    margin-bottom: 2.5rem;
}

.home-premium section h2 {
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.home-how__steps {
    gap: 0;
}

.home-how__step {
    position: relative;
    padding: 1.5rem clamp(1.25rem, 3vw, 3rem);
}

.home-how__step + .home-how__step::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 0;
    width: 1px;
    background: var(--home-line);
}

.home-how__step > div:first-child {
    width: 4rem;
    height: 4rem;
    border: 1px solid #ffe0bf;
    border-radius: 20px;
    background: #fff5e9;
    box-shadow: 0 12px 28px rgba(247, 136, 21, 0.1);
}

.home-how__step h3 {
    margin-top: 1.15rem;
    font-size: 1rem;
}

.home-how__step p {
    max-width: 330px;
    margin-inline: auto;
    color: var(--home-copy);
    line-height: 1.75;
}

.home-browse {
    overflow: hidden;
    padding-block: 3.4rem;
    border-block: 1px solid #edf0f3;
    background:
        linear-gradient(
            90deg,
            rgba(249, 247, 243, 0.97),
            rgba(247, 249, 252, 0.9)
        ),
        url("/site/img/home-hero-tradie-2026.jpg") center 54% / cover;
}

.home-browse::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e6e9ee, transparent);
}

.home-chip-rail {
    margin-bottom: 1.2rem;
    scrollbar-width: thin;
    scrollbar-color: #d7dce2 transparent;
}

.home-chip-rail a,
.home-city-list a {
    border-color: rgba(214, 219, 226, 0.95);
    box-shadow: 0 5px 14px rgba(24, 32, 43, 0.05);
}

.home-chip-rail a:hover,
.home-city-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(247, 136, 21, 0.11);
}

/* Homepage trade explorer: clear two-step browse flow. */
.home-browse {
    position: relative;
    background: #f6f8fb !important;
}

.home-browse::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 1;
    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(245, 130, 45, 0.09),
            transparent 20rem
        ),
        radial-gradient(
            circle at 90% 86%,
            rgba(27, 64, 105, 0.08),
            transparent 22rem
        );
    pointer-events: none;
}

.home-browse > div {
    position: relative;
    z-index: 1;
}

.home-browse__heading {
    max-width: 41rem;
    margin: 0 auto 1.7rem;
    text-align: center;
}

.home-browse__eyebrow,
.home-browse__kicker {
    display: inline-block;
    color: #db691c;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-browse__heading h2 {
    margin: 0.35rem 0 0.5rem !important;
    color: #10233d;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    letter-spacing: -0.035em;
}

.home-browse__heading p {
    margin: 0;
    color: #627086;
    font-size: 0.9rem;
    line-height: 1.6;
}

.home-chip-rail {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 1.1rem !important;
    border: 1px solid #dfe6ee;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 50, 76, 0.06);
}

.home-chip-rail::before {
    content: "Browse by trade";
    grid-column: 1 / -1;
    margin: 0.05rem 0 0.2rem;
    color: #10233d;
    font-size: 0.95rem;
    font-weight: 800;
}

.home-chip-rail a {
    position: relative;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.75rem 2rem 0.7rem 0.8rem !important;
    border: 1px solid #e2e8ef !important;
    border-radius: 0.7rem !important;
    color: #263b56 !important;
    background: #fbfcfe !important;
    box-shadow: none !important;
    white-space: normal !important;
}

.home-chip-rail a > span:first-child {
    color: #162b47;
    font-size: 0.79rem;
    font-weight: 750;
    line-height: 1.3;
}

.home-chip-rail a > span:not(:first-child) {
    margin-top: 0.22rem;
    color: #77859a;
    font-size: 0.67rem;
    line-height: 1.25;
}

.home-chip-rail a::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 0.7rem;
    color: #dc6b1f;
    font-size: 2rem;
    transform: translateY(-50%);
}
.home-chip-rail a:last-child {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    color: #b9510c !important;
    border-color: #f0c79f !important;
    background: #fff4e9 !important;
    font-weight: 800;
    background: transparent !important;
    border: none !important;
    width: max-content;
    font-size: 15px;
    font-weight: 500;
    place-content: center;

}

.home-chip-rail a:last-child::after {
    position: static;
    margin-left: 0.2rem;
    transform: none;
}

.home-city-list {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem !important;
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid #dce4ed;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(31, 50, 76, 0.06);
}

.home-city-list > span:first-child {
    align-self: stretch;
    flex: 0 0 auto;
    min-height: 2.55rem;
    margin-right: 0.25rem;
    padding: 0.6rem 0.8rem;
    color: #a8480f;
    border: 1px solid #f4d1b2;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #fff1e4, #fff8f1);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.home-city-list > span:first-child svg {
    width: 1rem;
    height: 1rem;
    color: #e56a25;
}

.home-city-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: max-content;
    min-height: 2.55rem;
    padding: 0.55rem 0.75rem !important;
    border: 1px solid #e1e7ee !important;
    border-radius: 0.7rem !important;
    color: #344a66 !important;
    background: #f8fafc !important;
    box-shadow: 0 3px 8px rgba(31, 50, 76, 0.035) !important;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-city-list a:hover {
    color: #b9510c !important;
    background: #fff1e5 !important;
    border-color: #efbd93 !important;
    transform: translateY(-1px);
    box-shadow: 0 7px 15px rgba(183, 82, 14, 0.1) !important;
}

.home-city-list a:focus-visible {
    outline: 3px solid rgba(245, 130, 45, 0.25);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .home-chip-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-browse {
        padding-block: 2.5rem !important;
    }

    .home-chip-rail {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        padding: 0.7rem !important;
    }

    .home-chip-rail a,
    .home-chip-rail a:last-child {
        min-height: 3.45rem;
        place-content: center;

    }

    .home-city-list {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding: 0.65rem;
        scrollbar-width: thin;
        scrollbar-color: #d7dce2 transparent;
    }

    .home-city-list > span:first-child,
    .home-city-list a {
        flex: 0 0 auto;
    }
}

.home-leaderboard {
    padding-block: clamp(4.5rem, 6vw, 6.5rem);
    background:
        radial-gradient(
            circle at 50% 16%,
            rgba(255, 244, 232, 0.75),
            transparent 26rem
        ),
        #f7f9fc;
}

.home-leaderboard > div {
    max-width: 58rem;
}

.home-leaderboard__search {
    padding: 0.65rem;
    border-color: var(--home-line);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(24, 32, 43, 0.07);
}

.home-leaderboard__search input,
.home-leaderboard__search select,
.home-leaderboard__search .select2-selection--single {
    min-height: 2.75rem !important;
    border-radius: 10px !important;
}

.home-leaderboard__search button {
    min-height: 2.75rem;
    padding-inline: 1.35rem;
    border-radius: 10px;
}

.home-leaderboard .rounded-2xl.border,
.home-leaderboard .rounded-xl.border,
.home-leaderboard .rounded-xl.border-2 {
    border-color: var(--home-line);
    box-shadow: 0 20px 55px rgba(24, 32, 43, 0.06);
}

.home-recent,
.home-awards,
.home-pricing,
.home-advertise,
.home-tradie-cta,
.home-proof {
    width: 100%;
    max-width: none;
    padding-inline: max(1rem, calc((100% - 80rem) / 2));
}

.home-recent,
.home-awards,
.home-pricing {
    padding-block: clamp(4rem, 6vw, 6rem);
}

.home-link-card,
.home-awards .rounded-xl.border,
.home-pricing .rounded-xl.border {
    border-color: var(--home-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24, 32, 43, 0.05);
}

.home-link-card:hover,
.home-awards .rounded-xl.border:hover,
.home-pricing .rounded-xl.border:hover {
    transform: translateY(-4px);
    border-color: #ffd5aa;
    box-shadow: 0 18px 40px rgba(24, 32, 43, 0.09);
}

.home-awards__card:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 42rem);
    min-height: 13rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
}

.home-awards {
    position: relative;
    background:
        radial-gradient(circle at 50% 44%, rgba(37, 99, 235, 0.055), transparent 28rem),
        #fff;
}

.home-awards__heading {
    position: relative;
}

.home-awards__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin-bottom: 0.7rem;
    padding: 0.38rem 0.72rem;
    color: #3159a7;
    border: 1px solid #d9e4f7;
    border-radius: 999px;
    background: #f1f6ff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-awards__eyebrow span {
    color: #edae24;
    font-size: 0.9rem;
}

.home-awards__heading h2 {
    color: #142b48 !important;
    letter-spacing: -0.035em;
}

.home-awards__heading > p {
    max-width: 38rem;
    margin-inline: auto;
    line-height: 1.6;
}

.home-awards__card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    overflow: hidden;
    border-color: #dce5f1 !important;
    background: linear-gradient(135deg, #fff 0%, #f7faff 100%) !important;
    box-shadow: 0 18px 44px rgba(28, 47, 75, 0.08) !important;
}



.home-awards__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    flex: 0 0 4rem;
    color: #d9681c;
    border: 1px solid #f2cba9;
    border-radius: 1.1rem;
    background: linear-gradient(145deg, #fff8ef, #ffead8);
    box-shadow: 0 10px 24px rgba(212, 103, 28, 0.12);
}

.home-awards__icon svg {
    width: 2rem;
    height: 2rem;
}

.home-awards__content {
    position: relative;
    z-index: 1;
    min-width: 0;
    text-align: left;
}

.home-awards__period {
    display: inline-flex;
    margin-bottom: 0.7rem !important;
    padding: 0.3rem 0.55rem;
    color: #3159a7 !important;
    border: 1px solid #dbe5f7;
    border-radius: 999px;
    background: #eef4ff;
    font-size: 0.62rem !important;
}

.home-awards__name {
    color: #17243a !important;
    font-size: 1.15rem;
    line-height: 1.3;
}

.home-awards__tradie {
    color: #344a66 !important;
    font-weight: 700;
}

.home-awards__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem !important;
}

.home-awards__meta span {
    padding: 0.3rem 0.52rem;
    color: #65748a;
    border-radius: 0.45rem;
    background: #edf2f7;
}

.home-awards__blurb {
    max-width: 34rem;
    color: #657085 !important;
    line-height: 1.65;
}

.home-awards__cta {
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    color: #c95c14 !important;
    border: 1px solid #f0c39f;
    border-radius: 0.72rem;
    background: #fff7f0;
    box-shadow: 0 6px 16px rgba(206, 93, 20, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.home-awards__cta:hover {
    background: #ffeddf;
    box-shadow: 0 9px 20px rgba(206, 93, 20, 0.13);
    transform: translateY(-1px);
}

@media (max-width: 639px) {
    .home-awards__card,
    .home-awards__card:only-child {
        min-height: 0;
        padding: 1.25rem;
    }

    .home-awards__icon {
        width: 3.25rem;
        height: 3.25rem;
        flex-basis: 3.25rem;
        border-radius: 0.9rem;
    }

    .home-awards__icon svg {
        width: 1.65rem;
        height: 1.65rem;
    }
}

.home-reviews {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 6vw, 5.5rem);
    border-block: 1px solid #f0f1f3;
    background:
        radial-gradient(circle at 50% 32%, rgba(245, 130, 45, 0.1), transparent 28rem),
        #fffaf5;
}

.home-reviews__inner {
    position: relative;
    z-index: 1;
}

.home-reviews__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin-bottom: 0.7rem;
    padding: 0.38rem 0.72rem;
    color: #b85210;
    border: 1px solid #f1cfb3;
    border-radius: 999px;
    background: #fff2e6;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-reviews__eyebrow span {
    color: #eaae22;
    font-size: 0.9rem;
}

.home-reviews__title {
    color: #142b48 !important;
    letter-spacing: -0.035em;
}

.home-reviews__lead {
    max-width: 38rem;
    margin-inline: auto;
    line-height: 1.65;
}

.home-reviews [data-carousel] {
    border-color: #f1d0b5;
    background: #fff;
    box-shadow: 0 24px 60px rgba(55, 42, 29, 0.1);
}

.home-reviews__carousel {
    min-height: 18rem;
}

.home-review-card {
    position: relative;
    padding-inline: clamp(1rem, 5vw, 3.5rem);
}

.home-review-card__quote {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    margin: -0.15rem auto 0.85rem;
    padding-top: 0.35rem;
    color: #df681a;
    border-radius: 50%;
    background: #fff0e4;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.home-review-card__stars {
    margin-bottom: 0.8rem !important;
}

.home-review-card__stars svg {
    width: 1.05rem;
    height: 1.05rem;
    color: #efb226 !important;
}

.home-review-card__title {
    margin-bottom: 0.65rem !important;
    color: #17243a !important;
    font-size: 1.15rem;
    text-transform: capitalize;
}

.home-review-card__body {
    max-width: 35rem;
    margin: 0 auto 1.3rem !important;
    color: #536074 !important;
    font-size: 0.94rem !important;
    line-height: 1.75 !important;
}

.home-review-card__body > span {
    display: none;
}

.home-review-card__author {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 0.55rem 0.8rem;
    color: #26364d !important;
    border: 1px solid #e8ebef;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 0.75rem !important;
}

.home-review-card__author svg {
    box-sizing: content-box;
    padding: 0.3rem;
    color: #d86417 !important;
    border-radius: 50%;
    background: #ffeadb;
}

.home-reviews__count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    border: 1px solid #e4e9ee;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
}

.home-reviews__count > span {
    color: #15905a;
    font-weight: 900;
}

@media (max-width: 639px) {
    .home-reviews__carousel {
        min-height: 0;
        padding: 1.5rem 1rem !important;
    }

    .home-review-card {
        padding-inline: 0.35rem;
    }

    .home-review-card__body {
        font-size: 0.88rem !important;
    }
}

.home-faq {
   padding-block: clamp(3rem, 5vw, 3rem);
    background: #fff;
}

.home-faq__inner {
    max-width: 62rem;
}

.home-faq details {
    overflow: hidden;
    padding: 0;
    border-color: var(--home-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(24, 32, 43, 0.035);
}

.home-faq details[open] {
    border-color: #ffdcb8;
    box-shadow: 0 12px 30px rgba(24, 32, 43, 0.07);
}

.home-faq summary {
    min-height: 3.75rem;
    padding: 1rem 1.25rem;
}

.home-faq summary:hover {
    background: #fffaf4;
}

.home-faq details > p {
    margin: 0;
    padding: 0 1.25rem 1.2rem;
    color: var(--home-copy);
    line-height: 1.75;
}

.home-pricing {
    background: #f7f9fc;
}

.home-pricing .grid > div {
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.home-pricing .grid > div::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--brand);
}

.home-advertise,
.home-tradie-cta {
    padding-block: 1rem;
    background: #fff;
}

.home-advertise__panel {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 20px;
    background-image:
        linear-gradient(
            90deg,
            rgba(20, 31, 47, 0.98) 0%,
            rgba(20, 31, 47, 0.92) 52%,
            rgba(20, 31, 47, 0.62) 100%
        ),
        var(--home-advertise-bg-image);
    background-position: center;
    background-size: cover;
}

.home-advertise__panel > div {
    width: 100%;
}

.home-advertise__panel .advertise-spotlight__stat {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.home-tradie-cta__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 340px;
    border-radius: 20px;
    background-image:
        linear-gradient(
            90deg,
            rgba(247, 136, 21, 0.98) 0%,
            rgba(239, 118, 13, 0.96) 47%,
            rgba(239, 118, 13, 0.45) 76%,
            rgba(239, 118, 13, 0.18) 100%
        ),
        var(--home-tradie-cta-bg-image);
    background-position: center;
    background-size: cover;
    box-shadow: 0 22px 55px rgba(247, 136, 21, 0.2);
}

.home-tradie-cta__panel > div:first-child {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.home-tradie-cta__panel > div:last-child {
    display: none;
}

.home-proof {
    margin-top: 1rem;
    padding-block: 2.25rem;
    border-top: 1px solid #e8edf2;
    background: #f4f7fa;
}

.home-proof > div {
    max-width: 80rem;
    margin-inline: auto;
}

.home-proof svg {
    width: 1.4rem;
    height: 1.4rem;
}

.home-proof h3 {
    font-size: 0.82rem;
}

.home-proof p {
    line-height: 1.6;
}

footer {
    background: #142033 !important;
}

footer a:hover {
    transform: translateX(2px);
}

@media (max-width: 1023px) {
    .home-hero::after {
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 0.9) 60%,
            rgba(255, 255, 255, 0.56)
        );
    }

    .home-hero__image {
        background-position: 66% center;
    }

    .home-tradie-cta__panel {
        background-position: 62% center;
    }
}

@media (max-width: 767px) {
    header[data-header] > div:first-child > div {
        height: 4rem;
    }

    .home-hero {
        height: auto;
        padding-top: 4rem;
        padding-bottom: 4.25rem;
    }

    .home-hero::after {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.94) 66%,
            rgba(255, 255, 255, 0.8) 100%
        );
    }

    .home-hero__image {
        opacity: 0.22;
        background-position: 72% center;
    }

    .home-hero__content {
        text-align: center;
    }

    .home-hero__content > h1,
    .home-hero__content > p,
    .home-hero__content > form,
    .home-hero__content > .home-trust,
    .home-hero__content > div:last-child {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero__content > h1 {
        max-width: 520px;
        font-size: clamp(2.15rem, 11vw, 3.3rem);
        line-height: 1.04;
    }

    .home-search {
        padding: 0.7rem;
        border-radius: 16px;
    }

    .home-search input {
        min-height: 3.1rem;
    }

    .home-trust {
        justify-content: center;
        gap: 0.3rem 0.8rem;
    }

    .home-how,
    .home-leaderboard,
    .home-recent,
    .home-reviews,
    .home-faq,
    .home-awards,
    .home-pricing {
        padding-block: 3.75rem;
    }

    .home-how__steps {
        gap: 0.5rem;
    }

    .home-how__step {
        padding: 1.35rem 1rem;
    }

    .home-how__step + .home-how__step::before {
        top: 0;
        right: 1rem;
        bottom: auto;
        left: 1rem;
        width: auto;
        height: 1px;
    }

    .home-browse {
        padding-block: 3rem;
    }

    .home-city-list {
        justify-content: flex-start;
    }

    .home-leaderboard__search {
        gap: 0.6rem;
    }

    .home-faq__inner > div:first-child {
        text-align: left;
    }

    .home-faq summary {
        min-height: 3.5rem;
        padding: 0.9rem 1rem;
    }

    .home-faq details > p {
        padding: 0 1rem 1rem;
    }

    .home-advertise,
    .home-tradie-cta {
        padding-block: 0.75rem;
    }

    .home-advertise__panel,
    .home-tradie-cta__panel {
        min-height: 0;
        padding: 2rem 1.25rem;
    }

    .home-advertise__panel {
        background-image:
            linear-gradient(rgba(20, 31, 47, 0.94), rgba(20, 31, 47, 0.94)),
            var(--home-advertise-bg-image);
    }

    .home-tradie-cta__panel {
        align-items: flex-start;
        background-image:
            linear-gradient(rgba(239, 118, 13, 0.94), rgba(239, 118, 13, 0.96)),
            var(--home-tradie-cta-bg-image);
        background-position: 68% center;
    }

    .home-proof {
        padding-block: 2rem;
    }
}

@media (max-width: 389px) {
    .home-hero {
        padding-top: 3.25rem;
    }

    .home-hero__content > h1 {
        font-size: 2rem;
    }

    .home-trust {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        text-align: left;
    }

    .home-trust span {
        align-items: flex-start;
    }

    .home-advertise__panel .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-premium *,
    .home-premium *::before,
    .home-premium *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Final cascade for the refined lower homepage experience. */
.home-leaderboard {
    padding-block: clamp(4rem, 5.5vw, 5.5rem);
    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(255, 244, 232, 0.9),
            transparent 25rem
        ),
        #f6f8fb;
}

.home-leaderboard > div {
    max-width: 66rem;
}

.home-leaderboard > div > div:first-child {
    margin-bottom: 2rem;
}

.home-leaderboard__search {
    padding: 0.7rem;
    border-color: #dfe4ea;
    border-radius: 18px;
    box-shadow: none;
}

.home-leaderboard__search input,
.home-leaderboard__search select,
.home-leaderboard__search .select2-selection--single {
    min-height: 3rem !important;
    border-radius: 11px !important;
}

.home-leaderboard__search
    .select2-selection--single
    .select2-selection__rendered {
    padding-right: 4rem;
}

.home-leaderboard__search
    .select2-selection--single
    .select2-selection__clear {
    position: absolute;
    top: 50%;
    right: 2.5rem;
    z-index: 2;
    margin: 0;
    transform: translateY(-50%);
}

.home-leaderboard__search button {
    min-height: 3rem;
    padding-inline: 1.55rem;
    border-radius: 11px;
}

.home-leaderboard .ttn-empty-state {
    border-color: #dfe4ea;
    box-shadow: 0 18px 45px rgba(24, 32, 43, 0.055);
}

.home-faq {
    padding-block: clamp(4rem, 5.5vw, 5.5rem);
    background: #fffaf5;
}

.home-faq__inner {
    max-width: 70rem;
}

.home-faq__inner > div:first-child {
    margin-bottom: 2.25rem;
}

.home-faq details {
    border-color: #e1e5ea;
    border-radius: 15px;
    box-shadow: 0 7px 20px rgba(24, 32, 43, 0.045);
}

.home-faq details[open] {
    border-color: #ffc98f;
    box-shadow: 0 14px 34px rgba(77, 51, 25, 0.09);
}

.home-faq summary {
    min-height: 4rem;
    padding: 1.05rem 1.3rem;
}

.home-faq details > p {
    padding: 0 3.5rem 1.3rem 1.3rem;
    line-height: 1.7;
}

.home-pricing {
    padding-block: clamp(4rem, 5.5vw, 5.5rem);
    background: #f4f7fb;
}

.home-pricing > div:first-child {
    margin-bottom: 2.35rem;
}

.home-pricing .grid > div {
    min-height: 185px;
    padding: 1.7rem;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(24, 32, 43, 0.065);
}

.home-pricing .grid > div::before {
    height: 4px;
}

.home-advertise {
    padding-top: 4rem;
    padding-bottom: 0.75rem;
}

.home-tradie-cta {
    padding-top: 0.75rem;
    padding-bottom: 4rem;
}

.home-advertise__panel h2 {
    color: #fff;
}

.home-tradie-cta__panel {
    background-image:
        linear-gradient(
            90deg,
            rgba(247, 136, 21, 0.99) 0%,
            rgba(239, 118, 13, 0.94) 45%,
            rgba(239, 118, 13, 0.32) 74%,
            rgba(239, 118, 13, 0.08) 100%
        ),
        var(--home-tradie-cta-bg-image);
    background-position: 64% center;
}

.home-proof {
    margin-top: 0;
    padding-block: 1.5rem;
}

.home-proof svg {
    width: 1.2rem;
    height: 1.2rem;
}

@media (max-width: 767px) {
    .home-how,
    .home-leaderboard,
    .home-recent,
    .home-reviews,
    .home-faq,
    .home-awards,
    .home-pricing {
        padding-block: 3.75rem;
    }

    .home-leaderboard__search {
        grid-template-columns: 1fr;
    }

    .home-leaderboard .ttn-empty-state {
        min-height: 0;
        padding: 1.75rem 1rem;
    }

    .home-faq details > p {
        padding: 0 1rem 1rem;
    }

    .home-advertise,
    .home-tradie-cta {
        padding-block: 0.75rem;
    }

    .home-advertise__panel {
        background-image:
            linear-gradient(rgba(20, 31, 47, 0.94), rgba(20, 31, 47, 0.94)),
            var(--home-advertise-bg-image);
    }

    .home-tradie-cta__panel {
        background-image:
            linear-gradient(rgba(239, 118, 13, 0.92), rgba(239, 118, 13, 0.96)),
            var(--home-tradie-cta-bg-image);
    }

    .home-proof {
        padding-block: 1.25rem;
    }
}

/* Homepage conversion panels v2 */
.home-advertise,
.home-tradie-cta {
    padding-inline: max(1rem, calc((100% - 80rem) / 2));
    background: #fff;
}

.home-advertise {
    padding-top: clamp(3.5rem, 6vw, 5.5rem);
    padding-bottom: 0.75rem;
}

.home-tradie-cta {
    padding-top: 0.75rem;
    padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.home-advertise__panel,
.home-tradie-cta__panel {
    overflow: hidden;
    border-radius: 24px;
}

.home-advertise__panel {
    min-height: 390px;
    padding: clamp(2rem, 4vw, 4rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-image:
        linear-gradient(
            100deg,
            rgba(13, 25, 43, 0.99) 0%,
            rgba(17, 31, 51, 0.96) 50%,
            rgba(17, 31, 51, 0.76) 100%
        ),
        var(--home-advertise-bg-image);
    background-position: center;
    background-size: cover;
}

.home-advertise__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr) !important;
    gap: clamp(2.5rem, 5vw, 5.5rem);
    align-items: center;
    width: 100%;
}

.home-advertise__content {
    max-width: 40rem !important;
}

.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.15rem;
    color: #d76505;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-section-kicker svg {
    width: 1rem;
    height: 1rem;
}

.home-section-kicker--dark {
    color: #ffad61;
}

.home-advertise__content h2,
.home-tradie-cta__content h2 {
    margin: 0;
    font-family: var(--font-display, inherit);
    font-size: clamp(2rem, 3.3vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.home-advertise__content h2 {
    max-width: 38rem;
    color: #fff;
}

.home-advertise__content h2 span {
    color: #ff922f;
}

.home-advertise__content > p,
.home-tradie-cta__content > p {
    max-width: 36rem;
    margin: 1.15rem 0 0;
    font-size: clamp(0.95rem, 1.3vw, 1.08rem);
    line-height: 1.7;
}

.home-advertise__content > p {
    color: #c8d1dd;
}

.home-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.home-panel-actions .home-action {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.3rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.home-panel-actions .home-action:hover {
    transform: translateY(-2px);
}

.home-action--orange {
    color: #fff;
    background: #f58220;
    box-shadow: 0 10px 25px rgba(245, 130, 32, 0.28);
}

.home-action--orange:hover {
    background: #e9700f;
}

.home-action--ghost {
    color: #f5f7fa;
    border-color: rgba(255, 255, 255, 0.28) !important;
    background: rgba(255, 255, 255, 0.04);
}

.home-action--ghost:hover {
    border-color: rgba(255, 255, 255, 0.52) !important;
    background: rgba(255, 255, 255, 0.1);
}

.home-advertise__proof {
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(12px);
}

.home-advertise__proof-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0.15rem 1rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-advertise__proof-heading small {
    color: #9facbc;
    font-size: 0.69rem;
    font-weight: 600;
}

.home-advertise__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-advertise__panel .advertise-spotlight__stat {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1.25rem;
    border-color: rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(8, 19, 34, 0.42);
    text-align: left;
}

.home-advertise__panel .advertise-spotlight__stat p:first-child {
    margin: 0;
    color: #fff;
    font-family: var(--font-display, inherit);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.home-advertise__panel .advertise-spotlight__stat p:last-child {
    margin-top: 0.55rem;
    color: #acb8c7;
    font-size: 0.72rem;
    line-height: 1.35;
}

.home-tradie-cta__panel {
    min-height: 410px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: stretch;
    border: 1px solid #f1dcc6;
    background: #fff8f0;
    background-image: none;
    box-shadow: 0 24px 60px rgba(79, 53, 28, 0.12);
}

.home-tradie-cta__content {
    position: relative;
    z-index: 2;
    max-width: none !important;
    padding: clamp(2rem, 4vw, 3.75rem);
}

.home-tradie-cta__content h2 {
    color: #152238;
}

.home-tradie-cta__content h2 span {
    color: #dc6808;
}

.home-tradie-cta__content > p {
    color: #5c6470;
}

.home-tradie-benefits {
    display: grid;
    gap: 0.7rem;
    max-width: 39rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

.home-tradie-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #313c4d;
    font-size: 0.88rem;
    line-height: 1.45;
}

.home-tradie-benefits svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    margin-top: 0.1rem;
    color: #e87513;
}

.home-action--navy {
    color: #fff;
    background: #152238;
    box-shadow: 0 10px 24px rgba(21, 34, 56, 0.2);
}

.home-action--navy:hover {
    background: #24344f;
}

.home-action--outline {
    color: #a94e06;
    border-color: #e3b487 !important;
    background: rgba(255, 255, 255, 0.65);
}

.home-action--outline:hover {
    border-color: #cf792f !important;
    background: #fff;
}

.home-tradie-cta__panel > div.home-tradie-cta__image {
    min-height: 410px;
    display: block;
    background-image:
        linear-gradient(
            90deg,
            #fff8f0 0%,
            rgba(255, 248, 240, 0.3) 24%,
            rgba(255, 248, 240, 0) 52%
        ),
        var(--home-tradie-cta-bg-image);
    background-position: 80% center;
    background-size: cover;
}

@media (max-width: 900px) {
    .home-advertise__layout {
        grid-template-columns: 1fr !important;
    }

    .home-advertise__proof {
        max-width: 100rem;
    }

    .home-tradie-cta__panel {
        grid-template-columns: 1fr;
    }

    .home-tradie-cta__panel > div.home-tradie-cta__image {
        min-height: 260px;
        order: -1;
        background-image:
            linear-gradient(0deg, #fff8f0 0%, rgba(255, 248, 240, 0) 38%),
            var(--home-tradie-cta-bg-image);
        background-position: center 48%;
    }
}

@media (max-width: 767px) {
    .home-advertise,
    .home-tradie-cta {
        padding-block: 0.65rem;
    }

    .home-advertise {
        padding-top: 3rem;
    }

    .home-tradie-cta {
        padding-bottom: 3rem;
    }

    .home-advertise__panel,
    .home-tradie-cta__panel {
        min-height: 0;
        border-radius: 18px;
    }

    .home-advertise__panel {
        padding: 1.6rem;
        background-image:
            linear-gradient(rgba(13, 25, 43, 0.94), rgba(13, 25, 43, 0.97)),
            var(--home-advertise-bg-image);
    }

    .home-advertise__layout {
        gap: 2rem;
    }

    .home-advertise__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-advertise__panel .advertise-spotlight__stat {
        min-height: 132px;
        padding: 1rem;
    }

    .home-tradie-cta__content {
        padding: 0rem;
    }

    .home-tradie-cta__panel > div.home-tradie-cta__image {
        min-height: 220px;
    }

    .home-panel-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-panel-actions .home-action {
        width: 100%;
    }
}

@media (max-width: 389px) {
    .home-advertise__stats {
        grid-template-columns: 1fr;
    }
}

/* Awards page — editorial honours directory */
.awards-page {
    --awards-navy: #132844;
    --awards-navy-soft: #203d60;
    --awards-orange: #f5822d;
    --awards-orange-deep: #c9560d;
    --awards-orange-soft: #fff4eb;
    --awards-line: #dde4ec;
    --awards-muted: #69788c;
    color: var(--awards-navy);
}

.awards-page__canvas {
    background: #f4f6f9;
}

.awards-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 84% 8%,
            rgba(245, 130, 45, 0.22),
            transparent 28%
        ),
        radial-gradient(
            circle at 8% 110%,
            rgba(255, 255, 255, 0.08),
            transparent 34%
        ),
        linear-gradient(135deg, #10223b, var(--awards-navy-soft));
}

.awards-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.awards-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: var(--awards-orange);
}

.awards-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    min-height: 21rem;
    padding-top: 3.5rem;
    padding-bottom: 5rem;
}

.awards-hero__badge {
    display: grid;
    place-items: center;
    width: 5.2rem;
    height: 5.2rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 18px 34px rgba(4, 15, 28, 0.2);
}

.awards-eyebrow,
.awards-controls__eyebrow,
.awards-empty__eyebrow,
.awards-trade-group__heading p {
    margin: 0;
    color: var(--awards-orange);
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.awards-hero__copy h1 {
    max-width: 44rem;
    margin: 0.45rem 0 0.8rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.45rem);
    font-weight: 800;
    line-height: 1.04;
}

.awards-hero__copy > p:last-child {
    max-width: 43rem;
    margin: 0;
    color: #cbd6e2;
    font-size: 0.97rem;
    line-height: 1.7;
}

.awards-hero__facts {
    display: grid;
    gap: 0.55rem;
    min-width: 11.5rem;
}

.awards-hero__facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    background: rgba(10, 29, 51, 0.46);
}

.awards-hero__facts strong {
    color: #fff;
    font-size: 0.86rem;
}

.awards-hero__facts span {
    color: #afbdcd;
    font-size: 0.8rem;
    white-space: nowrap;
    text-transform: capitalize;
}

.awards-shell {
    position: relative;
    z-index: 2;
    margin-top: -2.5rem;
    padding-bottom: 4rem;
}

.awards-controls {
    padding: 1.6rem;
    border: 1px solid var(--awards-line);
    border-top: 4px solid var(--awards-orange);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(15, 35, 59, 0.1);
}

.awards-controls__heading,
.awards-filter-row,
.awards-summary,
.awards-trade-group__heading,
.award-winner-card__topline,
.award-metric__label,
.awards-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.awards-controls__heading h2 {
    margin: 0.2rem 0 0;
    color: var(--awards-navy);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.awards-summary__period {
    padding: 0.45rem 0.8rem;
    color: var(--awards-orange-deep);
    border: 1px solid #f2cfb5;
    border-radius: 999px;
    background: var(--awards-orange-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.awards-tier-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.awards-tier-tab {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.82rem;
    color: #526176;
    border: 1px solid var(--awards-line);
    border-radius: 0.85rem;
    background: #f7f9fb;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.awards-tier-tab:hover {
    transform: translateY(-2px);
    border-color: #efbb95;
    background: #fff8f2;
}

.awards-tier-tab--active {
    color: #fff;
    border-color: var(--awards-navy);
    background: var(--awards-navy);
    box-shadow: 0 10px 22px rgba(19, 40, 68, 0.18);
}

.awards-tier-tab--active:hover {
    border-color: #1b3a60;
    background: #1b3a60;
}

.awards-tier-tab__icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    color: var(--awards-orange-deep);
    border-radius: 0.65rem;
    background: #ffeadb;
}

.awards-tier-tab--active .awards-tier-tab__icon {
    color: #ffd3b4;
    background: rgba(245, 130, 45, 0.18);
}

.awards-tier-tab strong,
.awards-tier-tab small {
    display: block;
}

.awards-tier-tab strong {
    font-size: 0.8rem;
    line-height: 1.3;
}

.awards-tier-tab small {
    margin-top: 0.14rem;
    color: inherit;
    font-size: 0.66rem;
    opacity: 0.7;
}

.awards-filter-row {
    align-items: flex-end;
    margin-top: 1.2rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e8edf2;
}

.awards-summary {
    justify-content: flex-start;
}

.awards-summary__icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    color: #315a83;
    border-radius: 0.72rem;
    background: #eef4fa;
}

.awards-summary__title {
    margin: 0;
    color: var(--awards-navy);
    font-size: 0.8rem;
    font-weight: 800;
}

.awards-summary p:last-child {
    margin: 0.15rem 0 0;
    color: var(--awards-muted);
    font-size: 0.7rem;
}

.awards-state-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.awards-state-tab {
    display: inline-grid;
    place-items: center;
    min-width: 2.45rem;
    height: 2.25rem;
    padding: 0 0.55rem;
    color: #637185;
    border: 1px solid var(--awards-line);
    border-radius: 0.65rem;
    background: #fff;
    font-size: 0.7rem;
    font-weight: 750;
    text-decoration: none;
}

.awards-state-tab:hover {
    color: var(--awards-orange-deep);
    border-color: #efbb95;
    background: #fff8f2;
}

.awards-state-tab--active {
    color: #fff;
    border-color: var(--awards-orange);
    background: var(--awards-orange);
    box-shadow: 0 7px 16px rgba(245, 130, 45, 0.2);
}

.awards-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.1rem;
    margin-top: 1.35rem;
}

.awards-trade-group {
    overflow: hidden;
    border: 1px solid var(--awards-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 9px 26px rgba(15, 35, 59, 0.055);
}

.awards-trade-group__heading {
    justify-content: flex-start;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e8edf2;
    background: #fbfcfd;
}

.awards-trade-group__heading > span {
    width: 0.28rem;
    height: 2.25rem;
    flex: 0 0 0.28rem;
    border-radius: 999px;
    background: var(--awards-orange);
}

.awards-trade-group__heading > div {
    flex: 1;
}

.awards-trade-group__heading h2 {
    margin: 0.12rem 0 0;
    color: var(--awards-navy);
    font-size: 0.92rem;
    font-weight: 800;
}

.awards-trade-group__heading > strong {
    color: var(--awards-muted);
    font-size: 0.67rem;
    font-weight: 700;
}

.awards-winners {
    display: grid;
}

.award-winner-card {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    min-width: 0;
    border-bottom: 1px solid #e8edf2;
    background: #fff;
}

.award-winner-card:last-child {
    border-bottom: 0;
}

.award-winner-card__rank {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: #536276;
    border-right: 1px solid #e8edf2;
    background: #f6f8fa;
}

.award-winner-card--gold .award-winner-card__rank {
    color: #99531b;
    background: #fff3e6;
}

.award-winner-card--silver .award-winner-card__rank {
    color: #4e6074;
    background: #eef2f6;
}

.award-winner-card--bronze .award-winner-card__rank {
    color: #8a5036;
    background: #f8eee9;
}

.award-winner-card__rank small {
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.award-winner-card__rank strong {
    margin-top: 0.12rem;
    font-size: 1.3rem;
    letter-spacing: -0.04em;
}

.award-winner-card__body {
    min-width: 0;
    padding: 1.05rem 1.1rem 1.1rem;
}

.award-winner-card__topline {
    align-items: flex-start;
}

.award-winner-card__name {
    overflow: hidden;
    margin: 0;
    color: var(--awards-navy);
    font-size: 0.92rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.award-winner-card__location {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    margin: 0.24rem 0 0;
    color: var(--awards-muted);
    font-size: 0.67rem;
}

.award-winner-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex: 0 0 auto;
    padding: 0.3rem 0.48rem;
    color: #315a83;
    border: 1px solid #d5e2ee;
    border-radius: 999px;
    background: #eef4fa;
    font-size: 0.61rem;
    font-weight: 800;
}

.award-winner-card__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 0.8rem;
    margin-top: 0.85rem;
}

.award-metric__label span,
.award-winner-card__endorsement small {
    color: var(--awards-muted);
    font-size: 0.6rem;
    font-weight: 650;
}

.award-metric__label strong {
    color: var(--awards-navy);
    font-size: 0.62rem;
}

.award-metric__track {
    overflow: hidden;
    height: 0.3rem;
    margin-top: 0.33rem;
    border-radius: 999px;
    background: #e9eef3;
}

.award-metric__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--awards-orange), #f3a160);
}

.award-winner-card__endorsement {
    padding-left: 0.8rem;
    border-left: 1px solid #e2e8ee;
    text-align: right;
}

.award-winner-card__endorsement small,
.award-winner-card__endorsement strong {
    display: block;
}

.award-winner-card__endorsement strong {
    margin-top: 0.08rem;
    color: var(--awards-navy);
    font-size: 0.9rem;
}

.award-winner-card__blurb {
    margin: 0.75rem 0 0;
    padding-top: 0.7rem;
    color: var(--awards-muted);
    border-top: 1px solid #edf1f4;
    font-size: 0.69rem;
    line-height: 1.55;
}

.awards-empty {
    max-width: 100rem;
    margin: 1.35rem auto 0;
    padding: 3.4rem 2rem;
    border: 1px solid var(--awards-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 35, 59, 0.06);
    text-align: center;
}

.awards-empty__icon {
    display: grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    margin: 0 auto 1rem;
    color: var(--awards-orange-deep);
    border-radius: 1rem;
    background: var(--awards-orange-soft);
}

.awards-empty h2 {
    margin: 0.35rem 0 0.45rem;
    color: var(--awards-navy);
    font-size: 1.1rem;
    font-weight: 800;
}

.awards-empty > p:last-child {
    max-width: 31rem;
    margin: 0 auto;
    color: var(--awards-muted);
    font-size: 0.8rem;
    line-height: 1.65;
}

.awards-footer-cta {
    margin-top: 1.35rem;
    padding: 1.25rem 1.35rem;
    color: #fff;
    border-radius: 1rem;
    background: linear-gradient(135deg, #142b48, #203f62);
    box-shadow: 0 12px 30px rgba(15, 35, 59, 0.12);
}

.awards-footer-cta p {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 800;
}

.awards-footer-cta span {
    color: #bdcad7;
    font-size: 0.7rem;
}

.awards-footer-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.55rem;
    padding: 0 1rem;
    color: #fff;
    border-radius: 0.7rem;
    background: var(--awards-orange);
    font-size: 0.74rem;
    font-weight: 800;
    text-decoration: none;
}

.awards-footer-cta a:hover {
    background: #df6b19;
}

.awards-page a:focus-visible {
    outline: 3px solid rgba(245, 130, 45, 0.32);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .awards-hero__inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .awards-hero__facts {
        display: none;
    }

    .awards-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .awards-hero__inner {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: 0;
        padding-top: 3.2rem;
        padding-bottom: 4.6rem;
        text-align: center;
    }

    .awards-hero__badge {
        width: 4.1rem;
        height: 4.1rem;
        margin: auto;
    }

    .awards-hero__copy > p:last-child {
        font-size: 0.86rem;
    }

    .awards-controls {
        padding: 1rem;
    }

    .awards-tier-tabs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }

    .awards-tier-tab {
        min-width: 12rem;
    }

    .awards-filter-row,
    .awards-footer-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .awards-state-tabs {
        justify-content: flex-start;
    }

    .award-winner-card {
        grid-template-columns: 3.4rem minmax(0, 1fr);
    }

    .award-winner-card__topline,
    .award-winner-card__metrics {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .award-winner-card__topline {
        flex-direction: column;
        gap: 0.5rem;
    }

    .award-winner-card__endorsement {
        padding: 0.6rem 0 0;
        border-top: 1px solid #e2e8ee;
        border-left: 0;
        text-align: left;
    }

    .awards-footer-cta a {
        justify-content: center;
        width: 100%;
    }
}

/* Remap the legacy blue action utility to the current brand accent. */
.text-blue-600 {
    color: #f78815;
}

.bg-blue-600 {
    background-color: #f78815;
}

.border-blue-600 {
    border-color: #f78815;
}

.hover\:bg-blue-600:hover {
    background-color: #f78815;
}

/* Shared inner-page title and search header */
.inner-page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(3.5rem, 6vw, 5.25rem);
    border-bottom: 1px solid #f0dfce;
    background: #fff8f1;
    text-align: center;
}

.inner-page-hero--search {
    z-index: 10;
    overflow: visible;
}

.inner-page-hero--search .inner-page-hero__inner,
.inner-page-hero--search .inner-page-hero__search-card,
.inner-page-hero--search .inner-page-hero__search-row,
.inner-page-hero--search .inner-page-hero__search-row > div {
    overflow: visible;
}

.inner-page-hero--search .home-search__suggest {
    z-index: 60;
}

.inner-page-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(
            90deg,
            rgba(255, 248, 241, 0.98) 0%,
            rgba(255, 248, 241, 0.94) 48%,
            rgba(255, 248, 241, 0.58) 75%,
            rgba(255, 248, 241, 0.72) 100%
        ),
        url("/site/img/home-hero-tradie-2026.jpg");
    background-position: center 48%;
    background-size: cover;
}

/* .inner-page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 3px;
  background: #f58220;
} */

.inner-page-hero__inner {
    position: relative;
    z-index: 1;
}

.inner-page-hero__inner > h1 {
    max-width: 62rem;
    margin: 0 auto;
    color: #152238;
    font-family: var(--font-display, inherit);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
    text-wrap: balance;
}

.inner-page-hero__inner > p {
    max-width: 43rem;
    margin-top: 1rem;
    margin-inline: auto;
    color: #606978;
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    line-height: 1.65;
    text-wrap: balance;
}

.inner-page-hero__search-card {
    width: min(100%, 54rem);
    margin-top: 2rem;
    padding: 0.75rem;
    border-color: rgba(21, 34, 56, 0.12);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 18px 45px rgba(50, 39, 28, 0.11),
        0 2px 8px rgba(50, 39, 28, 0.05);
    backdrop-filter: blur(10px);
}

.inner-page-hero__search-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr) auto;
    align-items: stretch;
    gap: 0.65rem;
}

.inner-page-hero--search-tools .inner-page-hero__search-row {
    grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr) auto auto;
}

.inner-page-hero__search-row > div {
    min-width: 0;
}

.inner-page-hero__search-card input,
.inner-page-hero__search-card select,
.inner-page-hero__search-card button {
    min-height: 3rem;
    height: 3rem;
    border-radius: 11px;
}

.inner-page-hero__search-card .select2.select2-container,
.inner-page-hero__search-card
    .select2.select2-container
    .select2-selection--single {
    min-height: 3rem !important;
    height: 3rem !important;
}

.inner-page-hero__search-card
    .select2.select2-container
    .select2-selection--single {
    border-radius: 11px;
}

body
    .inner-page-hero__search-card
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    display: flex;
    height: 100%;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    line-height: normal;
}

.inner-page-hero__search-card [data-select2-dropdown-host] {
    position: relative;
    min-width: 0;
    height: 3rem;
}

/* Select2 mounts the open dropdown on a sibling span (no .select2 class). */
.inner-page-hero__search-card
    [data-select2-dropdown-host]
    > .select2-container--open:not(.select2) {
    right: 0;
    left: 0 !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    z-index: 100;
}

.inner-page-hero__search-card input,
.inner-page-hero__search-card select {
    height: 3rem;
    border-color: #dce1e7;
    background-color: #fff;
    box-shadow: none;
}

.inner-page-hero__search-card input:hover,
.inner-page-hero__search-card select:hover {
    border-color: #c5ccd5;
}

.inner-page-hero__search-card input:focus,
.inner-page-hero__search-card select:focus {
    border-color: #f58220;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.16);
}

.inner-page-hero__search-card button[type="submit"],
.inner-page-hero__search-card .bg-orange-500 {
    min-width: 7.25rem;
    padding-inline: 1.25rem;
    color: #fff;
    border-color: #d9660d;
    background: #e87513;
    box-shadow: 0 8px 18px rgba(232, 117, 19, 0.2);
}

.inner-page-hero__search-card button[type="submit"]:hover,
.inner-page-hero__search-card .bg-orange-500:hover {
    background: #cf610a;
}

.inner-page-hero__filter-action {
    padding-inline: 0.9rem;
    color: #4f5967;
    background: #fff;
}

.inner-page-hero__filter-action:hover {
    color: #a84400;
    border-color: #f4c99f;
    background: #fff4e8;
}

.inner-page-hero__search-card > p {
    margin: 0.55rem 0.25rem 0;
    color: #727b88;
    line-height: 1.45;
}

.directory-filter-card {
    width: min(100%, 72rem);
}

.directory-filter-card .directory-filter-row {
    grid-template-columns:
        minmax(190px, 1.25fr) minmax(180px, 1fr) minmax(180px, 1fr)
        auto auto;
}

/* Keep Select2's selected label and controls inside each responsive grid cell.
   The clear button is the first child of the rendered label, so allowing that
   label to remain a flex row can push the selected text across adjacent fields. */
.directory-filter-card .select2.select2-container {
    display: block;
    width: 100% !important;
    max-width: 100%;
    text-align: left;
}

.directory-filter-card
    [data-select2-dropdown-host]
    > .select2-container--open:not(.select2) {
    height: auto !important;
    min-height: 0 !important;
}

.directory-filter-card .directory-filter__select,
.directory-filter-card .select2-selection--single {
    width: 100%;
    min-width: 0;
    min-height: 3rem !important;
    height: 3rem !important;
    border: 1px solid #dce1e7 !important;
    border-radius: 11px !important;
    background-color: #fff !important;
    color: #39465a;
    text-align: left;
    box-shadow: none !important;
}

.directory-filter-card .select2-selection--single:hover {
    border-color: #c5ccd5 !important;
}

body
    .directory-filter-card
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    padding-right: 4.5rem;
    padding-left: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #5d6470;
    text-align: left;
    place-content: center;
}

body
    .directory-filter-card
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    right: 0.75rem;
}

body
    .directory-filter-card
    .select2-container--default.select2-container--focus
    .select2-selection--single,
body
    .directory-filter-card
    .select2-container--default.select2-container--open
    .select2-selection--single {
    border-color: #f58220 !important;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.16) !important;
}

.directory-filter-card .select2-dropdown,
.directory-filter-card .select2-results__option {
    text-align: left;
}

/* Select2 calculates its dropdown width from option content. Long trade names
   must never make the directory page wider on phones or tablets. */
@media (max-width: 1023px) {
    .directory-filter-card,
    .directory-filter-card .directory-filter-row,
    .directory-filter-card .directory-filter-row > div,
    .directory-filter-card [data-select2-dropdown-host] {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .directory-filter-card
        [data-select2-dropdown-host]
        > .select2.select2-container,
    .directory-filter-card
        [data-select2-dropdown-host]
        > .select2-container--open:not(.select2),
    .directory-filter-card [data-select2-dropdown-host] .select2-dropdown {
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .directory-filter-card .select2-results,
    .directory-filter-card .select2-results__options {
        max-width: 100%;
        overflow-x: hidden;
    }

    .directory-filter-card .select2-results__option {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
        word-break: normal;
    }

    .directory-filter-card .select2-search--dropdown,
    .directory-filter-card .select2-search__field {
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
}

body
    .directory-filter-card
    .select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    position: absolute;
    top: 50%;
    right: 2.5rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
    padding: 0;
    color: #7b8798;
    border: 0;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

 

.directory-filter__reset {
    min-width: 6.5rem;
    min-height: 3rem;
    height: 3rem;
    padding-inline: 1.15rem;
    border: 1px solid #ee7b21;
    color: #39465a;
    background: #fff;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.directory-filter__reset:hover {
    border-color: #cf610a;
    color: #a84400;
    background: #fff8f1;
}

@media (max-width: 1023px) and (min-width: 768px) {
    .directory-filter-card .directory-filter-row {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .directory-filter-card .directory-filter-row > div {
        grid-column: span 2;
    }

    .directory-filter-card .directory-filter-row > button,
    .directory-filter-card .directory-filter__reset {
        grid-column: span 3;
        width: 100%;
    }
}

.inner-page-hero--simple {
    padding-block: clamp(3.75rem, 6vw, 5.5rem);
}

.inner-page-hero--simple .inner-page-hero__inner > p {
    margin-top: 1rem;
}

.inner-page-hero--content {
    text-align: left;
}

.inner-page-hero--content .inner-page-hero__inner > h1,
.inner-page-hero--content .inner-page-hero__inner > p {
    margin-left: 0;
    margin-right: 0;
}

.inner-page-hero--content .inner-page-hero__inner > h1 {
    max-width: 52rem;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
}

.inner-page-hero--awards {
    color: #fff;
    background: #162238;
}

.inner-page-hero--awards::before {
    background-image:
        linear-gradient(135deg, rgba(22, 34, 56, 0.98), rgba(35, 50, 75, 0.94)),
        url("/site/img/home-hero-tradie-2026.jpg");
    background-position: center 42%;
}

.inner-page-hero--awards .inner-page-hero__inner > h1,
.inner-page-hero--awards .inner-page-hero__inner > p {
    color: #fff;
}

.inner-page-hero--awards .inner-page-hero__inner > p {
    opacity: 0.82;
}

@media (max-width: 767px) {
    .inner-page-hero {
        padding-block: 2.8rem 2.4rem;
    }

    .inner-page-hero::before {
        background-image:
            linear-gradient(
                rgba(255, 248, 241, 0.95),
                rgba(255, 248, 241, 0.98)
            ),
            url("/site/img/home-hero-tradie-2026.jpg");
        background-position: 62% center;
    }

    .inner-page-hero__inner > h1 {
        font-size: clamp(1.9rem, 9vw, 2.45rem);
        line-height: 1.1;
    }

    .inner-page-hero__inner > p {
        margin-top: 0.8rem;
        font-size: 0.94rem;
    }

    .inner-page-hero__search-card {
        margin-top: 1.5rem;
        padding: 0.7rem;
        border-radius: 15px;
    }

    .inner-page-hero__search-row,
    .inner-page-hero--search-tools .inner-page-hero__search-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .directory-filter-card .directory-filter-row {
        grid-template-columns: 1fr;
    }

    .inner-page-hero__search-card button,
    .inner-page-hero__search-card .bg-orange-500 {
        width: 100%;
    }

    .directory-filter__reset {
        width: 100%;
    }

    .inner-page-hero--awards::before {
        background-image:
            linear-gradient(rgba(22, 34, 56, 0.96), rgba(22, 34, 56, 0.98)),
            url("/site/img/home-hero-tradie-2026.jpg");
    }
}

/* ==========================================================================
   Advertise wizard — focused, responsive four-step conversion flow
   ========================================================================== */
.advertise-wizard {
    --advertise-ink: #142033;
    --advertise-muted: #667085;
    --advertise-line: #e5e7eb;
    --advertise-orange: #f58220;
    --advertise-orange-dark: #c95608;
    overflow-x: clip;
}

.advertise-wizard__surface {
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(245, 130, 32, 0.09),
            transparent 30rem
        ),
        #f7f9fc;
}

.advertise-wizard__hero {
    position: relative;
    padding: clamp(2.8rem, 5vw, 4.5rem) 1rem clamp(3.8rem, 7vw, 5.8rem);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(118deg, #111d30 0%, #1c2a41 70%, #253650 100%);
}

.advertise-wizard__hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 50rem);
    margin-inline: auto;
    text-align: center;
}

.advertise-wizard__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #ffd4ae;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.advertise-wizard__hero h1 {
    margin: 0.9rem 0 0;
    color: #fff;
    font-family: var(--font-display, inherit);
    font-size: clamp(2.15rem, 4.4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.advertise-wizard__hero-inner > p {
    max-width: 42rem;
    margin: 0.9rem auto 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(0.95rem, 1.5vw, 1.06rem);
    line-height: 1.65;
}

.advertise-wizard__reach {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.2rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
}

.advertise-wizard__reach {
    gap: 0.75rem;
}

.advertise-wizard__reach strong {
    color: #fff;
}

.advertise-wizard__reach > span[aria-hidden="true"] {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--advertise-orange);
}

/* Advertise flow uses the same light editorial hero as the other inner pages. */
.advertise-wizard__hero {
    padding: clamp(3rem, 5vw, 4.25rem) 1rem clamp(4rem, 6vw, 5.25rem);
    color: #38506d;
    border-bottom: 1px solid #efdfcf;
    background: linear-gradient(
        180deg,
        #fff8f1 0%,
        #fffdfa 58%,
        #f8f9fb 100%
    ) !important;
}

.advertise-wizard__hero h1 {
    color: #10233d !important;
    font-size: clamp(2.15rem, 4.2vw, 3.15rem);
    line-height: 1.1;
}

.advertise-wizard__hero-inner > p {
    color: #5a6a7f !important;
}

.advertise-wizard__reach {
    padding: 0.45rem 0.75rem;
    border: 1px solid #eadfd5;
    border-radius: 999px;
    color: #53657c !important;
    background: rgba(255, 255, 255, 0.72);
}

.advertise-wizard__reach strong {
    color: #10233d;
}

.advertise-progress-shell {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 2rem), 58rem);
    margin: -2rem auto 0;
    padding: 1.1rem 1.25rem 1rem;
    border: 1px solid rgba(20, 32, 51, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 44px rgba(20, 32, 51, 0.1);
}

.advertise-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.advertise-progress__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: #8a94a4;
    text-align: center;
}

.advertise-progress__step:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 1.05rem;
    left: calc(50% + 1.35rem);
    width: calc(100% - 2.7rem);
    height: 2px;
    content: "";
    border-radius: 999px;
    background: #dce2ea;
}

.advertise-progress__step.is-complete:not(:last-child)::after {
    background: #f6b06e;
}

.advertise-progress__marker {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 2.15rem;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border: 1px solid #dce2ea;
    border-radius: 50%;
    background: #f2f4f7;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
}

.advertise-progress__marker svg {
    width: 0.95rem;
    height: 0.95rem;
}

.advertise-progress__step.is-current .advertise-progress__marker {
    border-color: var(--advertise-orange);
    color: #fff;
    background: var(--advertise-orange);
    box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.13);
}

.advertise-progress__step.is-complete .advertise-progress__marker {
    border-color: #d5660b;
    color: #fff;
    background: #d5660b;
}

.advertise-progress__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.advertise-progress__text small {
    margin-bottom: 0.15rem;
    color: #98a2b3;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.advertise-progress__text strong {
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.3;
    white-space: normal;
}

.advertise-progress__step.is-current .advertise-progress__text strong,
.advertise-progress__step.is-complete .advertise-progress__text strong {
    color: var(--advertise-ink);
}

.advertise-wizard__content {
    width: min(calc(100% - 2rem), 52rem);
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3rem) 0 4rem;
}

.advertise-wizard__card {
    padding: clamp(1.35rem, 4vw, 2.5rem);
    border: 1px solid rgba(20, 32, 51, 0.1);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 18px 50px rgba(20, 32, 51, 0.07);
}

.advertise-wizard__card-heading {
    margin-bottom: 1.8rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid #edf0f4;
}

.advertise-wizard__card-heading > span {
    color: var(--advertise-orange-dark);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.advertise-wizard__card-heading h2 {
    margin: 0.35rem 0 0;
    color: var(--advertise-ink);
    font-family: var(--font-display, inherit);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.advertise-wizard__card-heading p {
    margin: 0.45rem 0 0;
    color: var(--advertise-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.advertise-wizard__alert {
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
}

.advertise-wizard__alert--error {
    border: 1px solid #fecaca;
    color: #b42318;
    background: #fff1f0;
}

.advertise-wizard__field-group + .advertise-wizard__field-group {
    margin-top: 1.5rem;
}

.advertise-wizard__field-group[data-select2-dropdown-host] {
    position: relative;
}

.advertise-wizard__label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--advertise-ink);
    font-size: 0.84rem;
    font-weight: 750;
}

.advertise-wizard__group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.advertise-wizard__group-option {
    padding: 1rem;
    border: 1px solid #dfe4eb;
    border-radius: 0.85rem;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.advertise-wizard__group-option:hover {
    border-color: #f4b77e;
    transform: translateY(-1px);
}

.advertise-wizard__group-option.is-selected,
.advertise-wizard__group-option:has(input:checked) {
    border-color: var(--advertise-orange);
    background: #fff8f1;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.1);
}

.advertise-wizard__select {
    width: 100%;
    min-height: 3rem;
}

.advertise-wizard .select2-container {
    display: block;
    max-width: 100%;
}

.advertise-wizard .select2-container .select2-selection--single {
    min-height: 3rem;
    border-color: #d7dee8;
    border-radius: 0.7rem;
}

.select2-dropdown {
    max-width: calc(100vw - 1.5rem);
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: min(16rem, 42vh);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    width: 100%;
    box-sizing: border-box;
}

.advertise-wizard__card
    input:not([type="radio"]):not([type="range"]):not([type="hidden"]),
.advertise-wizard__card textarea {
    border-color: #d7dee8;
    border-radius: 0;
    background: #fff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.advertise-wizard__card
    input:not([type="radio"]):not([type="range"]):not([type="hidden"]):focus,
.advertise-wizard__card textarea:focus {
    border-color: var(--advertise-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.14);
}

.advertise-wizard__notice {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #f4cfaa;
    border-radius: 0.8rem;
    color: #7c3a0a;
    background: #fff8f1;
    font-size: 0.84rem;
    line-height: 1.5;
}

.advertise-wizard__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.4rem;
    border-top: 1px solid #edf0f4;
}

.advertise-wizard__actions--end {
    justify-content: flex-end;
}

.advertise-wizard__button {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    font-size: 0.84rem;
    font-weight: 750;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.advertise-wizard__button--primary {
    color: #fff;
    background: linear-gradient(135deg, #f58a2d, #e66f0b);
    box-shadow: 0 8px 20px rgba(230, 111, 11, 0.2);
}

.advertise-wizard__button--primary:hover:not(:disabled) {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(230, 111, 11, 0.28);
}

.advertise-wizard__button--secondary {
    border-color: #d8dee7;
    color: #344054;
    background: #fff;
}

.advertise-wizard__button--secondary:hover {
    border-color: #adb7c5;
    color: var(--advertise-ink);
    background: #f8fafc;
}

.advertise-wizard__button:disabled {
    cursor: not-allowed;
    color: #8a94a4;
    background: #e9edf2;
    box-shadow: none;
}

/* Order summary / sample preview: long unbroken strings must wrap. */
.advertise-wizard__summary-value {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.advertise-wizard__sample-preview {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-line;
}

/* Corporate takeover — TTN editorial styling on the shared advertise flow. */
 
 

.corporate-wizard__eyebrow {
    gap: 0.45rem;
    border-color: #f0c69e;
    color: #a84400;
    background: #fff4e8;
}

.corporate-wizard__eyebrow svg {
    width: 0.95rem;
    height: 0.95rem;
}

.corporate-wizard__reach {
    flex-wrap: wrap;
}

.corporate-progress-shell {
    width: min(calc(100% - 2rem), 48rem);
}

.corporate-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.corporate-wizard__content {
    width: min(calc(100% - 2rem), 58rem);
}

.corporate-wizard__card {
    border-top: 3px solid var(--advertise-orange);
}

.corporate-wizard__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.corporate-wizard__benefits article {
    display: flex;
    min-width: 0;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px solid #f1dfcf;
    border-radius: 0.9rem;
    background: #fffaf5;
}

.corporate-wizard__benefits article > span {
    display: grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.65rem;
    color: #c95608;
    background: #ffead6;
}

.corporate-wizard__benefits svg {
    width: 1rem;
    height: 1rem;
}

.corporate-wizard__benefits h3 {
    margin: 0;
    color: var(--advertise-ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.corporate-wizard__benefits p {
    margin: 0.25rem 0 0;
    color: var(--advertise-muted);
    font-size: 0.74rem;
    line-height: 1.4;
}

.corporate-wizard__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1rem;
}

.corporate-wizard__form-grid .advertise-wizard__field-group {
    margin-top: 0;
}

.corporate-wizard__field--wide {
    grid-column: 1 / -1;
}

.corporate-wizard__control {
    display: block;
    width: 100%;
    padding: 0.72rem 0.85rem;
    border: 1px solid #d7dee8 !important;
    border-radius: 0.7rem !important;
    color: #142033;
    background: #fff !important;
    font-size: 0.88rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(20, 32, 51, 0.03);
}

.corporate-wizard__control:not(textarea) {
    min-height: 2.85rem;
}

.corporate-wizard__textarea {
    min-height: 9rem;
    resize: vertical;
}

.corporate-wizard__control:focus {
    border-color: var(--advertise-orange) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.14) !important;
}

.corporate-wizard__field-help {
    margin: 0.45rem 0 0.55rem;
    color: #7b8798;
    font-size: 0.75rem;
    line-height: 1.45;
}

.corporate-wizard__optional {
    margin-left: 0.25rem;
    color: #8a94a4;
    font-size: 0.7rem;
    font-weight: 500;
}

.corporate-wizard__upload {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px dashed #cbd3df;
    border-radius: 0.8rem;
    cursor: pointer;
    background: #fafbfc;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.corporate-wizard__upload:hover {
    border-color: var(--advertise-orange);
    background: #fff8f1;
}

.corporate-wizard__upload-icon {
    display: grid;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 50%;
    color: #c95608;
    background: #ffead6;
}

.corporate-wizard__upload-icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

.corporate-wizard__upload > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    color: var(--advertise-ink);
    font-size: 0.82rem;
}

.corporate-wizard__upload small {
    margin-top: 0.15rem;
    color: #7b8798;
    font-size: 0.7rem;
}

.corporate-wizard__upload input {
    margin-left: auto;
    max-width: 12rem;
    color: transparent;
    font-size: 0;
}

.corporate-wizard__upload input::file-selector-button {
    padding: 0.55rem 0.75rem;
    border: 1px solid #d8dee7;
    border-radius: 0.55rem;
    color: #344054;
    background: #fff;
    font-size: 0.76rem;
    font-weight: 700;
}

.corporate-wizard__assurance {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 auto 0 0;
    color: #667085;
    font-size: 0.76rem;
}

.corporate-wizard__assurance svg,
.corporate-wizard .advertise-wizard__button svg {
    width: 1rem;
    height: 1rem;
}

.corporate-wizard__split,
.corporate-wizard__checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
    gap: 2rem;
}

.corporate-wizard__packages {
    display: grid;
    gap: 0.8rem;
}

.corporate-wizard__package {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid #dfe4eb;
    border-radius: 0.9rem;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.corporate-wizard__package:hover {
    border-color: #f0b47f;
}

.corporate-wizard__package.is-selected,
.corporate-wizard__package:has(input:checked) {
    border-color: var(--advertise-orange);
    background: #fffaf5;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.1);
}

.corporate-wizard__package input {
    position: absolute;
    opacity: 0;
}

.corporate-wizard__package-radio {
    width: 1.15rem;
    height: 1.15rem;
    border: 1.5px solid #aeb7c4;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 3px #fff;
}

.corporate-wizard__package:has(input:checked) .corporate-wizard__package-radio {
    border-color: var(--advertise-orange);
    background: var(--advertise-orange);
}

.corporate-wizard__package-body,
.corporate-wizard__package-heading {
    display: flex;
    min-width: 0;
}

.corporate-wizard__package-body {
    flex-direction: column;
}

.corporate-wizard__package-heading {
    align-items: center;
    gap: 0.45rem;
}

.corporate-wizard__package-heading strong {
    color: var(--advertise-ink);
    font-size: 0.9rem;
}

.corporate-wizard__package-heading em {
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    color: #087443;
    background: #eaf8f0;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.corporate-wizard__package-copy,
.corporate-wizard__package-meta {
    margin-top: 0.2rem;
    color: #667085;
    font-size: 0.73rem;
    line-height: 1.4;
}

.corporate-wizard__package-meta {
    color: #8a94a4;
}

.corporate-wizard__package-price {
    color: #c95608;
    font-size: 1.05rem;
    font-weight: 850;
    white-space: nowrap;
}

.corporate-wizard__date-field {
    margin-top: 1.5rem;
}

.corporate-wizard__notice {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    border: 1px solid #f1d3b7;
    border-radius: 0.75rem;
    color: #7c3a0a;
    background: #fff8f1;
    font-size: 0.75rem;
    line-height: 1.45;
}

.corporate-wizard__notice svg {
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
}

.corporate-wizard__notice span {
    display: flex;
    flex-direction: column;
}

.corporate-wizard__summary {
    align-self: start;
    padding: 1.25rem;
    border: 1px solid #e2e7ee;
    border-radius: 1rem;
    background: #f8fafc;
}

.corporate-wizard__summary-kicker {
    color: #c95608;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.corporate-wizard__summary h3 {
    margin: 0.35rem 0 1rem;
    color: var(--advertise-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.corporate-wizard__summary dl,
.corporate-wizard__order dl {
    display: grid;
    gap: 0.7rem;
    margin: 0;
}

.corporate-wizard__summary dl > div,
.corporate-wizard__order dl > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #667085;
    font-size: 0.78rem;
}

.corporate-wizard__summary dd,
.corporate-wizard__order dd {
    margin: 0;
    color: #344054;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.corporate-wizard__summary-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dfe4eb;
    color: var(--advertise-ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.corporate-wizard__summary-total strong {
    color: #c95608;
    font-size: 1.3rem;
    font-weight: 850;
}

.corporate-wizard__summary > p {
    margin: 0.8rem 0 0;
    color: #8a94a4;
    font-size: 0.68rem;
    line-height: 1.45;
}

.corporate-wizard__checkout {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
}

.corporate-wizard__order {
    padding: 1.25rem;
    border: 1px solid #e2e7ee;
    border-radius: 1rem;
    background: #f8fafc;
}

.corporate-wizard__order-heading {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.corporate-wizard__order-heading span,
.corporate-wizard__preview > span {
    color: #8a94a4;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.corporate-wizard__order-heading strong {
    margin-top: 0.25rem;
    color: var(--advertise-ink);
    font-size: 1.05rem;
}

.corporate-wizard__preview {
    margin-top: 1rem;
    padding: 0.85rem;
    border: 1px solid #e2e7ee;
    border-radius: 0.75rem;
    background: #fff;
}

.corporate-wizard__preview p {
    max-height: 8rem;
    margin: 0.4rem 0 0;
    overflow: auto;
    color: #4b5565;
    font-size: 0.78rem;
    line-height: 1.5;
}

.corporate-wizard__payment {
    min-width: 0;
}

.corporate-wizard__notice--success {
    border-color: #c8e8d5;
    color: #12633b;
    background: #eefaf3;
}

.corporate-wizard__payment-element {
    min-height: 3rem;
    margin: 1rem 0;
}

.corporate-wizard__pay-button {
    width: 100%;
}

.corporate-wizard__secure-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.7rem 0 0;
    color: #7b8798;
    font-size: 0.68rem;
    line-height: 1.4;
    text-align: center;
}

.corporate-wizard__secure-note svg {
    flex: 0 0 0.8rem;
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.1rem;
}

@media (max-width: 767px) {
    .advertise-wizard__hero {
        padding-top: 2.4rem;
        padding-bottom: 4rem;
    }

    .advertise-wizard__hero h1 {
        font-size: clamp(2rem, 10vw, 2.6rem);
    }

    .advertise-wizard__hero-inner > p {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .advertise-progress-shell {
        width: calc(100% - 1.25rem);
        margin-top: -1.65rem;
        padding: 0.8rem 0.35rem 0.9rem;
    }

    .advertise-progress__step {
        justify-content: center;
        gap: 0.45rem;
    }

    .advertise-progress__step:not(:last-child)::after {
        top: 0.95rem;
        right: auto;
        left: calc(50% + 1.2rem);
        width: calc(100% - 2.4rem);
    }

    .advertise-progress__marker {
        flex-basis: 2rem;
        width: 2rem;
        height: 2rem;
    }

    .advertise-progress__text {
        display: flex;
        width: 100%;
        padding-inline: 0.15rem;
    }

    .advertise-progress__text small {
        display: none;
    }

    .advertise-progress__text strong {
        max-width: 5rem;
        font-size: 0.64rem;
        line-height: 1.25;
    }

    .advertise-wizard__content {
        width: calc(100% - 1.25rem);
        padding-top: 1.5rem;
    }

    .advertise-wizard__group-grid {
        grid-template-columns: 1fr;
    }

    .advertise-wizard__actions,
    .advertise-wizard__actions--end {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .advertise-wizard__button {
        width: 100%;
    }

    .corporate-wizard__reach > span:last-child,
    .corporate-wizard__reach > span:nth-last-child(2) {
        display: none;
    }

    .corporate-wizard__benefits,
    .corporate-wizard__form-grid {
        grid-template-columns: 1fr;
    }

    .corporate-wizard__benefits {
        margin-bottom: 1.5rem;
    }

    .corporate-wizard__field--wide {
        grid-column: auto;
    }

    .corporate-wizard__upload {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .corporate-wizard__upload input {
        width: 100%;
        max-width: none;
        margin-left: 3rem;
    }

    .corporate-wizard__assurance {
        justify-content: center;
        margin: 0;
    }

    .corporate-wizard__split,
    .corporate-wizard__checkout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .corporate-wizard__package {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .corporate-wizard__package-price {
        grid-column: 2;
    }
}

/* Public browse pages — useful, compact zero-result states */
.browse-results__toolbar {
    padding: 1rem;
    border: 1px solid #e4e8ee;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 8px 26px rgba(20, 32, 51, 0.035);
}

.browse-empty-state.ttn-empty-state {
    position: relative;
    min-height: 19rem;
    padding: clamp(2rem, 5vw, 3.25rem) 1.5rem;
    overflow: hidden;
    border-color: #e1e6ed;
    border-radius: 1.15rem;
    background:
        radial-gradient(
            circle at 50% 12%,
            rgba(245, 130, 32, 0.09),
            transparent 10rem
        ),
        #fff;
    box-shadow: 0 14px 42px rgba(20, 32, 51, 0.05);
}

.browse-empty-state.ttn-empty-state::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 5rem;
    height: 3px;
    border-radius: 0 0 999px 999px;
    content: "";
    background: linear-gradient(90deg, #f9ad69, #f58220);
    transform: translateX(-50%);
}

.browse-empty-state .ttn-empty-state__visual {
    width: 7rem;
    margin-bottom: 1.1rem;
    filter: drop-shadow(0 10px 16px rgba(230, 111, 11, 0.08));
}

.browse-empty-state .ttn-empty-state__title {
    margin-bottom: 0.45rem;
    color: #142033;
    font-family: var(--font-display, inherit);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.browse-empty-state .ttn-empty-state__description {
    max-width: 34rem;
    color: #687386;
    font-size: 0.9rem;
}

.browse-empty-state .ttn-empty-state__actions {
    margin-top: 1.35rem;
}

.browse-empty-state__primary {
    display: inline-flex;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    font-size: 0.82rem;
    font-weight: 750;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.browse-empty-state__primary {
    color: #fff;
    background: linear-gradient(135deg, #f58a2d, #e66f0b);
    box-shadow: 0 8px 18px rgba(230, 111, 11, 0.2);
}

.browse-empty-state__primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(230, 111, 11, 0.26);
}

@media (max-width: 639px) {
    .browse-results__toolbar {
        padding: 0.85rem;
    }

    .browse-results__heading {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .browse-empty-state.ttn-empty-state {
        min-height: 17rem;
        padding: 2rem 1rem;
    }

    .browse-empty-state .ttn-empty-state__visual {
        width: 6rem;
    }

    .browse-empty-state .ttn-empty-state__actions,
    .browse-empty-state__primary {
        width: 100%;
    }
}

/* Header location picker — location state + dynamic suburb search. */
.header-location-trigger {
    display: inline-flex;
    min-width: 0;
    max-width: max-content;
    min-height: 2.35rem;
    align-items: center;
    gap: 0.42rem;
    margin-left: 1rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e3e7ec;
    border-radius: 999px;
    color: #657083;
    background: #f8f9fb;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.header-location-trigger:hover,
.header-location-trigger[aria-expanded="true"] {
    border-color: #edb383;
    color: #17243a;
    background: #fff8f2;
    box-shadow: 0 7px 18px rgba(23, 36, 58, 0.08);
}

.header-location-trigger:focus-visible {
    outline: 3px solid rgba(237, 121, 39, 0.25);
    outline-offset: 2px;
}

.header-location-trigger > svg:first-child {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: #e67525;
}

.header-location-trigger > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Keep the default label fully readable before a location is chosen. */
.header-location-trigger:not(.has-location) {
    max-width: none;
}

.header-location-trigger:not(.has-location) > span {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.header-location-trigger.has-location > span {
    color: #26364d;
    font-weight: 750;
}

.header-location-trigger__chevron {
    width: 0.8rem;
    height: 0.8rem;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.header-location-trigger[aria-expanded="true"]
    .header-location-trigger__chevron {
    transform: rotate(180deg);
}

.location-picker[hidden] {
    display: none;
}

.location-picker {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    align-items: start;
    justify-items: center;
    padding: min(10vh, 5.5rem) 1rem 1rem;
    overflow-y: auto;
    background: rgba(15, 23, 34, 0.58);
    backdrop-filter: blur(4px);
}

.location-picker__panel {
    width: min(50rem, 100%);
    max-height: min(42rem, calc(100vh - 2rem));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 28px 80px rgba(9, 18, 31, 0.28);
}

.location-picker__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.35rem 1rem;
    border-bottom: 1px solid #e9edf1;
}

.location-picker__eyebrow {
    margin: 0 0 0.28rem;
    color: #d86619;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.location-picker__header h2 {
    margin: 0;
    color: #17243a;
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.location-picker__close {
    display: inline-flex;
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 2.15rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e6eb;
    border-radius: 50%;
    color: #667184;
    background: #f8f9fa;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.location-picker__close:hover {
    color: #17243a;
    background: #eef1f4;
}

.location-picker__close svg {
    width: 0.95rem;
    height: 0.95rem;
}

.location-picker__search {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    margin: 1rem 1.35rem 0;
}

.location-picker__search-field {
    position: relative;
    display: block;
    flex: 1;
    min-width: 0;
}

.location-picker__search-field svg {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    width: 1rem;
    height: 1rem;
    color: #8b95a3;
    transform: translateY(-50%);
    pointer-events: none;
}

.location-picker__search-field input {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.7rem 0.9rem 0.7rem 2.45rem;
    border: 1px solid #dfe4ea;
    border-radius: 0.75rem;
    color: #24344b;
    background: #fff;
    font-size: 0.78rem;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.location-picker__search-field input:focus {
    border-color: #e98a45;
    box-shadow: 0 0 0 3px rgba(237, 121, 39, 0.13);
}

.location-picker__search-button {
    flex-shrink: 0;
    min-height: 2.85rem;
    padding: 0 1rem;
    border: 1px solid #d9660d;
    border-radius: 0.75rem;
    color: #fff;
    background: #e87513;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.location-picker__search-button:hover {
    background: #cf610a;
}

.location-picker__detect-wrap {
    margin: 0.75rem 1.35rem 0;
}

.location-picker__detect {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid #f0d3b6;
    border-radius: 0.7rem;
    color: #be5711;
    background: #fff8f2;
    font-size: 0.78rem;
    font-weight: 700;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.location-picker__detect:hover {
    border-color: #e98a45;
    background: #fff1e5;
}

.location-picker__detect:disabled,
.location-picker__detect.is-busy {
    opacity: 0.72;
    cursor: wait;
}

.location-picker__detect svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.location-picker__detect-status {
    margin: 0.45rem 0 0;
    color: #5f6b7a;
    font-size: 0.72rem;
}

.location-picker__detect-status.is-error {
    color: #b42318;
}

.location-picker__body {
    max-height: 28rem;
    padding: 1.1rem 1.35rem 1.4rem;
    overflow-y: auto;
    scrollbar-color: #cad1da transparent;
    scrollbar-width: thin;
}

.location-picker__label {
    margin: 0 0 0.75rem;
    color: #000;
    font-size: 0.9rem;
    font-weight: 750;
}

.location-picker__options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.location-picker__options button {
    min-height: 2.25rem;
    padding: 0.55rem 0.82rem;
    border: 1px solid #dce2e8;
    border-radius: 0.68rem;
    color: #485568;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 650;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.location-picker__options button:hover {
    border-color: #e98a45;
    color: #be5711;
    background: #fff8f2;
    transform: translateY(-1px);
}

.location-picker__options button:focus-visible {
    outline: 3px solid rgba(237, 121, 39, 0.22);
    outline-offset: 2px;
}

.location-picker__options button.is-selected {
    border-color: #e67525;
    color: #ad4c0d;
    background: #fff1e5;
    box-shadow: inset 0 0 0 1px rgba(230, 117, 37, 0.08);
}

.location-picker__more {
    border-style: dashed !important;
    color: #be5711 !important;
    background: #fff8f2 !important;
}

.location-picker__results {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.location-picker__group-label {
    margin: 0.35rem 0 0;
    padding: 0.35rem 0.15rem 0;
    color: #8a9099;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.location-picker__group-label:first-child {
    margin-top: 0;
}

.location-picker__result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
    width: 100%;
    min-height: 2.55rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #e3e7ec;
    border-radius: 0.75rem;
    color: #24344b;
    background: #fff;
    text-align: left;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.location-picker__result:hover,
.location-picker__result:focus-visible {
    border-color: #e98a45;
    background: #fff8f2;
}

.location-picker__result-title,
.location-picker__result-meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-picker__result-title {
    font-size: 0.82rem;
    font-weight: 700;
}

.location-picker__result--combined .location-picker__result-title {
    white-space: normal;
    line-height: 1.35;
}

.location-picker__result-meta {
    color: #7a8493;
    font-size: 0.72rem;
    font-weight: 600;
}

.location-picker__empty {
    margin: 1rem 0 0;
    padding: 1rem;
    border-radius: 0.75rem;
    color: #6d7786;
    background: #f5f7f9;
    font-size: 0.75rem;
    text-align: center;
}

.home-search {
    position: relative;
    z-index: 5;
}

.home-search__suggest-group-label {
    margin: 0.35rem 0 0;
    padding: 0.35rem 0.7rem 0;
    color: #8a9099;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-search__suggest-group-label:first-child {
    margin-top: 0;
    padding-top: 0.45rem;
}

.home-search__suggest {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    gap: 0.15rem;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0;
    border: 1px solid #e5e9ef;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(23, 36, 58, 0.14);
}

.home-search__suggest-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-radius: 0.65rem;
    color: #24344b;
    background: transparent;
    text-align: left;
}

.home-search__suggest-item:hover,
.home-search__suggest-item:focus-visible {
    background: #fff8f2;
    color: #be5711;
}

.home-search__suggest-item--combined {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.home-search__suggest-title {
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Directory / hero filter cards style all buttons at 3rem; suggest rows must grow. */
.inner-page-hero__search-card .home-search__suggest-item {
    height: auto;
    min-height: 0;
    border-radius: 0.65rem;
}

.home-search__suggest-meta {
    color: #7a8493;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 1180px) {
    .header-location-trigger {
        width: 2.4rem;
        min-width: 2.4rem;
        padding-inline: 0.65rem;
    }

    .header-location-trigger > span,
    .header-location-trigger__chevron {
        display: none;
    }
}

@media (max-width: 639px) {
    header[data-header] > div:first-child > div {
        gap: 0.5rem;
    }

    .header-location-trigger {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: 11rem;
        margin-right: auto;
        margin-left: 0;
        padding-inline: 0.7rem;
    }

    .header-location-trigger > span {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }

    .header-location-trigger:not(.has-location) {
        max-width: none;
    }

    .header-location-trigger__chevron {
        display: block;
        flex: 0 0 0.8rem;
    }

    .location-picker {
        align-items: end;
        padding: 0;
    }

    .location-picker__panel {
        width: 100%;
        max-height: min(80vh, 40rem);
        border-radius: 1.15rem 1.15rem 0 0;
    }

    .location-picker__header,
    .location-picker__body {
        padding-inline: 1rem;
    }

    .location-picker__search {
        margin-inline: 1rem;
    }

    .location-picker__detect-wrap {
        margin-inline: 1rem;
    }
}

@media (max-width: 359px) {
    .header-location-trigger {
        max-width: 8.25rem;
        padding-inline: 0.55rem;
    }
}

/* Post a job — focused homeowner form */
.post-job-page {
    --post-job-ink: #142033;
    --post-job-muted: #687386;
    --post-job-line: #dfe5ec;
    --post-job-orange: #f58220;
    overflow-x: clip;
}

.post-job-page__surface {
    padding-bottom: 4rem;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(245, 130, 32, 0.07),
            transparent 31rem
        ),
        #f5f7fa;
}

.post-job-page__hero {
    padding-block: clamp(3rem, 5vw, 4.5rem) clamp(4.5rem, 7vw, 6rem);
}

.post-job-page__hero-inner > h1 {
    max-width: 50rem;
    font-size: clamp(2.35rem, 4.5vw, 3.8rem);
}

.post-job-page__hero-inner > p {
    max-width: 40rem;
}

.post-job-page__content {
    position: relative;
    z-index: 12;
    margin-top: -2.4rem;
}

.post-job-page__back {
    display: inline-flex;
    min-height: 2.35rem;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(20, 32, 51, 0.1);
    border-radius: 999px;
    color: #475467;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 18px rgba(20, 32, 51, 0.05);
    font-size: 0.8rem;
    font-weight: 650;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.post-job-page__back:hover {
    border-color: #f1b77f;
    color: #b94d06;
    transform: translateX(-2px);
}

.post-job-page__account-note {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #f2c99f;
    border-left: 4px solid var(--post-job-orange);
    border-radius: 0.8rem;
    color: #7b3b0d;
    background: #fff8f1;
    box-shadow: 0 8px 24px rgba(111, 57, 14, 0.045);
    font-size: 0.86rem;
    line-height: 1.5;
}

.post-job-page__account-note a {
    color: #a84400;
    font-weight: 750;
    text-underline-offset: 2px;
}

.post-job-page__card {
    padding: clamp(1.4rem, 4vw, 2.6rem);
    border: 1px solid rgba(20, 32, 51, 0.1);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow:
        0 22px 60px rgba(20, 32, 51, 0.09),
        0 2px 8px rgba(20, 32, 51, 0.04);
}

.post-job-page__card-heading {
    margin-bottom: 1.8rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid #ebeff4;
}

.post-job-page__card-heading h2 {
    margin: 0;
    color: var(--post-job-ink);
    font-family: var(--font-display, inherit);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.post-job-page__card-heading p {
    margin: 0.55rem 0 0;
    color: var(--post-job-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.post-job-form {
    display: grid;
    gap: 1.25rem;
}

.post-job-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.post-job-form__field,
.post-job-form [data-select2-dropdown-host] {
    position: relative;
    min-width: 0;
    width: 100%;
}

.post-job-form label {
    display: block;
    color: #283548;
    font-size: 0.8rem;
    font-weight: 750;
}

.post-job-form input:not([type="file"]),
.post-job-form select {
    width: 100%;
    min-height: 3rem;
    height: 3rem;
    border-color: #d8dfe8;
    border-radius: 0.7rem;
    color: var(--post-job-ink);
    background: #fff;
    box-shadow: none;
}

.post-job-form input:not([type="file"]):hover,
.post-job-form select:hover,
.post-job-form textarea:hover {
    border-color: #bfc8d4;
}

.post-job-form input:not([type="file"]):focus,
.post-job-form select:focus,
.post-job-form textarea:focus {
    border-color: var(--post-job-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.14);
}

.post-job-form .select2.select2-container,
.post-job-form .select2.select2-container .select2-selection--single {
    min-height: 3rem !important;
    height: 3rem !important;
}

.post-job-form .select2.select2-container {
    display: block;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    margin-top: 0.375rem;
}

/* Keep the in-grid control fluid. The postcode result panel is mounted on
   body, so opening it cannot become another grid child or resize the field. */
.post-job-form select.select2-hidden-accessible + .select2-container {
    position: relative;
    inset: auto;
    box-sizing: border-box;
    width: 100% !important;
}

.post-job-form .select2-container .select2-selection--single {
    width: 100%;
    box-sizing: border-box;
    border-color: #d8dfe8;
    border-radius: 0.7rem;
}

.post-job-form
    select.border-red-500
    + .select2-container
    .select2-selection--single,
.post-job-form
    select[aria-invalid="true"]
    + .select2-container
    .select2-selection--single,
.post-job-form .select2-container--invalid .select2-selection--single {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

body
    .post-job-form
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    display: flex;
    height: 100%;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 2rem;
    line-height: normal;
}

body
    .post-job-form
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    right: 0.85rem;
}

.post-job-form
    [data-select2-dropdown-host]
    > .select2-container--open:not(.select2) {
    right: 0;
    left: 0 !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    z-index: 110;
}

.post-job-form textarea {
    min-height: 9rem;
    border-color: #d8dfe8;
    border-radius: 0.8rem;
    color: var(--post-job-ink);
    background: #fff;
    line-height: 1.55;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.post-job-form input:disabled {
    color: #667085;
    background: #f5f7fa;
}

.post-job-form input[type="file"] {
    padding: 0.55rem;
    border: 1px dashed #cfd7e2;
    border-radius: 0.75rem;
    background: #fafbfc;
}

.post-job-form__photo-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

@media (min-width: 640px) {
    .post-job-form__photo-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.post-job-form__photo-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--post-job-line);
    border-radius: 0.75rem;
    background: #f1f4f8;
}

.post-job-form__photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-photo-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
}

.job-photo-grid__item {
    display: block;
    width: 7.5rem;
    height: 7.5rem;
    flex: 0 0 7.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f1f5f9;
}

button.job-photo-grid__item {
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.job-photo-grid__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-photo-grid__item--video {
    position: relative;
    background: #f8fafc;
    border-color: #e2e8f0;
}

button.job-photo-grid__item--video:hover {
    border-color: #fdba74;
    background: #fff7ed;
}

button.job-photo-grid__item--video:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.job-video-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 100%;
    height: 100%;
    padding: 0.35rem;
    box-sizing: border-box;
    text-align: center;
    pointer-events: none;
}

.job-video-tile__play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: #f97316;
    color: #fff;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.35);
}

.job-video-tile__play svg {
    margin-left: 2px;
}

.job-video-tile__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    line-height: 1.2;
}

.job-video-tile__hint {
    font-size: 0.625rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.2;
}

body.job-video-modal-open {
    overflow: hidden;
}

.job-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.job-video-modal[hidden] {
    display: none !important;
}

.job-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.job-video-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    background: #0f172a;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

.job-video-modal__panel video {
    display: block;
    width: 100%;
    max-height: min(70vh, 32rem);
    background: #000;
}

.job-video-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.post-job-form__photo-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 9999px;
    background: #dc2626;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.post-job-form__photo-remove:hover {
    background: #b91c1c;
}

.post-job-form .text-red-600 {
    color: #b42318;
    font-size: 0.76rem;
}

.post-job-page__submit {
    display: inline-flex;
    width: 100%;
    min-height: 3.15rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    padding: 0.7rem 1.25rem;
    border: 0;
    border-radius: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, #f58a2d, #e66f0b);
    box-shadow: 0 10px 24px rgba(230, 111, 11, 0.22);
    font-size: 0.88rem;
    font-weight: 750;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.post-job-page__submit:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(230, 111, 11, 0.28);
}

@media (max-width: 639px) {
    .post-job-page__surface {
        padding-bottom: 2rem;
    }

    .post-job-page__hero {
        padding-block: 2.6rem 4rem;
    }

    .post-job-page__content {
        margin-top: -1.8rem;
        padding-inline: 0.65rem;
    }

    .post-job-page__card {
        border-radius: 1rem;
    }

    .post-job-form__grid,
    .post-job-form__grid--budget {
        grid-template-columns: 1fr;
    }

    .post-job-page__account-note {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Auth experience — selected Warm Homeowner Welcome direction
   ========================================================================== */
body.auth-page {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-width: 0;
    overflow: hidden;
    color: #142033;
    background: #fbfaf7;
}

.auth-page-shell {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.auth-split-card {
    display: grid;
    width: 100%;
    height: 100vh;
    height: 100svh;
    max-width: none;
    min-height: 0;
    grid-template-columns: minmax(24rem, 44%) minmax(0, 1fr);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fbfaf7;
    box-shadow: none;
}

.auth-split-card__visual {
    position: relative;
    z-index: 2;
    display: block;
    min-width: 0;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    margin-right: 0;
    overflow: hidden;
    background: #fbfaf7;
    clip-path: none;
    padding: 20px;
}

.auth-split-card__visual img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    transform: none;
    border-radius: 20px;
}

.auth-split-card--signup .auth-split-card__visual img,
.auth-split-card--register .auth-split-card__visual img {
    object-position: center 30%;
}

.auth-split-card__form {
    position: relative;
    z-index: 3;
    display: flex;
    min-width: 0;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.75rem) clamp(1.5rem, 6vw, 6.5rem)
        clamp(2.5rem, 5vw, 4.5rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-color: #c5ccd6 transparent;
    scrollbar-width: thin;
    background: #fbfaf7;
}

.auth-split-card__form::-webkit-scrollbar {
    width: 7px;
}

.auth-split-card__form::-webkit-scrollbar-track {
    background: transparent;
}

.auth-split-card__form::-webkit-scrollbar-thumb {
    border: 2px solid #fbfaf7;
    border-radius: 999px;
    background: #c5ccd6;
}

.auth-page-logo {
    position: static;
    z-index: auto;
    display: block;
    width: fit-content;
    margin: 0 auto clamp(2rem, 5vh, 3.75rem);
}

.auth-page-logo img {
    display: block;
    width: auto;
    height: clamp(2.5rem, 4vw, 3.2rem);
    max-width: min(22rem, 75vw);
    mix-blend-mode: darken;
}

.auth-split-card__form-inner {
    width: min(100%, 34rem);
    margin-inline: auto;
}

.auth-split-card__form .auth-brand {
    align-items: center;
    margin-bottom: 1.8rem !important;
    text-align: center;
}

.auth-split-card__form .auth-brand h1 {
    margin: 0;
    color: #10213b;
    font-size: clamp(2.15rem, 4vw, 3.15rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.auth-split-card__form .auth-brand p {
    margin-top: 0.65rem;
    color: #667085;
    font-size: 0.98rem;
    line-height: 1.55;
}

.auth-split-card__form .auth-card,
.auth-split-card__form .auth-card:hover {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.auth-card form label {
    color: #24334a;
    font-size: 0.8rem;
    font-weight: 750;
}

.auth-card input:not([type="checkbox"]):not([type="radio"]),
.auth-card .site-password-wrap > input {
    min-height: 3.1rem;
    height: 3.1rem;
    border-color: #cfd7e2;
    border-radius: 0.72rem;
    color: #142033;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 1px 2px rgba(20, 32, 51, 0.025);
}

.auth-card input:not([type="checkbox"]):not([type="radio"]):hover,
.auth-card .site-password-wrap > input:hover {
    border-color: #aeb9c7;
}

.auth-card input:not([type="checkbox"]):not([type="radio"]):focus,
.auth-card .site-password-wrap > input:focus {
    border-color: #f58220;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

.auth-card input::placeholder {
    color: #98a2b3;
}

.auth-card button[type="submit"],
.auth-card a.bg-primary,
.auth-card .bg-primary {
    min-height: 3.15rem;
    border: 0;
    border-radius: 0.72rem;
    color: #fff;
    background: #f58220;
    box-shadow: 0 9px 22px rgba(230, 111, 11, 0.2);
    font-weight: 750;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-card button[type="submit"]:hover,
.auth-card a.bg-primary:hover,
.auth-card .bg-primary:hover {
    color: #fff;
    background: #dc6709;
    transform: translateY(-1px);
    box-shadow: 0 12px 27px rgba(230, 111, 11, 0.27);
}

.auth-otp-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.auth-otp-row > input:not(.auth-otp-code) {
    flex: 1 1 12rem;
    width: auto;
    min-width: 0;
}

/* Email on its own row while OTP + actions are visible */
.auth-otp-row:has(#email_otp:not([hidden])) {
    flex-wrap: wrap;
}

.auth-otp-row:has(#email_otp:not([hidden])) > input:not(.auth-otp-code) {
    flex: 1 1 100%;
    width: 100%;
}

.auth-card .auth-otp-code {
    flex: 0 0 7rem;
    width: 7rem;
    min-width: 7rem;
    max-width: 7rem;
    padding-inline: 0.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
}

.auth-card .auth-otp-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 6.6rem;
    min-height: 3.1rem;
    height: 3.1rem;
    padding: 0 0.9rem;
    white-space: nowrap;
    font-size: 0.875rem;
    line-height: 1;
}

.auth-card .auth-otp-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 767px) {
    .auth-otp-row {
        flex-wrap: wrap;
    }

    .auth-otp-row > input:not(.auth-otp-code) {
        flex-basis: 100%;
    }
}

.auth-card a.text-primary,
.auth-split-card__form-inner > p a,
.auth-card button.text-primary {
    color: #f38b30;
    text-underline-offset: 3px;
}

.auth-card [data-social-auth] > a,
.auth-card [data-social-auth] > button {
    min-height: 3rem;
    border-color: #d7dee7;
    border-radius: 0.72rem;
    color: #24334a;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
}

.auth-card [data-social-auth] > a:hover,
.auth-card [data-social-auth] > button:hover {
    border-color: #f0b77f;
    background: #fff8f1;
}

.auth-card [data-social-auth] > .social-auth-notice {
    grid-column: 1 / -1;
    margin: 0;
}

.auth-card [data-social-auth] .relative.py-1 {
    margin-block: 0.35rem;
}

.auth-card [data-social-auth] .relative.py-1 span.bg-card {
    color: #7b8492;
    background: #fbfaf7;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.auth-split-card__form-inner > p.text-center {
    margin-top: 1.2rem;
    color: #667085;
    text-align: center;
}

.auth-portal-link {
    min-height: 5.3rem;
    border-color: #dce2ea;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 5px 18px rgba(20, 32, 51, 0.04);
}

.auth-portal-link:hover {
    border-color: #f0b77f;
    background: #fff8f1;
    box-shadow: 0 10px 25px rgba(20, 32, 51, 0.075);
}

.auth-page-shell--signup .auth-split-card__form,
.auth-page-shell--register .auth-split-card__form {
    justify-content: flex-start;
    padding-top: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.auth-page-shell--signup .auth-page-logo,
.auth-page-shell--register .auth-page-logo {
    margin-bottom: 1.7rem;
}

.auth-page-shell--signup .auth-split-card__form .auth-brand,
.auth-page-shell--register .auth-split-card__form .auth-brand {
    margin-bottom: 1.35rem !important;
}

.auth-page-shell--signup .auth-split-card__form .auth-brand h1,
.auth-page-shell--register .auth-split-card__form .auth-brand h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.auth-page-shell--signup
    .auth-card
    form.space-y-4
    > :not([hidden])
    ~ :not([hidden]),
.auth-page-shell--register
    .auth-card
    form.space-y-4
    > :not([hidden])
    ~ :not([hidden]) {
    margin-top: 0.85rem;
}

.auth-page-shell--signup
    .auth-card
    form
    .space-y-2
    > :not([hidden])
    ~ :not([hidden]),
.auth-page-shell--register
    .auth-card
    form
    .space-y-2
    > :not([hidden])
    ~ :not([hidden]) {
    margin-top: 0.42rem;
}

/* Homeowner signup — quicker form flow with a useful trust panel. */
.auth-page-shell--homeowner-signup .auth-split-card,
.auth-page-shell--homeowner-login .auth-split-card {
    grid-template-columns: minmax(23rem, 38%) minmax(0, 1fr);
}

.auth-page-shell--homeowner-signup .auth-split-card__visual,
.auth-page-shell--homeowner-login .auth-split-card__visual {
    isolation: isolate;
}

.auth-page-shell--homeowner-signup .auth-split-card__visual img,
.auth-page-shell--homeowner-login .auth-split-card__visual img {
    filter: brightness(0.76) saturate(0.92);
}

.auth-visual-story {
    position: absolute;
    z-index: 2;
    right: 2.75rem;
    bottom: 2.75rem;
    left: 2.75rem;
    padding: clamp(1.4rem, 2.5vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.1rem;
    color: #fff;
    background: rgba(8, 25, 45, 0.84);
    box-shadow: 0 20px 50px rgba(8, 25, 45, 0.24);
    backdrop-filter: blur(10px);
}

.auth-visual-story__eyebrow {
    width: fit-content;
    margin: 0 0 0.8rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    color: #fff3e8;
    background: #c95b06;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.auth-visual-story h2 {
    max-width: 24rem;
    margin: 0;
    color: #fff;
    font-size: clamp(1.65rem, 2.6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.auth-visual-story__text {
    max-width: 29rem;
    margin: 0.8rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.55;
}

.auth-visual-story__points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
}

.auth-visual-story__points li {
    padding: 0.5rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.65rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.auth-page-shell--homeowner-signup .auth-split-card__form,
.auth-page-shell--homeowner-login .auth-split-card__form {
    padding-right: clamp(2rem, 5vw, 5.5rem);
    padding-left: clamp(2rem, 5vw, 5.5rem);
}

.auth-page-shell--homeowner-signup .auth-split-card__form-inner {
    width: min(100%, 45rem);
}

.auth-page-shell--homeowner-login .auth-split-card__form-inner {
    width: min(100%, 36rem);
}

.auth-page-shell--homeowner-signup .auth-brand h1 {
    font-size: clamp(2rem, 3vw, 2.65rem);
}

.auth-page-shell--homeowner-signup [data-social-auth],
.auth-page-shell--homeowner-login [data-social-auth] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.auth-page-shell--homeowner-signup [data-social-auth] > .relative,
.auth-page-shell--homeowner-login [data-social-auth] > .relative {
    grid-column: 1 / -1;
    margin-block: 0 !important;
}

.auth-field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-field-heading a {
    flex: 0 0 auto;
    font-size: 0.76rem;
}

.auth-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.auth-page-shell--homeowner-signup
    .auth-fields-grid
    > :not([hidden])
    ~ :not([hidden]) {
    margin-top: 0;
}

.auth-field--wide {
    grid-column: 1 / -1;
}

.auth-form-assurance {
    margin: -0.15rem 0 0;
    color: #7a8492;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 1199px) {
    .auth-page-shell--homeowner-signup .auth-split-card,
    .auth-page-shell--homeowner-login .auth-split-card {
        grid-template-columns: minmax(19rem, 34%) minmax(0, 1fr);
    }

    .auth-visual-story {
        right: 1.75rem;
        bottom: 1.75rem;
        left: 1.75rem;
    }

    .auth-visual-story__points {
        display: grid;
    }
}

@media (max-width: 1023px) {
    .auth-split-card {
        grid-template-columns: minmax(18rem, 40%) minmax(0, 1fr);
    }

    .auth-split-card__visual {
        margin-right: 0;
        clip-path: none;
    }

    .auth-split-card__form {
        padding: 2.5rem clamp(1.5rem, 5vw, 3.5rem);
    }

    .auth-page-logo {
        margin-bottom: 2.25rem;
    }

    .auth-page-shell--homeowner-signup .auth-split-card,
    .auth-page-shell--homeowner-login .auth-split-card {
        grid-template-columns: minmax(16rem, 32%) minmax(0, 1fr);
    }

    .auth-page-shell--homeowner-signup .auth-split-card__form,
    .auth-page-shell--homeowner-login .auth-split-card__form {
        padding-inline: 2rem;
    }

    .auth-visual-story {
        right: 1.35rem;
        bottom: 1.35rem;
        left: 1.35rem;
        padding: 1.25rem;
    }

    .auth-visual-story__text,
    .auth-visual-story__points {
        display: none;
    }
}

@media (max-width: 767px) {
    .auth-split-card {
        display: block;
        height: 100vh;
        height: 100svh;
        min-height: 0;
    }

    .auth-split-card__visual {
        display: none;
    }

    .auth-fields-grid,
    .auth-page-shell--homeowner-signup [data-social-auth],
    .auth-page-shell--homeowner-login [data-social-auth] {
        grid-template-columns: 1fr;
    }

    .auth-page-shell--homeowner-signup [data-social-auth] > .relative,
    .auth-page-shell--homeowner-login [data-social-auth] > .relative,
    .auth-field--wide {
        grid-column: auto;
    }

    .auth-split-card__form,
    .auth-page-shell--signup .auth-split-card__form,
    .auth-page-shell--register .auth-split-card__form {
        height: 100vh;
        height: 100svh;
        min-height: 0;
        justify-content: center;
        padding: 2rem max(1rem, env(safe-area-inset-right)) 2.5rem
            max(1rem, env(safe-area-inset-left));
    }

    .auth-page-shell--signup .auth-split-card__form,
    .auth-page-shell--register .auth-split-card__form {
        justify-content: flex-start;
    }

    .auth-page-logo,
    .auth-page-shell--signup .auth-page-logo,
    .auth-page-shell--register .auth-page-logo {
        margin-bottom: 2rem;
    }

    .auth-page-logo img {
        height: 2.35rem;
        max-width: min(18rem, 78vw);
    }

    .auth-split-card__form .auth-brand h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    .auth-split-card__form .auth-brand p {
        font-size: 0.9rem;
    }

    .auth-card input:not([type="checkbox"]):not([type="radio"]),
    .auth-card .site-password-wrap > input,
    .auth-card button[type="submit"],
    .auth-card a.bg-primary,
    .auth-card .bg-primary {
        min-height: 3rem;
        height: 3rem;
    }

    .auth-portal-link {
        padding: 1rem;
    }
}

/* Tradie directory — profile-first cards in the navy/orange brand palette. */
.tradie-directory {
    color: #142033;
}

.tradie-review-body {
    overflow-wrap: anywhere;
}

.tradie-review-body.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.tradie-review-toggle {
    min-height: 44px;
    color: #b9510c;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tradie-review-toggle:focus-visible {
    outline: 2px solid #b9510c;
    outline-offset: 3px;
    border-radius: 3px;
}

.tradie-directory__layout {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
}

.tradie-directory__sidebar {
    position: sticky;
    top: 6rem;
}

.tradie-mobile-filter {
    display: none;
}

.tradie-category-panel {
    overflow: hidden;
    border: 1px solid #e3e7ed;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 32, 51, 0.055);
}

.tradie-category-panel__header {
    padding: 1.2rem 1.2rem 1rem;
    border-bottom: 1px solid #edf0f4;
    background: #172942;
}

.tradie-category-panel__header p,
.tradie-results-heading__eyebrow {
    margin: 0 0 0.3rem;
    color: #e87513;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tradie-category-panel__header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 750;
}

.tradie-category-list {
    display: grid;
    max-height: 28rem;
    gap: 0.2rem;
    padding: 0.65rem;
    overflow-y: auto;
    scrollbar-color: #cfd6df transparent;
    scrollbar-width: thin;
}

.tradie-category-link {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: 0.7rem;
    color: #596579;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.tradie-category-link:hover {
    color: #172942;
    background: #f5f7fa;
}

.tradie-category-link.is-active {
    color: #a84400;
    background: #fff0df;
}

.tradie-category-link__count {
    display: inline-flex;
    min-width: 1.7rem;
    min-height: 1.4rem;
    align-items: center;
    justify-content: center;
    padding-inline: 0.4rem;
    border-radius: 999px;
    color: #657185;
    background: #eef1f5;
    font-size: 0.68rem;
    font-weight: 750;
}

.tradie-category-link.is-active .tradie-category-link__count {
    color: #fff;
    background: #d6650e;
}

.tradie-directory__results {
    min-width: 0;
}

.tradie-results-heading {
    display: flex;
    align-items: self-start;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 1.15rem;
    padding: 0.15rem 0.1rem;
    flex-direction: column;
}

.tradie-results-heading h2 {
    margin: 0;
    color: #172942;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.tradie-results-heading__note {
    max-width: 22rem;
    margin: 0;
    color: #6c7686;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: right;
}

.tradie-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tradie-card-grid > .browse-empty-state {
    grid-column: 1 / -1;
}

.tradie-profile-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 19rem;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-top: 3px solid #e87513;
    border-radius: 1rem;
    color: #142033;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 32, 51, 0.06);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.tradie-profile-card:hover {
    border-color: #efb27c;
    box-shadow: 0 16px 36px rgba(20, 32, 51, 0.11);
    transform: translateY(-2px);
}

.tradie-profile-card:focus-visible {
    outline: 3px solid rgba(232, 117, 19, 0.3);
    outline-offset: 3px;
}

.tradie-profile-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0;
}

.tradie-profile-card__avatar {
    display: inline-flex;
    width: 3.8rem;
    height: 3.8rem;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 0.95rem;
    color: #fff;
    background: #203754;
    box-shadow:
        0 0 0 1px #dce2e9,
        0 7px 15px rgba(23, 41, 66, 0.16);
    font-size: 1.15rem;
    font-weight: 800;
}

.tradie-profile-card__verified,
.tradie-profile-card__member,
.tradie-profile-card__premium,
.tradie-profile-card__sponsored {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1;
}

.tradie-profile-card__verified {
    padding: 0.5rem 0.65rem;
    color: #244d7c;
    background: #edf4fb;
}

.tradie-profile-card__verified svg {
    width: 0.9rem;
    height: 0.9rem;
}

.tradie-profile-card__member {
    padding: 0.5rem 0.65rem;
    color: #596579;
    background: #f1f3f6;
}

.tradie-profile-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 1.25rem 1.15rem;
}

.tradie-profile-card__title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tradie-profile-card__title-row h3 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #172942;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tradie-profile-card:hover .tradie-profile-card__title-row h3 {
    color: #b84f04;
}

.tradie-profile-card__premium,
.tradie-profile-card__sponsored {
    padding: 0.35rem 0.5rem;
}

.tradie-visibility-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.tradie-visibility-badge--boosted {
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    color: #a84400;
    background: #fff0df;
}

.tradie-visibility-badge--sponsored {
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    color: #7a4b04;
    background: #fff5d7;
}

.tradie-profile-card__premium {
    color: #a84400;
    background: #fff0df;
}

.tradie-profile-card__sponsored {
    color: #7a4b04;
    background: #fff5d7;
}

.tradie-profile-card__trade {
    margin: 0.28rem 0 0;
    overflow: hidden;
    color: #626e80;
    font-size: 0.82rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tradie-profile-card__meta {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid #edf0f4;
}

.tradie-profile-card__meta-item {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
}

.tradie-profile-card__meta-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    color: #385c82;
    background: #edf4fb;
}

.tradie-profile-card__meta-icon--rating {
    color: #b5560d;
    background: #fff1e2;
}

.tradie-profile-card__meta-icon svg {
    width: 0.95rem;
    height: 0.95rem;
}

.tradie-profile-card__meta-item small,
.tradie-profile-card__meta-item strong {
    display: block;
}

.tradie-profile-card__meta-item small {
    margin-bottom: 0.12rem;
    color: #818a98;
    font-size: 0.66rem;
    font-weight: 650;
}

.tradie-profile-card__meta-item strong {
    display: block;
    overflow: hidden;
    color: #344156;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tradie-profile-card__meta-item em {
    color: #818a98;
    font-style: normal;
    font-weight: 550;
}

.tradie-profile-card__trust-note {
    margin: 1rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    color: #38516e;
    background: #f3f6fa;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.35;
}

.tradie-profile-card__footer {
    display: flex;
    min-height: 3.15rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.25rem;
    border-top: 1px solid #e9edf2;
    color: #b84f04;
    background: #fffbf7;
    font-size: 0.76rem;
    font-weight: 800;
}

.tradie-profile-card__footer svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.tradie-profile-card:hover .tradie-profile-card__footer svg {
    transform: translateX(3px);
}

.tradie-directory-tier-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tradie-directory-tier + .tradie-directory-tier {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 2px solid #e3e7ed;
}

.tradie-directory-tier__label {
    margin: 0 0 0.85rem;
    color: #172942;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tradie-directory-tier--founding_member .tradie-directory-tier__label {
    color: #a84400;
}

.tradie-directory-tier--verified .tradie-directory-tier__label {
    color: #1e4d8c;
}

.tradie-directory__pagination {
    width: 100%;
    margin-top: 2rem;
    clear: both;
}

.tradie-directory__pagination--tier {
    margin-top: 1rem;
}

/* Laravel default is Bootstrap 4 markup; site layout has no Bootstrap — style here. */
.tradie-directory__pagination nav {
    display: flex;
    width: 100%;
    justify-content: center;
}

.tradie-directory__pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tradie-directory__pagination .page-item {
    display: inline-flex;
    list-style: none;
}

.tradie-directory__pagination .page-link {
    display: inline-flex;
    min-width: 2.35rem;
    height: 2.35rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    border: 1px solid #dfe4eb;
    border-radius: 0.55rem;
    color: #172942;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 32, 51, 0.04);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.tradie-directory__pagination a.page-link:hover {
    border-color: #efb27c;
    color: #a84400;
    background: #fff8f2;
}

.tradie-directory__pagination .page-item.active .page-link {
    border-color: #d6650e;
    color: #fff;
    background: #e87513;
    pointer-events: none;
}

.tradie-directory__pagination .page-item.disabled .page-link {
    border-color: #e8ecf1;
    color: #98a2b3;
    background: #f8f9fb;
    cursor: not-allowed;
}

@media (max-width: 1099px) {
    .tradie-directory__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .tradie-directory__sidebar {
        display: none;
    }

    .tradie-mobile-filter {
        display: block;
        overflow: hidden;
        border: 1px solid #dfe5ec;
        border-radius: 1rem;
        background: #fff;
        box-shadow: 0 8px 22px rgba(15, 27, 43, 0.055);
    }

    .tradie-mobile-filter summary {
        display: flex;
        min-height: 4.25rem;
        align-items: center;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        color: #17243a;
        cursor: pointer;
        list-style: none;
    }

    .tradie-mobile-filter summary::-webkit-details-marker {
        display: none;
    }

    .tradie-mobile-filter__summary-icon {
        display: inline-flex;
        width: 2.35rem;
        height: 2.35rem;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        border-radius: 0.7rem;
        color: #cf6419;
        background: #fff0df;
    }

    .tradie-mobile-filter__summary-icon svg,
    .tradie-mobile-filter__chevron svg {
        width: 1.1rem;
        height: 1.1rem;
    }

    .tradie-mobile-filter summary > span:nth-child(2) {
        min-width: 0;
        flex: 1 1 auto;
    }

    .tradie-mobile-filter summary small,
    .tradie-mobile-filter summary strong {
        display: block;
    }

    .tradie-mobile-filter summary small {
        margin-bottom: 0.15rem;
        color: #758195;
        font-size: 0.68rem;
        font-weight: 750;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .tradie-mobile-filter summary strong {
        overflow: hidden;
        font-size: 0.9rem;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tradie-mobile-filter__chevron {
        display: inline-flex;
        flex: 0 0 auto;
        transition: transform 0.2s ease;
    }

    .tradie-mobile-filter[open] .tradie-mobile-filter__chevron {
        transform: rotate(180deg);
    }

    .tradie-mobile-filter__form {
        padding: 1rem;
        border-top: 1px solid #edf0f4;
        background: #f8fafc;
    }

    .tradie-mobile-filter__form label {
        display: block;
        margin-bottom: 0.4rem;
        color: #34445b;
        font-size: 0.78rem;
        font-weight: 700;
    }

    .tradie-mobile-filter__form select {
        width: 100%;
        min-height: 2.9rem;
        padding: 0.65rem 2.5rem 0.65rem 0.8rem;
        border: 1px solid #d6dde7;
        border-radius: 0.7rem;
        color: #17243a;
        background: #fff;
        font-size: 0.85rem;
    }

    .tradie-mobile-filter__actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.75rem;
        margin-top: 0.8rem;
    }

    .tradie-mobile-filter__actions a {
        padding: 0.65rem 0.85rem;
        color: #68768a;
        font-size: 0.8rem;
        font-weight: 700;
    }

    .tradie-mobile-filter__actions button {
        min-height: 2.6rem;
        padding: 0.65rem 1rem;
        border-radius: 0.7rem;
        color: #fff;
        background: #e87513;
        font-size: 0.82rem;
        font-weight: 750;
    }

    .tradie-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .tradie-directory__layout {
        grid-template-columns: 1fr;
    }

    .tradie-directory__sidebar {
        position: static;
    }

    .tradie-category-panel__header {
        padding: 1rem;
    }

    .tradie-category-list {
        display: flex;
        max-height: none;
        padding: 0.65rem;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: wrap;
    }

    .tradie-category-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .tradie-results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }

    .tradie-results-heading__note {
        text-align: left;
    }

    .tradie-profile-card {
        min-height: 0;
    }
}

/* Compact marketplace listings shared by /tradies and /jobs. */
.tradie-directory__layout {
    grid-template-columns: 13.75rem minmax(0, 1fr);
    gap: 1.75rem;
}

.tradie-category-panel {
    overflow: visible;
    border-color: #e2e6eb;
    border-radius: 1.15rem;
    box-shadow: 0 10px 30px rgba(15, 27, 43, 0.045);
}

.tradie-category-panel__header {
    padding: 1.15rem 1.1rem 0.65rem;
    border: 0;
    background: transparent;
}

.tradie-category-panel__header p {
    color: #d46317;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.tradie-category-panel__header h2 {
    color: #17243a;
    font-size: 1.05rem;
}

.tradie-category-list {
    padding: 0.35rem 0.6rem 0.7rem;
}

.tradie-category-link {
    padding: 0.68rem 0.7rem;
    border-radius: 0.75rem;
    font-size: 0.78rem;
}

.tradie-category-link.is-active {
    color: #17243a;
    background: #f4f5f7;
}

.tradie-category-link.is-active .tradie-category-link__count {
    background: #17243a;
}

@media (max-width: 1099px) {
    .tradie-directory__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .tradie-directory__sidebar {
        display: none;
    }
}

.tradie-card-grid,
.market-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tradie-card-grid > .browse-empty-state,
.market-card-grid > .browse-empty-state {
    grid-column: 1 / -1;
}

.market-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 17.25rem;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid #e1e5ea;
    border-radius: 1.15rem;
    color: #17243a;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 27, 43, 0.055);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.market-card:hover {
    border-color: #cfd5dc;
    box-shadow: 0 16px 34px rgba(15, 27, 43, 0.1);
    transform: translateY(-3px);
}

.market-card:focus-visible {
    outline: 3px solid rgba(231, 112, 28, 0.3);
    outline-offset: 3px;
}

.market-card--featured {
    border-color: #f0a16d;
    color: #17243a;
    background: #fff;
    box-shadow: 0 12px 30px rgba(213, 92, 24, 0.1);
}

.market-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.market-card__profile-status {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
}

.market-card--tradie > .market-card__top > .tradie-visibility-badge--sponsored {
    position: absolute;
    z-index: 2;
    top: -16px;
    right: 0.5rem;
    flex: 0 0 auto;
    padding: 0.38rem 0.7rem;
    border: 1px solid #ead39b;
    border-top: 0;
    border-radius: 0 0 0.45rem 0.45rem;
    color: #795019;
    background: #fff5d7;
    box-shadow: 0 3px 8px rgba(83, 57, 17, 0.08);
}

.market-card--tradie:has(> .market-card__top > .tradie-visibility-badge--sponsored) .market-card__top {
    padding-right: 5.75rem;
}

.market-card__mark {
    display: inline-flex;
    width: 3.55rem;
    height: 3.55rem;
    flex: 0 0 3.55rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e2e6eb;
    border-radius: 50%;
    color: #fff;
    background: #1b2d46;
    box-shadow: 0 4px 10px rgba(20, 35, 55, 0.14);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.market-card__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-card--job .market-card__mark {
    color: #c85d16;
    background: #fff6ee;
}

.market-card__date {
    display: inline-flex;
    min-width: 0;
    padding: 0.38rem 0.58rem;
    overflow: hidden;
    border: 1px solid #e5e8ec;
    border-radius: 999px;
    color: #5e6774;
    background: #f8f9fa;
    font-size: 0.59rem;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-card__save {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 50%;
    color: #46515f;
    background: #f8f9fa;
}

.market-card__save svg {
    width: 0.95rem;
    height: 0.95rem;
}

.market-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 1.2rem;
}

.market-card__kicker {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.35rem;
    color: #333d4b;
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.2;
}

.market-card__kicker > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-card__verified {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.18rem;
    color: #3176c8;
}

.market-card__verified svg {
    width: 0.82rem;
    height: 0.82rem;
}

.market-card__title {
    display: -webkit-box;
    margin: 0.5rem 0 0.5rem;
    overflow: hidden;
    color: #151d29;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.market-card__person-name {
    margin: 0.45rem 0 0;
    color: #172942;
    font-size: 0.84rem;
    line-height: 1.35;
}

.market-card__person-name strong {
    color: #172942;
    font-weight: 800;
}

.market-card__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.55rem;
    margin-top: 0.65rem;
    color: #89919c;
    font-size: 0.8rem;
    line-height: 1.35;
}

.market-card__tags span {
    position: relative;
}

.market-card__tags span + span::before {
    position: absolute;
    top: 50%;
    left: -0.34rem;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.market-card__value {
    margin: 0.6rem 0 0;
    color: #505a68;
    font-size: 0.69rem;
    font-weight: 650;
}

.market-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 1.15rem;
}

.market-card__metrics {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
    color: #606a77;
    font-size: 0.7rem;
}

.market-card__metrics span,
.market-card__metrics a {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.24rem;
}

.market-card__metrics svg {
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 auto;
}

.market-card__metrics .market-card__rating-summary {
    color: #db6411;
    font-weight: 750;
    text-decoration: none;
}

.market-card__action {
    display: inline-flex;
    min-width: 4.5rem;
    min-height: 1.85rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    color: #fff;
    background: #f58c30;
    font-size: 0.8rem;
    font-weight: 600;
}

.market-card--featured .market-card__mark {
    color: #fff;
    background: #1b2d46;
}

.market-card--featured .market-card__date,
.market-card--featured .market-card__save {
    border-color: #f2d2bc;
    color: #b84f16;
    background: #fff6ef;
}

.market-card--featured .market-card__kicker,
.market-card--featured .market-card__title {
    color: #151d29;
}

.market-card--featured .market-card__tags,
.market-card--featured .market-card__value,
.market-card--featured .market-card__metrics {
    color: #606a77;
}

.market-card--featured .market-card__verified {
    color: #078847;
}

.market-card--featured .market-card__action {
    color: #fff;
    background: #f58c30;
}

.market-card-grid--jobs {
    margin-top: 0.25rem;
}

/* Jobs use a true list view: one scannable record per row. */
.market-card-grid--jobs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.market-card-grid--jobs .market-card--job {
    display: grid;
    min-height: 9.5rem;
    grid-template-columns: 10.5rem minmax(0, 1fr) minmax(13rem, 17rem);
    align-items: stretch;
    padding: 0;
    border-radius: 1rem;
}

.market-card-grid--jobs .market-card__top {
    position: relative;
    align-content: center;
    flex-wrap: wrap;
    padding: 1.2rem;
    border-right: 1px solid #edf0f3;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.market-card-grid--jobs .market-card__mark {
    width: 3.75rem;
    height: 3.75rem;
    flex-basis: 3.75rem;
}

.market-card-grid--jobs .market-card__date {
    align-self: center;
}

.market-card-grid--jobs .market-card__save {
    position: absolute;
    right: 0.6rem;
    top: 0.6rem;
}

.market-card-grid--jobs .market-card__content {
    justify-content: center;
    padding: 1.2rem 1.5rem;
}

.market-card-grid--jobs .market-card__title {
    min-height: 0;
    font-size: 1.04rem;
    -webkit-line-clamp: 1;
}

.market-card-grid--jobs .market-card__bottom {
    align-items: flex-end;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 1.2rem;
    border-left: 1px solid #edf0f3;
}

.market-card-grid--jobs .market-card__metrics {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.market-card-grid--jobs .market-card__action {
    min-width: 5.4rem;
    margin-top: 0.9rem;
}

.market-card-grid--jobs .market-card--featured .market-card__top,
.market-card-grid--jobs .market-card--featured .market-card__bottom {
    border-color: #e5e8ec;
}

.job-load-more {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    margin-top: 1.5rem;
}

.job-load-more__button {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1.25rem;
    border: 1px solid #d9dee5;
    border-radius: 999px;
    color: #17243a;
    background: #fff;
    box-shadow: 0 7px 18px rgba(15, 27, 43, 0.06);
    font-size: 0.76rem;
    font-weight: 750;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.job-load-more__button:hover {
    border-color: #17243a;
    box-shadow: 0 10px 24px rgba(15, 27, 43, 0.11);
    transform: translateY(-1px);
}

.job-load-more__button:focus-visible {
    outline: 3px solid rgba(231, 112, 28, 0.3);
    outline-offset: 3px;
}

.job-load-more__button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.job-load-more__button svg {
    width: 0.95rem;
    height: 0.95rem;
}

.job-load-more__button.is-loading svg {
    animation: job-load-more-pulse 0.8s ease-in-out infinite alternate;
}

.job-load-more__status {
    min-height: 1rem;
    margin: 0;
    color: #76808e;
    font-size: 0.66rem;
}

@keyframes job-load-more-pulse {
    to {
        transform: translateY(3px);
    }
}

@media (max-width: 1120px) {
    .tradie-card-grid,
    .market-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-card-grid--jobs {
        grid-template-columns: 1fr;
    }

    .market-card-grid--jobs .market-card--job {
        grid-template-columns: 9rem minmax(0, 1fr) 13rem;
    }
}

@media (max-width: 767px) {
    .tradie-directory__layout,
    .tradie-card-grid,
    .market-card-grid {
        grid-template-columns: 1fr;
    }

    .tradie-category-panel__header {
        padding-bottom: 0.3rem;
    }

    .market-card {
        min-height: 15.75rem;
    }

    .market-card-grid--jobs .market-card--job {
        display: flex;
        min-height: 0;
        padding: 1rem;
    }

    .market-card-grid--jobs .market-card__top,
    .market-card-grid--jobs .market-card__bottom {
        padding: 0;
        border: 0;
    }

    .market-card-grid--jobs .market-card__top {
        padding-bottom: 0.9rem;
    }

    .market-card-grid--jobs .market-card__save {
        position: absolute;
        margin-left: auto;
    }

    .market-card-grid--jobs .market-card__content {
        padding: 0;
    }

    .market-card-grid--jobs .market-card__title {
        -webkit-line-clamp: 2;
    }

    .market-card-grid--jobs .market-card__bottom {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        padding-top: 1rem;
    }

    .market-card-grid--jobs .market-card__metrics {
        justify-content: flex-start;
    }

    .market-card-grid--jobs .market-card__action {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .job-load-more__button.is-loading svg {
        animation: none;
    }
}

/* Shared rating treatment across public pages and account views. */
.site-rating {
    display: inline-flex;
    align-items: baseline;
    gap: 0.22rem;
    color: #e56a25 !important;
    font-weight: 700;
    line-height: 1.3;
}

.site-rating__star,
.site-rating__score {
    color: #e56a25 !important;
}

.site-rating__star {
    font-size: 1.08em;
}

.site-rating__count {
    color: #6f7784 !important;
    font-weight: 400 !important;
}

/* Shared modern detail language for tradie profiles and public jobs. */
.detail-page {
    --detail-ink: #17243a;
    --detail-muted: #667184;
    --detail-line: #e1e6ec;
    --detail-orange: #ed7927;
    color: var(--detail-ink);
    background: #f5f7f9;
}

.detail-hero {
    position: relative;
    border-bottom: 1px solid var(--detail-line);
    background: #fff;
}

.detail-hero::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--detail-orange);
    content: "";
}

.detail-hero__inner {
    padding-top: 1.65rem;
    padding-bottom: 1.8rem;
}

.detail-hero__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.detail-back-link {
    margin-bottom: 0 !important;
    color: #657083;
    font-size: 0.76rem;
    font-weight: 650;
    transition: color 0.2s ease;
}

.detail-back-link:hover {
    color: var(--detail-ink);
}

.detail-status {
    min-height: 2rem;
    padding: 0.48rem 0.75rem;
    border-radius: 999px;
    font-size: 0.65rem;
    letter-spacing: 0.055em;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(15, 143, 77, 0.15);
}

.detail-status svg {
    width: 0.95rem;
    height: 0.95rem;
}

.detail-status--verified {
    color: #fff;
    background: #12a85c;
}

.detail-identity {
    align-items: flex-start;
}

.detail-identity__content {
    min-width: 0;
    padding-top: 0.15rem;
}

.detail-identity__heading {
    align-items: center;
    row-gap: 0.45rem !important;
}

.detail-identity__name {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.2;
}

.detail-identity__trades {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.detail-identity__dot {
    color: #94a3b8;
    font-weight: 700;
    line-height: 1;
}

.detail-identity__content > p {
    margin: 0.25rem 0 0;
    color: var(--detail-muted) !important;
    line-height: 1.5;
}

.detail-rating {
    width: max-content;
    margin-top: 0.65rem !important;
    color: #e56a25;
}

.detail-rating__stars {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 0.08rem;
    line-height: 1;
}

.detail-rating__stars-empty {
    color: #d7dce2;
}

.detail-rating__stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #f59e0b;
    white-space: nowrap;
}

.detail-rating__score {
    color: var(--detail-ink) !important;
    font-size: 0.82rem !important;
}

.detail-rating__star {
    color: #e56a25;
    font-size: 0.95rem;
    line-height: 1;
}

.detail-rating__count {
    color: #6f7784 !important;
    font-size: 0.7rem !important;
    text-decoration: none;
}

.detail-rating__count:hover {
    color: var(--detail-orange) !important;
    text-decoration: underline;
}

.detail-identity__meta {
    column-gap: 1rem !important;
    row-gap: 0.45rem !important;
    margin-top: 0.7rem !important;
    color: var(--detail-muted) !important;
    line-height: 1.4;
}

.detail-identity__meta > span {
    align-items: center;
}

.detail-identity__meta svg {
    flex: 0 0 auto;
    color: #7b8798;
}

.detail-avatar {
    display: inline-flex;
    width: 4.8rem;
    height: 4.8rem;
    flex: 0 0 4.8rem;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    border-radius: 1.15rem;
    color: #fff;
    background: #1b2d46;
    box-shadow:
        0 0 0 1px #d9e0e8,
        0 12px 25px rgba(23, 36, 58, 0.16);
    font-size: 1.45rem;
    font-weight: 850;
}

.detail-identity h1,
.detail-hero--job h1 {
    color: var(--detail-ink);
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.detail-hero__actions {
    align-self: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-left: auto;
}

.detail-button--secondary.detail-button--block {
    color: #b91c1c;
    border: 1.5px solid #dc2626;
    background: #fff;
    box-shadow: 0 0 0 1px #dc2626;
}

.detail-button--secondary.detail-button--block:hover {
    color: #991b1b;
    border-color: #b91c1c;
    background: #fef2f2;
    box-shadow: 0 0 0 1px #b91c1c;
}

.detail-button {
    display: inline-flex;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.68rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 0.72rem;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.detail-button:hover {
    transform: translateY(-1px);
}

.detail-button:focus-visible {
    outline: 3px solid rgba(237, 121, 39, 0.28);
    outline-offset: 2px;
}

.detail-button--primary {
    color: #fff;
    background: var(--detail-orange);
    box-shadow: 0 8px 18px rgba(237, 121, 39, 0.2);
}

.detail-button--primary:hover {
    background: #d96718;
}

.detail-button--secondary,
.detail-button--outline {
    border-color: #d9dfe7;
    color: var(--detail-ink);
    background: #fff;
}

.detail-button--secondary:hover,
.detail-button--outline:hover {
    border-color: #aeb8c5;
    background: #f7f8fa;
}

.detail-button--dark {
    color: #fff;
    background: #17243a;
    box-shadow: 0 8px 18px rgba(23, 36, 58, 0.16);
}

.detail-button--dark:hover {
    background: #263a58;
}

.detail-button--compact {
    min-height: 2.25rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.7rem;
}

.detail-shell {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
}

.detail-grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(17rem, 0.85fr);
    align-items: start;
    gap: 1.25rem;
}

.detail-main,
.detail-sidebar {
    min-width: 0;
}

.detail-sidebar {
    position: sticky;
    top: 5.5rem;
}

@media (min-width: 1024px) {
    .detail-main {
        grid-column: 1;
        grid-row: 1;
    }

    .detail-sidebar {
        grid-column: 2;
        grid-row: 1;
    }
}

.detail-panel {
    border-color: var(--detail-line) !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 28px rgba(20, 32, 51, 0.045);
}

.detail-panel h2,
.detail-panel h3 {
    color: var(--detail-ink);
    letter-spacing: -0.015em;
}

.detail-panel p {
    line-height: 1.65;
}

.detail-contact-card {
    position: relative;
    overflow: hidden;
    padding: 1.65rem !important;
    border-color: #f0d9c9 !important;
    background: #fffaf6;
}

.detail-contact-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--detail-orange);
    content: "";
}

.detail-side-card {
    padding: 1.3rem !important;
}

.detail-side-card > h3,
.detail-side-card > div:first-child h3,
.detail-side-card > div:first-child h2 {
    font-size: 0.95rem;
}

.detail-hero--job .detail-hero__inner {
    padding-top: 1.75rem;
    padding-bottom: 1.6rem;
}

.detail-hero--job h1 {
    max-width: 58rem;
    margin-top: 1rem;
}

.detail-hero__meta {
    gap: 0.45rem !important;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    color: #536074;
    background: #f0f3f6;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
}

.detail-chip--status {
    color: #285fa7;
    background: #edf4fc;
    text-transform: capitalize;
}

.detail-page--job .bg-gradient-to-r {
    background: #fff7ef !important;
}

.detail-page--job .detail-main .detail-panel:last-child .grid > div {
    padding: 0.85rem;
    border-radius: 0.75rem;
    background: #f6f8fa;
}

.detail-page--job .detail-main .detail-panel:last-child .grid span {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.68rem;
}

/* Stretched profile link: content must not steal hits from the overlay. */
.market-card--tradie .market-card__hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.market-card--tradie .market-card__top,
.market-card--tradie .market-card__content,
.market-card--tradie .market-card__bottom {
    position: relative;
    z-index: 0;
    pointer-events: none;
}

.market-card--tradie .market-card__inline-link {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    color: #c2410c;
    text-underline-offset: 2px;
}

.market-card--tradie .market-card__inline-link:hover {
    text-decoration: underline;
}

.market-card--tradie .market-card__top > .market-card__date {
    margin-left: auto;
}

.market-card--tradie .market-card__verified {
    padding: 0.25rem 0.42rem;
    border-radius: 999px;
    color: #078847;
    background: #eaf8f0;
}

.market-card--tradie .market-card__top > .market-card__date.market-card__verified {
    border-color: #c6ebd6;
    color: #078847;
    background: #eaf8f0;
}

.market-card--tradie.market-card--featured .market-card__top > .market-card__date.market-card__verified {
    border-color: #c6ebd6;
    color: #078847;
    background: #eaf8f0;
}

.market-card--tradie.market-card--featured .market-card__verified {
    color: #078847;
    background: #eaf8f0;
}

/* Featured tradies use the same light card treatment as regular profiles. */
.market-card--tradie.market-card--featured {
    border-color: #f0a16d;
    color: #17243a;
    background: #fff;
    box-shadow: 0 12px 30px rgba(213, 92, 24, 0.1);
}

.market-card--tradie.market-card--featured .market-card__mark {
    color: #fff;
    background: #1b2d46;
}

.market-card--tradie.market-card--featured .market-card__date,
.market-card--tradie.market-card--featured .market-card__save {
    border-color: #e5e8ec;
    color: #46515f;
    background: #f8f9fa;
}

.market-card--tradie.market-card--featured .market-card__kicker,
.market-card--tradie.market-card--featured .market-card__title {
    color: #151d29;
}

.market-card--tradie.market-card--featured .market-card__tags,
.market-card--tradie.market-card--featured .market-card__value,
.market-card--tradie.market-card--featured .market-card__metrics {
    color: #606a77;
}

.market-card--tradie.market-card--featured .market-card__action {
    color: #fff;
    background: #f58c30;
}

/* Jobs results toolbar — compact marketplace command panel */
.jobs-control-panel.browse-results__toolbar {
    position: relative;
    overflow: hidden;
    gap: 0 !important;
    padding: 0;
    border: 1px solid #dce3eb;
    border-top: 4px solid #f5822d;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 35, 59, 0.075);
}

.jobs-control-panel::after {
    position: absolute;
    top: -5rem;
    right: -4rem;
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    content: "";
    pointer-events: none;
    background: radial-gradient(
        circle,
        rgba(245, 130, 45, 0.1),
        transparent 68%
    );
}

.jobs-control-panel__header {
    position: relative;
    z-index: 1;
    padding: 1.2rem 1.3rem 1rem;
}

.jobs-control-panel__heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.jobs-control-panel__icon {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 2.8rem;
    color: #d86213;
    border: 1px solid #f2d2ba;
    border-radius: 0.8rem;
    background: #fff3e9;
}

.jobs-control-panel__eyebrow {
    margin: 0 0 0.08rem;
    color: #d86213;
    font-size: 0.61rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.jobs-control-panel__heading h2 {
    margin: 0;
    color: #142b48 !important;
    font-size: 1.08rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.jobs-control-panel__heading h2 strong {
    color: #d86213;
    font-size: 1.28rem;
}

.jobs-control-panel__intro {
    margin: 0.16rem 0 0;
    color: #758297;
    font-size: 0.68rem;
}

.jobs-control-panel__post {
    min-height: 2.55rem !important;
    padding-inline: 1rem !important;
    border-radius: 0.7rem !important;
    background: #f5822d !important;
    box-shadow: 0 8px 18px rgba(245, 130, 45, 0.22) !important;
}

.jobs-control-panel__post:hover {
    background: #dc6918 !important;
    transform: translateY(-1px);
}

.jobs-control-panel__body {
    position: relative;
    z-index: 1;
    gap: 0 !important;
    padding: 1rem 1.3rem;
    border-top: 1px solid #e8edf2;
    background: #f8fafc;
}

.jobs-control-panel__form {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 1rem 1.4rem !important;
}

.jobs-control-panel__sources {
    position: relative;
    gap: 0.42rem !important;
    padding-top: 1rem;
}

.jobs-control-panel__sources::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #66758a;
    content: "Job source";
    font-size: 0.61rem;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.04em;
}

.jobs-control-panel__sources button {
    min-height: 2.25rem;
    padding: 0.45rem 0.72rem !important;
    color: #526176 !important;
    border: 1px solid #dbe3eb;
    border-radius: 0.65rem !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15, 35, 59, 0.025);
}

.jobs-control-panel__sources button:hover {
    color: #142b48 !important;
    border-color: #f0bc96;
    background: #fff7f0 !important;
}

.jobs-control-panel__sources button[aria-pressed="true"] {
    color: #fff !important;
    border-color: #142b48;
    background: #142b48 !important;
}

.jobs-control-panel__fields {
    justify-content: flex-end;
    gap: 0.65rem !important;
}

.jobs-filter-group {
    position: relative;
    gap: 0.38rem !important;
    padding-top: 1rem;
}

.jobs-filter-group > span:first-child {
    position: absolute;
    top: 0;
    left: 0;
    color: #66758a !important;
    font-size: 0.61rem !important;
    font-weight: 750 !important;
    line-height: 1;
    letter-spacing: 0.04em;
}

.jobs-filter-group input {
    height: 2.25rem !important;
    color: #142b48;
    border-color: #dbe3eb !important;
    border-radius: 0.65rem !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15, 35, 59, 0.025) !important;
}

.jobs-filter-group input:focus {
    border-color: #f5822d !important;
    box-shadow: 0 0 0 3px rgba(245, 130, 45, 0.12) !important;
    outline: none;
}

.jobs-filter-group--budget input {
    width: 6.4rem !important;
}

.jobs-filter-group--postcode input {
    width: 7.2rem !important;
}

.jobs-control-panel__apply {
    min-height: 2.25rem;
    padding-inline: 0.9rem !important;
    border-radius: 0.65rem !important;
    background: #f5822d !important;
    box-shadow: 0 7px 16px rgba(245, 130, 45, 0.18);
}

.jobs-control-panel__apply:hover {
    background: #dc6918 !important;
}

.jobs-control-panel__note {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0;
    padding: 0.72rem 1.3rem;
    color: #748196 !important;
    border-top: 1px solid #edf1f4;
    background: #fff;
    font-size: 0.64rem !important;
}

.jobs-control-panel__note > span {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #f5822d;
    box-shadow: 0 0 0 3px #fff0e4;
}

@media (max-width: 900px) {
    .jobs-control-panel__form {
        grid-template-columns: 1fr;
    }

    .jobs-control-panel__fields {
        justify-content: flex-start;
    }
}

@media (max-width: 639px) {
    .jobs-control-panel.browse-results__toolbar {
        padding: 0;
    }

    .jobs-control-panel__header {
        align-items: flex-start;
        padding: 1rem;
    }

    .jobs-control-panel__icon {
        width: 2.45rem;
        height: 2.45rem;
        flex-basis: 2.45rem;
    }

    .jobs-control-panel__intro {
        display: none;
    }

    .jobs-control-panel__post {
        width: 2.55rem;
        padding: 0 !important;
    }

    .jobs-control-panel__post span {
        display: none !important;
    }

    .jobs-control-panel__body,
    .jobs-control-panel__note {
        padding-inline: 1rem;
    }

    .jobs-control-panel__body,
    .jobs-control-panel__form,
    .jobs-control-panel__sources,
    .jobs-control-panel__fields,
    .jobs-filter-group {
        min-width: 0;
        max-width: 100%;
    }

    .jobs-control-panel__sources {
        align-items: stretch;
    }

    .jobs-control-panel__sources select {
        flex: 1 0 100%;
        width: 100%;
        max-width: 100%;
        min-height: 2.25rem;
        border-radius: 0.65rem;
    }

    .jobs-control-panel__fields {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .jobs-filter-group {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        width: 100%;
    }

    .jobs-filter-group--postcode {
        grid-template-columns: minmax(0, 1fr);
    }

    .jobs-filter-group input {
        width: 100% !important;
        min-width: 0;
    }

    .jobs-control-panel__apply {
        width: 100%;
        margin-top: 0.35rem;
    }
}

@media (max-width: 1023px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 639px) {
    .detail-hero__inner {
        padding-top: 1.25rem;
        padding-bottom: 1.4rem;
    }

    .detail-hero__toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .detail-identity {
        align-items: flex-start;
    }

    .detail-avatar {
        width: 4.1rem;
        height: 4.1rem;
        flex-basis: 4.1rem;
    }

    .detail-shell {
        padding-top: 1.2rem;
        padding-bottom: 2.5rem;
    }

    .detail-panel,
    .detail-contact-card,
    .detail-side-card {
        padding: 1.15rem !important;
    }

    .detail-button {
        width: 100%;
    }

    .detail-page--job .detail-main .detail-panel:last-child .grid {
        grid-template-columns: 1fr;
    }
}

/* Homeowner quote comparison — unified inner-page-hero design */
.homeowner-quotes-page {
    --quote-ink: #132844;
    --quote-ink-soft: #203c5e;
    --quote-orange: #f5822d;
    --quote-orange-deep: #d56316;
    --quote-canvas: #f8fafc;
    --quote-line: #dce3eb;
    --quote-muted: #64748b;
    color: var(--quote-ink);
}

.homeowner-quotes-page__canvas {
    background: var(--quote-canvas) !important;
}

.quote-page-hero.inner-page-hero {
    position: relative;
    padding-block: clamp(2.75rem, 4vw, 3.5rem);
    border-bottom: 1px solid #f0dfce;
    text-align: center;
}

.quote-page-hero .inner-page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 62rem !important;
}

.quote-page-hero .inner-page-hero__inner > nav {
    justify-content: center;
    margin-bottom: 1.15rem !important;
}

.quote-page-hero .inner-page-hero__inner > div.flex {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: center;
}

.quote-page-hero .inner-page-hero__inner > div.flex > div:first-child {
    max-width: 52rem;
}

.quote-page-hero .inner-page-hero__inner h1 {
    margin-bottom: 0.7rem !important;
    color: #10233d !important;
    font-size: clamp(2rem, 4vw, 2.75rem) !important;
    line-height: 1.12;
}

.quote-page-hero .inner-page-hero__inner .inline-flex.bg-orange-100\/80 {
    min-height: 2.1rem;
    padding: 0.38rem 0.8rem !important;
    color: #d96616 !important;
    border-color: #f3c9aa !important;
    background: #fff0e4 !important;
    font-size: 0.69rem;
}

.quote-page-hero .inner-page-hero__inner .flex.flex-wrap.items-center {
    justify-content: center;
}

.quote-page-hero
    .inner-page-hero__inner
    .flex.flex-wrap.items-center
    > span:not([class*="rounded-full"]) {
    background: rgba(255, 255, 255, 0.82) !important;
}

.quote-page-hero__stat-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 11.5rem;
    padding: 0.85rem 1.15rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 9px 22px rgba(15, 35, 59, 0.07);
    backdrop-filter: blur(8px);
}

.quote-page-hero .quote-page-hero__stat-card {
    margin-top: 0.35rem;
}

.quote-page-hero__stat-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    color: var(--quote-orange);
    border: 1px solid #fedbc0;
    border-radius: 0.75rem;
    background: #fff5ed;
}

.quote-page-hero__stat-value {
    color: var(--quote-ink);
    font-family: var(--font-display, inherit);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.quote-page-hero__stat-label {
    margin-top: 0.22rem;
    color: var(--quote-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Quote hero: one calm project-summary row instead of a collection of pills. */
.quote-page-hero .quote-page-hero__facts {
    display: inline-flex;
    justify-content: center;
    gap: 0 !important;
    max-width: 100%;
    padding: 0.35rem 0.45rem;
    border: 1px solid #eadfd5;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.72);
}

.quote-page-hero .quote-page-hero__fact {
    min-height: 1.75rem;
    padding: 0.2rem 0.72rem !important;
    color: #32445d !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: nowrap;
}

.quote-page-hero .quote-page-hero__fact + .quote-page-hero__fact {
    border-left: 1px solid #e0e5eb !important;
}

.quote-page-hero .quote-page-hero__fact svg {
    width: 0.9rem;
    height: 0.9rem;
}

.quote-page-hero .quote-page-hero__status {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    margin: 0 0.22rem 0 0.45rem;
    padding: 0.2rem 0.55rem !important;
    color: #167542 !important;
    border: 1px solid #cbe9d5 !important;
    background: #edf9f1 !important;
    font-size: 0.68rem !important;
    line-height: 1;
    text-transform: capitalize;
}

.quote-page-hero .quote-page-hero__details-link {
    margin-left: 0.15rem !important;
    padding: 0.2rem 0.42rem;
    color: #d96516 !important;
    text-decoration: none !important;
    font-size: 0.72rem;
    white-space: nowrap;
}

.quote-page-hero .quote-page-hero__details-link:hover {
    color: #a9470b !important;
    text-decoration: underline !important;
    text-underline-offset: 0.22rem;
}

.quote-page-hero__stat-card,
.quote-page-hero .quote-page-hero__stat-card {
    gap: 0.62rem;
    min-width: 0;
    margin-top: 0.15rem;
    padding: 0.55rem 0.78rem;
    border: 1px solid #edd7c2;
    border-left: 3px solid #ee7d2c;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 6px 16px rgba(15, 35, 59, 0.05);
}

.quote-page-hero__stat-icon {
    width: 2.15rem;
    height: 2.15rem;
    flex-basis: 2.15rem;
    border-radius: 0.58rem;
}

.quote-page-hero__stat-icon svg {
    width: 1rem;
    height: 1rem;
}

.quote-page-hero__stat-value {
    font-size: 1.4rem;
}

.quote-page-hero__stat-label {
    margin-top: 0.12rem;
    font-size: 0.6rem;
}

.quote-page-eyebrow {
    margin: 0;
    color: var(--quote-orange);
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.quote-page-shell {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-bottom: 4.5rem;
}

.quote-page-alert {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
    padding: 0.8rem 1rem;
    color: #274e74;
    border: 1px solid #cfdeeb;
    border-radius: 0.8rem;
    background: #edf4fa;
    box-shadow: 0 7px 18px rgba(15, 35, 59, 0.05);
    font-size: 0.75rem;
}

.quote-page-alert > span {
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 1.55rem;
    border-radius: 50%;
    background: #dceaf5;
    font-weight: 800;
}

.quote-page-alert p {
    margin: 0;
}

.quote-page-alert--error {
    color: #9a3030;
    border-color: #f0cece;
    background: #fff2f2;
}

.quote-page-alert--error > span {
    background: #f8dede;
}

.quote-cap-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 18rem) auto;
    align-items: center;
    gap: 1.2rem;
    padding: 1.15rem 1.3rem;
    border: 1px solid var(--quote-line);
    border-top: 4px solid var(--quote-orange);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 35, 59, 0.08);
}

.quote-cap-panel__copy h2 {
    margin: 0.2rem 0 0.2rem;
    color: var(--quote-ink);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.quote-cap-panel__copy > p:last-child {
    max-width: 39rem;
    margin: 0;
    color: var(--quote-muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

.quote-cap-panel__meter {
    overflow: hidden;
    height: 0.48rem;
    border-radius: 999px;
    background: #e9eef3;
}

.quote-cap-panel__meter span {
    display: block;
    height: 100%;
    min-width: 0.35rem;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--quote-orange), #f3a261);
}

.quote-cap-panel__button {
    min-height: 2.45rem;
    padding: 0 0.9rem;
    color: #fff;
    border: 0;
    border-radius: 0.7rem;
    background: var(--quote-orange);
    box-shadow: 0 8px 18px rgba(245, 130, 45, 0.2);
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.quote-cap-panel__button:hover {
    background: var(--quote-orange-deep);
}

.quote-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.65rem 0 0.85rem;
}

.quote-list-heading h2 {
    margin: 0.17rem 0 0;
    color: var(--quote-ink);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.quote-list-heading > p {
    margin: 0;
    color: var(--quote-muted);
    font-size: 0.68rem;
}

.quote-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
}

.quote-comparison-grid > .quote-page-empty {
    grid-column: 1 / -1;
    width: 100%;
}

.quote-comparison-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--quote-line);
    border-top: 4px solid #b9c6d3;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 35, 59, 0.065);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.quote-comparison-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 17px 38px rgba(15, 35, 59, 0.1);
}

.quote-comparison-card--featured {
    border-color: #f0bd99;
    border-top-color: var(--quote-orange);
}

.quote-comparison-card__featured-label {
    padding: 0.48rem 1.15rem;
    color: #fff;
    background: var(--quote-orange);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-align: center;
    text-transform: uppercase;
}

.quote-comparison-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.15rem 0.8rem;
}

.quote-comparison-card__header-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    flex: 0 0 auto;
    max-width: min(100%, 11rem);
}

.quote-comparison-card__tradie {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.7rem;
}

.quote-comparison-card__avatar {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 2.7rem;
    color: #fff;
    border: 3px solid #e6ecf2;
    border-radius: 0.75rem;
    background: var(--quote-ink);
    box-shadow: 0 5px 12px rgba(15, 35, 59, 0.13);
    font-size: 0.9rem;
    font-weight: 800;
}

.quote-comparison-card__tradie h2 {
    overflow: hidden;
    margin: 0;
    color: var(--quote-ink);
    font-size: 0.88rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-comparison-card__tradie p {
    margin: 0.2rem 0 0;
    color: #d76a1b;
    font-size: 0.65rem;
    font-weight: 750;
}

.quote-comparison-card__tradie p small {
    color: var(--quote-muted);
    font-size: 0.62rem;
    font-weight: 500;
}

.quote-comparison-card__status {
    flex: 0 0 auto;
    padding: 0.32rem 0.55rem !important;
    color: #315a83 !important;
    border: 1px solid #d5e2ee !important;
    border-radius: 999px !important;
    background: #eef4fa !important;
    font-size: 0.6rem !important;
    font-weight: 800 !important;
}

.quote-comparison-card__tier {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 1.15rem 0.8rem;
    padding: 0.52rem 0.62rem;
    color: #315a83;
    border: 1px solid #dbe5ef;
    border-radius: 0.65rem;
    background: #f1f6fa;
    font-size: 0.64rem;
    font-weight: 750;
}

.quote-comparison-card__tier small {
    color: var(--quote-muted);
    font-size: 0.62rem;
    font-weight: 500;
}

.quote-comparison-card__price {
    margin: 0 1.15rem;
    padding: 1rem;
    border: 1px solid #f2d4bd;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #fff8f2, #fff3e8);
}

.quote-comparison-card__price span,
.quote-comparison-card__price strong,
.quote-comparison-card__price small {
    display: block;
}

.quote-comparison-card__price span {
    color: #a85a22;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quote-comparison-card__price strong {
    margin-top: 0.15rem;
    color: var(--quote-ink);
    font-size: 1.9rem;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.quote-comparison-card__price small {
    margin-top: 0.16rem;
    color: var(--quote-muted);
    font-size: 0.61rem;
}

.quote-comparison-card__message {
    margin: 0.85rem 1.15rem 0;
    padding: 0.8rem 0.9rem;
    border-left: 3px solid #9db3c8;
    border-radius: 0 0.65rem 0.65rem 0;
    background: #f7f9fb;
}

.quote-comparison-card__message span {
    color: #526176;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.quote-comparison-card__message p {
    margin: 0.28rem 0 0;
    color: #657488;
    font-size: 0.7rem;
    line-height: 1.58;
}

.quote-comparison-card__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.85rem 1.15rem 1rem;
}

.quote-comparison-card__details > div {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid #e4eaf0;
    border-radius: 0.7rem;
}

.quote-comparison-card__detail-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    color: #315a83;
    border-radius: 0.58rem;
    background: #eef4fa;
}

.quote-comparison-card__details p,
.quote-comparison-card__details small,
.quote-comparison-card__details strong {
    display: block;
    min-width: 0;
    margin: 0;
}

.quote-comparison-card__details small {
    color: var(--quote-muted);
    font-size: 0.56rem;
}

.quote-comparison-card__details strong {
    overflow: hidden;
    margin-top: 0.12rem;
    color: var(--quote-ink);
    font-size: 0.64rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-comparison-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    padding: 0.9rem 1.15rem 1rem;
    border-top: 1px solid #e8edf2;
    background: #fbfcfd;
}

.quote-action {
    width: 100%;
    min-height: 2.5rem;
    padding: 0 0.8rem;
    border-radius: 0.68rem;
    font-size: 0.68rem;
    font-weight: 800;
}

.quote-action--primary {
    color: #fff;
    border: 1px solid var(--quote-orange);
    background: var(--quote-orange);
    box-shadow: 0 7px 15px rgba(245, 130, 45, 0.18);
}

.quote-action--primary:hover {
    border-color: var(--quote-orange-deep);
    background: var(--quote-orange-deep);
}

.quote-action--secondary {
    color: #fff;
    border: 1px solid var(--quote-ink);
    background: var(--quote-ink);
}

.quote-action--secondary:hover {
    background: var(--quote-ink-soft);
}

.quote-comparison-card__minor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1 / -1;
    padding-top: 0.25rem;
}

.quote-comparison-card__minor-actions button,
.quote-comparison-card__minor-actions span {
    padding: 0.25rem 0;
    color: #718095;
    border: 0;
    background: transparent;
    font-size: 0.61rem;
    font-weight: 650;
}

.quote-comparison-card__minor-actions button:hover {
    color: var(--quote-ink);
}

.quote-comparison-card__minor-actions .quote-action--danger,
.quote-comparison-card__blocked {
    color: #a94141;
}

.quote-comparison-card__blocked {
    margin: 0;
    padding: 0.8rem 1.15rem;
    border-top: 1px solid #f0dada;
    background: #fff7f7;
    font-size: 0.68rem;
}

.quote-page-empty.ttn-empty-state {
    min-height: 20rem;
    padding: 3rem 1.5rem;
    border-color: var(--quote-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 35, 59, 0.06);
}

.homeowner-quotes-page a:focus-visible,
.homeowner-quotes-page button:focus-visible {
    outline: 3px solid rgba(245, 130, 45, 0.3);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .quote-cap-panel {
        grid-template-columns: 1fr auto;
    }

    .quote-cap-panel__meter {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .quote-comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    .quote-page-hero.inner-page-hero {
        padding-block: 2.8rem 3rem;
    }

    .quote-page-hero .inner-page-hero__inner > nav {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }

    .quote-page-hero .inner-page-hero__inner h1 {
        font-size: 2rem !important;
    }

    .quote-page-hero__stat-card {
        width: auto;
        justify-content: center;
    }

    .quote-page-hero .quote-page-hero__facts {
        width: 100%;
        padding: 0.35rem;
    }

    .quote-page-hero .quote-page-hero__fact {
        padding-inline: 0.5rem !important;
        font-size: 0.73rem;
    }

    .quote-page-hero .quote-page-hero__details-link {
        width: 100%;
        justify-content: center;
        margin-top: 0.1rem;
    }

    .quote-cap-panel {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .quote-cap-panel__meter {
        grid-column: 1;
        grid-row: auto;
    }

    .quote-cap-panel__button {
        width: 100%;
    }

    .quote-list-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .quote-comparison-card__header {
        flex-direction: column;
    }

    .quote-comparison-card__details,
    .quote-comparison-card__actions {
        grid-template-columns: 1fr;
    }

    .quote-comparison-card__minor-actions {
        grid-column: 1;
    }
}

/* Pricing page v2 — high-contrast membership storefront */
.ttn-pricing-page {
    --price-ink: #122844;
    --price-ink-soft: #1d3b5f;
    --price-orange: #f5822d;
    --price-orange-deep: #d96616;
    --price-canvas: #f4f6f9;
    --price-line: #dbe3eb;
    --price-muted: #68778c;
}

.ttn-pricing-page > .min-h-screen {
    overflow: hidden;
    color: var(--price-ink);
    background: var(--price-canvas) !important;
}

.ttn-pricing-page .pricing-hero {
    position: relative;
    min-height: 30rem;
    padding: 5rem 0 8rem !important;
    overflow: hidden;
    border: 0;
    background:
        radial-gradient(
            circle at 82% 14%,
            rgba(245, 130, 45, 0.25),
            transparent 26%
        ),
        radial-gradient(
            circle at 10% 110%,
            rgba(255, 255, 255, 0.09),
            transparent 34%
        ),
        linear-gradient(135deg, #0f2139 0%, #183553 58%, #10243f 100%) !important;
}

.ttn-pricing-page .pricing-hero::before {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.ttn-pricing-page .pricing-hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    content: "";
    background: var(--price-orange);
}

.pricing-hero__inner {
    position: relative;
    z-index: 1;
}

.pricing-hero__eyebrow,
.pricing-section-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #ffc99f;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pricing-hero__eyebrow::before {
    width: 1.7rem;
    height: 1px;
    content: "";
    background: var(--price-orange);
}

.ttn-pricing-page .pricing-hero h1 {
    max-width: 50rem;
    margin: 0.8rem auto 1rem !important;
    color: #fff !important;
    font-size: clamp(2.3rem, 5vw, 4.25rem) !important;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.ttn-pricing-page .pricing-hero p {
    max-width: 44rem;
    color: #c6d2df !important;
    font-size: 0.98rem;
    line-height: 1.75;
}

.pricing-hero__proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.65rem;
}

.pricing-hero__proof span {
    position: relative;
    padding: 0.58rem 0.85rem 0.58rem 1.55rem;
    color: #d8e2eb;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(8, 27, 48, 0.48);
    font-size: 0.69rem;
    font-weight: 700;
}

.pricing-hero__proof span::before {
    position: absolute;
    top: 50%;
    left: 0.72rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    content: "";
    background: var(--price-orange);
    box-shadow: 0 0 0 3px rgba(245, 130, 45, 0.15);
    transform: translateY(-50%);
}

.ttn-pricing-page .pricing-membership-section {
    position: relative;
    z-index: 3;
    margin-top: -5.6rem !important;
    padding-top: 0 !important;
}

.pricing-section-heading {
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.pricing-section-heading > span {
    color: var(--price-orange-deep);
}

.pricing-section-heading h2 {
    margin: 0.35rem 0 0.45rem;
    color: var(--price-ink);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.pricing-section-heading p {
    margin: 0;
    color: var(--price-muted);
    font-size: 0.8rem;
}

.pricing-membership-grid {
    align-items: stretch;
    gap: 1rem !important;
}

.ttn-pricing-page .pricing-plan-card {
    position: relative;
    overflow: hidden;
    padding: 1.55rem !important;
    border: 1px solid var(--price-line) !important;
    border-top: 4px solid #b9c6d3 !important;
    border-radius: 1.1rem !important;
    background: #fff !important;
    box-shadow: 0 16px 38px rgba(15, 35, 59, 0.09) !important;
    transform: none !important;
}

.ttn-pricing-page .pricing-plan-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 22px 48px rgba(15, 35, 59, 0.13) !important;
}

.ttn-pricing-page .pricing-plan-card--verified {
    border-top-color: #315a83 !important;
}

.ttn-pricing-page .pricing-plan-card--premium {
    color: #fff;
    border-color: #284665 !important;
    border-top-color: var(--price-orange) !important;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(245, 130, 45, 0.18),
            transparent 34%
        ),
        linear-gradient(145deg, #122844, #1c3a5c) !important;
}

.pricing-plan-card::after {
    position: absolute;
    right: -3rem;
    bottom: -3rem;
    width: 9rem;
    height: 9rem;
    border: 1px solid rgba(19, 40, 68, 0.06);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.pricing-plan-card--premium::after {
    border-color: rgba(255, 255, 255, 0.08);
}

.pricing-plan-card > div:first-of-type:not(.absolute) {
    color: var(--price-orange-deep) !important;
    border: 1px solid #f1d4be;
    background: #fff3e9 !important;
}

.pricing-plan-card--verified > div:first-of-type:not(.absolute) {
    color: #315a83 !important;
    border-color: #d8e4ef;
    background: #eef4fa !important;
}

.pricing-plan-card--premium > div:first-of-type:not(.absolute) {
    color: #ffc99f !important;
    border-color: rgba(245, 130, 45, 0.28);
    background: rgba(245, 130, 45, 0.14) !important;
}

.ttn-pricing-page .pricing-plan-card > h3 {
    color: var(--price-ink) !important;
    font-size: 1.05rem;
}

.ttn-pricing-page .pricing-plan-card--premium > h3,
.ttn-pricing-page
    .pricing-plan-card--premium
    > div:not(.absolute)
    > .text-foreground {
    color: #fff !important;
}

.pricing-plan-card > h3 + p {
    min-height: 2.65rem;
    color: var(--price-muted) !important;
    font-size: 0.8rem !important;
    line-height: 1.55;
}

.pricing-plan-card--premium > h3 + p,
.pricing-plan-card--premium .text-muted-foreground {
    color: #bdcad7 !important;
}

.pricing-plan-card > div.mb-6 .text-3xl {
    color: var(--price-ink) !important;
    font-size: 2.2rem !important;
    letter-spacing: -0.045em;
}

.pricing-plan-card--premium > div.mb-6 .text-3xl {
    color: #fff !important;
}

.pricing-plan-card ul {
    padding-top: 0.9rem;
    border-top: 1px solid #e8edf2;
}

.pricing-plan-card--premium ul {
    border-color: rgba(255, 255, 255, 0.12);
}

.ttn-pricing-page .pricing-plan-card li svg {
    color: var(--price-orange) !important;
}

.pricing-plan-card li span,
.pricing-plan-card li {
    color: #5e6d80 !important;
    font-size: 0.8rem !important;
}

.pricing-plan-card--premium li span,
.pricing-plan-card--premium li {
    color: #cfdae4 !important;
}

.pricing-plan-card > a,
.pricing-plan-card > button,
.pricing-plan-card > div:last-child > a:first-child {
    min-height: 2.75rem !important;
    border-radius: 0.72rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.pricing-plan-card--free > a,
.pricing-plan-card--verified > button {
    color: var(--price-ink) !important;
    border-color: #cbd6e1 !important;
    background: #f7f9fb !important;
}

.pricing-plan-card--premium > .absolute {
    top: 0.75rem !important;
    right: 0.75rem;
    left: auto !important;
    padding: 0.32rem 0.58rem !important;
    border-radius: 0.55rem !important;
    background: var(--price-orange) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.04em;
    transform: none !important;
}

.pricing-business-section,
.pricing-rate-section,
.pricing-feature-section,
.pricing-compare-section,
.pricing-faq-section {
    position: relative;
}

.pricing-business-section {
    margin-top: 2rem;
}

.pricing-business-section::before,
.pricing-feature-section::before,
.pricing-faq-section::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    content: "";
    background: #fff;
    transform: translateX(-50%);
}

.ttn-pricing-page section > .text-center > h2 {
    color: var(--price-ink) !important;
    letter-spacing: -0.035em;
}

.ttn-pricing-page section > .text-center > p {
    color: var(--price-muted) !important;
    font-size: 0.82rem;
    line-height: 1.65;
}

.pricing-business-section > .grid > div {
    padding: 1.35rem !important;
    border: 1px solid var(--price-line) !important;
    border-radius: 1rem !important;
    box-shadow: 0 9px 26px rgba(15, 35, 59, 0.055) !important;
}

.pricing-business-section > .grid > div:nth-child(2) {
    border-top: 4px solid #315a83 !important;
}

.pricing-business-section > .grid > div:nth-child(3) {
    border-top: 4px solid var(--price-orange) !important;
}

.pricing-business-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem !important;
    padding: 0.7rem 1rem !important;
    color: #fff !important;
    border: 1px solid var(--price-orange) !important;
    border-radius: 0.7rem !important;
    background: var(--price-orange) !important;
    box-shadow: 0 7px 16px rgba(232, 105, 24, 0.18) !important;
    font-size: 0.82rem !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-align: center;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pricing-business-cta:hover {
    color: #fff !important;
    border-color: #d86317 !important;
    background: #d86317 !important;
    box-shadow: 0 9px 20px rgba(216, 99, 23, 0.24) !important;
    transform: translateY(-1px);
}

.pricing-business-cta:focus-visible {
    outline: 3px solid rgba(245, 130, 45, 0.28) !important;
    outline-offset: 3px;
}

.pricing-business-cta--subscribed,
.pricing-business-cta--subscribed:hover {
    color: #53647a !important;
    border-color: #e3e8ee !important;
    background: #f4f6f8 !important;
    box-shadow: none !important;
    transform: none;
}

.pricing-rate-section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.pricing-rate-section::before {
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 50%;
    width: 100vw;
    content: "";
    background: #eef3f8;
    transform: translateX(-50%);
}

.pricing-rate-section > .bg-white,
.pricing-feature-section > .bg-white,
.pricing-compare-section .bg-white,
.pricing-faq-section details {
    border-color: var(--price-line) !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 28px rgba(15, 35, 59, 0.06) !important;
}

.pricing-rate-section table thead tr,
.pricing-feature-section table thead tr {
    background: var(--price-ink) !important;
}

.pricing-feature-table {
    width: 100%;
    table-layout: fixed;
}

.pricing-feature-table th,
.pricing-feature-table td {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* The shared table rule preserves source indentation in headers.  This table
   has nested title and price elements, so that whitespace became empty rows. */
.pricing-feature-table thead th {
    vertical-align: middle;
    white-space: normal !important;
}

.pricing-feature-table thead th > div {
    margin: 0;
    line-height: 1.25;
}

.pricing-feature-table thead th > span {
    display: block;
    margin-top: 0.45rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .pricing-feature-table thead th {
        padding: 1.25rem 1rem !important;
    }
}

.pricing-rate-table {
    width: 100%;
    table-layout: fixed;
}

.pricing-rate-table th:first-child,
.pricing-rate-table td:first-child {
    width: 28%;
}

.pricing-rate-table th,
.pricing-rate-table td {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pricing-rate-section table thead th,
.pricing-feature-section table thead th,
.pricing-feature-section table thead .text-foreground,
.pricing-feature-section table thead .text-muted-foreground {
    color: #fff !important;
}

.pricing-rate-section table tbody tr:hover,
.pricing-feature-section table tbody tr:hover {
    background: #fff8f2 !important;
}

.pricing-rate-section table td > div {
    border: 1px solid #e3e9ef;
    background: #f7f9fb !important;
}

.pricing-band-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.pricing-band-toggle__chevron {
    display: inline-flex;
    margin-top: 0.1rem;
    color: #60758d;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.pricing-band-toggle[aria-expanded="true"] .pricing-band-toggle__chevron {
    transform: rotate(180deg);
}

.pricing-band-toggle__label {
    flex: 1;
    min-width: 0;
}

.pricing-band-categories {
    padding-left: 1.5rem;
}

.pricing-band-row.is-expanded {
    background: #fffdf9 !important;
}

/* Pricing matrix — clearer scan paths and a polished accordion state. */
.pricing-rate-matrix {
    border-color: #dce3eb !important;
    border-radius: 1.1rem !important;
    box-shadow: 0 16px 38px rgba(15, 35, 59, 0.07) !important;
}

.pricing-rate-table thead tr {
    background: #172d49 !important;
}

.pricing-rate-table thead th {
    padding: 1rem 0.9rem !important;
    border: 0 !important;
    font-size: 0.76rem;
    line-height: 1.35;
}

.pricing-rate-table tbody tr {
    transition: background-color 0.2s ease;
}

.pricing-rate-table tbody td {
    padding: 0.85rem 0.75rem !important;
    vertical-align: middle;
}

.pricing-rate-table tbody td:first-child {
    padding-left: 1rem !important;
}

.pricing-band-toggle {
    align-items: center;
    gap: 0.65rem;
    min-height: 2.25rem;
}

.pricing-band-toggle__chevron {
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid #dce3eb;
    border-radius: 50%;
    color: #526981;
    background: #fff;
}

.pricing-band-toggle[aria-expanded="true"] .pricing-band-toggle__chevron {
    border-color: #f5b77f;
    color: #c95608;
    background: #fff1e4;
}

.pricing-band-toggle__label {
    color: #172942 !important;
    font-size: 0.82rem;
    font-weight: 850 !important;
    letter-spacing: 0.025em;
}

.pricing-band-toggle__hint {
    flex: 0 0 auto;
    color: #8a94a4;
    font-size: 0.62rem;
    font-weight: 650;
}

.pricing-band-toggle[aria-expanded="true"] .pricing-band-toggle__hint {
    display: none;
}

.pricing-band-categories {
    display: block;
    padding: 1rem 1.1rem !important;
    border: 1px solid #f0d9c4 !important;
    border-radius: 0.85rem;
    background: #fffaf5 !important;
}

.pricing-band-categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pricing-band-categories__list span {
    display: inline-flex;
    padding: 0.28rem 0.48rem;
    border: 1px solid #eadfd5;
    border-radius: 999px;
    color: #526174;
    background: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.25;
}

.pricing-band-detail-row > td,
.pricing-rate-table .pricing-band-detail-row > td:first-child {
    width: 100% !important;
    padding: 0.7rem 1rem 1rem !important;
    border-top: 0;
    background: #fffdf9 !important;
}

.pricing-band-detail-row:hover {
    background: #fffdf9 !important;
}

.pricing-band-categories__empty {
    margin: 0;
    color: #667085;
    font-size: 0.72rem;
}

.pricing-band-row.is-expanded > td:first-child {
    background: #fffaf5;
}

.pricing-rate-section table td > .pricing-rate-cell {
    display: flex;
    min-height: 5rem;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 0.7rem 0.45rem;
    border: 1px solid #dfe6ed;
    border-radius: 0.8rem;
    background: #f8fafc !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pricing-rate-table tbody tr:hover .pricing-rate-cell,
.pricing-band-row.is-expanded .pricing-rate-cell {
    border-color: #efc59f;
    background: #fff !important;
    box-shadow: 0 7px 18px rgba(159, 74, 13, 0.07);
}

.pricing-rate-cell__price {
    color: #10233d;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.1;
}

.pricing-rate-cell__price span {
    margin-left: 0.12rem;
    color: #667085;
    font-size: 0.61rem;
    font-weight: 650;
}

.pricing-rate-cell__regular {
    margin-top: 0.28rem;
    color: #98a2b3;
    font-size: 0.62rem;
    line-height: 1;
    text-decoration: line-through;
}

.pricing-rate-cell__saving {
    margin-top: 0.35rem;
    padding: 0.2rem 0.42rem;
    border-radius: 999px;
    color: #a84400;
    background: #fff0df;
    font-size: 0.59rem;
    font-weight: 800;
    line-height: 1;
}

.pricing-tier-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
}

.pricing-tier-cards__empty {
    width: 100%;
}

.pricing-rate-section .pricing-tier-card {
    --tier-accent: #64748b;
    --tier-tint: #f8fafc;
    position: relative;
    flex: 0 0 calc((100% - 2rem) / 3);
    min-width: 0;
    min-height: 9rem;
    padding: 1.35rem 1.15rem 1.15rem;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-align: left;
    border: 1px solid #dce4ed;
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--tier-tint), #fff 55%);
    box-shadow: 0 8px 24px rgba(15, 35, 59, 0.055);
}

.pricing-tier-card[data-tier="T1"] { --tier-accent: #f58220; --tier-tint: #fff7ed; }
.pricing-tier-card[data-tier="T2"] { --tier-accent: #3b82c4; --tier-tint: #eff6ff; }
.pricing-tier-card[data-tier="T3"] { --tier-accent: #8b5cbd; --tier-tint: #f7f2fc; }
.pricing-tier-card[data-tier="T4"] { --tier-accent: #199b9b; --tier-tint: #effafa; }
.pricing-tier-card[data-tier="T5"] { --tier-accent: #bc8735; --tier-tint: #fffbef; }

.pricing-rate-section .pricing-tier-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: var(--tier-accent);
}

@media (max-width: 1023px) {
    .pricing-rate-section .pricing-tier-card {
        flex-basis: calc((100% - 1rem) / 2);
    }
}

@media (max-width: 639px) {
    .pricing-rate-section .pricing-tier-card {
        flex-basis: 100%;
        min-height: 0;
    }
}

.pricing-tier-card > p:first-child {
    margin: 0;
    color: #172942;
    font-size: 0.86rem;
    font-weight: 850;
}

.pricing-tier-card > p:nth-child(2) {
    margin-top: 0.65rem !important;
    color: #59687b;
    font-size: 0.75rem;
    line-height: 1.5;
}

.pricing-tier-card > p:last-child:not(:first-child) {
    margin-top: 0.7rem !important;
    padding-top: 0.65rem;
    border-top: 1px solid #edf0f4;
    color: #7a8798;
    font-size: 0.64rem;
    font-style: normal !important;
    line-height: 1.45;
}

.pricing-rate-section > .grid > div {
    border: 1px solid var(--price-line) !important;
    border-top: 3px solid #9eb2c6 !important;
    border-radius: 0.85rem !important;
    background: #fff !important;
    box-shadow: 0 7px 18px rgba(15, 35, 59, 0.04);
}

.pricing-rate-section > .grid > div:first-child {
    border-top-color: var(--price-orange) !important;
}

.pricing-rate-section > .bg-white:last-of-type {
    padding: 2rem !important;
    border-top: 4px solid var(--price-orange) !important;
}

.pricing-rate-section form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 0.75rem;
    max-width: 52rem !important;
}

.pricing-rate-section form > div,
.pricing-rate-section form > button {
    margin: 0 !important;
}

.pricing-rate-section form select,
.pricing-rate-section form input {
    min-height: 2.8rem;
    border-color: #d3dce6 !important;
    border-radius: 0.72rem !important;
}

.pricing-rate-section form > button {
    min-width: 9rem;
    min-height: 2.8rem;
    border-radius: 0.72rem !important;
    background: var(--price-orange) !important;
    font-size: 0.72rem;
    font-weight: 800;
}

.pricing-rate-section .select2-selection__clear {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin: 0 0.15rem 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #5b6573 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.pricing-scarcity-section > div {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 130, 45, 0.35);
    border-radius: 1.15rem !important;
    background:
        radial-gradient(
            circle at 92% 15%,
            rgba(245, 130, 45, 0.22),
            transparent 25%
        ),
        linear-gradient(135deg, #112641, #1d3d60) !important;
    box-shadow: 0 18px 42px rgba(15, 35, 59, 0.14);
}

.pricing-compare-section > .grid > div {
    border-radius: 1rem !important;
}

.pricing-compare-section > .grid > div:last-child {
    border-top: 4px solid var(--price-orange) !important;
}

.pricing-faq-section details {
    padding: 0 !important;
    overflow: hidden;
}

.pricing-faq-section summary {
    padding: 1rem 1.15rem;
}

.pricing-faq-section details p {
    margin: 0 !important;
    padding: 0 1.15rem 1rem;
}

/* Green is reserved for Verified & Active status across the public UI. */
.ttn-pricing-page .text-green-500,
.ttn-pricing-page .text-green-600,
.ttn-pricing-page .text-green-700,
.ttn-pricing-page .text-green-800 {
    color: #315a83 !important;
}

.ttn-pricing-page .bg-green-50,
.ttn-pricing-page .bg-green-100 {
    background: #eef4fa !important;
}

.ttn-pricing-page .border-green-200,
.ttn-pricing-page .border-green-300 {
    border-color: #cfdeeb !important;
}

@media (max-width: 900px) {
    .pricing-membership-grid {
        grid-template-columns: 1fr !important;
        max-width: 38rem;
        margin-inline: auto;
    }

    .pricing-plan-card > h3 + p {
        min-height: 0;
    }

    .pricing-rate-section form {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-rate-section form > button {
        grid-column: 1 / -1;
    }

    .pricing-rate-matrix {
        overflow: hidden;
    }

    .pricing-rate-matrix__scroll {
        overflow: visible;
    }

    .pricing-rate-table,
    .pricing-rate-table tbody {
        display: block;
        width: 100%;
    }

    .pricing-rate-table thead {
        display: none;
    }

    .pricing-rate-table tbody tr:not(.pricing-band-detail-row) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        background: #fff !important;
    }

    .pricing-rate-table tbody .pricing-band-row:not(:first-child) {
        border-top: 1px solid #dfe6ed;
    }

    .pricing-rate-table tbody .pricing-band-detail-row:not([hidden]) {
        display: block;
        width: 100%;
    }

    .pricing-rate-table tbody .pricing-band-detail-row > td {
        display: block;
        width: 100% !important;
        padding: 0.65rem !important;
        border: 0;
    }

    .pricing-rate-table tbody td {
        display: flex;
        width: auto;
        min-width: 0;
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.45rem;
        padding: 0.7rem;
        border-top: 1px solid #edf0f4;
    }

    .pricing-rate-table tbody td:first-child {
        grid-column: 1 / -1;
        width: auto;
        padding: 0.9rem 1rem;
        border-top: 0;
        border-bottom: 1px solid #e4eaf0;
        background: #f4f7fa;
    }

    .pricing-rate-table tbody td:first-child .pricing-band-toggle__label {
        color: #132844 !important;
        font-size: 0.9rem;
        font-weight: 800;
    }

    .pricing-rate-table tbody td:first-child .pricing-band-categories p {
        color: #68778b !important;
        line-height: 1.45;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .pricing-rate-table tbody td:not(:first-child)::before {
        content: attr(data-tier-label);
        color: #60758d;
        font-size: 0.61rem;
        font-weight: 800;
        letter-spacing: 0.055em;
        line-height: 1.25;
        text-align: center;
        text-transform: uppercase;
    }

    .pricing-rate-table tbody td > div {
        display: flex;
        min-height: 4rem;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        padding: 0.65rem 0.35rem !important;
    }

    .pricing-rate-table tbody td:nth-child(6) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 640px) and (max-width: 900px) {
    .pricing-rate-table tbody tr:not(.pricing-band-detail-row) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pricing-rate-table tbody td:nth-child(6) {
        grid-column: auto;
    }
}

@media (max-width: 639px) {
    .ttn-pricing-page .pricing-hero {
        min-height: 27rem;
        padding: 3.8rem 0 7rem !important;
    }

    .ttn-pricing-page .pricing-hero h1 {
        font-size: 2.35rem !important;
    }

    .pricing-hero__proof {
        align-items: stretch;
        flex-direction: column;
        max-width: 16rem;
        margin-inline: auto;
    }

    .ttn-pricing-page .pricing-membership-section {
        margin-top: -4.5rem !important;
    }

    .pricing-section-heading {
        padding: 0 0.5rem;
    }

    .pricing-rate-section form {
        grid-template-columns: 1fr;
    }

    .pricing-rate-section form > button {
        grid-column: 1;
    }

    .pricing-rate-section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

@media (max-width: 767px) {
    .pricing-feature-section > .text-center {
        margin-bottom: 1.5rem;
    }

    .pricing-feature-section > .text-center > h2 {
        font-size: 1.55rem;
        line-height: 1.15;
    }

    .pricing-feature-comparison {
        overflow: hidden;
        border-radius: 1rem !important;
    }

    .pricing-feature-comparison__scroll {
        overflow: visible;
    }

    .pricing-feature-table,
    .pricing-feature-table thead,
    .pricing-feature-table tbody {
        display: block;
        width: 100%;
    }

    .pricing-feature-table thead tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-bottom: 0;
    }

    .pricing-feature-table thead th:first-child {
        display: none;
    }

    .pricing-feature-table thead th {
        display: flex;
        width: auto;
        min-height: 6.25rem;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 0.45rem;
        padding: 1rem 0.55rem;
    }

    .pricing-feature-table thead th + th {
        border-left: 1px solid rgba(255, 255, 255, 0.12);
    }

    .pricing-feature-table thead th > div {
        width: 100%;
        min-width: 0;
        flex-direction: column;
        gap: 0.35rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .pricing-feature-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-bottom: 1px solid #e7ebf0;
        background: #fff !important;
    }

    .pricing-feature-table tbody tr:last-child {
        border-bottom: 0;
    }

    .pricing-feature-table tbody td {
        display: flex;
        width: auto;
        min-width: 0;
        min-height: 5.25rem;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 0.55rem;
        padding: 0.85rem 0.65rem;
        line-height: 1.35;
        text-align: center;
    }

    .pricing-feature-table tbody td:first-child {
        grid-column: 1 / -1;
        min-height: 0;
        align-items: flex-start;
        padding: 0.8rem 1rem;
        color: #132844 !important;
        border-bottom: 1px solid #edf0f4;
        background: #f7f9fb;
        font-size: 0.82rem;
        text-align: left;
    }

    .pricing-feature-table tbody td:nth-child(2) {
        color: #647387 !important;
        background: #fff;
    }

    .pricing-feature-table tbody td:nth-child(3) {
        color: #213a5b;
        border-left: 1px solid #edf0f4;
        background: #fffaf5;
    }

    .pricing-feature-table tbody td:nth-child(2)::before,
    .pricing-feature-table tbody td:nth-child(3)::before {
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        line-height: 1;
        text-transform: uppercase;
    }

    .pricing-feature-table tbody td:nth-child(2)::before {
        content: "Verified";
        color: #60758d;
    }

    .pricing-feature-table tbody td:nth-child(3)::before {
        content: "Premium";
        color: #d96616;
    }

    .pricing-feature-table tbody td svg {
        margin: 0 auto;
    }

    .pricing-feature-table tbody td span {
        max-width: 100%;
        font-size: 0.75rem;
        overflow-wrap: anywhere;
    }
}

/* Pricing page alignment — use the same calm inner-page language as Resources. */
.ttn-pricing-page .pricing-hero {
    min-height: 0 !important;
    padding: 3.75rem 0 4rem !important;
    border-bottom: 1px solid #eee7df;
    background: linear-gradient(
        180deg,
        #fff8f1 0%,
        #fffdfa 58%,
        #f8f9fb 100%
    ) !important;
}

.ttn-pricing-page .pricing-hero::before,
.ttn-pricing-page .pricing-hero::after {
    display: none !important;
}

.pricing-hero__eyebrow {
    display: inline-flex;
    min-height: 2.15rem;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.8rem;
    color: #d96616 !important;
    border: 1px solid #f3c9aa;
    border-radius: 999px;
    background: #fff0e4;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.pricing-hero__eyebrow::before {
    display: none;
}

.ttn-pricing-page .pricing-hero h1 {
    max-width: 48rem;
    margin: 0.9rem auto 0.65rem !important;
    color: #10233d !important;
    font-size: clamp(2rem, 4vw, 2.75rem) !important;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.ttn-pricing-page .pricing-hero p {
    max-width: 44rem;
    margin-inline: auto;
    color: #5f6f82 !important;
    font-size: 0.92rem;
    line-height: 1.65;
}

.ttn-pricing-page .pricing-membership-section {
    margin-top: 0 !important;
    padding-top: 3.25rem !important;
    padding-bottom: 3.5rem !important;
}

.pricing-section-heading {
    margin-bottom: 1.6rem;
}

.pricing-section-heading > span {
    color: #d96616;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.pricing-section-heading h2 {
    margin-top: 0.3rem;
    font-size: 1.65rem;
}

.ttn-pricing-page .pricing-plan-card,
.ttn-pricing-page .pricing-plan-card--premium {
    color: #122844;
    padding: 1.5rem !important;
    border: 1px solid #dde4eb !important;
    border-top: 3px solid #aebdcb !important;
    border-radius: 0.95rem !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(15, 35, 59, 0.055) !important;
}

.ttn-pricing-page .pricing-plan-card--verified {
    border-top-color: #315a83 !important;
}

.ttn-pricing-page .pricing-plan-card--premium {
    border-color: #efc4a5 !important;
    border-top-color: #f5822d !important;
    box-shadow: 0 10px 28px rgba(15, 35, 59, 0.07) !important;
}

.ttn-pricing-page .pricing-plan-card:hover,
.ttn-pricing-page .pricing-plan-card--premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(15, 35, 59, 0.085) !important;
}

.ttn-pricing-page .pricing-plan-card::after {
    display: none;
}

.ttn-pricing-page .pricing-plan-card--premium > h3,
.ttn-pricing-page
    .pricing-plan-card--premium
    > div:not(.absolute)
    > .text-foreground,
.ttn-pricing-page .pricing-plan-card--premium > div.mb-6 .text-3xl {
    color: #122844 !important;
}

.ttn-pricing-page .pricing-plan-card--premium > h3 + p,
.ttn-pricing-page .pricing-plan-card--premium .text-muted-foreground,
.ttn-pricing-page .pricing-plan-card--premium li,
.ttn-pricing-page .pricing-plan-card--premium li span {
    color: #647387 !important;
}

.ttn-pricing-page .pricing-plan-card--premium ul {
    border-color: #e8edf2;
}

.pricing-plan-card--premium > .absolute {
    top: 0.8rem !important;
    right: 0.8rem;
    color: #c75910 !important;
    border: 1px solid #f1c9aa;
    background: #fff0e3 !important;
}

.pricing-business-section,
.pricing-rate-section,
.pricing-feature-section,
.pricing-scarcity-section,
.pricing-compare-section,
.pricing-faq-section {
    padding-top: 0rem !important;
    padding-bottom: 3.5rem !important;
}

.pricing-business-section::before,
.pricing-feature-section::before,
.pricing-faq-section::before,
.pricing-rate-section::before {
    background: transparent !important;
}

.pricing-business-section > .grid > div,
.pricing-rate-section > .bg-white,
.pricing-feature-section > .bg-white,
.pricing-compare-section .bg-white,
.pricing-faq-section details {
    box-shadow: 0 7px 20px rgba(15, 35, 59, 0.045) !important;
}

.pricing-rate-section::after {
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 50%;
    width: 100vw;
    content: "";
    border-top: 1px solid #e8edf2;
    border-bottom: 1px solid #e8edf2;
    background: #f0f3f7;
    transform: translateX(-50%);
}

.pricing-scarcity-section > div {
    border-radius: 1rem !important;
    background: #172f4d !important;
    box-shadow: 0 10px 28px rgba(15, 35, 59, 0.1);
}

.pricing-scarcity-card {
    padding: clamp(2rem, 4vw, 3.5rem) !important;
}

.pricing-scarcity-card__inner {
    max-width: 72rem !important;
}

.pricing-scarcity-card h2 {
    max-width: 58rem;
    margin: 0 auto 1rem !important;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.pricing-scarcity-card__lead {
    max-width: 66rem;
    margin: 0 auto 2.25rem !important;
    color: #dce7f2 !important;
    font-size: clamp(0.92rem, 1.4vw, 1.05rem) !important;
    line-height: 1.7;
    text-wrap: pretty;
}

.pricing-scarcity-card__benefits {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem !important;
}

.pricing-scarcity-card__benefit {
    align-items: flex-start;
    gap: 0.85rem !important;
    min-width: 0;
    min-height: 9rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.055);
}

.pricing-scarcity-card__benefit > svg {
    box-sizing: content-box;
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0.6rem;
    color: #ffc795 !important;
    border-radius: 0.65rem;
    background: rgba(245, 130, 45, 0.14);
}

.pricing-scarcity-card__benefit > div {
    min-width: 0;
}

.pricing-scarcity-card__benefit p:first-child {
    margin: 0 0 0.45rem !important;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.35;
}

.pricing-scarcity-card__benefit p:last-child {
    margin: 0;
    color: #cbd9e7 !important;
    font-size: 0.82rem;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .pricing-scarcity-card__benefits {
        grid-template-columns: 1fr;
    }

    .pricing-scarcity-card__benefit {
        min-height: 0;
    }
}

@media (max-width: 639px) {
    .ttn-pricing-page .pricing-hero {
        min-height: 0 !important;
        padding: 3rem 0 3.25rem !important;
    }

    .ttn-pricing-page .pricing-hero h1 {
        font-size: 2rem !important;
    }

    .ttn-pricing-page .pricing-membership-section {
        margin-top: 0 !important;
        padding-top: 2.5rem !important;
    }

    .pricing-scarcity-card {
        padding: 1.5rem !important;
    }

    .pricing-scarcity-card h2,
    .pricing-scarcity-card__lead {
        text-align: left;
    }

    .pricing-scarcity-card__benefit {
        padding: 1rem;
    }
}

@media (max-width: 900px) {
    .header-location-trigger {
        max-width: 15.75rem;
    }
}

@media (max-width: 639px) {
    header[data-header] > div:first-child > div > a:first-child {
        min-width: 0;
        flex: 0 1 auto;
    }

    header[data-header] .brand-logo {
        height: 24px;
    }

    header[data-header] .header-location-trigger {
        overflow: hidden;
    }

    header[data-header] .header-location-trigger.has-location > span {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    header[data-header] [data-mobile-toggle] {
        flex: 0 0 2.25rem;
    }
}

@media (max-width: 300px) {
    header[data-header] .brand-logo {
        height: 21px;
    }

    header[data-header] .header-location-trigger {
        padding-inline: 0.55rem;
    }
}

/* The full navigation needs more room than a tablet-width header provides. */
@media (min-width: 768px) and (max-width: 1199px) {
    header[data-header] > div:first-child > div {
        gap: 1rem;
    }

    header[data-header] > div:first-child > div > nav,
    header[data-header] > div:first-child > div > div.hidden.md\:flex {
        display: none !important;
    }

    header[data-header] [data-mobile-toggle] {
        display: inline-flex !important;
        flex: 0 0 auto;
        margin-left: auto;
    }

    header[data-header] .header-location-trigger {
        width: auto;
        max-width: 12rem;
        margin-left: 0;
        margin-right: auto;
        padding-inline: 0.7rem;
    }

    header[data-header] .header-location-trigger:not(.has-location) {
        max-width: none;
    }

    header[data-header] .header-location-trigger > span,
    header[data-header] .header-location-trigger__chevron {
        display: inline;
    }

    header[data-header] [data-mobile-menu]:not([hidden]) {
        display: block !important;
        position: absolute;
        left: 0.75rem;
        right: 0.75rem;
        top: calc(100% + 0.35rem);
        max-height: min(70vh, 28rem);
        overflow-y: auto;
        border: 1px solid #e5e9ef;
        border-radius: 0.9rem;
        background: #fff;
        box-shadow: 0 18px 40px rgba(23, 36, 58, 0.14);
    }
}

@media (min-width: 1200px) and (max-width: 1279px) {
    header[data-header] > div:first-child {
        padding-inline: 1rem;
    }

    header[data-header] > div:first-child > div > nav {
        flex-shrink: 0;
        gap: 0;
    }

    header[data-header] > div:first-child > div > nav > a,
    header[data-header] > div:first-child > div > nav > div > button {
        padding-inline: 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    header[data-header] > div:first-child > div > div.hidden.md\:flex {
        gap: 0.5rem;
    }

    header[data-header] .header-location-trigger {
        width: 2.4rem;
        min-width: 2.4rem;
        margin-left: 0.5rem;
        padding-inline: 0.65rem;
    }

    header[data-header] .header-location-trigger > span,
    header[data-header] .header-location-trigger__chevron {
        display: none;
    }
}

@media (min-width: 640px) and (max-width: 850px) {
    main [data-tabs] form > div.relative:first-of-type {
        flex: 0 0 13.25rem;
    }
}

.ttn-footer-contact-email {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ttn-breakable-email {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 767px) {
    .awards-tier-tabs {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        overflow: visible;
        padding-bottom: 0;
    }

    .awards-tier-tab {
        min-width: 0;
    }
}

@media (max-width: 399px) {
    .ttn-client-portal-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ttn-client-portal-status > span {
        white-space: nowrap;
    }
}

/* Responsive hardening for dense public and homeowner views. */
.leaderboard-page,
.city-tradies-page,
.homeowner-dashboard,
.leaderboard-page form,
.homeowner-dashboard [data-tab-panel] {
    min-width: 0;
}

.leaderboard-filter > *,
.homeowner-job-card__header > *,
.homeowner-dashboard__quote > div > *,
.homeowner-dashboard__tracking-head > *,
.homeowner-dashboard__notification > * {
    min-width: 0;
}

.leaderboard-filter .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.leaderboard-rank-row > div:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
    color: #f58c30;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.homeowner-job-card__meta > span:last-child,
.homeowner-dashboard__quote p,
.homeowner-dashboard__tracking-head h3,
.homeowner-dashboard__tracking-head p,
.homeowner-dashboard__review-prompt p,
.homeowner-dashboard__notification h3,
.homeowner-dashboard__notification p {
    overflow-wrap: anywhere;
}

@media (max-width: 639px) {
    .leaderboard-page .inner-page-hero__inner,
    .city-tradies-page .inner-page-hero__inner {
        padding-inline: 1rem;
    }

    .leaderboard-tabs > button {
        min-width: 0;
        padding-inline: 0.35rem;
    }

    .leaderboard-filter {
        padding: 0.85rem;
    }

    .leaderboard-sponsor-note,
    .leaderboard-results-heading {
        flex-wrap: wrap;
    }

    .leaderboard-results-heading {
        gap: 0.25rem 0.75rem;
    }

    .leaderboard-rank-row {
        display: grid;
        grid-template-columns: 2rem 2rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0.35rem 0.65rem;
        padding: 0.9rem;
    }

    .leaderboard-rank-row > div:first-child,
    .leaderboard-rank-row > div:nth-child(2) {
        width: 2rem;
        height: 2rem;
        grid-row: 1 / -1;
        align-self: center;
    }

    .leaderboard-rank-row > div:first-child {
        grid-column: 1;
    }

    .leaderboard-rank-row > div:nth-child(2) {
        grid-column: 2;
    }

    .leaderboard-rank-row > div:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
        width: 100%;
    }

    .leaderboard-rank-row > div:nth-child(3) p {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .leaderboard-rank-row > div:last-child {
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
        font-size: 0.75rem;
        letter-spacing: normal;
        text-transform: none;
    }

    .city-tradies-page .inner-page-hero__inner > div:last-child > a {
        width: 100%;
        max-width: 22rem;
        padding-inline: 1rem;
        white-space: normal;
        text-align: center;
    }

    .city-tradies-page section .flex.items-center.justify-between.mb-4 {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .city-tradies-page section .flex.items-center.justify-between.mb-4 h2 {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .homeowner-job-card,
    .homeowner-dashboard__quote,
    .homeowner-dashboard__review-prompt,
    .homeowner-dashboard [data-tab-panel] .bg-white.rounded-xl.border.p-5 {
        padding: 1rem;
    }

    .homeowner-job-card__header,
    .homeowner-dashboard__quote > div,
    .homeowner-dashboard__tracking-head,
    .homeowner-dashboard__review-prompt,
    .homeowner-dashboard__notification {
        flex-direction: column;
        align-items: flex-start;
    }

    .homeowner-job-card__header {
        gap: 0.75rem;
    }

    .homeowner-job-card__meta {
        flex-wrap: wrap;
    }

    .homeowner-job-card__footer {
        gap: 0.75rem;
    }

    .homeowner-dashboard__quote > div > div:last-child,
    .homeowner-dashboard__tracking-head > span,
    .homeowner-dashboard__review-prompt > a {
        align-self: flex-start;
    }

    .homeowner-dashboard__notification-actions {
        flex-wrap: nowrap;
    }

    .homeowner-dashboard__notification > span {
        order: -1;
    }
}

@media (max-width: 359px) {
    .leaderboard-rank-row {
        grid-template-columns: 1.9rem 1.9rem minmax(0, 1fr);
        gap: 0.35rem 0.5rem;
        padding-inline: 0.7rem;
    }

    .homeowner-job-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* CMS rich text (Quill/admin editor HTML on public pages) */
.cms-rich-text {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
}

.cms-rich-text > *:first-child {
    margin-top: 0;
}

.cms-rich-text > *:last-child {
    margin-bottom: 0;
}

.cms-rich-text p {
    margin: 0 0 0.85em;
}

.cms-rich-text h1,
.cms-rich-text h2,
.cms-rich-text h3,
.cms-rich-text h4 {
    color: #132844;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.1em 0 0.5em;
}

.cms-rich-text h1 {
    font-size: 1.75rem;
}
.cms-rich-text h2 {
    font-size: 1.35rem;
}
.cms-rich-text h3 {
    font-size: 1.15rem;
}
.cms-rich-text h4 {
    font-size: 1.05rem;
}

.cms-rich-text strong,
.cms-rich-text b {
    color: #132844;
    font-weight: 700;
}

.cms-rich-text em,
.cms-rich-text i {
    font-style: italic;
}

.cms-rich-text u {
    text-decoration: underline;
}

.cms-rich-text s,
.cms-rich-text strike {
    text-decoration: line-through;
}

.cms-rich-text ul,
.cms-rich-text ol {
    margin: 0 0 0.85em;
    padding-left: 1.35rem;
}

.cms-rich-text ul {
    list-style: disc;
}
.cms-rich-text ol {
    list-style: decimal;
}

.cms-rich-text li {
    margin: 0.3em 0;
}

.cms-rich-text a {
    color: #f5822d;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cms-rich-text a:hover {
    color: #d96616;
}

.cms-rich-text blockquote {
    margin: 0.85em 0;
    padding: 0.5em 0 0.5em 1rem;
    border-left: 3px solid #f5822d;
    color: #68778b;
}

.ttn-resource-page--cost-guides .cms-rich-text--intro {
    color: #68778b;
    font-size: 1.05rem;
}

.ttn-resource-page--cost-guides .cms-rich-text--intro p {
    margin-bottom: 0.5em;
}

.cms-rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.85em 0 1em;
    font-size: 0.92rem;
}

.cms-rich-text th,
.cms-rich-text td {
    border: 1px solid #dfe5ec;
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.cms-rich-text th {
    background: #f0f3f7;
    color: #132844;
    font-weight: 700;
}

.cms-rich-text tr:nth-child(even) td {
    background: #fafbfc;
}

/* Cost guides share the same card language as the public tradie directory. */
.cost-guide-hero {
    border-bottom: 1px solid #edf0f3;
}

.cost-guide-hero__eyebrow {
    display: inline-flex;
    padding: 0.42rem 0.75rem;
    border: 1px solid #fed7b8;
    border-radius: 999px;
    color: #c85d16;
    background: rgba(255, 247, 237, 0.92);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cost-guide-search {
    box-shadow: 0 14px 34px rgba(15, 27, 43, 0.09);
}

.cost-guide-search:focus {
    border-color: #f58c30;
    outline: 3px solid rgba(245, 140, 48, 0.16);
}

.cost-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.cost-guide-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 20rem;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 1.1rem;
    color: #17243a;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 27, 43, 0.06);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.cost-guide-card:hover {
    border-color: #f3b17b;
    box-shadow: 0 18px 38px rgba(15, 27, 43, 0.11);
    transform: translateY(-4px);
}

.cost-guide-card:focus-visible {
    outline: 3px solid rgba(245, 140, 48, 0.25);
    outline-offset: 3px;
}

.cost-guide-card__accent {
    height: 0.3rem;
    flex: 0 0 auto;
    background: linear-gradient(90deg, #f58c30, #ffba7a);
}

.cost-guide-card__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.1rem 1.15rem 0.65rem;
}

.cost-guide-card__icon {
    display: inline-flex;
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 2.7rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #fed9ba;
    border-radius: 0.8rem;
    color: #d76618;
    background: #fff7ef;
}

.cost-guide-card__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.cost-guide-card__type,
.cost-guide-card__postcode {
    display: inline-flex;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 750;
    line-height: 1;
}

.cost-guide-card__type {
    color: #5d6876;
    background: #f1f4f7;
}

.cost-guide-card__postcode {
    min-width: 4.5rem;
    min-height: 3rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin-left: auto;
    padding: 0.45rem 0.7rem;
    border: 1px solid #ffc999;
    border-radius: 0.75rem;
    color: #b84e0b;
    background: linear-gradient(145deg, #fff8f1, #ffead8);
    box-shadow: 0 5px 12px rgba(215, 102, 24, 0.1);
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.cost-guide-card__postcode::before {
    color: #a8734d;
    content: "Postcode";
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
}

.cost-guide-card__arrow {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 50%;
    color: #697482;
    background: #f5f7f9;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.cost-guide-card__arrow svg {
    width: 0.95rem;
    height: 0.95rem;
}

.cost-guide-card:hover .cost-guide-card__arrow {
    color: #fff;
    background: #f58c30;
    transform: translateX(2px);
}

.cost-guide-card__body {
    flex: 1;
    padding: 0.65rem 1.15rem 1.2rem;
}

.cost-guide-card__category {
    margin: 0 0 0.42rem;
    color: #c85d16;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cost-guide-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #15243a;
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.cost-guide-card__description {
    display: -webkit-box;
    margin: 0.7rem 0 0;
    overflow: hidden;
    color: #707b89;
    font-size: 0.82rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.cost-guide-card__footer {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid #e9edf1;
    background: #fafbfc;
}

.cost-guide-card__footer > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.18rem;
}

.cost-guide-card__footer-label {
    color: #89929e;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cost-guide-card__footer strong {
    overflow: hidden;
    color: #24364d;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cost-guide-card__cta {
    flex: 0 0 auto;
    color: #d76618;
    font-size: 0.74rem;
    font-weight: 800;
}

.cost-guide-listing > p {
    max-width: 42rem;
    margin-right: auto;
    margin-left: auto;
}

.ttn-resource-page--cost-guides section > .rounded-xl.border {
    border-color: #e5e9ee;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 27, 43, 0.045);
}

/* Cost-guide editorial content: one readable article flow instead of stacked cards. */

.cost-guide-hero + .cost-guide-editorial,
.cost-guide-hero + section + .cost-guide-editorial {
    padding-top: 2.4rem;
}

.cost-guide-editorial__block {
    padding: 1.85rem 0 2rem;
    color: #4b596b;
    background: transparent;
}

.cost-guide-editorial__intro {
    padding-top: 0;
    color: #3f4e61;
    font-size: 1rem;
    line-height: 1.8;
}

.cost-guide-editorial__block > h2 {
    position: relative;
    margin: 0 0 0.9rem;
    padding-left: 1rem;
    color: #132844;
    font-size: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.cost-guide-editorial__block > h2::before {
    content: "";
    position: absolute;
    top: 0.18rem;
    bottom: 0.18rem;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: #f5822d;
}

.cost-guide-editorial__block .cms-rich-text {
    color: #536174;
    font-size: 0.94rem;
    line-height: 1.78;
}

.cost-guide-editorial__block .cms-rich-text p {
    margin-bottom: 0.8rem;
}

.cost-guide-editorial__block .cms-rich-text ul,
.cost-guide-editorial__block .cms-rich-text ol,
.cost-guide-editorial__factors > ul {
    margin-top: 0.7rem;
    columns: 2;
    column-gap: 2.5rem;
}

.cost-guide-editorial__block .cms-rich-text li,
.cost-guide-editorial__factors > ul li {
    break-inside: avoid;
    margin: 0 0 0.55rem;
    line-height: 1.6;
}

.cost-guide-editorial__factors > ul span:first-child {
    color: #f5822d !important;
}

.cost-guide-editorial .cms-rich-text table {
    margin-top: 1.2rem;
    border: 1px solid #dfe5ec;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 27, 43, 0.035);
}

.cost-guide-editorial--faq .cost-guide-editorial__block {
    padding-bottom: 2.3rem;
}

.cost-guide-editorial--faq .space-y-3 {
    border-top: 1px solid #dfe5ec;
}

.cost-guide-editorial--faq details {
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #dfe5ec !important;
    border-radius: 0 !important;
    background: transparent;
}

.cost-guide-editorial--faq summary {
    min-height: 3.8rem;
    padding: 0.95rem 0;
    color: #20364f;
    font-size: 0.9rem;
}

.cost-guide-editorial--faq details > .cms-rich-text {
    margin: -0.25rem 0 1.1rem;
    padding: 0 2.25rem 0 0;
}

.cost-guide-editorial--faq summary svg {
    color: #e87513;
}

@media (max-width: 767px) {
    .cost-guide-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cost-guide-card {
        min-height: 18rem;
    }

    .cost-guide-card__header,
    .cost-guide-card__body,
    .cost-guide-card__footer {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .cost-guide-card__title {
        font-size: 1.15rem;
    }

    .cost-guide-breadcrumb {
        display: flex;
        max-width: 100%;
        align-items: center;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .cost-guide-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .cost-guide-actions > a {
        width: 100%;
        min-height: 2.75rem;
    }

    .cost-guide-listing {
        padding-bottom: 3rem;
    }

    .ttn-resource-page--cost-guides .cms-rich-text--intro {
        font-size: 0.95rem;
    }

    .ttn-resource-page--cost-guides section > .rounded-xl.border {
        padding: 1rem;
    }

    .cost-guide-editorial {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .cost-guide-hero + .cost-guide-editorial,
    .cost-guide-hero + section + .cost-guide-editorial {
        padding-top: 1.4rem;
    }

    .cost-guide-editorial__block {
        padding: 1.45rem 0 1.6rem;
    }

    .cost-guide-editorial__block .cms-rich-text ul,
    .cost-guide-editorial__block .cms-rich-text ol,
    .cost-guide-editorial__factors > ul {
        columns: 1;
    }

    .cost-guide-editorial .cms-rich-text {
        overflow-x: auto;
    }
}

@media (min-width: 768px) and (max-width: 1120px) {
    .cost-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Authenticated homeowner workspace -------------------------------------------- */
body.homeowner-portal {
    --home-ink: #132844;
    --home-muted: #68778b;
    --home-line: #dfe5ec;
    --home-canvas: #f4f6f8;
    --home-accent: #ed7b2b;
    --home-accent-dark: #d56418;
    --home-accent-soft: #fff1e6;
    color: var(--home-ink);
    background: var(--home-canvas);
}

body.homeowner-portal .homeowner-dashboard > .min-h-screen {
    background: linear-gradient(
        180deg,
        #fafbfc 0,
        var(--home-canvas) 17rem
    ) !important;
}

body.homeowner-portal
    .homeowner-dashboard
    > .min-h-screen
    > .bg-white.border-b {
    position: relative;
    z-index: 5;
    border-color: var(--home-line);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 5px 18px rgba(17, 31, 49, 0.035);
    backdrop-filter: blur(10px);
}

body.homeowner-portal .homeowner-dashboard h1,
body.homeowner-portal .homeowner-dashboard h2,
body.homeowner-portal .homeowner-dashboard h3 {
    color: var(--home-ink);
    letter-spacing: -0.025em;
}

.homeowner-profile-page > .min-h-screen {
    background: linear-gradient(
        180deg,
        #fafbfc,
        var(--home-canvas, #f4f6f8)
    ) !important;
}
.homeowner-profile-page > .min-h-screen > .bg-white.border-b {
    border-color: var(--home-line, #dfe5ec);
    box-shadow: 0 5px 18px rgba(17, 31, 49, 0.035);
}

.homeowner-profile-page__heading {
    margin-bottom: 1.4rem;
}
.homeowner-profile-page__heading > span {
    color: #d56317;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.homeowner-profile-page__heading h1 {
    margin: 0.2rem 0 0;
    color: #132844;
    letter-spacing: -0.035em;
}
.homeowner-profile-page__heading p {
    margin: 0.25rem 0 0;
    color: #68778b;
    font-size: 0.78rem;
}
.homeowner-profile-card {
    overflow: visible;
    padding: 1.6rem !important;
    border-color: var(--home-line, #dfe5ec) !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 30px rgba(17, 31, 49, 0.055);
}
.homeowner-profile-card form label {
    color: #35455a;
    font-size: 0.77rem;
    font-weight: 700;
}
.homeowner-profile-card form input:not([type="hidden"]) {
    border-color: #d6dee7;
    border-radius: 0.7rem;
    background: #fbfcfd;
}
.homeowner-profile-card form input:focus {
    border-color: #ed7b2b;
    outline: 3px solid rgba(237, 123, 43, 0.13);
    box-shadow: none;
}
.homeowner-profile-card .save-profile-btn {
    min-width: 9rem;
    min-height: 2.7rem;
    border-radius: 0.65rem;
    background: #ed7b2b !important;
    box-shadow: 0 7px 16px rgba(237, 123, 43, 0.2);
}
.homeowner-profile-card .save-profile-btn:hover {
    background: #d56418 !important;
}
.homeowner-profile-postcode {
    position: relative;
    z-index: 20;
}
.homeowner-profile-postcode > .select2.select2-container {
    position: relative;
    z-index: 22;
}
body.homeowner-portal .postcode-select2-dropdown {
    overflow: hidden;
    border-color: #ed7b2b;
    border-radius: 0.7rem;
    box-shadow: 0 14px 30px rgba(17, 31, 49, 0.14);
}
.homeowner-profile-card--blocked {
    position: relative;
    z-index: 1;
}
.homeowner-profile-card--blocked > h2 {
    color: #132844;
}
.homeowner-blocked-tradie-row {
    border-color: var(--home-line, #dfe5ec) !important;
    border-radius: 0.75rem;
}

.homeowner-blocked-tradie-row__avatar {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e2e6eb;
    border-radius: 50%;
    color: #fff;
    background: #1b2d46;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
}

.homeowner-blocked-tradie-row__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.homeowner-blocked-tradie-row__unblock {
    border-color: #d6dee7 !important;
    border-radius: 0.55rem;
    color: #4a586c !important;
}
.homeowner-blocked-tradie-row__unblock:hover {
    border-color: #c5ced8 !important;
    background: #f8fafc !important;
}
@media (max-width: 639px) {
    .homeowner-profile-card {
        padding: 1rem !important;
    }
    .homeowner-profile-card .save-profile-btn {
        width: 100%;
    }
}

body.homeowner-portal .homeowner-dashboard .bg-green-600 {
    background-color: var(--home-accent) !important;
}

body.homeowner-portal .homeowner-dashboard .hover\:bg-green-700:hover {
    background-color: var(--home-accent-dark) !important;
}

body.homeowner-portal .homeowner-dashboard a.text-green-600,
body.homeowner-portal
    .homeowner-dashboard
    .text-green-700:not(.tradie-verification-state *) {
    color: #c45a12 !important;
}

body.homeowner-portal
    .homeowner-dashboard
    [data-tabs]
    > .lg\:hidden
    [data-state="active"] {
    color: #fff !important;
    background: var(--home-accent) !important;
    box-shadow: 0 5px 12px rgba(237, 123, 43, 0.2);
}

body.homeowner-portal .homeowner-dashboard [data-tabs] > .lg\:hidden {
    border-color: var(--home-line);
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 7px 18px rgba(17, 31, 49, 0.055);
    backdrop-filter: blur(10px);
}

.homeowner-dashboard aside > .bg-white.rounded-xl.border {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem;
    border-color: var(--home-line);
    border-radius: 1rem;
    box-shadow: 0 14px 36px rgba(17, 31, 49, 0.07);
}

.homeowner-dashboard aside > div > div:first-child {
    margin-bottom: 0.65rem;
    padding: 1rem 0.75rem 1.1rem;
    border-bottom: 1px solid #e8edf1;
}

.homeowner-dashboard aside > div > div:first-child > div {
    width: 2.75rem;
    height: 2.75rem;
    color: #d56317 !important;
    border: 1px solid #f5d3bb;
    background: var(--home-accent-soft) !important;
}

.homeowner-dashboard aside nav button,
.homeowner-dashboard aside nav a {
    min-height: 2.6rem;
    border-radius: 0.65rem;
}

.homeowner-dashboard aside nav [data-state="active"] {
    color: #b9500d !important;
    background: var(--home-accent-soft) !important;
    box-shadow: inset 3px 0 0 var(--home-accent);
}

.homeowner-dashboard__welcome {
    min-height: 4.4rem;
    gap: 1.5rem;
    padding: 0.25rem 0 0.35rem;
}

.homeowner-dashboard__eyebrow {
    display: block;
    margin-bottom: 0.22rem;
    color: #d56317;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.homeowner-dashboard__welcome h2 {
    margin: 0;
    font-size: 1.55rem !important;
}
.homeowner-dashboard__welcome p {
    margin: 0.25rem 0 0;
    color: var(--home-muted);
    font-size: 0.76rem;
}

.homeowner-dashboard
    [data-tab-panel="overview"]
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3
    > .bg-white.rounded-xl.border {
    position: relative;
    overflow: hidden;
    min-height: 9.4rem;
    padding: 1.25rem;
    border-color: var(--home-line);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(17, 31, 49, 0.045);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.homeowner-dashboard
    [data-tab-panel="overview"]
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3
    > .bg-white.rounded-xl.border::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #ed7b2b, #ffb071);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.homeowner-dashboard
    [data-tab-panel="overview"]
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3
    > .bg-white.rounded-xl.border:hover {
    border-color: #f2c8a9;
    box-shadow: 0 14px 32px rgba(17, 31, 49, 0.08);
    transform: translateY(-2px);
}

.homeowner-dashboard
    [data-tab-panel="overview"]
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3
    > .bg-white.rounded-xl.border:hover::after {
    opacity: 1;
}

.homeowner-dashboard
    [data-tab-panel="overview"]
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3
    > .bg-white.rounded-xl.border
    > div:first-child {
    color: #d56317 !important;
    border: 1px solid #f5d7c0;
    background: #fff2e8 !important;
}

.homeowner-dashboard
    [data-tab-panel="overview"]
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3
    > .bg-white.rounded-xl.border
    > p.text-2xl {
    margin-top: 0.1rem;
    color: #132844;
    font-size: 1.75rem;
    letter-spacing: -0.04em;
}

.homeowner-dashboard [data-tab-panel] > h2,
.homeowner-dashboard [data-tab-panel] > .space-y-6 > h2 {
    font-size: 1.4rem;
}

.homeowner-dashboard [data-tab-panel] .bg-white.rounded-xl.border,
.homeowner-job-card,
.homeowner-dashboard__quote,
.homeowner-dashboard__review-prompt {
    border-color: var(--home-line) !important;
    border-radius: 1rem !important;
    box-shadow: 0 8px 26px rgba(17, 31, 49, 0.045);
}

.homeowner-dashboard__quote:hover,
.homeowner-job-card:hover {
    border-color: #f0bc96 !important;
    box-shadow: 0 13px 30px rgba(17, 31, 49, 0.075);
}

.homeowner-dashboard [data-tab-panel="tracking"] > .space-y-6 > .bg-white,
.homeowner-dashboard
    [data-tab-panel="notifications"]
    .bg-white.rounded-xl.border {
    overflow: hidden;
}

.homeowner-dashboard [data-tab-panel="tracking"] .bg-blue-100,
.homeowner-dashboard [data-tab-panel="tracking"] .bg-amber-100,
.homeowner-dashboard [data-tab-panel="quotes"] .bg-green-50 {
    color: #b9500d !important;
    background: #fff1e6 !important;
}

.homeowner-dashboard [data-tab-panel="notifications"] .border-green-300 {
    border-color: #f2c39f !important;
}

.homeowner-dashboard [data-tab-panel="notifications"] .ring-green-200 {
    --tw-ring-color: rgba(237, 123, 43, 0.18) !important;
}

.homeowner-dashboard [data-tab-panel="notifications"] .bg-green-500 {
    background: var(--home-accent) !important;
}

@media (max-width: 1023px) {
    .homeowner-dashboard__welcome {
        align-items: flex-start;
    }
}

@media (max-width: 639px) {
    .homeowner-dashboard__welcome {
        flex-direction: column;
    }
    .homeowner-dashboard__welcome h2 {
        font-size: 1.35rem !important;
    }
    .homeowner-dashboard__welcome > a {
        display: flex !important;
        width: 100%;
    }
    .homeowner-dashboard
        [data-tab-panel="overview"]
        .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3
        > .bg-white.rounded-xl.border {
        min-height: 0;
    }
}

/* Authenticated tradie workspace ------------------------------------------------ */
/* === LOCAL MESSAGES PREVIEW: remove this block with messages-preview.blade.php === */
.message-preview-page {
    min-height: calc(100vh - 5rem);
    padding-bottom: 4rem;
    color: #15243a;
    background: #f3f6f8;
}
.message-preview-banner {
    padding: 0.55rem 1rem;
    color: #765326;
    border-bottom: 1px solid #f2d3aa;
    background: #fff7e9;
    text-align: center;
    font-size: 0.72rem;
}
.message-preview-banner span {
    margin-right: 0.5rem;
    padding: 0.2rem 0.45rem;
    color: #fff;
    border-radius: 999px;
    background: #ed7b2b;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.message-preview-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 2.25rem;
}
.message-preview-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.4rem;
}
.message-preview-eyebrow {
    color: #d96616;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.message-preview-header h1 {
    margin: 0.2rem 0;
    color: #112640;
    font-size: 2rem;
    letter-spacing: -0.04em;
}
.message-preview-header p {
    margin: 0;
    color: #6d7a8b;
    font-size: 0.82rem;
}
.message-preview-compose {
    min-height: 2.55rem;
    padding: 0 1rem;
    color: #fff;
    border: 0;
    border-radius: 0.7rem;
    background: #ed7b2b;
    font-size: 0.76rem;
    font-weight: 750;
}
.message-preview-compose span {
    margin-left: 0.35rem;
    font-size: 1rem;
}
.message-preview-app {
    display: grid;
    min-height: 670px;
    grid-template-columns: 355px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #dce3e9;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 18px 48px rgba(18, 36, 57, 0.09);
}
.message-preview-sidebar {
    border-right: 1px solid #e1e7ec;
    background: #fbfcfd;
}
.message-preview-search {
    position: relative;
    margin: 1rem;
}
.message-preview-search svg {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8793a0;
    stroke-width: 1.8;
}
.message-preview-search input {
    width: 100%;
    min-height: 2.7rem;
    padding: 0 0.9rem 0 2.5rem;
    border: 1px solid #dbe2e8;
    border-radius: 0.7rem;
    outline: none;
    background: #fff;
    font-size: 0.76rem;
}
.message-preview-search input:focus {
    border-color: #ed7b2b;
    box-shadow: 0 0 0 3px rgba(237, 123, 43, 0.12);
}
.message-preview-filter {
    display: flex;
    gap: 0.4rem;
    padding: 0 1rem 0.85rem;
    border-bottom: 1px solid #e6ebef;
}
.message-preview-filter button {
    padding: 0.4rem 0.7rem;
    color: #718091;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 700;
}
.message-preview-filter button.is-active {
    color: #c15812;
    background: #fff0e4;
}
.message-preview-filter span {
    margin-left: 0.2rem;
}
.message-preview-conversation {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 1rem;
    border: 0;
    border-bottom: 1px solid #e7ebef;
    background: transparent;
    text-align: left;
}
.message-preview-conversation:hover {
    background: #fff8f2;
}
.message-preview-conversation.is-active {
    position: relative;
    background: #fff5ed;
}
.message-preview-conversation.is-active::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #ed7b2b;
}
.message-avatar {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
}
.message-avatar i {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #36b37e;
}
.message-avatar--orange {
    background: linear-gradient(145deg, #ed7b2b, #c95810);
}
.message-avatar--blue {
    background: linear-gradient(145deg, #497da8, #265374);
}
.message-avatar--slate {
    background: linear-gradient(145deg, #718196, #46566b);
}
.message-preview-conversation__body {
    min-width: 0;
}
.message-preview-conversation__body strong,
.message-preview-conversation__body small,
.message-preview-conversation__body > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.message-preview-conversation__body strong {
    color: #20334b;
    font-size: 0.78rem;
}
.message-preview-conversation__body small {
    margin-top: 0.1rem;
    color: #d16820;
    font-size: 0.61rem;
    font-weight: 700;
}
.message-preview-conversation__body > span {
    margin-top: 0.35rem;
    color: #7b8795;
    font-size: 0.67rem;
}
.message-preview-conversation__meta {
    display: flex;
    align-items: end;
    flex-direction: column;
    gap: 0.55rem;
}
.message-preview-conversation__meta time {
    color: #8c97a4;
    font-size: 0.6rem;
}
.message-preview-conversation__meta b {
    display: grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #ed7b2b;
    font-size: 0.56rem;
}
.message-preview-thread {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #fff;
}
.message-thread-header {
    display: grid;
    min-height: 72px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e3e8ed;
}
.message-thread-header strong,
.message-thread-header span {
    display: block;
}
.message-thread-header strong {
    color: #20334b;
    font-size: 0.82rem;
}
.message-thread-header span {
    margin-top: 0.15rem;
    color: #778596;
    font-size: 0.64rem;
}
.message-thread-header button {
    color: #758293;
    border: 0;
    background: transparent;
    letter-spacing: 0.12em;
}
.message-job-context {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 1.25rem 0;
    padding: 0.8rem 1rem;
    border: 1px solid #f2d5bf;
    border-radius: 0.75rem;
    background: #fff9f4;
}
.message-job-context > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #d96616;
    border-radius: 0.6rem;
    background: #ffe9d9;
}
.message-job-context svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}
.message-job-context small,
.message-job-context strong,
.message-job-context p {
    display: block;
    margin: 0;
}
.message-job-context small {
    color: #a6714b;
    font-size: 0.56rem;
    text-transform: uppercase;
}
.message-job-context strong {
    color: #283a50;
    font-size: 0.72rem;
}
.message-job-context p {
    margin-top: 0.15rem;
    color: #7d8996;
    font-size: 0.62rem;
}
.message-job-context a {
    color: #cc5d13;
    font-size: 0.66rem;
    font-weight: 750;
}
.message-thread-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.7rem 1.25rem 1.2rem;
    background: linear-gradient(#fff, #fbfcfd);
}
.message-day {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.8rem 0 1.25rem;
    color: #9aa4af;
    font-size: 0.58rem;
}
.message-day::before,
.message-day::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e7ebef;
}
.message-row {
    display: flex;
    align-items: end;
    gap: 0.55rem;
    margin-bottom: 1rem;
}
.message-avatar--small {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    font-size: 0.5rem;
}
.message-row > div {
    max-width: 70%;
}
.message-row b {
    display: block;
    margin: 0 0 0.25rem 0.2rem;
    color: #637185;
    font-size: 0.58rem;
}
.message-row p {
    margin: 0;
    padding: 0.72rem 0.9rem;
    color: #34465b;
    border: 1px solid #e0e6ec;
    border-radius: 0.85rem 0.85rem 0.85rem 0.2rem;
    background: #fff;
    font-size: 0.73rem;
    line-height: 1.55;
}
.message-row time {
    display: block;
    margin: 0.25rem 0.2rem 0;
    color: #98a2ad;
    font-size: 0.55rem;
}
.message-row.is-mine {
    justify-content: flex-end;
}
.message-row.is-mine p {
    color: #fff;
    border: 0;
    border-radius: 0.85rem 0.85rem 0.2rem 0.85rem;
    background: #173a5d;
}
.message-row.is-mine time {
    text-align: right;
}
.message-demo-file {
    display: flex;
    min-width: 255px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    color: #fff;
    border-radius: 0.85rem 0.85rem 0.2rem 0.85rem;
    background: #173a5d;
}
.message-demo-file svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #ffad70;
    stroke-width: 1.7;
}
.message-demo-file span {
    flex: 1;
}
.message-demo-file strong,
.message-demo-file small {
    display: block;
}
.message-demo-file strong {
    font-size: 0.68rem;
}
.message-demo-file small {
    color: #afc0d0;
    font-size: 0.55rem;
}
.message-composer {
    display: flex;
    align-items: end;
    gap: 0.6rem;
    margin: 0 1.25rem 1.25rem;
    padding: 0.6rem;
    border: 1px solid #dce3e9;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 5px 16px rgba(18, 36, 57, 0.05);
}
.message-composer textarea {
    min-height: 36px;
    flex: 1;
    resize: none;
    padding: 0.55rem 0.25rem;
    border: 0;
    outline: none;
    font: inherit;
    font-size: 0.73rem;
}
.message-composer button {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    color: #718091;
    border: 0;
    border-radius: 0.6rem;
    background: #f3f5f7;
}
.message-composer svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}
.message-composer .message-send {
    color: #fff;
    background: #ed7b2b;
}
@media (max-width: 760px) {
    .message-preview-app {
        grid-template-columns: 1fr;
    }
    .message-preview-sidebar {
        display: none;
    }
    .message-preview-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .message-preview-compose {
        display: none;
    }
    .message-preview-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 1.3rem;
    }
    .message-preview-app {
        min-height: 650px;
    }
    .message-job-context {
        grid-template-columns: auto 1fr;
    }
    .message-job-context a {
        display: none;
    }
    .message-row > div {
        max-width: 84%;
    }
}
/* === END LOCAL MESSAGES PREVIEW === */

body.tradie-portal {
    --portal-ink: #15243a;
    --portal-muted: #667386;
    --portal-line: #e1e6ec;
    --portal-canvas: #f4f6f8;
    --portal-panel: #ffffff;
    --portal-accent: #ed7b2b;
    --portal-accent-soft: #fff2e7;
    color: var(--portal-ink);
    background: var(--portal-canvas);
}

body.tradie-portal main > .min-h-screen {
    background: linear-gradient(
        180deg,
        #f8fafb 0,
        var(--portal-canvas) 18rem
    ) !important;
}

body.tradie-portal main > .min-h-screen > .bg-white.border-b {
    position: relative;
    z-index: 5;
    border-color: var(--portal-line);
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 6px 20px rgba(17, 31, 49, 0.035);
    backdrop-filter: blur(12px);
}

body.tradie-portal main h1,
body.tradie-portal main h2,
body.tradie-portal main h3 {
    color: var(--portal-ink);
    letter-spacing: -0.025em;
}

body.tradie-portal main .bg-white.rounded-xl.border,
body.tradie-portal main .bg-white.rounded-lg.border,
body.tradie-portal main .rounded-xl.border.bg-white,
body.tradie-portal main .rounded-lg.border.bg-white {
    border-color: var(--portal-line);
    box-shadow: 0 8px 28px rgba(17, 31, 49, 0.05);
}

body.tradie-portal main .bg-white.rounded-xl.border {
    border-radius: 1rem;
}

body.tradie-portal main input,
body.tradie-portal main select,
body.tradie-portal main textarea {
    border-color: #d8dee6;
    border-radius: 0.7rem;
    background-color: #fff;
}

body.tradie-portal main input:focus,
body.tradie-portal main select:focus,
body.tradie-portal main textarea:focus {
    border-color: var(--portal-accent); 
    box-shadow: none;
}

body.tradie-portal main .bg-orange-500 {
    background-color: var(--portal-accent) !important;
}

body.tradie-portal main .hover\:bg-orange-600:hover {
    background-color: #d8651b !important;
}

body.tradie-portal main .bg-orange-50,
body.tradie-portal main .bg-orange-100 {
    background-color: var(--portal-accent-soft) !important;
}

body.tradie-portal main .text-orange-600,
body.tradie-portal main .text-orange-700,
body.tradie-portal main .text-orange-800 {
    color: #c85d16 !important;
}

/* Green is reserved for identity verification and verified compliance. */
body.tradie-portal main .text-green-600,
body.tradie-portal main .text-green-700,
body.tradie-portal main .text-green-800 {
    color: #2f608f !important;
}

body.tradie-portal main .bg-green-50,
body.tradie-portal main .bg-green-100 {
    background-color: #eef5fb !important;
}

body.tradie-portal main .border-green-200,
body.tradie-portal main .border-green-300 {
    border-color: #bfd5e8 !important;
}

body.tradie-portal main .tradie-verification-state,
body.tradie-portal main [data-tab-panel="verification"] .bg-green-50,
body.tradie-portal main [data-tab-panel="verification"] .bg-green-100 {
    border-color: #bfe3ce !important;
    background: #f0faf4 !important;
}

body.tradie-portal main .tradie-verification-state .text-green-600,
body.tradie-portal main .tradie-verification-state .text-green-700,
body.tradie-portal main .tradie-verification-state .text-green-800,
body.tradie-portal main [data-tab-panel="verification"] .text-green-600,
body.tradie-portal main [data-tab-panel="verification"] .text-green-700,
body.tradie-portal main [data-tab-panel="verification"] .text-green-800 {
    color: #15803d !important;
}

/* Tradie verification workflow */
.tradie-verification__intro {
    padding: 0.25rem 0 0.4rem;
}

.tradie-verification__intro > h2 {
    font-size: 1.55rem;
}

.tradie-verification__intro > p {
    max-width: 42rem;
    margin-top: 0.3rem;
    line-height: 1.55;
}

.tradie-verification__status-grid {
    position: relative;
}

.tradie-verification__status {
    min-height: 8.25rem;
    box-shadow: none !important;
}

.verification-form-card {
    overflow: hidden;
    padding: 0 !important;
    border-color: var(--portal-line) !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 30px rgba(17, 31, 49, 0.055) !important;
}

.verification-form-card__header {
    position: relative;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid #e7ebef;
    background: linear-gradient(90deg, #fffaf6, #fff 55%);
}

.verification-form-card__step {
    color: #d76a20;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.verification-form-card__icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    color: #d96616;
    border: 1px solid #f5d3bb;
    border-radius: 0.7rem;
    background: #fff1e6;
}

.verification-form-card__icon svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.verification-form-card__header h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 750;
}

.verification-form-card__header p {
    margin: 0.15rem 0 0;
    color: #748193;
    font-size: 0.7rem;
}

.verification-form-card__required {
    padding: 0.3rem 0.55rem;
    color: #b9500d;
    border: 1px solid #f3c9aa;
    border-radius: 999px;
    background: #fff6ef;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.verification-form-card > form {
    padding: 1.35rem 1.4rem 1.45rem;
}

.verification-form-card form label {
    display: inline-block;
    color: #35455a;
    font-size: 0.76rem;
    font-weight: 700;
}

body.tradie-portal .verification-form-card form input:not([type="file"]),
body.tradie-portal .verification-form-card form select {
    min-height: 2.8rem;
    margin-top: 0.42rem;
    padding-inline: 0.85rem;
    border-color: #d6dee7;
    background: #fbfcfd;
}

.verification-file {
    min-height: 4.75rem !important;
    margin-top: 0.5rem !important;
    padding: 0.7rem !important;
    color: #748193;
    border: 1px dashed #cbd5df !important;
    border-radius: 0.75rem !important;
    background: #f8fafc !important;
    cursor: pointer;
}

.verification-file:hover {
    border-color: #ed7b2b !important;
    background: #fffaf6 !important;
}

.verification-file::file-selector-button {
    min-height: 2.25rem;
    margin-right: 0.8rem;
    padding: 0 0.85rem;
    color: #b9500d;
    border: 1px solid #f2ccb0;
    border-radius: 0.55rem;
    background: #fff0e4;
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
}

.verification-uploaded-file {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.35rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d7e3f0;
    border-radius: 0.75rem;
    background: #f5f9fc;
}

.verification-uploaded-file__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.65rem;
    color: #1d4f91;
    background: #e7f0fb;
    flex-shrink: 0;
}

.verification-uploaded-file__meta {
    min-width: 0;
    flex: 1;
}

.verification-uploaded-file__label {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7c90;
}

.verification-uploaded-file__name {
    margin: 0.15rem 0 0;
    font-size: 0.875rem;
    font-weight: 650;
    color: #1f2937;
    word-break: break-word;
}

.verification-uploaded-file__date {
    margin: 0.1rem 0 0;
    font-size: 0.75rem;
    color: #748193;
}

.verification-uploaded-file__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0 0.9rem;
    border-radius: 0.55rem;
    border: 1px solid #c9d7e8;
    background: #fff;
    color: #1d4f91;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}

.verification-uploaded-file__action:hover {
    background: #eef5fc;
    border-color: #9db6d3;
}

.verification-submit {
    min-height: 2.75rem;
    gap: 0.55rem;
    margin-top: 0.35rem;
    border-radius: 0.65rem !important;
    background: var(--portal-accent) !important;
    box-shadow: 0 7px 16px rgba(237, 123, 43, 0.2);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.verification-submit:not(:disabled):hover {
    background: #d8651b !important;
    box-shadow: 0 10px 20px rgba(216, 101, 27, 0.25);
    transform: translateY(-1px);
}

.verification-submit:disabled {
    background: #94a3b3 !important;
    box-shadow: none;
}

@media (max-width: 639px) {
    #referral-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .verification-form-card__header {
        grid-template-columns: auto auto minmax(0, 1fr);
        padding: 1rem;
    }

    .verification-form-card__required {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .verification-form-card > form {
        padding: 1rem;
    }

    .tradie-verification__status {
        min-height: 0;
    }
}

.tradie-dashboard aside > .bg-white.rounded-xl.border {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 14px 36px rgba(17, 31, 49, 0.075);
}

.tradie-dashboard aside nav button,
.tradie-dashboard aside nav a {
    min-height: 2.55rem;
    border-radius: 0.65rem;
}

.tradie-dashboard aside nav [data-state="active"] {
    color: #b9500d !important;
    background: var(--portal-accent-soft) !important;
    box-shadow: inset 3px 0 0 var(--portal-accent);
}

.tradie-dashboard [data-tab-panel] > .space-y-6 > h2,
.tradie-dashboard [data-tab-panel] > div > div:first-child > h2 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.tradie-dashboard [data-tab-panel] .grid > .bg-white.rounded-xl.border {
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.tradie-dashboard [data-tab-panel] .grid > .bg-white.rounded-xl.border:hover {
    border-color: #cfd7e1;
    box-shadow: 0 14px 32px rgba(17, 31, 49, 0.08);
    transform: translateY(-2px);
}
.save-profile-btn {
    background: var(--home-accent) !important;
}
@media (max-width: 1023px) {
    .tradie-dashboard
        > .min-h-screen
        > .bg-white.border-b
        + .bg-white.border-b {
        position: sticky;
        top: 0;
        z-index: 10;
        box-shadow: 0 8px 18px rgba(17, 31, 49, 0.07);
    }

    .tradie-dashboard > .min-h-screen > div > .overflow-x-auto {
        scrollbar-width: none;
    }

    .tradie-dashboard
        > .min-h-screen
        > div
        > .overflow-x-auto::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 639px) {
    body.tradie-portal
        main
        > .min-h-screen
        > div[class*="max-w-"][class*="py-8"],
    .tradie-dashboard > .min-h-screen > .max-w-7xl {
        padding-top: 1.25rem;
        padding-bottom: 1.75rem;
    }

    .tradie-dashboard [data-tab-panel] .grid,
    body.tradie-portal main .grid {
        min-width: 0;
    }

    .tradie-dashboard [data-tab-panel] .rounded-xl,
    .tradie-dashboard [data-tab-panel] .rounded-lg {
        max-width: 100%;
    }

    body.tradie-portal main .flex.items-center.justify-between {
        min-width: 0;
        flex-wrap: wrap;
    }

    body.tradie-portal main table {
        min-width: 42rem;
    }

    body.tradie-portal main .overflow-x-auto {
        max-width: 100%;
    }

    .overflow-x-auto table thead th {
        white-space: pre;
    }
  
}

/* ── Tradie profile Select2 (postcode + trades) ─────────────────────────── */
.tradie-profile-edit > .min-h-screen {
    background:
        radial-gradient(circle at 50% 0, rgba(245, 130, 45, 0.06), transparent 30rem),
        #f5f7fa !important;
}

.tradie-profile-edit > .min-h-screen > .bg-white.border-b {
    border-color: #e1e6ec;
    box-shadow: 0 4px 16px rgba(15, 35, 59, 0.035);
}

.tradie-profile-edit__shell {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.tradie-profile-edit__heading h1 {
    color: #142b48;
    letter-spacing: -0.035em;
}

.tradie-profile-edit__heading > span {
    border: 1px solid #f0c9a8;
    background: #fff1e5 !important;
    font-weight: 750;
}

.tradie-profile-edit__card {
    border-color: #dde4ec !important;
    border-radius: 1rem !important;
    box-shadow: 0 14px 38px rgba(15, 35, 59, 0.065);
}

.tradie-profile-edit__form {
    display: grid;
    gap: 1.5rem;
}

.tradie-profile-edit__form > * {
    margin-top: 0;
}

.tradie-profile-edit__avatar {
    margin: -0.15rem -0.15rem 0;
    padding: 0.2rem 0.2rem 1.25rem !important;
    border-color: #e8edf2;
}

.tradie-profile-edit__avatar #avatar_preview_wrap {
    width: 5.25rem;
    height: 5.25rem;
    border: 3px solid #fff;
    background: #fff0e3;
    box-shadow: 0 0 0 1px #f0c9aa, 0 9px 22px rgba(15, 35, 59, 0.12);
}

.tradie-profile-edit__heading {
    flex-wrap: wrap;
    align-items: center;
}

.tradie-profile-edit__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    column-gap: 1.25rem;
    row-gap: 1rem;
}

.tradie-profile-field,
.tradie-profile-trades,
#primary_trade_wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.tradie-profile-field > *,
.tradie-profile-trades > *,
#primary_trade_wrap > * {
    margin-top: 0;
    margin-bottom: 0;
}

.tradie-profile-postcode > .text-xs,
.tradie-profile-service-radius > .text-xs {
    min-height: 2.5em;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .tradie-profile-edit__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tradie-profile-field--full {
        grid-column: 1 / -1;
    }
}

.tradie-profile-edit label {
    color: #314158;
    font-size: 0.76rem;
    font-weight: 700;
}

.tradie-profile-edit input:not([type="checkbox"]):not([type="file"]),
.tradie-profile-edit select,
.tradie-profile-edit
    .select2.select2-container
    .select2-selection--single {
    height: 2.75rem;
    min-height: 2.75rem;
    border-color: #dbe3eb !important;
    border-radius: 0.65rem !important;
    background-color: #fff;
    color: #17243a;
    box-shadow: 0 1px 2px rgba(15, 35, 59, 0.025);
}

.tradie-profile-edit input[type="file"] {
    max-width: 100%;
}

.tradie-profile-edit input:not([type="checkbox"]):not([type="file"]):focus,
.tradie-profile-edit select:focus {
    border-color: #f5822d !important;
    box-shadow: 0 0 0 3px rgba(245, 130, 45, 0.12) !important;
    outline: none;
}

.tradie-profile-edit input:disabled {
    background: #f3f5f7 !important;
}

.tradie-profile-edit__trade-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(14rem, 2fr);
    align-items: start;
    column-gap: 1.25rem;
    row-gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8edf2;
}

/* @media (min-width: 768px) {
    .tradie-profile-edit__trade-grid:has(#primary_trade_wrap:not(.hidden)) {
        grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr);
    }
} */

.tradie-profile-edit__submit {
    display: flex;
    justify-content: flex-end;
    padding-top: 1.1rem;
    border-top: 1px solid #e8edf2;
}

.tradie-profile-edit__submit button,
.tradie-profile-edit__portfolio-form > button {
    min-width: 9rem;
    min-height: 2.65rem;
    border-radius: 0.7rem !important;
    box-shadow: 0 8px 18px rgba(245, 130, 45, 0.2);
}

.tradie-profile-edit__portfolio > div:first-child {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8edf2;
}

.tradie-profile-edit__portfolio-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.tradie-profile-edit__portfolio-form > * {
    margin-top: 0;
}

.tradie-profile-edit__portfolio-form > #portfolio_preview_grid {
    grid-column: 1 / -1;
}

.tradie-profile-edit__portfolio-form > button {
    grid-column: 1;
    justify-self: end;
}

@media (max-width: 767px) {
    .tradie-profile-edit__shell {
        padding-top: 1.25rem;
        padding-bottom: 2.5rem;
    }

    .tradie-profile-edit__card {
        padding: 1rem !important;
    }

    .tradie-profile-edit__trade-grid,
    .tradie-profile-edit__trade-grid:has(#primary_trade_wrap:not(.hidden)),
    .tradie-profile-edit__portfolio-form {
        grid-template-columns: 1fr;
    }

    .tradie-profile-edit__portfolio-form > button {
        grid-column: 1;
        justify-self: stretch;
        width: 100%;
    }

    .tradie-profile-edit__submit button {
        width: 100%;
    }
}

.tradie-profile-postcode,
.tradie-profile-trades {
    position: relative;
    z-index: 20;
}

.tradie-profile-postcode > .select2.select2-container,
.tradie-profile-trades > .select2.select2-container {
    width: 100% !important;
}

.tradie-profile-postcode > .select2-container--open:not(.select2) {
    height: auto !important;
    min-height: 0 !important;
}

.tradie-profile-trades .select2.select2-container .select2-selection--multiple {
    min-height: 2.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
}

.tradie-profile-trades
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
    border-radius: 999px;
    padding: 0.2rem 0.7rem 0.2rem 0.35rem;
    margin-top: 0.2rem;
    max-width: 100%;
    line-height: 1.35;
}

.tradie-profile-trades
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    position: static;
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: -1;
    margin: 0;
    padding: 0 0.2rem;
    border: 0;
    border-right: 1px solid #fdba74;
    border-radius: 0;
    background: transparent;
    color: #c2410c;
    font-size: 1rem;
    line-height: 1;
    height: auto;
    width: auto;
}

.tradie-profile-trades
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:hover {
    background: transparent;
    color: #9a3412;
}

.tradie-profile-trades
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__display {
    padding: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tradie-profile-trades
    .select2-container
    .select2-search--inline
    .select2-search__field,
.tradie-profile-trades
    .select2-container
    .select2-search--inline
    .select2-search__field:focus,
.tradie-profile-trades
    .select2-container
    .select2-search--inline
    .select2-search__field:focus-visible {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Keep Select2 dropdowns above neighbouring profile fields. */
body.tradie-portal .select2-container--open {
    z-index: 80;
}

body.tradie-portal .select2-dropdown {
    z-index: 81;
    border-color: #ed7b2b;
    border-radius: 0.7rem;
    box-shadow: 0 14px 30px rgba(17, 31, 49, 0.14);
}

/* Shared confirmation popup (forms with data-confirm) — matches the location picker modal. */
.site-confirm[hidden] {
    display: none;
}

.site-confirm {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 1rem;
    background: rgba(15, 23, 34, 0.58);
    backdrop-filter: blur(4px);
}

.site-confirm__panel {
    width: min(26rem, 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 28px 80px rgba(9, 18, 31, 0.28);
}

.site-confirm__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.35rem 1rem;
    border-bottom: 1px solid #e9edf1;
}

.site-confirm__header h2 {
    margin: 0;
    color: #17243a;
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.site-confirm__message {
    margin: 0;
    padding: 1rem 1.35rem 0;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

.site-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1.1rem 1.35rem 1.3rem;
}

.site-confirm--warning .site-confirm__panel {
    border: 1px solid #f3d19c;
}

.site-confirm--warning #site-confirm-title {
    color: #9a5a0a;
}

.site-confirm--warning [data-site-confirm-ok] {
    background: #c83232;
    color: #fff;
}

.site-confirm--warning [data-site-confirm-ok]:hover {
    background: #a82828;
}

/* Minimisable dashboard sidebar (homeowner + tradie), matching the admin menu. */
.dashboard-sidebar-toggle {
    position: absolute;
    top: 0.6rem;
    right: 0.25rem;
    display: inline-flex;
    width: 1.85rem;
    height: 1.85rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e6eb;
    border-radius: 0.55rem;
    color: #667184;
    background: #fff;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.dashboard-sidebar-toggle:hover {
    color: #17243a;
    background: #f5f7f9;
}

.dashboard-sidebar-toggle svg {
    width: 0.95rem;
    height: 0.95rem;
    transition: transform 0.2s ease;
}

@media (min-width: 1024px) {
    .dashboard-sidebar {
        transition: width 0.2s ease;
        position: sticky;
        top: 0.75rem;
        align-self: flex-start;
        max-height: calc(100vh - 1.5rem);
    }

    .dashboard-sidebar > div {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 1.5rem);
        overflow: hidden;
    }

    .dashboard-sidebar > div > div:first-child {
        flex: 0 0 auto;
    }

    .dashboard-sidebar nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
        padding-right: 2px;
    }

    .dashboard-sidebar nav::-webkit-scrollbar {
        width: 6px;
    }

    .dashboard-sidebar nav::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.45);
        border-radius: 999px;
    }

    .dashboard-sidebar nav:hover::-webkit-scrollbar-thumb {
        background: rgba(245, 130, 32, 0.65);
    }

    .dashboard-sidebar.is-collapsed {
        width: 4.75rem;
    }

    .dashboard-sidebar.is-collapsed > div > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-inline: 0;
    }

    .dashboard-sidebar.is-collapsed > div > div:first-child > p,
    .dashboard-sidebar.is-collapsed > div > div:first-child > a {
        display: none;
    }

    .dashboard-sidebar.is-collapsed .dashboard-sidebar-toggle {
        position: static;
        margin-top: 0.35rem;
    }

    .dashboard-sidebar.is-collapsed .dashboard-sidebar-toggle svg {
        transform: rotate(180deg);
    }

    .dashboard-sidebar.is-collapsed nav button,
    .dashboard-sidebar.is-collapsed nav a {
        position: relative;
        justify-content: center;
        gap: 0;
        padding-inline: 0;
        font-size: 0;
    }

    .dashboard-sidebar.is-collapsed nav button svg,
    .dashboard-sidebar.is-collapsed nav a svg {
        width: 1rem;
        height: 1rem;
        flex: 0 0 auto;
    }

    .dashboard-sidebar.is-collapsed nav .flex-1 {
        display: none;
    }

    .dashboard-sidebar.is-collapsed nav .bg-red-500 {
        position: absolute;
        top: 0.1rem;
        right: 0.15rem;
        width: 1.05rem;
        height: 1.05rem;
        font-size: 0.6rem;
    }
}

.nav-float-tooltip {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    transform: translateY(-50%);
    padding: 6px 10px;
    border-radius: 8px;
    color: #fff;
    background: #17243a;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

/* Login / forgot / reset: centre the form when it fits, but let it scroll from the
   top when it doesn't. justify-content:center pushed the logo and heading above the
   scrollable area at 100% zoom on shorter screens (fine at 90%). */
.auth-page-shell--login .auth-split-card__form {
    justify-content: flex-start;
}

.auth-page-shell--login .auth-split-card__form > .auth-page-logo {
    margin-top: auto;
}

.auth-page-shell--login .auth-split-card__form > .auth-split-card__form-inner {
    margin-bottom: auto;
}
span.msg-count-badge {
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
}

.arrow-font-16{
    font-size: 2rem;
}

.portfolio-img img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.portfolio-img figure figcaption {
    display: block;
    white-space: normal;
    word-break: break-word;
}

.prof_accountAvatar {
    padding: 5px;
}

@media (max-width: 768.99px) {
    div#site-mobile-menu {
    max-height: 450px;
}
}
