/*
Theme Name: AccountingAssignmentHelp
Author: AccountingAssignmentHelp
Description: Custom theme for the AccountingAssignmentHelp publication - warm editorial "consultancy" look (off-white paper, ink, signal yellow), mobile-first, no page builder. Content model, importer, lead-gen request storage and technical SEO live in the aah-core mu-plugin so a future theme swap never breaks them.
Version: 2.0.2
Requires PHP: 7.4
Text Domain: aah-core
*/

/* ==========================================================================
   Fonts - Hanken Grotesk (SIL OFL), self-hosted from assets/fonts/. Still
   no third-party font host at runtime (portfolio convention: never
   hotlink Google Fonts).
   ========================================================================== */

@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('assets/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('assets/fonts/hanken-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* paper / ink / signal */
    --aah-bg: #f8f5f3;
    --aah-bg-raised: #ffffff;
    --aah-bg-soft: #f2edea;
    --aah-sand: #dccdbf;
    --aah-ink: #121212;
    --aah-ink-2: #282828;
    --aah-text: #121212;
    --aah-text-secondary: #555555;
    --aah-text-muted: #6a6a6a;
    --aah-accent: #ffcd4c;
    --aah-accent-hover: #ffbc00;

    /* legacy aliases (kept so nothing styled off the old names breaks) */
    --aah-primary: var(--aah-ink);
    --aah-primary-hover: var(--aah-ink-2);
    --aah-primary-ink: var(--aah-ink);
    --aah-primary-tint: var(--aah-bg-soft);

    --aah-border: rgba(18, 18, 18, 0.12);
    --aah-border-strong: rgba(18, 18, 18, 0.28);
    --aah-border-faint: rgba(18, 18, 18, 0.08);
    --aah-on-dark: #ffffff;
    --aah-on-dark-2: rgba(255, 255, 255, 0.66);
    --aah-on-dark-border: rgba(255, 255, 255, 0.14);

    --aah-success-bg: #e6f4ea;
    --aah-success-text: #1e6b34;
    --aah-error-bg: #fdecea;
    --aah-error-text: #a8231a;

    --aah-font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --aah-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --aah-container: 1320px;
    --aah-gutter: 24px;
    --aah-header-h: 84px;
    --aah-radius: 0;
    --aah-radius-sm: 0;
    --aah-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
body {
    margin: 0;
    background: var(--aah-bg);
    color: var(--aah-text-secondary);
    font-family: var(--aah-font-sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--aah-accent); color: var(--aah-ink); }
img, svg { max-width: 100%; display: block; }
a {
    color: var(--aah-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--aah-border-strong);
}
a:hover { color: var(--aah-ink); text-decoration-color: var(--aah-ink); }
h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 0.55em;
    color: var(--aah-ink);
}
strong, b { color: var(--aah-ink); font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
button, input, select, textarea { font-family: inherit; }

@media (prefers-reduced-motion: no-preference) {
    a, button, .aah-card, .aah-hub-article-card, .aah-btn, .aah-btn::after {
        transition: color .2s var(--aah-ease), background-color .2s var(--aah-ease), border-color .2s var(--aah-ease), transform .25s var(--aah-ease), text-decoration-color .2s var(--aah-ease);
    }
}

.aah-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--aah-accent);
    color: var(--aah-ink);
    padding: 10px 16px;
    z-index: 1000;
    font-weight: 700;
}
.aah-skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--aah-ink); outline-offset: 3px; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.aah-container {
    max-width: var(--aah-container);
    margin: 0 auto;
    padding: 0 var(--aah-gutter);
}
@media (min-width: 1024px) { :root { --aah-gutter: 40px; } }

.aah-prose { max-width: calc(760px + 2 * var(--aah-gutter)); }

.aah-section { padding: 72px 0; }
@media (min-width: 1024px) { .aah-section { padding: 110px 0; } }
.aah-section + .aah-section { border-top: 1px solid var(--aah-border-faint); }

