/* ozbanking.com — theme_08 Minimalist Magazine Calculator */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --ink: #0f172a;
  --accent: #6d28d9;
  --accent-soft: #ede9fe;
  --muted: #475569;
  --line: #e2e8f0;
  --serif: Charter, "Bitstream Charter", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand .tld { color: var(--accent); }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }

/* ---------- disclosure bar (above the fold) ---------- */
.disclosure-bar {
  background: var(--accent-soft);
  border-bottom: 1px solid #ddd6fe;
  color: var(--ink);
  font-size: 0.85rem;
}
.disclosure-bar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
}
.disclosure-bar a { color: var(--accent); }

/* ---------- layout ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem 4rem; }

.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
.kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.lede { max-width: 46rem; color: var(--muted); font-size: 1.05rem; margin: 0; }

section { margin: 3rem 0; }
h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
p { max-width: 46rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- workbench ---------- */
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) { .workbench { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
}
.panel h3 { margin-top: 0; font-family: var(--serif); }

.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field input, .field select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field .hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }

.preset-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.preset-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
}
.preset-btn:hover, .preset-btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.preset-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #5b21b6; }
.btn.secondary { background: #fff; color: var(--accent); }
.btn.secondary:hover { background: var(--accent-soft); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* ---------- results ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}
.kpi .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.kpi .v { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.kpi .v.pos { color: #047857; }
.kpi .v.neg { color: #b91c1c; }

.chart-wrap { margin: 1rem 0; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-caption { font-size: 0.78rem; color: var(--muted); }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
th, td { padding: 0.45rem 0.6rem; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
td.num-pos { color: #047857; }
td.num-neg { color: #b91c1c; }

/* ---------- rubric ---------- */
.rubric { display: grid; gap: 0.6rem; }
.rubric-row { display: grid; grid-template-columns: 1fr 90px; gap: 0.75rem; align-items: center; }
.rubric-row label { font-size: 0.88rem; }
.rubric-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.rubric-row .score-val { font-family: var(--mono); font-size: 0.85rem; text-align: right; }
.rubric-verdict {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.rubric-verdict.VERIFIED { border-color: #059669; color: #047857; }
.rubric-verdict.PARTIAL { border-color: #d97706; color: #b45309; }
.rubric-verdict.UNVERIFIED { border-color: #dc2626; color: #b91c1c; }

/* ---------- export receipt ---------- */
.receipt {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--muted);
  white-space: pre-wrap;
}

/* ---------- faq ---------- */
details.faq {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 0.6rem;
}
details.faq summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-family: var(--serif);
}
details.faq .faq-body { padding: 0 1rem 1rem; color: var(--muted); }

/* ---------- reference / archive ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
.ref-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: var(--surface);
}
.ref-card .rk { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ref-card .rv { font-family: var(--serif); font-size: 1.05rem; margin-top: 0.25rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem 1.5rem 3rem;
  background: var(--surface);
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

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