:root {
  --ink: #17343a;
  --muted: #5c7478;
  --teal: #0d5962;
  --teal-dark: #083e47;
  --aqua: #dff5f1;
  --cream: #f7f6f1;
  --line: #d7e2df;
  --white: #fff;
  --shadow: 0 12px 30px rgba(23, 52, 58, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
.container { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); padding: .75rem; z-index: 3; }
.skip-link:focus { left: 1rem; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark { background: var(--teal); color: #fff; border-radius: 8px; padding: .2rem .45rem; letter-spacing: .08em; font-size: .8rem; }
.brand-name { font-size: .95rem; }
nav a { text-decoration: none; margin-left: 1.1rem; font-size: .92rem; }
nav a.active { color: var(--ink); font-weight: 700; }
.hero { background: linear-gradient(120deg, #e4f5f0, #f8f5e9); padding: 4.5rem 0 3.5rem; }
.hero h1 { max-width: 680px; font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.04; margin: .5rem 0 1.1rem; letter-spacing: -.045em; }
.hero p { max-width: 650px; font-size: 1.12rem; color: var(--muted); margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; color: var(--teal); }
.finder-wrap { margin-top: -2rem; position: relative; }
.finder { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2rem); }
.finder h2 { margin-top: 0; margin-bottom: .3rem; }
.finder-intro { color: var(--muted); margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
label { display: block; font-weight: 700; font-size: .9rem; }
select, button { width: 100%; border: 1px solid #afc8c5; border-radius: 7px; background: #fff; color: var(--ink); padding: .78rem .8rem; font: inherit; margin-top: .35rem; }
select:focus, button:focus, a:focus { outline: 3px solid #f1c75b; outline-offset: 2px; }
button, .button { background: var(--teal); color: #fff; border: 0; text-decoration: none; display: inline-block; text-align: center; font-weight: 750; cursor: pointer; }
button:hover, .button:hover { color: #fff; background: var(--teal-dark); }
.button-small { padding: .58rem .78rem; font-size: .85rem; }
.form-help { color: var(--muted); font-size: .82rem; margin: .35rem 0 0; font-weight: 400; }
.finder-action { display: flex; flex-direction: column; }
.finder-action-spacer { visibility: hidden; display: block; min-height: 1.35rem; margin-bottom: .35rem; font-size: .9rem; font-weight: 700; }
.finder-action button { margin-top: 0; }
.hidden { display: none !important; }
.finder-results { margin-top: 1.5rem; }
.finder-results h2 { font-size: 1.35rem; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem; display: flex; flex-direction: column; }
.result-card h3 { margin: .5rem 0 .35rem; font-size: 1.1rem; line-height: 1.25; }
.result-card p { color: var(--muted); margin: .35rem 0; }
.result-card-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; font-size: .72rem; }
.tag { color: var(--teal); font-weight: 800; letter-spacing: .08em; }
.confidence { color: var(--muted); }
.condition { font-size: .87rem; }
.card-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: auto; padding-top: .8rem; }
.text-link { font-size: .84rem; font-weight: 700; }
.section { padding: 3.5rem 0; }
.section h2 { font-size: 1.85rem; line-height: 1.15; margin-top: 0; }
.section-lead { color: var(--muted); max-width: 720px; }
.info-grid, .family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.info-card, .family-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; }
.info-card h3, .family-card h3 { margin-top: 0; }
.info-card p, .family-card p { color: var(--muted); }
.family-card a { font-weight: 700; }
.notice { border-left: 4px solid #e4b23c; background: #fff8df; padding: 1rem 1.1rem; color: #5c4a14; border-radius: 0 8px 8px 0; }
.breadcrumbs { margin: 1.5rem auto 0; width: min(1100px, calc(100% - 2rem)); }
.breadcrumbs ol { list-style: none; display: flex; gap: .5rem; padding: 0; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: #9bb1af; }
.page-header { padding: 3rem 0 2rem; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3.3rem); max-width: 780px; line-height: 1.08; margin: .5rem 0 .8rem; letter-spacing: -.035em; }
.page-header p { max-width: 740px; color: var(--muted); font-size: 1.05rem; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 2.5rem; align-items: start; }
.answer-panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; box-shadow: var(--shadow); }
.answer-panel h2 { margin-top: 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1.2rem 0; }
.fact { border-top: 2px solid var(--aqua); padding-top: .5rem; }
.fact dt { color: var(--muted); font-size: .8rem; }
.fact dd { margin: .15rem 0 0; font-weight: 700; }
.sidebar { background: #edf8f5; border-radius: 10px; padding: 1.2rem; }
.sidebar h2 { font-size: 1.05rem; margin-top: 0; }
.sidebar ul { margin: 0; padding-left: 1.1rem; }
.source-list { padding-left: 1.1rem; }
.source-list li { margin-bottom: .75rem; }
.source-list span { display: block; color: var(--muted); font-size: .75rem; }
.site-footer { background: var(--ink); color: #d9e9e5; padding: 2rem 0; margin-top: 3rem; }
.site-footer p { max-width: 460px; color: #aac5bf; margin-bottom: 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; align-content: start; }
.site-footer a { color: #d9e9e5; }
.empty { background: #fff; border: 1px dashed #a9bfbc; border-radius: 8px; padding: 1rem; color: var(--muted); }
.small { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: .9rem 0; }
  nav a { margin: 0 1rem 0 0; }
  .hero { padding: 3rem 0 3rem; }
  .form-grid, .result-grid, .info-grid, .family-grid, .content-layout { grid-template-columns: 1fr; }
  .content-layout { gap: 1.2rem; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}
