/* MyLastWill.org
   Warm, high-contrast and large by default: most of our readers are over 60. */

:root {
  --paper: #FBF8F1;
  --paper-2: #F3EEE3;
  --card: #FFFFFF;
  --ink: #1B2430;
  --ink-2: #485263;
  --rule: #E2DACB;
  --rule-strong: #CDBFA8;
  --green: #1F5C4A;
  --green-2: #164536;
  --green-tint: #E3EEE7;
  --gold: #C9922E;
  --gold-ink: #7A5512;
  --gold-tint: #F7EDD8;
  --focus: #E0A43A;
  --warn: #8A4B12;
  --warn-tint: #FBEBD5;
  --footer: #14291F;
  /* Data colors: validated pair (adjacent CVD and normal-vision separation). */
  --viz-family: #D99A1E;
  --viz-cause: #1E8A6E;
  --track: #E7E0D2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27, 36, 48, .06), 0 10px 30px rgba(27, 36, 48, .07);
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

html[data-text="lg"] { font-size: 112.5%; }
html[data-text="xl"] { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--green-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 3.6vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.8vw + 1rem, 2.4rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
strong { font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 840px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 24px; height: 24px; flex: none; }
.icon-inline { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.18em; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .7em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-tint); color: var(--green-2); }
.btn-light { background: #fff; color: var(--green-2); }
.btn-light:hover { background: var(--gold-tint); color: var(--green-2); }
.btn-sm { min-height: 44px; padding: .45em 1em; font-size: .98rem; }
.btn-lg { min-height: 58px; padding: .8em 1.6em; font-size: 1.12rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: .35em; }
.link-btn {
  background: none; border: 0; padding: 6px 4px; font: inherit; font-size: .95rem; font-weight: 700;
  color: var(--green); text-decoration: underline; text-underline-offset: .18em; cursor: pointer;
}
.link-btn:hover { color: var(--green-2); }

/* ------------------------------------------------------------ header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 650; font-size: 1.4rem; letter-spacing: -.015em; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; }
.brand-tld { color: var(--ink-2); font-weight: 450; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none;
  font-size: 1rem; font-weight: 700; white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current] { background: var(--green-tint); color: var(--green-2); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.text-size {
  display: inline-flex; align-items: baseline; justify-content: center; gap: 1px; min-width: 48px; min-height: 44px;
  border: 2px solid var(--rule-strong); border-radius: 12px; background: var(--card); color: var(--ink);
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.text-size .big { font-size: 1.3rem; }
.text-size:hover { border-color: var(--green); }
.nav-toggle {
  display: none; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--rule-strong);
  background: var(--card); font: inherit; font-weight: 700; font-size: 1rem; color: var(--ink); cursor: pointer;
}
.mobile-nav { border-top: 1px solid var(--rule); background: var(--paper); }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px var(--gutter) 20px; display: grid; gap: 4px; }
.mobile-nav a:not(.btn) { display: block; padding: 14px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.mobile-nav a:not(.btn):hover { background: var(--green-tint); }
.mobile-nav .btn { width: 100%; margin-top: 8px; }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 600px) {
  .header-cta { display: none; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 34px; height: 34px; }
  .header-inner { min-height: 68px; gap: 12px; }
}

/* ------------------------------------------------------------ shared sections */
.section { padding: clamp(52px, 7vw, 100px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.eyebrow {
  font-size: .85rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-ink);
  margin: 0 0 .9em;
}
.lead { font-size: clamp(1.2rem, .6vw + 1rem, 1.4rem); color: var(--ink-2); line-height: 1.5; max-width: 44ch; }
.page-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.page-hero .lead { max-width: 60ch; }
.note-center { text-align: center; color: var(--ink-2); margin-top: 32px; }
.fine { font-size: .95rem; color: var(--ink-2); }
.optional { font-weight: 400; color: var(--ink-2); font-size: .92em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 22px; font-size: .95rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: var(--rule-strong); }
.crumbs a { color: var(--ink-2); }
.callout {
  background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-note { border-left-color: var(--green); background: var(--green-tint); }
.callout-warn { border-left-color: var(--warn); background: var(--warn-tint); }
.tag {
  display: inline-block; vertical-align: .12em; margin-left: 6px; background: var(--green); color: #fff; font-family: var(--font-body);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}

/* ------------------------------------------------------------ home */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(201, 146, 46, .14), rgba(201, 146, 46, 0)); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.5rem, 4.4vw + 1rem, 4.25rem); letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .lead { margin-bottom: 1.4em; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 28px 0 0; }
.trust-list li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); font-size: 1rem; }
.trust-list .icon { color: var(--green); width: 22px; height: 22px; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

.demo-card { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 30px); }
.demo-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 0 0 4px; }
.demo-sub { color: var(--ink-2); font-size: 1rem; margin-bottom: 18px; }
.demo-row { margin-bottom: 14px; }
.demo-row-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-weight: 700; font-size: 1rem; }
.demo-row-top output { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.demo-estate { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.demo-divider { border: 0; border-top: 1px solid var(--rule); margin: 16px 0; }
.demo-result { background: var(--paper); border-radius: 12px; padding: 14px 16px; margin: 14px 0 16px; }
.demo-result p { margin: 0; font-size: 1rem; }
.demo-result strong { font-size: 1.1rem; }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px 24px; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 3.6vw, 3.2rem); font-weight: 650; color: var(--green); line-height: 1; margin: 0 0 12px; letter-spacing: -.02em; }
.stat-label { font-size: 1.08rem; margin: 0 0 10px; }
.stat-src { font-size: .9rem; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 26px; }
.steps li::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 1.25rem; margin-bottom: 18px;
}
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.way-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 26px; position: relative; }
.way-card h3 { margin-top: 4px; }
.way-card p { color: var(--ink-2); margin-bottom: 0; }
.way-card .icon-badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--green-tint); color: var(--green); margin-bottom: 16px; }
.way-card .icon-badge .icon { width: 28px; height: 28px; }
.way-recommended { border: 2px solid var(--green); }
.way-tag {
  display: inline-block; background: var(--green); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 999px; margin: 0 0 10px;
}
@media (max-width: 900px) { .ways-grid { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.feature > *, .two-col > *, .hero-grid > * { min-width: 0; }
.line-of-heirs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.line-of-heirs li {
  display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
  padding: 14px 18px; font-weight: 700; position: relative;
}
.line-of-heirs li + li::before {
  content: ""; position: absolute; left: 34px; top: -11px; width: 2px; height: 10px; background: var(--rule-strong);
}
.heir-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); color: var(--ink-2); font-size: .95rem; flex: none; }
.line-of-heirs .heir-cause { border: 2px solid var(--green); background: var(--green-tint); color: var(--green-2); }
.line-of-heirs .heir-cause .heir-num { background: var(--green); color: #fff; }
.line-of-heirs .heir-state { color: var(--ink-2); font-weight: 400; background: transparent; border-style: dashed; }
.line-of-heirs .heir-state s { text-decoration-thickness: 2px; }
.heir-note { font-size: .95rem; font-weight: 400; color: var(--ink-2); margin-left: auto; text-align: right; }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 28px 0 0; }
.principles li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.principles strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; }
.principles span { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

.quote-figure { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.quote-figure .big-ratio { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 650; color: var(--green); line-height: 1; margin: 0 0 10px; }
.quote-figure figcaption { color: var(--ink-2); font-size: 1rem; }

/* ------------------------------------------------------------ cause cards */
.cause-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.cause-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cause-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.cause-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--green-tint); color: var(--green); }
.cause-icon .icon { width: 28px; height: 28px; }
.cause-card-title { display: block; font-weight: 700; font-size: 1.12rem; line-height: 1.3; margin-bottom: 4px; }
.cause-card-text { display: block; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }

