/* Shared styles — MoneyLast Calculator */
:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --ink: #0f2743;
  --muted: #5b6b7f;
  --line: #e2e8f1;
  --accent: #0e7c5a;
  --accent-dark: #0a5f45;
  --accent-soft: #e6f4ee;
  --warn: #b4530a;
  --warn-soft: #fdf1e3;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 780px; margin: 0 auto; padding: 0 20px 56px; }

header.site {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 0; font-weight: 700; font-size: 15px; letter-spacing: .2px;
}
header.site a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; }
header.site .dot {
  width: 26px; height: 26px; border-radius: 7px; background: var(--ink);
  color: #ffd166; display: grid; place-items: center; font-size: 15px; font-weight: 800;
}

h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 8px 0 10px; letter-spacing: -.5px; }
.lede { color: var(--muted); font-size: 17px; margin: 0 0 22px; max-width: 640px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(15,39,67,.04);
}

.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 560px) { .inputs { grid-template-columns: 1fr; } }
.field.full { grid-column: 1 / -1; }

.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.input-wrap {
  display: flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 9px; background: #fff; overflow: hidden; transition: border-color .15s;
}
.input-wrap:focus-within { border-color: var(--accent); }
.input-wrap .fix {
  padding: 0 10px; color: var(--muted); font-size: 14px; font-weight: 600;
  background: #f8fafc; align-self: stretch; display: flex; align-items: center;
  border-right: 1px solid var(--line);
}
.input-wrap .fix.suffix { border-right: 0; border-left: 1px solid var(--line); }
.input-wrap input {
  flex: 1; border: 0; outline: none; padding: 11px 12px; font-size: 16px;
  font-family: inherit; color: var(--ink); width: 100%; min-width: 0; background: transparent;
}
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; }
.check-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 3px; flex: none; }
.check-row label { font-size: 14px; }
.err { color: #b3261e; font-size: 12.5px; margin: 6px 0 0; }

.cta { margin-top: 20px; }
button.calc {
  width: 100%; padding: 15px 20px; font-size: 17px; font-weight: 700;
  background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
button.calc:hover { background: var(--accent-dark); }
button.calc:active { transform: translateY(1px); }

.privacy-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; font-size: 13px; color: var(--muted);
}
.privacy-note svg { flex: none; }

#results { margin-top: 22px; }
#results[hidden] { display: none; }
.verdict { text-align: center; padding: 10px 0 4px; }
.verdict .kicker {
  font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted); font-weight: 700;
}
.verdict .big {
  font-size: clamp(34px, 6vw, 46px); font-weight: 800; color: var(--accent);
  letter-spacing: -1px; line-height: 1.15; margin-top: 2px;
}
.verdict .big.warn { color: var(--warn); }
.verdict .sub { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 580px; margin-left: auto; margin-right: auto; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 4px; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--accent-dark); font-weight: 700; }
.stat .k span { font-weight: 500; text-transform: none; letter-spacing: 0; }
.stat .v { font-size: 17px; font-weight: 700; margin-top: 3px; }

.chart-host { margin-top: 18px; }
.chart-host svg { width: 100%; height: auto; display: block; }
.chart-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 6px; }

h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -.3px; }
h2.h-calc { font-size: 19px; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 24px 0 8px; }
article p, article li { color: #33475e; font-size: 15.5px; }
article ul, article ol { padding-left: 22px; }
article li { margin: 6px 0; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.hl td { background: var(--accent-soft); font-weight: 700; }
table.data td .tag { font-size: 11px; color: var(--accent-dark); font-weight: 700; }

details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; font-weight: 600; padding: 15px 4px; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 20px; color: var(--muted); flex: none; }
details.faq[open] summary::after { content: "\2013"; }
details.faq .a { padding: 0 4px 16px; color: #33475e; font-size: 15px; }

details.year-table { margin-top: 6px; }
details.year-table summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--ink); }
.table-scroll { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }

.src-list { padding-left: 22px; }
.src-list li { margin: 8px 0; color: #33475e; font-size: 15px; }
.src-list a { color: var(--accent-dark); }

.assump-box {
  background: #fbfcfe; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 20px; margin: 12px 0;
}
.assump-box ul { padding-left: 20px; }
.assump-box li { font-size: 14.5px; color: #33475e; margin: 8px 0; }

.disclaimer {
  margin-top: 44px; padding: 16px 18px; background: #fbfcfe; border: 1px dashed var(--line);
  border-radius: 10px; font-size: 13px; color: var(--muted);
}
footer.site { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
footer.site nav { margin-bottom: 8px; }
footer.site nav a { color: var(--muted); text-decoration: none; margin: 0 10px; }
footer.site nav a:hover { color: var(--ink); }
