:root {
  --paper: #f5f5ee;
  --white: #fdfdf8;
  --ink: #15241e;
  --muted: #52615a;
  --accent: #235744;
  --accent-dark: #174c38;
  --accent-light: #e4ece2;
  --line: #d4d9cc;
  --green: #143c2e;
  --lime: #dbed9d;
  --forest: #122d23;
  --radius: 5px;
  --serif: "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
}

.shell { width: min(1320px, calc(100% - 96px)); }
.masthead { background: var(--paper); }
.masthead-inner { gap: 24px; }
.brand { gap: 12px; }
.brand strong { background: var(--forest); color: var(--lime); padding: 9px 10px; font-size: 20px; letter-spacing: -.055em; }
.brand span { font-size: 16px; font-weight: 700; border: 0; padding: 0; }
.primary-nav { gap: 6px; }
.primary-nav a { padding-inline: 15px; color: var(--ink); }
.primary-nav a:hover, .primary-nav [aria-current] { color: var(--accent-dark); text-decoration: none; box-shadow: inset 0 -2px var(--accent); }
.search-launch { border-color: var(--line); border-radius: 3px; }
.button, button, input, select, textarea { border-radius: 4px; }
.site-footer { padding-block: 36px; background: var(--forest); color: #e5eee4; border: 0; }
.site-footer a { color: #e5eee4; }
.main { padding-block: 42px 88px; }
.main[data-view="home"] { padding-top: 28px; }
.page-head { gap: 14px; margin-bottom: 24px; padding-block: 6px 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(33px, 4.4vw, 60px); font-weight: 750; letter-spacing: -.06em; }
.page-head p { max-width: 65ch; }
.section-head { padding-top: 6px; }
.feature-title { font-size: clamp(32px, 4.5vw, 63px); line-height: 1.14; letter-spacing: -.055em; }
.detail-head { padding-block: 12px 24px; }
.detail-layout { gap: clamp(22px, 4vw, 58px); }
.card, .row-list .row { border-color: var(--line); box-shadow: none; }
.card h3 a, .atlas-row h3 a, .home-feature h3 a, .peer-list h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover, .atlas-row h3 a:hover, .home-feature h3 a:hover, .peer-list h3 a:hover { text-decoration: underline; }
.tag { background: #ecefe6; border-radius: 2px; color: #3b5147; }
.tag[data-tone="good"] { background: #deebc9; color: #274e34; }
.highlight-box, .study-evidence, .atlas-notes { background-color: #e9eee4; }
.experience { border-color: var(--line); background-color: #f0f1e8; }
.experience blockquote { border-color: #657c62; }
.book-list-entry { border-radius: 5px; border-color: var(--line); background: var(--white); }
.book-list-entry:hover { background: var(--accent-light); }
.book-list-entry::before { content: ""; width: 8px; align-self: stretch; background: var(--accent); }
.book-list-entry > div:first-of-type { flex: 1; }
.book-chapters, .reader-toc { border-color: var(--line); }
.video-row, .search-result, .report-section, .compare-group { border-color: var(--line); }
.video-row:hover { background-color: var(--white); }

.atlas-hero { display: grid; grid-template-columns: 1fr 1.03fr; background: var(--forest); color: var(--white); }
.atlas-hero-copy { padding: clamp(32px, 4.5vw, 70px); align-self: center; }
.atlas-kicker { font-weight: 700; font-size: 14px; letter-spacing: .12em; color: var(--lime); margin-bottom: 16px; }
.atlas-hero h1 { font-weight: 800; font-size: clamp(44px, 5.5vw, 85px); letter-spacing: -.072em; line-height: 1.09; }
.atlas-hero .hero-description { max-width: 31em; color: #e2eae2; margin: 26px 0 27px; line-height: 1.82; }
.atlas-hero .actions { gap: 12px; }
.hero-primary { color: #172b19; background: var(--lime); border-color: var(--lime); font-weight: 700; }
.hero-primary:hover { background: #e6f3b8; border-color: #e6f3b8; }
.hero-secondary { color: #f6faf4; background: transparent; border-color: #708879; }
.hero-secondary:hover { color: var(--forest); }
.atlas-hero-figure { min-width: 0; min-height: 390px; position: relative; margin: 0; overflow: hidden; }
.atlas-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 57%; }
.atlas-hero-figure figcaption { position: absolute; right: 14px; bottom: 13px; background: #122d23ed; color: #f2f6ef; padding: 3px 8px; font-size: 12px; }
.atlas-index { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 1px; background: #e8eddd; }
.atlas-index a { min-width: 0; display: flex; align-items: baseline; gap: 10px; padding: 18px clamp(14px, 2vw, 29px); color: var(--ink); text-decoration: none; }
.atlas-index a + a { border-left: 1px solid #c8d0bf; }
.atlas-index a:hover { background: var(--lime); }
.atlas-index b { font: 750 clamp(24px, 3vw, 40px)/1.1 system-ui,sans-serif; letter-spacing: -.055em; }
.atlas-index span { font-size: 14px; }
.atlas-index span:last-child { margin-left: auto; color: #435a49; }
.home-section { margin-top: clamp(42px, 6vw, 83px); }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 18px; }
.home-section-head h2 { font-size: clamp(25px, 3.4vw, 42px); letter-spacing: -.045em; }
.home-section-head p { color: var(--muted); margin-top: 4px; }
.home-section-head > a { padding-block: 5px; font-size: 14px; }
.home-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-block: 1px solid var(--line); }
.home-feature { padding: 24px clamp(12px, 2.2vw, 33px) 25px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 8px; }
.home-feature:first-child { padding-left: 0; }
.home-feature + .home-feature { border-left: 1px solid var(--line); }
.home-feature h3 { font-size: clamp(17px, 2.1vw, 27px); letter-spacing: -.025em; font-weight: 750; }
.home-feature > a { width: fit-content; margin-top: 3px; font-size: 14px; }
.home-feature > p { color: var(--muted); }
.home-books .book-list { margin-top: 0; }

.atlas-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.atlas-group { min-width: 0; padding: 22px; border: 1px solid var(--line); border-top: 3px solid #476b56; background: var(--white); }
.atlas-group > h3 { font-size: 21px; letter-spacing: -.035em; }
.atlas-group > p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.atlas-group ul { list-style: none; padding: 0; margin: 14px 0 0; }
.atlas-group li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.atlas-group li p { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.atlas-group li a { font-weight: 650; text-decoration: none; }
.atlas-group li a:hover { text-decoration: underline; }
.category-count { min-width: 2em; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.delivery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.delivery-grid article { padding: 22px; background: #e9eee3; }
.delivery-grid h3 { margin-bottom: 6px; }

.atlas-case-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 23px; }
.atlas-case-tabs a { padding: 8px 13px; border: 1px solid var(--line); text-decoration: none; background: var(--white); border-radius: 3px; font-size: 14px; }
.atlas-case-tabs a:hover, .atlas-case-tabs [aria-current] { color: #243925; border-color: #a1b394; background: #e2ebd4; }
.library-layout { align-items: start; }
.filters { background: #ecefe4; border-color: #d3d9cc; border-radius: 4px; }
.atlas-result-list { border-top: 1px solid var(--line); }
.atlas-row { display: grid; grid-template-columns: minmax(0, 1fr) 174px; gap: 18px; padding: 19px 12px; border-bottom: 1px solid var(--line); }
.atlas-row:hover { background: var(--white); }
.atlas-row h3 { margin: 6px 0; font-size: clamp(17px, 2vw, 24px); line-height: 1.34; letter-spacing: -.025em; }
.atlas-row .scenario { margin: 4px 0; }
.atlas-row-meta { display: grid; gap: 6px; justify-items: end; align-content: start; }
.atlas-row-meta label { font-size: 13px; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; cursor: pointer; }
.atlas-row-meta input { width: 17px; height: 17px; accent-color: var(--accent-dark); }
.case-byline { color: var(--muted); font-size: 13px; line-height: 1.6; }
.atlas-detail-byline { font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.atlas-detail > .detail-head .intro { max-width: 64ch; }
.atlas-profile { margin-top: 12px; }
.atlas-profile p { margin-block: 8px; }
.atlas-notes { margin: 24px 0 0; padding: 16px 20px; border-left: 3px solid #729076; }
.atlas-question { padding: 24px; margin-block: 35px; background: #e7eddd; }
.atlas-question > p { margin-block: 7px 16px; }
.peer-list { display: grid; gap: 8px; }
.peer-list article { border-top: 1px solid #c5d1bd; padding: 9px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; }
.peer-list h3 { font-size: 16px; }
.atlas-study { padding-block: 26px; border-bottom: 1px solid var(--line); }
.atlas-study > p { max-width: 76ch; margin-block: 8px 14px; }
.atlas-study-items { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-block: 18px; }
.atlas-study-items section { background: var(--white); padding: 17px; border: 1px solid var(--line); }
.atlas-study-items h3 { margin-bottom: 5px; }
.atlas-study-links { margin-block: 27px 0; }
.atlas-sample { border-block: 1px solid var(--line); padding: 12px 0; }
.atlas-sample > summary { width: fit-content; color: var(--accent-dark); font-weight: 650; padding: 3px 0; }
.atlas-sample > p { margin: 9px 0 14px; }
.external-films { margin-block: 24px; }
.external-films > h2 { margin-bottom: 14px; }
.external-films .home-feature { grid-template-rows: auto 1fr auto; }

.case-depth-tabs { display:flex; gap:6px 18px; flex-wrap:wrap; margin-bottom:12px; border-bottom:1px solid var(--line); }
.case-depth-tabs a { min-height:44px; display:inline-flex; align-items:center; padding:5px 3px; font-size:14px; text-decoration:none; }
.case-depth-tabs [aria-current] { font-weight:700; box-shadow:inset 0 -2px var(--accent); }
.case-depth { font-size:13px; color:var(--muted); }
.case-depth[data-researched="true"] { color:var(--accent-dark); font-weight:650; }
.source-index-note { background:#e9eee3; margin-block:6px 24px; padding:14px 18px; font-size:14px; }
.source-index-note a { margin-left:5px; }
.case-workup { margin-bottom:34px; }
.decision-section { padding-block:23px 25px; border-top:1px solid var(--line); }
.decision-section > h2 { margin-bottom:16px; font-size:clamp(23px,3vw,34px); letter-spacing:-.035em; }
.decision-section h3 { font-size:18px; margin-bottom:5px; }
.decision-section p { max-width:70ch; }
.case-citation { margin-top:9px; font-size:13px; }
.diagnosis-list, .decision-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.diagnosis-list > article, .decision-results > article { background:var(--white); padding:17px; border:1px solid var(--line); }
.decision-steps { list-style:none; padding:0; margin:0; counter-reset:phase; }
.decision-steps li { counter-increment:phase; position:relative; border-left:1px solid #aebfb0; margin-left:18px; padding:0 0 20px 27px; }
.decision-steps li:last-child { padding-bottom:0; }
.decision-steps li::before { content:counter(phase); position:absolute; left:-15px; top:0; width:29px; height:29px; display:grid;
  place-items:center; background:var(--forest); color:var(--lime); font-weight:700; border-radius:50%; font-size:13px; }
.decision-actor { font-size:13px; color:var(--accent-dark); font-weight:650; margin-bottom:5px; }
.decision-log { display:grid; gap:12px; }
.decision-log article { border-left:3px solid #799575; background:#e9eee3; padding:15px 18px; }
.decision-result { font-size:21px; font-weight:750; color:var(--forest); margin:5px 0 8px; }
.decision-boundary { background:#e9eee3; padding:15px 18px; margin-top:13px; }
.compare-group article p { white-space:pre-line; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 56px); }
  .atlas-hero { grid-template-columns: 1.05fr 1fr; }
  .atlas-index a { gap: 7px; }
  .atlas-index span:last-child { display: none; }
  .atlas-groups { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .diagnosis-list, .decision-results { grid-template-columns:minmax(0,1fr); }
  .shell { width: calc(100% - 32px); }
  .masthead-inner { column-gap: 12px; }
  .primary-nav a { padding-inline: 9px; }
  .atlas-hero { grid-template-columns: minmax(0, 1fr); }
  .atlas-hero-copy { padding: 26px 22px 24px; }
  .atlas-hero h1 { font-size: clamp(35px, 10vw, 63px); }
  .atlas-hero .hero-description { margin-block: 13px 17px; font-size: 14px; }
  .atlas-hero .actions { gap: 8px; }
  .atlas-hero .actions .button { padding-inline: 10px; font-size: 14px; }
  .atlas-hero-figure { min-height: 0; aspect-ratio: 1.9; }
  .atlas-index { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: #c8d0bf; }
  .atlas-index a { padding: 12px; background: #e8eddd; }
  .atlas-index a + a { border: 0; }
  .atlas-index span { font-size: 12px; }
  .home-feature-grid, .atlas-groups, .delivery-grid, .atlas-study-items { grid-template-columns: minmax(0,1fr); }
  .home-feature { padding: 14px 2px; }
  .home-feature + .home-feature { border-left: 0; border-top: 1px solid var(--line); }
  .atlas-case-tabs { gap: 6px; }
  .atlas-case-tabs a { padding-inline: 9px; }
  .atlas-row { grid-template-columns: minmax(0,1fr); gap: 7px; padding: 16px 0; }
  .atlas-row-meta { display: flex; align-items: center; flex-wrap: wrap; }
  .atlas-row-meta label { margin-left: auto; }
  .atlas-group { padding: 17px; }
  .book-list-entry::before { display: none; }
  .main { padding-bottom: 60px; }
}
@media (max-width: 370px) {
  .shell { width: calc(100% - 24px); }
  .primary-nav { gap: 0; }
  .primary-nav a { padding-inline: 7px; }
}
