:root {
    --bg: #f4f4f1;
    --surface: #fff;
    --ink: #151713;
    --muted: #70746c;
    --line: #dedfd9;
    --accent: #e5b928;
    --deep: #20231d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 132px;
    padding: 24px;
    background: var(--deep);
    border-bottom: 4px solid var(--accent);
}

.logo {
    display: block;
    width: auto;
    max-width: min(320px, 72vw);
    max-height: 175px;
    object-fit: contain;
}

.site-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    min-height: 52px;
    padding: 0 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.site-navigation a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-navigation a:hover,
.site-navigation a.is-active {
    color: var(--ink);
}

.site-navigation a.is-active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--accent);
    content: "";
}

.container {
    width: min(1460px, calc(100% - 48px));
    margin: 0 auto;
    padding: 54px 0 80px;
}

.intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #827026;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2rem, 3.2vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.counter {
    flex: none;
    margin: 0 0 5px;
    color: var(--muted);
}

.counter strong {
    color: var(--ink);
}

.intro-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.report-action {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.report-action p {
    max-width: 250px;
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.35;
    text-align: right;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    color: #242112;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 9px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    filter: brightness(0.96);
}
.button-secondary {
    color: var(--ink);
    background: transparent;
    border-color: var(--line);
}
.alert {
    margin-bottom: 26px;
    padding: 15px 18px;
    border: 1px solid;
    border-radius: 10px;
}
.alert-success {
    color: #28562f;
    background: #edf8ee;
    border-color: #b9dcbc;
}
.alert-error {
    color: #762f2f;
    background: #fff1f1;
    border-color: #e7baba;
}
.alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.form-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}
.form-heading p:not(.eyebrow) {
    max-width: 600px;
    margin: 14px 0 0;
    color: var(--muted);
}
.text-link {
    flex: none;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 750;
}
.mosquito-form {
    max-width: 900px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(29, 31, 25, 0.055);
}

.visitor-lock-message {
    margin-bottom: 26px;
    padding: 16px 18px;
    color: #4f4319;
    background: #fff8dc;
    border: 1px solid #e3c75d;
    border-radius: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.55;
}

.form-access-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-access-fields:disabled {
    opacity: 0.58;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.field {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}
.field-wide {
    grid-column: 1 / -1;
}
.field > span,
.field > label {
    font-size: 0.78rem;
    font-weight: 800;
}
.field b {
    color: #9a6e00;
}
.field small {
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.4;
}

.field .optional-note {
    justify-self: start;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.field input,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    color: var(--ink);
    background: #fafaf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 0.86rem;
    outline: none;
}
.field input:focus,
.field select:focus {
    border-color: #a98b29;
    box-shadow: 0 0 0 3px rgba(229, 185, 40, 0.18);
}

.field input[type="file"] {
    padding: 6px;
}

.field input[type="file"]::file-selector-button {
    height: 32px;
    margin-right: 12px;
    padding: 0 14px;
    color: var(--ink);
    background: #e5b928;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.name-generator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.name-generator .button {
    min-height: 46px;
    white-space: nowrap;
}

.field select {
    appearance: none;
    padding-right: 42px;
    background-color: #fafaf7;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-repeat: no-repeat;
    background-size: 5px 5px;
    cursor: pointer;
}

.species-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr);
    align-items: center;
    gap: 12px;
}

.execution-method-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.latin-name {
    min-width: 0;
    padding: 0 4px;
    overflow: hidden;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    font-style: italic;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.method-message {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0 2px;
    color: var(--muted);
    font-size: 0.72rem;
    font-style: italic;
    line-height: 1.4;
}

.annoyance-slider {
    display: grid;
    gap: 8px;
    padding-top: 5px;
}

.annoyance-slider-control {
    --slider-position: 44.44%;
    --annoyance-color: #9ca3af;
    --annoyance-text-color: #242112;
    position: relative;
    height: 34px;
}

.field input[type="range"] {
    position: absolute;
    z-index: 1;
    inset: 0;
    appearance: none;
    min-height: 34px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    cursor: pointer;
}

.field input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: linear-gradient(to right, var(--annoyance-color) var(--slider-position), #dedfd9 var(--slider-position));
    border-radius: 999px;
}

.field input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 30px;
    height: 30px;
    margin-top: -12px;
    background: var(--annoyance-color);
    border: 3px solid var(--deep);
    border-radius: 50%;
}

