/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/newsreader-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/newsreader-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/newsreader-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+20A0-20C0; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/newsreader-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+20A0-20C0; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/hanken-grotesk-latin-700-normal.woff2') format('woff2'); }

/* ==========================================================================
   Kinshuk Legal \2014  design tokens
   Ink: bottle-green of stamp paper. Seal: red of a registry seal (used sparingly).
   ========================================================================== */
:root {
  --ink: #123b32;
  --ink-2: #0b2721;
  --ink-soft: #1f5c4c;
  --paper: #fbfcfa;
  --white: #ffffff;
  --tint: #e8f1ec;
  --tint-2: #f2f7f4;
  --line: #d3e0d9;
  --line-2: #e4ece7;
  --text: #17231f;
  --muted: #55665f;
  --seal: #b3261e;
  --seal-soft: #fbeceb;
  --good: #1e7a4c;
  --good-soft: #e3f3ea;
  --warn: #8a5a00;
  --warn-soft: #fbf1dc;
  --info: #1d5a8a;
  --info-soft: #e6f0f8;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: .8125rem;  /* 13 */
  --fs-sm: .9375rem;  /* 15 */
  --fs-md: 1.0625rem; /* 17 */
  --fs-lg: 1.25rem;   /* 20 */
  --fs-xl: 1.625rem;  /* 26 */
  --fs-2xl: 2.125rem; /* 34 */
  --fs-3xl: 2.875rem; /* 46 */
  --fs-4xl: 3.75rem;  /* 60 */

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(18, 59, 50, .06), 0 8px 24px rgba(18, 59, 50, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--paper); }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink-soft); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid #e0a52b; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink-2); }
h1 { font-size: clamp(2rem, 4.5vw, var(--fs-3xl)); }
h2 { font-size: clamp(1.6rem, 3vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; }
small, .small { font-size: var(--fs-xs); }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 var(--fs-sm)/1 var(--sans); padding: .85em 1.25em; border-radius: var(--r-sm); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--tint); color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--tint); color: var(--ink-2); }
.btn-lg { font-size: var(--fs-md); padding: 1em 1.5em; }
.btn-sm { font-size: var(--fs-xs); padding: .6em .9em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-soft); font: inherit; text-decoration: underline; cursor: pointer; }

