:root {
    --forest: #193f35;
    --forest-dark: #14352d;
    --green: #365d49;
    --paper: #f8f7f2;
    --ink: #253c32;
    --muted: #65736a;
    --line: #dedfd4;
    --ochre: #b79853;
    --white: #fff;
    --serif: Georgia,'Times New Roman',serif;
    --sans: Inter,'Segoe UI',Arial,sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;
}

button,input {
    font: inherit;
}

button,a,input {
    touch-action: manipulation;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: default;
}

a {
    color: inherit;
}

button:focus-visible,a:focus-visible,input:focus-visible,dialog:focus-visible {
    outline: 3px solid var(--ochre);
    outline-offset: 4px;
}

svg {
    display: block;
}

button svg,.nav-item svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

button {
    color: inherit;
}

button:disabled {
    opacity: .45;
}

button[hidden],[hidden] {
    display: none!important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 20;
    background: var(--white);
    padding: 12px 18px;
}

.skip-link:focus {
    top: 16px;
}

.app-shell {
    display: grid;
    grid-template-columns: 232px minmax(0,1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--forest);
    color: #eaf0e7;
    padding: 34px 20px 20px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -.7px;
}

.brand-mark {
    width: 36px;
    height: 40px;
    flex: none;
    color: #cdd8bb;
}

.brand small {
    display: block;
    font-family: var(--sans);
    font-size: 9px;
    line-height: 1;
    letter-spacing: 1.25px;
    font-weight: 400;
    margin-top: 9px;
    color: #afc0ac;
}

.navigation {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 47px;
}

.nav-label {
    font-size: 9px;
    letter-spacing: 1.8px;
    color: #9eb4a5;
    margin: 0 16px 13px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c3d1c5;
    border: 0;
    background: none;
    width: 100%;
    border-radius: 5px;
    padding: 12px 15px;
    text-align: left;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.nav-item>svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.nav-item:hover {
    background: #ffffff09;
    color: #fff;
}

.nav-item.active {
    background: #345447;
    color: #fff;
}

.nav-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c5b979;
    margin-left: auto;
}

.nav-item .lock-icon {
    width: 12px;
    height: 12px;
    color: #89a495;
    margin-left: auto;
}

.member-nav-label {
    margin-top: 33px;
}

.sidebar-note {
    margin: 60px 14px 0;
    color: #bacbb9;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sidebar-note p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.small-leaf {
    font-size: 27px;
    color: #97ad8b;
    line-height: 1.4;
}

.sidebar-bottom {
    border-top: 1px solid #ffffff15;
    margin: 40px 15px 0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    color: #9db3a4;
    font-size: 10px;
}

.sidebar-version {
    color: #729482;
    font-size: 9px;
    letter-spacing: .4px;
}

.menu-toggle {
    display: none;
}

.main-column {
    min-width: 0;
}

.topbar {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 54px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
}

.breadcrumb {
    color: #7b867c;
    display: flex;
    gap: 14px;
    align-items: center;
}

.breadcrumb strong {
    font-weight: 500;
    color: #455d4d;
}

.breadcrumb>span {
    color: #b6baaf;
}

.member-button {
    background: none;
    border: 1px solid #cfd5c8;
    border-radius: 5px;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    font-size: 11px;
    line-height: 1.4;
}

.member-button:hover {
    background: #e9eee3;
}

.member-button svg {
    height: 15px;
    width: 15px;
}

main {
    max-width: 1440px;
    margin: auto;
    padding: 0 54px;
}

.intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 289px;
    padding: 48px 0 37px;
    gap: 24px;
}

.intro-copy {
    max-width: 660px;
}

.eyebrow {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.9px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: #577051;
}

.eyebrow>span {
    height: 5px;
    width: 5px;
    border-radius: 50%;
    background: #8aa474;
}

h1 {
    font-family: var(--serif);
    font-size: clamp(42px,4.1vw,62px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1.8px;
    margin: 0 0 19px;
}

h2 {
    font-family: var(--serif);
    font-size: 29px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.7px;
    margin: 0;
}

.intro-description {
    max-width: 530px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--muted);
    margin: 0;
}

.open-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: #768170;
    margin: 19px 0 0;
}

