/* ─────────────────────────────────────────────
   MySpace NYC — pages/landing.css
   Page-specific styles for the public landing (/, /landing).
   Externalized from inline <style> 2026-06-09 as part of the
   nav standardization. Load order: tokens.css -> public.css -> THIS.
   The shared nav/footer chrome lives in public.css; the rotating
   --acc accent (palette picker + mobile brand-tap) is wired in
   public/js/pages/landing.js.
   ───────────────────────────────────────────── */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── ROTATING ACCENT — the brand's 5 accents, rotates every 3h ── */
:root {
    --acc: var(--ed-forest);
    --acc-dark: var(--ed-forest-dark);
    --acc-fg: var(--ed-cream);
}
html[data-accent='forest'] {
    --acc: #3d5a3d;
    --acc-dark: #2c4229;
    --acc-fg: #f5f0e8;
}
html[data-accent='coral'] {
    --acc: #d97757;
    --acc-dark: #b85a3d;
    --acc-fg: #fff;
}
html[data-accent='maroon'] {
    --acc: #944347;
    --acc-dark: #7a3538;
    --acc-fg: #fff;
}
html[data-accent='olive'] {
    --acc: #8f7e32;
    --acc-dark: #6b5e1f;
    --acc-fg: #fff;
}
html[data-accent='slate'] {
    --acc: #506060;
    --acc-dark: #3a4848;
    --acc-fg: #fff;
}
html[data-accent='gold'] {
    --acc: #a08830;
    --acc-dark: #8a7628;
    --acc-fg: #1a1a1a;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--ed-ink);
    background: var(--ed-bg);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}

/* ── Brooklyn Scene header — dim, calm rooftop SVG; accents follow --acc ── */
.bk-header {
    position: relative;
    width: 100%;
    height: clamp(420px, 56vw, 600px);
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        #e0d0b0 0%,
        #c8b896 26%,
        #8a8478 50%,
        #506060 76%,
        #3a4848 100%
    );
}
.bk-header svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.bk-header svg .lit {
    fill: var(--acc);
    opacity: 0.62;
}
.bk-header svg .beacon {
    fill: var(--acc);
}
.bk-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(26, 26, 26, 0.6) 0%,
        rgba(26, 26, 26, 0.28) 38%,
        rgba(26, 26, 26, 0) 70%
    );
}
.bk-hairline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.4);
}
.bk-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 max(40px, calc((100% - 1320px) / 2 + 40px));
    z-index: 2;
}
.bk-overlay .inner {
    max-width: 660px;
    transition: opacity 0.6s ease;
}
.bk-overlay .eyebrow {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ed-cream-tan);
    font-weight: 700;
    border-left: 2px solid var(--acc);
    padding-left: 12px;
}
.bk-overlay h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 6.4vw, 5.2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.92;
    margin: 18px 0 16px;
    color: var(--ed-cream-tan);
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}
.bk-overlay h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--acc);
}
.bk-overlay h1 .tm {
    font-size: 0.36em;
    vertical-align: top;
    margin-left: 6px;
    color: var(--acc);
    opacity: 0.8;
}
.bk-overlay p {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--ed-cream-dark);
    max-width: 470px;
    font-weight: 300;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
/* Mobile hero — keep it readable, don't hide the description (Sam: the
       desktop-on-mobile view looks better because it has the description). */
@media (max-width: 680px) {
    .bk-header {
        height: clamp(340px, 64vw, 420px);
    }
    .bk-overlay {
        padding: 0 22px;
        align-items: center;
    }
    .bk-overlay .inner {
        max-width: 100%;
    }
    .bk-overlay .eyebrow {
        font-size: 0.56rem;
        padding-left: 10px;
    }
    .bk-overlay h1 {
        font-size: clamp(2.4rem, 10vw, 3.4rem);
        margin: 10px 0 10px;
    }
    .bk-overlay p {
        font-size: 0.88rem;
        line-height: 1.5;
        max-width: none;
    }
    /* Vignette gets a bit darker on mobile so the lighter sky doesn't
         wash out the cream text. */
    .bk-vignette {
        background: linear-gradient(
            to bottom,
            rgba(26, 26, 26, 0.15) 0%,
            rgba(26, 26, 26, 0.35) 50%,
            rgba(26, 26, 26, 0.55) 100%
        );
    }
}
@media (max-width: 420px) {
    .bk-overlay p {
        font-size: 0.84rem;
    }
    .bk-header {
        height: clamp(320px, 70vw, 400px);
    }
}