.cause-hero { padding: clamp(28px, 5vw, 60px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, var(--green-tint), var(--paper)); }
.cause-hero .lead { max-width: 58ch; margin-bottom: 1.3em; }
.cause-hero-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--card); color: var(--green); margin-bottom: 18px; box-shadow: var(--shadow); }
.cause-hero-icon .icon { width: 38px; height: 38px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.side-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; }
.side-card-title { font-size: 1.35rem; }
.small-sources { margin: 1.4em 0 .3em; font-size: .95rem; font-weight: 700; color: var(--ink-2); }
.source-list { font-size: .95rem; color: var(--ink-2); padding-left: 1.2em; }
.source-list li { margin: .25em 0; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.mini-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.mini-card h3 { font-size: 1.2rem; }
.mini-card p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }

.copy-box { background: var(--card); border: 1px solid var(--rule-strong); border-radius: var(--radius); margin: 20px 0 10px; overflow: hidden; }
.copy-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; background: var(--paper-2); border-bottom: 1px solid var(--rule); font-weight: 700; font-size: .95rem; }
.copy-text { margin: 0; padding: 20px 22px; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; line-height: 1.65; }

/* ------------------------------------------------------------ faq, glossary */
.faq-block { margin-top: 8px; }
.qa { border-top: 1px solid var(--rule); padding: 20px 0 6px; }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa-q { font-family: var(--font-body); font-size: 1.18rem; font-weight: 700; line-height: 1.35; margin: 0 0 8px; letter-spacing: 0; }
.qa-a p { color: var(--ink-2); }
.faq-block + .faq-block { margin-top: 48px; }
.glossary { margin: 0; }
.glossary .term { padding: 18px 0; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.glossary dt { font-weight: 700; font-size: 1.2rem; margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--ink-2); }
.glossary .letter { font-size: 1.8rem; margin: 36px 0 6px; color: var(--green); }
.letter-index { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.letter-index a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 10px; background: var(--card); border: 1px solid var(--rule); font-weight: 700; text-decoration: none; }

