/* QDD Research — rapports */
[hidden] { display: none !important; }
:root {
  color-scheme: light;
  --paper: #f3f5f6;
  --surface: #ffffff;
  --ink: #15212b;
  --ink-2: #4a5866;
  --ink-3: #64707c;
  --rule: #e0e4e8;
  --rule-2: #c5ccd3;
  --brand: #0f5a50;
  --brand-ink: #ffffff;
  --pos: #0a7a3f;
  --neg: #c0392b;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --g-ap: #0b4f46; --g-a: #17766a; --g-b: #5aa497; --g-c: #a9d3cb; --g-d: #e3eeec;
  --g-ap-ink: #fff; --g-a-ink: #fff; --g-b-ink: #0e2420; --g-c-ink: #0e2420; --g-d-ink: #3d4b48;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f1418; --surface: #161c21; --ink: #e6ebef; --ink-2: #aab5bf; --ink-3: #8b97a2;
    --rule: #263039; --rule-2: #36424d; --brand: #5cc2b0; --brand-ink: #0b1714;
    --pos: #4cc27f; --neg: #ef7b6e;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --g-d: #2a3633; --g-d-ink: #c9d6d3;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1418; --surface: #161c21; --ink: #e6ebef; --ink-2: #aab5bf; --ink-3: #8b97a2;
  --rule: #263039; --rule-2: #36424d; --brand: #5cc2b0; --brand-ink: #0b1714;
  --pos: #4cc27f; --neg: #ef7b6e;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --g-d: #2a3633; --g-d-ink: #c9d6d3;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 56px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.005em; }
h2 small, h3 small { font: 400 0.875rem/1 var(--sans); color: var(--ink-3); margin-left: 8px; letter-spacing: 0; }
h3 { font-size: 1rem; margin: 22px 0 8px; }
small { font-size: 0.8em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); padding: 7px 14px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.demo-banner { background: #fff1c7; color: #4a3a00; text-align: center; padding: 6px 16px; font-size: 0.875rem; }

/* En-tête du site */
.site { background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-row { display: flex; align-items: center; gap: 24px; min-height: 56px; flex-wrap: wrap; }
.brand { font: 600 1.25rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { font-weight: 500; color: var(--brand); margin-left: 2px; }
.crumbs { display: flex; gap: 8px; color: var(--ink-3); font-size: 0.875rem; flex: 1; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover, .crumbs a[aria-current] { color: var(--ink); text-decoration: underline; }
.site-actions { display: flex; gap: 16px; align-items: center; font-size: 0.875rem; }

/* Recherche */
.search { position: relative; flex: 0 1 300px; min-width: 200px; }
.search input { width: 100%; box-sizing: border-box; height: 36px; padding: 0 30px 0 32px; border: 1px solid var(--rule-2); border-radius: 6px; background: var(--paper); color: var(--ink); font: 400 0.875rem var(--sans); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.search input::-webkit-search-cancel-button { display: none; }
.search-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-key { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 500 0.75rem var(--sans); color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 4px; padding: 0 5px; line-height: 1.35; pointer-events: none; }
.search input:focus ~ .search-key, .search input:not(:placeholder-shown) ~ .search-key { display: none; }
.search-list { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0; min-width: 440px; max-height: 420px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 10px 30px rgba(15, 30, 40, 0.14); }
.search-list a { display: grid; grid-template-columns: 4.6em 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 5px; color: var(--ink); text-decoration: none; font-size: 0.875rem; }
.search-list [aria-selected="true"] a { background: var(--paper); }
.search-list mark { background: none; color: var(--brand); font-weight: 600; }
.s-tk { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-nm { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-rg { font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--ink-3); }
.search-list .chip.sm { font-size: 0.75rem; height: 1.6em; }
.search-empty { padding: 10px 12px; color: var(--ink-3); font-size: 0.875rem; }

/* Identité et cote */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; padding-top: 26px; padding-bottom: 18px; align-items: end; }
.ticker-line { margin: 0 0 6px; color: var(--ink-2); font-size: 0.9375rem; }
.ticker-line strong { color: var(--ink); font-weight: 600; }
h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.05; letter-spacing: -0.02em; }
.h1-tk { font: 500 0.42em/1 var(--sans); color: var(--ink-3); letter-spacing: 0.02em; vertical-align: 0.35em; margin-left: 6px; white-space: nowrap; }
.classif { margin: 8px 0 0; color: var(--ink-2); font-size: 0.875rem; }
.classif .sep { display: inline-block; width: 1px; height: 0.9em; background: var(--rule-2); margin: 0 10px; vertical-align: -1px; }
.quote { display: flex; gap: 20px; align-items: stretch; }
.last { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.last .lbl { font-size: 0.8125rem; color: var(--ink-3); }
.last .px { font: 600 2rem/1.1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.last .px small { font-size: 0.875rem; font-weight: 500; color: var(--ink-3); }
.last .ytd { font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.live { min-width: 240px; min-height: 64px; }
.last-close { margin: 0; font-size: 0.75rem; color: var(--ink-3); text-align: right; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.quote { position: relative; }
.live-lbl { font-size: 0.8125rem; color: var(--ink-3); }
.live.is-live .live-lbl { display: none; }
.live .tradingview-widget-container { min-height: 60px; }

/* Note quantitative : l'élément signature */
.score { display: grid; grid-template-columns: minmax(250px, 300px) 1fr; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; padding: 0; }
.grade-main { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--g); color: var(--gi); }
.grade-glyph { font: 600 4rem/0.8 var(--serif); letter-spacing: -0.04em; min-width: 1.1em; }
.grade-txt { display: flex; flex-direction: column; gap: 6px; }
.grade-name { font-size: 0.9375rem; }
.grade-name strong { font-weight: 600; }
.grade-rank { font-size: 0.8125rem; opacity: 0.9; }
.grade-rank a, .sector-link { color: inherit; }
.sector-link { font-size: 0.8125rem; font-weight: 500; text-underline-offset: 2px; }
.g-ap { --g: var(--g-ap); --gi: var(--g-ap-ink); }
.g-a { --g: var(--g-a); --gi: var(--g-a-ink); }
.g-b { --g: var(--g-b); --gi: var(--g-b-ink); }
.g-c { --g: var(--g-c); --gi: var(--g-c-ink); }
.g-d { --g: var(--g-d); --gi: var(--g-d-ink); }
.g-na { --g: transparent; --gi: var(--ink-3); }
.factors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.factor { padding: 10px 16px 10px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; gap: 6px 8px; border-left: 1px solid var(--rule); }
.f-name { font-size: 0.875rem; color: var(--ink-2); align-self: center; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4em; height: 1.75em; padding: 0 6px; border-radius: 5px; background: var(--g); color: var(--gi); font-weight: 600; font-size: 0.9375rem; }
.factor .chip { font-size: 1.25rem; min-width: 2.3em; height: 1.7em; border-radius: 6px; }
.f-name { font-size: 0.9375rem !important; }
.chip.g-na { box-shadow: inset 0 0 0 1px var(--rule-2); }
.chip.sm { font-size: 0.8125rem; min-width: 2.2em; }
.f-rank { grid-column: 1 / -1; font-variant-numeric: tabular-nums; font-size: 0.875rem; font-weight: 500; }
.f-rank span { color: var(--ink-3); font-weight: 400; }
.f-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--rule); position: relative; overflow: hidden; }
.f-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--g-a); border-radius: 2px; }

.under-score { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-top: 10px; }
.meter { margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.consensus { margin: 0 0 0 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; font-size: 0.875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.consensus strong { color: var(--ink); font-weight: 600; }
.c-lbl { color: var(--ink-3); }

/* Navigation de sections */
.toc { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); margin-top: 16px; }
.toc .wrap { display: flex; align-items: center; gap: 12px; }
.toc-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.toc-links::-webkit-scrollbar { display: none; }
.pdf-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--brand); background: transparent; color: var(--brand); font: 500 0.875rem var(--sans); padding: 6px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.pdf-btn:hover { background: var(--brand); color: var(--brand-ink); }
.toc a { padding: 11px 10px 9px; font-size: 0.875rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--ink); border-bottom-color: var(--brand); }

/* Sections */
.sec { padding-top: 32px; }
.sec > h2 { margin-bottom: 12px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.lede { margin: -8px 0 16px; color: var(--ink-2); }
.note { color: var(--ink-3); font-size: 0.8125rem; margin: 8px 0 0; }
.top-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(250px, 1fr); gap: 28px; align-items: start; }
.top-main > h2, .top-side > h2 { margin-bottom: 12px; }
.top-side > h2 { font-size: 1.2rem; padding-top: 6px; }
.top-side .kv > div { padding: 6px 0; }
.about-h { font: 600 0.875rem var(--sans); color: var(--ink); margin: 18px 0 6px; }
.top-side .about p { font-size: 0.8125rem; }
.about p { margin: 0; max-width: 72ch; font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }
.about .clamp:not(.open) { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.about .more { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--brand); font: 500 0.875rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.kv { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.kv.single { grid-template-columns: 1fr; }
.kv dt { color: var(--ink-2); font-size: 0.875rem; }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; white-space: nowrap; }
.kv dd small { font-weight: 400; margin-left: 4px; }
.street { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); max-width: 72ch; }
.street h3 { margin-top: 0; }
.street p { margin: 6px 0; }
.street-top strong { font-weight: 600; }
.dist { display: flex; gap: 2px; height: 8px; margin: 12px 0 6px; }
.dist span { border-radius: 2px; min-width: 2px; }
.d-buy { background: var(--g-a); }
.d-hold { background: var(--rule-2); }
.d-sell { background: var(--neg); }
.dist-lbl { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.returns { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.returns li { display: flex; flex-direction: column; align-items: flex-end; }
.returns span { font-size: 0.75rem; color: var(--ink-3); }
.returns strong { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Graphiques */
.chart { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px 8px; }
.qc { --qc-grid: var(--rule); --qc-base: var(--rule-2); --qc-axis: var(--ink-3); --qc-ref: var(--ink-2); --qc-ink2: var(--ink-2);
      --qc-cross: var(--ink-3); --qc-surface: var(--surface); --qc-tag: var(--ink); --qc-tag-ink: var(--surface);
      --qc-font: 500 11.5px "IBM Plex Sans", system-ui, sans-serif; }
.qc-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.qc-ranges, .qc-zoom { display: flex; gap: 2px; background: var(--paper); border-radius: 7px; padding: 2px; }
.qc-range, .qc-zbtn { border: 0; background: transparent; color: var(--ink-2); font: 500 0.8125rem/1 var(--sans); padding: 7px 10px; border-radius: 5px; cursor: pointer; min-width: 36px; }
.qc-zbtn { font-size: 1rem; padding: 5px 10px; }
.qc-range:hover, .qc-zbtn:hover { color: var(--ink); background: var(--rule); }
.qc-range[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--rule-2); }
.qc-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 2px; font-size: 0.8125rem; min-height: 20px; }
.qc-li { display: inline-flex; align-items: center; gap: 6px; }
.qc-ln { color: var(--ink-2); }
.qc-lv { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 4ch; }
.qc-key { display: inline-block; width: 14px; height: 2.5px; border-radius: 2px; background: var(--k); }
.qc-key.thin { height: 2px; }
.qc-plot { position: relative; height: 300px; }
.chart.tall .qc-plot { height: 340px; }
.qc-plot canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.qc-plot canvas:focus-visible { outline-offset: -2px; }
.qc-tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--rule-2); border-radius: 8px; padding: 8px 10px; font-size: 0.8125rem; box-shadow: 0 6px 18px rgb(15 25 35 / 0.12); min-width: 150px; z-index: 2; }
.qc-tdate { color: var(--ink-2); margin-bottom: 4px; }
.qc-trow { display: flex; align-items: center; gap: 8px; line-height: 1.6; }
.qc-trow strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.qc-trow span:last-child { color: var(--ink-3); }
.qc-tref { border-top: 1px solid var(--rule); margin-top: 4px; padding-top: 3px; justify-content: space-between; }
.qc-tref span:first-child { color: var(--ink-3); }
.qc-hint { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 6px 12px; border-radius: 6px; font-size: 0.8125rem; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.qc-hint.show { opacity: 0.92; }

/* Onglets */
.tabs { display: flex; gap: 2px; box-shadow: inset 0 -1px 0 var(--rule); margin-bottom: 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { border: 0; background: none; font: 500 0.9375rem var(--sans); color: var(--ink-2); padding: 10px 14px 12px; cursor: pointer; white-space: nowrap; flex: none; }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }

/* Tableaux */
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; margin-top: 10px; }
.t { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.t th, .t td { padding: 6px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.t td { text-align: right; }
.t thead th { font-weight: 500; color: var(--ink-3); font-size: 0.8125rem; text-align: right; background: var(--surface); }
.t thead th:first-child, .t th[scope="row"] { text-align: left; }
.t th[scope="row"] { font-weight: 400; color: var(--ink); position: sticky; left: 0; background: var(--surface); }
.t tbody tr:last-child > * { border-bottom: 0; }
.t tr.grp th { text-align: center; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.t tr.sub th[scope="row"] { color: var(--ink-2); padding-left: 24px; }
.t tr.sub td { color: var(--ink-2); }
.t tr.sub td.pos { color: var(--pos); }
.t tr.sub td.neg { color: var(--neg); }
.t td.avg { background: color-mix(in srgb, var(--paper) 60%, transparent); font-weight: 500; }
.t tr.total > * { font-weight: 600; border-top: 1px solid var(--rule-2); }
.t tr.head th { font-weight: 600; color: var(--ink-2); padding-top: 18px; font-size: 0.8125rem; border-bottom-color: var(--rule-2); }
.t tr.actual > * { background: color-mix(in srgb, var(--paper) 55%, var(--surface)); }
.t tr.self > * { background: color-mix(in srgb, var(--g-c) 22%, var(--surface)); font-weight: 500; }
.t tfoot th, .t tfoot td { color: var(--ink-2); border-bottom: 0; border-top: 1px solid var(--rule-2); }
.t tfoot tr + tr > * { border-top: 0; }
.t .tk { font-weight: 600; display: inline-block; min-width: 4.5ch; }
.t .nm { color: var(--ink-2); }
.t.peers th[scope="row"] { white-space: normal; min-width: 12em; max-width: 20em; }
.t.peers th, .t.peers td { padding-left: 10px; padding-right: 10px; }
.t.compact th, .t.compact td { padding: 5px 12px; }
.fund-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.fund-grid h3 { margin-top: 14px; }
.fund-grid .tbl-wrap { margin-top: 0; }

/* Accès limité */
.gate { max-width: 560px; margin: 36px auto 0; background: var(--surface); border: 1px solid var(--rule-2); border-radius: 12px; padding: 28px 28px 24px; text-align: center; box-shadow: 0 18px 50px rgb(15 25 35 / 0.14); position: relative; z-index: 3; }
.gate h2 { font-size: 1.4rem; }
.gate p { color: var(--ink-2); margin: 10px 0 0; }
.gate-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px !important; }
.is-gated .score, .is-gated .consensus { filter: blur(7px); pointer-events: none; user-select: none; }
.is-gated .gated { max-height: 760px; overflow: hidden; filter: blur(5px); pointer-events: none; user-select: none; margin-top: -120px;
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }

.disclaimer { color: var(--ink-2); font-size: 0.8125rem; padding-bottom: 40px; }
.disclaimer h2 { font-size: 1.1rem; margin-bottom: 8px; }
.disclaimer p { margin: 0 0 10px; }
.site-foot { border-top: 1px solid var(--rule); background: var(--surface); font-size: 0.8125rem; }
.site-foot .wrap { display: flex; gap: 20px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; color: var(--ink-3); }

/* Index */
.idx h1 { margin-top: 36px; }
.idx .lede { margin-top: 10px; }
.sector-jump { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.875rem; }
.idx-t thead th:nth-child(2) { text-align: left; }
.idx-t td:first-child { text-align: left; color: var(--ink-3); width: 3.5em; }
.idx-t th a { text-decoration: none; color: var(--ink); }
.idx-t th a:hover .nm { text-decoration: underline; }
.idx-t td { text-align: center; }
.idx-t td:last-child { text-align: right; }

/* Mobile */
@media (max-width: 900px) {
  .score { grid-template-columns: 1fr; }
  .factors { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
  .factor:first-child { border-left: 0; }
  .top-grid, .fund-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .live { min-width: 0; }
  .pdf-btn { padding: 5px 10px; font-size: 0.8125rem; }
  .grade-main { padding: 16px 18px; }
  .grade-glyph { font-size: 4rem; }
  .factors { grid-template-columns: 1fr; }
  .factor { border-left: 0; border-top: 1px solid var(--rule); grid-template-columns: 1fr auto 6.5em; grid-template-rows: auto auto; align-items: center; padding: 7px 16px; gap: 4px 8px; }
  .factor .chip { grid-column: 2; grid-row: 1; }
  .f-rank { grid-column: 3; grid-row: 1; text-align: right; }
  .f-bar { grid-column: 1 / -1; grid-row: 2; }
  .kv { grid-template-columns: 1fr; }
  .qc-plot, .chart.tall .qc-plot { height: 280px; }
  .qc-zoom { display: none; }
  .chart { padding: 10px 8px 6px; }
  .live.is-live { min-height: 0; }
  .returns { gap: 16px; }
  .site-row { gap: 10px 16px; padding-top: 8px; padding-bottom: 8px; }
  .search { order: 3; flex: 1 1 100%; }
  .search-list { min-width: 0; }
  .search-key { display: none; }
  .search input { font-size: 16px; }
  .crumbs { order: 4; flex-basis: 100%; }
  h2 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Groupes de colonnes (Sales / EBITDA / EPS) */
.t.est .gs { border-left: 1px solid var(--rule-2); }
.t.est .alt { background: color-mix(in srgb, var(--paper) 70%, var(--surface)); }
.t.est tr.actual > .alt { background: color-mix(in srgb, var(--paper) 90%, var(--surface)); }

/* Bilan du dernier trimestre dans un tableau blanc */
.t.bs caption { text-align: left; font-weight: 600; font-size: 0.9375rem; padding: 12px 12px 6px; color: var(--ink); }
.t.bs th[scope="row"] { color: var(--ink-2); white-space: normal; }
.t.bs td { font-weight: 500; }

/* Liens vers les rapports des pairs */
.t.peers th a { text-decoration: none; color: inherit; }
.t.peers th a .tk { color: var(--brand); }
.t.peers th a:hover .nm { text-decoration: underline; }


/* Pages de compte (connexion, abonnement, mon compte) */
.acct-main { padding-top: 48px; padding-bottom: 64px; }
.acct-card { max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 28px 32px; }
.admin .acct-card { max-width: 1100px; }
.acct-card h1 { font-size: 1.75rem; margin: 0 0 14px; }
.acct-card h2 { font-size: 1.15rem; margin: 26px 0 10px; }
.acct-card p { margin: 0 0 14px; }
.acct-form { display: grid; gap: 8px; margin: 18px 0; }
.acct-form label { font-size: 0.875rem; color: var(--ink-2); font-weight: 500; }
.acct-form input[type=email], .acct-form input[type=text], .acct-form input[type=date] { height: 42px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: 6px; font: 400 1rem var(--sans); background: var(--surface); color: var(--ink); }
.acct-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.acct-form .btn, .acct-card form .btn { border: 0; cursor: pointer; font: 500 1rem var(--sans); padding: 11px 18px; justify-self: start; margin-top: 6px; }
.acct-form.inline { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.acct-form.inline label { display: grid; gap: 4px; }
.btn.ghost { cursor: pointer; }
.form-error { color: var(--neg); font-weight: 500; }
.form-ok { color: var(--pos); font-weight: 500; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }
.acct-logout { margin-top: 22px; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.plan { border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; background: var(--paper); margin: 6px 0 4px; }
.plan-price { font-size: 1.1rem; margin: 0 0 4px !important; }
.plan-price strong { font: 600 1.9rem var(--serif); color: var(--ink); margin-right: 4px; }
.plan-trial { color: var(--brand); font-weight: 500; }
.plan-list { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 0.9375rem; }
.plan-list li { margin: 4px 0; }

.chart-note { margin: 8px 2px 0; color: var(--ink-3); font-size: 0.8125rem; }
.print-only { display: none; }
/* Mise en page temporaire pendant l'impression (classe posée par report.js) */
.printing .chart { width: 740px; box-sizing: border-box; }
.printing #valuation-chart { width: 446px; }
.printing #valuation-chart .qc-plot { height: 300px; }
.printing #price-chart .qc-plot { height: 540px; }

/* ---------- Pages de texte ---------- */
.prose { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.prose h1 { font-size: 2.2rem; margin: 0 0 6px; }
.prose h2 { font-size: 1.35rem; margin: 30px 0 8px; }
.prose h3 { font-size: 1.1rem; margin: 22px 0 6px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.65; }
.prose img { max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.875rem; margin: 12px 0; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 6px 10px; text-align: left; }

.prose { max-width: 860px; }
.lede-lg { font-size: 1.125rem; color: var(--ink) !important; line-height: 1.6; }
.next-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.prose h4 { font: 600 0.9375rem var(--sans); color: var(--ink); margin: 18px 0 6px; }
.prose .tbl-wrap { margin: 0 0 6px; }
.prose table.t { margin: 0; font-size: 0.875rem; }
.prose table.t th, .prose table.t td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--rule); }
.prose table.t th[scope=row], .prose table.t thead th:first-child { text-align: left; white-space: nowrap; }
.prose table.t tr.excess > * { font-weight: 600; border-top: 1px solid var(--rule-2); }
.perf-block { margin-bottom: 8px; }
.prose h4 small { font-weight: 400; color: var(--ink-3); font-size: 0.8125rem; margin-left: 6px; }
.matrix { margin: 22px 0; }
.matrix caption { caption-side: top; text-align: left; font-weight: 600; color: var(--ink); padding: 0 0 8px; font-size: 0.9375rem; }
.t.heat { font-size: 0.8125rem !important; }
.t.heat thead th { vertical-align: bottom; text-align: center !important; font-size: 0.75rem; padding-left: 4px !important; padding-right: 4px !important; }
.t.heat td { padding-left: 4px !important; padding-right: 4px !important; }
.t.heat th[scope=row] { white-space: normal !important; min-width: 9em; }
.perf-block .tbl-wrap + .tbl-wrap { margin-top: 8px; }
.prose table.t.dense { font-size: 0.8125rem; }
.prose table.t.dense th, .prose table.t.dense td { padding: 7px 6px; }
.t.heat thead th:first-child { text-align: left !important; }
.t.heat td { text-align: center !important; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--g-a) calc(var(--h, 0) * 62%), var(--surface)); }
.t.heat td.avg, .t.heat th.avg { background: var(--paper); font-weight: 600; border-left: 1px solid var(--rule-2); }
.disclaimer-note { font-size: 0.8125rem; color: var(--ink-3) !important; border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 28px; }

/* ---------- Accueil ---------- */
.home-hero { background: var(--surface); border-bottom: 1px solid var(--rule); }
.home-hero .wrap { padding-top: 56px; padding-bottom: 44px; }
.eyebrow { margin: 0 0 14px; color: var(--brand); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.home-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; max-width: 18ch; margin: 0; letter-spacing: -0.015em; }
.hero-sub { max-width: 60ch; color: var(--ink-2); font-size: 1.0625rem; margin: 16px 0 28px; }
.hero-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.region-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--rule-2); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .15s, background .15s; }
.region-card:hover { border-color: var(--brand); background: var(--surface); }
.rc-name { font-weight: 600; }
.rc-n { color: var(--ink-3); font-size: 0.875rem; }
.picks .sec-head { align-items: center; }
.picks .sec-head .tabs { margin: 0; }
.perf-claim { margin: 0 0 12px; }
.perf-claim strong { color: var(--pos); }
.perf-claim .muted { font-size: 0.8125rem; margin-left: 4px; }
.picks-t td { text-align: center; }
.picks-t td:nth-child(2) { text-align: right; color: var(--ink-2); }
.picks-t th a { text-decoration: none; color: var(--ink); }
.picks-t th a:hover .nm { text-decoration: underline; }
.picks-t thead th:first-child { text-align: left; }
.grp-row th { text-align: left !important; padding-top: 16px !important; font-weight: 600 !important; color: var(--ink) !important; background: var(--surface); border-bottom: 1px solid var(--rule-2); }
.grp-row small { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.how-steps { margin: 0 0 14px; padding-left: 20px; max-width: 75ch; color: var(--ink-2); }
.how-steps li { margin: 8px 0; }
.how-steps strong { color: var(--ink); }

/* ---------- Lignes réservées aux abonnés ---------- */
tbody.locked tr.ph td { padding-top: 9px; padding-bottom: 9px; }
.ph-bar { display: block; height: 12px; width: var(--w, 60%); border-radius: 6px;
  background: linear-gradient(90deg, var(--rule) 0 22%, transparent 22% 26%, color-mix(in srgb, var(--g-a) 30%, var(--rule)) 26% 33%, transparent 33% 37%, var(--rule) 37% 100%);
  filter: blur(1.2px); opacity: 0.9; }
tbody.locked tr.lock-cta td { padding: 0; border-bottom: 1px solid var(--rule-2); }
.lock-box { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; padding: 14px 16px;
  background: color-mix(in srgb, var(--g-c) 20%, var(--surface)); color: var(--ink); font-weight: 500; }
.lock-box svg { color: var(--brand); flex: none; }
.lock-box .btn { padding: 6px 14px; font-size: 0.875rem; }
.lock-box a:not(.btn) { color: var(--brand); font-size: 0.875rem; }
.lock-box.wide { margin-top: 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--g-b) 50%, var(--rule)); }
.is-subscriber .lock-box .btn, .is-subscriber .lock-box a { display: none; }
.lock-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--g-c) 35%, var(--surface)); border-radius: 999px; padding: 1px 8px; }

