/* Juniper.org public site.
   Layout: calm single column of full-width bands; purple and teal from the Foundation logo,
   juniper-berry blue reserved for Juniper herself on timelines. */
:root {
  --ink: #2a2438; --ink-soft: #5d5670; --bg: #fbfafd; --surface: #ffffff; --tint: #f3f0f9; --tint-teal: #e9f5f3;
  --teal: #0e7c78; --teal-deep: #0a5e5b; --purple: #6b4fa0; --lav: #b9a3dc; --berry: #2e6db4;
  --line: #e3ddee; --deep: #2f2548; --urgent: #b3261e; --urgent-bg: #fdf1ef; --ok: #1f6f43; --ok-bg: #eaf6ee;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 10px; --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; } .narrow-left { max-width: 860px; margin-left: auto; margin-right: auto; }
.center { text-align: center; } .muted { color: var(--ink-soft); } .small { font-size: .9rem; }
.sr, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--purple); margin-bottom: .6em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }

/* Buttons */
.btn { display: inline-block; background: var(--teal); color: #fff; font: 600 1rem/1.2 var(--body); padding: .8em 1.25em; border: 2px solid var(--teal); border-radius: 999px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: #9dcfcb; }
.btn-ghost:hover { background: var(--tint-teal); color: var(--teal-deep); border-color: var(--teal); }
.btn-urgent { background: var(--urgent); border-color: var(--urgent); } .btn-urgent:hover { background: #8f1d17; border-color: #8f1d17; }
.btn-light { background: #fff; color: var(--deep); border-color: #fff; } .btn-light:hover { background: var(--tint); color: var(--deep); border-color: var(--tint); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); } .btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-small { padding: .55em 1em; font-size: .92rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0; } .cta-row.center { justify-content: center; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--teal-deep); } .link-arrow::after { content: " \2192"; }

/* Header */
.urgent-bar { background: var(--deep); color: #efeaf8; font-size: .9rem; padding: 7px 0; }
.urgent-bar a { color: #fff; font-weight: 600; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 58px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 600 1.45rem/1 var(--display); color: var(--teal-deep); } .brand-name span { color: var(--purple); }
.brand-sub { font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--line); border-radius: 8px; padding: 8px 14px; font: 600 .95rem var(--body); color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.site-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a { display: block; padding: 24px 9px; font-size: .93rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav > ul > li.active > a, .site-nav > ul > li > a:hover { color: var(--teal-deep); box-shadow: inset 0 -3px 0 var(--teal); }
.sub-toggle { display: none; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: 0 14px 30px rgba(47,37,72,.12); }
.site-nav li:hover > .sub, .site-nav li:focus-within > .sub { display: block; }
.site-nav > ul > li:nth-last-child(-n+2) .sub { left: auto; right: 0; }
.sub a { display: block; padding: 8px 10px; border-radius: 6px; font-size: .94rem; text-decoration: none; color: var(--ink); }
.sub a:hover { background: var(--tint); color: var(--purple); }
.nav-search input { width: 150px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .9rem; background: var(--bg); }
@media (max-width: 1340px) { .nav-search { display: none; } }
.site-nav .btn { white-space: nowrap; }
@media (max-width: 1220px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 20px 20px; max-height: calc(100vh - 110px); overflow: auto; }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; }
  .site-nav > ul > li { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); }
  .site-nav > ul > li > a { padding: 14px 0; box-shadow: none !important; }
  .sub-toggle { display: block; width: 48px; background: none; border: 0; cursor: pointer; }
  .sub-toggle::before { content: "+"; font: 400 1.5rem var(--body); color: var(--purple); } .sub-toggle[aria-expanded="true"]::before { content: "\2212"; }
  .sub, .site-nav li:hover > .sub, .site-nav li:focus-within > .sub { display: none; position: static; grid-column: 1 / -1; border: 0; box-shadow: none; padding: 0 0 10px; }
  .site-nav li.open > .sub { display: block; }
  .nav-search { display: block; } .nav-search input { width: 100%; margin-top: 12px; }
  .site-nav .btn { text-align: center; margin-top: 10px; }
}

/* Bands */
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section-tint { background: var(--tint); }
.section-deep { background: var(--deep); color: #e9e3f5; } .section-deep h2, .section-deep h3 { color: #fff; } .section-deep a:not(.btn) { color: #cfe9e6; }
.page-head { background: linear-gradient(180deg, var(--tint), var(--bg)); padding: 28px 0 36px; border-bottom: 1px solid var(--line); }
.head-urgent { background: linear-gradient(180deg, var(--urgent-bg), var(--bg)); } .head-pro { background: linear-gradient(180deg, var(--tint-teal), var(--bg)); }
.crumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; } .crumbs a { color: var(--ink-soft); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* Home */
.hero { background: radial-gradient(1000px 420px at 85% 0%, #e7f4f2 0%, transparent 70%), linear-gradient(180deg, var(--tint), var(--bg)); padding: clamp(36px, 6vw, 72px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
.hero-logo { background: #fdfdfd; border-radius: 28px; padding: 14px; box-shadow: 0 18px 50px rgba(47,37,72,.12); }
.hero-logo img { display: block; border-radius: 18px; width: 100%; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-logo { max-width: 300px; } }
.search-band { background: var(--surface); border-block: 1px solid var(--line); padding: 22px 0; }
.big-search label { display: block; font-weight: 600; margin-bottom: 8px; }
.big-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.big-search input { flex: 1 1 260px; min-width: 0; padding: 14px 18px; font: inherit; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); }
.story-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 820px) { .story-intro { grid-template-columns: minmax(0, 1fr); } }
.span-strip { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 3px solid var(--lav); }
.span-strip li { position: relative; padding: 18px 12px 0 0; }
.span-strip li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--teal); border: 3px solid var(--bg); }
.span-strip li.berry::before { background: var(--berry); width: 19px; height: 19px; top: -11px; box-shadow: 0 0 0 4px rgba(46,109,180,.18); }
.span-strip b { display: block; font: 500 1.3rem/1.2 var(--display); } .span-strip span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 820px) { .span-strip { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 3px solid var(--lav); margin-left: 8px; } .span-strip li { padding: 0 0 18px 22px; } .span-strip li::before { left: -9px; top: 6px; } .span-strip li.berry::before { left: -11px; top: 4px; } }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.path { background: var(--surface); border-radius: var(--r); padding: 28px; text-decoration: none; color: var(--ink); border-top: 5px solid var(--purple); display: flex; flex-direction: column; }
.path:nth-child(2) { border-top-color: var(--teal); } .path:nth-child(3) { border-top-color: var(--berry); }
.path p { color: var(--ink-soft); flex: 1; } .path:hover { box-shadow: 0 10px 28px rgba(47,37,72,.12); color: var(--ink); }
@media (max-width: 820px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.signs-band { background: var(--urgent-bg); } .signs-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.signs-band .eyebrow { color: var(--urgent); }
@media (max-width: 820px) { .signs-grid { grid-template-columns: minmax(0, 1fr); } }
.urgent-box { background: var(--surface); border: 2px solid var(--urgent); border-radius: var(--r); padding: 16px 20px; margin: 0 0 1.4em; color: #5c1410; }
.urgent-box strong { color: var(--urgent); }
.cards-4, .cards-3 { display: grid; gap: 20px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.card p { color: var(--ink-soft); flex: 1; } .card:hover { border-color: var(--teal); color: var(--ink); }
.count { font-size: .85rem; font-weight: 700; color: var(--purple); }
.vision-card { background: linear-gradient(140deg, #efe9fa, #e4f3f1); border-radius: var(--r); padding: 30px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; color: var(--ink); }
.section-deep .panel h3 { color: var(--ink); } .section-deep .panel a:not(.btn) { color: var(--teal-deep); }
.pro-points > div { border-left: 4px solid var(--teal); padding-left: 18px; } .pro-points p { color: var(--ink-soft); }

/* Video and photos */
.video { aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--r); overflow: hidden; background: linear-gradient(135deg, #4b3a78, #0e6d69); position: relative; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-link { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-decoration: none; text-align: center; padding: 16px; }
.video-link:hover { color: #fff; }
.play { width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.95); position: relative; }
.play::after { content: ""; position: absolute; left: 30px; top: 22px; border-left: 22px solid var(--purple); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.video-title { font: 500 1.35rem var(--display); } .video-hint { font-size: .82rem; opacity: .85; }
.photo { margin: 18px 0 0; } .photo img { border-radius: var(--r); display: block; width: 100%; background: var(--tint); min-height: 60px; }
.photo figcaption { font-size: .86rem; color: var(--ink-soft); margin-top: 6px; }

/* Story timeline */
.ga-scale { margin: 0 6% 56px; } .ga-scale p { text-align: center; font-size: .85rem; color: var(--ink-soft); margin: 46px 0 0; }
.ga-track { position: relative; height: 8px; background: var(--line); border-radius: 4px; }
.ga-fill { position: absolute; top: 0; height: 8px; background: var(--lav); border-radius: 4px 0 0 4px; } .ga-fill-2 { background: var(--teal); border-radius: 0 4px 4px 0; }
.ga-track i { position: absolute; top: -5px; transform: translateX(-50%); font-style: normal; font-size: .8rem; color: var(--ink-soft); text-align: center; padding-top: 24px; white-space: nowrap; }
.ga-track i::before { content: ""; position: absolute; top: 0; left: 50%; margin-left: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); border: 3px solid var(--bg); }
.ga-track i.berry::before { background: var(--berry); } .ga-track i b { display: block; font: 600 1rem var(--display); color: var(--ink); }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; }
.tl-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding-bottom: 44px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 213px; top: 8px; bottom: -8px; width: 2px; background: var(--line); } .tl-item:last-child::before { display: none; }
.tl-body { position: relative; padding-left: 34px; }
.tl-body::before { content: ""; position: absolute; left: -12px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); border: 3px solid var(--bg); }
.tl-juniper .tl-body::before { background: var(--berry); box-shadow: 0 0 0 5px rgba(46,109,180,.18); }
.tl-when { text-align: right; } .tl-when time { display: block; font-weight: 700; }
.tl-marker { display: inline-block; margin-top: 6px; font: 500 1rem var(--display); color: var(--purple); background: var(--tint); border-radius: 999px; padding: 2px 12px; }
.tl-body h2 { font-size: 1.5rem; } .tl-body .photo { max-width: 460px; }
@media (max-width: 700px) { .tl-item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 26px; } .tl-item::before { left: 7px; } .tl-when { text-align: left; } .tl-body { padding-left: 0; } .tl-body::before { left: -26px; top: -22px; } .ga-scale { display: none; } }
.news-item { border-left: 4px solid var(--purple); padding-left: 16px; margin-bottom: 18px; } .news-item h3 { font-size: 1.1rem; }

/* Topic hubs and articles */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.topic-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; text-decoration: none; color: var(--ink); display: block; }
.topic-card h3 { font-size: 1.15rem; margin-bottom: .3em; color: var(--teal-deep); } .topic-card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.topic-card:hover { border-color: var(--teal); background: #fcfffe; color: var(--ink); } .topic-card.is-urgent { border-left: 4px solid var(--urgent); }
.chip { display: inline-block; white-space: nowrap; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--purple); margin-top: 10px; }
.chip-urgent { background: var(--urgent-bg); color: var(--urgent); }
.note { margin-top: 26px; font-size: .92rem; color: var(--ink-soft); border-left: 3px solid var(--lav); padding-left: 14px; max-width: 80ch; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(28px, 5vw, 64px); padding-top: 40px; padding-bottom: 72px; }
@media (max-width: 900px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 70ch; min-width: 0; } .prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .45em; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--ink-soft); align-items: center; margin: 0; }
.badge, .tag { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; }
.badge-reviewed { background: var(--ok-bg); color: var(--ok); } .badge-indexed { background: #eef0f6; color: #47506b; } .badge-flag { background: var(--urgent-bg); color: var(--urgent); margin-left: 6px; }
.tag { background: var(--tint); color: var(--purple); } .tag-guideline { background: var(--tint-teal); color: var(--teal-deep); }
.review-note { background: #f1f2f8; border-left: 4px solid #8a93b3; padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; margin: 1.2em 0; font-size: .97rem; }
.questions { list-style: none; padding: 0 !important; } .questions li { background: var(--tint); border-radius: 8px; padding: 12px 16px 12px 44px; position: relative; }
.questions li::before { content: "?"; position: absolute; left: 14px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--purple); color: #fff; font: 700 .85rem/22px var(--body); text-align: center; }
.sources { font-size: .97rem; } .article-foot { margin-top: 2.4em; padding-top: 1em; border-top: 1px solid var(--line); }
.side { align-self: start; position: sticky; top: 96px; font-size: .95rem; } .side h2 { font: 700 .8rem var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--purple); }
.side ul { list-style: none; padding: 0; margin: 0 0 1.2em; border-left: 2px solid var(--line); } .side a { display: block; padding: 6px 14px; text-decoration: none; color: var(--ink-soft); margin-left: -2px; border-left: 2px solid transparent; }
.side a:hover { color: var(--teal-deep); } .side a[aria-current] { color: var(--teal-deep); font-weight: 700; border-left-color: var(--teal); }
@media (max-width: 900px) { .side { position: static; } }
.signs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 1em; }
.signs li { background: var(--surface); border: 1px solid #efc9c5; border-left: 4px solid var(--urgent); border-radius: 6px; padding: 10px 14px; font-weight: 600; font-size: .97rem; }
@media (max-width: 560px) { .signs { grid-template-columns: minmax(0, 1fr); } }
.plain { padding-left: 1.2em; } .plain li { margin-bottom: .6em; }
.link-list { list-style: none; padding: 0; } .link-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.advisor { border-top: 1px solid var(--line); padding-top: 1em; }

/* Research */
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.filters .field { margin: 0; flex: 1 1 150px; min-width: 0; } .filters .grow { flex: 3 1 280px; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 28px; margin: 20px 0; font-size: .9rem; color: var(--ink-soft); } .legend p { margin: 0; }
.result-count { font-weight: 700; margin: 18px 0 12px; }
.study-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; } .study-list { display: grid; gap: 12px; }
.study-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; min-width: 0; }
.study-card h3 { font-size: 1.08rem; line-height: 1.3; margin: .5em 0 .4em; } .study-card h3 a { text-decoration: none; color: var(--ink); } .study-card h3 a:hover { color: var(--teal-deep); text-decoration: underline; }
.study-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; } .study-src, .study-ga { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.h-study { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-top: .4em; }
.research-foot { margin-top: 56px; } .empty { background: var(--tint); padding: 18px; border-radius: var(--r); }
.pager { display: flex; gap: 6px; margin-top: 22px; } .pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; } .pager a[aria-current] { background: var(--teal); color: #fff; border-color: var(--teal); }
.table-wrap { overflow-x: auto; } .facts { border-collapse: collapse; width: 100%; font-size: .97rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); } .facts th { width: 34%; color: var(--ink-soft); font-weight: 600; }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 1em; } .tabs button { background: none; border: 0; padding: 10px 16px; font: 600 1rem var(--body); color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button[aria-selected="true"] { color: var(--teal-deep); border-bottom-color: var(--teal); }
.results { list-style: none; padding: 0; } .results li { padding: 14px 0; border-bottom: 1px solid var(--line); } .results a { font: 500 1.2rem var(--display); } .results p { margin: 4px 0 0; color: var(--ink-soft); }

/* Clinician center, media */
.kit-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.kit { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }
.kit h3 { font-size: 1.1rem; margin: 0 0 .2em; } .kit p { margin: 0; } .kit-pending { background: transparent; border-style: dashed; } .kit-pending h3 { color: var(--ink-soft); }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 16px; font: 600 .92rem var(--body); color: var(--ink); cursor: pointer; } .chip-btn[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; } .media-item { min-width: 0; } .media-item .photo { margin-top: 0; }
.media-link { display: block; background: var(--tint); border-radius: var(--r); padding: 22px; text-decoration: none; color: var(--ink); } .media-link h3 { margin: .5em 0 0; font-size: 1.15rem; }
.tax-note { background: var(--surface); border-left: 4px solid var(--purple); padding: 12px 16px; font-size: .97rem; }

