/* Shared by every page on probatebuddy.ca. No build step: edit and deploy. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --border: #e3ded4;
  --ink: #1e1c19;
  --ink-soft: #55504a;
  --ink-faint: #7d766d;
  --accent: #1b3a4b;
  --accent-soft: #e7eef1;
  --on-accent: #fbfaf7;
  --radius: 14px;
  --maxw: 940px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141613;
    --surface: #1c1f1c;
    --border: #2e332e;
    --ink: #f2efe9;
    --ink-soft: #c2bcb2;
    --ink-faint: #918a80;
    --accent: #9fc4d4;
    --accent-soft: #1f2b31;
    --on-accent: #141613;
  }
}
:root[data-theme="dark"] {
  --bg: #141613;
  --surface: #1c1f1c;
  --border: #2e332e;
  --ink: #f2efe9;
  --ink-soft: #c2bcb2;
  --ink-faint: #918a80;
  --accent: #9fc4d4;
  --accent-soft: #1f2b31;
  --on-accent: #141613;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
a { color: inherit; }

header { border-bottom: 1px solid var(--border); background: var(--surface); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-size: 20px; font-weight: 600; }
.mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center;
  font-family: Georgia, serif; font-size: 18px;
}
.status {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}

.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); margin: 0 0 20px; max-width: 18ch; }
.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-soft); max-width: 58ch; margin: 0 0 28px; }
.note {
  display: inline-block; background: var(--accent-soft); color: var(--ink);
  border-radius: var(--radius); padding: 14px 18px; font-size: 15px; max-width: 56ch;
}

section { padding: 44px 0; border-top: 1px solid var(--border); }
section h2 { font-size: clamp(21px, 3.2vw, 26px); margin: 0 0 8px; }
.sub { color: var(--ink-faint); font-size: 15px; margin: 0 0 26px; max-width: 62ch; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; counter-increment: s;
}
.steps li::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.scope { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.scope ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.scope li { margin-bottom: 7px; }
.scope h3 { font-size: 16px; margin: 0 0 10px; color: var(--ink); }

.contact p { color: var(--ink-soft); max-width: 58ch; }
.btn {
  display: inline-block; margin-top: 8px;
  background: var(--accent); color: var(--on-accent);
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 10px;
}

footer { border-top: 1px solid var(--border); background: var(--surface); padding: 34px 0; margin-top: 8px; }
footer .legal { font-size: 13px; color: var(--ink-faint); line-height: 1.7; max-width: 76ch; }
footer .legal strong { color: var(--ink-soft); }
.colophon { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 13px; color: var(--ink-faint); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* Navigation and shared bits added with the fee calculator (2026-09-19). */
a.brand { text-decoration: none; color: inherit; }
.topnav { display: flex; gap: 18px; font-size: 15px; }
.topnav a { color: var(--ink-soft); text-decoration: none; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-tight { padding: 56px 0 40px; }
.eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.hint { font-size: 13px; color: var(--ink-faint); margin: 8px 0 0; line-height: 1.6; }
.small { font-size: 13px; margin-top: 18px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--ink-soft); }

/* Fee calculator */
.calc { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; border-top: 0; padding-top: 0; }
.calc-inputs, .calc-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.calc-label { display: block; font-family: Georgia, serif; font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.money { display: flex; align-items: center; gap: 8px; font-size: 20px; color: var(--accent); }
.money input { width: 100%; font: 600 20px ui-monospace, Consolas, monospace; color: var(--ink); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
input[type="range"] { width: 100%; margin-top: 22px; accent-color: var(--accent); }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-faint); }
.big { font-family: Georgia, serif; font-size: 40px; font-weight: 700; color: var(--accent); margin: 6px 0 0; }
.big small { font-size: 13px; font-family: ui-monospace, Consolas, monospace; color: var(--ink-faint); font-weight: 400; }
.breakdown { margin: 18px 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 15px; }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.breakdown dt { color: var(--ink-soft); }
.breakdown dd { margin: 0; font-family: ui-monospace, Consolas, monospace; }
.breakdown .sum { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.breakdown .sum dt { color: var(--ink); }
details { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; background: var(--bg); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { font-size: 15px; color: var(--ink-soft); }
.steps-long { grid-template-columns: 1fr; }
.when { display: block; margin-top: 8px; font-size: 13px; color: var(--accent); font-family: ui-monospace, Consolas, monospace; }
.faq summary { font-family: Georgia, serif; font-size: 17px; }

/* Calculator teaser on the home page */
.teaser { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.teaser p { color: var(--ink-soft); max-width: 60ch; margin: 0; }
/* Let the header wrap on phones rather than push the page sideways. */
.bar { flex-wrap: wrap; row-gap: 10px; }
.topnav { align-items: center; flex-wrap: wrap; gap: 10px 16px; }

/* Guides (2026-09-19) */
.article { max-width: 760px; padding-top: 48px; padding-bottom: 56px; }
.article h1 { font-size: clamp(28px, 5vw, 42px); margin: 8px 0 18px; }
.article h2 { font-size: 22px; margin: 40px 0 10px; }
.article p, .article li { color: var(--ink-soft); }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article a { color: var(--accent); text-underline-offset: 3px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.rules { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.rules th, .rules td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.rules th { font-family: Georgia, serif; color: var(--ink); background: var(--surface); }
.rules td:first-child { width: 38%; color: var(--ink); }
.guide-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.guide-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.guide-list a { font-family: Georgia, serif; font-size: 20px; font-weight: 600; color: var(--ink); text-decoration: none; }
.guide-list a:hover { color: var(--accent); text-decoration: underline; }
.guide-list p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 520px) { .rules td:first-child { width: auto; } .rules th, .rules td { padding: 8px 6px; } }