/* ------------------------------------------------------------ cta band */
.cta-band { background: var(--green); color: #fff; padding: clamp(52px, 7vw, 88px) 0; }
.cta-inner { text-align: center; max-width: 820px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #DDEAE2; font-size: 1.2rem; max-width: 56ch; margin: 0 auto 1.6em; }

/* ------------------------------------------------------------ posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.post-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.post-card .eyebrow { margin-bottom: .6em; }
.post-card-title { font-size: 1.32rem; margin-bottom: .5em; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--green); text-decoration: underline; }
.post-card-text { color: var(--ink-2); font-size: 1.02rem; flex: 1; }
.post-meta { font-size: .95rem; color: var(--ink-2); margin: 0; }
.post-head { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 28px; max-width: 980px; }
.post-head h1 { font-size: clamp(2.1rem, 3vw + 1rem, 3.3rem); }
.post-dek { font-size: 1.3rem; color: var(--ink-2); max-width: 60ch; }
.post-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 64px; }
.post-toc { position: sticky; top: 20px; font-size: .98rem; }
.post-toc h2 { font-family: var(--font-body); font-size: .85rem; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-ink); }
.post-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--rule); }
.post-toc li a { display: block; padding: 7px 0 7px 14px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.post-toc li a:hover { color: var(--green); }
.post-body { max-width: 760px; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; gap: 0; } .post-toc { position: static; margin-bottom: 28px; } }
.prose { font-size: 1.1875rem; line-height: 1.72; }
.prose h2 { font-size: clamp(1.6rem, 1.2vw + 1rem, 2.05rem); margin: 1.9em 0 .55em; scroll-margin-top: 16px; }
.prose h3 { font-size: 1.32rem; margin: 1.6em 0 .45em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin: .4em 0; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 1.6em 0; padding: .2em 0 .2em 1.2em; color: var(--ink-2); }
.prose code { background: var(--paper-2); padding: .1em .35em; border-radius: 6px; font-size: .92em; }
.prose pre { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; overflow-x: auto; white-space: pre-wrap; font-size: 1.02rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; font-family: Georgia, "Times New Roman", serif; }
.prose section:first-of-type h2, .prose .takeaways + section h2 { margin-top: 1.2em; }
.short-answer { background: var(--green-tint); border-left: 5px solid var(--green); border-radius: 12px; padding: 20px 24px; margin: 0 0 1.8em; }
.short-answer p { margin: 0; font-size: 1.2rem; }
.short-answer .short-answer-label { font-weight: 700; color: var(--green-2); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: .4em; }
.takeaways { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 26px 10px; margin: 0 0 1.5em; }
.takeaways h2 { font-size: 1.3rem; margin: 0 0 .4em !important; }
.sources { font-size: 1rem; color: var(--ink-2); border-top: 1px solid var(--rule); margin-top: 3em; padding-top: .6em; }
.sources h2 { font-size: 1.3rem; }
.sources li { margin: .5em 0; overflow-wrap: anywhere; }
.post-cta { background: var(--gold-tint); border-radius: var(--radius); padding: 26px 28px; margin: 3em 0 1.5em; }
.post-cta h2 { margin-top: 0 !important; font-size: 1.5rem; }
.post-disclaimer { font-size: .95rem; color: var(--ink-2); }
.related { padding-bottom: 80px; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { background: var(--paper-2); font-weight: 700; }
.compare thead th { white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------ foundation compare */
.compare th:first-child, .compare td:first-child { font-weight: 700; min-width: 150px; }
.compare td { min-width: 170px; }
.compare .col-ours { background: var(--green-tint); }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--footer); color: #E3DED2; padding: 64px 0 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-about p { color: #C9D3CC; max-width: 34ch; margin-top: 14px; }
.brand-footer { color: #fff; }
.brand-footer:hover { color: #fff; }
.brand-footer .brand-tld { color: #B7C4BC; }
.footer-h { font-family: var(--font-body); font-size: .85rem; letter-spacing: .09em; text-transform: uppercase; color: #E8C27A; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 44px; padding-top: 22px; font-size: .95rem; color: #C9D3CC; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ forms */
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field > label:not(.check), .field > legend, .label-like { display: block; font-weight: 700; font-size: 1.08rem; margin: 0 0 8px; padding: 0; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 54px; padding: 12px 14px; border: 2px solid var(--rule-strong); border-radius: 12px;
  background: var(--card); color: var(--ink); font: inherit; font-size: 1.12rem; line-height: 1.4;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7B8290; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid rgba(31, 92, 74, .2); outline-offset: 0; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--warn); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.hint { font-size: 1rem; color: var(--ink-2); margin: 8px 0 0; }
.hint.is-warn { color: var(--warn); font-weight: 700; }
.field-error { color: var(--warn); font-weight: 700; font-size: 1rem; margin: 8px 0 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-row .field { margin-bottom: 18px; }
@media (max-width: 680px) { .field-row, .field-row.three { grid-template-columns: 1fr; gap: 0; } .field-row.three input { margin-bottom: 10px; } }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; cursor: pointer; font-size: 1.08rem; }
.check input { width: 26px; height: 26px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.check-lg { font-size: 1.12rem; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 680px) { .check-grid { grid-template-columns: 1fr; } }
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border: 2px solid var(--rule-strong); border-radius: 999px;
  background: var(--card); font-weight: 700; font-size: 1.05rem;
}
.pill input:checked + span { border-color: var(--green); background: var(--green-tint); color: var(--green-2); box-shadow: inset 0 0 0 1px var(--green); }
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.money-input { position: relative; max-width: 360px; }
.money-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-2); font-size: 1.12rem; }
.money-input input { padding-left: 34px; font-variant-numeric: tabular-nums; font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--rule-strong); background: var(--card);
  font: inherit; font-size: 1rem; font-weight: 700; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--green); color: var(--green-2); }

/* range sliders: big thumb, filled track */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; --fill: 50%; margin: 0; }
.range::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(to right, var(--green) 0, var(--green) var(--fill), var(--track) var(--fill)); }
.range::-moz-range-track { height: 12px; border-radius: 999px; background: var(--track); }
.range::-moz-range-progress { height: 12px; border-radius: 999px; background: var(--green); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.range:focus { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--focus); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px var(--focus); }
.range-row { display: flex; align-items: center; gap: 12px; }
.step-btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--rule-strong); background: var(--card); color: var(--ink);
  font: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.step-btn:hover { border-color: var(--green); color: var(--green); }