/* Forms */
.form { display: grid; gap: 14px; } .field { display: grid; gap: 5px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; } .opt { font-weight: 400; color: var(--ink-soft); font-size: .82rem; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid #cfc7df; border-radius: 8px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(14,124,120,.2); }
.checks-row { display: flex; flex-wrap: wrap; gap: 6px 18px; } .check { display: flex; gap: 8px; align-items: flex-start; font-size: .96rem; } .check input { margin-top: 5px; flex: none; width: auto; }
.form-foot { display: grid; gap: 8px; justify-items: start; } .form-foot p { margin: 0; }
.flash { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--r); font-weight: 600; } .flash-ok { background: var(--ok-bg); color: var(--ok); } .flash-err { background: var(--urgent-bg); color: var(--urgent); }

/* Footer */
.site-footer { background: #231c36; color: #cfc8de; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #e6e0f2; text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
.footer-about img { border-radius: 16px; width: 150px; background: #fff; } .footer-about p { margin-top: 14px; }
.site-footer h2 { font: 700 .8rem var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--lav); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin-bottom: 8px; }
.disclaimer { margin: 36px 0 18px; padding-top: 22px; border-top: 1px solid #40365a; font-size: .88rem; max-width: 90ch; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .85rem; } .footer-legal span:last-child { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Printable sheets */
.print-page { background: #ecebf0; } .print-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 8.5in; margin: 0 auto; padding: 14px 16px; }
.sheet { background: #fff; max-width: 8.5in; margin: 0 auto 40px; padding: .6in .7in; box-shadow: 0 6px 30px rgba(0,0,0,.12); }
.sheet-head { display: flex; gap: 22px; align-items: center; border-bottom: 3px solid var(--teal); padding-bottom: 16px; margin-bottom: 20px; } .sheet-head img { width: 120px; flex: none; }
.sheet-head h1 { font-size: 1.9rem; margin: 0; } .sheet-body h2 { font-size: 1.2rem; margin: 1.2em 0 .4em; color: var(--teal-deep); } .sheet-body { font-size: .98rem; max-width: none; }
.checks { list-style: none; padding-left: 0 !important; } .checks li { padding-left: 30px; position: relative; } .checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border: 2px solid var(--purple); border-radius: 3px; }
.write-lines { height: 150px; background: repeating-linear-gradient(transparent, transparent 35px, #c9c2d8 35px, #c9c2d8 36px); }
.handout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.qr-box { text-align: center; border: 2px solid var(--line); border-radius: var(--r); padding: 20px; } .qr-box svg { width: 100%; max-width: 210px; height: auto; }
.in-memory { margin-top: 24px; font: italic 400 1.05rem var(--display); color: var(--purple); text-align: center; }
.sheet-foot { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-soft); } .sheet-foot p { margin: 0; }
@media (max-width: 640px) { .sheet { padding: 24px 20px; } .handout-grid { grid-template-columns: minmax(0, 1fr); } .sheet-head { flex-direction: column; align-items: flex-start; } }
@media print { .no-print, .site-header, .site-footer, .urgent-bar { display: none !important; } .print-page { background: #fff; } .sheet { box-shadow: none; margin: 0; padding: 0; max-width: none; } @page { margin: .6in; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Photos inside articles and story pages */
.prose figure { margin: 26px 0; }
.prose figure img { display: block; margin: 0 auto; border-radius: var(--r); max-height: 520px; width: auto; max-width: 100%; }
.prose figcaption { text-align: center; font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line, #e3e6ea); }
.prose th { background: var(--tint, #f4f7f6); }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
.kit-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* Answer Hub */
.quick-answer { background: var(--surface); border-left: 4px solid var(--teal); border-radius: var(--r); padding: 16px 20px; margin: 0 0 24px; }
.quick-answer p { margin: 0; } .quick-answer .eyebrow { margin-bottom: 6px; }
.answer-latest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; margin: 24px 0; }
.answer-latest h2 { margin: 4px 0 8px; font-size: 1.35rem; } .answer-latest p { margin: 0; }
.answer-filter { display: grid; gap: 6px; max-width: 520px; margin: 0 0 24px; }
.answer-filter input { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: var(--bg); }
.answer-group { margin: 0 0 28px; } .answer-group h2 { font-size: 1.2rem; }
.answer-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px 24px; }
.answer-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.related-links { padding-left: 1.2em; }
