:root {
    --ink: #19211d;
    --muted: #66706a;
    --line: #dfe5e1;
    --paper: #fbfcfb;
    --panel: #fff;
    --brand: #245845;
    --brand2: #173c30;
    --soft: #eef4f1;
    --danger: #8d342d;
    --shadow: 0 12px 34px rgba(21, 39, 30, .07);
    --radius: 14px;
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;

    font-size: 15px;
    line-height: 1.55;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.shell {
    width: min(1180px, calc(100% - 36px));
    margin: auto;
}

.narrow {
    width: min(620px, calc(100% - 36px));
}


/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid var(--line);

    display: flex;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 20;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 800;
    color: var(--ink);

    display: flex;
    gap: 10px;
    align-items: center;
}

.brand:hover {
    text-decoration: none;
}


/*
   NEW IMAGE LOGO

   Change height to make the logo larger or smaller.
   Width remains automatic so the image keeps its proportions.
*/

.site-logo {
    display: block;
    height: 50px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}


/*
   OLD GENERATED LOGO MARK

   This can be deleted once the old <span class="brand-mark">
   is no longer being used in app.php.
*/

.brand-mark {
    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    border-radius: 8px;

    background: var(--brand);
    color: #fff;
}

.nav nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav nav > a {
    color: var(--ink);
    font-weight: 600;
}

.inline {
    display: inline;
}

.link-button {
    background: none;
    border: 0;
    padding: 0;

    font: inherit;
    color: var(--ink);
    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--brand);
    border-radius: 9px;

    background: var(--brand);
    color: #fff !important;

    padding: 11px 17px;

    font-weight: 750;
    line-height: 1.2;

    cursor: pointer;
}

.button:hover {
    background: var(--brand2);
    text-decoration: none;
}

.button-small {
    padding: 8px 13px;
}

.secondary {
    background: #fff;
    color: var(--brand) !important;
}

.danger {
    background: var(--danger);
    border-color: var(--danger);
}

.full {
    width: 100%;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 72px 0;

    background:
        linear-gradient(
            135deg,
            #edf5f0,
            #f9fbfa 65%
        );
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(310px, .75fr);

    gap: 58px;

    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;

    font-size: 12px;
    font-weight: 850;

    color: var(--brand);

    margin-bottom: 9px;
}

h1,
h2,
h3,
h4 {
    line-height: 1.16;

    margin: 0 0 14px;

    letter-spacing: -.02em;
}

h1 {
    font-size: clamp(36px, 5vw, 61px);
    max-width: 850px;
}

h2 {
    font-size: 26px;
}

h3 {
    font-size: 19px;
}

.lede {
    font-size: 20px;
    color: #445049;

    max-width: 760px;
}

.fine,
.muted {
    color: var(--muted);
}

.compact {
    margin: .2rem 0 .65rem;
}

.hero-search {
    display: grid;

    grid-template-columns:
        1.6fr
        1fr
        90px
        auto;

    gap: 9px;

    margin: 28px 0 13px;
}

.hero-panel,
.form-card,
.info-card,
.review-card {
    background: #fff;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 28px;
}

.hero-points {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 8px;

    margin: 20px 0 24px;
}

.hero-points span {
    background: var(--soft);

    padding: 10px;

    border-radius: 8px;

    font-weight: 650;
    font-size: 14px;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    padding: 62px 0;
}

.tight {
    padding: 36px 0;
}

.contrast {
    background: #edf2ef;
}

.split {
    display: grid;

    grid-template-columns:
        1.2fr
        .8fr;

    gap: 70px;
}

.section-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 20px;

    margin-bottom: 20px;
}


/* =========================================================
   PROVIDER CARDS / DIRECTORY RESULTS
   ========================================================= */

.provider-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.provider-list {
    display: grid;
    gap: 14px;
}

.provider-card {
    display: grid;

    grid-template-columns:
        118px
        1fr;

    background: #fff;

    border: 1px solid var(--line);
    border-radius: 12px;

    overflow: hidden;

    min-height: 150px;
}

