/* eNotaries.ph, after the "Civic Editorial Utility" design from Google Stitch:
   warm off-white paper, white hairline cards, pine teal for action, amber for caution. */

:root {
  --bg: #f9f9f7;
  --surface: #ffffff;
  --surface-low: #f4f4f2;
  --surface-mid: #eeeeec;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #55636f;
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-deep: #005c55;
  --primary-tint: #f0fdfa;
  --primary-soft: #ccfbf1;
  --on-primary: #ffffff;
  --on-deep-2: #a3faef;
  --amber: #d97706;
  --amber-ink: #7d4200;
  --amber-tint: #fff7ed;
  --peach: #fdf1e7;
  --danger-ink: #b91c1c;
  --danger-tint: #fef2f2;
  --halo: rgba(15, 118, 110, 0.15);
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --step-1: #ffdcc3;
  --step-2: #d5e3fd;
  --step-3: #9cf2e8;
  --step-4: #e2e3e1;
  --head: "Plus Jakarta Sans", system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111413;
    --surface: #191d1c;
    --surface-low: #1f2423;
    --surface-mid: #262c2b;
    --line: #2c3533;
    --line-strong: #3e4947;
    --ink: #eef1f0;
    --ink-2: #c9d1cf;
    --muted: #a3b0ad;
    --primary: #4fc3b6;
    --primary-hover: #80d5cb;
    --primary-deep: #00504a;
    --primary-tint: #102725;
    --primary-soft: #134e48;
    --on-primary: #00201d;
    --on-deep-2: #9cf2e8;
    --amber: #fbbf24;
    --amber-ink: #ffb77d;
    --amber-tint: #2a1e12;
    --peach: #221a14;
    --danger-ink: #fca5a5;
    --danger-tint: #2a1515;
    --halo: rgba(79, 195, 182, 0.2);
    --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
    --step-1: #5a3a1f;
    --step-2: #2c3a52;
    --step-3: #134e48;
    --step-4: #343a39;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 1rem/1.5 var(--body);
  font-feature-settings: "tnum" 1;
}
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
ul, ol { margin: 0; padding: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 3rem; }
@media (max-width: 767px) { .wrap { padding: 0 1rem; } }

/* ---------- header ---------- */

.topstrip {
  background: var(--surface-mid);
  color: var(--ink-2);
  font: 600 .6875rem/1.3 var(--body);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: .5rem 1rem;
}
.topstrip::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: .5rem; vertical-align: 1px; }

.site-head { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-head > .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 1.25rem/1 var(--head); letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand b { font-weight: 600; color: var(--primary); }
.brand svg { flex: none; }
.site-nav { display: flex; gap: .25rem; margin-left: auto; }
.site-nav a {
  font: 500 .875rem/1 var(--body); color: var(--ink-2); text-decoration: none;
  padding: .55rem .9rem; border-radius: 9999px; white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-mid); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-deep); }
