:root {
  color-scheme: light;
  --paper: #faf4e6;
  --paper-light: #fffdf7;
  --ink: #263d31;
  --muted: #68766c;
  --forest: #3e7b57;
  --forest-dark: #28583e;
  --sea: #2e78a6;
  --sand: #c98b45;
  --ice: #88bfc8;
  --line: #e7dfcc;
  --focus: #ab5f18;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
html[data-scale="0.9"] { font-size: 14.4px; }
html[data-scale="1.0"] { font-size: 16px; }
html[data-scale="1.1"] { font-size: 17.6px; }
html[data-scale="1.2"] { font-size: 19.2px; }
html[data-scale="1.3"] { font-size: 20.8px; }
html[data-scale="1.4"] { font-size: 22.4px; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 50% -15%, #fffdf8 0, var(--paper) 58rem); }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 20; padding: .8rem 1rem; border-radius: 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 82px; padding: .7rem clamp(1rem, 4vw, 3.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; max-width: 1440px; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: .72rem; min-width: max-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border-radius: 48% 52% 43% 57%; background: var(--forest); color: var(--paper-light); font-size: 1.35rem; transform: rotate(-7deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.02rem; letter-spacing: -.04em; }
.brand small { color: #59665d; font-size: 1rem; margin-top: .14rem; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.4rem, 2vw, 1.55rem); }
.site-nav a { min-height: 48px; display: inline-flex; align-items: center; padding: .5rem .3rem; color: #58675d; text-decoration: none; font-size: 1rem; font-weight: 700; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.is-current { color: var(--forest-dark); border-color: var(--forest); }
.guardian-button { min-height: 48px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-light); padding: .45rem 1rem; color: var(--ink); font-weight: 700; cursor: pointer; }
.review-ribbon { max-width: 1376px; margin: 0 auto .5rem; padding: .55rem 1rem; display: flex; align-items: center; justify-content: center; gap: .5rem; color: #6d583d; background: #f5e9cd; border-radius: 0 0 1rem 1rem; font-size: 1rem; line-height: 1.5; text-align: center; }
.status-dot { width: .55rem; height: .55rem; flex: 0 0 auto; background: var(--sand); border-radius: 50%; }
main { min-height: calc(100vh - 180px); }
#main:focus { outline: none; }
.page, .home-page { width: min(100% - 2rem, 1120px); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.3rem) 0 4rem; }
.page-heading { max-width: 760px; margin-bottom: 2rem; }
.eyebrow { margin: 0 0 .55rem; color: var(--forest); font-size: 1rem; letter-spacing: .08em; font-weight: 800; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .7rem; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.16; letter-spacing: -.065em; }
h2 { margin-bottom: .7rem; font-size: clamp(1.2rem, 3vw, 1.6rem); letter-spacing: -.045em; }
.lead { max-width: 46rem; margin: 0; color: #58675d; font-size: clamp(1.02rem, 2vw, 1.2rem); line-height: 1.7; }
.hero-card { position: relative; min-height: 370px; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; padding: clamp(1.5rem, 5vw, 4rem); border: 1px solid #d9dfc7; border-radius: 2.2rem; background: linear-gradient(112deg, #edf2dc 0%, #f4f0dc 52%, #e4efdc 100%); box-shadow: 0 16px 42px #294e3510; }
.hero-copy { position: relative; z-index: 2; max-width: 36rem; }
.hero-copy h1 { font-size: clamp(2.2rem, 5.6vw, 4.25rem); }
.hero-copy > p:not(.eyebrow) { max-width: 32rem; color: #546a59; font-size: 1.08rem; line-height: 1.7; }
.button-primary, .button-secondary, .button-danger, .text-action { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.2rem; border: 0; border-radius: 1rem; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button-primary { color: #fffef8; background: var(--forest); box-shadow: 0 7px 0 #28583e30; }
.button-primary:hover { background: var(--forest-dark); transform: translateY(-1px); }
.button-secondary { border: 1px solid #d9dfd2; color: var(--forest-dark); background: var(--paper-light); }
.button-secondary:hover { background: #eef3e8; }
.button-danger { color: white; background: #963e36; }
.text-action { min-height: 44px; padding: .35rem .5rem; color: var(--forest-dark); background: transparent; text-decoration: underline; text-underline-offset: .2em; }
button:disabled { cursor: not-allowed; opacity: .75; }
.hero-art { position: relative; align-self: stretch; min-height: 230px; }
.sun-disc { position: absolute; width: clamp(8rem, 20vw, 14rem); aspect-ratio: 1; top: 13%; right: 9%; border-radius: 50%; background: #f5d891; opacity: .85; }
.leaf-shape { position: absolute; width: 8rem; height: 15rem; border-radius: 100% 0 100% 0; background: #54886a; box-shadow: inset -14px 0 #3e7656; }
.leaf-one { right: 27%; bottom: -4%; transform: rotate(27deg); }
.leaf-two { right: -3%; bottom: 3%; transform: rotate(-22deg) scale(.78); background: #78a477; }
.hero-note { position: absolute; right: 5%; top: 43%; display: grid; place-items: center; width: 6.2rem; height: 6.2rem; border: 1px dashed #547257; border-radius: 50%; color: #335e40; background: #fff9dfd9; font-weight: 900; line-height: 1.35; text-align: center; transform: rotate(9deg); }
.hero-caption { grid-column: 1 / -1; width: 100%; margin: 0; padding: .7rem .9rem; border-left: 3px solid var(--sand); border-radius: .25rem .8rem .8rem .25rem; color: #59665d; background: var(--paper-light); font-size: 1rem; line-height: 1.5; }
.section-block { margin-top: 3.2rem; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-title h2 { margin: 0; }
.inline-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--forest-dark); font-weight: 800; }
.species-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.species-tile { padding: .9rem; border: 1px solid var(--line); border-radius: 1.35rem; background: var(--paper-light); box-shadow: 0 8px 24px #45391608; }
.species-link { min-height: 70px; display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: .8rem; text-decoration: none; }
.tile-art { width: 3.1rem; height: 3.1rem; overflow: hidden; display: grid; place-items: center; border: 1px solid #dce4d5; border-radius: 1rem; background: #f2f1e6; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.tile-copy strong, .tile-copy small { display: block; }
.tile-copy strong { font-size: 1.03rem; }
.tile-copy small { margin-top: .22rem; color: #59665d; font-size: 1rem; line-height: 1.45; }
.tile-arrow { color: #6c826f; font-size: 1.1rem; }
.tile-summary { min-height: 3.2rem; margin: .65rem .25rem .45rem; color: #5d695f; font-size: 1rem; line-height: 1.6; }
.tile-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid #f0ecdf; padding-top: .3rem; }
.staged-tag { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .7rem; border-radius: 999px; color: #765d3f; background: #f7eed9; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.safety-note { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border: 1px solid #d4e1d2; border-radius: 1.25rem; background: #eff5e9; }
.safety-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--forest); font-size: 1.5rem; }
.safety-note strong { display: block; margin-bottom: .22rem; }
.safety-note p { margin: 0; color: #5d695f; font-size: 1rem; line-height: 1.6; }
.map-intro { display: flex; align-items: center; gap: 1rem; max-width: 42rem; margin: -.2rem 0 1.5rem; color: #5d695f; line-height: 1.65; }
.map-intro p { margin: 0; }
.map-stamp { display: grid; place-items: center; width: 4rem; height: 4rem; flex: 0 0 auto; border: 1px dashed #a5ae87; border-radius: 50%; color: #526b4d; font-size: .72rem; font-weight: 900; line-height: 1.05; text-align: center; transform: rotate(-8deg); }
.habitat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.habitat-card { min-height: 165px; overflow: hidden; border: 1px solid #e4dfcd; border-radius: 1.35rem; background: var(--paper-light); }
.habitat-hit { position: relative; min-height: 165px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 1.1rem; text-decoration: none; }
.habitat-hit strong { position: relative; z-index: 1; font-size: 1.16rem; }
.habitat-hit > span:not(.habitat-pattern):not(.habitat-arrow) { position: relative; z-index: 1; margin-top: .25rem; color: #59665d; font-size: 1rem; line-height: 1.45; }
.habitat-pattern { position: absolute; top: .5rem; right: 1rem; display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; color: #3b6849; background: #dfebd7; font-size: 1.15rem; font-weight: 900; }
.habitat-forest .habitat-pattern, .habitat-mountain .habitat-pattern { background: repeating-linear-gradient(45deg, #e4ecd6, #e4ecd6 8px, #d9e7cc 8px, #d9e7cc 12px); }
.habitat-grassland .habitat-pattern, .habitat-city .habitat-pattern { color: #9a6e37; background: #f2e3c1; }
.habitat-desert .habitat-pattern { color: #916331; background: #f3e2c3; }
.habitat-polar .habitat-pattern { color: #427d8b; background: #dceff0; }
.habitat-ocean .habitat-pattern { color: #2e78a6; background: repeating-linear-gradient(0deg, #dcebf0, #dcebf0 8px, #d0e3ea 9px, #d0e3ea 11px); }
.habitat-wetland .habitat-pattern { color: #2e78a6; background: #e0eff0; }
.habitat-card.is-available:hover { border-color: #99b99f; box-shadow: 0 10px 25px #3e7b5714; }
.habitat-arrow { position: absolute; right: 1rem; bottom: 1rem; color: var(--forest); font-size: 1.15rem; }
.habitat-arrow.muted { color: #b0ad9e; }
.small-note { color: #59665d; font-size: 1rem; line-height: 1.6; }
.search-form { max-width: 34rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1.2rem; background: #fffdf8; }
.search-form label, .select-field { display: block; color: #43584a; font-size: 1rem; font-weight: 800; }
.search-form > div { display: flex; gap: .65rem; margin-top: .5rem; }
.search-form input, .modal input, .select-field select { width: 100%; min-height: 52px; padding: .7rem .85rem; border: 1px solid #cbcdbf; border-radius: .8rem; color: var(--ink); background: white; }
.result-count { margin: 1.1rem 0; color: #59665d; font-size: 1rem; }
.empty-card { padding: 1.5rem; border: 1px dashed #c9cbb9; border-radius: 1.2rem; background: #fffdf7; }
.empty-card p { max-width: 38rem; color: #647067; line-height: 1.65; }
.detail-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--forest-dark); font-weight: 800; }
.animal-profile { display: grid; grid-template-columns: minmax(200px, .72fr) minmax(0, 1.28fr); gap: clamp(1.3rem, 4vw, 3.4rem); align-items: center; }
.animal-art { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #d8dfce; border-radius: 1.7rem; background: #eff2de; box-shadow: 0 12px 30px #294e3510; }
.animal-art img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.animal-art figcaption { padding: .6rem .9rem; color: #365840; background: #f7f7ed; font-size: 1rem; line-height: 1.5; }
.animal-intro h1 { margin-bottom: .3rem; }
.latin-name { margin: 0 0 .75rem; color: #59665d; font-size: 1rem; line-height: 1.5; }
.animal-intro .lead { margin-bottom: 1rem; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.media-notice { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; padding: 1rem 1.1rem; border: 1px solid #e8d8b9; border-radius: 1.1rem; background: #fff8e9; }
.media-notice > span { font-size: 1.5rem; color: #a17841; }
.media-notice div { flex: 1; }
.media-notice strong { display: block; }
.media-notice p { margin: .2rem 0 0; color: #5c5143; font-size: 1rem; line-height: 1.6; }
.media-status { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .4rem .7rem; border: 1px solid #ded7c6; border-radius: 1rem; color: #5c5143; background: #f1ecdf; font-size: 1rem; font-weight: 700; text-align: center; }
.detail-section { margin: 2.2rem 0; }
.fact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 0; padding: 0; list-style: none; counter-reset: fact; }
.fact-list li { min-height: 135px; display: flex; flex-direction: column; gap: .65rem; padding: 1rem; border: 1px solid #dce4d5; border-radius: 1.1rem; background: #f5f8ef; line-height: 1.55; }
.fact-number { color: var(--forest); font-size: .77rem; font-weight: 900; letter-spacing: .12em; }
.fact-copy { display: grid; gap: .65rem; }
.fact-source { color: #59665d; font-size: 1rem; line-height: 1.45; }
.observation-prompt { margin: 1.4rem 0 2rem; padding: 1.15rem 1.3rem; border: 1px solid #e9d9b8; border-radius: 1.2rem; background: #fff7e8; }
.observation-prompt h2 { margin-bottom: .35rem; }
.observation-prompt > p:not(.eyebrow) { margin-bottom: .45rem; color: #4f5549; font-size: 1.1rem; font-weight: 750; line-height: 1.6; }
.observation-prompt small { color: #655c4e; font-size: 1rem; line-height: 1.5; }
.info-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.info-panels article { padding: 1.1rem; border-radius: 1.1rem; background: #f2ecdc; }
.info-panels article:nth-child(2) { background: #e9f1ed; }
.info-panels article:nth-child(3) { background: #e8f0f1; }
.info-panels h2 { font-size: 1.05rem; line-height: 1.5; }
.info-panels p:last-child { margin-bottom: 0; color: #59665d; font-size: 1rem; line-height: 1.6; }
.source-credit { margin: 1rem 0; color: #59665d; font-size: 1rem; line-height: 1.6; }
.care-reminder { margin-top: 1.25rem; padding: 1rem 1.2rem; border-left: 4px solid var(--sand); border-radius: .3rem 1rem 1rem .3rem; background: #fff5e3; }
.care-reminder p { margin: .25rem 0 0; color: #655c4e; line-height: 1.55; }
.compare-card, .quiz-card { max-width: 760px; padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.5rem; background: var(--paper-light); }
.compare-selects { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.select-field select { display: block; margin-top: .45rem; cursor: pointer; }
.compare-visual { margin: 2rem 0 1rem; display: grid; gap: 1.2rem; }
.compare-row { display: grid; gap: .45rem; }
.compare-label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.compare-label span { color: #5d695f; font-size: 1rem; }
.bar-track { position: relative; display: block; width: 100%; height: 1.1rem; overflow: hidden; border-radius: 999px; background: repeating-linear-gradient(90deg, #eee9dc 0, #eee9dc calc(25% - 1px), #ddd8ca calc(25% - 1px), #ddd8ca 25%); }
.bar-range { position: absolute; top: 0; bottom: 0; left: var(--start); width: calc(var(--end) - var(--start)); border-radius: 999px; background: var(--forest); }
.bar-range.bar-ocean { background: var(--sea); }
.bar-range.is-mean { left: var(--end); width: .75rem; transform: translateX(-50%); }
.bar-range.is-mean.bar-ocean { background: var(--sea); }
.compare-scale { display: flex; justify-content: space-between; margin-top: -.8rem; color: #59665d; font-size: 1rem; }
.comparison-caveat { margin-bottom: 0; color: #59665d; font-size: 1rem; line-height: 1.6; }
.quiz-progress { display: flex; align-items: center; gap: 1rem; color: #59665d; font-size: 1rem; font-weight: 800; }
.quiz-meter { width: 10rem; height: .55rem; flex: 1; appearance: none; border: 0; border-radius: 999px; background: #eae7db; }
.quiz-meter::-webkit-progress-bar { border-radius: 999px; background: #eae7db; }
.quiz-meter::-webkit-progress-value, .quiz-meter::-moz-progress-bar { border-radius: 999px; background: var(--forest); }
.quiz-card h2 { margin: 1.5rem 0; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.quiz-choices { display: grid; gap: .65rem; }
.quiz-choice { min-height: 60px; display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid #dcdccc; border-radius: 1rem; color: var(--ink); background: #fffefa; text-align: left; font-weight: 700; cursor: pointer; }
.quiz-choice:hover:not(:disabled) { border-color: #8eae95; background: #f4f8ef; }
.quiz-choice:disabled { cursor: default; }
.quiz-choice.is-right { border-color: #4f9660; background: #edf6e9; }
.quiz-choice.is-try-again { border-color: #d6b785; background: #fff8e9; }
.choice-dot { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; border: 2px solid #90a091; border-radius: 50%; }
.quiz-choice.is-right .choice-dot { border-color: var(--forest); box-shadow: inset 0 0 0 3px white; background: var(--forest); }
.quiz-feedback { margin-top: 1rem; padding: .9rem 1rem; border-radius: 1rem; }
.quiz-feedback p { margin: .25rem 0 0; line-height: 1.6; }
.quiz-source-credit { margin: .75rem 0 0; padding-top: .65rem; display: grid; gap: .15rem; border-top: 1px solid #dce4d5; }
.quiz-source-credit span { color: var(--forest); font-size: 1rem; font-weight: 850; }
.quiz-source-credit strong { color: #365c40; font-size: 1rem; line-height: 1.5; }
.quiz-source-credit small { color: #59665d; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.quiz-source-disclaimer { margin: 1rem 0; padding: .8rem 1rem; border-left: 3px solid var(--sand); color: #655c4e; background: #fff5e3; font-size: 1rem; line-height: 1.65; }
.feedback-good { color: #315f3e; background: #eef6e9; }
.feedback-gentle { color: #6b563a; background: #fff5e4; }
.quiz-finish { max-width: 760px; padding: 1.3rem; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--paper-light); }
.finish-mark { display: inline-grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: .8rem; border-radius: 50%; color: white; background: var(--forest); font-weight: 900; }
.answer-review { display: grid; gap: .75rem; margin: 1rem 0; padding-left: 1.2rem; }
.answer-review li { padding: .75rem; border-radius: .8rem; background: #f4f3e9; }
.answer-review p { margin: .35rem 0; color: #58675d; line-height: 1.5; }
.collection-section { margin: 1.5rem 0 2.4rem; }
.collection-list { display: grid; gap: .6rem; }
.collection-row { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: .85rem; padding: .8rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper-light); }
.collection-mark { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: .9rem; color: white; background: var(--forest); font-size: .8rem; font-weight: 900; }
.collection-row strong, .collection-row small { display: block; }
.collection-row small { margin-top: .2rem; color: #59665d; font-size: 1rem; line-height: 1.5; }
.privacy-inline { color: #59665d; font-size: 1rem; line-height: 1.5; }
.parent-panels { display: grid; max-width: 850px; gap: .9rem; }
.parent-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--paper-light); }
.parent-card h2 { font-size: 1.2rem; line-height: 1.45; }
.parent-card > p:not(.eyebrow) { color: #58675d; line-height: 1.6; }
.setting-row { min-height: 60px; display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; border-top: 1px solid #efeadd; }
.setting-row > span:first-child { flex: 1; min-width: 12rem; font-weight: 700; }
.font-setting { color: var(--forest); font-weight: 900; }
.plain-list { padding-left: 1.2rem; color: #57675c; line-height: 1.7; }
.plain-list li + li { margin-top: .35rem; }
.source-list { display: grid; max-width: 850px; gap: .65rem; }
.source-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper-light); }
.source-row strong { display: block; }
.source-row p { margin: .25rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.source-row a { min-height: 44px; display: inline-flex; align-items: center; color: var(--forest-dark); font-size: 1rem; font-weight: 800; white-space: nowrap; }
.notice { margin: 1rem 0 0; padding: .85rem 1rem; border-radius: .9rem; color: #624d31; background: #f7edd8; font-size: 1rem; line-height: 1.6; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: #1c2a22a8; }
.modal { width: min(100%, 520px); max-height: min(90vh, 700px); overflow: auto; padding: clamp(1.2rem, 4vw, 2rem); border-radius: 1.5rem; background: var(--paper-light); box-shadow: 0 20px 60px #15201644; }
.modal p { color: #5f6b62; line-height: 1.6; }
.modal label { display: block; margin: 1rem 0 .45rem; font-weight: 800; }
.modal .button-row { justify-content: flex-start; }
.site-footer { max-width: 1440px; margin: auto; padding: 1.4rem clamp(1rem, 4vw, 3.5rem) 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; border-top: 1px solid #e8e1d1; color: #59665d; font-size: 1rem; line-height: 1.5; }
.noscript { max-width: 760px; margin: 2rem auto; padding: 1.5rem; background: white; border-radius: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 1000px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .site-nav a { min-width: max-content; }
  .guardian-button { margin-left: auto; }
}

@media (max-width: 800px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; }
  .site-nav a { min-width: max-content; }
  .guardian-button { margin-left: auto; }
  .review-ribbon { margin: 0 1rem .3rem; border-radius: .8rem; }
  .hero-card { grid-template-columns: 1fr .6fr; min-height: 340px; }
  .species-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .habitat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header { padding: .6rem 1rem 0; gap: .3rem; }
  .site-nav { gap: .6rem; }
  .site-nav a { min-height: 46px; font-size: 1rem; }
  .guardian-button { min-height: 44px; }
  .review-ribbon { justify-content: flex-start; padding: .6rem .75rem; font-size: 1rem; }
  .page, .home-page { width: min(100% - 1.25rem, 1120px); padding-top: 1.5rem; }
  .hero-card { min-height: 390px; grid-template-columns: 1fr; align-content: start; padding: 1.35rem; border-radius: 1.5rem; }
  .hero-copy { max-width: 24rem; }
  .hero-copy h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .hero-art { position: absolute; right: 0; bottom: 2rem; width: 44%; height: 10rem; min-height: 0; opacity: .74; }
  .sun-disc { width: 7rem; right: 8%; top: 1%; }
  .leaf-shape { width: 4.2rem; height: 8rem; }
  .hero-note { width: 5rem; height: 5rem; font-size: 1rem; }
  .species-grid { grid-template-columns: 1fr; }
  .tile-summary { min-height: 0; }
  .habitat-grid { gap: .65rem; }
  .habitat-card, .habitat-hit { min-height: 142px; }
  .habitat-hit { padding: .8rem; }
  .habitat-pattern { width: 3.8rem; height: 3.8rem; font-size: .93rem; }
  .animal-profile { grid-template-columns: 1fr; gap: 1.2rem; }
  .animal-art img { aspect-ratio: 1.2 / 1; object-fit: contain; }
  .fact-list, .info-panels { grid-template-columns: 1fr; }
  .fact-list li { min-height: auto; }
  .media-notice { flex-wrap: wrap; align-items: flex-start; }
  .media-status { width: 100%; }
  .compare-selects { grid-template-columns: 1fr; }
  .collection-row { grid-template-columns: 2.7rem 1fr; }
  .collection-row .inline-link { grid-column: 2; }
  .source-row { align-items: flex-start; flex-direction: column; }
  .source-row a { min-height: 44px; }
  .site-footer { padding-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
