/* ============================================================
   BusinessDaysTool — Shared design system
   Light, refined, professional SaaS aesthetic.
   Fonts: Sora (display), Plus Jakarta Sans (body), IBM Plex Mono (figures)
   ============================================================ */

:root {
  --bg: #f7f8fb;
  --bg-soft: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --accent: #0d9488;        /* teal 600 */
  --accent-strong: #0f766e; /* teal 700 */
  --accent-soft: #ccfbf1;   /* teal 100 */
  --accent-ink: #134e4a;    /* teal 900 */

  --indigo: #4f46e5;
  --amber: #d97706;
  --rose: #e11d48;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .06), 0 12px 28px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .12);

  --radius: 16px;
  --radius-sm: 10px;

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(13, 148, 136, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(79, 70, 229, .06), transparent 55%),
    linear-gradient(to bottom, var(--bg), var(--bg));
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle grid texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
}

.layer { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.02em; line-height: 1.12; margin: 0; }

a { color: inherit; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(247, 248, 251, .82);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  box-shadow: var(--shadow-sm);
}
.brand .mark svg { width: 19px; height: 19px; }
.brand b { color: var(--accent-strong); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .92rem;
  padding: 9px 14px; border-radius: 10px; transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { background: var(--accent-soft); color: var(--accent-ink); }

.lang-toggle {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 9px; cursor: pointer; font-size: 1.15rem; line-height: 1;
  transition: background .15s ease, border-color .15s ease;
  display: inline-flex; align-items: center; flex: none;
}
.lang-toggle:hover { background: var(--bg-soft); border-color: var(--accent); }

.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; color: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 16px; box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(13, 148, 136, .32); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent-strong); }

/* ---------- Cards & inputs ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.card-pad { padding: clamp(20px, 3vw, 34px); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .01em; }
.field .hint { font-size: .78rem; color: var(--muted); font-weight: 500; }

.input {
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: 13px 14px; width: 100%; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input:hover { border-color: var(--accent); }
.input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(13, 148, 136, .14); }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; padding: 5px; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: .92rem; color: var(--muted);
  padding: 10px 18px; border-radius: 10px; transition: all .18s ease; cursor: pointer; border: none; background: transparent;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); }

/* ---------- Ad slots ---------- */
/* Remove display:none below once AdSense code is inserted into .ad-slot divs */
.ad-slot { display: none; margin: 0 auto; }
.ad-leaderboard { width: 100%; max-width: 728px; min-height: 90px; }
.ad-rectangle { width: 100%; max-width: 300px; min-height: 250px; }
.ad-footer { width: 100%; max-width: 728px; min-height: 90px; }
@media (max-width: 520px) { .ad-leaderboard, .ad-footer { height: 100px; } }

/* ---------- Visual Calendar ---------- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.cal-month {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.cal-month-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent-strong);
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.cal-dow-row span {
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
  color: var(--muted);
  padding: 2px 0;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: default;
}
.cal-empty { background: transparent; }
.cal-biz { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); }
.cal-weekend { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }
.cal-holiday { background: color-mix(in srgb, #ef4444 15%, transparent); color: #dc2626; font-weight: 700; }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: .82rem;
  color: var(--ink-soft);
}
.cal-leg-item { display: flex; align-items: center; gap: 6px; }
.cal-leg-swatch {
  width: 20px !important;
  height: 20px !important;
  aspect-ratio: 1;
  font-size: 0 !important;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ---------- Misc ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.section-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 10px; }
.lede { color: var(--ink-soft); font-size: 1.04rem; max-width: 62ch; }

.figure { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.fade-up { opacity: 0; transform: translateY(14px); animation: fadeUp .7s cubic-bezier(.16,.84,.44,1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 48px 0 28px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-grid a { display: block; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .92rem; padding: 5px 0; transition: color .15s ease; }
.footer-grid a:hover { color: var(--accent-strong); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid .footer-brand { grid-column: 1 / -1; } }

/* ---------- Tool page layout ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .tool-layout { grid-template-columns: 1fr; } .tool-sidebar { order: 3; display: flex; justify-content: center; } }

.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .input-grid { grid-template-columns: 1fr; } }

.error-banner { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-weight: 600; font-size: .9rem; }

/* ---------- Business days results ---------- */
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 640px) { .result-grid { grid-template-columns: 1fr 1fr; } }

.tile { border-radius: 14px; padding: 18px 16px; border: 1px solid var(--line); background: var(--surface-2); }
.tile .tile-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tile .tile-value { font-family: var(--font-mono); font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 600; margin-top: 6px; letter-spacing: -.03em; }
.tile.is-hero { background: linear-gradient(140deg, var(--accent), var(--accent-strong)); border-color: transparent; color: #fff; box-shadow: 0 12px 30px rgba(13,148,136,.32); }
.tile.is-hero .tile-label { color: rgba(255,255,255,.85); }
.tile.is-weekend .tile-value { color: var(--indigo); }
.tile.is-holiday .tile-value { color: var(--amber); }

.summary-line { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: .96rem; }
.summary-line strong { font-family: var(--font-mono); }

.holiday-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.holiday-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
#bd-holiday-list { margin-top: 18px; }

.empty-state { text-align: center; padding: 30px 16px; color: var(--muted); }

/* ---------- Date calculator ---------- */
.dc-op-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.dc-check { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.dc-check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex: none; }
.dc-result-card {
  border-radius: 16px; padding: 26px 22px; text-align: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-strong));
  color: #fff; box-shadow: 0 12px 30px rgba(13,148,136,.32);
}
.dc-result-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.85); }
.dc-result-date { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 5vw, 2.2rem); margin-top: 8px; letter-spacing: -.02em; line-height: 1.15; }
.dc-result-sub { font-family: var(--font-mono); font-size: .9rem; margin-top: 10px; color: rgba(255,255,255,.9); }