.range-scale { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-2); padding: 0 60px; }

/* ------------------------------------------------------------ builder */
.builder-head { padding: clamp(22px, 4vw, 44px) 0 8px; }
.builder-head h1 { font-size: clamp(2rem, 2.6vw + 1rem, 3rem); }
.builder-head .lead { max-width: 60ch; font-size: 1.2rem; }
.builder { padding-bottom: 80px; }
.progress-wrap { margin: 18px 0 26px; overflow-x: auto; }
.progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; min-width: max-content; }
.progress li > span, .progress li > button {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 0;
  background: transparent; font: inherit; font-size: .98rem; color: var(--ink-2); font-weight: 700;
}
.progress li > button { cursor: pointer; color: var(--green-2); }
.progress li > button:hover { background: var(--green-tint); }
.progress-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--rule-strong); font-size: .92rem; }
.progress .is-done .progress-num { background: var(--green-tint); border-color: var(--green); color: var(--green-2); }
.progress .is-current > span { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--green); }
.progress .is-current .progress-num { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 720px) { .progress li:not(.is-current) .progress-label { display: none; } .progress li > span, .progress li > button { padding-right: 6px; } .progress .is-current > span { padding-right: 14px; } }

.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
@media (max-width: 1040px) { .builder-grid { grid-template-columns: 1fr; } }
.builder-main { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); min-width: 0; }
.step h2 { font-size: clamp(1.7rem, 1.5vw + 1rem, 2.2rem); }
.step h2:focus { outline: none; }
.step-intro { color: var(--ink-2); font-size: 1.12rem; margin-bottom: 1.4em; }
.sub-h { font-family: var(--font-display); font-size: 1.35rem; margin: 30px 0 8px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--rule); }

