/* CO Homes Pro. Palette taken from the logo: pine #2D4026, olive #4B5543, gold #C8AB6C. */
@font-face { font-family: "Young Serif"; src: url(/assets/fonts/young-serif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/assets/fonts/figtree-var.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/assets/fonts/figtree-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --pine: #2D4026;
  --pine-deep: #1F2D1A;
  --pine-ink: #1A2416;
  --olive: #4B5543;
  --gold: #C8AB6C;
  --gold-deep: #74592A;
  --gold-wash: #EFE4C8;
  --paper: #F6F2E8;
  --snow: #FCFAF5;
  --line: #DAD2BD;
  --line-dark: rgba(244, 239, 226, .18);
  --cream: #F4EFE2;
  --err: #9B2C1F;
  --ok: #2D5A27;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gut: clamp(1.1rem, 4vw, 2.5rem);
  --mast-h: 76px;
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--mast-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--pine-ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.09rem)/1.65 var(--sans);
  padding-bottom: var(--dock-h);
  top: 0 !important; /* Google Translate pushes body down; keep it put */
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--pine); margin: 0 0 .6em; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); }
p { margin: 0 0 1.05em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--pine); color: var(--cream); padding: .7rem 1rem; border-radius: var(--r); }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.kicker { font: 700 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .7rem; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.center { text-align: center; }
.center .kicker { justify-content: center; }
.lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--olive); max-width: 46rem; }
.center .lede { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.3rem; border-radius: 3px; border: 1.5px solid transparent; font: 650 .98rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn--pine { background: var(--pine); color: var(--cream); }
.btn--pine:hover { background: var(--pine-deep); color: #fff; }
.btn--gold { background: var(--gold); color: var(--pine-ink); }
.btn--gold:hover { background: #d6bc82; color: var(--pine-ink); }
.btn--line { border-color: currentColor; color: var(--pine); background: transparent; }
.btn--line-light { border-color: rgba(244,239,226,.7); color: var(--cream); background: transparent; }
.btn--line-light:hover { background: var(--cream); color: var(--pine); }
.btn--block { width: 100%; }

/* Masthead */
.mast { position: sticky; top: 0; z-index: 50; background: rgba(252, 250, 245, .94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.mast.is-scrolled { box-shadow: 0 8px 24px -18px rgba(26, 36, 22, .5); }
.mast__bar { width: min(100% - 2 * var(--gut), 1360px); margin-inline: auto; height: var(--mast-h); display: flex; align-items: center; gap: 1.5rem; }
.mast__logo img { width: auto; height: 46px; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .3rem; }
.nav__link { display: inline-flex; align-items: center; gap: .45rem; height: 44px; padding: 0 .9rem; font: 600 .97rem/1 var(--sans); color: var(--pine-ink); background: none; border: 0; cursor: pointer; text-decoration: none; position: relative; }
.nav__link svg { width: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .25s var(--ease); }
.nav__link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current]::after, .nav__link[data-current]::after, .nav__trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.mast__tools { display: flex; align-items: center; gap: .8rem; }
.mast__cta { white-space: nowrap; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--snow); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(26,36,22,.45); animation: megaIn .28s var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega__inner { width: min(100% - 2 * var(--gut), 1360px); margin-inline: auto; padding: 2rem 0 2.2rem; display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; }
.mega__kicker { font: 700 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .8rem; }
.mega__lead { font: 400 1.25rem/1.35 var(--serif); color: var(--pine); }
.mega__all { font-weight: 600; }
.mega__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem 1.6rem; }
.mega__link { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto 1fr; column-gap: .9rem; text-decoration: none; color: var(--pine-ink); padding: .5rem; margin: -.5rem; border-radius: var(--r); transition: background .2s; height: 100%; }
.mega__link:hover, .mega__link[aria-current] { background: var(--gold-wash); color: var(--pine-ink); }
.mega__thumb { grid-row: span 2; aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; }
.mega__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mega__t { font: 650 1rem/1.25 var(--sans); color: var(--pine); }
.mega__b { font-size: .87rem; line-height: 1.4; color: var(--olive); margin-top: .2rem; }

/* Language picker (drives Google Translate) */
.lang { position: relative; display: flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 3px; background: var(--snow); padding-left: 2.1rem; }
.lang__icon { position: absolute; left: .65rem; width: 17px; fill: none; stroke: var(--pine); stroke-width: 1.5; pointer-events: none; }
.lang__select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%232D4026' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right .65rem center / 10px; height: 100%; padding: 0 2rem 0 .1rem; font: 600 .9rem/1 var(--sans); color: var(--pine); cursor: pointer; }
.lang:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.lang__select:focus-visible { outline: none; }
/* Hide every piece of Google's own UI; our select is the only control */
.goog-te-banner-frame, .skiptranslate > iframe, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .goog-te-spinner-pos, #google_translate_element, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; visibility: hidden !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: transparent !important; box-shadow: none !important; }
html.translated-ltr .nav__link, html.translated-rtl .nav__link { white-space: nowrap; }

/* Burger + sheet (mobile) */
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 3px; background: var(--snow); cursor: pointer; align-items: center; justify-content: center; }
.burger__bars, .burger__bars::before, .burger__bars::after { display: block; width: 20px; height: 2px; background: var(--pine); position: relative; transition: transform .25s var(--ease), background .2s; }
.burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
.burger__bars::before { top: -6px; } .burger__bars::after { top: 6px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }
.sheet { position: fixed; inset: var(--mast-h) 0 0; z-index: 45; background: rgba(26,36,22,.4); }
.sheet__panel { background: var(--snow); max-height: 100%; overflow-y: auto; padding: 1.4rem var(--gut) calc(1.5rem + var(--dock-h)); animation: sheetIn .3s var(--ease); }
@keyframes sheetIn { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__kicker { font: 700 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.sheet__guides { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.sheet__guides a { display: grid; grid-template-rows: auto 1fr; gap: .45rem; text-decoration: none; font: 650 .95rem/1.25 var(--sans); color: var(--pine); height: 100%; }
.sheet__guides img { aspect-ratio: 16/10; object-fit: cover; border-radius: 3px; width: 100%; }
.sheet__more { list-style: none; padding: 0; margin: 0 0 1.2rem; border-top: 1px solid var(--line); }
.sheet__more a { display: flex; min-height: 50px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--pine-ink); }

/* Home hero */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; color: var(--cream); isolation: isolate; overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,30,17,.05) 25%, rgba(20,30,17,.55) 62%, rgba(20,30,17,.9) 100%), linear-gradient(90deg, rgba(20,30,17,.55), transparent 65%); }
.hero__grid { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3rem; align-items: end; padding: 7rem 0 3.4rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); margin-bottom: 1.1rem; max-width: 15ch; }
.hero .kicker { color: var(--gold); }
.hero__lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem); color: rgba(244,239,226,.92); max-width: 40rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__card { background: rgba(252,250,245,.96); color: var(--pine-ink); border-top: 4px solid var(--gold); padding: 1.4rem 1.5rem 1.2rem; border-radius: 2px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.6); }
.hero__card h2 { font-size: 1.35rem; margin-bottom: .2rem; }
.hero__card .mini-date { font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .6rem; display: block; }
.hero__card ul { list-style: none; padding: 0; margin: .7rem 0 1rem; }
.hero__card li { padding: .5rem 0 .5rem 1.6rem; border-top: 1px solid var(--line); position: relative; font-size: .97rem; line-height: 1.4; }
.hero__card li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 9px; height: 9px; border: 2px solid var(--pine); transform: rotate(45deg); }
.hero__card a { font-weight: 650; }
.photo-note { position: absolute; right: var(--gut); top: calc(1rem); font-size: .72rem; letter-spacing: .04em; color: rgba(255,255,255,.75); background: rgba(20,30,17,.35); padding: .2rem .5rem; border-radius: 2px; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--snow { background: var(--snow); }
.section--pine { background: var(--pine); color: var(--cream); }
.section--pine h2, .section--pine h3 { color: #fff; }
.section--pine .kicker { color: var(--gold); }
.section--pine .lede { color: rgba(244,239,226,.85); }
.section--pine a { color: var(--gold); }
.section-head { max-width: 50rem; margin: 0 auto clamp(2rem, 4vw, 3.2rem); text-align: center; }
.section-head .kicker { justify-content: center; }
.section-head .lede { margin-inline: auto; }

/* Almanac (month picker) */
.almanac { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--line); background: var(--snow); border-radius: 2px; overflow: hidden; }
.almanac__months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--pine); }
.almanac__months button { width: 100%; height: 100%; min-height: 64px; border: 0; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: transparent; color: rgba(244,239,226,.75); font: 600 .95rem/1 var(--sans); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; transition: background .2s, color .2s; }
.almanac__months button small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(200,171,108,.85); font-weight: 700; }
.almanac__months button:hover { background: rgba(255,255,255,.06); color: #fff; }
.almanac__months button[aria-selected="true"] { background: var(--gold); color: var(--pine-ink); }
.almanac__months button[aria-selected="true"] small { color: var(--pine); }
.almanac__panel { padding: clamp(1.4rem, 3vw, 2.4rem); min-height: 420px; }
.almanac__panel h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .3rem; }
.almanac__why { color: var(--olive); max-width: 42rem; }
.almanac__tasks { list-style: none; padding: 0; margin: 1.2rem 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.almanac__tasks li { border-top: 1px solid var(--line); }
.almanac .almanac__tasks { grid-template-columns: 1fr; max-width: 44rem; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: start; padding: .8rem 0; cursor: pointer; line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: .1rem 0 0; border: 2px solid var(--pine); border-radius: 2px; background: var(--snow); cursor: pointer; display: grid; place-items: center; }
.check input::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--cream); border-bottom: 2.5px solid var(--cream); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--pine); }
.check input:checked::after { opacity: 1; }
.check input:checked + span { color: var(--olive); text-decoration: line-through; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.check a { font-weight: 600; }
.almanac__foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .92rem; color: var(--olive); }
.meter { flex: 1 1 200px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; max-width: 260px; }
.meter span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--pine); text-decoration: underline; cursor: pointer; }