.provider-photo {
    background: var(--soft);

    display: grid;
    place-items: center;

    color: var(--brand);

    font-size: 26px;
    font-weight: 850;
}

.provider-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.provider-card-body {
    padding: 17px 18px;
}

.provider-card h2 {
    font-size: 20px;
    margin-bottom: 3px;
}

.provider-card h2 small,
.profile-intro h1 small {
    font-size: .62em;
    font-weight: 600;

    color: var(--muted);
}


/* =========================================================
   CHIPS / TAGS
   ========================================================= */

.chips {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;
}

.chips span {
    padding: 4px 8px;

    border-radius: 999px;

    background: var(--soft);

    font-size: 12px;
    color: #314a3e;
}

.chips.large span {
    font-size: 14px;

    padding: 7px 10px;
}

.card-meta,
.profile-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 13px;

    color: var(--muted);
    font-size: 13px;

    margin-top: 12px;
}


/* =========================================================
   PAGE HEADERS
   ========================================================= */

.page-head {
    padding: 42px 0 30px;

    background: #f0f5f2;

    border-bottom: 1px solid var(--line);
}

.page-head h1 {
    font-size: 40px;
}


/* =========================================================
   DIRECTORY LAYOUT / FILTERS
   ========================================================= */

.directory-layout {
    display: grid;

    grid-template-columns:
        260px
        minmax(0, 1fr);

    gap: 28px;
}

.filters {
    position: sticky;
    top: 92px;

    align-self: start;
}

.filters form {
    display: grid;
    gap: 12px;
}

.filters .field-row {
    grid-template-columns:
        1fr
        72px;
}


/* =========================================================
   FORMS
   ========================================================= */

.field-row {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;
}

label {
    display: grid;

    gap: 5px;

    font-weight: 680;
    font-size: 13px;
}

input,
select,
textarea {
    width: 100%;

    border: 1px solid #cbd5cf;
    border-radius: 8px;

    background: #fff;

    padding: 10px 11px;

    color: var(--ink);

    font: inherit;
}

textarea {
    resize: vertical;
}

.check {
    display: flex;

    align-items: center;

    gap: 8px;

    font-weight: 550;
}

.check input {
    width: auto;
}

.empty {
    text-align: center;

    padding: 55px 20px;
}


/* =========================================================
   PROVIDER PROFILE
   ========================================================= */

.profile-head {
    background: #f0f5f2;

    padding: 44px 0;

    border-bottom: 1px solid var(--line);
}

.profile-top {
    display: grid;

    grid-template-columns:
        145px
        1fr
        auto;

    gap: 28px;

    align-items: center;
}

.profile-image {
    width: 145px;
    height: 145px;

    border-radius: 16px;

    overflow: hidden;

    background: #dfeae4;

    display: grid;
    place-items: center;

    font-size: 38px;
    font-weight: 850;

    color: var(--brand);
}

.profile-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.profile-intro h1 {
    font-size: 40px;
}

.profile-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 48px;
}

.profile-main section {
    padding: 0 0 28px;

    margin: 0 0 28px;

    border-bottom: 1px solid var(--line);
}

.prose {
    white-space: normal;

    color: #364039;
}

.clean-list {
    columns: 2;

    padding-left: 20px;
}

.profile-side {
    display: grid;

    gap: 14px;

    align-content: start;
}

.info-card {
    padding: 20px;
}

.info-card address {
    font-style: normal;

    margin: 10px 0;
}

.big-number {
    font-size: 26px;
    font-weight: 800;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 60px;

    align-items: start;
}

.form-card {
    padding: 24px;

    display: grid;

    gap: 13px;
}

.auth-page {
    min-height: 68vh;
}

.form-foot {
    text-align: center;

    margin: 4px 0;
}


/* =========================================================
   MEMBER PROFILE EDITOR
   ========================================================= */

.editor-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 24px;

    align-items: start;
}

.wide h2 {
    margin-top: 16px;
}

.taxonomy-grid,
.check-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px 14px;
}