/* ---------- Pages de région et de secteur ---------- */
.sector-grid { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sector-grid a { display: grid; gap: 8px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; color: var(--ink); height: 100%; box-sizing: border-box; transition: border-color .15s; }
.sector-grid a:hover { border-color: var(--brand); }
.sg-name { font: 600 1.125rem var(--serif); }
.sg-n { color: var(--ink-3); font-size: 0.8125rem; }
.sg-dist { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 1px; }
.sg-dist span { background: var(--g); }
.sg-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.8125rem; color: var(--ink-2); }
.sg-top .tk { font-weight: 600; }
.region-picks { margin: 8px 0 40px; }
.other-sectors { margin: 22px 0 48px; color: var(--ink-3); }
.other-sectors span { color: var(--ink-3); }
.idx .h1-tk { font: 500 1rem var(--sans); color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.idx-t .tk { min-width: 5ch; }

@media (max-width: 720px) {
  .hero-regions { grid-template-columns: 1fr; }
  .home-hero .wrap { padding-top: 36px; padding-bottom: 30px; }
  .picks .sec-head { display: block; }
  .picks .sec-head .tabs { margin-top: 8px; }
}

/* ---------- Accueil v2 ---------- */
.home-hero .wrap.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 36px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.hero-cta .btn { padding: 10px 18px; font-size: 0.9375rem; }
.home-hero h1 { max-width: 20ch; }
.hero-sub { margin: 14px 0 22px; }
.perf-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 20px 22px 16px; }
.perf-card h2 { font-size: 1.15rem; margin: 0; }
.perf-sub { margin: 2px 0 14px; color: var(--ink-3); font-size: 0.8125rem; }
.perf-row { padding: 10px 0 12px; border-top: 1px solid var(--rule); }
.perf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-weight: 600; font-size: 0.9375rem; }
.perf-head strong { font-size: 1.15rem; white-space: nowrap; }
.perf-head small { font-size: 0.75rem; font-weight: 500; color: var(--ink-3); }
.pb { display: grid; grid-template-columns: 7.5em 1fr 4.2em; align-items: center; gap: 8px; font-size: 0.8125rem; margin: 3px 0; }
.pb-l { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-bar { height: 10px; border-radius: 5px; background: var(--rule-2); width: calc(var(--v) * 100%); }
.pb-bar.pick { background: var(--brand); }
.pb-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.perf-foot { margin: 8px 0 0; font-size: 0.75rem; color: var(--ink-3); }
.home .picks { padding-top: 28px; }
.picks-t tbody.sec-group + tbody, .picks-t tbody + tbody.sec-group { border-top: 0; }
.picks-t .grp-row th { background: var(--paper) !important; padding: 9px 12px 8px !important; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2) !important; }
.picks-t tbody.sec-group:first-of-type .grp-row th { border-top: 0; }
.grp-name { font: 600 1rem var(--serif); color: var(--ink); }
.grp-w { float: right; font: 400 0.75rem var(--sans); color: var(--ink-3); margin-top: 3px; }
tbody.locked tr.lock-row td { padding: 0 !important; border-bottom: 1px solid var(--rule); }
.lock-box.compact { justify-content: flex-start; padding: 9px 14px; background: color-mix(in srgb, var(--g-c) 14%, var(--surface)); font-weight: 500; font-size: 0.8125rem; color: var(--ink-2); }
.browse-links { display: flex; flex-wrap: wrap; gap: 10px; }
.browse-links a { display: inline-flex; flex-direction: column; padding: 12px 16px; min-width: 200px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.browse-links a:hover { border-color: var(--brand); }
.browse-links span { font-weight: 400; font-size: 0.8125rem; color: var(--ink-3); }
@media (max-width: 900px) {
  .home-hero .wrap.hero-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .grp-w { float: none; display: block; margin-top: 2px; }
}

/* ---------- Accueil v3 ---------- */
.home-hero .wrap.hero-grid { padding-top: 26px; padding-bottom: 24px; gap: 36px; }
.home-hero .eyebrow { margin-bottom: 10px; }
.home-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 18ch; }
.hero-sub { font-size: 1.0625rem; color: var(--ink-2); margin: 12px 0 18px; max-width: 46ch; }
.hero-sub strong { color: var(--pos); font-weight: 700; }
.perf-card { padding: 16px 20px 12px; }
.perf-sub { margin-bottom: 6px; }
.perf-row { padding: 9px 0 8px; }
.perf-main { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.perf-label { font-weight: 600; font-size: 0.9375rem; }
.perf-ret { font: 600 1.7rem/1.1 var(--serif); color: var(--ink); white-space: nowrap; }
.perf-ret small { font: 400 0.75rem var(--sans); color: var(--ink-3); margin-left: 6px; }
.perf-vs { margin: 2px 0 0; font-size: 0.8125rem; color: var(--ink-3); text-align: right; }
.perf-vs .pos { font-weight: 600; }
.perf-foot { margin-top: 4px; }
.home .picks { padding-top: 18px; }
.home .picks .lede { margin: 0 0 10px; }
.picks-t thead th:not(:first-child), .picks-t td { text-align: center !important; }
.lock-box { box-sizing: border-box; min-height: calc(var(--rows, 1) * 39px); }
tbody.locked .lock-box { background-color: color-mix(in srgb, var(--g-c) 14%, var(--surface));
  background-image: repeating-linear-gradient(to bottom, transparent 0 38px, color-mix(in srgb, var(--g-b) 22%, transparent) 38px 39px); }

@media (max-width: 720px) {
  .home-hero .eyebrow, .perf-sub { display: none; }
  .home-hero .wrap.hero-grid { padding-top: 18px; padding-bottom: 16px; gap: 16px; }
  .home-hero h1 { font-size: 1.7rem; }
  .hero-sub { font-size: 0.9375rem; margin: 8px 0 12px; }
  .hero-cta .btn { padding: 8px 12px; font-size: 0.875rem; }
  .perf-card { padding: 12px 14px 8px; }
  .perf-card h2 { font-size: 1rem; }
  .perf-row { padding: 6px 0; }
  .perf-ret { font-size: 1.35rem; }
  .perf-foot { font-size: 0.6875rem; }
  .home .picks { padding-top: 12px; }
}

/* ======================================================================
   Impression / PDF (Lettre, 3 pages + 1 page par état financier)
   p.1 : en-tête, note, aperçu, valorisation historique
   p.2 : croissance et rentabilité, bilan trimestriel, estimations
   p.3 : pairs, analyse technique
   p.4-6 : résultats, bilan, flux de trésorerie (+ avertissement)
   ====================================================================== */
@media print {
  @page { size: letter; margin: 11mm 10mm 11mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff; }
  body { font-size: 11px; line-height: 1.45; color: #15212b; }
  .wrap { max-width: none; padding: 0; }

  /* Éléments propres à l'écran */
  .search, .site, .site-foot, .toc, .live, .qc-bar, .site-actions, .meter, .gate, .skip,
  .pdf-btn, .about .more, .tabs, .returns, .no-print, .qc-tip, .qc-hint, .qc-zoom { display: none !important; }
  .is-gated .gated { max-height: none; filter: none; mask-image: none; -webkit-mask-image: none; margin-top: 0; }
  .print-only { display: block; }
  .fs-panel[hidden] { display: block !important; }

  /* Bandeau de marque en haut de la page 1 */
  .print-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 0 0 6px; margin-bottom: 10px; border-bottom: 2px solid var(--brand); font-size: 9.5px; color: var(--ink-3); }
  .print-head .brand { font-size: 15px; }

  /* Titres */
  h1 { font-size: 24px; }
  .hero { padding: 0 0 8px; display: block; }
  .classif { font-size: 10.5px; margin-top: 2px; }
  .last-close { position: static; width: auto; height: auto; clip: auto; overflow: visible; margin: 4px 0 0; font-size: 10.5px; color: var(--ink-2); }
  .sec { padding-top: 14px; }
  .sec > h3 { font: 600 12.5px var(--serif); margin: 12px 0 6px; }
  .sec > h2, .sec-head h2, .fs-panel h3 { font-size: 15px; margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
  .sec-head { margin-bottom: 0; display: block; }
  h2::before, .fs-panel h3::before { content: ""; display: inline-block; width: 4px; height: 0.85em; margin-right: 7px; background: var(--brand); border-radius: 1px; vertical-align: -0.05em; }
  h2 small { font-size: 9.5px; }
  .fs-panel h3 { font-family: var(--serif); font-weight: 600; }

  /* Note quantitative */
  .score { border-radius: 8px; grid-template-columns: 210px 1fr; }
  .grade-main { padding: 8px 14px; gap: 12px; }
  .grade-glyph { font-size: 2.9rem; }
  .grade-name { font-size: 11.5px; }
  .grade-rank { font-size: 10px; }
  .grade-rank a { text-decoration: none; }
  .factors { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; }
  .factor { padding: 6px 10px; border-top: 0; border-left: 1px solid var(--rule); display: grid; }
  .factor .chip { font-size: 13px; }
  .f-name { font-size: 11px !important; }
  .f-rank { font-size: 10px; }
  .under-score { padding: 5px 0 0; justify-content: flex-end; }
  .consensus { font-size: 10.5px; }

  /* Aperçu : description plus petite pour libérer la page 1 */
  .top-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
  .top-side > h2 { font-size: 15px; padding-top: 0; }
  .about-h { font-size: 10.5px; margin: 8px 0 3px; }
  /* 14 lignes au plus pour que la page 1 ne déborde jamais */
  .about .clamp:not(.open), .about .clamp.open { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 9; overflow: hidden; }
  .about p { font-size: 9.5px; line-height: 1.45; max-width: none; text-align: left; }
  .kv > div { padding: 3px 0; }
  .kv { gap: 0 16px; }
  .kv dt, .kv dd { font-size: 10.5px; white-space: nowrap; }

  /* Graphiques : redessinés à la largeur de la page (voir report.js) */
  .chart { padding: 6px 8px 4px; border-radius: 8px; break-inside: avoid; page-break-inside: avoid; }
  #valuation-chart .qc-plot { height: 300px !important; }
  #price-chart .qc-plot { height: 540px !important; }
  .qc-plot canvas { width: 100% !important; height: 100% !important; }
  .chart-note { font-size: 9px; margin-top: 4px; }

  /* Tableaux */
  .tbl-wrap { overflow: visible; border-radius: 8px; }
  .t { font-size: 10px; }
  .t th, .t td { padding: 2.5px 8px; }
  .t thead th { font-size: 9.5px; background: #eef3f2; color: var(--ink-2); }
  .t tr.head th { padding-top: 6px; font-size: 10px; color: var(--brand); background: #f6f9f8; }
  .t tr.total > * { background: #f3f7f6; }
  .t th[scope="row"] { position: static; }
  .t.est .alt { background: #f3f5f6; }
  .t.bs caption { padding: 6px 8px 3px; font-size: 10.5px; }
  .fund-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
  tr, .score, .kv, .fund-grid > * { break-inside: avoid; page-break-inside: avoid; }
  h2, h3, .sec-head, caption { break-after: avoid; page-break-after: avoid; }

  /* Pagination */
  #estimates, #technical, #financials { break-before: page; page-break-before: always; }
  #growth, #peers { padding-top: 16px; }
  #financials > h2 { display: none; }
  .fs-panel + .fs-panel { break-before: page; page-break-before: always; }
  .fs-panel h3 small { font: 400 9.5px var(--sans); color: var(--ink-3); margin-left: 6px; }
  #financials { padding-top: 0; }
  .t.fin { font-size: 10.5px; }
  .t.fin th, .t.fin td { padding-top: 3.5px; padding-bottom: 3.5px; }
  .t.peers { font-size: 9.5px; }
  .t.peers th, .t.peers td { padding-left: 5px; padding-right: 5px; }
  .t.peers th[scope="row"] { white-space: nowrap; max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
  .disclaimer { padding: 16px 0 0; font-size: 9px; line-height: 1.4; color: var(--ink-2); break-before: avoid; break-inside: avoid; }
  .disclaimer h2 { font-size: 11px; margin-bottom: 4px; }
  .disclaimer p { margin: 0 0 5px; }
}
