:root {
    --forest-950: #0f3421;
    --forest-900: #15472d;
    --forest-800: #1e5a38;
    --leaf-700: #2f7247;
    --leaf-600: #43875a;
    --leaf-100: #e8f3e6;
    --leaf-50: #f5f9f3;
    --cream: #fbfaf4;
    --sun: #ffd45a;
    --sun-soft: #fff4c7;
    --sky: #dff1f4;
    --ink: #17231b;
    --muted: #5d6a61;
    --line: #d7e2d7;
    --white: #ffffff;
    --danger: #9d2e2e;
    --danger-soft: #fff0f0;
    --shadow-sm: 0 6px 20px rgba(18, 54, 32, 0.07);
    --shadow-md: 0 16px 42px rgba(18, 54, 32, 0.11);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 5% 0%, rgba(255, 212, 90, 0.11), transparent 28rem),
        var(--cream);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--forest-800); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

h1, h2, h3 {
    margin-top: 0;
    color: var(--forest-950);
    line-height: 1.08;
    letter-spacing: -0.035em;
}
h1 { font-size: clamp(2.25rem, 7vw, 4.9rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); }
h3 { font-size: 1.12rem; }
p { margin-top: 0; }

[hidden] { display: none !important; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.honeypot {
    position: absolute !important;
    left: -10000px !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(215, 226, 215, 0.9);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}
.header-inner {
    width: min(1120px, calc(100% - 28px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--forest-950);
    text-decoration: none;
}
.brand img {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 50%;
}
.brand span { min-width: 0; }
.brand strong {
    display: block;
    overflow: hidden;
    font-size: 0.96rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.73rem;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav a {
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
    background: var(--leaf-100);
    color: var(--forest-950);
}
.nav-toggle {
    display: none;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--white);
    color: var(--forest-950);
    font-weight: 850;
}

.page-shell {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 0 54px;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--leaf-700);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.eyebrow-light { color: var(--sun); }

.button,
.primary-button,
.secondary-button,
.small-button,
.table-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.button:hover,
.primary-button:hover,
.secondary-button:hover,
.small-button:hover { transform: translateY(-1px); }
.button-primary,
.primary-button {
    background: var(--leaf-700);
    color: var(--white);
}
.button-primary:hover,
.primary-button:hover { background: var(--forest-900); }
.button-sun {
    background: var(--sun);
    color: #273116;
}
.button-sun:hover { background: #ffe487; }
.button-ghost {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}
.button-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.secondary-button {
    border-color: var(--line);
    background: var(--white);
    color: var(--forest-950);
}
.small-button,
.table-button {
    min-height: 40px;
    padding: 8px 12px;
    background: var(--leaf-100);
    color: var(--forest-950);
    font-size: 0.87rem;
}
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alert,
.notice {
    display: grid;
    gap: 3px;
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 14px;
}
.alert-error,
.notice.error {
    border: 1px solid #dfadad;
    background: var(--danger-soft);
    color: #7f2323;
}
.notice.success {
    border: 1px solid #afd2b5;
    background: #e7f5e9;
    color: #16562b;
}

/* Record page */
.record-page {
    max-width: 980px;
    margin: 0 auto;
}
.record-hero {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
    min-height: 390px;
    border-radius: var(--radius-lg);
    background: var(--forest-950);
    box-shadow: var(--shadow-md);
}
.record-hero__photo {
    min-height: 390px;
    background-image:
        linear-gradient(90deg, transparent 75%, rgba(15, 52, 33, 0.22)),
        url("photos/hero-collage.webp");
    background-position: center;
    background-size: cover;
}
.record-hero__copy {
    align-self: center;
    padding: clamp(28px, 5vw, 52px);
    color: var(--white);
}
.record-hero h1 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}
.record-hero__copy > p:not(.eyebrow) {
    max-width: 45ch;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.04rem;
}
.record-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.record-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0 20px;
}
.record-steps span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--forest-950);
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}
.record-steps b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--leaf-100);
    color: var(--forest-900);
}
.record-form {
    display: grid;
    gap: 16px;
}
.form-section {
    padding: clamp(18px, 4vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 90px;
}
.section-heading-simple {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}
.step-badge {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--forest-950);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 900;
}
.section-heading-simple p,
.section-heading-simple h2 { margin: 0; }
.section-heading-simple h2 { margin-top: 1px; }
.section-intro {
    max-width: 66ch;
    margin: 13px 0 18px;
    color: var(--muted);
}
.species-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.species-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.species-option {
    min-width: 0;
    cursor: pointer;
}
.species-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.species-option__card {
    overflow: hidden;
    display: block;
    height: 100%;
    border: 2px solid #d8e3d8;
    border-radius: 17px;
    background: var(--white);
    box-shadow: 0 5px 16px rgba(19, 56, 34, 0.05);
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.species-option:hover .species-option__card,
.species-option > input:focus-visible + .species-option__card {
    border-color: #8db596;
    transform: translateY(-2px);
    box-shadow: 0 9px 23px rgba(19, 56, 34, 0.11);
}
.species-option > input:focus-visible + .species-option__card {
    outline: 4px solid rgba(47, 114, 71, 0.18);
    outline-offset: 2px;
}
.species-option > input:checked + .species-option__card {
    border-color: var(--leaf-700);
    background: var(--leaf-50);
    box-shadow: 0 0 0 3px rgba(47, 114, 71, 0.12), 0 10px 24px rgba(19, 56, 34, 0.12);
}
.species-option__photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--leaf-100);
}
.species-option__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.species-option__group {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 52, 33, 0.88);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.species-option__tick {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--sun);
    color: var(--forest-950);
    font-size: 1.04rem;
    font-weight: 950;
    box-shadow: 0 4px 12px rgba(15, 52, 33, 0.25);
}
.species-option > input:checked + .species-option__card .species-option__tick { display: grid; }
.species-option__body {
    display: grid;
    grid-template-rows: auto auto 1fr;
    min-height: 118px;
    padding: 12px 12px 11px;
}
.species-option__body strong {
    display: block;
    color: var(--forest-950);
    font-size: 0.98rem;
    line-height: 1.18;
}
.species-option__body small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.32;
}
.species-option__state {
    align-self: end;
    display: block;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #e5ece4;
    color: var(--leaf-700);
    font-size: 0.78rem;
    font-weight: 900;
}
.state-selected { display: none; }
.species-option > input:checked + .species-option__card .state-default { display: none; }
.species-option > input:checked + .species-option__card .state-selected { display: inline; }
.other-answer {
    margin-top: 16px;
    padding: 16px;
    border: 2px solid #b8d4bd;
    border-radius: 16px;
    background: var(--leaf-50);
}
.other-answer label {
    display: block;
    color: var(--forest-950);
    font-weight: 900;
}
.other-answer input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
    width: 100%;
    min-height: 50px;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid #b8c8ba;
    border-radius: 11px;
    background: var(--white);
    color: var(--ink);
}
textarea { resize: vertical; }
input:focus,
select:focus,
textarea:focus {
    outline: 4px solid rgba(47, 114, 71, 0.14);
    border-color: var(--leaf-700);
}
.other-answer small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
}
.selection-summary {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    margin-top: 16px;
    padding: 12px 13px;
    border-radius: 15px;
    background: var(--leaf-100);
    color: var(--forest-950);
}
.selection-summary__tick {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--leaf-700);
    color: var(--white);
    font-weight: 900;
}
.selection-summary small,
.selection-summary strong { display: block; }
.selection-summary small { color: var(--muted); font-size: 0.72rem; }
.selection-summary a {
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--white);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}
.field-error {
    margin: 12px 0 0;
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 800;
}
.photo-picker {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    min-height: 84px;
    padding: 14px;
    border: 2px dashed #8eb197;
    border-radius: 17px;
    background: var(--leaf-50);
    cursor: pointer;
}
.photo-picker:hover { border-color: var(--leaf-700); }
.photo-picker__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--sky);
    font-size: 1.6rem;
}
.photo-picker strong,
.photo-picker small { display: block; }
.photo-picker small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.8rem;
}
.photo-picker__action {
    padding: 8px 11px;
    border-radius: 10px;
    background: var(--white);
    color: var(--forest-950);
    font-size: 0.82rem;
    font-weight: 900;
}
.photo-previews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.photo-preview {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--white);
}
.photo-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.photo-preview figcaption {
    overflow: hidden;
    padding: 7px 8px;
    color: var(--muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.photo-consent {
    display: grid;
    gap: 9px;
    margin-top: 13px;
    padding: 2px;
    border-radius: 14px;
}
.photo-consent.has-error { outline: 3px solid rgba(157, 46, 46, 0.22); }
.check-card {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fbfdfb;
    cursor: pointer;
}
.check-card.has-error {
    border-color: #cc7777;
    background: var(--danger-soft);
}
.check-card input {
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    accent-color: var(--leaf-700);
}
.check-card span { font-size: 0.92rem; }
.check-card-public {
    margin-top: 16px;
    border-width: 2px;
}
.privacy-note {
    margin: 12px 2px;
    color: var(--muted);
    font-size: 0.84rem;
}
.send-button {
    width: 100%;
    min-height: 58px;
    padding: 13px 18px;
    border: 0;
    border-radius: 14px;
    background: var(--leaf-700);
    color: var(--white);
    font-weight: 900;
}
.send-button:hover { background: var(--forest-900); }
.sheet-panel {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 17px;
    align-items: center;
    margin-top: 18px;
    padding: clamp(18px, 4vw, 26px);
    border: 1px solid #bfd5c2;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f6faef, #edf6ee);
    box-shadow: var(--shadow-sm);
}
.sheet-panel__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--sun);
    color: var(--forest-950);
    font-size: 1.6rem;
    font-weight: 900;
}
.sheet-panel h2,
.sheet-panel p { margin-bottom: 0; }
.sheet-panel p:not(.eyebrow) { margin-top: 7px; color: var(--muted); }

