/* Yass Financials — brand colours and type follow the original yassfinancials.ca design. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --navy: #0f3860;
  --navy-deep: #0b2a49;
  --ink: #26313c;
  --muted: #5a6773;
  --line: #d5dfe2;
  --bg: #e9eff0;
  --paper: #f3f7f5;
  --white: #fff;
  --green: #4e7a3e;
  --green-soft: #c5dcb8;
  --blue-soft: #9cc8ec;
  --neg: #b0413e;
  --radius: 10px;
  --shadow: 0 18px 40px -22px rgba(15, 56, 96, 0.35);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--green); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; }
h1 i, h2 i { color: var(--green); font-style: italic; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(233, 239, 240, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(15, 56, 96, 0.4); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.15rem; }
.brand img { height: 46px; width: auto; }
@media (max-width: 400px) { .brand img { height: 36px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-item > button {
  font: inherit; font-size: 0.92rem; color: var(--ink); text-decoration: none;
  padding: 8px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer;
}
.nav > a:hover, .nav-item > button:hover, .nav > a[aria-current="page"] { color: var(--navy); background: rgba(15, 56, 96, 0.06); }
.nav-item { position: relative; }
.nav-item > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: -8px; min-width: 260px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; display: none;
}
.dropdown a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--paper); color: var(--navy); }
/* Invisible bridge over the gap above the menu, so moving the mouse down from "Services" keeps it open. */
@media (min-width: 961px) { .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } }
.nav-item.open .dropdown { display: block; }
@media (hover: hover) and (min-width: 961px) { .nav-item:hover .dropdown { display: block; } }
.nav .btn { margin-left: 10px; }
.nav > a.btn-primary, .nav > a.btn-primary:hover { color: #fff; background: var(--navy); }
.nav > a.btn-primary:hover { background: var(--navy-deep); }
.nav-item > button.current { color: var(--navy); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 0.92rem;
    background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 20px 20px;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-open .nav { display: flex; }
  .nav > a, .nav-item > button { padding: 12px 4px; border-bottom: 1px solid var(--paper); width: 100%; text-align: left; border-radius: 0; }
  .nav-item > button { display: flex; justify-content: space-between; align-items: center; }
  .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
  .nav .btn { margin: 14px 0 0; text-align: center; border-radius: 6px; border-bottom: 0; }
}

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; text-align: center;
  padding: 12px 22px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--green-soft); color: var(--navy-deep); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Breadcrumbs */
.crumbs { font-size: 0.85rem; color: var(--muted); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }

/* Sections */
section { padding: 72px 0; }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.eyebrow.tag { color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); padding: 5px 10px; border-radius: 4px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.section-head { max-width: 700px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }

/* Hero */
.hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 85% 10%, rgba(156, 200, 236, 0.35), transparent 60%),
              radial-gradient(700px 400px at 0% 100%, rgba(197, 220, 184, 0.35), transparent 60%);
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-tagline { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.6em; }
.hero-media { position: relative; }
.hero-media > img { border-radius: 14px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-media .ledger { position: absolute; left: -48px; bottom: -64px; width: min(300px, 62%); font-size: 0.8rem; }
.hero-media .ledger-row, .hero-media .ledger-total { padding: 5px 0; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { margin-bottom: 40px; }
  .hero-media { margin-bottom: 0; }
  .hero-media .ledger { position: relative; left: auto; bottom: auto; width: auto; margin: -56px 16px 0; }
}

/* Ledger card (from the original site) */
.ledger { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 0.86rem; }
.ledger-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ledger-body { padding: 8px 16px 10px; }
.ledger-row, .ledger-total { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.ledger-row.neg span:last-child { color: var(--neg); }
.ledger-total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 10px; font-weight: 700; font-size: 0.98rem; }
.ledger-caption { padding: 0 16px 12px; font-size: 0.7rem; color: var(--muted); text-align: right; }
.js .ledger-row, .js .ledger-total { opacity: 0.15; transition: opacity 0.3s; }
.js .ledger-row.in, .js .ledger-total.in { opacity: 1; }
.ledger-cursor { display: inline-block; width: 7px; height: 1em; background: var(--navy); margin-left: 6px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Trust strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 88px; padding-top: 28px; border-top: 1px solid var(--line); }
.strip div { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.strip b { display: block; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; margin-top: 40px; } }
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .hero { padding: 32px 0 48px; }
  .page-hero { padding: 24px 0 48px; }
  .lead { font-size: 1.04rem; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .card { padding: 22px; }
  .form-card { padding: 22px 18px; }
  .cta-band { padding: 48px 0; }
  .cta-band .actions { width: 100%; }
  .section-head { margin-bottom: 26px; }
  .hero-media .ledger { margin: -40px 10px 0; }
}

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section-white .card { background: var(--paper); }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue-soft); color: inherit; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.icon { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: var(--paper); color: var(--navy); margin-bottom: 16px; }
.section-white .icon { background: var(--white); }
.num { font-size: 0.8rem; font-weight: 700; color: var(--green); letter-spacing: 0.08em; display: block; margin-bottom: 10px; }
.meta { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 8px; }

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
.split img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Lists */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 0.7em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234e7a3e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 0.9rem; display: grid; place-items: center;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: var(--line); }
.steps strong { display: block; color: var(--ink); }

