:root {
  --ink: #18312e;
  --muted: #58706c;
  --teal: #0f514b;
  --teal-deep: #0a403b;
  --coral: #ef765e;
  --coral-text: #a34234;
  --coral-soft: #f9d9d1;
  --mustard: #dda82e;
  --sage: #b9d2c7;
  --blue: #c7dcdb;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #d8e2de;
  --nav-surface: color-mix(in srgb, var(--paper) 94%, transparent);
  --content: 1180px;
  --hero-content: 1380px;
  --reading: 740px;
  --radius: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.65 var(--font); }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a::before, a::after { content: none; }
a:hover { color: var(--coral-text); }
em, i, cite, dfn, var { font-style: normal; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0 0 .55em; color: var(--ink); line-height: 1.08; letter-spacing: -.025em; }
h1 { font: 700 38px/1.08 var(--serif); text-wrap: balance; }
h2 { font: 700 26px/1.16 var(--serif); text-wrap: balance; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.15em; }
ul { padding-left: 1.25em; }
li + li { margin-top: .45em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: .7rem 1rem; background: var(--white); transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.section-heading { margin-bottom: 2.3rem; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.section-heading.compact { margin-bottom: 1.6rem; }

.site-header { position: sticky; z-index: 80; top: 0; background: var(--nav-surface); backdrop-filter: blur(16px); }
.nav-shell { width: min(calc(100% - 32px), 1320px); min-height: 82px; margin: auto; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; flex: 0 1 310px; text-decoration: none; }
.brand img { width: min(310px, 44vw); }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.75rem, 1.7vw, 1.5rem); }
.desktop-nav a { color: var(--ink); font-size: .91rem; font-weight: 720; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover { color: var(--coral-text); }
.menu-button { display: none; align-items: center; gap: .6rem; border: 0; border-radius: 999px; padding: .7rem .9rem; color: var(--white); background: var(--teal); cursor: pointer; font-weight: 750; }
.menu-chevron { width: 24px; height: 12px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.menu-scrim { position: fixed; z-index: 89; inset: 0; background: rgba(15, 36, 33, .46); }
.mobile-menu { position: fixed; z-index: 90; top: 0; right: 0; width: min(88vw, 380px); height: 100dvh; padding: 1.25rem; color: var(--white); background: var(--teal-deep); transform: translateX(102%); transition: transform 180ms ease; overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; font-weight: 800; }
.menu-close { border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .42rem .7rem; color: var(--white); background: transparent; cursor: pointer; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: .72rem .25rem; color: var(--white); font-size: 1.08rem; font-weight: 750; text-decoration: none; }
.mobile-menu nav a:hover { color: #ffd7ce; }
.menu-search { margin-top: 1.5rem; }
.menu-search label { display: block; margin-bottom: .5rem; font-size: .9rem; }
.menu-search div { display: flex; }
.menu-search input { width: 100%; min-width: 0; border: 0; border-radius: 10px 0 0 10px; padding: .65rem; }
.menu-search button { border: 0; border-radius: 0 10px 10px 0; padding: .65rem .8rem; color: var(--ink); background: var(--coral-soft); font-weight: 750; }

.hero { width: min(calc(100% - 40px), var(--hero-content)); margin: 2rem auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 480px); align-items: center; gap: clamp(2rem, 5vw, 5rem); border-radius: var(--radius); background: var(--cream); overflow: hidden; }
.hero-copy { z-index: 1; align-self: center; width: 100%; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4.5rem) clamp(28px, 4.25vw, 64px); }
.hero-copy h1 { max-width: none; }
.hero-copy > p { max-width: none; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-art { width: 100%; max-width: 480px; margin: 0; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: .72rem 1.2rem; text-align: center; line-height: 1.25; text-decoration: none; cursor: pointer; font-weight: 800; }
.button.primary { color: var(--white); background: var(--teal); }
.button.primary:hover { color: var(--white); background: var(--teal-deep); }
.button.secondary { color: var(--teal-deep); background: var(--coral-soft); }
.button.secondary:hover { color: var(--ink); background: #f5c6bb; }
.button.quiet { color: var(--teal); background: #e9f2ef; }
.text-link { font-weight: 800; }
.hero-points { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; margin: 2rem 0 0; padding: 0; color: var(--muted); list-style: none; font-size: .91rem; font-weight: 700; }

.hub-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.3rem; }
.hub-card { grid-column: span 4; min-width: 0; border-radius: var(--radius); background: #edf4f1; overflow: hidden; }
.hub-card:nth-child(4), .hub-card:nth-child(5) { grid-column: span 6; }
.hub-card img { width: 100%; aspect-ratio: 16/8.7; object-fit: cover; }
.hub-card > div { padding: 1.4rem; }
.hub-card h3 { font: 700 1.65rem/1.1 var(--serif); }
.hub-card h3 a { color: var(--ink); text-decoration: none; }
.hub-card p { color: var(--muted); }
.tone-sage { background: #eaf3ee; }
.tone-blue { background: #eaf3f4; }
.tone-mustard { background: #fbf0d4; }
.tone-coral { background: #fceae5; }
.tone-teal { background: #e4f1ee; }

.feature-band { background: var(--teal); color: var(--white); }
.feature-band h2, .feature-band h3 { color: var(--white); }
.split-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 8vw, 7rem); align-items: center; }
.split-feature > div:first-child p { color: #d8eae6; }
.mini-plan { border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.5rem); color: var(--ink); background: var(--cream); }
.mini-plan h3 { color: var(--ink); }
.mini-plan ul { margin: 0; padding: 0; list-style: none; }
.mini-plan li { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: .65rem 0; }
.mini-plan li span { color: var(--muted); }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.article-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card > div { padding: 1.35rem; }
.article-card h2, .article-card h3 { font: 700 1.35rem/1.17 var(--serif); }
.article-card h2 a, .article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card p { color: var(--muted); font-size: .96rem; }
.article-card.text-card { min-height: 260px; display: flex; }
.article-card.text-card > div { display: flex; flex-direction: column; }
.article-card.text-card .text-link { margin-top: auto; }
.blog-topic-group + .blog-topic-group { margin-top: 4rem; }
.blog-topic-group .section-heading a { color: var(--teal); }
.article-card .card-meta { margin: 0 0 .7rem; color: var(--teal-deep); font-size: .82rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.rotation-directory-link { margin: 1.5rem 0 0; }
.evidence-callout { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.evidence-callout > div { min-width: 0; }
.evidence-links { display: grid; flex: 0 0 auto; gap: .55rem; }

.hub-hero { width: min(calc(100% - 40px), var(--hero-content)); padding-block: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 480px); align-items: center; gap: clamp(2.25rem, 5vw, 5rem); }
.hub-hero p { color: var(--muted); font-size: 1.1rem; }
.hub-hero img { width: 100%; max-width: 480px; justify-self: end; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; }
.hub-action-band { padding-block: clamp(3rem, 7vw, 5.5rem); background: #e4f0ec; }
.hub-tool-heading { max-width: 780px; margin-bottom: 1.6rem; }
.hub-tool-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.hub-tool { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); border: 1px solid #a9c9bf; border-radius: var(--radius); background: var(--white); overflow: hidden; }
.hub-tool-form { min-width: 0; padding: clamp(1.3rem, 4vw, 2.5rem); }
.hub-tool-fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.hub-tool-fieldset legend { max-width: 760px; padding: 0; font: 700 1.45rem/1.15 var(--serif); }
.hub-tool-fieldset select, .hub-tool-fieldset input[type="number"] { width: 100%; min-width: 0; border: 1px solid #adc5bd; border-radius: 9px; padding: .72rem .78rem; color: var(--ink); background-color: var(--white); }
.hub-tool-fieldset select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2318312e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; }
.hub-tool-fieldset input[type="checkbox"], .hub-tool-fieldset input[type="radio"] { width: 1.15rem; min-width: 1.15rem; height: 1.15rem; margin: .12rem 0 0; accent-color: var(--teal); }
.hub-tool-label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 800; }
.choice-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.choice-chip { display: flex; align-items: center; gap: .55rem; min-height: 48px; border: 1px solid var(--sage); border-radius: 999px; padding: .65rem .9rem; cursor: pointer; font-weight: 780; }
.choice-chip:has(input:checked) { border-color: var(--teal); color: var(--teal-deep); background: #e4f0ec; }
.hub-number-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hub-number-grid.capacity-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-number-grid label { display: grid; align-content: start; gap: .35rem; min-width: 0; font-size: .9rem; font-weight: 790; }
.hub-number-grid small { color: var(--muted); font-size: .8rem; font-weight: 520; line-height: 1.4; }
.handoff-checks { display: grid; gap: .75rem; }
.handoff-checks label { display: flex; align-items: flex-start; gap: .7rem; border-radius: 10px; padding: .75rem; background: #f5f9f7; cursor: pointer; font-weight: 680; }
.hub-tool-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.hub-tool-output { min-width: 0; border-left: 1px solid #a9c9bf; padding: clamp(1.3rem, 4vw, 2.5rem); background: var(--cream); }
.hub-tool-output[hidden] { display: none; }
.hub-tool:has(.hub-tool-output[hidden]) .hub-tool-form { grid-column: 1 / -1; }
.hub-tool-output h3 { font: 700 1.65rem/1.12 var(--serif); }
.hub-result-summary { color: var(--muted); }
.hub-result-progress { border-radius: 8px; padding: .65rem .8rem; color: var(--teal-deep); background: #e4f0ec; font-weight: 800; }
.hub-result-list, .action-checklist { margin: 1.2rem 0 0; padding-left: 1.35rem; }
.action-checklist { padding: 0; list-style: none; }
.action-checklist li + li { margin-top: .7rem; }
.action-checklist label { display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; }
.action-checklist input { width: 1.15rem; min-width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--teal); }
.action-checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.hub-result-rule { margin-top: 1.2rem; border-left: 5px solid var(--mustard); padding: .8rem 1rem; background: #fff5dc; font-weight: 720; }
.hub-tool-error { grid-column: 1 / -1; margin: 0; padding: .8rem clamp(1.3rem, 4vw, 2.5rem); color: #772b21; background: #fceae5; font-weight: 750; }
.hub-tool .noscript-note { grid-column: 1 / -1; }
.hub-tool-privacy { margin: .8rem 0 0; color: var(--muted); font-size: .84rem; }
.question-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.question-list > section { min-width: 0; border-radius: var(--radius); padding: 1.4rem; background: #edf4f1; }
.question-list h3 { font: 700 1.35rem/1.17 var(--serif); }
.question-list p { margin-bottom: 0; color: var(--muted); }
.breadcrumb-bar { border: 0; background: var(--nav-surface); backdrop-filter: blur(16px); }
.breadcrumb-shell { width: min(calc(100% - 32px), 1320px); margin-inline: auto; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 0; padding: .7rem 0; color: var(--muted); font-size: .85rem; font-weight: 750; }
.breadcrumb a { color: var(--teal); }
.breadcrumb [aria-current="page"] { color: var(--muted); }
.page-intro { width: min(calc(100% - 40px), var(--hero-content)); padding-block: clamp(4rem, 10vw, 8rem) 3rem; }
.page-intro > p { color: var(--muted); font-size: 1.12rem; }
.topic-directory { padding-top: 1rem; }
.topic-directory > article { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; padding: 2.1rem; border-radius: var(--radius); background: #edf4f1; }
.topic-directory > article + article { margin-top: 1rem; }
.topic-directory h2 { font-size: 2rem; }
.topic-directory h2 a { color: var(--ink); text-decoration: none; }
.topic-directory p { color: var(--muted); }
.topic-directory ul { columns: 2; margin: 0; }
.topic-directory li { break-inside: avoid; margin: 0 0 .65rem; }

.article-hero { width: min(calc(100% - 40px), var(--hero-content)); padding-block: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 480px); align-items: center; gap: clamp(2.25rem, 5vw, 5rem); }
.article-hero.compact-hero { grid-template-columns: minmax(0, 1fr) minmax(240px, 480px); }
.article-title h1 { font-size: 38px; }
.direct-answer { max-width: none; font-size: 1.08rem; font-weight: 620; }
.hero-copy > .direct-answer, .hub-hero .direct-answer, .page-intro > .direct-answer { color: var(--ink); }
.article-title .direct-answer { margin: 1.35rem 0; border-left: 0; padding: .25rem 0; color: var(--ink); background: transparent; }
.answer-label { color: var(--coral-text); }
.article-dek { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .45rem 1.3rem; color: var(--muted); font-size: .84rem; }
.article-hero figure { width: 100%; max-width: 480px; margin: 0; justify-self: end; }
.article-hero figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, var(--reading)); justify-content: center; gap: clamp(2rem, 8vw, 6rem); padding-bottom: 6rem; }
.article-aside { min-width: 0; }
.sticky-index { position: sticky; top: 110px; border-radius: 14px; padding: 1rem; background: #edf4f1; }
.contents-title { margin-bottom: .55em; font: 800 .84rem/1.2 var(--font); letter-spacing: .05em; text-transform: uppercase; }
.sticky-index nav { display: grid; }
.sticky-index a { padding: .35rem 0; color: var(--muted); font-size: .84rem; text-decoration: none; }
.sticky-index a:hover { color: var(--teal); }
.article-body { min-width: 0; font-size: 1.06rem; }
.article-body > section { margin-bottom: 3.5rem; }
.article-body h2 { margin-top: 0; }
.article-body h3 { margin-top: 1.8rem; }
.article-body h2, .article-body h3, .article-body p, .article-body li { max-width: none; overflow-wrap: anywhere; }
.article-structure { padding-bottom: 6rem; }
.article-structure > .article-body { width: min(100%, 900px); margin-inline: auto; }
.section-actions { margin-top: 1.2rem; }

/* Each format follows the way its answer works, rather than one universal article loop. */
.presentation-routine figure { order: -1; }
.presentation-routine { grid-template-columns: minmax(240px, 480px) minmax(0, 1fr); }
.presentation-decision { grid-template-columns: 1fr; }
.presentation-decision .article-title { max-width: none; }
.presentation-decision figure img { aspect-ratio: 21/8; }
.presentation-diagnostic { border-radius: var(--radius); padding-inline: clamp(1.2rem, 4vw, 3rem); background: #edf4f1; }
.presentation-reference { grid-template-columns: minmax(0, 1fr) minmax(240px, 480px); }
.presentation-tool { grid-template-columns: minmax(0, 1fr) minmax(240px, 480px); }

.sequence-list { margin: 0; }
.sequence-list > section { min-width: 0; padding: 0 0 3.2rem; }
.sequence-list > section + section { border-top: 1px solid var(--line); padding-top: 2.4rem; }

.routine-flow { position: relative; }
.routine-stage { position: relative; margin-bottom: 3rem; }
.routine-stage + .routine-stage { border-top: 1px solid var(--line); padding-top: 2.4rem; }

.decision-opening { margin-bottom: 2rem; border-left: 6px solid var(--mustard); border-radius: 0 var(--radius) var(--radius) 0; padding: clamp(1.3rem, 4vw, 2.2rem); background: #fbf0d4; }
.decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.decision-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--white); }
.decision-card:nth-child(3n + 2) { background: #edf4f1; }
.decision-card h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }

.diagnostic-check { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 6vw, 4rem); align-items: start; border-top: 1px solid var(--line); padding: 2.5rem 0; }
.diagnostic-check header { position: sticky; top: 110px; }
.diagnostic-check.diagnostic-lead { display: block; margin-bottom: 1rem; border: 0; border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.3rem); background: #fceae5; }
.diagnostic-lead header { position: static; }

.reference-section { margin-bottom: 3.7rem; }
.reference-index { background: #fceae5; }

.article-tool > .article-body { width: min(100%, 1080px); }
.tool-article-body { font-size: 1rem; }
.tool-field-notes { width: min(100%, 860px); margin: 5rem auto 0; }
.tool-field-note { padding: 2.8rem 0; border-top: 1px solid var(--line); }
.tool-field-note-lead { border-top: 6px solid var(--mustard); padding-top: 2rem; }
.tool-field-note:nth-child(even) { margin-left: clamp(0px, 7vw, 90px); }
.tool-field-note h2 { max-width: none; }
.takeaways { margin-top: 3rem; }
.summary-checklist { list-style: none; padding-left: 0; }
.summary-checklist li { position: relative; padding-left: 1.8rem; }
.summary-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }
.summary-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 1.4rem; }
.summary-rule-grid p { margin: 0; border-radius: 12px; padding: .8rem; background: rgba(255,255,255,.62); }
.summary-rule-grid span { color: var(--ink); }
.summary-plan { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.4rem; }
.summary-plan span { border: 1px solid var(--sage); border-radius: 999px; padding: .45rem .75rem; background: var(--white); font-size: .9rem; font-weight: 720; }
.summary-inline { border-left: 4px solid var(--teal); padding-left: 1rem; color: var(--ink); font-weight: 720; }
.answer-table-scroll { max-width: 100%; margin: 1.5rem 0; overflow-x: auto; }
.answer-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .94rem; }
.answer-table caption { margin-bottom: .65rem; font-weight: 800; text-align: left; }
.answer-table th, .answer-table td { border: 1px solid var(--line); padding: .72rem; text-align: left; vertical-align: top; }
.answer-table th { color: var(--ink); background: #e4f0ec; }
.answer-table tbody tr:nth-child(even) { background: var(--cream); }
.takeaways { border-radius: var(--radius); padding: clamp(1.3rem, 3.5vw, 2rem); background: #e4f0ec; }
.takeaways h3 { margin-top: 0; font: 700 1.25rem/1.2 var(--serif); }
.takeaways .practical-tip { margin-bottom: 0; }
.publication-note { margin: 3rem 0; border-radius: var(--radius); padding: 1.4rem; background: #fbf0d4; }
.publication-note h2 { font-size: 1.4rem; }
.publication-note p { margin-bottom: 0; }
.sources { font-size: .95rem; }
.single-column { max-width: 800px; padding-bottom: 6rem; }
.imported-body img { max-width: 100%; height: auto; }
.imported-body h1 { font: inherit; }

.routine-studio { margin: 2rem 0 4rem; border: 1px solid var(--teal); border-radius: var(--radius); color: var(--ink); background: var(--white); overflow: hidden; }
.studio-mast { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .65fr); gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(1.5rem, 5vw, 3.5rem); color: var(--white); background: var(--teal-deep); }
.studio-mast h2 { max-width: none; color: var(--white); font-size: 26px; }
.studio-mast > div > p:last-child { max-width: none; color: #d8eae6; font-size: 1.05rem; }
.studio-privacy { align-self: end; margin: 0; border-left: 0; padding-left: 0; color: #d8eae6; font-size: .91rem; }
.studio-privacy strong { color: var(--white); }
.routine-studio form { padding: clamp(1rem, 4vw, 2.8rem); }
.studio-panel { min-width: 0; margin: 0; border: 0; padding: 0; }
.studio-panel legend { padding: 0; color: var(--ink); font: 700 clamp(1.35rem, 3vw, 2rem)/1.1 var(--serif); }
.field-intro { margin: .55rem 0 1.25rem; color: var(--muted); font-size: .94rem; }
.studio-panel label { display: grid; align-content: start; gap: .35rem; min-width: 0; font-size: .9rem; font-weight: 790; }
.studio-panel input, .studio-panel textarea, .studio-panel select { width: 100%; min-width: 0; border: 1px solid #adc5bd; border-radius: 8px; padding: .72rem .78rem; color: var(--ink); background-color: var(--white); }
.studio-panel select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2318312e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; }
.studio-panel input:focus, .studio-panel textarea:focus, .studio-panel select:focus { border-color: var(--teal); }
.studio-panel input[type="checkbox"] { width: 1.15rem; min-width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--teal); }
.studio-panel small { color: var(--muted); font-size: .82rem; font-weight: 520; line-height: 1.45; }
.anchor-panel { border-left: 7px solid var(--mustard); padding: clamp(1.2rem, 3vw, 2rem); background: #fbf0d4; }
.anchor-fields { display: grid; grid-template-columns: 1fr 1fr .55fr; gap: 1rem; }
.routine-workbench { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.4rem; border-block: 1px solid var(--line); }
.step-panel { padding: 2rem 0; }
.step-panel + .step-panel { border-left: 1px solid var(--line); padding-left: 2rem; }
.step-panel:first-child { padding-right: 2rem; }
.step-column-headings, .routine-step-row { display: grid; grid-template-columns: minmax(130px, 1.35fr) minmax(84px, .7fr) 76px 66px; gap: .55rem; align-items: end; }
.step-column-headings { margin-bottom: .35rem; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.routine-step-row + .routine-step-row { margin-top: .7rem; }
.routine-step-row label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.step-minutes input { text-align: center; }
.step-remove, .add-step { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 8px; padding: .55rem .65rem; text-align: center; line-height: 1.25; cursor: pointer; font-size: .84rem; font-weight: 800; }
.step-remove { color: var(--coral-text); background: #fceae5; }
.add-step { margin-top: 1rem; color: var(--teal-deep); background: #e4f0ec; }
.resilience-panel { margin-top: 2.4rem; border-left: 0; padding: clamp(1.2rem, 3vw, 2rem); background: #fceae5; }
.resilience-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1rem 1.4rem; margin-top: 1.2rem; }
.fallback-field { grid-row: span 2; }
.studio-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.form-error { margin-top: 1rem; border-left: 0; padding: .65rem 1rem; color: #772b21; background: #fceae5; font-weight: 750; }
.noscript-note { margin: 0; padding: 1rem clamp(1rem, 4vw, 2.8rem); color: #772b21; background: #fceae5; }
.routine-output { border-top: 10px solid var(--mustard); padding: clamp(1.2rem, 5vw, 3.2rem); color: var(--ink); background: var(--cream); }
.routine-output h3 { max-width: none; font: 700 clamp(2rem, 4vw, 3rem)/1.05 var(--serif); }
.map-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.map-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin: 2rem 0; border-block: 1px solid #d9cda8; }
.map-metric { padding: 1rem .8rem; }
.map-metric + .map-metric { border-left: 1px solid #d9cda8; }
.map-metric dt { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.map-metric dd { margin: .25rem 0 0; font-size: 1.05rem; font-weight: 850; }
.anchor-timeline { position: relative; margin: 2.5rem 0; padding: 0; list-style: none; }
.anchor-timeline::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 145px; width: 3px; background: var(--sage); }
.map-event { position: relative; display: grid; grid-template-columns: 125px 1fr; gap: 2.5rem; margin: 0; padding: .75rem 0; }
.map-event::before { content: ""; position: absolute; top: 1.2rem; left: 139px; width: 15px; height: 15px; border: 3px solid var(--teal); border-radius: 50%; background: var(--cream); }
.map-time { color: var(--muted); font-size: .88rem; font-weight: 800; text-align: right; }
.map-event-copy { min-width: 0; padding: .15rem 0 .8rem; }
.map-event-copy strong, .map-event-copy span { display: block; }
.map-event-copy span { color: var(--muted); font-size: .87rem; }
.map-buffer .map-event-copy { color: #7b5710; font-weight: 800; }
.map-anchor::before { top: .85rem; left: 134px; width: 25px; height: 25px; border-color: var(--coral-text); background: var(--coral); }
.map-anchor .map-event-copy { border-radius: 8px; padding: .75rem 1rem; color: var(--white); background: var(--teal-deep); font-weight: 850; }
.map-review { border-top: 1px solid #d9cda8; padding-top: 1.5rem; }
.map-review h4, .reduced-plan h4 { margin: 0 0 .7rem; font: 700 1.45rem/1.15 var(--serif); }
.reduced-plan { margin-top: 2rem; border-left: 0; padding: 1.4rem; background: var(--white); }
.recovery-note { display: grid; grid-template-columns: 120px 1fr; gap: .5rem 1rem; margin-top: 1.3rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.recovery-note dt { font-weight: 850; }
.recovery-note dd { margin: 0; }
.map-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.copy-status { margin: 0; color: var(--muted); font-size: .88rem; }

.meal-planner-studio form { display: grid; gap: 2.4rem; }
.planner-section + .planner-section { border-top: 1px solid var(--line); padding-top: 2.2rem; }
.planner-basics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.component-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.component-grid textarea { resize: vertical; }
.capacity-headings, .capacity-row { display: grid; grid-template-columns: minmax(110px, .55fr) minmax(130px, .55fr) minmax(220px, 1.4fr); gap: .8rem; }
.capacity-headings { margin-bottom: .45rem; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.capacity-row + .capacity-row { margin-top: .75rem; }
.capacity-row label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.option-grid label { display: flex; align-items: flex-start; gap: .65rem; border-radius: 10px; padding: 1rem; background: #edf4f1; font-weight: 700; }
.meal-plan-output { scroll-margin-top: 100px; }
.meal-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.meal-plan-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; background: var(--white); }
.meal-plan-card h4 { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin: 0 0 .8rem; font: 700 1.3rem/1.2 var(--serif); }
.capacity-badge { flex: 0 0 auto; border-radius: 999px; padding: .3rem .55rem; color: var(--teal-deep); background: #e4f0ec; font: 800 .7rem/1.1 var(--font); letter-spacing: .03em; text-transform: uppercase; }
.capacity-low { color: #772b21; background: #fceae5; }
.capacity-open { color: #654805; background: #fbf0d4; }
.meal-combination { margin-bottom: .45rem; color: var(--ink); font-weight: 800; }
.meal-flavor, .meal-reason, .meal-note, .meal-backup { margin-bottom: .55rem; color: var(--muted); font-size: .9rem; }
.meal-backup { border-radius: 8px; padding: .65rem; color: #772b21; background: #fceae5; font-weight: 750; }
.shopping-map { margin-top: 2.5rem; border-top: 1px solid #d9cda8; padding-top: 1.5rem; }
.shopping-map h4, .meal-plan-review h4 { margin: 0 0 .55rem; font: 700 1.45rem/1.2 var(--serif); }
.shopping-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.shopping-group { border-radius: 12px; padding: 1rem; background: var(--white); }
.shopping-group h5 { margin: 0 0 .6rem; font-size: .86rem; text-transform: uppercase; }
.shopping-group ul { margin: 0; font-size: .88rem; }
.meal-plan-review { margin-top: 2rem; border-top: 1px solid #d9cda8; padding-top: 1.5rem; }
.meal-plan-review ul { margin-bottom: 0; }

/* The editorial type scale is intentionally identical across every page family. */
h1, .article-title h1 { font-size: 38px !important; line-height: 1.08 !important; }
h2, .article-card h2, .topic-directory h2, .decision-card h2, .studio-mast h2, .publication-note h2, .static-copy h2, .footer-grid h2 { font-size: 26px !important; line-height: 1.16 !important; }
.button, .menu-button, .menu-close, .menu-search button, .page-search button, .step-remove, .add-step { align-items: center; justify-content: center; text-align: center; line-height: 1.25; }

.static-copy { max-width: 800px; padding-bottom: 7rem; }
.static-copy h2 { margin-top: 2.6rem; font-size: 2rem; }
.static-copy h1, .static-copy h2, .static-copy h3, .static-copy p, .static-copy li { max-width: none; overflow-wrap: anywhere; }
.page-search { max-width: 680px; margin-top: 2rem; }
.page-search label { display: block; margin-bottom: .4rem; font-weight: 800; }
.page-search div { display: flex; gap: .7rem; }
.page-search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1rem; background: var(--white); }
.results-count { margin-bottom: 1.2rem; color: var(--muted); }
.empty-state { max-width: 700px; border-radius: var(--radius); padding: 2rem; background: #edf4f1; }
.error-page { min-height: 64vh; padding-block: 8rem; }

.site-footer { padding: 4rem max(20px, calc((100% - var(--content))/2)); color: #d9e9e5; background: #0b3733; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem; }
.footer-grid > div p { max-width: 360px; }
.footer-logo { width: 300px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-grid h2 { color: var(--white); font: 800 .88rem/1.2 var(--font); letter-spacing: .05em; text-transform: uppercase; }
.footer-grid nav { display: grid; align-content: start; gap: .48rem; }
.footer-grid a { color: #d9e9e5; text-decoration: none; }
.footer-grid a:hover { color: #ffc6b9; }
.footer-note { margin-top: 3rem; color: #a9c4be; font-size: .82rem; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(240px, 420px); }
  .hero-copy { width: 100%; margin: 0; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem) clamp(28px, 4vw, 48px); }
  .hero-art { max-width: 420px; height: auto; }
  .hero-art img { object-position: center; }
  .hub-hero, .article-hero { gap: clamp(1.75rem, 4vw, 3rem); }
  .article-hero, .article-hero.compact-hero, .presentation-reference { grid-template-columns: minmax(0, 1fr) minmax(240px, 420px); }
  .presentation-routine { grid-template-columns: minmax(240px, 420px) minmax(0, 1fr); }
  .presentation-decision { grid-template-columns: 1fr; }
  .article-title h1 { font-size: 38px; }
  .hub-card { grid-column: span 6; }
  .hub-card:nth-child(5) { grid-column: span 12; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .question-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 2rem; }
  .routine-workbench { grid-template-columns: 1fr; }
  .step-panel:first-child { padding-right: 0; }
  .step-panel + .step-panel { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid nav:last-of-type { grid-column: 2; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; padding: 3.5rem 0 1rem; }
  .hero-art { width: min(calc(100% - 40px), 480px); min-height: 0; height: auto; margin: 0 auto 2.5rem; aspect-ratio: 16/9; }
  .hub-hero, .article-hero, .article-hero.compact-hero, .presentation-routine, .presentation-reference { grid-template-columns: 1fr; }
  .hub-hero > div, .article-title { order: 1; }
  .hub-hero img, .article-hero figure, .presentation-routine figure { order: 0; width: min(100%, 480px); justify-self: center; }
  .hub-hero, .article-hero { padding-top: 2.75rem; }
  .hub-tool { grid-template-columns: 1fr; }
  .hub-tool-output { min-height: 190px; border-top: 1px solid #a9c9bf; border-left: 0; }
  .article-title h1 { font-size: 38px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 28px), var(--content)); }
  .nav-shell { min-height: 70px; }
  .brand { flex-basis: 230px; }
  .brand img { width: min(230px, 55vw); }
  .breadcrumb { flex-wrap: nowrap; overflow-x: auto; padding-block: .6rem; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .menu-button { padding: .6rem .75rem; }
  .section { padding-block: 4rem; }
  .hero-copy { width: min(calc(100% - 28px), var(--content)); padding-block: 3.8rem 3rem; }
  .hero-art { height: auto; min-height: 0; aspect-ratio: 16/9; }
  .hero-art img { object-position: 66% center; }
  .hub-card, .hub-card:nth-child(4), .hub-card:nth-child(5) { grid-column: 1 / -1; }
  .split-feature, .topic-directory > article { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .question-list { grid-template-columns: 1fr; }
  .hub-number-grid, .hub-number-grid.capacity-fields { grid-template-columns: 1fr; }
  .article-card.text-card { min-height: 0; }
  .evidence-callout { align-items: start; flex-direction: column; }
  .mini-plan li { grid-template-columns: 1fr; gap: .15rem; }
  .topic-directory ul { columns: 1; }
  .hub-hero, .article-hero, .page-intro { width: min(calc(100% - 28px), var(--hero-content)); }
  .article-hero { padding-top: 2.4rem; }
  .article-layout { display: block; }
  .article-aside { display: none; }
  .decision-grid { grid-template-columns: 1fr; }
  .diagnostic-check { display: block; }
  .diagnostic-check header { position: static; }
  .summary-rule-grid { grid-template-columns: 1fr; }
  .studio-mast, .anchor-fields, .resilience-grid { grid-template-columns: 1fr; }
  .planner-basics, .component-grid, .option-grid, .meal-plan-grid, .shopping-groups { grid-template-columns: 1fr; }
  .capacity-headings { display: none; }
  .capacity-row { grid-template-columns: 1fr 1fr; }
  .capacity-row label:last-child { grid-column: 1 / -1; }
  .capacity-row label > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .studio-privacy { align-self: auto; }
  .fallback-field { grid-row: auto; }
  .step-column-headings { display: none; }
  .routine-step-row { grid-template-columns: 1fr 1fr 76px; align-items: end; }
  .routine-step-row label > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .step-action { grid-column: 1 / -1; }
  .step-remove { grid-column: 1 / -1; }
  .map-metrics { grid-template-columns: 1fr 1fr; }
  .map-metric:nth-child(3) { border-left: 0; border-top: 1px solid #d9cda8; }
  .map-metric:nth-child(4) { border-top: 1px solid #d9cda8; }
  .tool-field-note:nth-child(even) { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
  .footer-grid nav:last-of-type { grid-column: auto; }
}

@media (max-width: 430px) {
  h1 { font-size: 38px; }
  .brand img { width: 200px; }
  .menu-button .menu-label { display: none; }
  .hero-art { min-height: 0; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .page-search div { align-items: stretch; flex-direction: column; }
  .capacity-row { grid-template-columns: 1fr; }
  .capacity-row label:last-child { grid-column: auto; }
  .map-metrics { grid-template-columns: 1fr; }
  .map-metric + .map-metric { border-top: 1px solid #d9cda8; border-left: 0; }
  .anchor-timeline::before { left: 8px; }
  .map-event { grid-template-columns: 1fr; gap: .25rem; padding-left: 2.2rem; }
  .map-event::before { top: 1.05rem; left: 1px; }
  .map-anchor::before { top: .75rem; left: -4px; }
  .map-time { text-align: left; }
  .recovery-note { grid-template-columns: 1fr; }
  .recovery-note dd + dt { margin-top: .4rem; }
}

@media print {
  .site-header, .breadcrumb-bar, .site-footer, .article-aside, .related, .button-row { display: none !important; }
  body { color: #000; background: #fff; }
  .article-hero, .article-layout { display: block; width: 100%; padding: 0; }
  .article-hero figure { max-width: 45%; float: right; margin: 0 0 1rem 2rem; }
  .presentation-tool, .article-tool .routine-studio form, .article-tool .studio-mast, .article-tool .tool-field-notes, .article-tool .contextual-bridge, .article-tool .takeaways, .article-tool .sources { display: none !important; }
  .article-tool, .article-tool .article-body, .routine-studio { width: 100%; margin: 0; border: 0; padding: 0; }
  .routine-output { display: block !important; border-top: 0; padding: 0; background: #fff; }
  a { color: #000; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-menu { transition: none; }
}