.open-note svg {
    height: 14px;
    width: 14px;
    fill: none;
    stroke: #78936c;
    stroke-width: 1.5;
}

.intro-art {
    width: 235px;
    flex: none;
    margin-right: 9px;
    text-align: center;
}

.intro-art svg {
    width: 100%;
    height: auto;
}

.intro-art span {
    display: block;
    color: #7b8c6c;
    font-family: var(--serif);
    font-style: italic;
    font-size: 12px;
    margin-top: -10px;
    margin-left: 50px;
}

.demo-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin-bottom: 28px;
    background: #f0eada;
    border: 1px solid #e2d8be;
    color: #746448;
    border-radius: 5px;
    font-size: 11px;
}

.demo-banner strong {
    font-weight: 600;
}

.library {
    padding-top: 29px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 22px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading .eyebrow {
    margin-bottom: 10px;
    font-size: 8px;
}

.muted {
    color: #829078;
}

.result-count {
    font-size: 10px;
    color: #6c7868;
    white-space: nowrap;
    background: #e9eee3;
    border-radius: 20px;
    padding: 6px 11px;
    min-height: 27px;
}

.result-count:empty {
    display: none;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 53px;
    background: #fff;
    border: 1px solid #d7dccf;
    border-radius: 6px;
    padding: 6px 7px 6px 18px;
    box-shadow: 0 2px 3px #193f3503;
    transition: border-color .15s;
}

.search-form:focus-within {
    border-color: #648264;
    box-shadow: 0 0 0 2px #64826415;
}

.search-form>svg {
    width: 19px;
    height: 19px;
    flex: none;
    fill: none;
    stroke: #829080;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.search-form input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    padding: 0 14px;
    color: var(--ink);
    font-size: 12px;
    outline: 0;
}

.search-form input::placeholder {
    color: #90988a;
}

.search-form input:focus-visible {
    outline: 0;
}

.search-form button {
    border: 0;
    border-radius: 4px;
    background: var(--forest);
    color: #fff;
    padding: 11px 19px;
    font-size: 11px;
    display: flex;
    gap: 20px;
    align-items: center;
    white-space: nowrap;
}

.search-form button:hover,.primary-button:hover {
    background: #2d5946;
}

.search-form button span {
    font-size: 16px;
    line-height: 1;
}

.filter-panel {
    margin-top: 12px;
    border: 1px solid #d8dece;
    border-radius: 6px;
    background: #f0f3e9;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 17px;
    list-style: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #36523b;
}

.filter-toggle::-webkit-details-marker,
.profile-toggle::-webkit-details-marker {
    display: none;
}

.filter-toggle:focus-visible,
.profile-toggle:focus-visible {
    outline: 3px solid var(--ochre);
    outline-offset: 4px;
}

.filter-toggle small {
    display: inline-block;
    margin-left: 14px;
    color: #77866b;
    font-size: 10px;
    font-weight: 400;
}

.filter-selection-count {
    border-radius: 12px;
    padding: 3px 8px;
    background: #dfe8d5;
    color: #536c43;
    font-size: 10px;
    margin-left: auto;
}

.filter-chevron {
    margin-left: auto;
    font-size: 20px;
    line-height: 1;
    color: #6a8358;
    transition: transform .2s;
}

.filter-selection-count:not([hidden])+.filter-chevron {
    margin-left: 0;
}

.filter-panel[open] .filter-chevron {
    transform: rotate(45deg);
}

.filter-form {
    padding: 3px 17px 18px;
}

.filter-help,
.filter-options-status,
.filter-coverage {
    color: #69795e;
    font-size: 11px;
    line-height: 1.7;
    margin: 0 0 15px;
}

.filter-options-status:empty {
    display: none;
}

.filter-coverage {
    margin: 11px 2px 0;
    font-size: 10px;
}

.filter-fields {
    display: grid;
    grid-template-columns: 210px minmax(0,1fr) minmax(0,1.2fr);
    gap: 22px;
}

.filter-fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.filter-fieldset:disabled {
    opacity: .55;
}

.filter-fieldset legend {
    display: block;
    padding: 0;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #3f5b40;
}

.length-inputs {
    display: flex;
    align-items: end;
    gap: 9px;
}

.length-inputs label {
    display: block;
    min-width: 0;
    flex: 1;
    color: #718165;
    font-size: 10px;
}

.number-input {
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid #cfd9c5;
    background: #fff;
    border-radius: 4px;
    margin-top: 5px;
    padding: 0 8px;
    height: 38px;
}

.number-input:focus-within {
    border-color: #779968;
    outline: 2px solid #77996820;
}

.number-input input {
    border: 0;
    outline: 0;
    min-width: 0;
    width: 100%;
    padding: 5px 0;
    font-size: 13px;
    color: var(--ink);
    background: transparent;
    appearance: textfield;
    -moz-appearance: textfield;
}

.number-input input::-webkit-inner-spin-button,
.number-input input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-input input:focus-visible {
    outline: 0;
}

.number-input input[aria-invalid="true"] {
    color: #a14530;
}

.range-dash {
    margin-bottom: 8px;
    color: #8c9a80;
}

.fieldset-help {
    margin: 10px 0 0;
    color: #7b876f;
    font-size: 10px;
    line-height: 1.6;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.filter-choice {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border: 1px solid #d5dec9;
    background: #fff;
    border-radius: 4px;
    color: #607354;
    font-size: 11px;
    line-height: 1.5;
    cursor: pointer;
}

.filter-choice:has(input:checked) {
    background: #dce8d3;
    border-color: #96b280;
    color: #2d5030;
}

.filter-choice input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--forest);
}