.location-edit {
    padding: 14px;

    background: var(--soft);

    border-radius: 10px;
}

.photo-preview {
    width: 100%;
    max-height: 280px;

    object-fit: cover;

    border-radius: 10px;
}

.review-note {
    background: #fff5d9;

    border-left: 4px solid #d0a634;

    padding: 10px 12px;
}


/* =========================================================
   DASHBOARD / STATS
   ========================================================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-bottom: 36px;
}

.stats > div {
    background: #fff;

    border: 1px solid var(--line);
    border-radius: 12px;

    padding: 20px;
}

.stats strong {
    display: block;

    font-size: 34px;
}

.stats span {
    color: var(--muted);
}


/* =========================================================
   ADMIN
   ========================================================= */

.admin-list {
    display: grid;

    gap: 8px;
}

.admin-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 13px 15px;

    background: #fff;

    border: 1px solid var(--line);
    border-radius: 10px;
}

.status {
    display: inline-block;

    margin-left: 8px;

    padding: 3px 7px;

    background: #e9eeeb;

    border-radius: 999px;

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: .05em;
}

.status.published {
    background: #e2f3e7;
    color: #276038;
}

.dashboard-actions,
.top-gap {
    margin-top: 28px;
}


/* =========================================================
   TABLES
   ========================================================= */

.table-wrap {
    overflow: auto;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: #fff;
}

table {
    width: 100%;

    border-collapse: collapse;

    min-width: 760px;
}

th,
td {
    text-align: left;
    vertical-align: top;

    padding: 11px 12px;

    border-bottom: 1px solid var(--line);
}

th {
    background: #f4f7f5;

    font-size: 12px;

    text-transform: uppercase;
    letter-spacing: .05em;
}

.message-cell {
    max-width: 300px;
}


/* =========================================================
   SERVICES
   ========================================================= */

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   REVIEW / MODERATION
   ========================================================= */

.review-card {
    padding: 22px;

    margin-bottom: 14px;
}

.review-card details {
    margin: 15px 0;
}

.review-actions {
    display: flex;

    gap: 10px;

    align-items: center;

    margin-top: 18px;
}

.review-actions form {
    display: flex;

    gap: 8px;
}

.review-actions input {
    min-width: 260px;
}


/* =========================================================
   FLASH MESSAGES
   ========================================================= */

.flash {
    padding: 11px 0;

    border-bottom: 1px solid;
}

.flash.success {
    background: #e7f5eb;
    color: #245936;
}

.flash.error {
    background: #fde9e6;
    color: #7f2d27;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 42px 0;

    background: #16211c;
    color: #dfe9e4;

    margin-top: 25px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1fr
        auto;

    gap: 40px;
}

.footer-grid a {
    display: block;

    color: #dfe9e4;

    margin-bottom: 7px;
}