/* ── Search band — below the scene ── */
.search-band {
    background: var(--ed-ink);
    color: var(--ed-cream);
    padding: 26px 24px 32px;
    text-align: center;
}
.search-tabs {
    display: inline-flex;
    margin: 0 auto 14px;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    padding: 3px;
}
.search-tabs button {
    background: transparent;
    border: 0;
    color: rgba(245, 240, 232, 0.7);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 500;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.search-tabs button.on {
    background: var(--acc);
    color: var(--acc-fg);
}
.searchbar {
    display: flex;
    margin: 0 auto;
    background: var(--ed-surface);
    border-radius: 3px;
    overflow: hidden;
    max-width: 760px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.searchbar .f {
    flex: 1;
    padding: 10px 16px;
    border-right: 0.5px solid var(--ed-border);
    text-align: left;
    min-width: 0;
}
.searchbar .f label {
    display: block;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-muted-2);
}
.searchbar .f input,
.searchbar .f select {
    width: 100%;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    padding: 6px 0;
    color: var(--ed-ink);
    -webkit-appearance: none;
    appearance: none;
}
.searchbar button[type='submit'] {
    background: var(--acc);
    color: var(--acc-fg);
    border: none;
    padding: 0 32px;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    min-height: 48px;
}
.searchbar button[type='submit']:hover {
    background: var(--acc-dark);
}
/* Sam: desktop-on-mobile view looks better than full-stacking, because
       it keeps the search bar horizontal. So: at ≤560 we DON'T fully stack
       — neighborhood gets its own row, beds + rent + Search share row 2.
       Only at very narrow (<400) do we stack all-vertical. */
@media (max-width: 680px) {
    .search-band {
        padding: 18px 14px 22px;
    }
    .searchbar {
        flex-wrap: wrap;
        max-width: 100%;
    }
    .searchbar .f {
        flex: 1 1 100%;
        border-right: 0;
        border-bottom: 0.5px solid var(--ed-border);
        padding: 8px 12px;
    }
    .searchbar .f:nth-child(2),
    .searchbar .f:nth-child(3) {
        flex: 1 1 0;
        border-bottom: 0;
        border-right: 0.5px solid var(--ed-border);
    }
    .searchbar .f:nth-child(2) {
        max-width: none !important;
    }
    .searchbar .f:nth-child(3) {
        max-width: none !important;
    }
    .searchbar .f label {
        font-size: 0.55rem;
        margin-bottom: 1px;
    }
    .searchbar .f input,
    .searchbar .f select {
        font-size: 15px;
        padding: 3px 0;
    }
    .searchbar button[type='submit'] {
        padding: 0 22px;
        font-size: 0.86rem;
        min-height: 46px;
    }
    .search-tabs {
        margin-bottom: 12px;
    }
    .search-tabs button {
        padding: 8px 16px;
        font-size: 0.74rem;
    }
}
@media (max-width: 400px) {
    .searchbar {
        flex-direction: column;
    }
    .searchbar .f,
    .searchbar .f:nth-child(2),
    .searchbar .f:nth-child(3) {
        flex: 1 1 100%;
        border-right: 0;
        border-bottom: 0.5px solid var(--ed-border);
        max-width: 100% !important;
        padding: 9px 12px;
    }
    .searchbar button[type='submit'] {
        padding: 12px;
        min-height: 46px;
    }
}

/* More filters expand */
.more-toggle {
    background: transparent;
    color: rgba(245, 240, 232, 0.78);
    border: 0;
    font-family: inherit;
    font-size: 0.74rem;
    cursor: pointer;
    margin-top: 12px;
    text-decoration: underline;
    padding: 8px;
}
.more-toggle:hover {
    color: var(--acc);
}
.more-filters {
    max-width: 760px;
    margin: 14px auto 0;
    display: none;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    text-align: left;
}
.more-filters.on {
    display: block;
}
.mf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}
.mf-row:last-child {
    margin-bottom: 0;
}
.mf-row .lbl {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-muted-2);
    margin-right: 4px;
    flex: 0 0 auto;
    min-width: 76px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border: 0.5px solid rgba(245, 240, 232, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ed-cream);
    border-radius: 18px;
    font-family: inherit;
    font-size: 0.74rem;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.12s;
    user-select: none;
    min-height: 36px;
}
.chip:hover {
    border-color: var(--acc);
}
.chip.on {
    background: var(--acc);
    color: var(--acc-fg);
    border-color: var(--acc);
    font-weight: 500;
}