.field input[type="range"]::-moz-range-track {
    height: 6px;
    background: linear-gradient(to right, var(--annoyance-color) var(--slider-position), #dedfd9 var(--slider-position));
    border: 0;
    border-radius: 999px;
}

.field input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--annoyance-color);
    border: 3px solid var(--deep);
    border-radius: 50%;
}

.field input[type="range"]:focus {
    box-shadow: none;
}

.annoyance-thumb-value {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding-top: 1px;
    color: var(--annoyance-text-color);
    font-size: 0.7rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.field input[type="range"]:focus-visible + .annoyance-thumb-value {
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(229, 185, 40, 0.25);
}

.annoyance-feedback {
    display: grid;
    justify-items: center;
    min-height: 18px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
}

.bounty-preview {
    display: grid;
    place-items: center;
    min-height: 60px;
    padding: 5Px 14px;
    border-radius: 8px;
    text-align: center;
}

.field > .bounty-title {
    text-align: center;
}

.bounty-amount {
    color: var(--ink);
    font-size: 1.3rem;
    letter-spacing: -0.025em;
}

.bounty-label {
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.75rem;
    font-style: italic;
    line-height: 1.3;
}

.bounty-label.is-most-wanted {
    color: #a51f25;
    font-family: Copperplate, "Rockwell Extra Bold", "Arial Black", serif;
    font-size: 0.88rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-shadow: 0 1px 0 #e0b573;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.mosquito-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.card {
    overflow: hidden;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(29, 31, 25, 0.055);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(29, 31, 25, 0.11);
}

.card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.evidence {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    background: radial-gradient(circle at 42% 38%, #4d5345 0, #2b2f27 46%, #191b17 100%);
}

.evidence::before {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.evidence img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mosquito-icon {
    position: relative;
    font-size: clamp(3.4rem, 5vw, 5.5rem);
    filter: grayscale(1) drop-shadow(0 7px 8px rgba(0, 0, 0, 0.4));
    transform: rotate(-12deg);
}

.status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    color: #242112;
    background: var(--accent);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.case-reference {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    color: var(--accent);
    background: rgba(25, 27, 23, 0.88);
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status,
.case-reference {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
}

.card-content {
    padding: 17px;
}

.species {
    margin: 0 0 5px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.71rem;
    font-style: italic;
    white-space: nowrap;
    text-overflow: ellipsis;
}

h2 {
    min-height: 2.5em;
    margin: 0 0 16px;
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

dl {
    display: grid;
    gap: 7px;
    margin: 0;
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid #eeefe9;
    font-size: 0.73rem;
}

dt {
    color: var(--muted);
}

dd {
    margin: 0;
    overflow: hidden;
    font-weight: 650;
    text-align: right;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 0.7rem;
}

.card-like-count {
    margin-top: 10px;
    color: var(--ink);
    font-weight: 750;
    font-size: 0.7rem;
    text-align: center;
}

.card-footer strong {
    color: var(--ink);
    font-size: 0.83rem;
}

.empty-state {
    padding: 54px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.pagination-link {
    justify-self: start;
    padding: 9px 13px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.pagination-link:last-child {
    justify-self: end;
}

.pagination-link:not(.is-disabled):hover {
    border-color: #c6a426;
}

.pagination-link.is-disabled {
    color: #a6a79f;
    cursor: not-allowed;
}

.pagination-status {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.case-page {
    display: grid;
    gap: 24px;
}

.case-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.case-file {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(29, 31, 25, 0.08);
}

.case-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding: 28px 32px;
    color: #f5f2e8;
    background: var(--deep);
}

.case-header h1 {
    margin: 5px 0 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.case-id {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-status {
    justify-self: end;
    flex: none;
    padding: 8px 12px;
    color: #242112;
    background: var(--accent);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.case-body {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
    padding: 32px;
}

.case-photo {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    background: radial-gradient(circle at 42% 38%, #4d5345 0, #2b2f27 46%, #191b17 100%);
    border-radius: 12px;
}

.case-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-photo .mosquito-icon {
    font-size: clamp(5rem, 12vw, 9rem);
}

.case-details {
    display: grid;
    align-content: start;
    gap: 24px;
}

.case-bounty {
    min-width: 210px;
    padding: 10px 22px;
    border: 2px solid #d3aa25;
    border-radius: 12px;
    text-align: center;
}

.case-bounty span,
.case-bounty strong {
    display: block;
}

.case-bounty span {
    color: #d8d7cf;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.case-bounty strong {
    margin: 2px 0;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    letter-spacing: -0.045em;
}

.case-bounty em {
    color: #d8d7cf;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
}

.case-bounty.is-most-wanted em {
    color: #a51f25;
    font-family: Copperplate, "Rockwell Extra Bold", "Arial Black", serif;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.case-facts {
    gap: 0;
}

.case-facts div {
    padding: 11px 0;
    font-size: 0.82rem;
}

.case-facts dd {
    max-width: 65%;
    white-space: normal;
}

.case-note {
    margin: -12px 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-style: italic;
    line-height: 1.5;
    text-align: right;
}

.case-actions {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.fate-approval {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.fate-button {
    padding: 12px 22px;
    color: #f7f4e9;
    background: var(--deep);
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 850;
    cursor: pointer;
}

.fate-button:hover:not(:disabled) {
    background: #30362d;
}

.fate-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fate-score {
    color: var(--muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

.fate-score strong {
    color: var(--ink);
    font-size: 0.88rem;
}

.fate-notification {
    min-height: 28px;
    margin: 0;
    padding: 6px 11px;
    color: #f7f4e9;
    background: rgba(25, 27, 23, 0.92);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 750;
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 0.16s ease,
        transform 0.16s ease;
    pointer-events: none;
}

.fate-notification.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.activity-trigger {
    justify-self: center;
    padding: 12px 22px;
    color: #242112;
    background: var(--accent);
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 850;
    cursor: pointer;
}

.activity-trigger:hover {
    background: #edc63f;
}

.activity-trigger:focus-visible {
    outline: 3px solid rgba(229, 185, 40, 0.35);
    outline-offset: 3px;
}

.activity-dialog {
    width: min(920px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
}

.activity-dialog::backdrop {
    background: rgba(0, 0, 0, 0.82);
}

.activity-dialog-content {
    display: grid;
    justify-items: center;
    gap: 16px;
    color: #ffffff;
    text-align: center;
}

.activity-dialog-content h2 {
    min-height: 0;
    margin: 0;
    font-size: 1rem;
}

.activity-dialog-content img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.activity-dialog-close {
    min-width: 110px;
    border-radius: 999px;
}

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px 24px;
    color: #aeb1aa;
    background: var(--deep);
    text-align: center;
    font-size: 0.75rem;
}

.site-footer-copyright,
.site-footer-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.site-footer p {
    margin: 0;
}
.site-footer a {
    color: var(--accent);
    font-weight: 750;
    text-underline-offset: 3px;
}

.acknowledgements-page .container {
    width: min(920px, calc(100% - 48px));
}
.thank-you-letter {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(29, 31, 25, 0.1);
}
.letter-heading {
    position: relative;
    padding: 44px 64px 32px;
    color: #f8f8f3;
    background: var(--deep);
}
.letter-heading::after {
    content: "";
    position: absolute;
    right: 54px;
    bottom: -25px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    border: 7px solid var(--surface);
    border-radius: 50%;
}
.letter-heading .eyebrow {
    color: var(--accent);
}
.letter-heading h1 {
    max-width: 650px;
    font-size: clamp(1.85rem, 3.6vw, 3.2rem);
}
.letter-date {
    margin: 18px 0 0;
    color: #b8bbb3;
    font-size: 0.77rem;
}
.letter-body {
    padding: 58px 64px 48px;
    color: #373a34;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.06rem;
    line-height: 1.85;
}
.letter-body > p {
    margin: 0 0 24px;
}
.letter-body .salutation {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 700;
}
.letter-signature {
    display: grid;
    gap: 3px;
    margin-top: 42px;
    padding-left: 24px;
    border-left: 3px solid var(--accent);
}
.letter-signature span {
    color: var(--muted);
    font-style: italic;
}
.letter-signature strong {
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.05rem;
}
.letter-signature small {
    color: var(--muted);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.69rem;
}

.letter-body .ai-note {
    position: relative;
    margin: 28px 0 0;
    padding-top: 14px;
    color: #8b8e86;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.6rem;
    line-height: 1.55;
    letter-spacing: 0.04em;
}

.letter-body .ai-note::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 1px;
    background: var(--accent);
}
.letter-footer {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 64px;
    color: #666a61;
    background: #f5f5f0;
    border-top: 1px solid var(--line);
    font-size: 0.73rem;
}
.letter-footer span {
    font-size: 1.45rem;
    filter: grayscale(1);
}
.letter-footer p {
    margin: 0;
}
.page-return {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.resources-page .container {
    width: min(920px, calc(100% - 48px));
}

.resources-panel {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(29, 31, 25, 0.1);
}

.resources-heading {
    padding: 44px 64px 36px;
    color: #f8f8f3;
    background: var(--deep);
}

.resources-heading .eyebrow {
    color: var(--accent);
}

.resources-heading h1 {
    max-width: 680px;
    font-size: clamp(1.85rem, 3.6vw, 3rem);
}

.resources-introduction {
    max-width: 650px;
    margin: 16px 0 0;
    color: #b8bbb3;
    line-height: 1.7;
}

.resource-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 14px 64px 24px;
    list-style: none;
}

.resource-item {
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.resource-item:last-child {
    border-bottom: 0;
}

.resource-item a {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.resource-item a:hover {
    color: #8b6d00;
}

.resource-item p {
    margin: 9px 0 0;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.6;
}

.resource-suggestion {
    margin: 0 64px 32px;
    padding: 16px 20px;
    color: #666a61;
    background: #f5f5f0;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.86rem;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
}

.statistics-page .container {
    width: min(1280px, calc(100% - 48px));
}

.statistics-heading {
    padding: 42px 48px;
    color: #f8f8f3;
    background: var(--deep);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(29, 31, 25, 0.12);
}

.statistics-heading .eyebrow {
    color: var(--accent);
}

.statistics-heading h1 {
    margin-top: 5px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.statistics-heading > p:last-child {
    max-width: 720px;
    margin: 15px 0 0;
    color: #b8bbb3;
    line-height: 1.7;
}

.statistics-sections {
    display: grid;
    gap: 42px;
    margin-top: 42px;
}

.statistics-section {
    display: grid;
    gap: 18px;
}

.statistics-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.statistics-section-number {
    margin: 2px 0 0;
    color: #a78400;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.statistics-section-heading h2 {
    min-height: 0;
    margin: 0;
    font-size: 1.35rem;
}

.statistics-section-heading div > p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.statistic-card {
    min-width: 0;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(29, 31, 25, 0.06);
}

.statistic-label {
    min-height: 2.4em;
    margin: 0;
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.statistic-value {
    display: block;
    margin: 16px 0 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    font-weight: 850;
    line-height: 1.15;
}

.statistic-value-link {
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.statistic-value-link:hover {
    color: #8b6d00;
}

.statistic-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.55;
}

@media (max-width: 1180px) {
    .mosquito-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .site-header {
        min-height: 108px;
    }

    .container {
        width: min(100% - 32px, 520px);
        padding: 38px 0 56px;
    }

    .intro {
        align-items: start;
        flex-direction: column;
    }

    .intro-actions {
        width: 100%;
        align-items: end;
        justify-content: space-between;
    }

    .form-heading {
        align-items: start;
        flex-direction: column;
    }

    .mosquito-form {
        padding: 22px 18px;
    }

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

    .case-header {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .case-bounty {
        width: 100%;
    }

    .case-status {
        justify-self: start;
    }

    .case-body {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .field-wide {
        grid-column: auto;
    }

    .species-selector {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .execution-method-selector {
        grid-template-columns: 1fr;
        gap: 7px;
    }

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

    .site-footer {
        gap: 10px;
    }

    .site-footer-copyright,
    .site-footer-menu {
        flex-wrap: wrap;
        gap: 6px 12px;
    }

    .acknowledgements-page .container {
        width: min(100% - 24px, 520px);
    }

    .resources-page .container {
        width: min(100% - 24px, 520px);
    }

    .resources-heading {
        padding: 38px 26px 32px;
    }

    .resource-list {
        padding: 8px 26px 18px;
    }

    .resource-suggestion {
        margin: 0 26px 26px;
    }

    .statistics-page .container {
        width: min(100% - 24px, 620px);
    }

    .statistics-heading {
        padding: 34px 26px;
    }

    .statistics-sections {
        gap: 34px;
        margin-top: 34px;
    }

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

    .statistic-label {
        min-height: 0;
    }

    .letter-heading {
        padding: 38px 26px 34px;
    }

    .letter-heading::after {
        right: 24px;
        width: 42px;
        height: 42px;
    }

    .letter-body {
        padding: 46px 26px 36px;
        font-size: 0.98rem;
    }

    .letter-footer {
        align-items: flex-start;
        padding: 18px 26px;
    }

    .mosquito-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    h2 {
        min-height: 0;
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
}
