/* Debt Payoff Allocator pages. Self-contained; doesn't touch the main site's styles. */
:root {
  --bg: #0F172A;
  --surface: #16213A;
  --line: rgba(148, 163, 184, 0.18);
  --text: #F1F5F9;
  --muted: #94A3B8;
  --emerald: #10B981;
  --gold: #F59E0B;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--emerald); overflow-wrap: anywhere; }
p, li, summary { overflow-wrap: break-word; }
a:hover { color: #34D399; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.bar img { width: 44px; height: 44px; border-radius: 10px; }
.bar .name { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; margin-right: auto; }
.bar nav { display: flex; gap: 16px; font-size: 15px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a[aria-current="page"], .bar nav a:hover { color: var(--text); }
main { padding-top: 32px; padding-bottom: 48px; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.5px; }
h2 { font-size: 21px; margin: 32px 0 8px; }
.lede { color: var(--muted); font-size: 19px; margin: 0 0 24px; }
.updated { color: var(--muted); font-size: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin: 16px 0;
}
.card h2 { margin-top: 0; }
.hero { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.hero img { width: 96px; height: 96px; border-radius: 22px; }
.button {
  display: inline-block;
  background: var(--emerald);
  color: #04281C;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
}
.button:hover { color: #04281C; filter: brightness(1.08); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 20px 0 32px; }
footer a { color: var(--muted); }
@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .bar nav { width: 100%; }
}