.color-swatch {
    width: 9px;
    height: 9px;
    border: 1px solid #193f3520;
    border-radius: 50%;
    background: #8b9a7a;
    flex: none;
}

.swatch-black {
    background: #303a32;
}

.swatch-white {
    background: #fff;
}

.swatch-gray {
    background: #a0a8a1;
}

.swatch-brown {
    background: #90704d;
}

.swatch-red {
    background: #be6053;
}

.swatch-orange {
    background: #ce924d;
}

.swatch-yellow {
    background: #dbbd59;
}

.swatch-green {
    background: #799563;
}

.swatch-blue {
    background: #789bb2;
}

.filter-error {
    margin: 16px 0 0;
    padding: 10px 12px;
    border-left: 2px solid #b06e49;
    color: #8c5439;
    background: #f4e9db;
    font-size: 12px;
    line-height: 1.65;
}

.filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 19px;
}

.filter-actions .primary-button {
    margin: 0;
    padding: 10px 13px;
}

.text-button {
    padding: 4px 0;
    border: 0;
    background: none;
    color: #5b7650;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#retry-filters {
    margin: 0 0 16px;
}

.library-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 21px 0 18px;
    color: #7b8577;
    font-size: 10px;
}

.library-toolbar p {
    margin: 0;
}

.library-toolbar>span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.library-toolbar svg {
    height: 13px;
    width: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: round;
}

.bird-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
}

.bird-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dedfd3;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 2px 5px #193f3503;
    transition: transform .2s,border-color .2s,box-shadow .2s;
}

.bird-card:hover {
    transform: translateY(-3px);
    border-color: #b8c3ac;
    box-shadow: 0 7px 16px #193f3509;
}

.card-link {
    display: block;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
    position: relative;
    flex: 1;
}

.card-image {
    aspect-ratio: 1.43;
    background: #eaede2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e5e8dc;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    transition: transform .45s;
}

.bird-card:hover .card-image img {
    transform: scale(1.04);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    padding: 20px;
    color: #7c8c74;
    font-size: 10px;
    text-align: center;
}

.image-placeholder svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: #9faf94;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-content {
    padding: 17px 19px 14px;
    position: relative;
}

.card-content h3 {
    font-family: var(--serif);
    font-size: 23px;
    letter-spacing: -.5px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 30px 5px 0;
    overflow-wrap: anywhere;
}

.scientific-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 12px;
    line-height: 1.4;
    color: #65735f;
    margin: 0;
    overflow-wrap: anywhere;
}

.card-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.65;
    color: #657361;
    overflow-wrap: anywhere;
}

.card-text-source {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 5px;
    margin: 0 19px;
    padding: 8px 0;
    border-top: 1px solid #edf0e7;
    color: #68755f;
    font-size: 11px;
    line-height: 1.6;
}

