/* Canton subsidy guides — v3 dealer design (templates/subventions-canton-v3.php).
   Loaded after dealer-base.css on those pages only. Every rule is scoped under
   .subsidy-page; new blocks use the sg- prefix. dealer-base resets lists, margins
   and link styling (Tailwind preflight port) — the guide prose and the footnotes
   need them back, see .sg-prose / .sg-notes. */

.subsidy-page{--abel-red:#df322d;--sg-ink:#1d2822;--sg-muted:#5f695b;--sg-line:#dfe2db;--sg-soft:#f3f4f1}
/* Sticky site header (~70px) + sticky compass (~54px) */
.subsidy-page [id]{scroll-margin-top:140px}
.subsidy-page .faq-intro{top:150px}

/* ---------- Hero ---------- */
.subsidy-page .sg-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);background:var(--sg-soft);min-height:600px}
.subsidy-page .sg-hero-copy{padding:44px 5vw 52px 7vw;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.subsidy-page .sg-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;color:#6a7266;margin-bottom:26px}
.subsidy-page .sg-breadcrumb a{text-decoration:underline;text-underline-offset:3px}
.subsidy-page .sg-breadcrumb a:hover{color:var(--primary)}
.subsidy-page .sg-hero .eyebrow{flex-wrap:nowrap;align-items:flex-start;margin-bottom:20px}
.subsidy-page .sg-hero .eyebrow .orange-line{margin-top:.72em}
.subsidy-page .sg-hero-flag{display:inline-block;width:18px;height:18px;border-radius:3px;object-fit:cover;vertical-align:-4px;margin-right:6px}
.subsidy-page .sg-hero h1{font-size:clamp(2.3rem,4.2vw,4rem);line-height:1.06;letter-spacing:-.045em;margin:0 0 22px;hyphens:auto;overflow-wrap:break-word;max-width:15ch}
.subsidy-page .sg-hero-promise{font-size:17px;line-height:1.65;color:#525b4f;max-width:520px;margin:0 0 30px}
.subsidy-page .sg-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:18px 30px}
.subsidy-page .sg-hero-trust{display:flex;flex-direction:column;gap:10px;margin-top:34px;padding-top:24px;border-top:1px solid var(--sg-line);width:100%;max-width:520px}
.subsidy-page .sg-hero-trust li{display:flex;align-items:center;gap:10px;font-size:14px;color:#3f473c}
.subsidy-page .sg-hero-trust svg{color:var(--abel-red)}
.subsidy-page .sg-hero-visual{position:relative;margin:0;overflow:hidden;background:#c9cec4}
.subsidy-page .sg-hero-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.subsidy-page .sg-hero-visual figcaption{position:absolute;left:24px;bottom:24px;display:flex;align-items:center;gap:8px;background:#fffffff0;color:#253223;font-size:12px;padding:10px 14px;border-radius:4px;max-width:calc(100% - 48px)}

/* ---------- Summary: key facts as hairline label | value rows (no card, no accent bar) ---------- */
.subsidy-page .sg-summary{padding-top:84px;padding-bottom:20px;display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:7%;align-items:start}
.subsidy-page .sg-summary-head .eyebrow{margin-bottom:16px}
.subsidy-page .sg-summary-head h2{font-size:clamp(1.9rem,2.7vw,2.6rem);font-weight:450;letter-spacing:-.045em;line-height:1.1;margin:0 0 16px}
.subsidy-page .sg-summary-head p:not(.eyebrow){font-size:14px;line-height:1.65;color:var(--sg-muted);max-width:320px}
.subsidy-page .sg-summary-head .sg-summary-lead{font-size:16px;color:var(--sg-ink);margin:0 0 12px}
.subsidy-page .sg-facts{border-top:1px solid var(--sg-ink);margin:0}
.subsidy-page .sg-facts>div{display:grid;grid-template-columns:minmax(120px,.32fr) minmax(0,1fr);gap:28px;padding:19px 0;border-bottom:1px solid var(--sg-line)}
.subsidy-page .sg-facts dt{font-size:14px;font-weight:550;color:var(--sg-ink);letter-spacing:-.1px}
.subsidy-page .sg-facts dd{margin:0;font-size:15px;line-height:1.62;color:#4f584c}
.subsidy-page .sg-facts .sv2-fn{color:var(--abel-red)}

/* ---------- Compass (sticky in-page nav) ---------- */
.subsidy-page .sg-compass{position:sticky;top:70px;z-index:20;display:flex;align-items:center;gap:6px;margin:40px auto 0;max-width:1440px;padding:8px 7%;background:#fffffff2;backdrop-filter:blur(10px);border-block:1px solid var(--sg-line);overflow-x:auto;scrollbar-width:none}
.subsidy-page .sg-compass::-webkit-scrollbar{display:none}
.subsidy-page .sg-compass-label{font-size:11px;letter-spacing:1.4px;color:var(--sg-muted);padding-right:14px;margin-right:4px;border-right:1px solid var(--sg-line);white-space:nowrap}
.subsidy-page .sg-compass a{white-space:nowrap;font-size:14px;padding:9px 13px;border-radius:999px;transition:background .2s,color .2s}
.subsidy-page .sg-compass a:hover,.subsidy-page .sg-compass a:focus-visible{background:#eef1e9;color:#9d3e1c}

/* ---------- Amount cards ---------- */
.subsidy-page .sg-amounts{padding-top:80px;padding-bottom:40px}
.subsidy-page .sg-amounts .sv2-fn{font-size:14px;color:var(--abel-red)}
.subsidy-page .sg-amount-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.subsidy-page .sg-amount{display:flex;flex-direction:column;gap:18px;background:var(--abel-red);color:#fff;border-radius:6px;padding:28px 28px 24px;min-height:220px;position:relative;overflow:hidden;transition:transform .2s}
.subsidy-page .sg-amount:hover{transform:translateY(-3px)}
.subsidy-page .sg-amount:after{content:'2026' / '';position:absolute;right:-12px;bottom:-26px;font-size:96px;font-weight:650;letter-spacing:-6px;color:#ffffff14;line-height:1;pointer-events:none}
.subsidy-page .sg-amount-caption{font-size:13px;line-height:1.5;color:#fff}
.subsidy-page .sg-amount strong{font-size:clamp(2.4rem,3.6vw,3.2rem);font-weight:500;letter-spacing:-.04em;line-height:1}
.subsidy-page .sg-amount strong small{font-size:15px;letter-spacing:0;font-weight:500;color:#fff}
.subsidy-page .sg-amount-link{margin-top:auto;display:flex;align-items:center;gap:8px;font-size:13px;color:#fff}

/* ---------- Measures ---------- */
.subsidy-page .sg-measures{padding-top:40px;padding-bottom:90px;display:flex;flex-direction:column}
.subsidy-page .sg-measure{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:7%;align-items:start;padding:64px 0;border-top:1px solid var(--sg-line)}
.subsidy-page .sg-measure--compact{grid-template-columns:minmax(0,1fr);padding:48px 0}
.subsidy-page .sg-measure--compact .sg-measure-copy{max-width:820px}
.subsidy-page .sg-measure h2{font-size:clamp(1.8rem,2.8vw,2.6rem);font-weight:450;letter-spacing:-.04em;line-height:1.12;margin:0 0 18px}
.subsidy-page .sg-no-aid{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:#6b4a12;background:#fbf1d8;border:1px solid #f0dcaa;border-radius:999px;padding:6px 12px;margin:0 0 18px}
.subsidy-page .sg-measure-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;margin-top:26px}
.subsidy-page .sg-more{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:#5f695b;text-decoration:underline;text-underline-offset:3px}
.subsidy-page .sg-more:hover{color:var(--primary)}
.subsidy-page .sg-measure-media{margin:0;position:sticky;top:150px}
.subsidy-page .sg-measure-media img{width:100%;height:auto;border-radius:6px;display:block;background:var(--sg-soft)}
.subsidy-page .sg-media-contain img{object-fit:contain;padding:22px;background:#f5f6f2}
.subsidy-page .sg-measure-media figcaption{font-size:12px;line-height:1.55;color:#6f776b;margin-top:10px}

/* Guide prose from the data files: restore what dealer-base resets */
.subsidy-page .sg-prose{font-size:16px;line-height:1.72;color:#4f584c}
.subsidy-page .sg-prose p{margin:0 0 14px}
.subsidy-page .sg-prose ul{list-style:disc;padding-left:22px;margin:0 0 16px}
.subsidy-page .sg-prose li{margin:0 0 8px}
.subsidy-page .sg-prose li::marker{color:var(--abel-red)}
.subsidy-page .sg-prose strong{color:var(--sg-ink);font-weight:600}
.subsidy-page .sg-prose a:not(.sv2-fn),.subsidy-page .sg-facts a:not(.sv2-fn),.subsidy-page .sg-order-warning a:not(.sv2-fn),.subsidy-page .dealer-faq [data-slot="accordion-content"] a{text-decoration:underline;text-underline-offset:3px;color:#9d3e1c}
.subsidy-page .sg-prose a:not(.sv2-fn):hover{color:var(--primary)}
.subsidy-page .sg-prose table{width:100%;border-collapse:collapse;font-size:14px;margin:0 0 18px}
.subsidy-page .sg-prose th,.subsidy-page .sg-prose td{border-bottom:1px solid var(--sg-line);padding:10px 8px;text-align:left;vertical-align:top}
.subsidy-page .sg-prose th{font-weight:600;color:var(--sg-ink)}
.subsidy-page .sv2-fn{text-decoration:none}

/* ---------- Order band (dealer-base .process-section) ---------- */
.subsidy-page .process-section .process-heading h2{font-size:clamp(2.4rem,4vw,4rem)}
.subsidy-page .sg-order-warning{display:flex;gap:12px;align-items:flex-start;margin-top:56px;padding:20px 22px;border:1px solid #526057;border-radius:6px;font-size:14px;line-height:1.65;color:#dfe6dc;max-width:900px}
.subsidy-page .sg-order-warning svg{color:#ffb38f;margin-top:1px}
.subsidy-page .sg-order-warning .sv2-fn{color:#ffb38f}

/* ---------- Canton band (full-width breathing image after the order band) ---------- */
.subsidy-page .sg-band{margin:0;background:var(--sg-soft)}
.subsidy-page .sg-band img{display:block;width:100%;height:auto;aspect-ratio:21/8;object-fit:cover;object-position:center 60%}
.subsidy-page .sg-band figcaption{font-size:12px;color:#6f776b;padding-top:10px;padding-bottom:10px}

/* ---------- Stacking ---------- */
.subsidy-page .sg-stack{padding-top:100px;padding-bottom:100px}
.subsidy-page .sg-stack-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--sg-line);border-left:1px solid var(--sg-line)}
.subsidy-page .sg-stack-grid article{padding:30px 32px 32px;border-right:1px solid var(--sg-line);border-bottom:1px solid var(--sg-line)}
.subsidy-page .sg-stack-grid article>span{font-size:11px;color:var(--abel-red);letter-spacing:1px}
.subsidy-page .sg-stack-grid h3{font-size:20px;font-weight:500;letter-spacing:-.4px;margin:18px 0 10px}
.subsidy-page .sg-stack-grid p{font-size:14px;line-height:1.7;color:#5f695b}

/* ---------- Commitments link, canton strip current, notes ---------- */
.subsidy-page .sg-commit-link{margin-top:34px}
.subsidy-page .sg-local{display:flex;gap:10px;align-items:flex-start;max-width:760px;margin:40px 0 0;font-size:16px;line-height:1.65;color:var(--sg-ink)}
.subsidy-page .sg-local svg{flex:none;margin-top:4px;color:var(--abel-red)}
.subsidy-page .canton-strip-current{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--sg-ink);border-radius:999px;padding:8px 16px 8px 8px;background:var(--sg-ink);color:#fff;font-size:14px;font-weight:500}
.subsidy-page .sg-notes{padding-top:70px;padding-bottom:90px;font-size:13px;line-height:1.7;color:#5f695b}
.subsidy-page .sg-notes h2{font-size:18px;font-weight:550;color:var(--sg-ink);margin:0 0 16px}
.subsidy-page .sg-notes ol{list-style:decimal;padding-left:22px;margin:0 0 16px;max-width:1000px}
.subsidy-page .sg-notes li{margin:0 0 8px}
.subsidy-page .sg-notes p{margin:0 0 10px;max-width:1000px}
.subsidy-page .sg-notes a{text-decoration:underline;text-underline-offset:2px;color:#4a5546}
.subsidy-page .sg-notes a:hover{color:var(--primary)}

/* ---------- Responsive ---------- */
@media (max-width:1050px){
  .subsidy-page .sg-hero-copy{padding-left:5vw}
  .subsidy-page .sg-compass{padding-inline:5%}
  .subsidy-page .sg-amount-grid{grid-template-columns:1fr}
  .subsidy-page .sg-amount{min-height:0}
}
@media (max-width:899px){
  .subsidy-page .sg-hero{grid-template-columns:1fr;min-height:0}
  .subsidy-page .sg-hero-copy{padding:30px 5% 40px}
  .subsidy-page .sg-hero-visual{aspect-ratio:4/3}
  .subsidy-page .sg-measure{grid-template-columns:1fr;gap:28px;padding:48px 0}
  .subsidy-page .sg-measure-media{position:static;max-width:560px}
  .subsidy-page .sg-stack-grid{grid-template-columns:1fr}
  .subsidy-page .faq-intro{top:auto}
  .subsidy-page .sg-summary{grid-template-columns:1fr;gap:28px}
}
@media (max-width:720px){
  .subsidy-page .sg-hero h1{font-size:clamp(2rem,8.4vw,2.7rem);max-width:none}
  .subsidy-page .sg-hero-promise{font-size:16px}
  .subsidy-page .sg-summary{padding-top:52px}
  .subsidy-page .sg-facts>div{grid-template-columns:1fr;gap:4px;padding:15px 0}
  .subsidy-page .sg-compass{margin-top:28px}
  .subsidy-page .sg-compass-label{display:none}
  .subsidy-page .sg-amounts{padding-top:56px}
  .subsidy-page .sg-stack{padding-top:70px;padding-bottom:70px}
  .subsidy-page .sg-stack-grid{border-left:0}
  .subsidy-page .sg-stack-grid article{padding-left:0;padding-right:0;border-right:0}
  .subsidy-page .sg-order-warning{margin-top:40px}
  .subsidy-page .sg-band img{aspect-ratio:16/9}
}
@media (prefers-reduced-motion:reduce){
  .subsidy-page .sg-amount{transition:none}
  .subsidy-page .sg-amount:hover{transform:none}
}
