/* TaxCal — OPYEB design tokens (same palette as opyeb.com), no external fonts. */
:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --bg2: #101014;
  --panel: #121216;
  --panel2: #17171c;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .18);
  --ink: #f5f2ea;
  --muted: #a8a296;
  --muted2: #857e72;
  --accent: #e5b45c;
  --accent-dim: rgba(229, 180, 92, .14);
  --accent-line: rgba(229, 180, 92, .40);
  --on-accent: #191104;
  --ok: #79c7a4;
  --ok-dim: rgba(121, 199, 164, .13);
  --warn: #e5a06c;
  --warn-dim: rgba(229, 160, 108, .13);
  --bad: #e58a8a;
  --bad-dim: rgba(229, 138, 138, .12);
  --card-sheen: rgba(255, 255, 255, .032);
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI",
          "Malgun Gothic", "Noto Sans KR", "Helvetica Neue", Arial, "Liberation Sans",
          "DejaVu Sans", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f3ec;
  --bg2: #fbf9f4;
  --panel: #ffffff;
  --panel2: #f3efe6;
  --line: rgba(26, 20, 11, .11);
  --line2: rgba(26, 20, 11, .24);
  --ink: #171310;
  --muted: #5b5346;
  --muted2: #6d6459;
  --accent: #96661a;
  --accent-dim: rgba(150, 102, 26, .11);
  --accent-line: rgba(150, 102, 26, .42);
  --on-accent: #fffaf0;
  --ok: #1f6b4e;
  --ok-dim: rgba(31, 107, 78, .10);
  --warn: #8a4d13;
  --warn-dim: rgba(138, 77, 19, .10);
  --bad: #9c3232;
  --bad-dim: rgba(156, 50, 50, .08);
  --card-sheen: rgba(150, 102, 26, .045);
  --shadow: 0 18px 40px -26px rgba(50, 38, 18, .35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.005em;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -8%, var(--accent-dim), transparent 70%),
    radial-gradient(700px 420px at 96% 4%, var(--card-sheen), transparent 72%);
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.28; letter-spacing: -.02em; margin: 0; }

p { margin: 0; }

::selection { background: var(--accent-dim); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 60;
  font-weight: 700;
}
.skip:focus { left: 16px; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-sym { width: 26px; height: 26px; display: block; flex: none; }
.brand-word {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.brand-prod {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line2);
  padding-left: 9px;
  margin-left: 1px;
  white-space: nowrap;
}

[data-theme="dark"] .brand-sym-light,
[data-theme="light"] .brand-sym-dark { display: none; }

.head-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.head-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 4px;
  text-decoration: none;
  white-space: nowrap;
}
.head-link:hover { color: var(--ink); text-decoration: none; }

.mbar { display: none; }

.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.langs a {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.4;
}
.langs a[aria-current="page"] { background: var(--accent-dim); color: var(--accent); }
.langs a:hover { color: var(--ink); text-decoration: none; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { border-color: var(--line2); background: var(--panel2); }
[data-theme="dark"] .i-sun, [data-theme="light"] .i-moon { display: none; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 40px 20px 8px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(27px, 4.2vw, 42px);
  font-weight: 800;
  letter-spacing: -.035em;
  max-width: 20em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
  max-width: 44em;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 18px 0 0;
}
.chips li {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 4px 11px;
}

/* --------------------------------------------------------------- layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr);
  gap: 22px;
  align-items: start;
  padding-top: 26px;
  padding-bottom: 10px;
}
.col-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; position: sticky; top: 78px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 0;
}
.card-head h2 { font-size: 15.5px; font-weight: 700; }
.card-body { padding: 14px 18px 18px; }
.hint { font-size: 12.5px; color: var(--muted2); margin-top: 4px; }

/* --------------------------------------------------------------- types */
.types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.types button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 11px;
  padding: 9px 8px 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  line-height: 1.3;
  min-width: 0;
}
.types button b { display: block; font-size: 13.5px; font-weight: 700; color: inherit; }
.types button span { display: block; font-size: 11px; color: var(--muted2); margin-top: 2px; }
.types button[aria-pressed="true"] {
  background: var(--panel);
  border-color: var(--accent-line);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--card-sheen) inset;
}
.types button[aria-pressed="true"] b { color: var(--accent); }