/* Sightings dashboard */
.dashboard-page {
    display: grid;
    gap: 16px;
}
.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 18%, rgba(255, 212, 90, 0.22), transparent 18rem),
        var(--white);
    box-shadow: var(--shadow-sm);
}
.dashboard-hero h1 { margin-bottom: 10px; }
.dashboard-hero p:not(.eyebrow) {
    max-width: 62ch;
    margin-bottom: 0;
    color: var(--muted);
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.summary-grid article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.summary-grid strong {
    display: block;
    color: var(--forest-900);
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    line-height: 1;
}
.summary-grid span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}
.dashboard-panels {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
}
.dashboard-panel,
.species-results {
    padding: clamp(18px, 3vw, 25px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.dashboard-panel__heading,
.species-results__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}
.dashboard-panel__heading h2,
.dashboard-panel__heading p,
.species-results__heading h2,
.species-results__heading p { margin-bottom: 0; }
.dashboard-panel__heading > span {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--leaf-100);
    color: var(--forest-900);
    font-size: 0.78rem;
    font-weight: 850;
}
.ranking-list,
.group-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ranking-list li {
    display: grid;
    grid-template-columns: 28px 58px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    background: var(--leaf-50);
}
.ranking-number {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sun-soft);
    color: #5a4912;
    font-size: 0.8rem;
    font-weight: 900;
}
.ranking-list img,
.ranking-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}
.ranking-placeholder {
    display: grid;
    place-items: center;
    background: var(--sky);
    font-size: 1.55rem;
}
.ranking-copy { min-width: 0; }
.ranking-copy > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.ranking-copy strong,
.ranking-copy span { min-width: 0; }
.ranking-copy strong {
    overflow: hidden;
    color: var(--forest-950);
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ranking-copy span {
    color: var(--muted);
    font-size: 0.72rem;
}
.ranking-bar,
.group-list__bar {
    overflow: hidden;
    height: 7px;
    margin-top: 7px;
    border-radius: 999px;
    background: #e2ebe2;
}
.ranking-bar span,
.group-list__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--leaf-700), #74a765);
}
.ranking-total {
    color: var(--forest-900);
    font-size: 1.05rem;
}
.group-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #edf1ec;
}
.group-list li:last-child { border-bottom: 0; }
.group-list__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--leaf-100);
    font-size: 1.25rem;
}
.group-list__label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.9rem;
}
.group-list__label span { color: var(--muted); font-weight: 800; }
.species-results__heading > div > p:not(.eyebrow) {
    margin-top: 6px;
    color: var(--muted);
}
.species-count-pill {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 999px;
    background: var(--sun-soft);
    color: #5c4b15;
    font-size: 0.82rem;
    font-weight: 900;
}
.species-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.result-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    min-height: 126px;
    border: 1px solid #dfe8df;
    border-radius: 16px;
    background: var(--leaf-50);
}
.result-card > img,
.result-card__placeholder {
    width: 98px;
    height: 100%;
    min-height: 126px;
    object-fit: cover;
}
.result-card__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--leaf-100), var(--sky));
}
.result-card__placeholder span { font-size: 2.1rem; }
.result-card__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
}
.result-card__group {
    color: var(--leaf-700);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.result-card h3 {
    margin: 3px 0 8px;
    font-size: 1rem;
    line-height: 1.18;
}
.result-card__meta {
    display: grid;
    gap: 2px;
    margin-top: auto;
    color: var(--muted);
    font-size: 0.72rem;
}
.result-card__meta strong { color: var(--forest-900); }
.empty-state {
    padding: 52px 24px;
    border: 1px dashed #a9c0ad;
    border-radius: var(--radius-lg);
    background: var(--white);
    text-align: center;
}
.empty-state > span { font-size: 3rem; }
.empty-state p { color: var(--muted); }
.dashboard-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(24px, 5vw, 38px);
    border-radius: var(--radius-lg);
    background: var(--forest-950);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.dashboard-callout h2 { margin-bottom: 8px; color: var(--white); }
.dashboard-callout p:not(.eyebrow) { max-width: 58ch; margin-bottom: 0; color: rgba(255,255,255,0.84); }
.dashboard-callout__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}
.data-disclaimer,
.form-note,
.small-print,
.legal-updated {
    color: var(--muted);
    font-size: 0.84rem;
}