@media (prefers-color-scheme: dark) { .site-nav a[aria-current="page"] { color: var(--on-deep-2); } }
/* Search and the English / Filipino toggle: after the menu on wide screens, beside the logo on phones */
.head-tools { order: 3; flex: none; display: flex; align-items: center; gap: .5rem; }
.lang-toggle {
  flex: none; display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: 9999px; background: var(--surface);
  font: 600 .8125rem/1 var(--body);
}
.lang-toggle > * { padding: .45rem .75rem; border-radius: 9999px; text-decoration: none; color: var(--ink-2); letter-spacing: .02em; }
.lang-toggle > [aria-current] { background: var(--primary); color: #fff; }
.lang-toggle > a:hover { background: var(--primary-tint); color: var(--primary-deep); }
@media (prefers-color-scheme: dark) { .lang-toggle > [aria-current] { color: var(--surface); } .lang-toggle > a { color: var(--on-deep-2); } .lang-toggle > a:hover { background: transparent; color: var(--on-deep-2); text-decoration: underline; } }
@media (prefers-reduced-motion: no-preference) { .lang-toggle > * { transition: background-color .15s ease, color .15s ease; } }

/* The menu: all items in a row on wide screens; below 1500px (2040px in Filipino) the later ones go under "More" */
.site-nav { align-items: center; }
.nav-wide, .nav-mid { display: contents; }
.nav-more-mid { display: none; }
/* Narrow phones: two items and "More", on one row. */
@media (max-width: 599px) {
  .nav-mid { display: none; }
  .nav-more-mid { display: contents; }
  .site-nav { flex-wrap: nowrap; }
}
.nav-more { display: none; position: relative; }
.nav-more summary {
  list-style: none; cursor: pointer; font: 500 .875rem/1 var(--body); color: var(--ink-2);
  padding: .55rem .9rem; border-radius: 9999px; white-space: nowrap;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " ▾"; font-size: .75em; }
.nav-more summary:hover, .nav-more[open] summary { background: var(--surface-mid); color: var(--ink); }
.nav-more:has([aria-current]) summary { background: var(--primary-soft); color: var(--primary-deep); }
.nav-more-list {
  position: absolute; right: 0; top: calc(100% + .35rem); z-index: 20; min-width: 13rem;
  display: grid; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem;
  box-shadow: 0 12px 32px rgb(0 0 0 / .12);
}
.nav-more-list a { border-radius: .6rem; }
.nav-more:not([open]) .nav-more-list { display: none; }
@media (max-width: 1499px) {
  .nav-wide { display: none; }
  .nav-more { display: block; }
}
/* The Filipino menu labels are longer, so they fold into "Iba pa" sooner. */
@media (max-width: 2039px) {
  html[lang="tl"] .nav-wide { display: none; }
  html[lang="tl"] .nav-more { display: block; }
}
/* Narrower screens: the menu drops to its own row under the logo (sooner in Filipino, whose labels are longer). */
@media (max-width: 1099px) {
  .site-head > .wrap { flex-wrap: wrap; gap: .25rem; padding-top: .75rem; }
  .head-tools { order: 1; margin-left: auto; }
  .site-nav { order: 2; margin: 0 -.4rem; padding: .25rem 0 .75rem; width: calc(100% + .8rem); flex-wrap: wrap; gap: .15rem; }
  .site-nav a, .nav-more summary { padding: .55rem .7rem; }
  .nav-more-list { left: 0; right: auto; }
}
@media (min-width: 1100px) and (max-width: 1199px) {
  html[lang="tl"] .site-head > .wrap { flex-wrap: wrap; gap: .25rem; padding-top: .75rem; }
  html[lang="tl"] .head-tools { order: 1; margin-left: auto; }
  html[lang="tl"] .site-nav { order: 2; margin: 0 -.4rem; padding: .25rem 0 .75rem; width: calc(100% + .8rem); flex-wrap: wrap; gap: .15rem; }
  html[lang="tl"] .nav-more-list { left: 0; right: auto; }
}

/* ---------- search ---------- */

/* The header button: a field-like pill on wide screens, a round icon on phones. */
.site-head { position: relative; z-index: 30; }
.search-open {
  display: inline-flex; align-items: center; gap: .5rem; height: 2.25rem; padding: 0 .45rem 0 .8rem;
  border: 1px solid var(--line-strong); border-radius: 9999px; background: var(--surface); color: var(--muted);
  font: 500 .875rem/1 var(--body); cursor: pointer;
}
.search-open svg { width: 18px; height: 18px; color: var(--ink-2); }
.search-open-text { min-width: 5.5rem; text-align: left; }
.search-open kbd { font: 600 .75rem/1 var(--body); color: var(--muted); border: 1px solid var(--line-strong); border-radius: .35rem; padding: .2rem .4rem; }
.search-open:hover, .search-open[aria-expanded="true"] { border-color: var(--primary); color: var(--primary-deep); }
.search-open:hover svg, .search-open[aria-expanded="true"] svg { color: var(--primary); }
.search-open:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--halo); }
@media (prefers-color-scheme: dark) { .search-open:hover, .search-open[aria-expanded="true"] { color: var(--on-deep-2); } }
/* Just the icon where the header is short of room: phones, and beside the full menu (always, in the longer Filipino). */
@media (max-width: 599px), (min-width: 1100px) and (max-width: 1799px) {
  .search-open { width: 2.25rem; padding: 0; justify-content: center; }
  .search-open-text, .search-open kbd { display: none; }
}
@media (min-width: 1100px) {
  html[lang="tl"] .search-open { width: 2.25rem; padding: 0; justify-content: center; }
  html[lang="tl"] .search-open-text, html[lang="tl"] .search-open kbd { display: none; }
}

@media (max-width: 374px) {
  .head-tools { gap: .3rem; }
  .lang-toggle > * { padding: .45rem .55rem; }
}

/* The search box itself, in the header panel, on the search page and on the finder. */
.search-field { position: relative; display: block; }
.search-field > svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-field input[type="search"] {
  width: 100%; appearance: none;
  font: 400 1.0625rem/1.5 var(--body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9999px;
  padding: .8rem 1.1rem .8rem 3rem; box-shadow: var(--shadow);
}
.search-field input[type="search"]:hover { border-color: var(--muted); }
.search-field input[type="search"]:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--halo); }
.search-field:focus-within > svg { color: var(--primary); }
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 1.1rem; height: 1.1rem; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 5.5l9 9M14.5 5.5l-9 9' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The panel that opens under the header. */
.search-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -16px rgba(15, 23, 42, .25);
  padding: 1rem 0 1.25rem;
}
.search-panel .wrap { max-width: 46rem; }
.search-panel .search-results { max-height: min(62vh, 32rem); overflow-y: auto; overscroll-behavior: contain; }