.aah-section-sand { background: var(--aah-sand); }
.aah-section-sand + .aah-section,
.aah-section + .aah-section-sand { border-top: 0; }

/* Two-column "big heading left / content right" block (reference: the
   numbered services list). Head is sticky on wide screens. */
.aah-split { display: grid; grid-template-columns: 1fr; gap: 36px; }
.aah-split-head h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
@media (min-width: 1024px) {
    .aah-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
    .aah-split-head { position: sticky; top: 160px; align-self: start; }
}

/* ==========================================================================
   Typography scale
   ========================================================================== */

h1, .aah-h1 { font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
h2, .aah-h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }
h3, .aah-h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -0.015em; }
h4 { font-size: 18px; letter-spacing: -0.01em; }

.aah-lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--aah-text-secondary); }

/* Eyebrow = the reference's hand-drawn ellipse label ("DATA COLLECTION") */
.aah-eyebrow {
    display: inline-block;
    position: relative;
    padding: 9px 20px;
    margin: 0 0 28px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aah-ink);
    border: 1px solid var(--aah-ink);
    border-radius: 50%;
}
.aah-eyebrow::after {
    content: '';
    position: absolute;
    inset: -3px -1px -1px -4px;
    border: 1px solid var(--aah-ink);
    border-radius: 50%;
    transform: rotate(-3deg);
    pointer-events: none;
}

/* Long-form body */
.aah-article-body { color: var(--aah-text-secondary); }
.aah-article-body h2 { margin-top: 1.8em; font-size: clamp(28px, 2.8vw, 38px); }
.aah-article-body h3 { margin-top: 1.5em; }
.aah-article-body > :first-child { margin-top: 0; }
.aah-article-body ul, .aah-article-body ol { margin: 0 0 1.2em; }
.aah-article-body li { margin-bottom: .35em; }
.aah-article-body ul { list-style: none; padding-left: 0; }
.aah-article-body ul > li { position: relative; padding-left: 26px; }
.aah-article-body ul > li::before {
    content: '+';
    position: absolute;
    left: 2px;
    top: -1px;
    font-weight: 700;
    color: var(--aah-ink);
}
.aah-article-body ol { padding-left: 1.4em; }
.aah-article-body ol > li::marker { font-weight: 700; color: var(--aah-ink); }
.aah-article-body hr { border: 0; border-top: 1px solid var(--aah-border); margin: 2.4em 0; }
.aah-article-body blockquote {
    margin: 1.8em 0;
    padding: 22px 26px;
    border-left: 4px solid var(--aah-accent);
    background: var(--aah-bg-soft);
    color: var(--aah-ink);
}
.aah-article-body blockquote p:last-child { margin-bottom: 0; }

.aah-table-scroll { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--aah-border); background: var(--aah-bg-raised); }
.aah-table-scroll table,
.aah-article-body table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 15px;
}
.aah-table-scroll th, .aah-table-scroll td {
    border-bottom: 1px solid var(--aah-border);
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}
.aah-table-scroll tr:last-child td { border-bottom: 0; }
.aah-table-scroll th {
    background: var(--aah-ink);
    color: var(--aah-on-dark);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aah-figure { margin: 1.8em 0; }
.aah-figure img { width: 100%; height: auto; }
.aah-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--aah-text-muted); }

code, pre { font-family: var(--aah-font-mono); font-size: 0.9em; }
:not(pre) > code { background: var(--aah-bg-soft); padding: 1px 5px; color: var(--aah-ink); }
pre {
    background: var(--aah-ink);
    color: #f1f1f1;
    padding: 18px 20px;
    overflow-x: auto;
}

/* ==========================================================================
   Buttons - flat yellow block, uppercase label, ▶ marker (pure CSS)
   ========================================================================== */