/* Shared content, forms and administration */
.content-card,
.story-card,
.success-panel,
.legal-hero,
.dashboard-intro,
.form-card,
.dashboard-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.content-card,
.success-panel,
.form-card,
.dashboard-card { padding: clamp(20px, 4vw, 34px); }
.legal-hero,
.dashboard-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: clamp(24px, 5vw, 44px);
}
.legal-hero h1,
.dashboard-intro h1 { margin-bottom: 9px; }
.legal-hero p,
.dashboard-intro p { margin-bottom: 0; color: var(--muted); }
.legal-hero.compact { display: block; }
.sighting-form,
.concern-form,
.admin-login { display: grid; gap: 16px; }
.concern-form,
.admin-login { max-width: 760px; margin: 0 auto; }
.narrow { max-width: 520px; }
label { font-weight: 750; }
.help { color: var(--muted); }
.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--white);
}
.consent-row input { width: 21px; height: 21px; accent-color: var(--leaf-700); }
.table-scroll { overflow-x: auto; }
.data-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.data-table th { background: var(--leaf-50); color: var(--forest-950); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}
.gallery-grid figure {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--leaf-50);
}
.gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figcaption { padding: 12px; }

.site-footer {
    padding: 30px 16px;
    border-top: 1px solid var(--line);
    background: var(--white);
    color: var(--muted);
}
.footer-inner {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 26px;
}
.footer-inner strong { color: var(--forest-950); }
.footer-inner p { max-width: 55ch; margin: 5px 0 0; font-size: 0.84rem; }
.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 8px 14px;
}
.footer-inner nav a { font-size: 0.84rem; }

