/* geoStrat — analysis long-read /prive/analyse-2026/ (on top of night.css). One column: text and figures share one width. */
:root { --map-bg: #f3f5f8; --map-mid: #eceef1; --map-na: #d9dde3; --an-soft: color-mix(in srgb, var(--text) 78%, var(--bg));
  --an-w: 800px; --an-shadow: 0 1px 2px rgb(16 24 40 / .04), 0 4px 16px rgb(16 24 40 / .05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --map-bg: #1d2129; --map-mid: #2a2f38; --map-na: #3a3f48; --an-shadow: none; } }
:root[data-theme="dark"] { --map-bg: #1d2129; --map-mid: #2a2f38; --map-na: #3a3f48; --an-shadow: none; }

.an { max-width: calc(var(--an-w) + 40px); margin: 0 auto; padding: 0 20px 96px; min-width: 0; }
.an * { min-width: 0; }

/* hero */
.an-hero { padding: 56px 0 8px; }
.an-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin: 0 0 16px; }
.an-hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 22px; font-weight: 800; }
.an-lede { font-size: 19.5px; line-height: 1.6; color: var(--an-soft); margin: 0; }
.an-byline { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 22px 0 0; font-size: 14.5px; color: var(--muted); }
.an-byline b { color: var(--text); font-size: 15.5px; }
.an-seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 32px; background: var(--border);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.an-seat { background: var(--surface); padding: 14px 16px 12px; display: grid; gap: 2px; position: relative; }
.an-seat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.an-seat b { font-size: 30px; font-weight: 800; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; }
.an-seat span { font-size: 14px; font-weight: 700; }
.an-seat small { font-size: 12px; color: var(--muted); }

/* key findings: a numbered list */
.an-keys { margin-top: 40px; }
.an-keys h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.an-keygrid { display: grid; }
.an-key { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none; }
.an-key:hover b { color: var(--primary); }
.an-key .n { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
  font-weight: 800; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.an-key b { font-size: 17px; line-height: 1.35; }
.an-key span:last-child { font-size: 15.5px; line-height: 1.5; color: var(--an-soft); margin-top: 2px; }

/* sections */
.an-sec { display: grid; gap: 26px; padding-top: 72px; scroll-margin-top: 64px; }
.an-sh { display: grid; gap: 10px; }
.an-num { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.an-num::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.an-sh h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -.022em; margin: 0; }
.an-prose p { font-size: 17.5px; line-height: 1.72; margin: 0 0 16px; color: var(--an-soft); }
.an-prose p b { color: var(--text); }
.an-prose p:last-child { margin-bottom: 0; }

/* figures */
.an-fig { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px 28px 22px;
  display: grid; gap: 18px; box-shadow: var(--an-shadow); overflow: hidden; }
.an-fig figcaption { display: grid; gap: 6px; }
.an-fig figcaption h3 { font-size: 19px; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.an-fig figcaption p { font-size: 14px; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.4; }
.an-tag { justify-self: start; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent); padding: 4px 10px; border-radius: 999px; }
.an-read { font-size: 15.5px; line-height: 1.65; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--border); color: var(--an-soft); }
.an-read b { color: var(--text); }
.an-two { display: grid; gap: 26px; }
.an-two h4 { font-size: 14px; margin: 0 0 12px; color: var(--muted); font-weight: 700; }
.an-aside { padding: 22px 26px; border-radius: 18px; background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border)); font-size: 16px; line-height: 1.65; color: var(--an-soft); }
.an-aside b { color: var(--text); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; }
.dot.grey { background: #9aa3b0; } .dot.col { background: linear-gradient(90deg, #6B4FA0 50%, #FF5505 50%); margin-left: 10px; }
.sw { display: inline-block; width: 18px; height: 10px; border-radius: 3px; background: var(--text); vertical-align: -1px; margin-left: 8px; }
.sw.light { opacity: .25; margin-left: 0; }

.an-next { display: grid; gap: 14px; background: color-mix(in srgb, #ED1B2D 5%, var(--surface)); border-color: color-mix(in srgb, #ED1B2D 22%, var(--border)); }
.an-next h3 { font-size: 21px; line-height: 1.25; margin: 0; color: var(--text); letter-spacing: -.01em; }
.an-next p { margin: 0; }
.an-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.an-nums div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.an-nums b { font-size: 22px; font-weight: 800; color: #c0392b; font-variant-numeric: tabular-nums; }
.an-nums span { font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (max-width: 720px) { .an-nums { grid-template-columns: 1fr; } }

.an-nums3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.an-nums3 div { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; box-shadow: var(--an-shadow); }
.an-nums3 b { font-size: 30px; font-weight: 800; color: #1E295C; letter-spacing: -.01em; }
.an-nums3 span { font-size: 14.5px; line-height: 1.45; color: var(--an-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .an-nums3 b { color: #8fa3ff; } }
:root[data-theme="dark"] .an-nums3 b { color: #8fa3ff; }
@media (max-width: 720px) { .an-nums3 { grid-template-columns: 1fr; } }

/* details */
.an-more { border-top: 1px dashed var(--border); padding-top: 12px; }
.an-more summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: 14.5px; list-style: none; }
.an-more summary::-webkit-details-marker { display: none; }
.an-more summary::before { content: "＋ "; }
.an-more[open] summary::before { content: "− "; }
.an-more[open] summary { margin-bottom: 14px; }
.an-more > div + div { margin-top: 16px; }
.an-small { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 10px 0 0; }
.an-scroll { overflow-x: auto; }
.an-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.an-t th, .an-t td { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.an-t th { font-size: 12px; color: var(--muted); font-weight: 600; }
.an-t .num { text-align: right; font-variant-numeric: tabular-nums; }
.up { color: #1a8a4a; } .dn { color: #c0392b; }
.an-t small { font-size: 11.5px; }
.an-p { font-weight: 800; }

.an-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.an-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; box-shadow: var(--an-shadow); }
.an-stat b { display: block; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: 6px; letter-spacing: -.01em; }
.an-stat span { font-size: 14.5px; color: var(--an-soft); line-height: 1.5; }

/* charts */
.an-chart { width: 100%; height: auto; display: block; overflow: visible; }
.an-chart .gl { stroke: var(--border); stroke-width: 1; }
.an-chart .sep { stroke: var(--border); stroke-dasharray: 3 3; }
.an-chart .ax { fill: var(--muted); font-size: 11.5px; }
.an-chart .lb { font-size: 13px; font-weight: 700; }
.an-chart .rl { fill: var(--text); font-size: 13px; }
.an-chart .vl { fill: var(--muted); font-size: 12px; }
.an-chart .zebra { fill: color-mix(in srgb, var(--text) 2.5%, transparent); }
.an-hb { display: grid; gap: 16px; }
.an-hg { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: center; }
.an-hl { font-size: 14px; font-weight: 700; line-height: 1.3; }
.an-hl small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.35; }
.an-hrows { display: grid; gap: 5px; }
.an-hr { display: grid; grid-template-columns: 58px 1fr 70px; gap: 10px; align-items: center; font-size: 12.5px; }
.an-hn { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-hbar { position: relative; height: 14px; background: color-mix(in srgb, var(--text) 4.5%, transparent); border-radius: 4px; }
.an-hbar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.an-hbar em { position: absolute; top: -4px; bottom: -4px; width: 1.5px; background: var(--text); opacity: .4; }
.an-hv { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.an-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.an-leg i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.an-leg .grad { width: 150px; height: 10px; border-radius: 5px; }

/* 100 % stacked bar */
.an-stack { display: flex; height: 50px; border-radius: 10px; overflow: hidden; gap: 2px; }
.an-stack div { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; color: #fff; font-size: 12.5px; line-height: 1.15; white-space: nowrap; overflow: hidden; }
.an-stack b { font-size: 18px; }
.an-stacklab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.an-stacklab div { font-size: 13.5px; line-height: 1.5; color: var(--an-soft); padding-left: 10px; border-left: 4px solid var(--c); }
.an-stacklab b { color: var(--text); }

/* QS cards */
.an-qsgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.an-qcard { background: color-mix(in srgb, var(--text) 2.5%, var(--surface)); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: grid; gap: 8px; }
.an-qh { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 4px; }
.an-qh b { font-size: 15px; }
.an-qr { display: grid; grid-template-columns: 36px 1fr 92px; gap: 10px; align-items: center; font-size: 13px; }
.an-qb { position: relative; height: 18px; }
.an-qb i { position: absolute; left: 0; border-radius: 3px; }
.an-qb i:first-child { top: 0; height: 18px; }
.an-qb i:last-child { top: 5px; height: 8px; }
.an-qv { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.an-qv small { font-weight: 500; font-size: 11.5px; }
.an-lost, .an-keep { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.an-lost { background: color-mix(in srgb, #ED1B2D 13%, transparent); color: #c0392b; }
.an-keep { background: color-mix(in srgb, #FF5505 13%, transparent); color: #c4510f; }

/* maps: three views in one row */
.an-maprow { display: grid; gap: 8px; }
.an-maprow + .an-maprow { padding-top: 18px; border-top: 1px solid var(--border); }
.an-maplab { font-size: 15px; font-weight: 800; color: #6B4FA0; }
.an-maplab small { font-weight: 500; color: var(--muted); font-size: 13px; }
.an-maplab br { display: none; }
.an-maplab small::before { content: " · "; }
.an-mapwrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; align-items: end; }
.an-mapwrap figure { margin: 0; overflow: hidden; }
.an-mapwrap figcaption { position: static !important; background: none !important; font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 4px; padding: 0 !important; }
.an-mapwrap svg { width: 100%; height: auto; max-height: 240px; display: block; overflow: hidden; }
.an-mapwrap svg path { stroke: var(--surface); vector-effect: non-scaling-stroke; stroke-width: .5; }
.an-mapwrap svg path:hover { stroke: var(--text); stroke-width: 1.5; }
.an-map .an-leg { margin-top: 10px; }

.an-method { padding-bottom: 20px; }
.an-method ul { margin: 0; padding-left: 18px; line-height: 1.65; font-size: 15px; color: var(--an-soft); }
.an-method li { margin: 10px 0; }
.an-method li b { color: var(--text); }

@media (max-width: 720px) {
  .an { padding: 0 16px 64px; }
  .an-hero { padding-top: 28px; }
  .an-lede { font-size: 17.5px; }
  .an-seats { grid-template-columns: repeat(3, 1fr); }
  .an-fig { padding: 18px 16px 16px; border-radius: 14px; }
  .an-sec { padding-top: 52px; }
  .an-mapwrap { grid-template-columns: 1fr 1fr; } .an-mapwrap figure.mv-quebec { grid-column: 1 / -1; }
  .an-hg { grid-template-columns: 1fr; gap: 6px; } .an-hr { grid-template-columns: 50px 1fr 64px; }
  .an-stats, .an-qsgrid, .an-stacklab { grid-template-columns: 1fr; }
  .an-stack div { padding: 0 6px; font-size: 11px; } .an-stack b { font-size: 14px; }
}
@media (max-width: 720px) {
  #c-dumb, #c-right, #c-souv, #c-souvbar, #c-pcqreg, #c-rt-pq, #c-rt-pcq, #c-rt-plq { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #c-dumb .an-chart, #c-right .an-chart, #c-souv .an-chart, #c-souvbar .an-chart, #c-pcqreg .an-chart, #c-rt-pq .an-chart, #c-rt-pcq .an-chart, #c-rt-plq .an-chart { min-width: 600px; }
}