/* ---------- Age calculator ---------- */
.ag-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
@media (max-width: 480px) { .ag-totals { grid-template-columns: 1fr; } }
.ag-total-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.ag-total-row .figure { color: var(--ink); font-weight: 700; }
.ag-bday { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: .95rem; }
.ag-bday strong { font-family: var(--font-mono); }

/* ---------- Countdown / Days until ---------- */
.cd-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cd-chip {
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-soft);
  font-family: var(--font-body); font-weight: 700; font-size: .82rem;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cd-chip:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.cd-big-card {
  border-radius: 18px; padding: 30px 22px; text-align: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-strong));
  color: #fff; box-shadow: 0 14px 34px rgba(13,148,136,.34);
}
.cd-big { font-family: var(--font-mono); font-weight: 600; font-size: clamp(3rem, 12vw, 5rem); line-height: 1; letter-spacing: -.04em; }
.cd-big-label { font-size: 1rem; font-weight: 700; margin-top: 10px; color: rgba(255,255,255,.92); }
.cd-date-line { font-size: .9rem; margin-top: 6px; color: rgba(255,255,255,.8); }

/* ---------- Time zone add bar ---------- */
.tz-add-bar { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tz-add-select { font-size: .92rem; padding: 10px 12px; }
.tz-city-count { font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; flex: none; }

/* ---------- Time zone cards ---------- */
.tz-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.tz-controls .field { flex: 1 1 150px; }
.format-toggle { display: inline-flex; padding: 4px; gap: 3px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; }
.format-toggle button { border: none; background: transparent; font-family: var(--font-body); font-weight: 700; font-size: .85rem; color: var(--muted); padding: 9px 14px; border-radius: 8px; cursor: pointer; transition: all .16s ease; }
.format-toggle button.active { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); }

.tz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 560px) { .tz-grid { grid-template-columns: 1fr; } }

.tz-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.tz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.tz-card-top { display: flex; align-items: center; gap: 12px; }
.tz-flag { font-size: 1.7rem; line-height: 1; }
.tz-city { font-size: 1.12rem; }
.tz-region { margin: 2px 0 0; font-size: .76rem; color: var(--muted); font-weight: 600; }
.tz-badge { margin-left: auto; font-size: .7rem; font-weight: 800; letter-spacing: .03em; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.tz-badge.same { background: var(--accent-soft); color: var(--accent-ink); }
.tz-badge.next { background: #e0e7ff; color: #3730a3; }
.tz-badge.prev { background: #ffedd5; color: #9a3412; }
.tz-time { font-size: clamp(2.2rem, 7vw, 2.8rem); font-weight: 600; margin: 16px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.tz-suffix { font-size: 1rem; font-weight: 700; color: var(--muted); font-family: var(--font-body); }
.tz-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.tz-abbr { font-family: var(--font-mono); font-size: .72rem; color: var(--accent-strong); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; }

.tz-remove {
  margin-left: auto; flex: none; background: none; border: none;
  width: 26px; height: 26px; border-radius: 6px; cursor: pointer;
  font-size: 1.15rem; line-height: 1; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.tz-remove:hover { background: #fef2f2; color: var(--rose); }

/* ---------- SEO content blocks ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 36px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose p { color: var(--ink-soft); margin: 0 0 14px; }
.prose ul { color: var(--ink-soft); padding-left: 20px; margin: 0 0 14px; }
.prose li { margin: 6px 0; }

.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 12px; padding: 4px 18px; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); margin: 0 0 16px; }

/* ---------- Hero / feature cards (home) ---------- */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(30px, 5vw, 56px); text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 16ch; margin: 18px auto 0; }
.hero .lede { margin: 20px auto 0; text-align: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

.tool-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .tool-cards { grid-template-columns: 1fr; } }
.tool-card { display: flex; flex-direction: column; gap: 14px; padding: 30px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.tool-card .tc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm); }
.tool-card .tc-icon svg { width: 26px; height: 26px; }
.tool-card h3 { font-size: 1.35rem; }
.tool-card p { color: var(--ink-soft); margin: 0; flex: 1; }
.tool-card .tc-link { color: var(--accent-strong); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 24px; }
.feature .f-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .94rem; }

.section { padding: clamp(36px, 6vw, 64px) 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 14px; }

/* ---------- Data tables (guide pages) ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); }
.data-table thead th { background: var(--bg-soft); text-align: right; font-family: var(--font-display); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 13px 16px; }
.data-table thead th:first-child { text-align: left; }
.data-table tbody td { padding: 13px 16px; border-top: 1px solid var(--line); text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.data-table tbody td:first-child { text-align: left; font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody td.biz { color: var(--accent-strong); font-weight: 700; }
.data-table tfoot td { padding: 14px 16px; border-top: 2px solid var(--line-strong); text-align: right; font-family: var(--font-mono); font-weight: 700; color: var(--ink); background: var(--surface-2); }
.data-table tfoot td:first-child { text-align: left; font-family: var(--font-display); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 30px; }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--accent-strong); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

.cta-band { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); text-align: center; box-shadow: 0 14px 36px rgba(13,148,136,.3); }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3.5vw, 2rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 12px auto 22px; }
.cta-band .btn-ghost { background: #fff; border-color: #fff; color: var(--accent-strong); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.92); }

.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .guide-cards { grid-template-columns: 1fr; } }
.guide-card { display: block; text-decoration: none; color: inherit; padding: 24px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.guide-card .gc-tag { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); }
.guide-card h3 { font-size: 1.12rem; margin: 8px 0; }
.guide-card p { color: var(--ink-soft); font-size: .9rem; margin: 0; }
