/* The static side of tax-helper.com.ua — /guides/, about, how-to-submit, privacy, offer,
 * 404. One stylesheet for all of them, so a page never looks like it belongs to another
 * site. Colours follow the app: blue #2563eb with the logo's yellow as the accent.
 * Dark mode is the app's own switch (html.dark, set before paint from the same
 * localStorage key), falling back to the OS preference. */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --fg: #0f172a;
  --fg-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-line: #bfdbfe;
  --accent-fg: #ffffff;
  --yellow: #facc15;
  --warn-bg: #fffbeb; --warn-line: #fcd34d; --warn-fg: #78350f;
  --ok-bg: #ecfdf5; --ok-line: #6ee7b7; --ok-fg: #064e3b;
  --tip-bg: #eff6ff; --tip-line: #93c5fd; --tip-fg: #1e3a8a;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .10);
  --radius: 14px;
  --header-h: 64px;
  color-scheme: light;
}
html.dark {
  --bg: #0b1120;
  --surface: #111827;
  --surface-2: #172033;
  --fg: #e5e7eb;
  --fg-2: #cbd5e1;
  --muted: #94a3b8;
  --line: #1f2a3d;
  --line-2: #2c3a52;
  --accent: #60a5fa;
  --accent-2: #93c5fd;
  --accent-soft: #10213d;
  --accent-line: #1e3a8a;
  --accent-fg: #0b1120;
  --warn-bg: #2a1f06; --warn-line: #854d0e; --warn-fg: #fde68a;
  --ok-bg: #062a1f; --ok-line: #047857; --ok-fg: #a7f3d0;
  --tip-bg: #0d1d38; --tip-line: #1e40af; --tip-fg: #bfdbfe;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--fg); min-height: 100vh; display: flex; flex-direction: column;
  font: 16.5px/1.7 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .08em .35em;
  overflow-wrap: anywhere;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-fg); padding: .5rem .8rem; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ── Reading progress ─────────────────────────────────────────────── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--yellow)); }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .in { max-width: 76rem; height: 100%; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 750; letter-spacing: -.01em; color: var(--fg); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--fg); }
.brand img { width: 30px; height: 30px; }
.brand small { font-weight: 500; font-size: .78rem; color: var(--muted); padding: .1rem .45rem; border: 1px solid var(--line); border-radius: 999px; }
.site-nav { display: flex; gap: .25rem; margin-left: .5rem; }
.site-nav a { color: var(--fg-2); text-decoration: none; font-size: .93rem; font-weight: 550; padding: .4rem .7rem; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--surface-2); color: var(--fg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .moon { display: none; }
html.dark .icon-btn .sun { display: none; }
html.dark .icon-btn .moon { display: block; }

.btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .62rem 1.05rem; border-radius: 10px;
  background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 650; font-size: .93rem;
  border: 1px solid transparent; box-shadow: 0 1px 2px rgba(37, 99, 235, .25), 0 6px 16px rgba(37, 99, 235, .18);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-2); color: var(--accent-fg); transform: translateY(-1px); }