/* Page intro (service pages) */
.page-hero { padding: 40px 0 64px; }
.page-hero .split img { aspect-ratio: 16 / 10; }
.answer { background: var(--white); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 0 0 1.4em; }
.answer p:last-child { margin: 0; }
.section-white .answer { background: var(--paper); }
.note { font-size: 0.88rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }

/* FAQ */
.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.section-white .faq { background: var(--paper); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--navy); }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--navy); color: #dbe6ee; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band .actions { margin: 0; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--navy); }

/* Partners */
.partner { display: flex; gap: 18px; align-items: flex-start; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.partner .role { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); margin-bottom: 6px; display: block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; grid-template-areas: "intro form" "next form"; column-gap: 48px; row-gap: 8px; align-items: start; }
.contact-intro { grid-area: intro; }
.contact-next { grid-area: next; }
.contact-grid .form-card { grid-area: form; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "next"; row-gap: 32px; } }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-list .icon { margin: 0; flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 16px; }
.field label, fieldset legend { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #b9c7cc; border-radius: 6px; padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 56, 96, 0.15); }
input[aria-invalid="true"] { border-color: var(--neg); }
textarea { min-height: 130px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.radios label, .consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 0.92rem; }
.radios input, .consent input { width: auto; margin-top: 5px; }
.field-error { color: var(--neg); font-size: 0.85rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#turnstile { margin: 6px 0 14px; min-height: 0; }
.status { margin: 14px 0 0; font-weight: 600; }
.status.ok { color: var(--green); }
.status.err { color: var(--neg); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }

/* Articles */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.3em; }
.article-meta { color: var(--muted); font-size: 0.9rem; }
.sources { font-size: 0.9rem; }
.disclaimer { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b8c8d6; font-size: 0.92rem; padding: 56px 0 0; }
.site-footer a { color: #dbe6ee; text-decoration: none; }
.site-footer a:hover { color: var(--green-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-name { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.footer-head { color: #fff; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 32px; padding: 20px; font-size: 0.82rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.footer-base .powered { margin-left: auto; display: inline-flex; align-items: center; }
.gf-credit { display: inline-flex; border-radius: 10px; }
.gf-logo { width: 150px; height: auto; }
@media (max-width: 760px) { .footer-base .powered { margin-left: 0; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ledger-cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* Phone action bar: Call and Book stay in reach on small screens. */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 20px -14px rgba(15, 56, 96, 0.4);
  }
  .mobile-bar .btn { padding: 12px 10px; }
  .mobile-bar .btn-ghost { background: #fff; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .nav-open .mobile-bar { display: none; }
}

/* Article hero image and resource topic groups */
.article-hero img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 8px; }
.topic + .topic { margin-top: 48px; }
.topic-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.topic-head h2 { margin: 0; font-size: 1.4rem; }
.topic-head a { font-weight: 600; font-size: 0.92rem; }

/* "How this differs" box on overlapping service pages */
.compare { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 1.2em 0; }
.section-white .compare { background: var(--paper); }
.compare strong { display: block; margin-bottom: 4px; color: var(--navy); }
.compare p { margin: 0; font-size: 0.95rem; }

/* Team and testimonials (shown only when data/business.json has entries) */
.person { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: start; }
.person img { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; }
.person .role { display: block; color: var(--green); font-weight: 600; font-size: 0.9rem; margin: -4px 0 10px; }
.person dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.92rem; margin: 0 0 12px; }
.person dt { font-weight: 600; color: var(--ink); }
.person dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } .person dl { grid-template-columns: 1fr; } .person dt { margin-top: 6px; } }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 16px; font-size: 1.02rem; }
.quote blockquote p::before { content: "“"; } .quote blockquote p::after { content: "”"; }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption span { display: block; font-size: 0.88rem; color: var(--muted); }

/* ---------- Owner's website report (/website-report/) ---------- */
.report-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.toc { columns: 2; column-gap: 32px; padding-left: 1.3em; }
.toc li { break-inside: avoid; }
@media (max-width: 560px) { .toc { columns: 1; } }
.verdict { background: var(--navy); color: #dbe6ee; border-radius: var(--radius); padding: 22px 26px; margin: 1.6em 0; }
.verdict strong { color: #fff; display: block; font-size: 1.05rem; margin-bottom: 6px; }
.verdict p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat { padding: 14px; } .stat .new { font-size: 1.45rem; } }
@media (max-width: 400px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.stat .old { font-size: 1.05rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .old::before { content: "Old "; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.stat .old::after { content: " →"; color: var(--muted); }
.stat .new { font-size: 1.8rem; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .label { flex-basis: 100%; font-size: 0.86rem; color: var(--ink); line-height: 1.4; margin-top: 4px; }
.legend { font-size: 0.85rem; color: var(--muted); margin-top: 14px; display: flex; gap: 16px; }
.legend .old { text-decoration: line-through; }
.legend .new { color: var(--green); font-weight: 700; }
h3.channel { display: flex; align-items: center; gap: 12px; margin-top: 2em; font-size: 1.2rem; }
h3.channel span { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 0.95rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.report-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.report-table th, .report-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.report-table thead th { background: var(--paper); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.report-table tr:last-child td { border-bottom: 0; }
.report-table th.group { background: var(--navy); color: #fff; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
.compare-table td:nth-child(2), .issues td:first-child { color: var(--muted); }
.compare-table td:nth-child(3), .issues td:last-child { color: var(--ink); font-weight: 500; }
.compare-table td:first-child { font-weight: 600; }
.scores { min-width: 420px; }
.scores td:nth-child(n+2), .scores th:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.scores td:nth-child(3) { color: var(--green); font-weight: 700; }
.scores tr.total td { font-weight: 800; background: var(--paper); font-size: 1rem; }
.serp-compare { display: grid; gap: 14px; margin: 1em 0 1.6em; }
.serp { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 3px; font-family: Arial, Helvetica, sans-serif; }
.serp-url { font-size: 0.82rem; color: #3c4043; }
.serp-title { font-size: 1.12rem; color: #1a0dab; }
.serp-desc { font-size: 0.88rem; color: #4d5156; }
.serp-desc.missing { font-style: italic; color: var(--neg); }
.serp-tag, .tag { justify-self: start; font-family: "Inter", sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; margin-bottom: 6px; }
.serp-tag.old, .tag.old { background: #f6e3e2; color: var(--neg); }
.serp-tag.new, .tag.new { background: #e3eedd; color: var(--green); }
.journey.old { border-top: 4px solid var(--neg); }
.journey.new { border-top: 4px solid var(--green); }
.journey.old .steps li::before { background: var(--muted); }
.shots { margin: 1.6em 0; }
.shots figure { margin: 0; }
.shots img { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.shots figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.shots figcaption .tag { margin: 0; }
@media print {
  .site-header, .site-footer, .mobile-bar, .crumbs, .actions, .skip { display: none !important; }
  body { background: #fff; padding: 0; font-size: 11pt; }
  section { padding: 18px 0; break-inside: auto; }
  .section-paper, .section-white { background: #fff; }
  .table-wrap { overflow: visible; border: 0; }
  .report-table { min-width: 0; font-size: 9.5pt; }
  .report-table tr, .stat, .card, figure { break-inside: avoid; }
  .verdict { background: #fff; color: var(--ink); border: 2px solid var(--navy); }
  .verdict strong { color: var(--navy); }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  a { color: inherit; text-decoration: none; }
}