/* Borough quick-pick row */
.borough-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 14px auto 0;
    max-width: 760px;
}
.borough-row .chip {
    font-size: 0.78rem;
    padding: 9px 18px;
    min-height: 40px;
}

/* hero quick-stats strip */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.hero-stats .hs {
    font-size: 0.78rem;
    opacity: 0.85;
}
.hero-stats .hs b {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--acc);
    display: block;
}
@media (max-width: 680px) {
    .hero-stats {
        gap: 14px 22px;
        margin-top: 18px;
    }
    .hero-stats .hs {
        font-size: 0.78rem;
        flex: 1 1 38%;
    }
    .hero-stats .hs b {
        font-size: 1.4rem;
    }
}

/* ── Listing carousels — the life of the page ── */
.rail {
    padding: 44px 0 8px;
}
.rail-head {
    max-width: 1320px;
    margin: 0 auto 16px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.rail-head h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.7rem;
}
.rail-head h2 em {
    font-style: italic;
    color: var(--acc-dark);
}
.rail-head a {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-ink);
    border-bottom: 2px solid var(--acc);
    padding-bottom: 2px;
}
.rail-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 40px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.rail-track::-webkit-scrollbar {
    height: 6px;
}
.rail-track::-webkit-scrollbar-thumb {
    background: var(--ed-border);
    border-radius: 3px;
}
.lcard {
    flex: 0 0 290px;
    scroll-snap-align: start;
    background: var(--ed-surface);
    border: 0.5px solid var(--ed-border);
    border-radius: 4px;
    overflow: hidden;
    transition:
        transform 0.18s,
        box-shadow 0.18s;
}
.lcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.13);
}
.lcard .ph {
    aspect-ratio: 4/3;
    background: var(--ed-cream-dark);
    position: relative;
}
.lcard .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lcard .nofee {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--acc);
    color: var(--acc-fg);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 9px;
    border-radius: 2px;
    text-transform: uppercase;
}
.lcard .new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ed-ink);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}
.lcard .b {
    padding: 12px 14px;
}
.lcard .rent {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
}
.lcard .rent span {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--ed-muted-2);
}
.lcard .addr {
    font-size: 0.82rem;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lcard .meta {
    font-size: 0.74rem;
    color: var(--ed-muted-2);
    margin-top: 5px;
}
.lcard .cta-row {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}
.lcard .cta-row a {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 7px;
    border-radius: 2px;
}
.lcard .cta-row a.tour {
    background: var(--ed-ink);
    color: #fff;
}
.lcard .cta-row a.view {
    background: var(--ed-surface-2);
    color: var(--ed-ink);
    border: 0.5px solid var(--ed-border);
}
.rail-empty {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px 20px;
    color: var(--ed-muted-2);
    font-size: 0.86rem;
}
@media (max-width: 680px) {
    .rail-head {
        padding-left: 20px;
        padding-right: 20px;
    }
    .rail-head h2 {
        font-size: 1.5rem;
    }
    .rail-track {
        padding: 4px 20px 20px;
        gap: 14px;
    }
    .lcard {
        flex-basis: 280px;
    }
    .lcard img {
        height: 200px;
    }
    .lcard .rent {
        font-size: 1.05rem;
    }
    .lcard .addr {
        font-size: 0.9rem;
    }
}
@media (max-width: 420px) {
    .lcard {
        flex-basis: 260px;
    }
}

/* ── Neighborhood chips ── */
.hoods {
    max-width: 1320px;
    margin: 30px auto 0;
    padding: 0 40px;
}
.hoods h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.7rem;
    margin-bottom: 14px;
}
.hood-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
/* Scoped to .hood-chips so these light-pill styles don't leak onto the
   borough / more-filter chips that sit on the dark search band. Without the
   scope the bare `.chip` here overrode the dark-band chip background AND left
   the neighborhood-name text at the inherited cream color — i.e. cream text on
   a white pill, effectively invisible. */