/* --------------------------------------------------------------- next */
.next-card {
  border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background: linear-gradient(180deg, var(--accent-dim), transparent 78%), var(--panel);
  padding: 16px 18px;
}
.next-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.dday { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.next-title { font-size: 17px; font-weight: 700; margin-top: 6px; line-height: 1.35; }
.next-date { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.next-note { font-size: 12.5px; color: var(--muted2); margin-top: 8px; }

.upcoming { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.upcoming li {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 6px;
}
.upcoming li time { font-family: var(--mono); font-size: 11.5px; color: var(--muted2); white-space: nowrap; }
.upcoming li span { min-width: 0; }

/* ------------------------------------------------------------ calendar */
.cal-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--panel2);
}
.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.18); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line2);
  font-weight: 600;
}
.btn.ghost:hover { background: var(--panel2); }
.btn.sm { font-size: 12px; padding: 6px 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.months { display: grid; gap: 18px; }
.month > h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.month > h3::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.ev {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.ev:first-of-type { border-top: 0; }
.ev-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  padding-top: 1px;
  white-space: nowrap;
}
.ev-date small { display: block; font-size: 10px; color: var(--muted2); font-weight: 500; }
.ev-title { font-size: 14px; font-weight: 650; line-height: 1.42; }
.ev-note { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tag {
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: .04em;
  color: var(--muted2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}
.tag.cat-vat { color: var(--accent); border-color: var(--accent-line); }
.tag.cat-income { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.tag.cat-yearend { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.tag.cat-saving { color: var(--muted); }
.ev.past { opacity: .5; }
.ev.next { background: var(--accent-dim); border-radius: 10px; padding-left: 10px; padding-right: 10px; margin: 0 -10px; }

/* ----------------------------------------------------------------- form */
.acc { border-top: 1px solid var(--line); }
.acc:first-of-type { border-top: 0; }
.acc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
  font-size: 13.5px;
  font-weight: 650;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  color: var(--muted2);
  font-size: 15px;
}
.acc[open] > summary::after { content: "–"; }
.acc-lede { font-size: 11.5px; font-weight: 500; color: var(--muted2); }
.acc-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}
.acc-body { padding: 2px 0 16px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields.one { grid-template-columns: 1fr; }
.field { min-width: 0; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  line-height: 1.4;
}
.field .sub { display: block; font-size: 11px; font-weight: 400; color: var(--muted2); margin-top: 1px; }

input[type="text"], input[type="number"], select {
  width: 100%;
  min-height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line2);
  background: var(--bg2);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
  appearance: none;
}
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-dim); }
.moneybox { position: relative; display: flex; align-items: center; }
.moneybox input { padding-right: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.moneybox .unit {
  position: absolute;
  right: 10px;
  font-size: 11.5px;
  color: var(--muted2);
  pointer-events: none;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  margin: 0;
  background: var(--bg2);
}
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check .sub { color: var(--muted2); font-size: 11px; }

/* ---------------------------------------------------------------- result */
.result-card {
  border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background: linear-gradient(180deg, var(--accent-dim), transparent 62%), var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
}
.rl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.big {
  font-size: clamp(28px, 5.2vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.big small { font-size: .48em; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.tagline { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.mini {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.mini dt { color: var(--muted); }
.mini dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.result-note { font-size: 11.5px; color: var(--muted2); margin-top: 12px; line-height: 1.55; }

.gain {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--panel2);
}
.gain b { display: block; font-size: 13px; }
.gain p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.gain .amt { font-family: var(--mono); font-size: 17px; color: var(--ok); font-weight: 700; }

.diag { display: grid; gap: 10px; }
.diag-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--panel2);
}
.diag-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.diag-name { font-size: 13px; font-weight: 650; }
.diag-amt { font-family: var(--mono); font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.diag-note { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  font-family: var(--mono);
}
.badge.ok { background: var(--ok-dim); color: var(--ok); }
.badge.room { background: var(--accent-dim); color: var(--accent); }
.badge.warn { background: var(--warn-dim); color: var(--warn); }
.badge.dim { background: transparent; color: var(--muted2); border: 1px solid var(--line); }

.opps { margin-top: 14px; }
.opps h4 { font-size: 12px; color: var(--muted2); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 7px; }
.opps ul { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--muted); display: grid; gap: 5px; }

.share { display: flex; gap: 6px; margin-top: 12px; }
.share input {
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--muted);
  min-height: 34px;
  padding: 6px 8px;
  flex: 1;
  min-width: 0;
}
.share .btn { flex: none; }

/* --------------------------------------------------------------- blocks */
.block { padding: 34px 20px 6px; }
.sec-head { max-width: 46em; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(19px, 2.6vw, 24px); font-weight: 750; }
.sec-head p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

.notes { font-size: 12px; color: var(--muted2); line-height: 1.6; }

.basis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.basis-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel);
}
.basis-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.basis-card p { font-size: 12px; color: var(--muted); line-height: 1.6; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 12px; }
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.guide-card:hover { border-color: var(--accent-line); text-decoration: none; background: var(--panel2); }
.guide-card .g-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.guide-card b { font-size: 13.5px; font-weight: 650; line-height: 1.4; }
.guide-card span { font-size: 11.5px; color: var(--muted2); line-height: 1.5; }

/* ----------------------------------------------------------------- docs */
.doc { padding: 34px 20px 20px; max-width: 760px; }
.doc h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.doc .meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted2); margin-top: 8px; }
.doc h2 { font-size: 18px; margin: 28px 0 8px; }
.doc h3 { font-size: 15px; margin: 20px 0 6px; }
.doc p { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.doc ul, .doc ol { margin: 10px 0 0; padding-left: 20px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.doc li b, .doc p b { color: var(--ink); font-weight: 650; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 11.5px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted2); font-weight: 600; }
.doc td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tablewrap { overflow-x: auto; margin-top: 12px; }
.tablewrap table { margin-top: 0; }
.back { display: inline-block; margin-top: 26px; font-size: 13px; }
.cta-box {
  margin-top: 26px;
  border: 1px solid var(--accent-line);
  background: linear-gradient(180deg, var(--accent-dim), transparent 80%), var(--panel);
  border-radius: 14px;
  padding: 16px 18px;
}
.cta-box p { margin-top: 0; font-size: 13px; color: var(--muted); }
.cta-box .btn { margin-top: 10px; }
.related { margin-top: 26px; display: grid; gap: 6px; }
.related h2 { font-size: 14px; margin: 0 0 4px; }
.related a { font-size: 13px; }

.faq { margin-top: 8px; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-size: 13.5px; font-weight: 650; }
.faq p { font-size: 13px; margin-top: 6px; }

/* --------------------------------------------------------------- footer */
.site-foot {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  background: var(--bg2);
  position: relative;
  z-index: 1;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 10px;
}
.foot-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.foot-note { font-size: 12px; color: var(--muted2); margin-top: 8px; max-width: 34em; line-height: 1.6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; }
.foot-links a { color: var(--muted); }
.foot-copy {
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted2);
  border-top: 1px solid var(--line);
  padding: 12px 0 20px;
  margin-top: 8px;
}

