:root {
    --green-950: #0e2f22;
    --green-900: #123c2b;
    --green-800: #174a35;
    --green-700: #205f43;
    --green-600: #2f7250;
    --green-200: #cfe0d4;
    --green-100: #e7efe9;
    --cream: #f7f4ec;
    --paper: #fffdf8;
    --ink: #203029;
    --muted: #6c776f;
    --border: #d9dfd9;
    --shadow: 0 10px 28px rgba(21, 54, 39, .09);
    --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); }
button, input { font: inherit; }
.site-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.brand-wrap { background: var(--paper); border-bottom: 1px solid var(--border); }
.brand-row { min-height: 104px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--green-800); color: white; font-weight: 700; letter-spacing: .08em;
}
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.75rem; font-weight: 600; }
.brand-copy small { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }

.main-nav { position: sticky; top: 0; z-index: 1000; background: var(--green-900); box-shadow: 0 5px 14px rgba(0,0,0,.08); }
.nav-inner { min-height: 54px; display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; width: 100%; }
.nav-list > li { position: relative; }
.nav-list > li > a, .menu-button {
    height: 54px; display: flex; align-items: center; padding: 0 16px;
    border: 0; background: transparent; color: #fff; cursor: pointer;
}
.nav-list > li.active > a, .nav-list > li.active > .menu-button,
.nav-list > li:hover > a, .nav-list > li:hover > .menu-button { background: var(--green-700); }
.menu-button { width: 100%; }
.dropdown {
    display: none; position: absolute; z-index: 1200; top: 100%; left: 0; min-width: 240px;
    margin: 0; padding: 8px; list-style: none; background: var(--paper); border: 1px solid var(--border);
    border-radius: 0 0 10px 10px; box-shadow: var(--shadow);
}
.has-menu:hover > .dropdown, .has-menu:focus-within > .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 11px; border-radius: 7px; color: var(--ink); }
.dropdown a:hover { background: var(--green-100); color: var(--green-900); }
.dropdown-heading { padding: 11px 11px 5px; color: var(--green-700); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wide-dropdown { min-width: 270px; max-height: 70vh; overflow-y: auto; }
.nav-toggle { display: none; margin-left: auto; border: 1px solid rgba(255,255,255,.35); color: white; background: transparent; padding: 8px 12px; border-radius: 7px; }

.hero { padding: 64px 0 48px; background: linear-gradient(135deg, #edf3ed 0%, #f7f4ec 65%); border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 790px; }
.eyebrow { margin: 0 0 8px; color: var(--green-700); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1, .page-heading h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 600; color: var(--green-950); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.02; }
.hero p { max-width: 700px; margin: 20px 0 0; font-size: 1.08rem; color: #435149; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 8px; background: var(--green-800); color: white; font-weight: 700; }
.button:hover { background: var(--green-900); color: white; }
.button.secondary { background: transparent; color: var(--green-800); border: 1px solid var(--green-600); }
.button.secondary:hover { background: var(--green-100); }

.section { padding: 48px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; color: var(--green-950); font-size: 2rem; }
.section-heading p { margin: 6px 0 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.horse-card { position: relative; min-height: 240px; padding: 24px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-label { display: inline-block; align-self: flex-start; margin-bottom: 18px; padding: 5px 9px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.horse-card h3 { margin: 0 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; color: var(--green-950); }
.horse-card .meta { margin: 0; color: var(--muted); }
.horse-card .discipline { margin: 16px 0 20px; font-weight: 700; }
.horse-card .card-link { margin-top: auto; align-self: flex-end; font-weight: 700; }
.empty-state { padding: 24px; background: var(--paper); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }

.page-heading { padding: 38px 0 28px; border-bottom: 1px solid var(--border); background: #eef3ed; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 3rem); }
.breadcrumb { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.content-card { padding: 28px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.site-footer { margin-top: 58px; background: var(--green-950); color: #dce7df; }
.footer-grid { display: grid; grid-template-columns: .8fr 1.6fr 1fr; gap: 36px; padding: 42px 0; }
.site-footer h2 { color: white; font-size: 1rem; margin-top: 0; }
.site-footer a { color: #c9e6d1; }
.footer-brand { color: white; font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; }
.footer-search { display: flex; gap: 8px; }
.footer-search input { width: 100%; min-width: 0; padding: 10px 11px; border: 0; border-radius: 7px; }
.footer-search button { border: 0; border-radius: 7px; padding: 10px 13px; background: var(--green-600); color: white; cursor: pointer; }
.footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.11); color: #afc1b5; font-size: .86rem; }

@media (max-width: 900px) {
    .nav-inner { min-height: 54px; position: relative; }
    .nav-toggle { display: block; }
    .nav-list { display: none; position: absolute; top: 54px; left: 0; right: 0; flex-direction: column; background: var(--green-900); padding: 8px 0 14px; box-shadow: var(--shadow); }
    .nav-list.is-open { display: flex; }
    .nav-list > li > a, .menu-button { height: auto; min-height: 44px; width: 100%; justify-content: space-between; }
    .dropdown { position: static; display: none !important; margin: 0 12px 8px; box-shadow: none; border-radius: 8px; }
    .has-menu.mobile-open > .dropdown { display: block !important; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .site-shell { width: min(100% - 24px, 1180px); }
    .brand-row { min-height: 86px; }
    .brand-copy strong { font-size: 1.4rem; }
    .hero { padding: 44px 0 38px; }
    .section { padding: 36px 0; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .card-grid, .footer-grid { grid-template-columns: 1fr; }
    .horse-card { min-height: 210px; }
}

/* Horse category listings */
.horse-list-section { padding-top: 36px; }
.listing-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}
.listing-toolbar h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--green-950);
    font-size: 1.65rem;
}
.listing-toolbar p { margin: 5px 0 0; color: var(--muted); }
.view-switch {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--paper);
    box-shadow: 0 5px 16px rgba(21,54,39,.05);
}
.view-button {
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
}
.view-button:hover { color: var(--green-900); }
.view-button.is-active { background: var(--green-800); color: white; }

.breed-group + .breed-group { margin-top: 42px; }
.breed-heading {
    margin-bottom: 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--green-200);
}
.breed-heading h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--green-950);
    font-size: 1.45rem;
}
.breed-horses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.listing-horse-card {
    min-width: 0;
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 7px 22px rgba(21,54,39,.07);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.listing-name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.listing-name-row h3 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    line-height: 1.25;
}
.listing-name-row h3 a { color: var(--green-950); }
.listing-name-row h3 a:hover { color: var(--green-700); }
.listing-category {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-800);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.listing-info { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.listing-discipline { margin: 12px 0 0; font-weight: 700; color: var(--green-800); }
.listing-pedigree { margin: 0; padding-top: 14px; border-top: 1px solid var(--border); }
.listing-pedigree > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
.listing-pedigree > div + div { margin-top: 6px; }
.listing-pedigree dt { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.listing-pedigree dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.listing-open { margin-top: auto; align-self: flex-end; font-weight: 700; }

/* Compact list view uses the same markup so switching views is instant. */
.horse-listing[data-view="list"] .breed-horses { display: block; }
.horse-listing[data-view="list"] .listing-horse-card {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) minmax(260px, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 16px 18px;
    border-radius: 9px;
    box-shadow: none;
}
.horse-listing[data-view="list"] .listing-horse-card + .listing-horse-card { margin-top: 8px; }
.horse-listing[data-view="list"] .listing-pedigree {
    padding: 0;
    border: 0;
}
.horse-listing[data-view="list"] .listing-open { align-self: center; white-space: nowrap; }

@media (max-width: 900px) {
    .breed-horses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .horse-listing[data-view="list"] .listing-horse-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .horse-listing[data-view="list"] .listing-pedigree { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .listing-toolbar { align-items: flex-start; flex-direction: column; }
    .breed-horses { grid-template-columns: 1fr; }
    .view-switch { width: 100%; }
    .view-button { flex: 1; }
    .horse-listing[data-view="list"] .listing-horse-card { display: block; }
    .horse-listing[data-view="list"] .listing-pedigree { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
    .horse-listing[data-view="list"] .listing-open { display: inline-block; margin-top: 14px; }
}

/* Individual horse page */
.horse-heading-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 700;
}
.button-outline { border: 1px solid var(--green-700); background: var(--paper); color: var(--green-800); }
.button-outline:hover { background: var(--green-100); }
.horse-page-section { padding-top: 30px; }
.notice {
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid var(--green-200);
    border-left: 4px solid var(--green-700);
    border-radius: 9px;
    background: var(--green-100);
}
.notice-sold { background: #f1eee5; border-color: #dcd4c4; border-left-color: #806f50; }
.horse-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 28px;
}
.horse-main { min-width: 0; }
.horse-section {
    margin-bottom: 24px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(21,54,39,.06);
}
.horse-section-heading { margin-bottom: 20px; }
.horse-section-heading .eyebrow { margin-bottom: 3px; }
.horse-section-heading h2 {
    margin: 0;
    color: var(--green-950);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.65rem;
}
.horse-photo-wrap { margin: 0; text-align: center; }
.horse-photo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 650px;
    margin: 0 auto;
    border-radius: 11px;
    object-fit: contain;
}
.horse-photo-wrap figcaption { margin-top: 8px; color: var(--muted); font-size: .8rem; }
.horse-photo-placeholder {
    min-height: 260px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--green-200);
    border-radius: 11px;
    background: #f0f3ed;
    color: var(--muted);
}
.horse-notes { margin-top: 22px; line-height: 1.7; }
.horse-notes-secondary { margin-top: 14px; }
.table-scroll { width: 100%; overflow-x: auto; }
.pedigree-table, .results-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
}
.pedigree-table { min-width: 650px; table-layout: fixed; }
.pedigree-table td {
    width: 33.333%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    vertical-align: middle;
}
.pedigree-table .pedigree-parent { background: var(--green-100); font-weight: 700; }
.pedigree-key { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .8rem; }
.prose-content { line-height: 1.75; }
.empty-inline { margin: 0; color: var(--muted); font-style: italic; }
.available-years { margin: 0 0 18px; padding: 11px 13px; border-radius: 8px; background: var(--green-100); }
.progeny-list { border-top: 1px solid var(--border); }
.progeny-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, .8fr);
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}
.progeny-row span { display: block; margin-top: 2px; color: var(--muted); font-size: .88rem; }
.progeny-parentage { color: var(--muted); text-align: right; }
.result-year + .result-year { margin-top: 38px; }
.result-year > h3 {
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--green-700);
    color: var(--green-950);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.65rem;
}
.result-group + .result-group { margin-top: 24px; }
.result-group h4 { margin: 0 0 9px; color: var(--green-800); font-size: 1rem; }
.results-table { min-width: 610px; }
.results-table th, .results-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.results-table th { background: #eef3ed; color: var(--green-950); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.results-table tbody tr:hover { background: #fafbf7; }
.results-table .result-place { width: 92px; }
.place-badge {
    display: inline-block;
    min-width: 46px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-800);
    text-align: center;
    font-weight: 700;
    font-size: .78rem;
}
.horse-sidebar { position: sticky; top: 76px; z-index: 5; }
.horse-summary-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--green-700);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}
.summary-status {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-800);
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.horse-summary-card > h2 {
    margin: 0 0 20px;
    color: var(--green-950);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.55rem;
}
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
}
.summary-grid > div {
    min-width: 0;
    padding: 11px;
    border-radius: 8px;
    background: #f6f7f3;
}
.summary-grid .summary-wide { grid-column: 1 / -1; }
.summary-grid dt, .summary-block p span {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.summary-grid dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.summary-grid dd small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; }
.summary-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.summary-block h3 { margin: 0 0 12px; color: var(--green-950); font-size: .95rem; }
.summary-block p { margin: 8px 0; overflow-wrap: anywhere; }
.summary-note { padding: 9px 10px; border-radius: 7px; background: #f1eee5; color: #665a44; font-size: .82rem; }

@media (max-width: 980px) {
    .horse-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
}

@media (max-width: 800px) {
    .horse-heading-inner { align-items: flex-start; flex-direction: column; }
    .horse-layout { display: flex; flex-direction: column; }
    .horse-main { order: 2; width: 100%; }
    .horse-sidebar { order: 1; position: static; width: 100%; }
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .horse-section { padding: 18px; }
    .horse-summary-card { padding: 18px; }
    .progeny-row { display: block; }
    .progeny-parentage { margin-top: 5px; text-align: left; }
}

/* Shared public content pages */
.content-card h2,
.content-card h3 { font-family: Georgia, 'Times New Roman', serif; color: var(--green-950); }
.content-card h2 { margin-top: 0; font-size: 1.75rem; }
.table-card { padding: 0; overflow: hidden; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th,
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table th { background: #eef3ed; color: var(--green-950); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbf7; }
.horse-name-link { font-weight: 700; }
.contract-stack { display: grid; gap: 22px; }
.contract-card p { max-width: 920px; }
.rule-list { margin: 22px 0 0; padding-left: 22px; }
.rule-list li + li { margin-top: 12px; }
.search-panel { margin-bottom: 26px; }
.page-search label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--green-950); }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.search-row .button { border: 0; cursor: pointer; }
.search-results-state { margin-top: 22px; }
.search-heading { margin-top: 34px; }
.show-discipline + .show-discipline { margin-top: 18px; }
.show-discipline-heading { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--green-200); }
.show-discipline-heading h3 { margin: 0; font-size: 1.35rem; }
.show-string-list { margin: 0; padding-left: 24px; }
.show-string-list li { padding: 7px 0; }
.show-string-list li span { color: var(--muted); margin-left: 8px; }
.national-year + .national-year { margin-top: 46px; }
.national-year > h2 { margin: 0 0 16px; padding-bottom: 9px; border-bottom: 2px solid var(--green-200); font-family: Georgia, 'Times New Roman', serif; color: var(--green-950); font-size: 2rem; }
.national-event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.national-event h3 { margin: 0 0 14px; font-size: 1.15rem; }
.national-event ul { margin: 0; padding-left: 20px; }
.national-event li { margin: 0 0 7px; }
.breeding-table { min-width: 980px; }

