/* ═══════════════════════════════════════════════════════════════════════
   PayMate — article layer for the generated "$X after tax" pages.
   Rides on top of styles.css (and nz.css for the NZ pages), so it only
   needs the prose/table bits the calculator itself never renders.
   ═══════════════════════════════════════════════════════════════════════ */

.seo-main {
    padding: 2rem 0 3rem;
    max-width: 820px;
}

/* ── breadcrumbs ─────────────────────────────────────────────────────── */

.seo-crumbs {
    font-size: .8rem;
    color: var(--ink-3);
    margin-bottom: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
}

.seo-crumbs a { color: var(--ink-2); text-decoration: none; }
.seo-crumbs a:hover { color: var(--gold-ink); text-decoration: underline; }
.seo-crumb-sep { color: var(--border-strong); }

/* ── prose ───────────────────────────────────────────────────────────── */

.seo-main h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 5vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: 0 0 1rem;
}

.seo-main h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 3.2vw, 1.6rem);
    line-height: 1.25;
    margin: 2.6rem 0 1rem;
    scroll-margin-top: 5rem;
}

.seo-main p { margin: 0 0 1rem; line-height: 1.65; color: var(--ink-2); }
.seo-main p strong { color: var(--ink); font-weight: 600; }
.seo-main a { color: var(--gold-ink); text-underline-offset: 2px; }

.seo-lead {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ── headline numbers ────────────────────────────────────────────────── */

.seo-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .7rem;
    margin: 1.6rem 0 1.8rem;
}

.seo-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

/* Deep-brand card. NZ's --green-deepest is nearly black, so on a dark
   surface it needs the gradient and accent border to separate from the page. */
.seo-stat--hero {
    background: linear-gradient(135deg, var(--green-deep), var(--green-deepest));
    border-color: color-mix(in srgb, var(--gold) 32%, transparent);
    grid-column: span 2;
}

.seo-stat-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-3);
}

.seo-stat--hero .seo-stat-label { color: color-mix(in srgb, var(--ink-on-brand) 70%, transparent); }

.seo-stat-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    line-height: 1.1;
}

.seo-stat--hero .seo-stat-value {
    color: var(--gold);
    font-size: clamp(1.9rem, 6vw, 2.5rem);
}

.seo-stat-sub { font-size: .78rem; color: var(--ink-3); }
.seo-stat--hero .seo-stat-sub { color: color-mix(in srgb, var(--ink-on-brand) 70%, transparent); }

/* ── call to action ──────────────────────────────────────────────────── */

.seo-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .9rem;
    margin: 1.6rem 0 2rem;
}

/* Beats `.seo-main a`, which would otherwise paint the label the same
   colour as the button itself. */
.seo-main a.seo-button,
.seo-button {
    display: inline-block;
    background: var(--gold);
    color: #14211B;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    padding: .7rem 1.15rem;
    border-radius: 999px;
    transition: transform .12s ease, box-shadow .12s ease;
}

.seo-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
}

.seo-button:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.seo-cta-note { font-size: .82rem; color: var(--ink-3); flex: 1 1 16rem; }

/* ── tables ──────────────────────────────────────────────────────────── */

.seo-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: .88rem;
    margin-bottom: 1.4rem;
    display: table;
}

.seo-table caption {
    caption-side: top;
    text-align: left;
    font-size: .78rem;
    color: var(--ink-3);
    padding: 0 0 .5rem;
}

.seo-table th,
.seo-table td {
    padding: .6rem .8rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.seo-table th[scope="row"] {
    text-align: left;
    font-weight: 600;
    color: var(--ink);
    white-space: normal;
}

.seo-table thead th {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-3);
    border-bottom: 2px solid var(--border);
    background: var(--surface-2);
}

.seo-table thead th:first-child { text-align: left; }

.seo-table tbody tr { border-bottom: 1px solid var(--border); }
.seo-table tbody tr:last-child { border-bottom: none; }
.seo-table td { color: var(--ink-2); }
.seo-table .num-strong { color: var(--ink); font-weight: 600; }

.seo-total { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.seo-total th, .seo-total td { color: var(--ink); font-weight: 700; }

.seo-hint {
    display: block;
    font-size: .72rem;
    font-weight: 400;
    color: var(--ink-3);
    white-space: normal;
}

.seo-table--index th[scope="row"] a { font-weight: 700; text-decoration: none; }
.seo-table--index th[scope="row"] a:hover { text-decoration: underline; }

/* Tables are the point of these pages, so let them scroll rather than
   crush the columns on a phone. */
@media (max-width: 560px) {
    .seo-table { display: block; overflow-x: auto; white-space: nowrap; }
    .seo-stat--hero { grid-column: span 1; }
}

/* ── nearby salaries ─────────────────────────────────────────────────── */

.seo-nearby {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .5rem;
}

.seo-nearby li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .6rem .85rem;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.seo-nearby a { font-weight: 600; text-decoration: none; }
.seo-nearby a:hover { text-decoration: underline; }
.seo-nearby-value { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.seo-faq {
    display: grid;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.seo-faq .explain-item p { margin-top: .7rem; margin-bottom: 0; font-size: .9rem; }

/* ── pager & crosslink ───────────────────────────────────────────────── */

.seo-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.4rem 0 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    font-size: .9rem;
    font-weight: 600;
}

.seo-pager a { text-decoration: none; }
.seo-pager a:hover { text-decoration: underline; }

.seo-crosslink {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .85rem 1.1rem;
    font-size: .9rem;
}

@media print {
    .seo-cta, .seo-pager, .seo-crumbs, .site-header { display: none; }
    .seo-table { break-inside: avoid; }
}