/* Guide index (numbered editorial rows) */
.index { list-style: none; margin: 0; padding: 0; counter-reset: g; border-top: 2px solid var(--pine); }
.index__row { counter-increment: g; border-bottom: 1px solid var(--line); }
.index__row a { display: grid; grid-template-columns: 90px minmax(0, 1.25fr) minmax(0, 1fr) 200px; gap: 2rem; align-items: center; padding: 1.4rem 0; text-decoration: none; color: var(--pine-ink); transition: background .25s; }
.index__row a::before { content: "0" counter(g); font: 400 2.6rem/1 var(--serif); color: var(--gold-deep); }
.index__row h3 { margin: 0; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); transition: color .2s; }
.index__row p { margin: 0; color: var(--olive); }
.index__img { aspect-ratio: 3/2; overflow: hidden; border-radius: 2px; }
.index__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.index__row a:hover { background: linear-gradient(90deg, var(--gold-wash), transparent 80%); }
.index__row a:hover h3 { color: var(--gold-deep); }
.index__row a:hover img { transform: scale(1.05); }

/* Climate ledger */
.ledger { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.ledger__item { border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 1.6rem 1.3rem 1.5rem; display: grid; grid-template-rows: auto auto 1fr auto; gap: .6rem; }
.ledger__glyph { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.ledger__item h3 { font-size: 1.3rem; margin: 0; }
.ledger__item p { margin: 0; font-size: .95rem; color: rgba(244,239,226,.82); line-height: 1.55; }
.ledger__item a { font-weight: 650; font-size: .92rem; text-decoration: none; border-bottom: 1px solid currentColor; justify-self: start; }

/* Split feature (photo + offset panel) */
.feature { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; }
.feature__media { grid-column: 1 / 8; grid-row: 1; aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__panel { grid-column: 7 / 13; grid-row: 1; background: var(--snow); padding: clamp(1.6rem, 3vw, 2.8rem); border-left: 4px solid var(--gold); box-shadow: 0 30px 60px -40px rgba(26,36,22,.6); position: relative; z-index: 1; }
.feature__panel ol { padding-left: 0; list-style: none; counter-reset: s; margin: 1rem 0 1.4rem; }
.feature__panel li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; padding: .55rem 0; border-top: 1px solid var(--line); }
.feature__panel li::before { content: counter(s); font: 400 1.15rem/1.4 var(--serif); color: var(--gold-deep); }

/* Ask band */
.ask { background: var(--gold-wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ask__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.ask__inner h2 { margin-bottom: .4rem; }
.ask__note { font-size: .9rem; color: var(--olive); border-left: 2px solid var(--gold-deep); padding-left: 1rem; margin: 0; }
.ask__actions { display: flex; flex-direction: column; gap: .8rem; }

/* Guide page */
.ghead { padding: clamp(2.2rem, 5vw, 4rem) 0 0; background: var(--snow); }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; font-size: .88rem; color: var(--olive); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--olive); }
.ghead h1 { max-width: 20ch; margin-inline: auto; }
.ghead__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; font-size: .88rem; color: var(--olive); margin: 1.2rem 0 0; padding: 0; list-style: none; }
.ghead__meta li { display: inline-flex; gap: .4rem; align-items: center; }
.ghead__meta li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.ghead__photo { margin: clamp(2rem, 4vw, 3rem) auto 0; width: min(100% - 2 * var(--gut), 1360px); position: relative; }
.ghead__photo picture, .ghead__photo img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: 2px; }
.ghead__photo figcaption { font-size: .8rem; color: var(--olive); padding: .6rem 0 0; text-align: right; }