@media (max-width: 940px) {
    .species-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-panels { grid-template-columns: 1fr; }
    .species-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body { font-size: 15.5px; }
    .header-inner { min-height: 64px; }
    .brand img { width: 42px; height: 42px; }
    .brand small { display: none; }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 63px;
        left: 14px;
        right: 14px;
        padding: 9px;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 15px;
        background: var(--white);
        box-shadow: var(--shadow-md);
    }
    .main-nav.open { display: flex; }
    .main-nav a { border-radius: 10px; }
    .page-shell {
        width: min(100% - 18px, 1120px);
        padding-top: 10px;
    }
    .record-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 21px;
    }
    .record-hero__photo {
        min-height: 195px;
        background-image:
            linear-gradient(180deg, transparent 72%, rgba(15, 52, 33, 0.12)),
            url("photos/hero-collage.webp");
        background-position: center 42%;
    }
    .record-hero__copy { padding: 23px 19px 25px; }
    .record-hero h1 { font-size: clamp(2.5rem, 12vw, 3.7rem); }
    .record-hero__actions { display: grid; }
    .record-steps { gap: 5px; }
    .record-steps span { gap: 5px; padding: 7px 4px; font-size: 0.75rem; }
    .record-steps b { width: 21px; height: 21px; }
    .form-section { padding: 18px 14px; border-radius: 19px; }
    .section-heading-simple { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
    .step-badge { width: 40px; height: 40px; border-radius: 12px; }
    .species-picker { gap: 8px; }
    .species-option__body { min-height: 108px; padding: 10px 9px 9px; }
    .species-option__body strong { font-size: 0.9rem; }
    .species-option__body small { font-size: 0.71rem; }
    .species-option__state { font-size: 0.73rem; }
    .species-option__group { left: 6px; bottom: 6px; max-width: calc(100% - 12px); font-size: 0.62rem; }
    .species-option__tick { top: 6px; right: 6px; width: 30px; height: 30px; }
    .selection-summary { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 10px; }
    .selection-summary__tick { width: 34px; height: 34px; }
    .photo-picker { grid-template-columns: 46px minmax(0, 1fr); }
    .photo-picker__icon { width: 44px; height: 44px; }
    .photo-picker__action { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
    .photo-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sheet-panel { grid-template-columns: 48px minmax(0, 1fr); padding: 17px; border-radius: 20px; }
    .sheet-panel__icon { width: 46px; height: 46px; border-radius: 14px; }
    .sheet-panel .button { grid-column: 1 / -1; width: 100%; }
    .dashboard-hero,
    .dashboard-callout,
    .dashboard-panel__heading,
    .species-results__heading,
    .legal-hero,
    .dashboard-intro {
        display: grid;
        align-items: stretch;
    }
    .dashboard-hero .button { width: 100%; }
    .dashboard-callout__actions { display: grid; justify-content: stretch; }
    .species-count-pill { justify-self: start; }
    .footer-inner { flex-direction: column; }
    .footer-inner nav { justify-content: flex-start; }
}

@media (max-width: 520px) {
    .brand strong { font-size: 0.84rem; }
    .species-results-grid { grid-template-columns: 1fr; }
    .result-card { grid-template-columns: 92px minmax(0, 1fr); }
    .result-card > img,
    .result-card__placeholder { width: 92px; }
    .ranking-list li { grid-template-columns: 25px 50px minmax(0, 1fr) auto; gap: 8px; }
    .ranking-list img,
    .ranking-placeholder { width: 50px; height: 50px; }
    .ranking-copy > div:first-child { display: block; }
    .ranking-copy span { display: block; }
}

@media (max-width: 350px) {
    .species-picker { grid-template-columns: 1fr; }
    .record-steps span { font-size: 0.68rem; }
    .summary-grid { grid-template-columns: 1fr; }
}

/* The custom entry is deliberately wider so it is easy to find. */
.species-option-other { grid-column: 1 / -1; }
.species-option-other .species-option__card {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
}
.species-option-other .species-option__photo { aspect-ratio: auto; min-height: 150px; }
.species-option-other .species-option__body { min-height: 150px; }

@media (max-width: 520px) {
    .species-option-other .species-option__card { grid-template-columns: 118px minmax(0, 1fr); }
    .species-option-other .species-option__photo,
    .species-option-other .species-option__body { min-height: 126px; }
}

@media (max-width: 350px) {
    .species-option-other .species-option__card { grid-template-columns: 1fr; }
    .species-option-other .species-option__photo { aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
    .dashboard-panel__heading > span { justify-self: start; }
}