.aah-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 17px 26px;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.aah-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent currentColor;
}
.aah-btn:hover::after { transform: translateX(4px); }
.aah-btn-primary { background: var(--aah-accent); color: var(--aah-ink); }
.aah-btn-primary:hover { background: var(--aah-ink); color: var(--aah-on-dark); }
.aah-btn-secondary { background: transparent; color: var(--aah-ink); box-shadow: inset 0 0 0 1px var(--aah-ink); }
.aah-btn-secondary:hover { background: var(--aah-ink); color: var(--aah-on-dark); }

/* ==========================================================================
   Header
   ========================================================================== */

.aah-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--aah-header-h);
    display: flex;
    align-items: center;
    background: rgba(248, 245, 243, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--aah-border-faint);
}
.aah-header .aah-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
}
.aah-header nav { flex: 1; display: flex; justify-content: center; }

.aah-wordmark {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.03em;
    color: var(--aah-ink);
    text-decoration: none;
    white-space: nowrap;
}
.aah-wordmark::before {
    /* the reference's slanted block mark, drawn in CSS */
    content: '';
    width: 22px;
    height: 22px;
    background: var(--aah-ink);
    clip-path: polygon(0 0, 100% 0, 100% 38%, 38% 100%, 0 100%);
    margin-right: 10px;
    flex: 0 0 auto;
}
.aah-wordmark:hover { color: var(--aah-ink); }
.aah-wordmark .aah-wordmark-accent {
    color: var(--aah-ink);
    font-weight: 500;
    background: linear-gradient(transparent 62%, var(--aah-accent) 62%, var(--aah-accent) 92%, transparent 92%);
}

.aah-nav-hubs { display: none; list-style: none; margin: 0; padding: 0; gap: 4px 28px; align-items: center; justify-content: center; flex-wrap: nowrap; }
.aah-nav-hubs a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    color: var(--aah-ink);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
    white-space: nowrap;
}
.aah-nav-hubs a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 2px;
    background: var(--aah-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--aah-ease);
}
.aah-nav-hubs a:hover::after, .aah-nav-hubs a[aria-current="page"]::after { transform: scaleX(1); }

.aah-header-cta { display: none; padding: 15px 22px; }
.aah-header-phone {
    display: none;
    font-weight: 600;
    font-size: 15px;
    color: var(--aah-ink);
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: var(--aah-ink);
    text-underline-offset: 5px;
}
.aah-header-phone:hover { text-decoration-color: var(--aah-accent); text-decoration-thickness: 2px; }

.aah-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--aah-ink);
    border: 0;
    color: var(--aah-on-dark);
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}
.aah-nav-toggle::before {
    content: '';
    width: 16px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.aah-nav-toggle[aria-expanded="true"] { background: var(--aah-accent); color: var(--aah-ink); }
.aah-nav-mobile {
    display: none;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 6px 0 14px;
    width: 100%;
}
.aah-nav-mobile.is-open { display: flex; }
.aah-nav-mobile a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    color: var(--aah-ink);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    border-top: 1px solid var(--aah-border);
}
.aah-nav-mobile a::after { content: ''; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }

/* Desktop: two rows - wordmark / phone / CTA on top, the six hubs on a
   full-width hairline row underneath (they are too long for one line). */
@media (min-width: 1200px) {
    .aah-nav-hubs { display: flex; width: 100%; justify-content: space-between; }
    .aah-header-cta { display: inline-flex; }
    .aah-header-phone { display: inline-flex; margin-left: auto; }
    .aah-nav-toggle, .aah-nav-mobile { display: none !important; }
    .aah-header .aah-container { padding-bottom: 0; row-gap: 14px; }
    .aah-header nav { order: 3; flex: 1 1 100%; border-top: 1px solid var(--aah-border-faint); padding: 6px 0; }
}
@media (max-width: 1199px) {
    .aah-header nav { display: none; }
}

/* ==========================================================================
   Breadcrumbs + inner page header
   ========================================================================== */