.card-text-source a {
    color: #526743;
    text-underline-offset: 2px;
}

.card-arrow {
    position: absolute;
    right: 19px;
    top: 22px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: #63785b;
    font-size: 17px;
    background: #f3f5ee;
    border-radius: 50%;
    line-height: 1;
}

.image-credits {
    border-top: 1px solid #edf0e7;
    min-height: 34px;
    margin: 0 19px;
    padding: 8px 0;
    color: #68755f;
    font-size: 11px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 2px;
}

.image-credits a {
    color: #526743;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.image-credits .artist {
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-status:empty {
    display: none;
}

.list-status {
    padding: 36px 20px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    color: var(--muted);
    margin: 0 0 22px;
}

.list-status h3 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: 0;
}

.list-status p {
    margin: 0;
    font-size: 12px;
}

.list-status button {
    border: 1px solid #cdd8c6;
    padding: 8px 16px;
    margin-top: 5px;
    background: var(--paper);
    border-radius: 4px;
    font-size: 12px;
}

.loading-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid #dce4d3;
    border-top-color: #718866;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 28px 0 0;
    font-size: 11px;
    color: #7c8777;
}

.page-button {
    padding: 9px 15px;
    border: 1px solid #d5dbcd;
    border-radius: 4px;
    background: #fff;
    font-size: 11px;
    display: flex;
    gap: 9px;
    align-items: center;
}

.page-button:hover:not(:disabled) {
    background: #e9eee3;
}

.site-footer {
    max-width: 1440px;
    margin: 48px auto 0;
    padding: 24px 54px 29px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 28px;
    color: #8a9383;
    font-size: 9px;
    line-height: 1.8;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 20px;
    text-decoration: none;
    letter-spacing: -.5px;
    color: #61745a;
}

.site-footer p {
    margin: 0;
}

.site-footer>span {
    margin-left: auto;
    font-family: var(--serif);
    font-style: italic;
    font-size: 12px;
    white-space: nowrap;
}

dialog {
    border: 0;
    padding: 0;
    color: var(--ink);
    background: var(--paper);
    border-radius: 10px;
    box-shadow: 0 24px 100px #06241c50;
    max-height: 90vh;
    max-height: 90dvh;
}

dialog::backdrop {
    background: #102b22a6;
    backdrop-filter: blur(3px);
}

.bird-dialog {
    width: min(1080px,calc(100% - 36px));
    max-width: none;
    overflow: hidden;
}

#bird-detail {
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dialog-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: #fff;
    border: 1px solid #d3d8c9;
    box-shadow: 0 2px 8px #1235230f;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    font-family: Arial,sans-serif;
    font-size: 26px;
    line-height: 1;
    z-index: 2;
    padding: 0 0 3px;
    display: grid;
    place-items: center;
    color: #35513c;
}

.dialog-close:hover {
    background: #e9eee3;
}

.detail-loading {
    padding: 65px 30px;
    text-align: center;
}

.detail-loading h2 {
    margin-bottom: 10px;
}

.detail-loading .loading-indicator {
    margin: 25px auto;
}

.detail-layout {
    display: grid;
    grid-template-columns: 34% 66%;
    min-height: 560px;
    background: #e7ebdd;
}

.detail-media {
    background: #e7ebdd;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
}

.detail-photo {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-credits {
    font-size: 11px;
    line-height: 1.65;
    color: #6c7b62;
    overflow-wrap: anywhere;
}

.detail-credits p {
    margin: 0 0 5px;
}

.detail-credits a {
    text-underline-offset: 2px;
}

.detail-credits .credit-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-copy {
    padding: 49px 42px 36px;
    min-width: 0;
    background: var(--paper);
}

.detail-copy .eyebrow {
    margin-bottom: 14px;
    font-size: 8px;
}

.detail-copy h2 {
    font-size: 42px;
    letter-spacing: -1px;
    margin-bottom: 7px;
}

.detail-copy>.scientific-name {
    font-size: 16px;
    color: #7c886b;
    margin-bottom: 24px;
}

.appearance-section {
    margin: 0 0 30px;
    border-top: 1px solid #d8decd;
    padding-top: 22px;
}

.appearance-section>h3 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 400;
    letter-spacing: -.4px;
}