@media (max-width: 760px) {
    .national-event-grid { grid-template-columns: 1fr; }
    .search-row { flex-direction: column; }
    .search-row .button { align-self: flex-start; }
    .show-string-list li span { display: block; margin-left: 0; }
}

/* Public account controls */
.nav-list { width: auto; flex: 1 1 auto; }
.nav-account {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-left: 14px;
    flex: 0 0 auto;
}
.nav-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 7px;
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
    white-space: nowrap;
}
.nav-account-button:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.nav-admin-button {
    background: var(--green-700);
    border-color: var(--green-600);
}

/* Public login */
.public-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(47,114,80,.12), transparent 34%),
        linear-gradient(135deg, #edf3ed 0%, var(--cream) 68%);
}
.public-login-wrap { width: min(100%, 470px); }
.public-login-card {
    padding: 34px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(21,54,39,.14);
}
.public-login-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.public-login-brand .eyebrow { margin-bottom: 2px; }
.public-login-brand h1 {
    margin: 0;
    color: var(--green-950);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 600;
}
.public-login-copy { margin: 0 0 24px; color: var(--muted); }
.public-login-error {
    margin-bottom: 20px;
    padding: 11px 13px;
    border: 1px solid #d8aaa2;
    border-radius: 8px;
    background: #fff0ed;
    color: #7d2d20;
}
.public-login-form { display: grid; gap: 8px; }
.public-login-form label {
    margin-top: 7px;
    color: var(--green-950);
    font-weight: 700;
    font-size: .9rem;
}
.public-login-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}
.public-login-form input:focus {
    outline: 2px solid rgba(47,114,80,.22);
    border-color: var(--green-600);
}
.public-login-submit {
    width: 100%;
    border: 0;
    margin-top: 16px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-toggle { margin-left: 0; }
    .nav-account { padding-left: 8px; }
    .nav-account-button { min-height: 32px; padding: 0 10px; font-size: .82rem; }
}

@media (max-width: 620px) {
    .public-login-body { padding: 16px; }
    .public-login-card { padding: 26px 22px; }
    .public-login-brand h1 { font-size: 1.65rem; }
    .nav-account { gap: 5px; }
    .nav-account-button { padding: 0 8px; }
}