.choice-list { display: grid; gap: 12px; margin-bottom: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-body { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border: 2px solid var(--rule-strong); border-radius: 16px; background: var(--card); transition: border-color .15s, background-color .15s; }
.choice-body strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.choice-text { display: block; color: var(--ink-2); font-size: 1.02rem; line-height: 1.45; }
.choice-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green-tint); color: var(--green); }
.choice:hover .choice-body { border-color: var(--green); }
.choice input:checked + .choice-body { border-color: var(--green); background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--green); }
.choice input:checked + .choice-body .choice-icon { background: var(--green); color: #fff; }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--focus); outline-offset: 3px; }
.choice-list.compact .choice-body { padding: 16px 18px; }

.list-editor { display: grid; gap: 10px; margin-bottom: 10px; }
.list-row { display: flex; gap: 10px; align-items: center; }
.list-row input { flex: 1; min-width: 0; }
.person-row { flex-wrap: wrap; }
.person-row input[data-field="name"] { flex: 2 1 220px; }
.person-row input[data-field="relation"] { flex: 1 1 160px; }
.pct-input { position: relative; flex: 0 0 116px; }
.pct-input input { padding-right: 34px; }
.pct-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-2); }

.share-field { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; }
.share-display { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 6px; }
.share-num { font-family: var(--font-display); font-size: 3rem; font-weight: 650; color: var(--green); line-height: 1; font-variant-numeric: tabular-nums; }
.share-dollars { font-weight: 700; font-size: 1.15rem; color: var(--ink-2); }
.backstop-card { background: var(--gold-tint); border-radius: 16px; padding: 6px 20px 16px; margin-top: 8px; }

.cause-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.pick {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 40px 12px 12px; text-align: left;
  border: 2px solid var(--rule-strong); border-radius: 14px; background: var(--card); font: inherit; font-size: 1rem; font-weight: 700; color: var(--ink);
  cursor: pointer; line-height: 1.25;
}
.pick:hover:not(:disabled) { border-color: var(--green); }
.pick:disabled { opacity: .45; cursor: not-allowed; }
.pick-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--green-tint); color: var(--green); }
.pick-check { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--rule-strong); display: grid; place-items: center; color: transparent; }
.pick-check .icon { width: 16px; height: 16px; }
.pick.is-on { border-color: var(--green); background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--green); }
.pick.is-on .pick-icon { background: var(--green); color: #fff; }
.pick.is-on .pick-check { background: var(--green); border-color: var(--green); color: #fff; }
.pick-custom { border-style: dashed; }
.alloc { margin-top: 10px; }
.alloc-row { border: 1px solid var(--rule); border-radius: 16px; padding: 16px 18px 12px; margin-bottom: 12px; background: var(--paper); }
.alloc-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.alloc-icon { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--green-tint); color: var(--green); vertical-align: middle; }
.alloc-icon .icon { width: 22px; height: 22px; }
.alloc-name { font-weight: 700; font-size: 1.1rem; flex: 1 1 180px; }
.alloc-value { font-variant-numeric: tabular-nums; font-size: 1.08rem; white-space: nowrap; }
.alloc-value strong { font-size: 1.25rem; color: var(--green-2); }
.alloc-extra { margin-top: 12px; }
.alloc-extra .field { margin-bottom: 8px; }
.charity-row { border: 1px solid var(--rule); border-radius: 16px; padding: 16px 18px 4px; margin: 0 0 14px; background: var(--paper); min-width: 0; }
.charity-row legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; padding: 0 6px; }
.charity-row .field > label { font-size: 1rem; }
.fund-fields { margin-top: 10px; }
.fund-fields .field-row.three input { min-height: 50px; }