.appearance-help {
    margin: 0 0 17px;
    color: #728168;
    font-size: 12px;
    line-height: 1.8;
}

.appearance-profile {
    border: 1px solid #d9e1cc;
    border-radius: 6px;
    margin: 10px 0;
    overflow: hidden;
    background: #f0f3e9;
}

.profile-toggle {
    display: grid;
    grid-template-columns: minmax(0,1fr) 23px;
    align-items: center;
    gap: 8px 10px;
    padding: 14px 15px;
    list-style: none;
    cursor: pointer;
}

.profile-heading {
    font-size: 13px;
    font-weight: 600;
    color: #3b593a;
}

.profile-meta {
    grid-column: 1 / -1;
    color: #77896b;
    font-size: 10px;
    line-height: 1.65;
}

.appearance-profile[open] .section-chevron {
    transform: rotate(45deg);
}

.profile-body {
    padding: 1px 15px 17px;
    background: #fafbf6;
    border-top: 1px solid #dfe6d4;
}

.profile-body h5 {
    margin: 20px 0 12px;
    color: #526b45;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.measurement-list {
    margin: 0;
}

.measurement-fact {
    display: grid;
    grid-template-columns: 115px minmax(0,1fr);
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e6eadc;
}

.measurement-fact dt {
    font-size: 12px;
    color: #496241;
    font-weight: 500;
}

.measurement-range-type {
    display: block;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.6;
    color: #839276;
    margin-top: 4px;
}

.measurement-fact dd {
    margin: 0;
    min-width: 0;
}

.measurement-value {
    color: #345431;
    font-size: 17px;
    font-family: var(--serif);
}

.fact-notes {
    margin: 7px 0;
    color: #75866b;
    font-size: 11px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.fact-sources {
    color: #7b8b70;
    font-size: 10px;
    line-height: 1.8;
    margin-top: 7px;
}

.fact-review-date {
    display: block;
    margin-bottom: 2px;
}

.fact-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 11px;
    overflow-wrap: anywhere;
}

.fact-source-links a {
    color: #607b50;
    text-underline-offset: 3px;
}

.missing-fact {
    margin: 9px 0;
    color: #7a8970;
    font-size: 11px;
    line-height: 1.75;
}

.profile-traits {
    padding: 0;
    margin: 0;
    list-style: none;
}

.profile-traits li {
    padding: 12px 0;
    border-bottom: 1px solid #e6eadc;
}

.profile-traits strong {
    font-size: 12px;
    font-weight: 500;
    color: #3f5f39;
}

.content-notice {
    margin: 0 0 22px;
    border-left: 2px solid #b3a477;
    padding: 3px 0 3px 12px;
    color: #7b725b;
    font-size: 11px;
    line-height: 1.7;
}

.content-navigation {
    margin: 0 0 28px;
}

.content-navigation-label {
    margin: 0 0 10px;
    color: #75836b;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.content-navigation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.content-navigation button {
    border: 1px solid #d7dece;
    border-radius: 4px;
    background: #eef1e7;
    padding: 6px 9px;
    font-size: 10px;
    line-height: 1.45;
    text-align: left;
}

.content-navigation button:hover {
    background: #e0e8d7;
    border-color: #b4c5a8;
}

.content-section {
    border-top: 1px solid #d8decd;
    padding: 19px 0;
    scroll-margin-top: 22px;
}

.section-toggle {
    display: grid;
    grid-template-columns: minmax(0,1fr) 24px;
    cursor: pointer;
    list-style: none;
    gap: 9px;
    align-items: center;
}

.section-toggle::-webkit-details-marker {
    display: none;
}

.section-toggle:focus-visible {
    outline: 3px solid var(--ochre);
    outline-offset: 5px;
}

.section-toggle h3 {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -.4px;
    margin: 0;
    overflow-wrap: anywhere;
}

.review-badge {
    display: table;
    margin-top: 9px;
    padding: 3px 7px;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0;
}

.review-badge-draft {
    color: #73603b;
    background: #f1e8d2;
}

.review-badge-checked {
    color: #42613d;
    background: #e4edde;
}

.review-notice {
    margin: 18px 0;
    padding: 10px 12px;
    border-left: 2px solid;
    font-size: 12px;
    line-height: 1.8;
}

