/* khulani.app: one stylesheet, no framework. Fonts are self-hosted (the @fontsource packages, copied by build.mjs): no font CDN. */
@font-face { font-family: 'Outfit'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
/* Fraunces: the lockup only, the wordmark and the Grow tag (D40). One variable file (Latin) with all four axes (wght, opsz, SOFT, WONK). */
@font-face { font-family: 'Fraunces'; font-weight: 400 600; font-style: normal; font-display: swap; src: url('/fonts/fraunces-latin-full-normal.woff2') format('woff2-variations'), url('/fonts/fraunces-latin-full-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/space-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  --bark: #2B2519;
  --bone: #F1E8D6;
  --sand: #E4D8C0; /* the stone band */
  --gold: #C79A3E;
  --gold-text: #7A5A12; /* gold on a light surface: the bright gold is never used for text or the mark on Bone or white */
  --muted: #665D52; /* ink-muted: the app's body text that recedes */
  --muted-on-dark: #B3AB99;
  --line: #C9BB9E;
  --white: #FFFFFF;
  --sans: 'Outfit', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--bark); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--bark); }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--bark); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: #E8C77C; }
.on-dark a { color: var(--bone); }
.on-dark a:hover { color: #E8C77C; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--bone); color: var(--bark); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0; font-weight: 500; }
/* One font (D40, owner decision D-024): every heading and all reading text is Outfit, the body's font. Fraunces is the lockup only. */
h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.8px; }
h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }
/* No word left alone on a last line (D39): headings balance their lines, paragraphs avoid a short last one. */
h1, h2, h3, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 88px 32px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 88px 32px; }
.pad-top-0 { padding-top: 0; }
.row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.col { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.bg-sand { background: var(--sand); }
.bg-bark { background: var(--bark); color: var(--bone); }

/* the lockup is the whole header; the footer carries the links */
.site-header { max-width: 1200px; margin: 0 auto; padding: 20px 32px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 16px; }
.nav a { color: var(--bark); min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.nav a:hover { color: var(--gold-text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold-text); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav a.btn-gold { min-height: 44px; padding: 8px 20px; }
.nav a.btn-gold:hover { color: var(--bark); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bark); min-height: 44px; }
.brand:hover { color: var(--bark); }
.brand .lock { display: inline-flex; align-items: baseline; gap: 10px; }
.wordmark { font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1; }
.brand .wordmark { font-size: 24px; line-height: 1; }
.mark-dark { color: var(--bone); }
.mark-light { color: var(--bark); }
/* The Grow tag is part of the lockup: Fraunces like the wordmark (D40, the owner on #49), sentence case, tracked 0.15em, gold, beside a wordmark of 20px or more. */
.brand .tag { font-family: var(--serif); font-weight: 400; font-size: 12px; letter-spacing: 0.15em; color: var(--gold-text); line-height: 1; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.site-footer .inner { max-width: 1200px; margin: 0 auto; padding: 36px 32px 44px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-footer a { color: var(--bark); min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--gold-text); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 14px 26px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.btn-gold { background: var(--gold); color: var(--bark); }
a.btn-gold, a.btn-gold:hover { color: var(--bark); }
a.btn-gold:hover { background: #D8AB52; }
.on-dark a.btn-gold { color: var(--bark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.link-quiet { display: inline-flex; align-items: center; min-height: 48px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.link-strong { font-weight: 500; }
.small-print { font-size: 15px; color: var(--muted); }
.lede-line { font-size: 21px; color: var(--muted); }

/* hero (D39): the copy on the left, the Overview frame on the right; below 900px the frame follows the copy. The right column is
   wide enough (over 560px at 1440) for the frame to show the app's 40px figures. */
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 56px 32px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
/* The restored headline (D40) is longer than D39's and the copy column is the narrower one, so it is set a little under the page h1: two lines at 1440. */
.hero h1 { font-size: clamp(36px, 3.9vw, 56px); }
.hero-look { min-width: 0; }
/* The frame shows the whole Overview, uncropped, with a small caption under it (D41). */
.look { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.look-caption { padding-left: 4px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 600px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 15px; line-height: 1.4; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-text); }


/* cards and bands */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card p { color: var(--muted); }
.card.on-sand { background: var(--bone); border-color: transparent; }
.card.plain { background: transparent; }
.plain-list { color: var(--muted); padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.on-dark .intro p { color: var(--muted-on-dark); }
.on-dark .intro p.private-line { color: var(--bone); font-size: 21px; }
.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.line { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--gold-text); padding-top: 18px; }
.line p { color: var(--muted); }

/* the one dark band on the home page, and the limits band on /security */
.on-dark .col p { color: var(--bone); }
.cannot, .limits { list-style: none; display: flex; flex-direction: column; flex: 1 1 340px; min-width: 0; }
.cannot li, .limits li { border-bottom: 1px solid #5a5242; padding: 16px 0; }
.cannot li:first-child, .limits li:first-child { border-top: 1px solid #5a5242; }
.limits { flex: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); column-gap: 48px; }
.limits li:nth-child(2) { border-top: 1px solid #5a5242; }
.free { align-items: flex-start; }
.close-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.closing { padding-top: 0; padding-bottom: 96px; }

/* the Overview in markup: the app's own tokens (apps/web/tailwind.config.js), set here. Figure 40 / 600 (30 when narrow),
   lead 18 / 600, body 16 / 400, quiet 14 / 400 in the muted colour; Outfit with tabular numerals. */
.browser { container-type: inline-size; background: var(--white); box-shadow: 0 24px 50px rgba(43, 37, 25, 0.16); }
.browser { border-radius: 18px; overflow: hidden; border: 1px solid rgba(43, 37, 25, 0.12); }
.browser .dots { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--sand); border-bottom: 1px solid rgba(43, 37, 25, 0.1); }
.browser .dots i { width: 11px; height: 11px; border-radius: 6px; background: var(--line); display: block; }
.browser .address { flex: 0 1 260px; margin-left: 12px; text-align: center; font-size: 14px; color: var(--muted); background: var(--white); border-radius: 8px; padding: 2px 14px; line-height: 1.5; }
.app { background: var(--bone); padding: 28px; display: flex; flex-direction: column; gap: 24px; font-size: 16px; line-height: 1.5; text-align: left; }
.app-lead { font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--bark); }
.app-body { font-size: 16px; line-height: 1.5; font-weight: 400; color: var(--bark); }
.app-quiet { font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--muted); }
.app-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.app-head .app-lead { flex: 1 1 160px; }
/* The header's two controls, as the app sets them: one height, one width, side by side; on a narrow screen two equal columns. */
.app-controls { display: grid; grid-template-columns: repeat(2, 128px); gap: 12px; }
.app-select, .app-ask { height: 40px; border-radius: 8px; display: flex; align-items: center; padding: 0 12px; }
.app-select { justify-content: space-between; background: var(--white); border: 1px solid rgba(43, 37, 25, 0.2); }
.app-ask { justify-content: center; background: var(--gold); }
.app-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.app-card { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid rgba(43, 37, 25, 0.1); border-radius: 12px; padding: 16px; min-width: 0; }
.app-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 30px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--bark); }
.app-figure .app-pre { font-size: 18px; line-height: 1.35; color: var(--muted); }
.app-figure .app-num { white-space: nowrap; }
.app-section { display: flex; flex-direction: column; gap: 12px; }
.app-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.app-lenses { display: flex; flex-wrap: wrap; gap: 8px; }
.lens { font-size: 14px; line-height: 1.45; padding: 4px 14px; border: 1px solid rgba(43, 37, 25, 0.2); border-radius: 999px; color: var(--muted); }
.lens.on { border-color: var(--gold); background: rgba(199, 154, 62, 0.15); color: var(--bark); }
.app-bar { display: block; width: 100%; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(43, 37, 25, 0.1); }
.app-list { list-style: none; display: flex; flex-direction: column; }
.app-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: start; border-top: 1px solid rgba(43, 37, 25, 0.1); padding: 12px 0; }
.app-swatch { display: block; padding-top: 6px; }
.app-swatch svg { display: block; }
.app-amount, .app-share { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.app-where { grid-column: 2; }
.app-where + .app-share { grid-column: 3; }
/* Wide enough (the hero column on a desktop): Net worth across the top at the figure step, Assets and Liabilities side by side
   under it at the narrow figure step, so the whole Overview fits beside the copy. */
@container (min-width: 520px) {
  .app-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-card-main { grid-column: 1 / -1; }
  .app-card-main .app-figure { font-size: 40px; }
}
@container (min-width: 760px) {
  .app-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-card-main { grid-column: auto; }
  .app-figure { font-size: 40px; }
}
@container (max-width: 520px) {
  .app { padding: 16px; gap: 18px; }
  .app-controls { flex: 1 1 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* /security */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.step .num { font-family: var(--mono); font-size: 14px; color: var(--gold-text); }
.step div { display: flex; flex-direction: column; gap: 8px; }
.step p { color: var(--muted); }

/* /questions */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 500; font-size: 20px; line-height: 1.3; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 8px; top: 16px; font-size: 28px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 44px 24px 0; max-width: 720px; color: var(--muted); }

/* long reading */
.article { max-width: 720px; margin: 0 auto; padding: 72px 32px 64px; display: flex; flex-direction: column; gap: 22px; }
.article.wide { max-width: 1200px; padding-bottom: 48px; }
.article.wide > * { max-width: 760px; }
/* /story: one narrow column, Outfit at reading size, nothing in the margins. */
.article.story { max-width: 680px; gap: 28px; font-size: 21px; line-height: 1.75; font-weight: 400; padding-bottom: 72px; }
.article.story h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 8px; }
.article .rule { width: 64px; height: 2px; background: var(--gold-text); margin: 12px 0; }
.pull { margin: 8px 0; padding: 0 0 0 24px; border-left: 4px solid var(--gold-text); }
.pull p { font-weight: 500; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -0.5px; }
.signed { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 18px; font-weight: 500; }

.center-page { max-width: 720px; margin: 0 auto; padding: 72px 32px 120px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.links404 { display: flex; flex-wrap: wrap; gap: 0 28px; }
.links404 a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap, .wrap-narrow { padding: 56px 20px; }
  .site-header { padding: 14px 20px 0; }
  .nav { gap: 0 18px; font-size: 15px; }
  .hero-inner { padding: 32px 20px 8px; }
  .hero .lede { font-size: 18px; }
  .row { gap: 36px; }
  .article { padding: 48px 20px 56px; }
  .article.story { font-size: 20px; }
  .site-footer .inner { padding: 28px 20px 36px; }
  .center-page { padding: 48px 20px 80px; }
  .close-card { padding: 24px; }
  .grid, .grid.wide, .grid.six, .grid.two, .lines, .steps,   .limits { grid-template-columns: minmax(0, 1fr); }
  .limits li:nth-child(2) { border-top: 0; }
}
/* Phone widths up to 430px: the five items need 388px at 15px, so below about 428px they do not fit one row under the 44px lockup and
   "Get started" dropped to a row of its own, and at 430px "Story" and "Sign in" were narrower than 44px (D16). The row is kept: 14px text, smaller side padding, spread across the width, every target at least 44px. */
@media (max-width: 430px) {
  .nav { flex: 1 1 100%; justify-content: space-between; gap: 0 2px; font-size: 14px; }
  .nav a { min-width: 44px; justify-content: center; padding: 0 4px; }
  .nav a.btn-gold { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* /privacy and /terms (D37): the legal files in the reading column. A table never scrolls or widens the page: its cells wrap. */
.article.legal { gap: 0; }
.article.legal h1 { margin-bottom: 4px; }
.article.legal h2 { font-size: clamp(24px, 2.2vw, 30px); margin: 40px 0 8px; }
.article.legal p, .article.legal ul, .article.legal table { margin: 10px 0; }
.article.legal ul { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.article.legal p, .article.legal li { overflow-wrap: anywhere; }
/* break-word, not anywhere, in a cell: a column is sized to its longest word, so a provider's name never splits. */
.article.legal td, .article.legal th { overflow-wrap: break-word; }
.article.legal strong { font-weight: 600; }
.article.legal table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.article.legal th, .article.legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.article.legal th { font-weight: 600; border-top: 0; }
@media (max-width: 720px) {
  .article.legal table { font-size: 15px; }
  .article.legal th, .article.legal td { padding-right: 8px; }
}

/* The blog (D60): the posts in the reading column, the byline and dates in the muted colour, sources underlined. */
.article.blog { gap: 0; }
.article.blog h1 { margin-bottom: 12px; }
.article.blog h2 { font-size: clamp(24px, 2.2vw, 30px); margin: 40px 0 8px; }
.article.blog p, .article.blog ul, .article.blog ol { margin: 10px 0; }
.article.blog ul, .article.blog ol { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.article.blog p, .article.blog li { overflow-wrap: anywhere; }
.article.blog strong { font-weight: 600; }
.article.blog p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.article.blog .byline { color: var(--muted); font-size: 16px; margin: 0 0 8px; }
.article.blog .blog-close { margin-top: 32px; }
.article.blog .blog-list { list-style: none; padding: 0; margin: 24px 0 0; gap: 0; }
.article.blog .blog-list li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.article.blog .blog-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; font-weight: 500; line-height: 1.3; }
.article.blog .blog-list .byline { margin: 0; }

/* /will-check (D42): the four steps and the result. What shows for the answers is in the rules build.mjs appends from
   src/willcheck.mjs; here the parts start hidden and are set out. */
.article.wc-head { max-width: 900px; padding-bottom: 0; }
.wc-steps { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.wc-step { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.wc-step h2 { font-size: clamp(22px, 2vw, 28px); }
.wc-help { color: var(--muted); font-size: 16px; }
.wc select, .wc input, .wc summary { font: inherit; }
.wc select { min-height: 48px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--bark); font-size: 16px; }
/* The country lists: each checkbox sits just before its label, which is drawn as a tile with its own box. */
.wc-picks { display: flex; flex-wrap: wrap; row-gap: 8px; margin: 0 -4px; }
.pick { appearance: none; width: 0; height: 0; margin: 0; opacity: 0; flex: none; }
.pick + label { flex: 1 1 200px; margin: 0 4px; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bone); cursor: pointer; font-size: 16px; line-height: 1.3; }
.pick + label::before { content: ''; flex: none; width: 20px; height: 20px; border: 2px solid var(--bark); border-radius: 5px; background: var(--white); }
.pick:checked + label { border-color: var(--bark); background: var(--sand); }
.pick:checked + label::before { background: var(--bark); box-shadow: inset 0 0 0 3px var(--white); }
.pick:focus-visible + label { outline: 3px solid var(--bark); outline-offset: 2px; }
.wc-more { border-top: 1px solid var(--line); }
.wc-more summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 500; font-size: 16px; }
.wc-more[open] summary { margin-bottom: 8px; }
.wc-kinds { display: none; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.wc-kind { display: none; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; border: 0; min-width: 0; }
.wc-kind-name { width: 100%; font-weight: 500; font-size: 16px; }
.wc-opt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; }
.wc-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--bark); flex: none; }
.wc-opt label { cursor: pointer; }
.wc-choices { display: flex; flex-direction: column; gap: 4px; }
.wc-made { flex-wrap: wrap; }
.wc-will-in { display: none; }
.wc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.wc-field { display: flex; flex-direction: column; gap: 6px; font-size: 16px; min-width: 0; }
.wc-result { display: none; flex-direction: column; gap: 20px; padding-top: 0; padding-bottom: 48px; }
.wc-result > p { color: var(--muted); }
.wc-revoke, .wc-guardian { display: none; border-left: 4px solid var(--gold-text); padding: 4px 0 4px 18px; }
.wc-cards { display: flex; flex-direction: column; gap: 16px; }
.wc-card { display: none; flex-direction: column; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.wc-card h3 { margin-bottom: 4px; }
.wc-card h4 { margin: 12px 0 0; font-size: 17px; font-weight: 500; line-height: 1.35; }
.wc-card p { color: var(--muted); font-size: 16px; }
.wc-card p.wc-label { font-size: 15px; font-style: normal; color: var(--gold-text); }
.wc-card p.wc-note { color: var(--bark); margin-top: 8px; }
.wc-card p.wc-source { margin-top: 12px; overflow-wrap: anywhere; }
.wc-sources { list-style: none; display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 16px; }
.wc-sources li { overflow-wrap: anywhere; }
.wc-sources a { display: inline-flex; align-items: center; min-height: 44px; }
.wc-next { padding-top: 0; padding-bottom: 32px; }
.wc-share-more { color: var(--muted); font-size: 16px; line-height: 1.9; }
.wc-share-more a { padding: 12px 0; }
.wc-address { user-select: all; -webkit-user-select: all; color: var(--bark); overflow-wrap: anywhere; }
.wc-foot { padding-top: 0; }
@media (max-width: 720px) {
  .wc-steps { padding-top: 32px; }
  .wc-step, .wc-card { padding: 18px; }
  .pick + label { flex-basis: 130px; padding: 10px; gap: 10px; }
}

/* The will check's "Keep a copy" (D49, issue #54): the form under the cards, and the short pages its email leads back to. */
.wc-email { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.wc-email .wc-field { width: 100%; max-width: 420px; }
.wc-email input[type="email"] { min-height: 48px; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--bark); font-size: 16px; }
.wc-email .wc-opt { align-items: flex-start; }
.wc-email .wc-opt input { margin-top: 2px; }
.wc-email button.btn { border: 0; font: inherit; font-weight: 500; cursor: pointer; }

/* The will check (D42): written by apps/site/src/willcheck.mjs from the data file, one selector per country. */
.wc:has(#a-af:checked) :is(.r-af, .k-af),
.wc:has(#a-al:checked) :is(.r-al, .k-al),
.wc:has(#a-dz:checked) :is(.r-dz, .k-dz),
.wc:has(#a-ad:checked) :is(.r-ad, .k-ad),
.wc:has(#a-ao:checked) :is(.r-ao, .k-ao),
.wc:has(#a-ag:checked) :is(.r-ag, .k-ag),
.wc:has(#a-ar:checked) :is(.r-ar, .k-ar),
.wc:has(#a-am:checked) :is(.r-am, .k-am),
.wc:has(#a-au:checked) :is(.r-au, .k-au),
.wc:has(#a-at:checked) :is(.r-at, .k-at),
.wc:has(#a-az:checked) :is(.r-az, .k-az),
.wc:has(#a-bs:checked) :is(.r-bs, .k-bs),
.wc:has(#a-bh:checked) :is(.r-bh, .k-bh),
.wc:has(#a-bd:checked) :is(.r-bd, .k-bd),
.wc:has(#a-bb:checked) :is(.r-bb, .k-bb),
.wc:has(#a-by:checked) :is(.r-by, .k-by),
.wc:has(#a-be:checked) :is(.r-be, .k-be),
.wc:has(#a-bz:checked) :is(.r-bz, .k-bz),
.wc:has(#a-bj:checked) :is(.r-bj, .k-bj),
.wc:has(#a-bt:checked) :is(.r-bt, .k-bt),
.wc:has(#a-bo:checked) :is(.r-bo, .k-bo),
.wc:has(#a-ba:checked) :is(.r-ba, .k-ba),
.wc:has(#a-bw:checked) :is(.r-bw, .k-bw),
.wc:has(#a-br:checked) :is(.r-br, .k-br),
.wc:has(#a-bn:checked) :is(.r-bn, .k-bn),
.wc:has(#a-bg:checked) :is(.r-bg, .k-bg),
.wc:has(#a-bf:checked) :is(.r-bf, .k-bf),
.wc:has(#a-bi:checked) :is(.r-bi, .k-bi),
.wc:has(#a-cv:checked) :is(.r-cv, .k-cv),
.wc:has(#a-kh:checked) :is(.r-kh, .k-kh),
.wc:has(#a-cm:checked) :is(.r-cm, .k-cm),
.wc:has(#a-ca:checked) :is(.r-ca, .k-ca),
.wc:has(#a-cf:checked) :is(.r-cf, .k-cf),
.wc:has(#a-td:checked) :is(.r-td, .k-td),
.wc:has(#a-cl:checked) :is(.r-cl, .k-cl),
.wc:has(#a-cn:checked) :is(.r-cn, .k-cn),
.wc:has(#a-co:checked) :is(.r-co, .k-co),
.wc:has(#a-km:checked) :is(.r-km, .k-km),
.wc:has(#a-cg:checked) :is(.r-cg, .k-cg),
.wc:has(#a-cr:checked) :is(.r-cr, .k-cr),
.wc:has(#a-ci:checked) :is(.r-ci, .k-ci),
.wc:has(#a-hr:checked) :is(.r-hr, .k-hr),
.wc:has(#a-cu:checked) :is(.r-cu, .k-cu),
.wc:has(#a-cy:checked) :is(.r-cy, .k-cy),
.wc:has(#a-cz:checked) :is(.r-cz, .k-cz),
.wc:has(#a-cd:checked) :is(.r-cd, .k-cd),
.wc:has(#a-dk:checked) :is(.r-dk, .k-dk),
.wc:has(#a-dj:checked) :is(.r-dj, .k-dj),
.wc:has(#a-dm:checked) :is(.r-dm, .k-dm),
.wc:has(#a-do:checked) :is(.r-do, .k-do),
.wc:has(#a-ec:checked) :is(.r-ec, .k-ec),
.wc:has(#a-eg:checked) :is(.r-eg, .k-eg),
.wc:has(#a-sv:checked) :is(.r-sv, .k-sv),
.wc:has(#a-gq:checked) :is(.r-gq, .k-gq),
.wc:has(#a-er:checked) :is(.r-er, .k-er),
.wc:has(#a-ee:checked) :is(.r-ee, .k-ee),
.wc:has(#a-sz:checked) :is(.r-sz, .k-sz),
.wc:has(#a-et:checked) :is(.r-et, .k-et),
.wc:has(#a-fj:checked) :is(.r-fj, .k-fj),
.wc:has(#a-fi:checked) :is(.r-fi, .k-fi),
.wc:has(#a-fr:checked) :is(.r-fr, .k-fr),
.wc:has(#a-ga:checked) :is(.r-ga, .k-ga),
.wc:has(#a-gm:checked) :is(.r-gm, .k-gm),
.wc:has(#a-ge:checked) :is(.r-ge, .k-ge),
.wc:has(#a-de:checked) :is(.r-de, .k-de),
.wc:has(#a-gh:checked) :is(.r-gh, .k-gh),
.wc:has(#a-gr:checked) :is(.r-gr, .k-gr),
.wc:has(#a-gd:checked) :is(.r-gd, .k-gd),
.wc:has(#a-gt:checked) :is(.r-gt, .k-gt),
.wc:has(#a-gn:checked) :is(.r-gn, .k-gn),
.wc:has(#a-gw:checked) :is(.r-gw, .k-gw),
.wc:has(#a-gy:checked) :is(.r-gy, .k-gy),
.wc:has(#a-ht:checked) :is(.r-ht, .k-ht),
.wc:has(#a-va:checked) :is(.r-va, .k-va),
.wc:has(#a-hn:checked) :is(.r-hn, .k-hn),
.wc:has(#a-hu:checked) :is(.r-hu, .k-hu),
.wc:has(#a-is:checked) :is(.r-is, .k-is),
.wc:has(#a-in:checked) :is(.r-in, .k-in),
.wc:has(#a-id:checked) :is(.r-id, .k-id),
.wc:has(#a-ir:checked) :is(.r-ir, .k-ir),
.wc:has(#a-iq:checked) :is(.r-iq, .k-iq),
.wc:has(#a-ie:checked) :is(.r-ie, .k-ie),
.wc:has(#a-il:checked) :is(.r-il, .k-il),
.wc:has(#a-it:checked) :is(.r-it, .k-it),
.wc:has(#a-jm:checked) :is(.r-jm, .k-jm),
.wc:has(#a-jp:checked) :is(.r-jp, .k-jp),
.wc:has(#a-jo:checked) :is(.r-jo, .k-jo),
.wc:has(#a-kz:checked) :is(.r-kz, .k-kz),
.wc:has(#a-ke:checked) :is(.r-ke, .k-ke),
.wc:has(#a-ki:checked) :is(.r-ki, .k-ki),
.wc:has(#a-kw:checked) :is(.r-kw, .k-kw),
.wc:has(#a-kg:checked) :is(.r-kg, .k-kg),
.wc:has(#a-la:checked) :is(.r-la, .k-la),
.wc:has(#a-lv:checked) :is(.r-lv, .k-lv),
.wc:has(#a-lb:checked) :is(.r-lb, .k-lb),
.wc:has(#a-ls:checked) :is(.r-ls, .k-ls),
.wc:has(#a-lr:checked) :is(.r-lr, .k-lr),
.wc:has(#a-ly:checked) :is(.r-ly, .k-ly),
.wc:has(#a-li:checked) :is(.r-li, .k-li),
.wc:has(#a-lt:checked) :is(.r-lt, .k-lt),
.wc:has(#a-lu:checked) :is(.r-lu, .k-lu),
.wc:has(#a-mg:checked) :is(.r-mg, .k-mg),
.wc:has(#a-mw:checked) :is(.r-mw, .k-mw),
.wc:has(#a-my:checked) :is(.r-my, .k-my),
.wc:has(#a-mv:checked) :is(.r-mv, .k-mv),
.wc:has(#a-ml:checked) :is(.r-ml, .k-ml),
.wc:has(#a-mt:checked) :is(.r-mt, .k-mt),
.wc:has(#a-mh:checked) :is(.r-mh, .k-mh),
.wc:has(#a-mr:checked) :is(.r-mr, .k-mr),
.wc:has(#a-mu:checked) :is(.r-mu, .k-mu),
.wc:has(#a-mx:checked) :is(.r-mx, .k-mx),
.wc:has(#a-fm:checked) :is(.r-fm, .k-fm),
.wc:has(#a-md:checked) :is(.r-md, .k-md),
.wc:has(#a-mc:checked) :is(.r-mc, .k-mc),
.wc:has(#a-mn:checked) :is(.r-mn, .k-mn),
.wc:has(#a-me:checked) :is(.r-me, .k-me),
.wc:has(#a-ma:checked) :is(.r-ma, .k-ma),
.wc:has(#a-mz:checked) :is(.r-mz, .k-mz),
.wc:has(#a-mm:checked) :is(.r-mm, .k-mm),
.wc:has(#a-na:checked) :is(.r-na, .k-na),
.wc:has(#a-nr:checked) :is(.r-nr, .k-nr),
.wc:has(#a-np:checked) :is(.r-np, .k-np),
.wc:has(#a-nl:checked) :is(.r-nl, .k-nl),
.wc:has(#a-nz:checked) :is(.r-nz, .k-nz),
.wc:has(#a-ni:checked) :is(.r-ni, .k-ni),
.wc:has(#a-ne:checked) :is(.r-ne, .k-ne),
.wc:has(#a-ng:checked) :is(.r-ng, .k-ng),
.wc:has(#a-kp:checked) :is(.r-kp, .k-kp),
.wc:has(#a-mk:checked) :is(.r-mk, .k-mk),
.wc:has(#a-no:checked) :is(.r-no, .k-no),
.wc:has(#a-om:checked) :is(.r-om, .k-om),
.wc:has(#a-pk:checked) :is(.r-pk, .k-pk),
.wc:has(#a-pw:checked) :is(.r-pw, .k-pw),
.wc:has(#a-ps:checked) :is(.r-ps, .k-ps),
.wc:has(#a-pa:checked) :is(.r-pa, .k-pa),
.wc:has(#a-pg:checked) :is(.r-pg, .k-pg),
.wc:has(#a-py:checked) :is(.r-py, .k-py),
.wc:has(#a-pe:checked) :is(.r-pe, .k-pe),
.wc:has(#a-ph:checked) :is(.r-ph, .k-ph),
.wc:has(#a-pl:checked) :is(.r-pl, .k-pl),
.wc:has(#a-pt:checked) :is(.r-pt, .k-pt),
.wc:has(#a-qa:checked) :is(.r-qa, .k-qa),
.wc:has(#a-ro:checked) :is(.r-ro, .k-ro),
.wc:has(#a-ru:checked) :is(.r-ru, .k-ru),
.wc:has(#a-rw:checked) :is(.r-rw, .k-rw),
.wc:has(#a-kn:checked) :is(.r-kn, .k-kn),
.wc:has(#a-lc:checked) :is(.r-lc, .k-lc),
.wc:has(#a-vc:checked) :is(.r-vc, .k-vc),
.wc:has(#a-ws:checked) :is(.r-ws, .k-ws),
.wc:has(#a-sm:checked) :is(.r-sm, .k-sm),
.wc:has(#a-st:checked) :is(.r-st, .k-st),
.wc:has(#a-sa:checked) :is(.r-sa, .k-sa),
.wc:has(#a-sn:checked) :is(.r-sn, .k-sn),
.wc:has(#a-rs:checked) :is(.r-rs, .k-rs),
.wc:has(#a-sc:checked) :is(.r-sc, .k-sc),
.wc:has(#a-sl:checked) :is(.r-sl, .k-sl),
.wc:has(#a-sg:checked) :is(.r-sg, .k-sg),
.wc:has(#a-sk:checked) :is(.r-sk, .k-sk),
.wc:has(#a-si:checked) :is(.r-si, .k-si),
.wc:has(#a-sb:checked) :is(.r-sb, .k-sb),
.wc:has(#a-so:checked) :is(.r-so, .k-so),
.wc:has(#a-za:checked) :is(.r-za, .k-za),
.wc:has(#a-kr:checked) :is(.r-kr, .k-kr),
.wc:has(#a-ss:checked) :is(.r-ss, .k-ss),
.wc:has(#a-es:checked) :is(.r-es, .k-es),
.wc:has(#a-lk:checked) :is(.r-lk, .k-lk),
.wc:has(#a-sd:checked) :is(.r-sd, .k-sd),
.wc:has(#a-sr:checked) :is(.r-sr, .k-sr),
.wc:has(#a-se:checked) :is(.r-se, .k-se),
.wc:has(#a-ch:checked) :is(.r-ch, .k-ch),
.wc:has(#a-sy:checked) :is(.r-sy, .k-sy),
.wc:has(#a-tj:checked) :is(.r-tj, .k-tj),
.wc:has(#a-tz:checked) :is(.r-tz, .k-tz),
.wc:has(#a-th:checked) :is(.r-th, .k-th),
.wc:has(#a-tl:checked) :is(.r-tl, .k-tl),
.wc:has(#a-tg:checked) :is(.r-tg, .k-tg),
.wc:has(#a-to:checked) :is(.r-to, .k-to),
.wc:has(#a-tt:checked) :is(.r-tt, .k-tt),
.wc:has(#a-tn:checked) :is(.r-tn, .k-tn),
.wc:has(#a-tr:checked) :is(.r-tr, .k-tr),
.wc:has(#a-tm:checked) :is(.r-tm, .k-tm),
.wc:has(#a-tv:checked) :is(.r-tv, .k-tv),
.wc:has(#a-ug:checked) :is(.r-ug, .k-ug),
.wc:has(#a-ua:checked) :is(.r-ua, .k-ua),
.wc:has(#a-ae:checked) :is(.r-ae, .k-ae),
.wc:has(#a-gb:checked) :is(.r-gb, .k-gb),
.wc:has(#a-us:checked) :is(.r-us, .k-us),
.wc:has(#a-uy:checked) :is(.r-uy, .k-uy),
.wc:has(#a-uz:checked) :is(.r-uz, .k-uz),
.wc:has(#a-vu:checked) :is(.r-vu, .k-vu),
.wc:has(#a-ve:checked) :is(.r-ve, .k-ve),
.wc:has(#a-vn:checked) :is(.r-vn, .k-vn),
.wc:has(#a-ye:checked) :is(.r-ye, .k-ye),
.wc:has(#a-zm:checked) :is(.r-zm, .k-zm),
.wc:has(#a-zw:checked) :is(.r-zw, .k-zw) { display: flex; }
.wc:has(.pick:checked) :is(.wc-result, .wc-kinds) { display: flex; }
.wc:has(.wc-top > .pick:checked ~ .pick:checked) .wc-revoke,
.wc:has(.wc-rest > .pick:checked ~ .pick:checked) .wc-revoke,
.wc:has(.wc-top > .pick:checked):has(.wc-rest > .pick:checked) .wc-revoke,
.wc:has(#will-many:checked) .wc-revoke { display: block; }
.wc:has(#kids-yes:checked) .wc-guardian { display: block; }
.wc:has(#will-one:checked) .wc-will-in { display: block; }