.aah-breadcrumbs {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--aah-text-muted);
    padding: 44px 0 0;
}
.aah-breadcrumbs a { color: var(--aah-ink); text-decoration: none; }
.aah-breadcrumbs a:hover { text-decoration: underline; text-decoration-color: var(--aah-accent); text-decoration-thickness: 2px; }
.aah-breadcrumbs .sep { margin: 0 10px; opacity: 0.45; }
.aah-breadcrumbs .aah-container { max-width: var(--aah-container); }
.page-template-page-article .aah-breadcrumbs .aah-container,
.page-template-page-service .aah-breadcrumbs .aah-container,
.page-template-page-geo .aah-breadcrumbs .aah-container,
.page-template-page-static .aah-breadcrumbs .aah-container { max-width: calc(760px + 2 * var(--aah-gutter)); }

.aah-page-header { padding-top: 28px; padding-bottom: 40px; }
.aah-page-header h1 { font-size: clamp(38px, 5.4vw, 72px); margin-bottom: 0.3em; }
.aah-page-hub .aah-page-header,
.aah-page-header.aah-prose { position: relative; }
.aah-page-header::after {
    content: '';
    display: block;
    width: 72px;
    height: 6px;
    margin-top: 26px;
    background: var(--aah-accent);
}
.aah-page-header .aah-byline + *,
.aah-page-header h1 + .aah-byline { margin-top: 0; }

.aah-byline {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--aah-text-muted);
    margin: 4px 0 0;
}

.aah-hero-image { margin: 0 auto 40px; }
.aah-hero-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* inner-page article body sits after the header with breathing room */
.aah-page-article > .aah-article-body,
.aah-page-service > .aah-article-body,
.aah-page-geo > .aah-article-body,
.aah-page-static > .aah-article-body,
.aah-page-hub > .aah-article-body { padding-bottom: 80px; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.aah-hero { padding: 64px 0 0; }
.aah-hero-top { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 96px; }
.aah-hero h1 { margin: 0; max-width: 17ch; }
.aah-hero-aside .aah-lead { margin-bottom: 30px; }
.aah-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 1024px) {
    .aah-hero { padding-top: 90px; }
    .aah-hero-top { grid-template-columns: minmax(0, 7.5fr) minmax(0, 3.5fr); gap: 72px; align-items: end; padding-bottom: 130px; }
}

/* Dark band under the hero with the reference's round badge sitting
   on the seam. Carries the compact request form. */
.aah-hero-band { position: relative; background: var(--aah-ink); color: var(--aah-on-dark-2); padding: 104px 0 72px; }
.aah-hero-badge {
    position: absolute;
    left: 50%;
    top: 0;
    width: 112px;
    height: 112px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--aah-ink);
    box-shadow: 0 0 0 8px var(--aah-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.aah-hero-badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--aah-accent);
    color: var(--aah-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}
.aah-hero-badge-icon svg { display: block; transform: translateY(-1px); }

.aah-hero-request-wrap { width: 100%; }

/* compact request form inside the dark band: one even row of fields +
   button (fixed control height so select/date/email line up), the
   disclosure directly underneath, right next to the CTA. */
.aah-hero-request { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; background: transparent; }
.aah-hero-request .aah-request-form { grid-row: 1; }
.aah-hero-request .aah-notice { grid-row: 2; margin: 0; font-size: 14.5px; }
.aah-hero-request .aah-disclosure {
    grid-row: 3;
    margin: 0;
    padding: 2px 0 2px 18px;
    background: none;
    border-left: 3px solid var(--aah-accent);
    color: var(--aah-on-dark-2);
    font-size: 14.5px;
    line-height: 1.55;
    max-width: 72ch;
}
.aah-hero-request .aah-request-form-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    max-width: none;
}
/* Top-aligned with a fixed label height, so anything a browser extension
   injects next to an input (password-manager icons etc.) can only grow a
   row downward - it never shifts that row's control out of line. */