label { display: block; font-weight: 600; font-size: var(--fs-sm); margin: 0 0 .35em; color: var(--ink-2); }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=date], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--text); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 8px; padding: .7em .85em; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-soft); box-shadow: 0 0 0 3px rgba(31, 92, 76, .15); }
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: var(--fs-xs); color: var(--muted); margin-top: .3em; font-weight: 400; }
.check { display: flex; gap: .6em; align-items: flex-start; font-weight: 400; font-size: var(--fs-sm); }
.check input { margin-top: .3em; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.alert { padding: .85em 1em; border-radius: 8px; margin-bottom: 1rem; font-size: var(--fs-sm); border: 1px solid; }
.alert-error { background: var(--seal-soft); border-color: #efc4c0; color: #7d1a14; }
.alert-ok { background: var(--good-soft); border-color: #bfe2cd; color: #14532f; }
.alert-info { background: var(--info-soft); border-color: #c4dbee; color: #123d5e; }
.alert-warn { background: var(--warn-soft); border-color: #ecd6a6; color: #5e3d00; }
.hp { position: absolute; left: -5000px; }

/* ---------- Top bar & header ---------- */
.announce { background: var(--seal); color: #fff; text-align: center; font-size: var(--fs-xs); padding: .5em 1em; }
.announce a { color: #fff; }
.topbar { background: var(--ink-2); color: #cfe0d8; font-size: var(--fs-xs); }
.topbar .wrap { display: flex; gap: 1.5rem; align-items: center; min-height: 36px; }
.topbar a { color: #e9f3ee; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .spacer { flex: 1; }
.topbar svg { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 5px; }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.header-main .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink-2); flex: none; }
.logo img { width: 40px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.logo-text span { font-size: .72rem; color: var(--muted); letter-spacing: .01em; }
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-actions { display: flex; gap: .6rem; align-items: center; margin-left: auto; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

/* Category navigation with mega menus */
.catnav { border-top: 1px solid var(--line-2); }
.catnav > .wrap { display: flex; gap: .25rem; }
.catnav-item { position: static; }
.catnav-link { display: flex; align-items: center; gap: .3em; padding: .8em .85em; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; border: 0; background: none; cursor: pointer; border-bottom: 2.5px solid transparent; font-family: var(--sans); }
.catnav-link svg { width: 12px; height: 12px; transition: transform .15s; }
.catnav-item:hover > .catnav-link, .catnav-item.open > .catnav-link, .catnav-link[aria-current=page] { border-bottom-color: var(--ink); color: var(--ink); }
.catnav-item.open > .catnav-link svg { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(11, 39, 33, .12); display: none; }
.catnav-item.open .mega { display: block; }
@media (hover: hover) and (min-width: 1025px) { .catnav-item:hover .mega { display: block; } }
.mega .wrap { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.mega-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem 2rem; }
.mega-group h4 { font-family: var(--sans); font-size: var(--fs-xs); color: var(--muted); font-weight: 600; margin: 0 0 .5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line-2); }
.mega-group a { display: flex; justify-content: space-between; gap: 1rem; padding: .38rem 0; text-decoration: none; color: var(--text); font-size: var(--fs-sm); }
.mega-group a:hover span:first-child { color: var(--ink); text-decoration: underline; }
.mega-group a .from { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.mega-aside { align-self: start; background: var(--tint-2); border-radius: var(--r-md); padding: 1.25rem; border: 1px solid var(--line-2); }
.mega-aside p { font-size: var(--fs-sm); color: var(--muted); }
.mega-aside h3 { margin-bottom: .35rem; }

/* Search box + dropdown */
.searchbox { position: relative; }
.searchbox input { padding-left: 2.6em; height: 46px; border-radius: 999px; background: var(--tint-2); border-color: var(--line-2); }
.searchbox input:focus { background: var(--white); }
.searchbox .icon { position: absolute; left: .95em; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); z-index: 60; max-height: 70vh; overflow: auto; display: none; text-align: left; }
.search-pop.show { display: block; }
.search-pop a { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .75rem; align-items: baseline; padding: .7rem 1rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line-2); }
.search-pop a:last-child { border-bottom: 0; }
.search-pop a.active, .search-pop a:hover { background: var(--tint-2); }
.search-pop .kind { font-size: .7rem; font-weight: 700; color: var(--ink-soft); background: var(--tint); border-radius: 4px; padding: .1em .45em; }
.search-pop .t { font-weight: 600; font-size: var(--fs-sm); }
.search-pop .p { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.search-pop .s { grid-column: 2 / 4; font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
.search-pop .all { display: block; text-align: center; font-weight: 600; color: var(--ink); background: var(--tint-2); }
.search-pop .empty { padding: 1rem; font-size: var(--fs-sm); color: var(--muted); }
mark { background: #fff1b8; color: inherit; padding: 0 .1em; border-radius: 2px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(11, 39, 33, .45); }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: var(--white); overflow-y: auto; padding: 1rem 1.25rem 2rem; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer details { border-bottom: 1px solid var(--line-2); }
.drawer summary { padding: .9rem 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.drawer details[open] summary::after { content: '\2013 '; }
.drawer details a { display: block; padding: .45rem 0 .45rem .75rem; text-decoration: none; color: var(--text); font-size: var(--fs-sm); }
.drawer .drawer-links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); font-weight: 600; }

@media (max-width: 420px) { .logo-text span { display: none; } .logo-text b { font-size: 1.2rem; } }
@media (max-width: 1024px) {
  .catnav, .header-search, .header-actions .hide-sm { display: none; }
  .menu-toggle { display: grid; }
  .header-main .wrap { gap: .75rem; min-height: 64px; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--tint) url('/static/img/wave.svg') repeat; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--tint) 0%, rgba(232, 241, 236, .92) 55%, rgba(232, 241, 236, .4) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, var(--fs-4xl)); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; margin-bottom: .45em; max-width: 17ch; }
.hero .lede { font-size: var(--fs-lg); color: #2d3f39; max-width: 46ch; margin-bottom: 1.6rem; }
.hero-search { max-width: 600px; }
.hero-search .searchbox input { height: 60px; font-size: var(--fs-md); background: var(--white); border: 2px solid var(--ink); padding-right: 8.5em; }
.hero-search .searchbox .icon { width: 20px; height: 20px; color: var(--ink); }
.hero-search .go { position: absolute; right: 6px; top: 6px; height: 48px; border-radius: 999px; }
.quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.quick a { font-size: var(--fs-xs); font-weight: 600; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, .75); border: 1px solid var(--line); padding: .45em .8em; border-radius: 999px; }
.quick a:hover { background: var(--white); border-color: var(--ink-soft); }
.hero-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: 1.75rem; font-size: var(--fs-sm); color: #2d3f39; }
.hero-facts span { display: inline-flex; gap: .45em; align-items: center; }
.hero-facts svg { width: 16px; height: 16px; color: var(--good); }

.seal-wrap { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-left: auto; }
.seal-wrap .rosette { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; animation: spin 240s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal { position: absolute; inset: 27%; border-radius: 50%; background: var(--seal); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(179, 38, 30, .12), 0 14px 40px rgba(179, 38, 30, .25); }
.seal svg.ring { position: absolute; inset: 6%; width: 88%; height: 88%; }
.seal .r { font-family: var(--serif); font-size: clamp(4rem, 9vw, 7rem); line-height: 1; font-weight: 500; margin-top: -.05em; }
.seal-note { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .9rem; font-size: var(--fs-xs); white-space: nowrap; box-shadow: var(--shadow); }
.seal-note b { color: var(--ink-2); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .seal-wrap { display: none; }
  .hero-search .searchbox input { padding-right: 1em; }
  .hero-search .go { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.section-head h2 { margin-bottom: .25rem; }

/* Contents-style category index (law book table of contents) */
.contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.contents-cat { padding: 1.4rem 0 1.5rem; border-top: 1.5px solid var(--ink); }
.contents-cat h3 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .2rem; font-size: 1.45rem; }
.contents-cat h3 a { color: var(--ink-2); text-decoration: none; }
.contents-cat h3 a:hover { text-decoration: underline; }
.contents-cat h3 small { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.contents-cat > p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: .7rem; }
.toc a { display: flex; align-items: baseline; gap: .5rem; padding: .32rem 0; text-decoration: none; color: var(--text); font-size: var(--fs-sm); }
.toc a .name { flex: 0 1 auto; min-width: 0; }
.toc a .dots { flex: 1; border-bottom: 1.5px dotted #a9bdb4; transform: translateY(-4px); min-width: 1rem; }
.toc a .price { flex: none; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.toc a:hover .name { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) { .contents { grid-template-columns: 1fr; } }

/* Price list rows */
.pricelist { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; }
.pricerow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1.25rem; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.pricerow:last-child { border-bottom: 0; }
.pricerow:hover { background: var(--tint-2); }
.pricerow h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.pricerow p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.pricerow .cat { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); }
.pricerow .amt { text-align: right; white-space: nowrap; }
.pricerow .amt b { display: block; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pricerow .amt small { color: var(--muted); }
@media (max-width: 640px) { .pricerow { grid-template-columns: 1fr auto; } .pricerow .btn { display: none; } }

/* Steps (genuine sequence) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 3rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: var(--ink); background: var(--paper); }
.steps li::after { content: ''; position: absolute; top: 1.1rem; left: 2.6rem; right: -1.1rem; border-top: 1.5px dashed #a9bdb4; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.steps p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.fact h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.fact p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.fact svg { width: 26px; height: 26px; color: var(--ink-soft); margin-bottom: .75rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* CTA band */
.band { background: var(--ink); color: #dbe9e2; border-radius: var(--r-lg); padding: 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.band::before { content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; background: url('/static/img/rosette.svg') center/contain no-repeat; opacity: .18; filter: invert(1); }
.band h2 { color: #fff; margin-bottom: .3rem; }
.band p { margin: 0; max-width: 56ch; }
.band .actions { display: flex; gap: .75rem; flex-wrap: wrap; position: relative; }
.band .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
.band .btn-outline:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 1.75rem; } }

/* Lists of articles */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; }
.article-link { display: block; padding: 1.1rem 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.article-link h3 { font-size: 1.15rem; margin-bottom: .3rem; color: var(--ink-2); }
.article-link:hover h3 { text-decoration: underline; }
.article-link p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.article-link .topic { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); margin-bottom: .3rem; display: block; }
@media (max-width: 860px) { .articles { grid-template-columns: 1fr; } }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; margin: 0; }
.quote p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; color: var(--ink-2); }
.quote footer { font-size: var(--fs-sm); color: var(--muted); }
.quote footer b { color: var(--text); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Page header & breadcrumbs ---------- */
.page-head { background: var(--tint) url('/static/img/wave.svg') repeat; border-bottom: 1px solid var(--line); padding: 2.25rem 0 2rem; position: relative; }
.page-head::after { content: ''; position: absolute; inset: 0; background: rgba(232, 241, 236, .88); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lede { font-size: var(--fs-md); color: #2d3f39; max-width: 62ch; margin: 0; }
.crumbs { font-size: var(--fs-xs); color: var(--muted); margin-bottom: .9rem; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 .35em; }

/* ---------- Service page ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 3rem; align-items: start; padding-top: 2.5rem; padding-bottom: 4rem; }
.svc-main section { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.svc-main section:first-child { border-top: 0; padding-top: 0; }
.svc-main h2 { font-size: var(--fs-xl); }
.svc-overview { font-size: var(--fs-md); line-height: 1.7; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.5rem; }
.ticks li { position: relative; padding-left: 1.75rem; font-size: var(--fs-sm); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231e7a4c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.ticks.one { grid-template-columns: 1fr; }
.docs { list-style: none; padding: 0; margin: 0; }
.docs li { padding: .6rem 0 .6rem 2rem; border-bottom: 1px dashed var(--line); position: relative; font-size: var(--fs-sm); }
.docs li::before { content: ''; position: absolute; left: 0; top: .7rem; width: 1.1rem; height: 1.35rem; border: 1.5px solid var(--ink-soft); border-radius: 2px 6px 2px 2px; }
.process { list-style: none; padding: 0; margin: 0; counter-reset: p; }
.process li { position: relative; padding: 0 0 1.4rem 3rem; }
.process li::before { counter-increment: p; content: counter(p); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); }
.process li::after { content: ''; position: absolute; left: .95rem; top: 2.2rem; bottom: .2rem; border-left: 1.5px dashed #a9bdb4; }
.process li:last-child::after { display: none; }
.process h3 { font-family: var(--sans); font-size: var(--fs-md); font-weight: 700; margin: .2rem 0 .15rem; }
.process p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .25rem; top: .85rem; font-size: 1.3rem; color: var(--ink-soft); font-weight: 400; }
.faq details[open] summary::after { content: '\2013 '; }
.faq details p { margin: 0 0 1rem; color: #33443e; }
@media (max-width: 1024px) { .svc-layout { grid-template-columns: 1fr; gap: 1.5rem; } .ticks { grid-template-columns: 1fr; } }

/* Price card */
.buy { position: sticky; top: 150px; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; }
.buy-head { padding: 1.25rem 1.25rem .5rem; }
.buy-head .label { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.buy-plans { padding: 0 1.25rem; display: grid; gap: .5rem; }
.plan { display: block; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: .75rem .9rem; cursor: pointer; position: relative; font-weight: 400; margin: 0; }
.plan:hover { border-color: var(--ink-soft); }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--ink); background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--ink); }
.plan:has(input:focus-visible) { outline: 3px solid #e0a52b; outline-offset: 2px; }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.plan-name { font-weight: 700; color: var(--ink-2); }
.plan-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-tag { font-size: .7rem; font-weight: 700; color: var(--seal); margin-left: .4rem; }
.plan ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: var(--fs-xs); color: var(--muted); display: none; }
.plan:has(input:checked) ul { display: block; }
.breakdown { margin: 1rem 1.25rem 0; border-top: 1px dashed var(--line); padding-top: .8rem; font-size: var(--fs-sm); }
.breakdown div { display: flex; justify-content: space-between; padding: .2rem 0; }
.breakdown .total { font-weight: 700; font-size: var(--fs-md); border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .6rem; color: var(--ink-2); }
.breakdown .govt-note { font-size: var(--fs-xs); color: var(--muted); display: block; padding: .1rem 0 .3rem; }
.buy-actions { padding: 1rem 1.25rem 1.25rem; display: grid; gap: .5rem; }
.buy-foot { background: var(--tint-2); border-top: 1px solid var(--line-2); padding: .8rem 1.25rem; font-size: var(--fs-xs); color: var(--muted); display: grid; gap: .3rem; }
.buy-foot span { display: flex; gap: .45em; align-items: center; }
.buy-foot svg { width: 14px; height: 14px; color: var(--good); flex: none; }
.single-price { padding: 0 1.25rem; }
.single-price .big { font-family: var(--serif); font-size: var(--fs-2xl); font-weight: 600; color: var(--ink-2); line-height: 1; }

.mobile-buy { display: none; }
@media (max-width: 1024px) {
  .buy { position: static; }
  .mobile-buy { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line); padding: .6rem 1rem; gap: .75rem; align-items: center; box-shadow: 0 -6px 18px rgba(11, 39, 33, .08); }
  .mobile-buy .p { flex: 1; line-height: 1.2; }
  .mobile-buy .p b { display: block; font-size: var(--fs-md); }
  .mobile-buy .p small { color: var(--muted); }
  body.has-mobile-buy { padding-bottom: 72px; }
  body.has-mobile-buy .wa-float { bottom: 84px; }
}

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.related a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: inherit; background: var(--white); }
.related a:hover { border-color: var(--ink-soft); }
.related b { display: block; color: var(--ink-2); margin-bottom: .2rem; }
.related small { color: var(--muted); }

/* ---------- Category page ---------- */
.cat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding-top: 2.5rem; padding-bottom: 4rem; align-items: start; }
.side-box { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); padding: 1.25rem; margin-bottom: 1.25rem; }
.side-box h3 { font-size: 1.15rem; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li a { display: block; padding: .45rem 0; font-size: var(--fs-sm); border-bottom: 1px solid var(--line-2); text-decoration: none; }
.group-title { font-family: var(--sans); font-size: var(--fs-sm); font-weight: 700; color: var(--muted); margin: 2rem 0 .75rem; }
.group-title:first-child { margin-top: 0; }
@media (max-width: 1024px) { .cat-layout { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.prose { font-size: var(--fs-md); line-height: 1.75; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--tint-2); color: var(--ink-2); font-weight: 700; }
.prose a { color: var(--ink-soft); }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 3.5rem; padding-top: 2.5rem; padding-bottom: 4rem; justify-content: space-between; }
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; } }

/* ---------- Search page ---------- */
.results-group { margin-bottom: 2.5rem; }
.results-group h2 { font-size: var(--fs-lg); font-family: var(--sans); font-weight: 700; color: var(--muted); margin-bottom: .5rem; }
.result { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.result b { color: var(--ink-2); font-size: var(--fs-md); }
.result:hover b { text-decoration: underline; }
.result p { margin: .2rem 0 0; font-size: var(--fs-sm); color: var(--muted); }
.result .price { float: right; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-left: 1rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-chips a { font-size: var(--fs-xs); font-weight: 600; text-decoration: none; padding: .45em .85em; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--white); }
.filter-chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Cards / panels (forms, dashboards) ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; }
.panel + .panel { margin-top: 1.25rem; }
.panel h2 { font-size: var(--fs-lg); }
.auth { max-width: 440px; margin: 3rem auto 4rem; padding: 0 20px; }
.auth h1 { font-size: var(--fs-2xl); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; padding-top: 2rem; padding-bottom: 4rem; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25em .6em; border-radius: 4px; white-space: nowrap; }
.status.muted { background: #eef1f0; color: #4b5753; }
.status.info { background: var(--info-soft); color: var(--info); }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.status.good { background: var(--good-soft); color: var(--good); }
.status.new { background: var(--seal-soft); color: var(--seal); }

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; padding: .6rem .75rem; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.table td { padding: .7rem .75rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:hover td { background: var(--tint-2); }
.table .r { text-align: right; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; font-size: var(--fs-sm); }
.timeline li::before { content: ''; position: absolute; left: 0; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); }
.timeline li::after { content: ''; position: absolute; left: 4.5px; top: 1.1rem; bottom: 0; border-left: 1px solid var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: var(--fs-xs); color: var(--muted); }
.timeline .internal { color: var(--warn); }

.files { list-style: none; padding: 0; margin: 0; }
.files li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); }
.files svg { width: 16px; height: 16px; color: var(--muted); margin-top: .2rem; }
.files .from-firm { font-size: .7rem; font-weight: 700; color: var(--good); margin-left: .4rem; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--r-md); padding: 1.25rem; text-align: center; background: var(--tint-2); }
.dropzone input { margin: .5rem auto; }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: .4rem 1rem; font-size: var(--fs-sm); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 110px); }
.admin-nav { background: var(--ink-2); padding: 1.25rem .75rem; }
.admin-nav a { display: block; color: #cfe0d8; text-decoration: none; padding: .55rem .75rem; border-radius: 6px; font-size: var(--fs-sm); font-weight: 600; }
.admin-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-nav a.on { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-nav .sep { border-top: 1px solid rgba(255, 255, 255, .12); margin: .75rem 0; }
.admin-main { padding: 1.75rem 2rem 3rem; min-width: 0; }
.admin-main h1 { font-size: var(--fs-xl); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.1rem; }
.stat small { color: var(--muted); font-weight: 600; display: block; }
.stat b { font-size: var(--fs-xl); font-family: var(--serif); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.grid-2 > .panel + .panel, .grid-2 > div > .panel:first-child { margin-top: 0; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: .5rem; }
.bars span { flex: 1; max-width: 28px; background: var(--ink-soft); border-radius: 2px 2px 0 0; min-height: 2px; position: relative; }
.bars span:hover { background: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.toolbar form { display: flex; gap: .5rem; }
.toolbar input, .toolbar select { width: auto; padding: .5em .7em; }
@media (max-width: 960px) { .admin-shell { grid-template-columns: 1fr; } .admin-nav { display: flex; overflow-x: auto; gap: .25rem; padding: .5rem; } .admin-nav .sep { display: none; } .admin-main { padding: 1.25rem 1rem 3rem; } .stats { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Tools ---------- */
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.tm-class { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.1rem; scroll-margin-top: 160px; }
.tm-class:target { border-color: var(--seal); box-shadow: 0 0 0 2px var(--seal-soft); }
.tm-class header { display: flex; gap: .75rem; align-items: baseline; margin-bottom: .35rem; }
.tm-class .n { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); min-width: 2ch; }
.tm-class h3 { font-size: 1.05rem; margin: 0; font-family: var(--sans); font-weight: 700; }
.tm-class p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.tm-class .kind { font-size: .7rem; font-weight: 700; color: var(--ink-soft); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.calc-out { background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; }
.calc-out div { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.calc-out div:last-child { border-bottom: 0; font-weight: 700; font-size: var(--fs-lg); color: var(--ink-2); }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }
.seg label { margin: 0; padding: .55em .9em; cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid #e0a52b; outline-offset: -3px; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: #b9cdc4; font-size: var(--fs-sm); margin-top: 0; }
.site-footer a { color: #e3eee9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding: 3.5rem 0 2.5rem; }
.footer-top h4 { color: #fff; font-family: var(--sans); font-size: var(--fs-sm); font-weight: 700; margin-bottom: .8rem; }
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top li { margin-bottom: .45rem; }
.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand .logo-text span { color: #9fb8ad; }
.footer-brand address { font-style: normal; line-height: 1.6; margin-bottom: .8rem; }
.footer-local { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 0; font-size: var(--fs-xs); line-height: 1.9; }
.footer-local b { color: #fff; margin-right: .4rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.5rem 0 2rem; font-size: var(--fs-xs); color: #94aca2; }
.footer-legal p { margin-bottom: .6rem; max-width: 110ch; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 35; width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.wa-float:hover { background: #188046; color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* Modal */
dialog.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(92vw, 460px); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
dialog.modal::backdrop { background: rgba(11, 39, 33, .5); }
.modal-body { padding: 1.5rem; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.modal-head h2 { font-size: var(--fs-xl); margin-bottom: .2rem; }
.close-x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: .25rem; }

/* Disclaimer gate */
.gate { position: fixed; inset: 0; z-index: 100; background: rgba(11, 39, 33, .7); display: grid; place-items: center; padding: 1rem; }
.gate .panel { max-width: 640px; max-height: 85vh; overflow: auto; }

/* Print (receipt) */
@media print { .site-header, .topbar, .site-footer, .wa-float, .no-print, .announce { display: none !important; } body { background: #fff; } }