.builder-aside { position: sticky; top: 20px; }
@media (max-width: 1040px) { .builder-aside { position: static; } }
.summary { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.summary-title { font-size: 1.5rem; margin-bottom: 10px; }
.summary-estate { font-size: 1.02rem; color: var(--ink-2); margin-bottom: 14px; }
.summary-estate strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.summary-sub { font-family: var(--font-body); font-size: .85rem; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-ink); margin: 22px 0 10px; }
.summary-note { font-size: 1rem; color: var(--ink-2); margin: 14px 0 0; }
.summary-amount { font-family: var(--font-display); font-size: 1.6rem; color: var(--green); }
.split-bar { display: flex; gap: 2px; height: 20px; border-radius: 6px; overflow: hidden; background: var(--card); }
.split-bar .seg { display: block; height: 100%; }
.seg-family { background: var(--viz-family); }
.seg-cause { background: var(--viz-cause); }
.split-legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.split-legend li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; font-size: 1rem; }
.split-legend li span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: block; }
.cause-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cause-bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: .98rem; margin-bottom: 4px; }
.cause-bar-top span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.cause-bar { height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.cause-bar span { display: block; height: 100%; border-radius: 999px; background: var(--viz-cause); }

.scenarios { background: var(--green-tint); border-radius: 14px; padding: 16px 20px; margin: 0 0 16px; }
.scenarios h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 6px; }
.scenarios ul { margin: 0; padding-left: 1.2em; }
.scenarios li { margin: 4px 0; }
.warnings { background: var(--warn-tint); border-radius: 14px; padding: 16px 20px; margin: 0 0 20px; }
.warnings ul { margin: 8px 0 0; padding-left: 1.2em; }
.warnings li { margin: 4px 0; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.doc-tabs [role="tab"] {
  min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--rule-strong); background: var(--card);
  font: inherit; font-weight: 700; font-size: 1rem; color: var(--ink); cursor: pointer;
}
.doc-tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.action-status { font-weight: 700; color: var(--green-2); }
.doc-frame { border: 1px solid var(--rule-strong); border-radius: 14px; background: #fff; padding: clamp(22px, 4vw, 52px); max-height: 760px; overflow: auto; box-shadow: inset 0 1px 0 var(--rule); }
.tell-us { border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 22px; }
.tell-us h3 { font-family: var(--font-display); }

/* legal documents (screen and print) */
.legal-doc { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.7; color: #111; max-width: 70ch; margin: 0 auto; }
.legal-doc h1.doc-title { font-family: Georgia, "Times New Roman", serif; text-align: center; font-size: 1.7rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 1.3em; }
.legal-doc h1.doc-title span { display: block; font-size: 1.05rem; text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: .4em; }
.legal-doc h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 1.8em 0 .6em; }
.legal-doc h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 700; margin: 1.4em 0 .5em; }
.legal-doc ol.alpha { list-style: lower-alpha; padding-left: 2em; }
.legal-doc ol.checklist { padding-left: 1.4em; }
.legal-doc ol.checklist li { margin: .7em 0; }
.legal-doc blockquote { margin: 1.2em 0; padding: .4em 1.2em; border-left: 3px solid var(--rule-strong); }
.legal-doc .table-wrap { font-family: var(--font-body); }
.blank { background: #FFF2C6; border-bottom: 2px solid #E5B93B; padding: 0 .2em; color: #5B4300; font-family: var(--font-body); font-size: .92em; }
.sig { margin-top: 2.4em; page-break-inside: avoid; break-inside: avoid; }
.sig-line { margin-top: 2.2em; font-size: .98rem; }
.sig-line span { display: block; border-bottom: 1px solid #111; height: 1.6em; max-width: 26em; margin-bottom: 4px; }
.witnesses h3 { text-transform: uppercase; letter-spacing: .04em; }
.witness-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
@media (max-width: 640px) { .witness-grid { grid-template-columns: 1fr; } }

#print-area { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  @page { margin: 0.9in; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header, .site-footer, .skip-link, .cta-band, .post-toc, .post-cta, .related, .btn, .builder-aside, .progress-wrap, .doc-actions, .doc-tabs, .step-nav { display: none !important; }
  a { color: #000; text-decoration: none; }
  body.print-doc main, body.print-doc .site-header, body.print-doc .site-footer { display: none !important; }
  body.print-doc #print-area { display: block !important; }
  .legal-doc { font-size: 12pt; max-width: none; }
  .legal-doc h2 { break-after: avoid; page-break-after: avoid; }
  .blank { background: none; border-bottom: 1px solid #000; color: #000; }
}

/* State pages */
.state-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.state-grid a { display: block; padding: 12px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
.state-grid a:hover { border-color: var(--green); background: var(--green-tint); color: var(--green-2); }
.facts-table th { width: 46%; font-weight: 700; text-align: left; }
.cite { color: var(--ink-2); font-size: .92em; }
.steps-list li { margin: .7em 0; }