.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.toc { position: sticky; top: calc(var(--mast-h) + 1.5rem); align-self: start; font-size: .92rem; }
.toc p { font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--olive); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--pine); }
.toc a.is-active { color: var(--pine); border-left-color: var(--gold); font-weight: 650; }
.prose { max-width: 46rem; }
.prose > h2 { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.8rem; color: var(--pine); }
.prose li { margin-bottom: .45rem; }
.prose ul li::marker { color: var(--gold-deep); }

/* Callouts */
.callout { margin: 1.8rem 0; padding: 1.2rem 1.4rem 1.2rem 1.5rem; background: var(--snow); border-left: 4px solid var(--gold); }
.callout__label { display: block; font: 700 .74rem/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .55rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--pine { background: var(--pine); color: var(--cream); border-left-color: var(--gold); }
.callout--pine .callout__label { color: var(--gold); }
.callout--pine a { color: var(--gold); }
.callout--warn { border-left-color: var(--err); background: #FBF1EC; }
.callout--warn .callout__label { color: var(--err); }

/* Decision matrix */
.ifthen { margin: 1.8rem 0; border: 1px solid var(--line); background: var(--snow); }
.ifthen > div { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ifthen > div:first-child { border-top: 0; }
.ifthen dt, .ifthen dd { margin: 0; padding: .9rem 1.1rem; line-height: 1.45; }
.ifthen dt { font-weight: 650; border-right: 1px solid var(--line); }
.ifthen dt::before { content: "If "; color: var(--gold-deep); font-family: var(--serif); font-weight: 400; }
.ifthen dd::before { content: "Then "; color: var(--gold-deep); font-family: var(--serif); }

/* Tables */
.table-wrap { margin: 1.8rem 0; overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--snow); }
.compare caption { text-align: left; font: 650 .95rem/1.4 var(--sans); color: var(--olive); padding-bottom: .6rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .8rem .9rem; border-bottom: 1px solid var(--line); line-height: 1.45; }
.compare thead th { background: var(--pine); color: var(--cream); font-weight: 650; font-size: .88rem; letter-spacing: .02em; }
.compare tbody th { font-weight: 650; color: var(--pine); width: 26%; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 1.6rem 0; counter-reset: st; }
.steps > li { counter-increment: st; display: grid; grid-template-columns: 3rem 1fr; gap: .2rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); margin: 0; }
.steps > li::before { content: counter(st, decimal-leading-zero); font: 400 1.5rem/1.2 var(--serif); color: var(--gold-deep); grid-row: span 2; }
.steps strong { display: block; color: var(--pine); }

/* Interactive tool frame */
.tool { margin: 2.2rem 0; border: 1px solid var(--pine); background: var(--snow); }
.tool__head { background: var(--pine); color: var(--cream); padding: 1rem 1.3rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tool__head h3 { color: #fff; margin: 0; font-size: 1.25rem; }
.tool__head span { font-size: .82rem; color: var(--gold); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.tool__body { padding: 1.2rem 1.3rem 1.4rem; }
.tool__body fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.tool__body legend { font-weight: 650; margin-bottom: .6rem; color: var(--pine); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .95rem; border: 1.5px solid var(--line); border-radius: 3px; background: #fff; font-weight: 600; font-size: .93rem; transition: border-color .2s, background .2s; }
.chip input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.result { margin-top: 1rem; padding: 1rem 1.2rem; border-left: 4px solid var(--gold); background: var(--gold-wash); }
.result[hidden] { display: none; }
.result h4 { margin: 0 0 .4rem; font: 400 1.15rem/1.3 var(--serif); color: var(--pine); }
.result p:last-child { margin-bottom: 0; }
.result--high { border-left-color: var(--err); background: #FBF1EC; }
.numfield { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; }
.numfield label { display: grid; gap: .35rem; font-weight: 650; color: var(--pine); }
.numfield input, .numfield select { height: 48px; padding: 0 .8rem; border: 1.5px solid var(--line); border-radius: 3px; font: 600 1.05rem var(--sans); background: #fff; color: var(--pine-ink); width: 11rem; }
.numfield select { width: auto; max-width: 100%; }
.score { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.score__num { font: 400 2.2rem/1 var(--serif); color: var(--pine); min-width: 4.5ch; }
.score .meter { max-width: none; height: 10px; }

/* FAQ */
.faq { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 1rem; padding: 1.05rem 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.12rem; font-family: var(--sans); font-weight: 650; line-height: 1.35; }
.faq__item summary::after { content: "+"; font: 400 1.7rem/1 var(--serif); color: var(--gold-deep); text-align: center; transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 2.6rem 1rem 0; color: var(--olive); }

/* Related */
.related { margin-top: 3rem; padding: 1.6rem 0 0; border-top: 2px solid var(--pine); }
.related h2 { font-size: 1.5rem; }
.related__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.related__list li { border-top: 1px solid var(--line); }
.related__list a { display: grid; gap: .2rem; padding: .9rem 0; text-decoration: none; height: 100%; }
.related__t { font-weight: 650; color: var(--pine); }
.related__b { font-size: .9rem; color: var(--olive); line-height: 1.45; }
.related__list a:hover .related__t { color: var(--gold-deep); text-decoration: underline; }

/* Guide closing CTA */
.gcta { margin-top: 3rem; background: var(--pine); color: var(--cream); padding: clamp(1.6rem, 4vw, 2.4rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; border-radius: 2px; }
.gcta h2 { color: #fff; margin-bottom: .3rem; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); }
.gcta p { margin: 0; color: rgba(244,239,226,.85); }

/* Figure inside prose */
.fig { margin: 2rem 0; }
.fig img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 2px; }
.fig figcaption { font-size: .82rem; color: var(--olive); margin-top: .5rem; }

/* Contact page */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); align-items: start; }
.contact__aside h2 { font-size: 1.5rem; }
.contact__aside ul { padding-left: 1.1em; }
.form { background: var(--snow); border: 1px solid var(--line); border-top: 4px solid var(--pine); padding: clamp(1.3rem, 3vw, 2.2rem); }
.form h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field label, .field legend { font-weight: 650; color: var(--pine); }
.field .hint { font-size: .86rem; color: var(--olive); }
.field input[type=text], .field input[type=email], .field select, .field textarea { width: 100%; min-height: 50px; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 3px; background: #fff; font: 400 1rem/1.4 var(--sans); color: var(--pine-ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); outline: 3px solid rgba(200,171,108,.55); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field__error { color: var(--err); font-size: .88rem; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field--check { grid-template-columns: 24px 1fr; align-items: start; gap: .7rem; }
.field--check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--pine); }
.field--check label { font-weight: 400; color: var(--pine-ink); }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; margin-bottom: 1.2rem; border-left: 4px solid; }
.form-status--ok { background: #EDF3E8; border-color: var(--ok); }
.form-status--err { background: #FBF1EC; border-color: var(--err); }
.notice { border: 1px solid var(--line); background: var(--gold-wash); padding: 1.1rem 1.2rem; font-size: .93rem; margin-top: 1.5rem; }
.notice strong { color: var(--pine); }

/* Legal + utility pages */
.page-head { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); background: var(--snow); border-bottom: 1px solid var(--line); text-align: center; }
.page-head h1 { max-width: 22ch; margin-inline: auto; }
.legal { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.legal .prose { margin-inline: auto; }
.e404 { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.e404 .hero__actions { justify-content: center; }

/* Footer */
.foot { background: var(--pine-deep); color: rgba(244,239,226,.85); margin-top: 0; position: relative; padding-bottom: 1rem; }
.foot__ridge { position: absolute; left: 0; right: 0; top: -60px; height: 61px; pointer-events: none; }
.foot__ridge svg { width: 100%; height: 100%; fill: var(--pine-deep); }
.foot__inner { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; padding: 3.6rem 0 2.4rem; }
.foot__brand img { width: 240px; margin-bottom: 1.2rem; }
.foot__brand p { max-width: 30rem; font-size: .95rem; }
.foot h2 { font: 700 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .55rem; }
.foot a { color: var(--cream); text-decoration: none; }
.foot a:hover { color: var(--gold); text-decoration: underline; }
.foot__notice { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 1.2rem 0; font-size: .88rem; }
.foot__notice p { margin: 0; max-width: 62rem; }
.foot__notice strong { color: var(--gold); }
.foot__base { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.2rem 0 .5rem; font-size: .86rem; }
.foot__base p { margin: 0; }
.foot__base ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot__base li { margin: 0; }

/* Mobile dock */
.dock { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .ledger { grid-template-columns: repeat(3, 1fr); }
  .ledger__item:nth-child(4), .ledger__item:nth-child(5) { grid-column: span 1; }
  .index__row a { grid-template-columns: 70px minmax(0, 1fr) 180px; }
  .index__row p { grid-column: 2; grid-row: 2; }
  .index__row h3 { grid-column: 2; }
  .index__img { grid-column: 3; grid-row: 1 / span 2; }
  .index__row a { row-gap: .4rem; }
  .index__row a::before { grid-row: 1 / span 2; }
  .mega__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .nav, .mast__cta { display: none; }
  .burger { display: inline-flex; }
  .mast__tools { margin-left: auto; }
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 10rem; }
  .almanac { grid-template-columns: 1fr; }
  .almanac__months { grid-template-columns: repeat(6, 1fr); }
  .almanac__months button { min-height: 58px; }
  .guide { grid-template-columns: 1fr; }
  .toc { position: static; border: 1px solid var(--line); background: var(--snow); padding: 1rem 1.2rem; }
  .feature__media { grid-column: 1 / 13; }
  .feature__panel { grid-column: 2 / 12; grid-row: 2; margin-top: -4rem; }
  .ask__inner, .contact { grid-template-columns: 1fr; }
  .contact .form { order: -1; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --mast-h: 64px; --dock-h: calc(64px + env(safe-area-inset-bottom)); }
  .mast__logo img { height: 36px; }
  .lang { padding-left: 0; width: 44px; height: 44px; justify-content: center; overflow: hidden; }
  .lang__icon { left: 50%; transform: translateX(-50%); width: 20px; }
  .lang__select { position: absolute; inset: 0; opacity: 0; width: 100%; padding: 0; }
  .burger { width: 44px; height: 44px; }
  .hero { min-height: auto; }
  .hero__grid { padding: 7.5rem 0 0; gap: 1.8rem; }
  .hero::after { background: linear-gradient(180deg, rgba(20,30,17,.15) 0%, rgba(20,30,17,.6) 35%, rgba(20,30,17,.88) 70%, rgba(20,30,17,.95) 100%); }
  .hero__media img { object-position: 62% 30% !important; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__card { margin: 0 calc(-1 * var(--gut)); border-radius: 0; padding: 1.3rem var(--gut); }
  .almanac__months { grid-template-columns: repeat(12, minmax(58px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .almanac__months li { scroll-snap-align: start; }
  .almanac__tasks { grid-template-columns: 1fr; }
  .almanac__panel { min-height: 0; }
  .index__row a { grid-template-columns: 52px minmax(0, 1fr); gap: .35rem 1rem; padding: 1.1rem 0; }
  .index__row a::before { font-size: 1.9rem; grid-row: 1; }
  .index__img { display: none; }
  .index__row p { grid-column: 1 / -1; grid-row: 2; font-size: .95rem; }
  .ledger { grid-template-columns: 1fr; }
  .ledger__item { grid-template-columns: 40px 1fr; grid-template-rows: auto; column-gap: 1rem; }
  .ledger__glyph { grid-row: span 3; }
  .ledger__item h3, .ledger__item p, .ledger__item a { grid-column: 2; }
  .feature__panel { grid-column: 1 / 13; margin: -2rem .6rem 0; }
  .ifthen > div { grid-template-columns: 1fr; }
  .ifthen dt { border-right: 0; padding-bottom: .2rem; }
  .ifthen dd { padding-top: .2rem; }
  table.compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare caption { display: block; width: 100%; padding: 0 0 .6rem; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { border-bottom: 2px solid var(--line); padding: .4rem 0; }
  .compare td, .compare tbody th { border: 0; padding: .35rem .9rem; width: auto; }
  .compare td::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
  .related__list { grid-template-columns: 1fr; }
  .gcta { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr; gap: 2rem; }
  .ghead__photo picture, .ghead__photo img { aspect-ratio: 4/3; }
  .faq__a { padding-right: 0; }
  .dock { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(252,250,245,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -20px rgba(26,36,22,.45); }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; text-decoration: none; color: var(--olive); font: 650 .72rem/1 var(--sans); border-radius: 4px; }
  .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
  .dock a[aria-current] { color: var(--pine); }
  .dock .dock__primary { background: var(--pine); color: var(--cream); margin: 2px; }
  .dock .dock__primary[aria-current] { color: var(--gold); }
}
@media (max-width: 400px) {
  .sheet__guides { grid-template-columns: 1fr 1fr; }
  .mast__bar { gap: .6rem; }
  .mast__logo img { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .mast, .dock, .foot__ridge, .sheet, .tool, .toc { display: none !important; }
}