.hood-chips .chip {
    background: var(--ed-surface);
    border: 0.5px solid var(--ed-border);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 0.86rem;
    color: var(--ed-ink);
    text-decoration: none;
    transition: all 0.15s;
}
.hood-chips .chip:hover,
.hood-chips .chip:focus-visible {
    background: var(--acc);
    color: var(--acc-fg);
    border-color: var(--acc);
}
.hood-chips .chip b {
    font-weight: 600;
}
.hood-chips .chip span {
    color: #5a5a5a;
    font-size: 0.78rem;
}
.hood-chips .chip:hover span,
.hood-chips .chip:focus-visible span {
    color: var(--acc-fg);
    opacity: 0.85;
}
@media (max-width: 680px) {
    .hoods {
        padding: 0 20px;
    }
    .hoods h2 {
        font-size: 1.5rem;
    }
}

/* ── Accessibility: visible keyboard focus across the page ──
   Mirrors the gold focus ring the shared nav already uses (public.css) so
   keyboard + switch users get a consistent, high-contrast indicator. Gold
   (#a08830) reads on both the dark search band and the light page body. */
.search-tabs button:focus-visible,
.chip:focus-visible,
.more-toggle:focus-visible,
.rail-head a:focus-visible,
.rail-track a:focus-visible,
.lcard a:focus-visible,
.cta-half a:focus-visible,
.foot-col a:focus-visible,
.foot-brand:focus-visible {
    outline: 2px solid var(--ed-gold, #a08830);
    outline-offset: 2px;
    border-radius: 4px;
}
/* The search bar clips overflow, so an offset ring on the inner fields would be
   cut off — use an inset highlight on the focused field instead. */
.searchbar .f:focus-within {
    background: rgba(160, 136, 48, 0.07);
    box-shadow: inset 0 0 0 2px var(--ed-gold, #a08830);
}
.searchbar button[type='submit']:focus-visible {
    outline: 2px solid var(--ed-cream, #f5f0e8);
    outline-offset: -4px;
}
.more-filters input:focus-visible {
    outline: 2px solid var(--ed-gold, #a08830);
    outline-offset: 2px;
}

/* Respect users who ask for reduced motion. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Pillars — compact, below the listings ── */
.pillars {
    max-width: 1320px;
    margin: 56px auto 0;
    padding: 44px 40px;
    background: var(--ed-surface);
    border-top: 0.5px solid var(--ed-border);
    border-bottom: 0.5px solid var(--ed-border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}
.pillar {
    display: flex;
    gap: 14px;
}
.pillar .ico {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}
.pillar:nth-child(1) .ico {
    color: var(--ed-claude);
}
.pillar:nth-child(2) .ico {
    color: var(--ed-olive);
}
.pillar:nth-child(3) .ico {
    color: var(--ed-slate);
}
.pillar h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.2rem;
}
.pillar p {
    font-size: 0.84rem;
    color: #555;
    line-height: 1.55;
    font-weight: 300;
    margin-top: 3px;
}
@media (max-width: 760px) {
    .pillars {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 36px 24px;
    }
}

/* ── Platform-depth band (investor-credibility) ── */
.depth-band {
    max-width: 1320px;
    margin: 64px auto 0;
    padding: 56px 40px 48px;
}
.depth-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 38px;
}
.depth-head h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1.1;
    margin: 0 0 10px;
    color: var(--ed-ink);
    letter-spacing: -0.015em;
}
.depth-head p {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ed-muted-2);
    font-weight: 300;
    margin: 0;
}
.depth-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.depth-card {
    background: var(--ed-surface);
    border: 0.5px solid var(--ed-border);
    border-top: 2px solid var(--acc);
    border-radius: 2px;
    padding: 24px 22px;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}
.depth-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.depth-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.3rem;
    font-weight: 600;
    color: var(--acc);
    line-height: 1;
    opacity: 0.7;
    margin-bottom: 8px;
}
.depth-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.35rem;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.depth-card p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ed-muted-2);
    font-weight: 300;
    margin: 0;
}
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 0.5px solid var(--ed-border);
}
.trust-bit {
    font-size: 0.78rem;
    color: var(--ed-muted-2);
    font-weight: 500;
    letter-spacing: 0.02em;
}
@media (max-width: 980px) {
    .depth-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .depth-band {
        padding: 40px 20px 32px;
        margin-top: 40px;
    }
    .depth-head h2 {
        font-size: 1.85rem;
    }
    .depth-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .depth-card {
        padding: 20px 18px;
    }
    .trust-strip {
        gap: 8px 12px;
        margin-top: 28px;
        padding-top: 20px;
    }
    .trust-bit {
        font-size: 0.72rem;
    }
}