.review-notice-draft {
    color: #73603b;
    border-color: #b99d66;
    background: #f6efdf;
}

.review-notice-checked {
    color: #56724b;
    border-color: #a7bc96;
    background: #edf2e6;
}

.section-chevron {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    background: #e9eedf;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
    color: #66805b;
    transition: transform .2s;
}

.content-section[open] .section-chevron {
    transform: rotate(45deg);
}

.section-preview {
    grid-column: 1 / -1;
    color: #718168;
    font-size: 12px;
    line-height: 1.7;
    padding-right: 14px;
}

.content-section[open] .section-preview {
    display: none;
}

.section-text {
    font-size: 14px;
    line-height: 1.9;
    color: #4c634b;
    overflow-wrap: anywhere;
    margin-top: 18px;
}

.section-text p {
    margin: 0 0 15px;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.section-text strong {
    font-weight: 600;
    color: #294632;
}

.section-text ul,
.section-text ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.section-text li {
    margin: 5px 0;
    padding-left: 4px;
}

.section-text li::marker {
    color: #789069;
}

.section-source {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 13px;
    margin-top: 20px;
    color: #75816e;
    font-size: 10px;
    line-height: 1.7;
}

.section-source a {
    text-underline-offset: 3px;
}

.section-source-reviewed {
    display: block;
    font-size: 11px;
}

.reviewed-source-label {
    display: block;
    font-weight: 500;
    color: #56704b;
}

.reviewed-date {
    display: block;
    margin-top: 3px;
}

.reviewed-source-links {
    list-style: none;
    padding: 0;
    margin: 9px 0;
    overflow-wrap: anywhere;
}

.reviewed-source-links li {
    margin: 4px 0;
}

.detail-summary {
    font-size: 13px;
    line-height: 1.85;
    color: #5c6f5a;
    margin: 0 0 20px;
}

.detail-source {
    font-size: 10px;
    color: #869078;
    line-height: 1.7;
    margin-top: 20px;
}

.detail-source p {
    margin: 6px 0 0;
}

.source-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    color: #456d4f;
    font-weight: 500;
    text-underline-offset: 4px;
    margin: 8px 0;
}

.detail-error {
    padding: 60px 32px;
    text-align: center;
}

.detail-error h2 {
    margin-bottom: 16px;
}

.member-dialog {
    width: min(470px,calc(100% - 36px));
    padding: 44px 36px 36px;
}

.member-symbol {
    height: 52px;
    width: 52px;
    display: grid;
    place-items: center;
    background: #e8eddc;
    color: #73906c;
    border-radius: 50%;
    font-size: 28px;
    margin-bottom: 25px;
}

.member-dialog .eyebrow {
    font-size: 8px;
    margin-bottom: 12px;
}

.member-dialog h2 {
    font-size: 32px;
    margin: 0 0 17px;
}

.member-dialog p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.8;
    color: #6d7a63;
}

.member-dialog .member-explanation {
    font-size: 11px!important;
}

.primary-button {
    background: var(--forest);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 13px 16px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 25px;
}