.noscript { margin-top: 16px; font-size: 13px; color: var(--warn); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 28px 16px 4px; }
  .block { padding: 26px 16px 4px; }
  .doc { padding: 26px 16px 16px; }
  .fields { grid-template-columns: 1fr; }
  .types { grid-template-columns: minmax(0, 1fr); }
  .types button { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .types button span { margin-top: 0; }
  .ev { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .head-inner { min-height: 56px; }
  .brand-prod { display: none; }
  .card-body { padding: 12px 14px 16px; }
  .result-card { padding: 16px; }
  .share { flex-wrap: wrap; }
  .share input { flex: 1 1 100%; }
  .foot-inner { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

@media (max-width: 980px) {
  body { padding-bottom: 62px; }
  .mbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-top: 1px solid var(--accent-line);
    box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, .8);
  }
  .mbar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 16px 10px;
    max-width: var(--maxw);
    margin: 0 auto;
  }
  .mbar .ml {
    display: block;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted2);
  }
  .mbar .mv {
    display: block;
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    line-height: 1.2;
  }
  .mbar a {
    font-size: 12.5px;
    font-weight: 700;
    background: var(--accent);
    color: var(--on-accent);
    border-radius: 999px;
    padding: 8px 14px;
    text-decoration: none;
    white-space: nowrap;
  }
}