footer p {
    color: #9fb1a8;

    max-width: 600px;
}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 900px) {

    .hero-grid,
    .split,
    .profile-layout,
    .contact-grid,
    .editor-grid {
        grid-template-columns: 1fr;
    }

    .hero-search {
        grid-template-columns:
            1fr
            1fr;
    }

    .provider-grid {
        grid-template-columns: 1fr;
    }

    .directory-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

    .profile-top {
        grid-template-columns:
            100px
            1fr;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-top > .button {
        grid-column: 1 / -1;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .nav nav > a:not(.button) {
        display: none;
    }

    .hero {
        padding: 45px 0;
    }

    .hero-search,
    .field-row,
    .taxonomy-grid,
    .check-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .provider-card {
        grid-template-columns:
            90px
            1fr;
    }

    .profile-top {
        grid-template-columns: 1fr;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .page-head h1,
    .profile-intro h1 {
        font-size: 32px;
    }

    .review-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .review-actions form {
        width: 100%;
        flex-direction: column;
    }

    .review-actions input {
        min-width: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   NUANCED THERAPY — SANTA FE V3 / COMPACT, COLOUR-LED
   Functional layouts and existing markup are preserved.
   ========================================================= */
:root {
  --ink: #172f4d;
  --muted: #576673;
  --line: #ccd5d9;
  --paper: #ffffff;
  --panel: #ffffff;
  --brand: #1c426b;
  --brand2: #102e50;
  --soft: #e5ede9;
  --danger: #a33e32;
  --rust: #c04e2b;
  --gold: #dfa52c;
  --lilac: #80609e;
  --sage: #537d6d;
  --shadow: 0 3px 12px rgba(15,41,70,.10);
  --radius: 7px;
}
body { background: var(--paper); color: var(--ink); font-size: 13px; line-height: 1.4; }
h1,h2,h3,h4 { color: var(--brand2); line-height: 1.16; margin-bottom: 9px; letter-spacing:-.016em; }
h1 { font-size:clamp(29px,3vw,38px); max-width: 850px; }
h2 { font-size:22px; }
h3 { font-size:17px; }
p { margin: 0 0 9px; }
a { color:var(--brand); }
a:hover { color:var(--rust); }
.shell { width:min(1240px,calc(100% - 32px)); }

/* A genuinely compact header. */
.site-header { height:56px; background:#fff; border-bottom:3px solid var(--gold); box-shadow:0 2px 9px rgba(13,39,68,.08); }
.site-logo { height:42px; max-width:200px; }
.brand-mark { background:var(--rust); }
.nav nav { gap:18px; }
.nav nav > a { color:var(--brand2); font-size:13px; }
.nav nav > a:not(.button):hover { color:var(--rust); }

/* Smaller controls, no oversized white rectangles. */
.button { min-height:32px; border-radius:5px; padding:7px 11px; font-size:12px; font-weight:700; background:var(--brand); border-color:var(--brand); box-shadow:none; }
.button:hover { background:var(--brand2); border-color:var(--brand2); }
.button-small { min-height:29px; padding:5px 10px; }
.button.secondary,.secondary.button { background:#fff; border-color:var(--brand); color:var(--brand)!important; }
.button.danger,.danger.button { background:var(--danger); border-color:var(--danger); }
label { gap:3px; font-size:12px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea {
  padding:6px 9px; min-height:32px; border:1px solid #aebcc5; border-radius:5px;
  background:#fff; color:var(--ink); font-size:12.5px; line-height:1.25;
}
textarea { min-height:72px; }
input:focus,select:focus,textarea:focus { border-color:var(--brand); box-shadow:0 0 0 2px rgba(28,66,107,.14); }
input[type=checkbox],input[type=radio] { accent-color:var(--rust); }
.field-row { gap:8px; }
.form-card { padding:15px; gap:9px; }

/* First screen: clear deep-blue colour field, shortened considerably. */
.hero {
  padding:27px 0 25px;
  background:linear-gradient(108deg,#142f51 0%,#234d75 66%,#315f78 100%);
  border-bottom:5px solid var(--rust);
}
.hero-grid { grid-template-columns:minmax(0,1.85fr) minmax(286px,.85fr); gap:26px; align-items:center; }
.hero h1 { color:#fff; font-size:clamp(30px,3.05vw,40px); line-height:1.13; max-width:700px; margin:0 0 10px; }
.hero .eyebrow { font-size:10px; letter-spacing:.13em; color:#f5bf55; margin:0 0 7px; font-weight:850; }
.hero .lede { color:#e5edf5; font-size:14px; line-height:1.38; max-width:690px; margin-bottom:7px; }
.hero .fine,.hero .muted { color:#e1eaf1; font-size:11px; line-height:1.35; }
.hero-search { margin:16px 0 9px; gap:6px; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) 80px auto; }
.hero-search input,.hero-search select { min-height:33px; }
.hero-search .button { background:var(--gold); color:#172b42!important; border-color:var(--gold); white-space:nowrap; }
.hero-search .button:hover { background:#f3bc49; border-color:#f3bc49; }
.hero-panel {
  padding:15px 16px 14px; border:1px solid #d4b36c; border-top:5px solid var(--gold);
  background:#f8e7be; box-shadow:0 6px 16px rgba(2,16,38,.18); border-radius:8px;
}
.hero-panel h2,.hero-panel h3 { color:#163b62; font-size:20px; margin-bottom:10px; }
.hero-panel a { color:#173e67; font-size:12px; font-weight:700; }
.hero-points { grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; margin:9px 0 10px; }
.hero-points span { display:flex; align-items:center; padding:7px 8px; border-radius:4px; background:#efe0f1; color:#3c2856; border-left:3px solid var(--lilac); font-size:11px; line-height:1.25; font-weight:650; }
.hero-points span:nth-child(3n + 2) { background:#dbe8db; color:#244936; border-left-color:var(--sage); }
.hero-points span:nth-child(3n) { background:#f5d9b8; color:#71351d; border-left-color:var(--rust); }

/* Make content visible sooner and allow vibrant section colour. */
.section { padding:25px 0; }
.section.tight,.tight { padding:18px 0; }
.contrast { background:#e1eae5; border-top:3px solid var(--sage); }
.split { gap:28px; }
.section-heading { align-items:center; gap:12px; margin-bottom:13px; }
.section .eyebrow { color:var(--rust); font-size:10px; }
.section h2 { color:var(--brand2); }
.provider-grid { gap:10px; }
.provider-list { gap:9px; }
.provider-card { min-height:105px; grid-template-columns:86px minmax(0,1fr); background:#fff; border:1px solid #cbd6db; border-radius:7px; }
.provider-card:hover { border-color:var(--rust); box-shadow:var(--shadow); }
.provider-photo { background:#dce8e1; color:var(--brand); }
.provider-card-body { padding:10px 12px; }
.provider-card h2 { font-size:16px; }
.chips { gap:4px; }
.chips span { padding:3px 7px; font-size:11px; background:#e2e9f3; color:#274763; }
.chips span:nth-child(3n+2) { background:#eee0f2; color:#68427c; }
.chips span:nth-child(3n) { background:#e0ede5; color:#355c48; }
.card-meta,.profile-meta { gap:9px; margin-top:7px; font-size:11px; }
.hero-panel,.form-card,.info-card,.review-card { border-radius:7px; }
.page-head { padding:19px 0 15px; background:#dce8f2; border-bottom:3px solid var(--rust); }
.page-head h1,.profile-intro h1 { font-size:29px; }
.profile-head { padding:23px 0; background:#dce8f2; border-bottom:3px solid var(--rust); }
.profile-top { gap:16px; }
.profile-layout { gap:24px; }
.profile-main section { padding-bottom:17px; margin-bottom:17px; }
.prose { color:#2c4357; }
.profile-side { gap:10px; }
.info-card { padding:14px; }
.directory-layout { gap:18px; }
.filters { top:70px; }
.filters form { gap:8px; }
.contact-grid { gap:26px; }
.editor-grid { gap:18px; }
.taxonomy-grid,.check-grid { gap:6px 10px; }
.location-edit { padding:10px; background:#e2eae4; }
.stats { gap:9px; margin-bottom:20px; }
.stats > div { padding:12px; border-top:3px solid var(--gold); }
.stats strong { font-size:25px; color:var(--brand); }
.admin-row { padding:9px 11px; }
.status { background:#e4ebf3; }
th,td { padding:8px 9px; }
th { background:#dce8f2; color:var(--brand2); }
.review-card { padding:14px; margin-bottom:9px; }
.review-note { background:#fff0ca; border-left-color:var(--gold); }
footer { margin-top:0; padding:25px 0; background:#102d4e; border-top:5px solid var(--gold); color:#f0f3f8; }
footer p { color:#c1d0db; }
footer a,.footer-grid a { color:#f1c667; }
.footer-grid { gap:20px; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
@media(max-width:900px) {
  .hero-grid { grid-template-columns:1fr; gap:17px; }
  .hero { padding:23px 0; }
  .hero-panel { max-width:none; }
  .hero-search { grid-template-columns:1fr 1fr; }
  .directory-layout { grid-template-columns:1fr; }
  .filters { position:static; }
}
@media(max-width:640px) {
  .site-header { height:54px; }
  .site-logo { height:38px; }
  .hero { padding:19px 0; }
  .hero h1 { font-size:28px; }
  .hero-search { grid-template-columns:1fr 1fr; }
  .hero-search input:first-child { grid-column:1/-1; }
  .hero-search .button { width:100%; }
  .hero-panel { padding:12px; }
  .section { padding:20px 0; }
  .provider-card { grid-template-columns:76px minmax(0,1fr); }
  .provider-card-body { padding:9px; }
  .page-head h1,.profile-intro h1 { font-size:25px; }
  .form-card { padding:12px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Home page: use the full hero width for the single content block. */
.hero:has(.hero-search) .hero-grid {
    grid-template-columns: minmax(0, 1fr);
}
.hero:has(.hero-search) h1 {
    max-width: none;
}

/* Let the home-page description use the full hero width. */
.hero:has(.hero-search) .lede {
    max-width: none;
}

/* Tagline alongside the logo, with navigation kept on the right. */
.site-header .nav { gap: 16px; }
.site-header .brand, .site-header nav { flex-shrink: 0; }
.site-tagline {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: var(--brand2);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
@media (max-width: 1000px) {
    .site-tagline { font-size: 12px; white-space: normal; }
}
@media (max-width: 640px) {
    .site-header { height: auto; min-height: 54px; padding: 6px 0; }
    .site-header .nav { flex-wrap: wrap; gap: 6px 10px; }
    .site-header .site-logo { height: 32px; max-width: 120px; }
    .site-header nav { margin-left: auto; gap: 10px; }
    .site-header nav > a { font-size: 12px; }
    .site-tagline { order: 3; flex: 0 0 100%; font-size: 11px; text-align: center; }
}

/* A larger handwritten accent for the header tagline. */
@font-face {
    font-family: "NT Caveat";
    src: url("caveat-handwriting.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}
.site-tagline {
    font-family: "NT Caveat", "Segoe Print", "Bradley Hand", cursive;
    color: var(--rust);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.05;
}
@media (max-width: 1000px) {
    .site-tagline { font-size: 22px; }
}
@media (max-width: 640px) {
    .site-tagline { font-size: 19px; }
}

/* Qwitcher Grypen for the header tagline. */
@font-face {
    font-family: "NT Qwitcher Grypen";
    src: url("qwitcher-grypen-bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
.site-tagline {
    font-family: "NT Qwitcher Grypen", "Segoe Print", "Bradley Hand", cursive;
    color: var(--rust);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.05;
}
@media (max-width: 1000px) {
    .site-tagline { font-size: 28px; }
}
@media (max-width: 640px) {
    .site-tagline { font-size: 24px; }
}

/* Compact footer with clearly clickable navigation buttons. */
footer { padding: 12px 0; }
.footer-grid { align-items: center; gap: 16px; }
footer p { margin: 3px 0 0; font-size: 11px; line-height: 1.35; }
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.footer-actions a, .footer-actions .link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    margin: 0;
    border: 1px solid #d7b15a;
    border-radius: 5px;
    background: transparent;
    color: #f1c667;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
}
.footer-actions a:hover, .footer-actions .link-button:hover {
    background: #f1c667;
    color: #102d4e;
    text-decoration: none;
}
.footer-actions form { margin: 0; }
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* Plan selection and private Premium test preview. */
.plan-options { border: 0; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.plan-options legend { font-weight: 700; margin-bottom: 8px; }
.plan-option { display: grid; gap: 5px; cursor: pointer; }
.plan-option:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(215,177,90,.25); }
.premium-listing-preview { background: #fff9e8; border: 2px solid var(--gold); border-left: 6px solid var(--gold); }
.premium-listing-preview .eyebrow { color: #805819; }
button:disabled { opacity: .55; cursor: not-allowed; }