.aah-hero-request .aah-request-form-compact .aah-form-row { position: relative; gap: 10px; }
.aah-hero-request .aah-request-form-compact .aah-form-row label { height: 15px; line-height: 15px; white-space: nowrap; }
.aah-hero-request .aah-request-form-compact input,
.aah-hero-request .aah-request-form-compact select,
.aah-hero-request .aah-request-form-compact .aah-btn {
    height: 56px;
    min-height: 56px;
    margin: 0;
    line-height: 1.2;
}
.aah-hero-request .aah-request-form-compact .aah-btn { justify-content: space-between; align-self: start; margin-top: 25px; }
@media (max-width: 639px) { .aah-hero-request .aah-request-form-compact .aah-btn { margin-top: 8px; } }
@media (min-width: 640px) {
    .aah-hero-request .aah-request-form-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .aah-hero-request .aah-request-form-compact { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 20px; }
}

/* home body sections */
.page-template-page-home .aah-article-body h2:first-child,
.page-template-page-home .aah-article-body > h2 { font-size: clamp(32px, 3.6vw, 52px); }

.aah-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13.5px;
    color: var(--aah-text-secondary);
}

/* ==========================================================================
   Hub cards (home) - numbered service rows, reference "Planning / Human
   Resource / ..." list on the sand band
   ========================================================================== */

.aah-silo-grid { counter-reset: aah-silo; border-top: 1px solid var(--aah-border-strong); }

.aah-card {
    position: relative;
    counter-increment: aah-silo;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 0 18px;
    padding: 30px 0 30px;
    border-bottom: 1px solid var(--aah-border-strong);
    background: transparent;
}
.aah-card::before {
    content: counter(aah-silo, decimal-leading-zero);
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--aah-ink);
}
.aah-card::after {
    content: '';
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent var(--aah-ink);
    transition: transform .25s var(--aah-ease);
}
.aah-card:hover::after { transform: translateX(6px); }
.aah-card-media { grid-column: 2; margin-bottom: 18px; aspect-ratio: 16 / 7; overflow: hidden; }
.aah-card-media img { width: 100%; height: 100%; object-fit: cover; }
.aah-card-body { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; }
.aah-card-body > h3, .aah-card-body > .aah-card-desc { flex: 1 1 100%; }
.aah-card h3 {
    font-size: clamp(22px, 2.2vw, 30px);
    margin: 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    text-decoration-color: transparent;
    transition: text-decoration-color .2s var(--aah-ease);
}
.aah-card:hover h3 { text-decoration-color: var(--aah-ink); }
.aah-card-desc { color: var(--aah-ink-2); font-size: 15.5px; line-height: 1.6; margin: 0; opacity: .85; }
.aah-card-body > .aah-card-count,
.aah-card-body > .aah-card-link {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aah-ink);
    padding-bottom: 2px;
    border-bottom: 2px solid var(--aah-accent);
}
.aah-card-body > .aah-card-count { border-bottom-color: transparent; opacity: .7; }
.aah-card-cover-link { position: absolute; inset: 0; z-index: 2; }
.aah-card-body > * { position: relative; z-index: 1; }

.aah-card-icon {
    width: 44px; height: 44px;
    background: var(--aah-accent); color: var(--aah-ink);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}

/* ==========================================================================
   Start-here / method block
   ========================================================================== */

.aah-method-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--aah-border); }
@media (min-width: 768px) { .aah-method-grid { grid-template-columns: repeat(3, 1fr); } }
.aah-method-col { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--aah-border); }
@media (min-width: 768px) { .aah-method-col + .aah-method-col { border-left: 1px solid var(--aah-border); padding-left: 28px; } }
.aah-method-col .aah-card-icon { margin-bottom: 22px; }
.aah-method-col h3 { font-size: 19px; }
.aah-method-col p { color: var(--aah-text-secondary); font-size: 15px; margin: 0; }

/* ==========================================================================
   Hub: child announcements - numbered rows on sand
   ========================================================================== */

