:root {
  --bg: #08080a;
  --bg-elev: #111115;
  --card: #16161b;
  --card-hover: #1d1d24;
  --ink: #f4f4f7;
  --muted: #a4a4ae;
  --line: #2a2a33;
  --silver: #c7c9d0;
  --silver-bright: #eceef2;
  --accent: #b8bcc8;
  --accent-dim: rgba(199, 201, 208, 0.12);
  --danger: #e08a8a;
  --ok: #c7c9d0;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(200, 205, 220, 0.08), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--silver-bright); text-decoration-color: rgba(236, 238, 242, 0.35); }
a:hover { color: #fff; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--silver);
  color: #111;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #000;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-bright);
}
.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--silver-bright);
  border-bottom-color: var(--silver);
}

/* Main */
main { flex: 1; padding: 36px 0 64px; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--silver-bright);
  margin: 0 0 10px;
}
h2 { font-size: 1.45rem; margin: 1.6em 0 0.6em; color: var(--silver-bright); }
h3 { font-size: 1.15rem; margin: 1.2em 0 0.4em; color: var(--ink); }
.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46rem;
  margin-bottom: 28px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.tool-card { margin-bottom: 40px; }

.hero-home {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}
.hero-home img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.kicker {
  color: var(--silver);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tool-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.tool-tile:hover {
  background: var(--card-hover);
  border-color: var(--silver);
  transform: translateY(-2px);
  color: inherit;
}
.tool-tile h2 { margin: 0 0 8px; font-size: 1.25rem; }
.tool-tile p { color: var(--muted); font-size: 0.95rem; }

/* Forms */
label, .field-label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
input[type="text"], input[type="number"], input[type="url"], input[type="email"], select, textarea {
  width: 100%;
  background: #0d0d11;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.05rem;
}
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 2px;
}
.row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}
.field { min-width: 0; }
.swap {
  background: var(--accent-dim);
  color: var(--silver-bright);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.2rem;
}
.swap:hover { border-color: var(--silver); }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tabs button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.tabs button[aria-selected="true"], .tabs button:hover {
  color: var(--bg);
  background: var(--silver);
  border-color: var(--silver);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #e8e9ee, #b8bcc6);
  color: #111;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.06); color: #111; }
.btn-ghost {
  background: transparent;
  color: var(--silver-bright);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--silver); color: #fff; filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.result-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--line);
}
.result-box .big {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--silver-bright);
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.result-grid div {
  background: #0d0d11;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.result-grid .lbl { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.result-grid .val { font-size: 1.25rem; color: var(--silver-bright); margin-top: 4px; }
.all-units {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.all-units div {
  background: #0d0d11;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.all-units .u { color: var(--muted); font-size: 0.78rem; }
.hint, .status { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.err { color: var(--danger); }

/* Calculator */
.calc {
  max-width: 360px;
  margin: 0 auto;
}
.calc-display {
  background: #0a0a0d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: right;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  min-height: 68px;
  word-break: break-all;
  margin-bottom: 12px;
}
.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.calc-keys button {
  background: #1c1c22;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 56px;
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}
.calc-keys button:hover { background: #26262e; }
.calc-keys .op { color: var(--silver-bright); background: #24242c; }
.calc-keys .eq {
  background: linear-gradient(180deg, #e8e9ee, #b8bcc6);
  color: #111;
  border-color: transparent;
  grid-column: span 1;
}
.calc-keys .wide { grid-column: span 2; }
.calc-keys .util { color: var(--silver); }

/* Mortgage table */
.amort-wrap { overflow: auto; margin-top: 16px; max-height: 420px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
th, td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; position: sticky; top: 0; background: var(--card); }
td:first-child, th:first-child { text-align: left; }

/* QR */
.qr-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}
.qr-out {
  text-align: center;
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 16px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-out img, .qr-out canvas { max-width: 100%; height: auto; }

/* Article */
.article {
  max-width: 46rem;
  color: #d4d4db;
}
.article p { margin: 0 0 1em; }
.article ul, .article ol { margin: 0 0 1em 1.2em; }
.article li { margin: 0.3em 0; }
.faq { margin-top: 8px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary { cursor: pointer; color: var(--silver-bright); font-weight: 600; }
.faq details p { margin: 8px 0 0; }

.disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #070709;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}
.site-footer a { color: var(--silver); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--silver-bright);
}
.site-footer ul { list-style: none; }
.site-footer li { margin: 6px 0; }
.copy { margin-top: 24px; font-size: 0.85rem; }

.row-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 800px) {
  .hero-home, .qr-layout, .footer-grid, .tool-grid, .result-grid, .row, .row-3 {
    grid-template-columns: 1fr;
  }
  .swap { width: 100%; }
  .brand img { width: 44px; height: 44px; }
  main { padding: 24px 0 48px; }
}

/* ========== Tool page themes ========== */
/* Shared pages stay on the default silver & black tokens above. */
/* No green, teal, or orange. */

/* QR generator: silver, black & white */
body.theme-qr {
  --bg: #08080a;
  --bg-elev: #111115;
  --card: #16161b;
  --card-hover: #1d1d24;
  --ink: #ffffff;
  --muted: #c5c7ce;
  --line: #3a3a44;
  --silver: #d0d2d8;
  --silver-bright: #ffffff;
  --accent: #e8e9ed;
  --accent-dim: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(230, 232, 238, 0.10), transparent 55%),
    var(--bg);
}
body.theme-qr .btn {
  background: linear-gradient(180deg, #ffffff, #c5c7ce);
  color: #111;
}

/* Calculator: silver & white (light page) */
body.theme-calc {
  --bg: #f4f5f8;
  --bg-elev: #eceef2;
  --card: #ffffff;
  --card-hover: #f7f8fa;
  --ink: #121216;
  --muted: #5b5d66;
  --line: #c9ccd4;
  --silver: #6f7380;
  --silver-bright: #1a1b20;
  --accent: #8a8e99;
  --accent-dim: rgba(80, 84, 94, 0.08);
  --danger: #b4232c;
  --shadow: 0 14px 32px rgba(20, 22, 28, 0.08);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(160, 166, 180, 0.18), transparent 55%),
    var(--bg);
  color: var(--ink);
}
body.theme-calc .site-header {
  background: rgba(244, 245, 248, 0.94);
  border-bottom-color: var(--line);
}
body.theme-calc .brand,
body.theme-calc .brand-name { color: #121216; }
body.theme-calc .brand-tag,
body.theme-calc .nav a { color: #5b5d66; }
body.theme-calc .nav a:hover,
body.theme-calc .nav a[aria-current="page"] {
  color: #121216;
  border-bottom-color: #8a8e99;
}
body.theme-calc input[type="text"],
body.theme-calc input[type="number"],
body.theme-calc input[type="url"],
body.theme-calc input[type="email"],
body.theme-calc select,
body.theme-calc textarea,
body.theme-calc .calc-display,
body.theme-calc .result-grid div,
body.theme-calc .all-units div {
  background: #f7f8fb;
  color: var(--ink);
  border-color: var(--line);
}
body.theme-calc .calc-keys button {
  background: #eceef3;
  color: #121216;
  border-color: #c9ccd4;
}
body.theme-calc .calc-keys button:hover { background: #e2e4ea; }
body.theme-calc .calc-keys .op { color: #121216; background: #e4e6ec; }
body.theme-calc .calc-keys .eq {
  background: linear-gradient(180deg, #2a2b31, #111114);
  color: #f4f4f7;
}
body.theme-calc .btn {
  background: linear-gradient(180deg, #2a2b31, #111114);
  color: #f4f4f7;
}
body.theme-calc .btn:hover { color: #fff; }
body.theme-calc .btn-ghost { color: #121216; border-color: var(--line); }
body.theme-calc .article { color: #2a2b31; }
body.theme-calc .site-footer {
  background: #eceef2;
  border-top-color: var(--line);
  color: #5b5d66;
}
body.theme-calc .site-footer a { color: #3a3c44; }
body.theme-calc .site-footer a:hover { color: #111; }
body.theme-calc th { background: var(--card); }

/* Metric converter: navy blue with silver/white accents */
body.theme-navy {
  --bg: #07111f;
  --bg-elev: #0c1830;
  --card: #102039;
  --card-hover: #15264a;
  --ink: #f5f7fb;
  --muted: #b4bfd4;
  --line: #2a3d63;
  --silver: #c5cde0;
  --silver-bright: #ffffff;
  --accent: #c5cde0;
  --accent-dim: rgba(197, 205, 224, 0.12);
  --danger: #e08a8a;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(70, 100, 170, 0.22), transparent 55%),
    var(--bg);
}
body.theme-navy .brand-name,
body.theme-navy h1,
body.theme-navy h2,
body.theme-navy .kicker,
body.theme-navy .result-box .big { color: #e8eef8; }
body.theme-navy .btn {
  background: linear-gradient(180deg, #ffffff, #c5cde0);
  color: #07111f;
}
body.theme-navy .tabs button[aria-selected="true"],
body.theme-navy .tabs button:hover {
  background: #e8eef8;
  border-color: #e8eef8;
  color: #07111f;
}
body.theme-navy .nav a:hover,
body.theme-navy .nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: #c5cde0;
}
body.theme-navy a { color: #dbe3f2; text-decoration-color: rgba(197, 205, 224, 0.45); }
body.theme-navy a:hover { color: #ffffff; }
body.theme-navy .site-footer a { color: #c5cde0; }
body.theme-navy input:focus,
body.theme-navy select:focus,
body.theme-navy textarea:focus,
body.theme-navy button:focus-visible {
  outline-color: #c5cde0;
}

/* Mortgage calculator: deep purple with silver/white accents */
body.theme-purple {
  --bg: #140a1d;
  --bg-elev: #1c1028;
  --card: #241534;
  --card-hover: #2c1a40;
  --ink: #f6f3fb;
  --muted: #c4b8d6;
  --line: #4a3560;
  --silver: #d7d0e4;
  --silver-bright: #ffffff;
  --accent: #d7d0e4;
  --accent-dim: rgba(215, 208, 228, 0.12);
  --danger: #e08a8a;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(110, 70, 160, 0.28), transparent 55%),
    var(--bg);
}
body.theme-purple .brand-name,
body.theme-purple h1,
body.theme-purple h2,
body.theme-purple .kicker,
body.theme-purple .result-box .big,
body.theme-purple .result-grid .val { color: #f3eefb; }
body.theme-purple .btn {
  background: linear-gradient(180deg, #ffffff, #d7d0e4);
  color: #140a1d;
}
body.theme-purple .tabs button[aria-selected="true"],
body.theme-purple .tabs button:hover {
  background: #f3eefb;
  border-color: #f3eefb;
  color: #140a1d;
}
body.theme-purple .nav a:hover,
body.theme-purple .nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: #d7d0e4;
}
body.theme-purple a { color: #e6def2; text-decoration-color: rgba(215, 208, 228, 0.45); }
body.theme-purple a:hover { color: #ffffff; }
body.theme-purple .site-footer a { color: #d7d0e4; }
body.theme-purple input:focus,
body.theme-purple select:focus,
body.theme-purple textarea:focus,
body.theme-purple button:focus-visible {
  outline-color: #d7d0e4;
}

/* Product / feature sections — uses theme tokens (no green, teal, or orange) */
.shop-section { margin: 36px 0 8px; }
.shop-section > p { color: var(--muted); max-width: 46rem; margin: 0 0 16px; }
.shop-section h2 { margin-top: 0; }
.shop-section h3 { margin: 1.4em 0 0.6em; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.product-grid.featured-one { grid-template-columns: 1fr; max-width: 520px; }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}
a.product-card:hover {
  border-color: var(--silver);
  transform: translateY(-2px);
  color: inherit;
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
  display: block;
}
.product-card.coming-soon img,
.product-card.book-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}
.product-card .card-body { padding: 14px 16px 16px; }
.product-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.product-card .tagline {
  font-style: italic;
  color: var(--silver-bright);
  margin: 0 0 8px;
}
.product-card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }
.product-card .price { color: var(--silver-bright); font-weight: 650; margin: 0; }
.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--silver);
  color: var(--silver-bright);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tips {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--accent-dim);
}
.tips h3 { margin-top: 0; }
.tips ul { margin: 0 0 0 1.2em; }
.see-all { margin-top: 18px; }
@media (max-width: 800px) {
  .product-grid, .product-grid.featured-one { grid-template-columns: 1fr; }
}


/* ---- site nav (hamburger) ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header-inner {
  flex-wrap: nowrap;
}
.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--silver-bright);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 2px;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}
#tool, #guides, #products, #planners, #language, #real-estate, #homeowners, #books {
  scroll-margin-top: 88px;
}
body.theme-navy .site-header { background: rgba(7, 17, 31, 0.94); }
body.theme-purple .site-header { background: rgba(20, 10, 29, 0.94); }
body.theme-qr .site-header { background: rgba(8, 8, 10, 0.94); }
body.theme-calc .nav-toggle { color: #121216; background: rgba(255,255,255,0.7); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px max(16px, calc((100% - var(--max)) / 2)) 16px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  body.nav-open .nav { display: flex; }
  .nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  body.theme-calc .nav { background: rgba(244, 245, 248, 0.98); }
}