/* ── CTA split ── */
.cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 56px;
}
.cta-half {
    padding: 64px 44px;
    text-align: center;
}
.cta-half.renters {
    background: var(--acc);
    color: var(--acc-fg);
}
.cta-half.landlords {
    background: var(--ed-ink);
    color: var(--ed-cream);
}
.cta-half h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 500;
}
.cta-half p {
    font-size: 0.88rem;
    margin-top: 8px;
    opacity: 0.9;
}
.cta-half a {
    display: inline-block;
    margin-top: 18px;
    padding: 11px 26px;
    border-radius: 2px;
    font-size: 0.82rem;
    font-weight: 600;
}
.cta-half.renters a {
    background: var(--ed-ink);
    color: #fff;
}
.cta-half.landlords a {
    background: var(--acc);
    color: var(--acc-fg);
}
@media (max-width: 680px) {
    .cta-split {
        grid-template-columns: 1fr;
    }
    .cta-half {
        padding: 48px 28px;
    }
}

/* ── Footer — carries the cubed line-art pattern (darker, accent-tied) ── */
footer {
    background: var(--ed-ink);
    color: #999;
    padding: 48px 40px 26px;
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(45deg, var(--acc-dark) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(-45deg, var(--acc-dark) 0 1px, transparent 1px 42px);
}
.foot-inner,
.foot-bottom {
    position: relative;
    z-index: 1;
}
.foot-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 30px;
}
.foot-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--ed-cream);
    margin-bottom: 8px;
}
.foot-brand img {
    width: 28px;
}
.foot-brand em {
    color: var(--acc);
    font-style: italic;
}
footer p.tag {
    font-size: 0.78rem;
    line-height: 1.6;
    max-width: 320px;
}
.foot-col h5 {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #777;
    margin-bottom: 10px;
}
.foot-col a {
    color: #bbb;
    font-size: 0.8rem;
    display: block;
    padding: 3px 0;
}
.foot-col a:hover {
    color: var(--acc);
}
.foot-bottom {
    max-width: 1320px;
    margin: 28px auto 0;
    padding-top: 16px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.72rem;
    color: #777;
}
@media (max-width: 680px) {
    .foot-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 32px 24px;
    }
}
@media (max-width: 420px) {
    .foot-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile sticky search FAB — appears as you scroll past the search band */
.mobile-search-fab {
    display: none;
}
@media (max-width: 760px) {
    .mobile-search-fab {
        display: none;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 30;
        background: var(--acc);
        color: var(--acc-fg);
        padding: 14px 26px;
        border-radius: 28px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 0.86rem;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        border: 0;
        cursor: pointer;
        align-items: center;
        gap: 8px;
    }
    .mobile-search-fab.on {
        display: inline-flex;
    }
    .mobile-search-fab svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2.4;
    }
}

/* palette picker — bottom-LEFT so it doesn't collide with the Ideas FAB
       (bottom-right) on staff sessions. Sam 2026-05-17. */
.palette-picker {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--ed-surface);
    border: 0.5px solid var(--ed-border);
    border-radius: 999px;
    padding: 6px 8px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
}
.palette-picker .lbl {
    font-size: 0.6rem;
    color: var(--ed-muted-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.palette-picker .sw {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}
.palette-picker .sw:hover {
    transform: scale(1.15);
}
.palette-picker .sw.on {
    border-color: var(--ed-ink);
}
/* On mobile, hide the floating picker — instead the brand LOGO
       itself is the accent control (tap to cycle). Sam: "the logo
       shud be part of that". */
/* On mobile, hide the floating picker — the brand wordmark + dot
       is the accent control (tap to cycle). Sam: "the logo shud be
       part of that". */
@media (max-width: 760px) {
    .palette-picker {
        display: none !important;
    }
}

/* ── Landing-only: let the SHARED nav seal + wordmark + primary button
   follow the rotating page accent (--acc), so the palette showpiece is
   preserved while the nav stays the standardized .site-nav component.
   Scoped here because landing.css only loads on the landing page. ── */
.site-nav .sn-seal {
    background-color: var(--acc, #a08830);
}
.site-nav .sn-wm span {
    color: var(--acc-dark, #8a7628);
}
.site-nav .sn-links a:hover,
.site-nav .sn-links a.active {
    border-bottom-color: var(--acc, #a08830);
}
.site-nav .sn-btn {
    background: var(--acc, #1a1a1a);
    color: var(--acc-fg, #f5f0e8);
}
.site-nav .sn-btn:hover {
    background: var(--acc-dark, #000);
}
