:root {
  --bg: #faf7f3;
  --paper: #fff;
  --ink: #2d2218;
  --muted: #74695e;
  --line: #e8ddcf;
  --leaf: #568b72;
  --leaf-dark: #28645a;
  --leaf-soft: #edf7f2;
  --sun: #e9a13a;
  --latin-font: "Avenir Next", "Trebuchet MS", "Helvetica Neue", sans-serif;
  --display-font: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); font-family: var(--latin-font); line-height: 1.65; background: radial-gradient(circle at 10% 0%, rgba(86,139,114,.11), transparent 32rem), var(--bg); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display-font); }

.page-header, main, footer { width: min(1120px, calc(100vw - 40px)); margin-inline: auto; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-link img { width: 50px; height: 50px; object-fit: contain; }
.brand-link span { display: grid; line-height: 1.2; }
.brand-link strong { font-size: .92rem; }
.brand-link small { color: var(--leaf-dark); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.home-link { padding: 9px 14px; border: 1px solid rgba(86,139,114,.25); border-radius: 999px; color: var(--leaf-dark); font-size: .78rem; font-weight: 800; text-decoration: none; }

.sources-hero { display: grid; grid-template-columns: minmax(0,1fr) 210px; gap: clamp(28px,7vw,90px); align-items: center; padding: clamp(42px,7vw,74px); border: 1px solid rgba(86,139,114,.18); border-radius: 32px; background: radial-gradient(circle at 85% 28%, rgba(233,161,58,.15), transparent 18rem), linear-gradient(135deg,#fff,#f4faf7); box-shadow: 0 18px 48px rgba(45,34,24,.07); }
.eyebrow { color: var(--leaf-dark); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.sources-hero h1 { margin-top: 7px; font-size: clamp(2.7rem,7vw,5.1rem); line-height: .98; }
.hero-intro { max-width: 690px; margin-top: 22px; color: var(--muted); font-size: clamp(1rem,2vw,1.18rem); }
.hero-icon { display: grid; width: 190px; height: 190px; place-items: center; border-radius: 50%; background: rgba(86,139,114,.1); }
.hero-icon svg { width: 128px; fill: rgba(86,139,114,.08); stroke: var(--leaf); stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }

.section-jump { display: flex; gap: 10px; margin: 20px 0 72px; padding: 12px; border: 1px solid rgba(45,34,24,.07); border-radius: 18px; background: var(--paper); }
.section-jump a { flex: 1; padding: 11px 16px; border-radius: 12px; color: var(--leaf-dark); font-size: .8rem; font-weight: 850; text-align: center; text-decoration: none; }
.section-jump a:hover { background: var(--leaf-soft); }

.page-section { scroll-margin-top: 24px; padding-bottom: 76px; }
.section-heading { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 22px; align-items: start; max-width: 890px; }
.section-number { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: var(--leaf-dark); background: var(--leaf-soft); font-size: .75rem; font-weight: 900; }
.section-heading h2 { margin-top: 5px; font-size: clamp(2rem,5vw,3.45rem); line-height: 1.05; }
.section-heading h2 + p { max-width: 780px; margin-top: 14px; color: var(--muted); }

.book-citation { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 20px; align-items: center; margin-top: 30px; padding: 28px; border: 1px solid rgba(86,139,114,.18); border-radius: 22px; background: var(--leaf-soft); }
.book-mark { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 19px; color: #fff; background: var(--leaf); font-family: var(--display-font); font-size: 2rem; font-weight: 800; }
.citation-label { color: var(--leaf-dark); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.book-citation h3 { margin-top: 2px; font-size: 1.55rem; line-height: 1.2; }
.book-citation h3 + p { margin-top: 5px; color: #527064; font-size: .86rem; }

.level-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.level-card { --accent: #568b72; padding: 28px; border: 1px solid rgba(45,34,24,.08); border-top: 5px solid var(--accent); border-radius: 20px; background: var(--paper); box-shadow: 0 8px 25px rgba(45,34,24,.04); }
.level-card.is-one { --accent: #be5b49; }.level-card.is-two { --accent: #6d8a4f; }.level-card.is-three { --accent: #517b8d; }.level-card.is-four { --accent: #8f6988; }
.level-card > span { color: var(--accent); font-size: .68rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.level-card h3 { margin-top: 3px; font-size: 1.6rem; }
.level-card h3 + p { min-height: 54px; margin-top: 8px; color: var(--muted); font-size: .84rem; }
.level-card div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.level-card a { padding: 7px 12px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white); font-size: .73rem; font-weight: 850; text-decoration: none; }
.method-note { margin-top: 18px; padding: 22px 25px; border-left: 4px solid var(--sun); border-radius: 0 18px 18px 0; background: #fff5e5; }
.method-note strong { color: #86530e; }.method-note p { margin-top: 5px; color: #735f43; font-size: .84rem; }
.tool-citation { align-items: start; background: #f1f6fb; border-color: rgba(81,123,141,.2); }
.tool-citation .book-mark { background: #517b8d; }
.tool-citation .citation-label { color: #3f687a; }
.tool-citation .citation-detail { margin-top: 12px; color: var(--muted); font-size: .8rem; }
.citation-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.citation-links a { padding: 7px 12px; border-radius: 999px; color: #3f687a; background: rgba(81,123,141,.1); font-size: .72rem; font-weight: 850; text-decoration: none; }
.citation-links a:hover { background: rgba(81,123,141,.17); }

.research-policy { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 30px; }
.research-policy > div { padding: 20px; border: 1px solid rgba(45,34,24,.07); border-radius: 18px; background: var(--paper); }
.research-policy strong, .research-policy span { display: block; }
.research-policy strong { color: var(--leaf-dark); font-size: .82rem; }.research-policy span { margin-top: 5px; color: var(--muted); font-size: .76rem; }

.source-tools { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 30px; }
.source-tools label { display: grid; flex: 1; gap: 6px; max-width: 540px; color: var(--muted); font-size: .72rem; font-weight: 850; }
.source-tools input { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--paper); font: inherit; }
.source-tools input:focus { outline: 3px solid rgba(86,139,114,.18); border-color: var(--leaf); }
.source-tools > p { color: var(--leaf-dark); font-size: .78rem; font-weight: 850; }
.category-filters { display: flex; gap: 7px; overflow-x: auto; padding: 14px 0 18px; scrollbar-width: thin; }
.category-filters button { flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); font: 750 .7rem var(--latin-font); cursor: pointer; }
.category-filters button.is-active { border-color: var(--leaf); color: #fff; background: var(--leaf); }

.story-sources { display: grid; gap: 10px; }
.story-source-card { overflow: hidden; border: 1px solid rgba(45,34,24,.09); border-radius: 18px; background: var(--paper); }
.story-source-card summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; padding: 18px 22px; cursor: pointer; list-style: none; }
.story-source-card summary::-webkit-details-marker { display: none; }
.story-source-heading { display: grid; }.story-category { color: var(--leaf-dark); font-size: .63rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }.story-title { margin-top: 2px; font-family: var(--display-font); font-size: 1.2rem; line-height: 1.25; }.story-title-en { margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 650; }
.story-source-meta { flex: 0 0 auto; color: var(--muted); font-size: .7rem; font-weight: 800; }
.story-source-card[open] summary { border-bottom: 1px solid var(--line); background: #fcfbf8; }
.story-source-body { padding: 22px; }
.story-link { display: inline-block; padding: 8px 14px; border-radius: 999px; color: #fff; background: var(--leaf-dark); font-size: .74rem; font-weight: 850; text-decoration: none; }
.citation-group { margin-top: 24px; }.citation-group h3 { font-family: var(--latin-font); font-size: .9rem; }.citation-list { display: grid; gap: 12px; margin: 11px 0 0; padding-left: 22px; }.citation-list li { padding-left: 4px; color: var(--muted); font-size: .78rem; }.citation-list strong, .citation-url { display: block; }.citation-list strong { color: #4a4037; }.citation-url { margin-top: 2px; overflow-wrap: anywhere; color: #7d756d; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: .66rem; line-height: 1.45; }
.empty-state { padding: 34px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }

footer { display: flex; align-items: center; gap: 14px; padding: 24px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
footer img { width: 46px; height: 46px; object-fit: contain; }.footer-copy { display: grid; flex: 1; gap: 3px; }.footer-copy small { color: #7b7770; font-size: .68rem; }footer > a { color: var(--leaf-dark); font-weight: 800; }

@media (max-width: 760px) {
  .sources-hero { grid-template-columns: minmax(0,1fr) 140px; padding: 38px 30px; }.hero-icon { width: 135px; height: 135px; }.hero-icon svg { width: 90px; }
  .level-grid, .research-policy { grid-template-columns: 1fr; }.level-card h3 + p { min-height: 0; }
}
@media (max-width: 520px) {
  .page-header { align-items: flex-start; }.brand-link strong { font-size: .78rem; }.home-link { padding: 8px 10px; font-size: .7rem; }
  .sources-hero { grid-template-columns: 1fr; padding: 34px 24px; }.hero-icon { display: none; }.sources-hero h1 { font-size: clamp(2.6rem,14vw,3.6rem); }
  .section-jump { display: grid; margin-bottom: 54px; }.section-heading { grid-template-columns: 1fr; gap: 12px; }.book-citation { grid-template-columns: 54px minmax(0,1fr); padding: 22px; }.book-mark { width: 52px; height: 52px; border-radius: 15px; font-size: 1.45rem; }
  .source-tools { align-items: stretch; flex-direction: column; gap: 8px; }.story-source-card summary { align-items: flex-start; padding: 16px; }.story-source-meta { max-width: 72px; text-align: right; }.story-source-body { padding: 18px 16px; }
  footer { align-items: flex-start; flex-wrap: wrap; }.footer-copy { flex-basis: calc(100% - 60px); }footer > a { margin-left: 60px; }
}