.noscript-message {
    padding: 20px;
    background: #f3e8cc;
    color: #655b3f;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 5;
    text-align: center;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@media(min-width:1450px) {
    .bird-grid {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }
    .intro {
        min-height: 300px;
    }
    .intro-art {
        margin-right: 55px;
    }
}

@media(max-width:1150px) {
    .app-shell {
        grid-template-columns: 205px minmax(0,1fr);
    }
    .sidebar {
        padding-left: 16px;
        padding-right: 16px;
    }
    .brand {
        font-size: 24px;
    }
    .brand-mark {
        width: 31px;
    }
    .topbar {
        padding-left: 34px;
        padding-right: 34px;
    }
    main {
        padding-left: 34px;
        padding-right: 34px;
    }
    .site-footer {
        padding-left: 34px;
        padding-right: 34px;
    }
    .intro-art {
        width: 190px;
    }
    .bird-grid {
        gap: 17px;
    }
    .card-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .card-content h3 {
        font-size: 21px;
    }
    .image-credits {
        margin-left: 15px;
        margin-right: 15px;
    }
    .card-text-source {
        margin-left: 15px;
        margin-right: 15px;
    }
    .card-arrow {
        right: 14px;
    }
    .nav-item {
        padding-left: 12px;
        padding-right: 12px;
        gap: 10px;
    }
}

@media(max-width:960px) {
    .filter-fields {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    #length-fieldset {
        grid-column: 1 / -1;
        max-width: 270px;
    }
    .bird-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .intro-art {
        width: 165px;
    }
    .intro-description {
        font-size: 14px;
    }
    .intro {
        gap: 12px;
    }
    .open-note {
        font-size: 9px;
    }
    .site-footer {
        gap: 20px;
    }
    .site-footer>span {
        display: none;
    }
    .detail-layout {
        grid-template-columns: 33% 67%;
    }
    .detail-media {
        padding: 20px;
    }
    .detail-copy {
        padding: 49px 32px 30px;
    }
}

@media(max-width:720px) {
    .filter-toggle {
        font-size: 12px;
        padding: 13px 14px;
    }
    .filter-toggle small {
        display: block;
        margin: 3px 0 0;
        font-size: 10px;
    }
    .filter-form {
        padding: 3px 14px 16px;
    }
    .filter-fields {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    #length-fieldset {
        max-width: none;
    }
    .filter-fieldset legend {
        font-size: 12px;
    }
    .filter-choice {
        padding: 7px 9px;
        font-size: 11px;
    }
    .filter-choice input {
        width: 15px;
        height: 15px;
    }
    .number-input {
        height: 43px;
    }
    .number-input input {
        font-size: 16px;
    }
    .filter-help,
    .filter-options-status,
    .filter-coverage,
    .fieldset-help {
        font-size: 11px;
    }
    .profile-meta,
    .measurement-range-type,
    .fact-sources {
        font-size: 11px;
    }
    .measurement-fact {
        grid-template-columns: 90px minmax(0,1fr);
        gap: 12px;
    }
    .app-shell {
        display: block;
    }
    .sidebar {
        height: auto;
        position: relative;
        padding: 17px 22px;
        z-index: 3;
    }
    .brand-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .brand {
        font-size: 24px;
    }
    .brand small {
        font-size: 8px;
        letter-spacing: 1px;
        margin-top: 5px;
    }
    .brand-mark {
        width: 29px;
        height: 34px;
    }
    .menu-toggle {
        display: block;
        width: 34px;
        height: 34px;
        padding: 5px;
        border: 1px solid #ffffff30;
        border-radius: 4px;
        background: none;
        color: #cbd7c5;
    }
    .menu-toggle svg {
        height: 23px;
        width: 23px;
    }
    .navigation {
        display: none;
        padding-top: 25px;
    }
    .sidebar.nav-open .navigation {
        display: flex;
    }
    .nav-item {
        padding: 12px;
    }
    .member-nav-label {
        margin-top: 23px;
    }
    .sidebar-note,.sidebar-bottom {
        display: none;
    }
    .topbar {
        height: 58px;
        padding: 0 22px;
    }
    .breadcrumb {
        font-size: 10px;
    }
    .member-button {
        font-size: 10px;
        border: 0;
        padding: 7px 0;
    }
    .member-button svg {
        height: 14px;
        width: 14px;
    }
    main {
        padding: 0 22px;
    }
    .intro {
        padding-top: 35px;
        padding-bottom: 32px;
        min-height: auto;
        align-items: flex-start;
    }
    .intro-copy {
        max-width: none;
    }
    .intro-art {
        display: none;
    }
    h1 {
        font-size: 48px;
        margin-bottom: 16px;
    }
    .eyebrow {
        font-size: 8px;
    }
    .intro-description {
        font-size: 14px;
        line-height: 1.8;
        max-width: 450px;
    }
    .open-note {
        font-size: 9px;
        margin-top: 16px;
    }
    .demo-banner {
        font-size: 10px;
        gap: 2px;
        margin-bottom: 25px;
        padding: 11px 13px;
    }
    .library {
        padding-top: 24px;
    }
    .section-heading {
        margin-bottom: 20px;
    }
    h2 {
        font-size: 27px;
    }
    .result-count {
        font-size: 9px;
    }
    .search-form {
        height: 51px;
        padding-left: 13px;
    }
    .search-form input {
        font-size: 16px;
        padding-left: 10px;
        padding-right: 5px;
    }
    .search-form button {
        font-size: 10px;
        padding: 11px 12px;
        gap: 10px;
    }
    .library-toolbar {
        font-size: 9px;
        margin: 18px 0 15px;
    }
    .bird-grid {
        gap: 16px;
    }
    .card-content {
        padding: 14px 14px 12px;
    }
    .card-content h3 {
        font-size: 22px;
        margin-right: 20px;
    }
    .card-arrow {
        right: 12px;
        top: 17px;
        width: 22px;
        height: 22px;
        font-size: 15px;
    }
    .scientific-name {
        font-size: 12px;
    }
    .image-credits {
        font-size: 11px;
        margin: 0 14px;
        min-height: 37px;
    }
    .card-text-source {
        margin: 0 14px;
    }
    .image-credits .artist {
        max-width: 100%;
    }
    .site-footer {
        padding: 22px;
        margin-top: 34px;
        gap: 20px;
    }
    .footer-brand {
        font-size: 18px;
        flex: none;
    }
    .site-footer p {
        font-size: 8px;
    }
    .pagination {
        gap: 18px;
    }
    .page-button {
        padding: 8px 12px;
    }
    .detail-layout {
        display: flex;
        flex-direction: column;
    }
    .detail-media {
        padding: 25px 24px 17px;
        position: static;
        max-height: none;
        overflow: visible;
    }
    .detail-photo {
        aspect-ratio: 1.65;
        max-height: 290px;
    }
    .detail-credits {
        font-size: 11px;
    }
    .detail-copy {
        padding: 27px 25px 30px;
    }
    .detail-copy h2 {
        font-size: 35px;
    }
    .detail-copy>.scientific-name {
        margin-bottom: 23px;
    }
    .dialog-close {
        width: 32px;
        height: 32px;
        right: 12px;
        top: 12px;
    }
    .detail-summary {
        font-size: 14px;
    }
    .section-toggle h3 {
        font-size: 24px;
    }
    .section-preview {
        font-size: 12px;
    }
    .content-navigation button {
        font-size: 11px;
        padding: 7px 9px;
    }
    .section-source {
        font-size: 11px;
    }
    .content-section {
        padding: 18px 0;
    }
    .bird-dialog {
        width: calc(100% - 26px);
    }
    .member-dialog {
        padding: 38px 26px 27px;
    }
    .member-dialog h2 {
        font-size: 29px;
    }
}

@media(max-width:420px) {
    .bird-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .card-content {
        padding: 16px;
    }
    .card-content h3 {
        font-size: 25px;
        margin-right: 0;
    }
    .card-arrow {
        display: none;
    }
    .scientific-name {
        font-size: 12px;
    }
    .image-credits {
        margin: 0 16px;
        font-size: 11px;
        min-height: 37px;
    }
    .card-text-source {
        margin: 0 16px;
    }
    .library-toolbar>span {
        font-size: 8px;
    }
    .search-form button {
        font-size: 0;
        gap: 0;
        padding: 10px 14px;
    }
    .search-form button span {
        font-size: 18px;
    }
    .search-form input {
        font-size: 16px;
    }
    .result-count {
        padding: 5px 9px;
    }
    .section-heading .eyebrow {
        font-size: 7px;
        letter-spacing: 1.4px;
    }
    .card-image {
        aspect-ratio: 1.65;
    }
    .image-placeholder {
        padding: 12px;
        font-size: 8px;
        gap: 7px;
    }
    .image-placeholder svg {
        height: 34px;
        width: 34px;
    }
    .topbar .member-button span {
        font-size: 9px;
    }
    .pagination {
        gap: 12px;
    }
    .page-button {
        font-size: 10px;
        padding: 8px 10px;
    }
    .pagination>span {
        font-size: 10px;
    }
    .intro-description {
        max-width: 340px;
    }
    h1 {
        font-size: 44px;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    *,*::before,*::after {
        animation-duration: .01ms!important;
        transition: none!important;
    }
    .bird-card:hover {
        transform: none;
    }
    .bird-card:hover .card-image img {
        transform: none;
    }
}