.aah-hub-articles { counter-reset: aah-child; display: flex; flex-direction: column; border-top: 1px solid var(--aah-border-strong); }
.aah-hub-article-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 6px 18px;
    padding: 26px 0;
    border-bottom: 1px solid var(--aah-border-strong);
    color: var(--aah-ink);
    text-decoration: none;
}
.aah-hub-articles .aah-hub-article-card { counter-increment: aah-child; }
.aah-hub-articles .aah-hub-article-card::before {
    content: counter(aah-child, decimal-leading-zero);
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 5px;
    font-size: 13px;
    font-weight: 600;
}
.aah-hub-article-card::after {
    content: '';
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent var(--aah-ink);
    transition: transform .25s var(--aah-ease);
}
.aah-hub-article-card:hover::after { transform: translateX(6px); }
.aah-hub-article-card h3 {
    grid-column: 2;
    margin: 0;
    font-size: clamp(19px, 1.7vw, 23px);
    color: var(--aah-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    text-decoration-color: transparent;
    transition: text-decoration-color .2s var(--aah-ease);
}
.aah-hub-article-card:hover h3 { text-decoration-color: var(--aah-ink); }
.aah-hub-article-card p { grid-column: 2; color: var(--aah-ink-2); opacity: .8; margin: 0; font-size: 15px; line-height: 1.55; }
.aah-hub-article-card:hover { color: var(--aah-ink); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.aah-faq { margin: 24px 0 8px; border-top: 1px solid var(--aah-border-strong); }
.aah-faq-item { border-bottom: 1px solid var(--aah-border-strong); }
.aah-faq-item summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 22px 48px 22px 0;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: var(--aah-ink);
}
.aah-faq-item summary::-webkit-details-marker { display: none; }
.aah-faq-item summary::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    background:
        linear-gradient(var(--aah-ink), var(--aah-ink)) center / 12px 2px no-repeat,
        linear-gradient(var(--aah-ink), var(--aah-ink)) center / 2px 12px no-repeat,
        transparent;
    box-shadow: inset 0 0 0 1px var(--aah-ink);
    transition: transform .25s var(--aah-ease), background-color .2s;
}
.aah-faq-item[open] summary::after {
    transform: rotate(45deg);
    background-color: var(--aah-accent);
    box-shadow: inset 0 0 0 1px var(--aah-accent);
}
.aah-faq-item > :not(summary) { margin: 0 48px 22px 0; color: var(--aah-text-secondary); }
.aah-faq-item p { margin-top: 0; }

/* ==========================================================================
   Sources / Read next / Other sections
   ========================================================================== */

.aah-sources { background: var(--aah-bg-soft); }
.aah-sources h2 { font-size: clamp(26px, 2.4vw, 32px); }
.aah-sources-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; border-top: 1px solid var(--aah-border); }
.aah-sources-list li { padding: 14px 0; border-bottom: 1px solid var(--aah-border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.aah-sources-list a { word-break: break-word; }
.aah-sources-checked {
    color: var(--aah-text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* "Read next" - journal-style columns split by hairlines */
.aah-readnext .aah-container.aah-prose { max-width: var(--aah-container); }
.aah-readnext h2 { margin-bottom: 40px; }
.aah-readnext-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--aah-border-strong); }
@media (min-width: 640px) { .aah-readnext-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .aah-readnext-grid { grid-template-columns: repeat(4, 1fr); } }
.aah-readnext-grid .aah-hub-article-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    min-height: 190px;
    padding: 28px 28px 28px 0;
    border-bottom: 1px solid var(--aah-border-strong);
}
.aah-readnext-grid .aah-hub-article-card::after { align-self: flex-start; }
@media (min-width: 640px) {
    .aah-readnext-grid .aah-hub-article-card:nth-child(n) { padding-left: 28px; border-left: 1px solid var(--aah-border-strong); }
    .aah-readnext-grid .aah-hub-article-card:nth-child(2n+1) { padding-left: 0; border-left: 0; }
}
@media (min-width: 1024px) {
    .aah-readnext-grid .aah-hub-article-card:nth-child(2n+1) { padding-left: 28px; border-left: 1px solid var(--aah-border-strong); }
    .aah-readnext-grid .aah-hub-article-card:nth-child(4n+1) { padding-left: 0; border-left: 0; }
}
.aah-readnext-grid .aah-hub-article-card:last-child { background: transparent; }

/* "Other sections" - ellipse pills, same language as the eyebrow */
.aah-other-sections-wrap .aah-container.aah-prose { max-width: var(--aah-container); }
.aah-other-sections { display: flex; flex-wrap: wrap; gap: 14px; }
.aah-other-sections a {
    border: 1px solid var(--aah-ink);
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--aah-ink);
}
.aah-other-sections a:hover { background: var(--aah-ink); color: var(--aah-on-dark); }