.btn.ghost { background: var(--surface); color: var(--fg); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--fg); }
.btn.light { background: #fff; color: #1e3a8a; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.btn.light:hover { background: #f8fafc; color: #1e3a8a; }
/* Kept for pages and snippets that still say .cta */
.cta { display: inline-flex; align-items: center; gap: .45rem; padding: .62rem 1.05rem; border-radius: 10px; background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 650; font-size: .93rem; }
.cta:hover { background: var(--accent-2); color: var(--accent-fg); }
.cta.secondary { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }

@media (max-width: 860px) { .site-nav { display: none; } }
@media (max-width: 520px) {
  .brand small { display: none; }
  .header-actions .btn { padding: .5rem .75rem; font-size: .85rem; }
  .header-actions .btn .long { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 140%; pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(500px 260px at 85% 0%, color-mix(in srgb, var(--yellow) 22%, transparent), transparent 70%);
}
.hero .in { position: relative; max-width: 76rem; margin: 0 auto; padding: 2.25rem 1.25rem 2.5rem; }
.hero .narrow { max-width: 48rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .86rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .6; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; color: var(--accent-2); background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: .2rem .6rem; border-radius: 999px; text-decoration: none;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.15; letter-spacing: -.025em; margin: .7rem 0 .9rem; font-weight: 800; overflow-wrap: anywhere; }
.lead { font-size: 1.1rem; line-height: 1.65; color: var(--fg-2); margin: 0; max-width: 46rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; margin-top: 1.35rem; font-size: .88rem; color: var(--muted); }
.meta .author { display: flex; align-items: center; gap: .55rem; color: var(--fg-2); font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), #7c3aed); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

/* ── Layout ───────────────────────────────────────────────────────── */
.page { max-width: 76rem; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
.with-toc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 1080px) { .with-toc { grid-template-columns: minmax(0, 46rem) 15rem; justify-content: space-between; } }
.prose { max-width: 46rem; min-width: 0; }
/* Hand-written pages: one column, aligned with the hero above it. */
.single > * { max-width: 48rem; }

/* Sidebar table of contents (desktop); the guide's own inline one serves phones. */
.toc-side { display: none; }
@media (min-width: 1080px) {
  .toc-side { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
  .prose .toc { display: none; }
}
.toc-side .label { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.toc-side ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc-side li { margin: 0; }
.toc-side a { display: block; padding: .32rem 0 .32rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .88rem; line-height: 1.4; }
.toc-side a:hover { color: var(--fg); }
.toc-side a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 650; }
.toc-side .side-cta { margin-top: 1.5rem; padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .86rem; color: var(--fg-2); }
.toc-side .side-cta p { margin: 0 0 .75rem; line-height: 1.5; }
.toc-side .side-cta .btn { width: 100%; justify-content: center; font-size: .86rem; }

/* ── Prose ────────────────────────────────────────────────────────── */
.prose > :first-child { margin-top: 0; }
.prose h2, main h2 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -.015em; margin: 2.75rem 0 .9rem; font-weight: 750; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3, main h3 { font-size: 1.12rem; line-height: 1.4; margin: 1.8rem 0 .5rem; font-weight: 700; }
.prose h2 .anchor { margin-left: .4rem; color: var(--line-2); text-decoration: none; opacity: 0; transition: opacity .15s; }
.prose h2:hover .anchor { opacity: 1; }
.prose p, main p { margin: 0 0 1rem; color: var(--fg-2); }
.prose li, main li { color: var(--fg-2); }
.prose b, .prose strong, main b, main strong { color: var(--fg); }
ul, ol { padding-left: 1.35rem; margin: 0 0 1rem; }
li { margin: .4rem 0; }
li::marker { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Tables: a rounded sheet; the wrapper scrolls sideways on a phone. */
.table-wrap { margin: 1.25rem 0 1.5rem; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); color: var(--fg-2); font-weight: 700; font-size: .82rem; letter-spacing: .01em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Callouts */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin: 1.25rem 0; box-shadow: var(--shadow);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card.warn, .card.tip, .card.ok, .card.info { border-left-width: 4px; box-shadow: none; }
.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.warn, .warn p, .warn li, .warn b, .warn strong { color: var(--warn-fg); }
.tip, .info { background: var(--tip-bg); border-color: var(--tip-line); }
.tip, .tip p, .tip li, .tip b, .info, .info p, .info li, .info b, .info dd, .info dt { color: var(--tip-fg); }
.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.ok, .ok p, .ok li, .ok b { color: var(--ok-fg); }
.toc { background: var(--surface); }
.toc b { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: .5rem 0 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Steps (how-to-submit) */
.step { display: flex; gap: .85rem; align-items: center; margin: 2.75rem 0 .9rem; }
.step .n { flex: none; width: 2rem; height: 2rem; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #7c3aed); color: #fff; font-size: .9rem; font-weight: 800; display: inline-grid; place-items: center; box-shadow: var(--shadow); }
.step h2 { margin: 0; }
.step-body { padding-left: 2.85rem; }
@media (max-width: 520px) { .step-body { padding-left: 0; } }
dl { margin: .5rem 0; }
dl div { display: flex; gap: .75rem; margin: .35rem 0; }
dt { flex: none; width: 10rem; font-weight: 650; }
dd { margin: 0; }
@media (max-width: 520px) { dl div { flex-direction: column; gap: .1rem; } dt { width: auto; } }
.updated { color: var(--muted); font-size: .9rem; }

/* FAQ — <details> accordions */
.faq { margin-top: .5rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: .6rem 0;
  transition: border-color .15s, box-shadow .15s;
}
.faq details[open] { border-color: var(--accent-line); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: .95rem 3rem .95rem 1.15rem; position: relative;
  font-weight: 650; color: var(--fg); line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.15rem; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > p, .faq details > div { padding: 0 1.15rem 1rem; margin: 0; }
/* Static pages still write FAQ as h3 + p */
.faq > h3 { margin-top: 1.6rem; }

/* ── Cards grid (hub, related) ────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.grid > li { margin: 0; }
.gcard {
  height: 100%; display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); color: inherit; }
.gcard .t { margin: 0; font-size: 1.06rem; font-weight: 750; line-height: 1.35; color: var(--fg); letter-spacing: -.01em; }
.gcard .d { font-size: .9rem; line-height: 1.55; color: var(--muted); margin: 0; flex: 1; }
.gcard .f { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.gcard .go { color: var(--accent); font-weight: 650; }
.gcard:hover .go { text-decoration: underline; }
.cat-1 { --c: #1d4ed8; } .cat-2 { --c: #6d28d9; } .cat-3 { --c: #0e7490; } .cat-4 { --c: #9a3412; }
html.dark .cat-1 { --c: #60a5fa; } html.dark .cat-2 { --c: #a78bfa; } html.dark .cat-3 { --c: #22d3ee; } html.dark .cat-4 { --c: #fbbf24; }
.gcard .k { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); padding: .18rem .55rem; border-radius: 999px; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 .5rem; }
.filters button {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; padding: .42rem .9rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg-2);
}
.filters button:hover { border-color: var(--line-2); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.stats span { font-size: .86rem; color: var(--fg-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; }
.stats b { color: var(--fg); }
.section-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; margin: 2.5rem 0 .25rem; }

/* ── App CTA ──────────────────────────────────────────────────────── */
.app-cta {
  position: relative; overflow: hidden; margin: 2.75rem 0; padding: 1.75rem; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #7c3aed 100%); box-shadow: var(--shadow-lg);
}
.app-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(250, 204, 21, .45), transparent 70%); }
.app-cta h2, .app-cta .h { position: relative; margin: 0 0 .5rem; font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.app-cta p { position: relative; margin: 0 0 1.1rem; color: rgba(255, 255, 255, .9); max-width: 36rem; }
.app-cta ul { position: relative; display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .88rem; color: rgba(255, 255, 255, .9); }
.app-cta li { margin: 0; color: rgba(255, 255, 255, .92); }
.app-cta li::before { content: "✓ "; color: var(--yellow); font-weight: 800; }
.app-cta .btn { position: relative; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: auto; }
.site-footer .in { max-width: 76rem; margin: 0 auto; padding: 2.75rem 1.25rem 2rem; display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 860px) { .site-footer .in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .in { grid-template-columns: 1fr; } }
.site-footer p { margin: .6rem 0 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.site-footer h2 { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .2rem 0 .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .4rem 0; font-size: .9rem; }
.site-footer li a { color: var(--fg-2); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .82rem; color: var(--muted); }

/* ── 404 ──────────────────────────────────────────────────────────── */
.notfound { text-align: center; padding: 4rem 1.25rem 3rem; }
.notfound .code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; background: linear-gradient(135deg, var(--accent), #7c3aed 60%, var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.5rem; }

@media print {
  .site-header, .site-footer, .toc-side, .progress, .app-cta { display: none !important; }
  body { background: #fff; }
}

/* Utilities */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header-actions .btn .short { display: none; }
@media (max-width: 520px) { .header-actions .btn .short { display: inline; } }
.app-cta p.h { color: #fff; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .5rem; }
.toc-side .side-cta .btn { color: var(--accent-fg); padding: .55rem .9rem; margin: 0; border-left: 0; font-weight: 650; }
.toc-side .side-cta .btn:hover { color: var(--accent-fg); }
.prose article > :first-child { margin-top: 0; }
@media (min-width: 1080px) { .prose .toc + h2 { margin-top: 0; } }
.prose .grid { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); }
.nw { white-space: nowrap; }
@media (max-width: 520px) {
  .site-header .in { gap: .6rem; padding: 0 1rem; }
  .brand span { font-size: .95rem; }
  .header-actions { gap: .4rem; }
  .hero .in { padding: 1.5rem 1rem 1.75rem; }
  .page { padding: 1.5rem 1rem 3rem; }
  .meta .dot:first-of-type { display: none; }
}
@media (max-width: 420px) { .site-header .brand span { display: none; } }

body > main, body > .page { flex: 1 0 auto; width: 100%; }
.page > :first-child, .single > :first-child { margin-top: 0; }

/* The ДПІ codes guide: a search box over the table, a heading row per region. */
.dpi-search { margin: 1.25rem 0 .75rem; }
.dpi-search label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; color: var(--fg-2); }
.dpi-search input {
  width: 100%; padding: .75rem 1rem; font: inherit; color: var(--fg); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow);
}
.dpi-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.dpi-empty { margin: .6rem 0 0; color: var(--muted); font-size: .9rem; }
.dpi-table tr.dpi-region th {
  background: var(--accent-soft); color: var(--accent-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
}
.dpi-table td.dpi-code { font-weight: 800; font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent-2); white-space: nowrap; }
.dpi-table tbody tr:nth-child(even) td { background: transparent; }
.dpi-table [hidden] { display: none; }