.search-results { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .25rem; }
.search-hit { display: block; padding: .7rem 1rem; border-radius: .75rem; text-decoration: none; color: var(--ink); }
.search-hit:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.search-hit:focus-visible { outline: none; background: var(--surface); box-shadow: inset 0 0 0 2px var(--primary); }
.search-kind { display: block; margin-bottom: .2rem; font: 600 .6875rem/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.search-hit b { display: block; font: 600 1rem/1.35 var(--head); }
.search-hit small { display: block; margin-top: .2rem; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.search-hit mark { background: var(--primary-soft); color: inherit; border-radius: .2rem; padding: 0 .08em; }
@media (prefers-color-scheme: dark) { .search-hit mark { background: rgba(45, 212, 191, .22); } .search-kind { color: var(--on-deep-2); } }
.search-none { padding: .7rem 1rem; color: var(--muted); }
.search-all a { display: block; padding: .7rem 1rem; font-weight: 600; }

.search-page { max-width: 46rem; }
.search-page .search-note { margin-top: 1rem; }
.search-page .search-results { margin-top: .5rem; gap: .5rem; }
.search-page .search-hit { background: var(--surface); border: 1px solid var(--line); }
.find-search { max-width: 34rem; margin-bottom: 2rem; }

/* ---------- shared pieces ---------- */

main { padding-bottom: 4rem; }
.hero { padding: 2.5rem 0 2rem; }
.hero .lede { margin-top: 1rem; max-width: 40rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--ink-2); }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .6875rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary-deep); background: var(--primary-soft);
  padding: .4rem .7rem; border-radius: 9999px; margin-bottom: 1rem;
}
@media (prefers-color-scheme: dark) { .chip { color: var(--on-deep-2); } }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.amber { color: var(--amber-ink); background: var(--amber-tint); }
.eyebrow { font: 600 .75rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: .6rem; }
.accent { color: var(--primary); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}
.card h3 + p, .card h2 + p { margin-top: .5rem; }
.card p + p { margin-top: .75rem; }
.card .sub { color: var(--muted); font-size: .875rem; line-height: 1.375rem; }
.section { margin-top: 2.5rem; }
.section-head { margin-bottom: 1.25rem; }
.section-head p { margin-top: .4rem; color: var(--muted); max-width: 44rem; }
.grid { display: grid; gap: 1.5rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid.two, .grid.three, .grid.four { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .9375rem/1 var(--body); text-decoration: none; cursor: pointer;
  background: var(--primary); color: var(--on-primary); border: 0;
  padding: .85rem 1.5rem; border-radius: .5rem;
}
.button:hover { background: var(--primary-hover); color: var(--on-primary); }
.button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.button.quiet:hover { background: var(--surface-low); }

.note {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .875rem; line-height: 1.375rem;
  background: var(--surface-low); border-radius: .75rem; padding: .85rem 1rem;
}
.note.warn { background: var(--amber-tint); color: var(--amber-ink); }
.note.stop { background: var(--danger-tint); color: var(--danger-ink); }
.note b { color: inherit; }
.note.advice { display: block; background: var(--surface-low); border-left: 4px solid var(--primary); border-radius: 0 .75rem .75rem 0; margin: 1.5rem 0 .75rem; }
.foot-advice b { color: inherit; }
.fee-note { font-size: .8125rem; line-height: 1.25rem; color: var(--amber-ink); background: var(--amber-tint); border-radius: .5rem; padding: .4rem .7rem; margin: .6rem 0 0; }
.fee-note::before { content: "ⓘ "; }

.ticks li { list-style: none; position: relative; padding-left: 1.6rem; font-size: .9375rem; }
.ticks li + li { margin-top: .6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.ticks.no li::before {
  background: var(--danger-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ---------- home: price tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem 1.1rem; text-decoration: none; color: inherit; }
a.tile:hover { box-shadow: var(--shadow); color: inherit; }
.tile-name { font: 600 .6875rem/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.tile-price { font: 600 1.375rem/1.2 var(--body); letter-spacing: -0.01em; color: var(--primary); margin-top: .5rem; }
.tile-sub { font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.tiles-note { font-size: .8125rem; color: var(--muted); margin-top: .75rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } .tile-price { font-size: 1.125rem; } }

/* ---------- home: calculator ---------- */

.calc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; margin-top: 2rem; align-items: start; }
@media (max-width: 1023px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.calc { padding: 2rem; }
@media (max-width: 767px) { .calc { padding: 1.25rem; } }
.calc-head { margin-bottom: 1.75rem; }
.calc-head p { color: var(--muted); font-size: .875rem; margin-top: .3rem; }

.field { margin: 0 0 1.5rem; border: 0; padding: 0; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > legend { display: block; font: 500 .875rem/1.25rem var(--body); color: var(--ink); margin-bottom: .5rem; padding: 0; }
.field .hint { display: block; color: var(--muted); font-size: .8125rem; margin-top: .4rem; }
select, input[type="text"], input[type="email"], input[type="url"], input[type="month"], input:not([type]) {
  width: 100%;
  font: 400 1rem/1.5 var(--body); color: var(--ink);
  background-color: var(--surface-low); border: 1px solid var(--line-strong); border-radius: .5rem;
  padding: .75rem 1rem;
  appearance: none;
}
select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 1.1rem;
}
select:focus, input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--halo); background-color: var(--surface); }
input::placeholder { color: #94a3b8; }
.money { position: relative; }
.money::before { content: "₱"; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { padding-left: 2rem; }

.segments { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 520px) { .segments { grid-template-columns: 1fr; } }
.segment {
  display: flex; gap: .7rem; align-items: flex-start; cursor: pointer;
  background: var(--surface-low); border: 1px solid transparent; border-radius: .75rem; padding: .9rem 1rem;
}
.segment:has(input:checked) { background: var(--primary-tint); border-color: var(--primary); }
.segment input { accent-color: var(--primary); width: 24px; height: 24px; margin: 0; flex: none; }
.segment b { display: block; font-weight: 600; color: var(--ink); font-size: .9375rem; }
.segment span { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.25rem; margin-top: .15rem; }

/* the answer */
.result {
  background: var(--primary-deep); color: #e6fffb;
  border-radius: 1.5rem; padding: 1.75rem;
}
.result a { color: #fff; }
.result-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.result-label { font: 600 .75rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--on-deep-2); }
.badge { font: 600 .6875rem/1 var(--body); letter-spacing: .03em; color: #fff; background: rgba(255,255,255,.14); border-radius: 9999px; padding: .4rem .65rem; }
.result-figure {
  font: 700 clamp(2.25rem, 1.8rem + 2vw, 3.25rem)/1.1 var(--head); letter-spacing: -0.03em;
  color: #fff; margin-top: 1.1rem;
}
.result-figure.pending { font-size: 1.75rem; }
.result-explain { margin-top: .6rem; color: #d7f5f1; font-size: .9375rem; }
.ledger { margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid rgba(255,255,255,.16); }
.ledger div { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; color: #bfe9e4; padding: .25rem 0; }
.ledger div.on { color: #fff; font-weight: 600; }
.ledger dt, .ledger dd { margin: 0; }
.ledger dd { text-align: right; white-space: nowrap; }
.result-rule, .result-basis { margin-top: 1rem; font-size: .8125rem; line-height: 1.25rem; color: #bfe9e4; }
.result-rule { background: rgba(0,0,0,.16); border-radius: .75rem; padding: .75rem .9rem; color: #e6fffb; }
.result-basis { margin-top: .75rem; }
.aside-stack { display: grid; gap: 1.5rem; }
.pao h3 { font-size: 1.0625rem; }
.icon-badge {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem; flex: none;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-deep);
}
@media (prefers-color-scheme: dark) { .icon-badge { color: var(--on-deep-2); } }
.icon-badge.amber { background: var(--amber-tint); color: var(--amber-ink); }
.icon-badge.red { background: var(--danger-tint); color: var(--danger-ink); }
.card-head { display: flex; gap: .85rem; align-items: center; margin-bottom: .85rem; }

/* ---------- home: before you go ---------- */

.band { background: var(--peach); border-radius: 1.5rem; padding: 2.5rem; margin-top: 3rem; }
@media (max-width: 767px) { .band { padding: 1.5rem 1rem; border-radius: 1rem; } }
.band .section-head p { color: var(--ink-2); }
.step-card { display: flex; flex-direction: column; }
.step-num {
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  font: 600 .9375rem/1 var(--body); color: var(--ink); margin-bottom: 1rem;
}
.step-card:nth-child(1) .step-num { background: var(--step-1); }
.step-card:nth-child(2) .step-num { background: var(--step-2); }
.step-card:nth-child(3) .step-num { background: var(--step-3); }
.step-card:nth-child(4) .step-num { background: var(--step-4); }
.step-card p { font-size: .9375rem; }
.step-foot { margin-top: auto; padding-top: 1rem; font: 500 .8125rem/1.3 var(--body); color: var(--primary); }
.step-foot.warn { color: var(--danger-ink); }

/* ---------- home: primer ---------- */

.primer { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 1023px) { .primer { grid-template-columns: minmax(0, 1fr); } }
.primer .card { padding: 2rem; }
@media (max-width: 767px) { .primer .card { padding: 1.25rem; } }
.inset { background: var(--surface-low); border-radius: .75rem; padding: 1.1rem 1.2rem; }
.inset h3 { font-size: 1.0625rem; }
.inset .quote { font: 600 .75rem/1.3 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--primary); margin: .35rem 0 .6rem; }
.inset p { font-size: .9375rem; }
.inset .eg { margin-top: .75rem; font-size: .8125rem; color: var(--muted); }

/* ---------- documents ---------- */

.doc-card { display: flex; flex-direction: column; gap: .75rem; }
.doc-card p { font-size: .9375rem; }
.prices { background: var(--surface-low); border-radius: .75rem; padding: .9rem 1rem; display: grid; gap: .5rem; margin-top: auto; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .8125rem; color: var(--muted); }
.prices b { font: 600 1rem/1.3 var(--body); color: var(--primary); text-align: right; }
.prices small { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }


/* ---------- tables (document and schedule pages) ---------- */

.table-wrap:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
table.ledger-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ledger-table th, .ledger-table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger-table tbody tr:last-child > * { border-bottom: 0; }
.ledger-table thead th { font: 600 .6875rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-low); }
.ledger-table tbody th { font-weight: 500; color: var(--ink); }
.ledger-table small { display: block; color: var(--muted); font-size: .8125rem; font-weight: 400; margin-top: .2rem; }
.ledger-table td.fee { color: var(--primary); font-weight: 600; text-align: right; }
.ledger-table thead th:last-child { text-align: right; }
.flag { display: inline-block; margin-top: .35rem; font: 600 .625rem/1 var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--amber-ink); background: var(--amber-tint); border-radius: 9999px; padding: .3rem .5rem; }
@media (max-width: 640px) {
  .ledger-table thead { display: none; }
  .ledger-table tr { display: grid; gap: .3rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .ledger-table tbody tr:last-child { border-bottom: 0; }
  .ledger-table th, .ledger-table td { padding: 0; border: 0; }
  .ledger-table td.svc { color: var(--muted); font-size: .8125rem; }
  .ledger-table td.fee { text-align: left; font-weight: 500; }
}

.list-cards { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .list-cards { grid-template-columns: minmax(0, 1fr); } }
.list-cards a { display: block; text-decoration: none; color: inherit; }
.list-cards a:hover { box-shadow: var(--shadow); color: inherit; }
.list-cards b { display: block; font: 600 1.0625rem/1.4 var(--head); color: var(--ink); }
.list-cards small { display: block; color: var(--muted); font-size: .8125rem; margin-top: .3rem; }

.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { margin: 0; font-size: .9375rem; color: var(--ink); }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- long-form pages ---------- */

.prose { max-width: 46rem; }
.prose h2 { margin: 2.5rem 0 .75rem; font-size: 1.5rem; }
.prose h3 { margin: 1.75rem 0 .5rem; font-size: 1.125rem; }
.prose p, .prose li { font-size: 1rem; line-height: 1.65; }
.prose p + p { margin-top: .9rem; }
.prose ul { padding-left: 1.25rem; margin-top: .5rem; }
.prose ul li + li { margin-top: .35rem; }
.prose .sources { font-size: .875rem; }


.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; }
@media (max-width: 1023px) { .split { grid-template-columns: minmax(0, 1fr); } }

.form-panel { background: var(--surface-mid); border-radius: 1.5rem; padding: 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; margin-top: 3rem; }
@media (max-width: 900px) { .form-panel { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1rem; border-radius: 1rem; } }
.form-panel h2 { margin-bottom: .75rem; }
.form-panel form { background: var(--surface); border-radius: 1rem; padding: 1.5rem; border: 1px solid var(--line); }
.form-panel .field { margin-bottom: 1rem; }
.form-panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 420px) { .form-panel .row2 { grid-template-columns: 1fr; } }
.form-panel .button { width: 100%; }
.form-panel .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; font-size: .8125rem; color: var(--muted); }


/* ---------- calculator reference list ---------- */

.entry { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; }
.entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.entry-head b { font: 600 1rem/1.35 var(--head); color: var(--ink); }
.entry-figure { font: 600 1.25rem/1.2 var(--body); color: var(--primary); white-space: nowrap; }
.entry-figure.pending { font-size: .875rem; color: var(--muted); }
.entry-rule { font-size: .875rem; color: var(--ink-2); }
.entry-attest { font-size: .8125rem; color: var(--muted); }
.entry-notes { list-style: none; font-size: .8125rem; color: var(--amber-ink); display: grid; gap: .25rem; }
.result-more { margin-top: .9rem; font-size: .8125rem; line-height: 1.25rem; color: #bfe9e4; }
.result-more summary { cursor: pointer; font-weight: 600; color: #fff; }
.result-more p { margin-top: .5rem; }
.flag-mark { color: var(--amber); font-size: .7em; cursor: help; }
.list-title { display: block; margin-top: .2rem; color: var(--ink-2); font-size: .9375rem; }
a.doc-card { text-decoration: none; color: inherit; }
a.doc-card:hover { box-shadow: var(--shadow); color: inherit; }
a.doc-card h2 { font-size: 1.0625rem; margin: 0; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line); background: var(--surface-low); padding: 3rem 0 1.5rem; font-size: .875rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; }
@media (max-width: 767px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }
.site-foot h2 { font: 600 .6875rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: .9rem; }
.site-foot .brand { margin-bottom: .9rem; }
.site-foot p { color: var(--ink-2); max-width: 30rem; }
.site-foot p + p { margin-top: .6rem; }
.site-foot ul { list-style: none; display: grid; gap: .45rem; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--primary); text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.foot-base a { color: var(--muted); }

/* "Paid for this recently?" link under the answer */
.aside-stack { display: grid; gap: 1rem; align-content: start; }
.nudge { display: grid; gap: .3rem; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--ink); border-color: var(--primary-soft); background: var(--primary-tint); }
.nudge b { font-family: var(--head); color: var(--primary); }
.nudge b::after { content: " →"; }
.nudge span { color: var(--muted); font-size: .875rem; }
.nudge:hover { border-color: var(--primary); color: var(--ink); }

/* The note for visitors who block ads: a quiet line in place of the first ad, never on top of anything */
.ad-note { display: flex; align-items: center; justify-content: space-between; gap: .75rem; max-width: 40rem; margin: 2rem auto 0; padding: .7rem .9rem .7rem 1.1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface-low); color: var(--muted); font-size: .875rem; }
.ad-note button { flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.ad-note button:hover { background: var(--surface-mid); color: var(--ink); }
@media print { .ad-note { display: none !important; } }

/* Ad slots: fixed sizes so nothing shifts while an ad loads */
.ad { display: grid; justify-items: center; gap: .35rem; margin: 2.5rem auto 0; }
.ad-label { font: 500 .6875rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ad-slot { display: grid; place-items: center; max-width: 100%; overflow: hidden; background: var(--surface-low); border-radius: .5rem; }
.ad-frame { display: block; border: 0; max-width: 100%; }
.ad-strip .ad-slot { width: 320px; min-height: 50px; }
@media (min-width: 840px) { .ad-strip .ad-slot { width: 728px; min-height: 90px; } .ad-strip .ad-frame { width: 728px; height: 90px; } }
.ad-rect { margin: 0; }
.ad-rect .ad-slot { width: 300px; min-height: 250px; }
.ad-native { justify-items: stretch; }
.ad-native .ad-slot { min-height: 120px; }
.ad-native .ad-frame { width: 100%; }

/* Guides, templates, calculators */
.button.small { padding: .4rem .8rem; font-size: .8125rem; }
.related h2 { font-size: 1rem; margin-bottom: .75rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.related a { display: block; padding: .55rem 0; border-top: 1px solid var(--line); text-decoration: none; font-size: .9375rem; }
.related li:first-child a { border-top: 0; }
.related small { display: block; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.in-short { margin-bottom: 1.5rem; }
.in-short h2 { margin: 0 0 1rem; font-size: 1.125rem; }
.toc { border-left: 3px solid var(--primary-soft); padding: .25rem 0 .25rem 1rem; margin: 1.5rem 0; font-size: .9375rem; }
.toc ol { margin: .5rem 0 0; padding-left: 1.25rem; }
.toc li + li { margin-top: .2rem; }
.prose ol { padding-left: 1.4rem; margin-top: .5rem; }
.prose ol li + li { margin-top: .35rem; }
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); }
.checklist { margin-top: 2.5rem; }
.checklist-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.checklist-head h2 { margin: 0; font-size: 1.25rem; }
.checklist ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.checklist li { border-top: 1px solid var(--line); }
.checklist label { display: flex; gap: .75rem; padding: .7rem 0; cursor: pointer; }
.checklist input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; margin-top: .15rem; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.checklist-foot { margin-top: .75rem; }
.faq { margin-top: 2.5rem; }
.faq details { border-top: 1px solid var(--line); padding: .9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details > div { margin-top: .6rem; }
.faq details > div p + p { margin-top: .6rem; }
.field.check label { display: flex; gap: .6rem; align-items: center; font-weight: 500; }
.field.check input { accent-color: var(--primary); width: 18px; height: 18px; }
.percent { position: relative; }
.percent::after { content: "%"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ledger dt small { display: block; font-size: .75rem; opacity: .75; font-weight: 400; }
.letters { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.5rem; }
.letters a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .5rem; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.glossary { margin: 0; }
.glossary div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.glossary dt { font: 600 1.0625rem/1.4 var(--head); color: var(--ink); }
.glossary dt span { font: 400 .875rem var(--body); color: var(--muted); margin-left: .35rem; }
.glossary dd { margin: .3rem 0 0; }

/* Template: the form beside a paper sheet that fills in as you type */
.tpl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; align-items: start; }
.tpl-form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.tpl-form legend { font: 600 .75rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; padding: 0; }
.tpl-form textarea { width: 100%; resize: vertical; }
.tpl-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 .75rem; }
.tpl-side { display: grid; gap: 1.5rem; position: sticky; top: 1rem; }
.tpl-notes h2 { font-size: 1.0625rem; margin-bottom: .75rem; }
.tpl-notes p { margin-top: 1rem; font-size: .9375rem; }
.sheet {
  background: #fff; color: #111; border: 1px solid var(--line); border-radius: .5rem; box-shadow: var(--shadow);
  padding: 2.5rem 2.75rem; font: 1rem/1.7 "Times New Roman", Times, serif; max-height: 80vh; overflow: auto;
}
.sheet h2, .sheet h3 { font: 700 1.05rem/1.4 "Times New Roman", Times, serif; color: #111; text-align: center; margin: 1.25rem 0 1rem; letter-spacing: .02em; }
.sheet p { margin: 0 0 .85rem; text-align: justify; }
.sheet .center { text-align: center; }
.sheet .venue { text-align: left; }
.sheet ol { margin: 0 0 .85rem; padding-left: 1.75rem; }
.sheet li { margin-bottom: .5rem; text-align: justify; }
.sheet .sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; margin: 2.25rem 0 1.5rem; }
.sheet .sigs.one { grid-template-columns: minmax(0, 18rem); justify-content: end; }
.sheet .sig { text-align: center; font-weight: 700; font-size: .95rem; }
.sheet .sig small { font-weight: 400; }
.sheet .sig .line { display: block; border-top: 1px solid #111; margin-bottom: .25rem; }
.sheet .sig.notary { width: 16rem; margin: 2rem 0 0 auto; }
.sheet .register { font-size: .9rem; line-height: 1.5; margin-top: 2rem; }
.sheet .ids { width: 100%; border-collapse: collapse; margin: 0 0 .85rem; font-size: .95rem; }
.sheet .ids th, .sheet .ids td { border: 1px solid #555; padding: .3rem .5rem; text-align: left; }
.sheet .blank { display: inline-block; min-width: 7rem; border-bottom: 1px solid #111; line-height: 1.2; text-align: center; }
.sheet .blank.wide { min-width: 14rem; }
.sheet .blank span { font: .7rem/1 var(--body); color: #8a8a8a; font-style: normal; }
.sheet .page-break { border-top: 1px dashed #bbb; margin: 2rem 0 1rem; }
@media (max-width: 899px) {
  .tpl { grid-template-columns: 1fr; }
  .tpl-side { position: static; }
  .sheet { padding: 1.5rem 1.25rem; font-size: .9375rem; max-height: none; }
  .sheet .sigs { grid-template-columns: 1fr; }
}

@media print {
  /* No page margin, so browsers leave out their own date, title, URL and page
     number; the page's padding is the margin instead, repeated on every page. */
  @page { size: letter; margin: 0; }
  html, body { background: #fff; margin: 0; }
  body > main { padding: 2cm 2.3cm; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .site-head, .site-foot, .skip, .hero, .ad, .tpl-form, .tpl-notes, .related, .toc, .button, .split.section, nav, .note.advice, .fee-note { display: none !important; }
  /* A form prints as the document alone: nothing from the site, and nothing a browser extension adds. */
  html > :not(head):not(body), body:has(.sheet) > :not(main), body:has(.sheet) main > .wrap > :not(.tpl), .tpl > :not(.tpl-side), .tpl-side > :not(.sheet) { display: none !important; }
  .tpl, .tpl-side { display: block; }
  .sheet { border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible; font-size: 12pt; }
  .sheet .blank span { visibility: hidden; }
  .sheet .page-break { border: 0; margin: 0; break-after: page; }
  .split { display: block; }
  .card { border: 0; padding: 0; }
}
.site-foot ul { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 1.5rem; }
.find-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .find-list { grid-template-columns: minmax(0, 1fr); } }
.find-item h3 { font-size: 1.0625rem; }
.find-doc { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.find-doc .chip { font-size: .6875rem; }
.find-links { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .75rem; font-size: .875rem; }
.finder-cta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.prose ul + p, .prose ol + p, .prose table + p, .prose p + table { margin-top: .9rem; }
.prose ul + ul, .prose p + ol, .prose p + ul { margin-top: .6rem; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.jump a { padding: .5rem .85rem; border-radius: 9999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .875rem; color: var(--ink-2); }
.jump a:hover { border-color: var(--primary); color: var(--primary); }
.jump small { color: var(--muted); margin-left: .2rem; }
.section-head h2[id] { scroll-margin-top: 1rem; }
@media (max-width: 767px) {
  .list-cards { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .list-cards .card { padding: 1rem 1.1rem; }
}

/* ---------- topics ---------- */

.topic-strip { margin-top: 1.5rem; }
.topic-strip h2, .strip-label { font: 600 .75rem/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.strip-label { margin-top: 1.25rem; }
.topic-strip .jump, .strip-label + .jump { margin-top: .6rem; }
.topics-home { margin-top: 3rem; }
.topic-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
.topic-step { counter-increment: step; position: relative; padding-left: 4rem; }
.topic-step::before {
  content: counter(step); position: absolute; left: 1.25rem; top: 1.35rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-deep); font: 600 .9375rem/1 var(--body);
}
@media (prefers-color-scheme: dark) { .topic-step::before { color: var(--on-deep-2); } }
.topic-step h2 { font-size: 1.125rem; margin: .2rem 0 .5rem; }
.topic-step .prose p { margin: 0 0 .5rem; }
.step-links { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.step-links a { display: block; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: .6rem; text-decoration: none; font-size: .875rem; line-height: 1.3; background: var(--surface); }
.step-links a:hover { border-color: var(--primary); }
.step-links small { display: block; font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 599px) {
  .topic-step { padding-left: 1.1rem; padding-top: 3.4rem; }
  .topic-step::before { left: 1.1rem; top: 1rem; }
}

/* Legal questions: the Tagalog form of the question under the H1, and the worked example */
.q-tl { margin: -.5rem 0 1.5rem; font-style: italic; }
.q-example { margin-bottom: 1.5rem; background: var(--peach); border-color: transparent; }
.q-example h2 { margin: 0 0 .25rem; font-size: 1.125rem; }
.q-example .q-made-up { margin: 0 0 1rem; font-size: .875rem; font-style: italic; color: var(--muted); }
.q-example p + p { margin-top: .75rem; }
.q-example table { background: var(--surface); }

/* ---------- documents priced the same way (document price pages) ---------- */
.priced-alike h2 { font-size: 1.25rem; }
.priced-alike ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.priced-alike li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.priced-alike li:first-child { border-top: 0; }
.priced-alike .tpl { font-size: .8125rem; color: var(--muted); }
.topic-questions { margin-top: 1.5rem; }
.aside-stack .ad-note { margin-top: 0; }
.calc-title { font-size: 1.125rem; margin: 0 0 .75rem; }
.home-faq details + details { margin-top: 0; }

/* Policy links at the foot of every page */
.foot-legal { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.foot-legal a { color: inherit; }
.legal { max-width: 46rem; }

/* ---------- motion (Van, 9 October 2026): light, and off for anyone who asks for less ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Moving between pages: a short cross-fade where the browser supports it. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: ease; }
  .site-head { view-transition-name: site-head; }

  /* Jumps to a section on the same page glide instead of snapping. */
  html { scroll-behavior: smooth; }

  /* Menus and questions that open: the content eases in. */
  @keyframes open-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .nav-more[open] .nav-more-list, details[open] > div, .search-panel:not([hidden]) { animation: open-in .2s ease both; }
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    main details::details-content {
      block-size: 0; overflow: clip;
      transition: block-size .25s ease, content-visibility .25s allow-discrete;
    }
    main details[open]::details-content { block-size: auto; }
  }

  /* Scrolling down: blocks fade up as they come into view. Pure CSS, so nothing
     stays hidden where the browser does not support it. */
  @supports (animation-timeline: view()) {
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    @media screen {
      main .wrap > :is(section, .section, .card), main :is(.grid, .list-cards) > * {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
      }
    }
  }
}

/* Printing one checklist: the list alone */
@media print {
  body.print-one main * { visibility: hidden; }
  body.print-one .print-this, body.print-one .print-this * { visibility: visible; }
  body.print-one .print-this { position: absolute; inset: 0 auto auto 0; width: 100%; padding: 2cm 2.3cm; }
  body.print-one .print-this .button, body.print-one .print-this .checklist-foot { display: none !important; }
  body.print-one .print-this input:checked + span { color: inherit; text-decoration: none; }
}
.install-app { margin-left: auto; }
.install-app[hidden] { display: none; }

/* What's New, calendar reminders, place pages */
.news-month { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 2rem 0 .75rem; }
.news-month:first-child { margin-top: 0; }
.news-item + .news-item { margin-top: 1rem; }
.news-item h3 { margin: .25rem 0 .5rem; }
.news-date { font-size: .8125rem; color: var(--muted); margin: 0; }
.news-list small { color: var(--muted); margin-left: .35rem; }
.reminder-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .reminder-list { grid-template-columns: minmax(0, 1fr); } }
.reminder h2 { font-size: 1.0625rem; margin: .25rem 0 .5rem; }
.place-table td small { display: block; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .15rem; }
.place-table th a { text-decoration: none; }
.note.checked { margin-top: .75rem; }
.places-home .jump b { font-weight: 600; }
.calendar-add { margin-top: 1rem; }
@media (max-width: 640px) {
  .place-table td.fee { text-align: left; }
  .place-table td.fee::before { content: attr(data-label); display: block; font: 600 .6875rem/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}