/* ==========================================================================
   Partner disclosure + lead-gen request form (service/geo pages)
   Full form renders as a dark band: heading + disclosure left, form right.
   ========================================================================== */

.aah-disclosure-block {
    margin: 0 0 32px;
    padding: 22px 26px;
    background: var(--aah-bg-soft);
    border-left: 4px solid var(--aah-accent);
    font-size: 15.5px;
    color: var(--aah-ink);
}
.aah-disclosure-block strong { color: var(--aah-ink); }

.aah-request-panel:not(.aah-hero-request) {
    background: var(--aah-ink);
    color: var(--aah-on-dark-2);
    border-top: 0;
}
.aah-request-panel:not(.aah-hero-request) .aah-container.aah-prose {
    max-width: var(--aah-container);
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
.aah-request-panel:not(.aah-hero-request) h2 { color: var(--aah-on-dark); font-size: clamp(34px, 4vw, 58px); margin: 0; }
@media (min-width: 1024px) {
    .aah-request-panel:not(.aah-hero-request) .aah-container.aah-prose { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 80px; align-content: start; }
    .aah-request-panel:not(.aah-hero-request) .aah-container > h2,
    .aah-request-panel:not(.aah-hero-request) .aah-container > .aah-disclosure,
    .aah-request-panel:not(.aah-hero-request) .aah-container > .aah-notice { grid-column: 1; }
    .aah-request-panel:not(.aah-hero-request) .aah-container > .aah-request-form { grid-column: 2; grid-row: 1 / span 4; }
}

.aah-disclosure {
    padding: 18px 22px;
    background: var(--aah-bg-soft);
    border-left: 4px solid var(--aah-accent);
    font-size: 15px;
    margin: 0 0 20px;
}
.aah-request-panel:not(.aah-hero-request) .aah-disclosure {
    background: rgba(255, 255, 255, 0.05);
    color: var(--aah-on-dark-2);
    margin: 0;
    align-self: start;
}
.aah-request-panel .aah-disclosure strong { color: var(--aah-on-dark); }

.aah-notice { padding: 14px 18px; margin: 0 0 20px; font-size: 15px; border-left: 4px solid currentColor; }
.aah-notice-success { background: var(--aah-success-bg); color: var(--aah-success-text); }
.aah-notice-error { background: var(--aah-error-bg); color: var(--aah-error-text); }

.aah-hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aah-request-form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.aah-request-panel .aah-request-form { max-width: none; }
.aah-form-row { display: flex; flex-direction: column; gap: 8px; }
.aah-form-row label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aah-ink);
}
.aah-form-row input[type="text"],
.aah-form-row input[type="email"],
.aah-form-row input[type="date"],
.aah-form-row input[type="file"],
.aah-form-row select,
.aah-form-row textarea {
    font: inherit;
    font-size: 16px;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--aah-border-strong);
    border-radius: 0;
    background: var(--aah-bg-raised);
    color: var(--aah-ink);
    width: 100%;
}
.aah-form-row input:focus,
.aah-form-row select:focus,
.aah-form-row textarea:focus { outline: none; border-color: var(--aah-accent); box-shadow: 0 0 0 1px var(--aah-accent); }
.aah-form-row textarea { resize: vertical; }
.aah-request-form .aah-btn { align-self: flex-start; margin-top: 6px; }

