@font-face {
  font-family: "InterVariable";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #5f6f86;
  --border: #d9e2ef;
  --accent: #2457c5;
  --accent-dark: #183f91;
  --success: #116b3a;
  --success-bg: #eaf7ef;
  --warning: #8a4b00;
  --warning-bg: #fff4df;
  --danger: #9b1c1c;
  --danger-bg: #fff0f0;
  --shadow: 0 14px 30px rgba(18, 41, 76, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "InterVariable", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 34px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(135deg, #123a82, #2762d9);
}

.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; opacity: .86; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.subtitle { margin: 12px 0 0; max-width: 820px; font-size: 18px; opacity: .93; }

.header-card {
  min-width: 190px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}
.header-card span, .label { display: block; font-size: 13px; color: inherit; opacity: .82; }
.header-card strong { display: block; margin: 4px 0; font-size: 24px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 24px;
  padding: 24px clamp(18px, 4vw, 56px) 48px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.input-panel { padding: 24px; }
.results-panel { padding: 24px; position: sticky; top: 16px; }

section + section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
h2, h3 { margin: 0 0 12px; }
.section-subtitle { margin: -4px 0 18px; color: var(--muted); }

.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

label { display: grid; gap: 6px; font-weight: 700; color: #344054; }
input, select {
  width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff; color: var(--text); font: inherit;
}
input:focus, select:focus { outline: 3px solid rgba(36,87,197,.18); border-color: var(--accent); }
.checkbox { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.checkbox input { width: auto; min-height: 0; }

.housing-fields { margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: #fbfcff; }
.hidden { display: none !important; }

.note, .disclaimer {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #eef4ff; color: #30415f;
}
.disclaimer { background: #f7f7f7; color: var(--muted); }
.small-note { font-size: .92rem; }
.privacy-banner { margin-bottom: 22px; padding: 14px 16px; border: 1px solid #b9ddc7; border-radius: 16px; background: var(--success-bg); color: #164b2d; }
.privacy-banner strong { display: block; margin-bottom: 3px; }
.validation-summary { margin-bottom: 22px; padding: 14px 16px; border: 1px solid #efb6b6; border-radius: 16px; background: var(--danger-bg); color: var(--danger); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
button, .secondary {
  border: 0; border-radius: 999px; padding: 11px 18px; background: var(--accent); color: #fff;
  font-weight: 800; cursor: pointer; font: inherit;
}
button:hover { background: var(--accent-dark); }
button.secondary, .secondary { border: 1px solid var(--border); background: #fff; color: var(--accent); }
button.small { padding: 8px 12px; font-size: .9rem; }

.result-hero { padding: 18px; border-radius: 18px; background: #eef4ff; }
.result-hero .label { color: var(--accent); font-weight: 800; opacity: 1; }
.result-hero.good { background: var(--success-bg); }
.result-hero.warn { background: var(--warning-bg); }
.result-hero.danger { background: var(--danger-bg); }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.metric { padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: #fbfcff; }
.metric span { display: block; color: var(--muted); font-size: .9rem; }
.metric strong { display: block; margin-top: 6px; font-size: 1.25rem; }
.risk-list { margin: 0; padding-left: 20px; }
.risk-list li { margin: 8px 0; }
.chart { display: grid; gap: 8px; }
.chart-row { display: grid; grid-template-columns: 70px 1fr 100px; gap: 8px; align-items: center; font-size: .9rem; }
.bar { height: 12px; border-radius: 999px; background: #dbe7ff; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.table-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2), th:nth-child(3), td:nth-child(3) { text-align: left; }
th { background: #eef4ff; }
.top-nav a, .back-link { box-shadow: none; }
a { color: var(--accent); }

/* Front page */
.home-page {
  background:
    radial-gradient(circle at 88% 6%, rgba(70, 148, 121, .11), transparent 24rem),
    var(--bg);
}
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0;
}
.brand { display: inline-flex; align-items: center; color: var(--text); font-weight: 800; text-decoration: none; }
.brand-logo-link { flex: 0 0 auto; border-radius: 10px; }
.brand-logo-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.brand-logo-crop { display: block; width: clamp(240px, 27vw, 318px); height: clamp(52px, 5.8vw, 68px); overflow: hidden; background: #fff; }
.brand-logo-crop picture { display: block; }
.brand-logo-crop img { display: block; width: 100%; height: auto; transform: translateY(-34.2%); }
.home-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.home-nav a { padding: 8px 10px; border-radius: 10px; color: #3d4b60; font-weight: 700; text-decoration: none; }
.home-nav a:hover, .home-nav a:focus-visible { color: var(--accent-dark); background: #eaf0fb; }
.home-main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding-bottom: 56px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: clamp(30px, 6vw, 76px); align-items: center; min-height: 540px; padding: clamp(44px, 7vw, 84px) 0; }
.home-hero .eyebrow, .section-heading .eyebrow { color: var(--accent); font-weight: 800; opacity: 1; }
.home-hero h1 { max-width: 760px; color: #17243a; font-size: clamp(2.65rem, 6.2vw, 5.2rem); letter-spacing: -.045em; }
.home-hero .subtitle { max-width: 690px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.58; opacity: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 19px; border: 1px solid var(--accent); border-radius: 999px; color: #fff; background: var(--accent); box-shadow: 0 10px 24px rgba(36, 87, 197, .22); font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
.button-link:hover, .button-link:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-link:hover { box-shadow: 0 13px 28px rgba(24, 63, 145, .26); transform: translateY(-1px); }
.button-link.secondary-link { color: var(--accent); background: #fff; border-color: #bccbe4; box-shadow: none; }
.button-link.secondary-link:hover, .button-link.secondary-link:focus-visible { color: var(--accent-dark); background: #f4f7fc; border-color: #9db1d2; }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.ontario-scene { position: relative; isolation: isolate; border-radius: 34px; box-shadow: 0 28px 70px rgba(27, 56, 94, .16); }
.ontario-scene::before { content: ""; position: absolute; z-index: -1; inset: 12% -8% -10%; border-radius: 42%; background: radial-gradient(circle, rgba(55, 126, 209, .24), rgba(70, 148, 121, .13) 42%, transparent 72%); filter: blur(34px); pointer-events: none; }
.ontario-scene picture { display: block; overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: inherit; background: #fff; }
.ontario-scene img { display: block; width: 100%; height: auto; }
.home-section { padding: 34px 0; }
.section-heading { max-width: 730px; }
.section-heading h2 { color: #17243a; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.03em; }
.section-heading p { margin: 12px 0 0; color: var(--muted); font-size: 1.06rem; line-height: 1.55; }
.path-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.path-card { grid-column: span 2; display: flex; flex-direction: column; min-height: 260px; padding: 24px; border: 1px solid var(--border); border-radius: 22px; color: var(--text); background: rgba(255,255,255,.91); box-shadow: 0 10px 26px rgba(18, 41, 76, .055); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.path-card:nth-child(4), .path-card:nth-child(5) { grid-column: span 3; }
.path-card:hover, .path-card:focus-visible { border-color: #98b2df; box-shadow: 0 16px 34px rgba(18, 41, 76, .1); transform: translateY(-3px); }
.path-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--accent-dark); background: #eaf1ff; }
.path-icon svg { width: 24px; height: 24px; }
.path-card:nth-child(2) .path-icon { color: #7b4b16; background: #fff1d9; }
.path-card:nth-child(3) .path-icon { color: #5b3b8d; background: #f0e9ff; }
.path-card:nth-child(4) .path-icon { color: #25644a; background: #e5f5ec; }
.path-card:nth-child(5) .path-icon { color: #8a3f46; background: #ffeaec; }
.path-card h3 { margin: 20px 0 8px; font-size: 1.25rem; }
.path-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.path-link { margin-top: auto; padding-top: 22px; color: var(--accent); font-weight: 800; }
.privacy-home { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 48px; padding: clamp(24px, 4vw, 38px); border: 1px solid #acd3bb; border-radius: 24px; background: linear-gradient(135deg, #e9f7ee, #f6fbf8); }
.privacy-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: var(--success); }
.privacy-icon svg { width: 26px; height: 26px; }
.privacy-home h2 { margin: 0 0 7px; color: #164b2d; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.privacy-home p { margin: 0; max-width: 850px; color: #356249; line-height: 1.55; }
.home-footer { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 24px 0 34px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; line-height: 1.5; }
.home-footer p { margin: 0; }
.home-footer .copyright { margin-top: 12px; }
.site-footer { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 24px 0 34px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; line-height: 1.5; }
.site-footer p { margin: 0; }
.home-footer a, .site-footer a { color: var(--accent-dark); font-weight: 400; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-separator { margin: 0 9px; color: #9aa7b8; }

/* About page */
.about-layout { width: min(980px, calc(100% - 36px)); margin: 24px auto 64px; }
.about-story { padding: clamp(26px, 5vw, 52px); }
.about-story p { margin: 0; color: #344054; font-size: clamp(1.02rem, 1.7vw, 1.13rem); line-height: 1.72; }
.about-story p + p { margin-top: 22px; }
.about-cta { margin-top: 24px; padding: clamp(26px, 5vw, 44px); border: 1px solid #b9ccef; border-radius: 22px; background: linear-gradient(135deg, #eef4ff, #f7fbff); text-align: center; }
.about-cta h2 { color: #17243a; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.about-cta p { margin: 0 auto; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.about-cta .button-link { margin-top: 22px; }

@media (max-width: 520px) { .about-layout { width: min(100% - 24px, 980px); } }

/* Terms page */
.terms-layout { width: min(980px, calc(100% - 36px)); margin: 24px auto 64px; }
.terms-card { padding: clamp(26px, 5vw, 52px); }
.terms-card section + section { margin-top: 30px; padding-top: 28px; }
.terms-card h2 { color: #17243a; font-size: clamp(1.25rem, 2.5vw, 1.65rem); line-height: 1.3; }
.terms-card p { margin: 0; color: #344054; line-height: 1.7; }
.terms-card p + p { margin-top: 14px; }
.terms-card ul { margin: 14px 0 0; padding-left: 24px; color: #344054; }
.terms-card li { line-height: 1.7; }
.terms-card li + li { margin-top: 4px; }

@media (max-width: 520px) { .terms-layout { width: min(100% - 24px, 980px); } }

.button-link:focus-visible, .path-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .button-link, .path-card { transition: none; }
  .button-link:hover, .path-card:hover { transform: none; }
}

@media (max-width: 900px) { .home-header { align-items: flex-start; } .home-nav { max-width: 520px; } .home-hero { grid-template-columns: 1fr; min-height: 0; } .path-card, .path-card:nth-child(4), .path-card:nth-child(5) { grid-column: span 3; } }
@media (max-width: 650px) { .home-header { display: block; } .home-nav { justify-content: flex-start; margin-top: 14px; } .home-nav a { padding-inline: 8px; } .home-hero { padding-top: 36px; } .home-hero h1 { font-size: clamp(2.45rem, 13vw, 4rem); } .ontario-scene { border-radius: 26px; } .path-grid { grid-template-columns: 1fr; } .path-card, .path-card:nth-child(4), .path-card:nth-child(5) { grid-column: auto; min-height: 230px; } .privacy-home { grid-template-columns: 1fr; } }

/* Interactive calculator library */
.top-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.top-nav a, .back-link { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--accent); background: var(--panel); font-weight: 700; text-decoration: none; }
.top-nav a[aria-current="page"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.calculator-layout { width: min(1180px, calc(100% - 36px)); margin: 24px auto 64px; }
.calculator-intro, .calculator-card { padding: clamp(20px, 4vw, 34px); }
.calculator-intro { background: linear-gradient(135deg, #fff, #eef4ff); }
.calculator-intro h2, .calculator-intro p { max-width: 820px; }
.calculator-intro p:not(.guide-kicker) { color: var(--muted); line-height: 1.55; }
.calculator-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.calculator-jump a { display: inline-flex; padding: 9px 13px; border: 1px solid #b9ccef; border-radius: 999px; background: #fff; font-weight: 800; text-decoration: none; }
.calculator-card { margin-top: 24px; scroll-margin-top: 18px; }
.calculator-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.calculator-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.calculator-badge { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; color: var(--accent-dark); background: #eef4ff; font-size: .86rem; font-weight: 800; }
.beta-badge { display: inline-flex; vertical-align: middle; margin-left: 8px; padding: 4px 9px; border-radius: 999px; color: var(--accent-dark); background: #eef4ff; font-size: .45em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: 24px; align-items: start; margin-top: 22px; }
.calculator-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: #fbfcff; }
.calculator-results { display: grid; gap: 14px; }
.result-callout { padding: 20px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.result-callout span, .metric-row span { display: block; font-size: .9rem; }
.result-callout strong { display: block; margin-top: 7px; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; }
.metric-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric-row > div { min-height: 92px; padding: 15px; border: 1px solid var(--border); border-radius: 16px; background: #fbfcff; }
.metric-row span { color: var(--muted); }
.metric-row strong { display: block; margin-top: 7px; font-size: 1.2rem; }
.result-details { margin-top: 22px; }
.result-details summary { cursor: pointer; color: var(--accent-dark); font-weight: 800; }
.result-details[open] summary { margin-bottom: 12px; }
.compact-table table { min-width: 720px; }
.compact-table th, .compact-table td { font-size: .9rem; }
.source-note { margin: 18px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.source-note a { font-weight: 700; }
.retained-meter { height: 12px; overflow: hidden; border-radius: 999px; background: #dfe6ef; }
.retained-meter span { display: block; height: 100%; border-radius: inherit; background: var(--success); transition: width .2s ease; }
.meter-label { margin: -7px 0 0; color: var(--muted); font-size: .9rem; }
.status-chip { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: var(--warning); background: var(--warning-bg); font-size: .78rem; font-weight: 800; }
.status-chip.positive { color: var(--success); background: var(--success-bg); }
.calculator-disclaimer { margin-top: 24px; }

@media (max-width: 820px) { .calculator-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .calculator-layout { width: min(100% - 24px, 1180px); } .calculator-heading { display: block; } .calculator-badge { display: inline-flex; margin: 2px 0 14px; } .calculator-inputs, .metric-row { grid-template-columns: 1fr; } }

/* Contact page */
.contact-layout { width: min(1080px, calc(100% - 36px)); margin: 24px auto 64px; }
.contact-panel { display: grid; grid-template-columns: minmax(0, .72fr) minmax(420px, 1.28fr); gap: clamp(28px, 6vw, 64px); padding: clamp(24px, 5vw, 48px); }
.contact-copy h2 { color: #17243a; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.contact-copy p { color: var(--muted); line-height: 1.62; }
.contact-email { display: inline-flex; margin-top: 8px; font-weight: 800; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { gap: 7px; }
.contact-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-form textarea { width: 100%; min-height: 170px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: #fff; font: inherit; line-height: 1.5; resize: vertical; }
.contact-form textarea:focus { outline: 3px solid rgba(36,87,197,.18); border-color: var(--accent); }
.contact-submit { justify-self: start; min-height: 48px; padding: 11px 20px; box-shadow: 0 10px 24px rgba(36, 87, 197, .2); font-weight: 800; }
.contact-submit:hover { box-shadow: 0 13px 28px rgba(24, 63, 145, .24); transform: translateY(-1px); }
.contact-submit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--accent), 0 10px 24px rgba(36, 87, 197, .2); }
.contact-privacy { margin: 2px 0 0; padding: 13px 14px; border: 1px solid #b9ddc7; border-radius: 14px; color: #28583d; background: var(--success-bg); font-size: .9rem; line-height: 1.5; }
.contact-address { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { .contact-submit { transition: none; } .contact-submit:hover { transform: none; } }
@media (max-width: 780px) { .contact-panel { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-layout { width: min(100% - 24px, 1080px); } .contact-field-row { grid-template-columns: 1fr; } }

/* Shared guide library and article pages */
.guide-layout { width: min(1160px, calc(100% - 36px)); margin: 24px auto 64px; }
.guide-hero, .guide-article { padding: clamp(20px, 4vw, 36px); }
.guide-hero h2, .guide-article h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.guide-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; color: var(--text); background: #fbfcff; text-decoration: none; }
.guide-card:hover { border-color: #9bb7ed; background: #f2f6ff; transform: translateY(-1px); }
.guide-card h3, .guide-card p { margin: 0; }
.guide-card p { color: var(--muted); }
.guide-card .guide-link { margin-top: auto; color: var(--accent); font-weight: 800; }
.guide-kicker { margin: 0 0 8px; color: var(--accent); font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.guide-meta li { padding: 6px 10px; border-radius: 999px; color: #30415f; background: #eef4ff; font-size: .9rem; font-weight: 700; }
.guide-article { margin-top: 24px; }
.guide-article > section { scroll-margin-top: 16px; }
.guide-article h2 { margin-top: 0; }
.guide-article h3 { margin-top: 24px; color: var(--accent-dark); }
.guide-article h4 { margin: 18px 0 8px; }
.guide-article p, .guide-article li { line-height: 1.62; }
.guide-article li + li { margin-top: 7px; }
.guide-article table { min-width: 650px; }
.guide-article th, .guide-article td { text-align: left; white-space: normal; vertical-align: top; line-height: 1.45; }
.guide-article .table-wrap { margin: 14px 0 20px; }
.guide-callout { margin: 18px 0; padding: 16px 18px; border-left: 5px solid var(--accent); border-radius: 12px; color: #30415f; background: #eef4ff; }
.guide-callout.warning { border-left-color: #c46a00; background: var(--warning-bg); }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding: 0; list-style: none; }
.guide-toc a { display: inline-flex; padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-weight: 700; text-decoration: none; }
.source-list a { overflow-wrap: anywhere; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.guide-actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border: 1px solid var(--border); border-radius: 999px; font-weight: 800; text-decoration: none; }

@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } .guide-layout { width: min(100% - 24px, 1160px); } }
@media print { .top-nav, .guide-toc, .guide-actions { display: none !important; } .guide-layout { width: 100%; margin: 0; } .guide-article, .guide-hero { border: 0; box-shadow: none; } }

@media (max-width: 1050px) { .layout { grid-template-columns: 1fr; } .results-panel { position: static; } }
@media (max-width: 760px) { .app-header { display: block; } .header-card { margin-top: 18px; } .grid.two, .grid.three, .summary-grid { grid-template-columns: 1fr; } }