/* form on dark surfaces */
.aah-request-panel .aah-form-row label,
.aah-hero-band .aah-form-row label { color: var(--aah-on-dark-2); }
.aah-request-panel .aah-form-row input[type="text"],
.aah-request-panel .aah-form-row input[type="email"],
.aah-request-panel .aah-form-row input[type="date"],
.aah-request-panel .aah-form-row input[type="file"],
.aah-request-panel .aah-form-row select,
.aah-request-panel .aah-form-row textarea {
    background: var(--aah-ink-2);
    border-color: var(--aah-on-dark-border);
    color: var(--aah-on-dark);
    color-scheme: dark;
}
.aah-request-panel .aah-form-row select option { background: var(--aah-ink-2); color: var(--aah-on-dark); }
.aah-request-panel .aah-btn-primary:hover { background: var(--aah-on-dark); color: var(--aah-ink); }

/* ==========================================================================
   Footer - dark, brand column split off by a hairline (reference footer)
   ========================================================================== */

.aah-footer { background: var(--aah-ink); color: var(--aah-on-dark-2); padding: 0; position: relative; }
.aah-footer::before {
    /* yellow tab on the seam, as in the reference */
    content: '';
    display: block;
    height: 8px;
    width: min(420px, 60%);
    margin-left: calc(50% - min(420px, 60%) / 2);
    background: var(--aah-accent);
}
.aah-footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
@media (min-width: 768px) { .aah-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) {
    .aah-footer-grid { gap: 0; }
    .aah-footer-grid > div { padding: 0 40px; border-left: 1px solid var(--aah-on-dark-border); }
    .aah-footer-grid > div:first-child { padding-left: 0; border-left: 0; }
}
.aah-footer .aah-wordmark,
.aah-footer .aah-wordmark:hover,
.aah-footer .aah-wordmark .aah-wordmark-accent { color: var(--aah-on-dark); }
.aah-footer .aah-wordmark::before { background: var(--aah-on-dark); }
.aah-footer .aah-wordmark .aah-wordmark-accent { background: linear-gradient(transparent 62%, rgba(255, 205, 76, .55) 62%, rgba(255, 205, 76, .55) 92%, transparent 92%); }
.aah-footer h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--aah-on-dark); margin-bottom: 20px; }
.aah-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aah-footer a { color: var(--aah-on-dark-2); text-decoration: none; font-size: 15px; }
.aah-footer a:hover { color: var(--aah-accent); }
.aah-footer-blurb { color: var(--aah-on-dark-2); font-size: 15px; max-width: 36ch; margin-top: 20px !important; }
.aah-footer-bottom {
    padding-top: 22px;
    padding-bottom: 26px;
    font-size: 13.5px;
    color: var(--aah-on-dark-2);
    position: relative;
}
.aah-footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--aah-gutter);
    right: var(--aah-gutter);
    border-top: 1px solid var(--aah-on-dark-border);
}

/* full request form: two-column field grid on wide screens (DOM order
   name / subject / level / deadline / comment / attachment / email) */
@media (min-width: 768px) {
    .aah-request-form:not(.aah-request-form-compact) { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .aah-request-form:not(.aah-request-form-compact) .aah-form-row:has(textarea) { grid-column: 1 / -1; }
    .aah-request-form:not(.aah-request-form-compact) .aah-btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 480px) {
    :root { --aah-gutter: 18px; }
    .aah-wordmark { font-size: 16px; }
    .aah-wordmark::before { width: 18px; height: 18px; margin-right: 8px; }
    .aah-nav-toggle { padding: 10px 12px; }
    .aah-header .aah-container { gap: 12px; }
}
