/**
 * CSS DÉDIÉ AUX PAGES FONDS & MAISONS
 *
 * Ce fichier est enqueué séparément de style.css pour les pages
 * single-fonds, single-maison, archive-fonds, archive-maison, et la
 * section fonds-highlight de la homepage.
 *
 * Utilise la spécificité HTML body pour outranker un éventuel reset agressif.
 */

/* ============================================================
   HOMEPAGE : GRILLE FONDS ACTIFS
   ============================================================ */
body .fonds-highlight-section {
  background: var(--bg-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 5rem 0;
}

body .fonds-highlight-section .section-lead {
  font-family: var(--serif-body);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 0 2.75rem;
  font-weight: 300;
}

body .fonds-highlight-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

body .fonds-card-home {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.75rem 1.85rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

body .fonds-card-home:hover {
  transform: translateY(-4px);
  border-color: var(--ocre);
  box-shadow: 0 16px 32px -16px rgba(26, 23, 20, 0.1);
}

body .fonds-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
}

body .fonds-card-house {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ocre-deep);
}

body .fonds-card-score {
  font-family: var(--serif-display);
  font-size: 1.4rem;
  color: var(--forest-deep);
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  white-space: nowrap;
  line-height: 1;
}

body .fonds-card-score .score-max {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 400;
  margin-left: 2px;
}

body .fonds-card-title {
  font-family: var(--serif-display);
  font-size: 1.35rem;
  line-height: 1.15;
  font-variation-settings: "opsz" 36, "SOFT" 40;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 400;
}

body .fonds-card-home:hover .fonds-card-title {
  color: var(--ocre-deep);
}

body .fonds-card-avis {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
  font-family: var(--serif-body);
  font-style: italic;
}

body .fonds-card-perfs {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid var(--rule-soft);
  margin-top: auto;
}

body .fonds-card-perf {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body .fonds-card-perf .perf-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

body .fonds-card-perf .perf-value {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

body .fonds-card-perf .perf-value.frais {
  color: var(--ink-soft);
}

body .fonds-card-perf .perf-up   { color: var(--forest); }
body .fonds-card-perf .perf-down { color: var(--ocre-deep); }

body .fonds-card-badge {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--forest-deep);
  background: var(--forest-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  width: fit-content;
}

@media (max-width: 900px) {
  body .fonds-highlight-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   SCORE STARS (composant)
   ============================================================ */
body .score-stars {
  display: inline-flex !important;
  gap: 2px;
  font-size: 1.1rem;
  line-height: 1;
  vertical-align: middle;
}
body .score-stars .star-full  { color: var(--ocre); }
body .score-stars .star-half  { color: var(--ocre); opacity: 0.5; }
body .score-stars .star-empty { color: var(--rule); }

/* ============================================================
   BREADCRUMB (commun aux pages fonds/maisons)
   ============================================================ */
body .breadcrumb {
  padding: 1.25rem 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
}
body .breadcrumb a { color: var(--ink-soft); }
body .breadcrumb a:hover { color: var(--ocre-deep); }
body .breadcrumb .sep { margin: 0 0.5rem; color: var(--ink-faint); }

/* ============================================================
   FICHE SINGLE FONDS
   ============================================================ */
body .fonds-single {
  padding-bottom: 4rem;
  position: relative;
  z-index: 2;
}

body .fonds-hero {
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-card);
}

body .fonds-hero-inner {
  display: grid !important;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

body .fonds-hero-text .eyebrow { margin-bottom: 1rem; }

body .fonds-title {
  font-family: var(--serif-display);
  font-size: clamp(2rem, 3.6vw, 3rem) !important;
  line-height: 1.05 !important;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  font-weight: 400;
  color: var(--ink);
}

body .fonds-maison {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
}
body .fonds-maison a { color: var(--forest-deep); font-weight: 500; }

body .fonds-avis-lead {
  font-family: var(--serif-body);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 2rem;
  font-weight: 300;
  max-width: 640px;
}

body .fonds-hero-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

body .fonds-meta-item {
  display: flex !important;
  flex-direction: column;
  gap: 0.15rem;
}
body .fonds-meta-item .label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
body .fonds-meta-item .value {
  font-family: var(--serif-display);
  font-size: 1rem;
  color: var(--ink);
  font-variation-settings: "opsz" 14;
}
body .fonds-meta-item .value.mono,
body .fonds-meta-item .mono {
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
body .fonds-meta-item.eligible .value { color: var(--forest); font-weight: 500; }

body .fonds-score-card {
  background: var(--forest-deep);
  color: var(--bg);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: sticky;
  top: 100px;
}
body .fonds-score-card .score-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}
body .fonds-score-card .score-value {
  font-family: var(--serif-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--ocre);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
body .fonds-score-card .score-max {
  font-size: 1rem;
  color: var(--bg);
  opacity: 0.6;
}
body .fonds-score-card .score-stars {
  font-size: 1.3rem;
  justify-content: center;
}
body .fonds-score-card .star-full  { color: var(--ocre); }
body .fonds-score-card .star-half  { color: var(--ocre); opacity: 0.5; }
body .fonds-score-card .star-empty { color: rgba(250, 247, 242, 0.25); }

body .fonds-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
}

body .fonds-section-title {
  font-family: var(--serif-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
  font-variation-settings: "opsz" 72, "SOFT" 50;
  margin: 0 0 2rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}
body .fonds-section-title em {
  color: var(--ocre-deep);
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100;
}

body .perfs-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  list-style: none;
  padding: 0;
  margin: 0;
}

body .perf-cell {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

body .perf-cell .perf-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}
body .perf-cell .perf-sub {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  font-style: italic;
  color: var(--ink-faint);
  margin-top: 2px;
  text-transform: none;
  letter-spacing: 0;
}
body .perf-cell .perf-number {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  line-height: 1;
}
body .perf-cell .perf-up   { color: var(--forest); }
body .perf-cell .perf-down { color: var(--ocre-deep); }
body .perf-cell .perf-flat { color: var(--ink-muted); }

body .perfs-date {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 1rem;
}

body .frais-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 700px;
}

body .frais-cell {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--forest);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
}
body .frais-cell.frais-warn { border-left-color: var(--ocre); }
body .frais-label {
  display: block !important;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}
body .frais-value {
  display: block !important;
  font-family: var(--serif-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
  margin-bottom: 0.5rem;
}
body .frais-note {
  display: block !important;
  font-family: var(--serif-body);
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.45;
}

body .points-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

body .points-title {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid;
}
body .points-forts .points-title     { color: var(--forest); border-color: var(--forest); }
body .points-vigilance .points-title { color: var(--ocre-deep); border-color: var(--ocre); }

body .points-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  display: flex !important;
  flex-direction: column;
  gap: 0.8rem;
}
body .points-col li {
  padding-left: 1.5rem;
  position: relative;
  font-family: var(--serif-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
body .points-forts li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--forest);
  font-weight: 600;
}
body .points-vigilance li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  color: var(--ocre-deep);
  font-size: 0.9rem;
}

body .fonds-analysis .fonds-content { max-width: var(--reading); margin: 0 auto; }

body .fonds-maison-card {
  background: var(--bg-warm);
  border-bottom: none;
}

body .maison-card-inline {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem 2.25rem;
  max-width: 900px;
}
body .maison-card-inline h3 {
  font-family: var(--serif-display);
  font-size: 1.55rem;
  margin: 0 0 0.75rem;
  font-variation-settings: "opsz" 36, "SOFT" 40;
  font-weight: 400;
  line-height: 1.15;
}
body .maison-card-inline h3 a { color: var(--ink); }
body .maison-card-inline h3 a:hover { color: var(--ocre-deep); }

body .maison-philo {
  font-family: var(--serif-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  font-weight: 300;
}

body .maison-facts {
  list-style: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 0 0 1.25rem;
  padding-top: 1rem !important;
  border-top: 1px solid var(--rule-soft);
}
body .maison-facts li {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
body .maison-facts strong {
  display: block !important;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

body .maison-link-external {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
}
body .maison-link-external:hover { color: var(--forest-deep); }

body .fonds-footer-disclaimer {
  padding: 2.5rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
}
body .fonds-footer-disclaimer p {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 900px;
  margin: 0 auto;
}
body .fonds-footer-disclaimer strong {
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  body .fonds-hero-inner { grid-template-columns: 1fr !important; gap: 2rem; }
  body .fonds-score-card { position: static; max-width: 300px; }
  body .perfs-grid { grid-template-columns: repeat(2, 1fr) !important; }
  body .frais-grid { grid-template-columns: 1fr !important; }
  body .points-grid { grid-template-columns: 1fr !important; gap: 2rem; }
}

/* ============================================================
   FICHE SINGLE MAISON
   ============================================================ */
body .maison-single {
  padding-bottom: 4rem;
  position: relative;
  z-index: 2;
}

body .maison-hero {
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-card);
}

body .maison-title {
  font-family: var(--serif-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
  line-height: 1.05 !important;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 1rem;
  font-weight: 400;
  color: var(--ink);
}

body .maison-philo-lead {
  font-family: var(--serif-body);
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 2rem;
  font-weight: 300;
  max-width: 720px;
}

body .maison-facts-grid {
  display: grid !important;
  grid-template-columns: repeat(4, auto);
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  justify-content: start;
  margin-bottom: 1.5rem;
}

body .maison-facts-grid .fact-cell {
  display: flex !important;
  flex-direction: column;
  gap: 0.2rem;
}

body .fact-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

body .fact-value {
  font-family: var(--serif-display);
  font-size: 1.2rem;
  color: var(--ink);
  font-variation-settings: "opsz" 36;
}

body .maison-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}

body .maison-content { max-width: var(--reading); margin: 0 auto; }

body .fonds-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

body .fonds-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.5rem 1.65rem;
  text-decoration: none;
  color: inherit;
  display: flex !important;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.3s var(--ease);
}
body .fonds-mini-card:hover {
  transform: translateY(-3px);
  border-color: var(--ocre);
  box-shadow: 0 12px 24px -12px rgba(26, 23, 20, 0.08);
}

body .fonds-mini-header {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
body .fonds-mini-card h3 {
  font-family: var(--serif-display);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 40;
  margin: 0;
  flex: 1;
  font-weight: 400;
}
body .fonds-mini-score {
  font-family: var(--serif-display);
  font-size: 1rem;
  color: var(--forest-deep);
  font-weight: 500;
  white-space: nowrap;
}
body .fonds-mini-avis {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
  font-family: var(--serif-body);
}
body .fonds-mini-footer {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
body .fonds-mini-footer strong {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-right: 3px;
}
body .fonds-mini-footer .perf-up   { color: var(--forest); }
body .fonds-mini-footer .perf-down { color: var(--ocre-deep); }

@media (max-width: 900px) {
  body .fonds-cards-grid { grid-template-columns: 1fr !important; }
  body .maison-facts-grid { grid-template-columns: 1fr 1fr !important; gap: 1.25rem; }
}

/* ============================================================
   ARCHIVE FONDS : TABLEAU COMPARATIF
   ============================================================ */
body .archive-header {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
body .archive-type {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ocre-deep);
  display: inline-block;
  margin-bottom: 1.25rem;
}
body .archive-title {
  font-family: var(--serif-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  font-weight: 400;
}
body .archive-title em {
  font-style: italic;
  color: var(--ocre-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
body .archive-desc {
  font-family: var(--serif-body);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 300;
}
body .archive-content { padding: 4rem 0; }

body .fonds-archive-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

/* TABLEAU ARCHIVE — force le display table */
body table.fonds-archive-table {
  display: table !important;
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.9rem;
  min-width: 900px;
}

body table.fonds-archive-table thead {
  display: table-header-group !important;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--rule);
}

body table.fonds-archive-table tbody {
  display: table-row-group !important;
}

body table.fonds-archive-table tr {
  display: table-row !important;
}

body table.fonds-archive-table th,
body table.fonds-archive-table td {
  display: table-cell !important;
  vertical-align: middle;
}

body table.fonds-archive-table th {
  padding: 0.9rem 0.75rem;
  text-align: right;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
}
body table.fonds-archive-table th.col-fund,
body table.fonds-archive-table th.col-house {
  text-align: left;
  padding-left: 1.5rem;
}

body table.fonds-archive-table tbody tr {
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.2s var(--ease);
}
body table.fonds-archive-table tbody tr:last-child { border-bottom: none; }
body table.fonds-archive-table tbody tr:hover { background: var(--bg-warm); }

body table.fonds-archive-table td {
  padding: 1rem 0.75rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  white-space: nowrap;
}
body table.fonds-archive-table td.col-fund,
body table.fonds-archive-table td.col-house {
  text-align: left;
  padding-left: 1.5rem;
}

body .fund-title-link {
  font-family: var(--serif-display);
  font-size: 1.05rem;
  color: var(--ink);
  font-variation-settings: "opsz" 14, "SOFT" 40;
  font-weight: 400;
  display: inline-block;
  line-height: 1.2;
}
body .fund-title-link:hover { color: var(--ocre-deep); }

body .badge-pea {
  display: inline-block !important;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--forest-deep);
  background: var(--forest-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

body table.fonds-archive-table .col-score {
  text-align: right;
  white-space: nowrap;
}
body table.fonds-archive-table .col-score strong {
  font-family: var(--serif-display);
  font-size: 1.05rem;
  color: var(--forest-deep);
  margin-right: 6px;
  font-variation-settings: "opsz" 14;
}
body table.fonds-archive-table .col-score .score-stars {
  font-size: 0.85rem;
  vertical-align: middle;
}
body table.fonds-archive-table .perf-up   { color: var(--forest); font-weight: 500; }
body table.fonds-archive-table .perf-down { color: var(--ocre-deep); font-weight: 500; }
body table.fonds-archive-table .muted     { color: var(--ink-faint); }

/* ============================================================
   ARCHIVE MAISONS : GRILLE
   ============================================================ */
body .maisons-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

body .maison-card-archive {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.75rem 1.85rem;
  text-decoration: none;
  color: inherit;
  display: flex !important;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.3s var(--ease);
}
body .maison-card-archive:hover {
  transform: translateY(-4px);
  border-color: var(--ocre);
  box-shadow: 0 16px 32px -16px rgba(26, 23, 20, 0.08);
}

body .maison-card-title {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 36, "SOFT" 40;
  font-weight: 400;
}
body .maison-card-archive:hover .maison-card-title { color: var(--ocre-deep); }

body .maison-card-sub {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ocre-deep);
  font-weight: 500;
  margin: 0;
}

body .maison-card-philo {
  font-family: var(--serif-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  flex: 1;
}

body .maison-card-footer {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
body .maison-card-footer strong { color: var(--ink); }

@media (max-width: 900px) {
  body .maisons-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   TABLE DES MATIÈRES (TOC)
   ============================================================ */
body .fonds-toc {
  padding: 1.75rem 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--rule);
}

body .fonds-toc-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

body .fonds-toc-label strong {
  color: var(--forest-deep);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--serif-display);
  font-size: 1rem;
  font-variation-settings: "opsz" 14, "SOFT" 30;
  margin-left: 0.3rem;
}

body .fonds-toc-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem 1.5rem;
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.88rem;
}

body .fonds-toc-list a {
  color: var(--ink-soft);
  padding: 0.35rem 0;
  display: block;
  border-bottom: 1px solid transparent;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

body .fonds-toc-list a:hover {
  color: var(--ocre-deep);
  border-bottom-color: var(--ocre);
}

@media (max-width: 900px) {
  body .fonds-toc-list { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 640px) {
  body .fonds-toc-list { grid-template-columns: 1fr !important; }
}

/* ============================================================
   FAQ VISIBLE (accordéon sémantique)
   ============================================================ */
body .fonds-faq {
  background: var(--bg-warm);
}

body .faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column;
  gap: 0.75rem;
}

body .faq-item {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.3s var(--ease);
}

body .faq-item[open] {
  border-color: var(--ocre);
  box-shadow: 0 8px 24px -12px rgba(26, 23, 20, 0.08);
}

body .faq-item summary {
  padding: 1.25rem 1.75rem;
  font-family: var(--serif-display);
  font-size: 1.12rem;
  font-variation-settings: "opsz" 14, "SOFT" 30;
  color: var(--ink);
  cursor: pointer;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  line-height: 1.35;
  list-style: none;
  font-weight: 500;
  letter-spacing: -0.01em;
}

body .faq-item summary::-webkit-details-marker { display: none; }

body .faq-item summary::after {
  content: '+';
  font-family: var(--serif-display);
  font-size: 1.8rem;
  color: var(--ocre);
  font-weight: 400;
  transition: transform 0.3s var(--ease);
  line-height: 1;
  flex-shrink: 0;
  font-variation-settings: "opsz" 72;
}

body .faq-item[open] summary::after {
  transform: rotate(45deg);
}

body .faq-item summary:hover {
  color: var(--ocre-deep);
}

body .faq-answer {
  padding: 0 1.75rem 1.5rem;
  font-family: var(--serif-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 400;
}

body .faq-answer p {
  margin-bottom: 0.75rem;
}

body .faq-answer p:last-child {
  margin-bottom: 0;
}

body .faq-answer strong {
  color: var(--ink);
  font-weight: 600;
}

body .faq-answer a {
  color: var(--ocre-deep);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

/* ============================================================
   SNAPSHOT MENSUEL (bloc injecté par la skill pea-reporting-fonds)
   ============================================================ */
body .pea-snapshot {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 2.5rem 2.25rem;
  margin: 2.5rem 0;
  display: flex !important;
  flex-direction: column;
  gap: 2.5rem;
}

/* ---- En-tête ---- */
body .pea-snapshot .snapshot-header {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

body .pea-snapshot .snapshot-header-meta {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

body .pea-snapshot .snapshot-eyebrow {
  color: var(--ocre-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
body .pea-snapshot .snapshot-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
}

body .pea-snapshot .snapshot-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

body .pea-snapshot .snapshot-title {
  font-family: var(--serif-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5rem;
  font-weight: 400;
}

body .pea-snapshot .snapshot-share {
  font-style: italic;
  color: var(--ink-muted);
  font-variation-settings: "opsz" 72, "SOFT" 80;
  font-size: 0.65em;
  margin-left: 0.3em;
}

body .pea-snapshot .snapshot-subtitle {
  font-family: var(--serif-body);
  font-size: 1rem;
  color: var(--ink-muted);
  margin: 0;
}
body .pea-snapshot .snapshot-subtitle strong {
  color: var(--iam-navy, #1e2b4a);
  font-weight: 500;
}

body .pea-snapshot .snapshot-mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---- KPI band (6 cellules) ---- */
body .pea-snapshot .snapshot-kpi {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  background: var(--bg-warm);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

body .pea-snapshot .snapshot-kpi-cell {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--rule);
}
body .pea-snapshot .snapshot-kpi-cell:last-child { border-right: none; }

body .pea-snapshot .snapshot-kpi-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

body .pea-snapshot .snapshot-kpi-value {
  display: block;
  font-family: var(--serif-display);
  font-size: 1.35rem;
  font-variation-settings: "opsz" 36, "SOFT" 30;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

body .pea-snapshot .snapshot-kpi-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ---- Titres de section interne ---- */
body .pea-snapshot .snapshot-section-title {
  font-family: var(--serif-display);
  font-size: 1.35rem;
  line-height: 1.2;
  font-variation-settings: "opsz" 36, "SOFT" 30;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1.25rem;
  font-weight: 400;
}

/* ---- Tableau perfs ---- */
body .pea-snapshot .snapshot-table-wrap {
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow-x: auto;
}

body table.snapshot-perfs-table {
  display: table !important;
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.88rem;
  min-width: 680px;
}

body .snapshot-perfs-table thead {
  background: var(--iam-navy, #1e2b4a);
  color: var(--bg);
}

body .snapshot-perfs-table th {
  padding: 0.75rem 0.9rem;
  text-align: right;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
body .snapshot-perfs-table th:first-child { text-align: left; }

body .snapshot-perfs-table tbody tr {
  border-bottom: 1px solid var(--rule-soft);
}
body .snapshot-perfs-table tbody tr:last-child { border-bottom: none; }
body .snapshot-perfs-table tbody tr:hover { background: var(--bg-warm); }

body .snapshot-perfs-table tbody tr.snapshot-perfs-highlight {
  background: rgba(244, 237, 225, 0.5);
  font-weight: 600;
}
body .snapshot-perfs-table tbody tr.snapshot-perfs-highlight:hover { background: var(--bg-warm); }

body .snapshot-perfs-table td {
  padding: 0.75rem 0.9rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
body .snapshot-perfs-table td:first-child {
  text-align: left;
  font-family: var(--serif-display);
  font-size: 0.95rem;
  color: var(--ink);
  font-variation-settings: "opsz" 14;
}

body .snapshot-perfs-table .snapshot-mono { font-family: var(--mono); }

/* ---- Stats annualisées (2 blocs côte à côte) ---- */
body .pea-snapshot .snapshot-stats-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

body .pea-snapshot .snapshot-stats-block {
  background: var(--bg-warm);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
}

body .pea-snapshot .snapshot-stats-block h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

body .pea-snapshot .snapshot-stats-row {
  display: grid !important;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-family: var(--sans);
  font-size: 0.85rem;
}
body .pea-snapshot .snapshot-stats-row > span { text-align: right; font-variant-numeric: tabular-nums; }
body .pea-snapshot .snapshot-stats-row > span:first-child {
  text-align: left;
  font-family: var(--serif-display);
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 14;
}
body .pea-snapshot .snapshot-stats-head {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 0.3rem;
}
body .pea-snapshot .snapshot-stats-bench > span { color: var(--ink-muted); }

/* ---- Composition : grille à 4 cartes ---- */
body .pea-snapshot .snapshot-composition {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

body .pea-snapshot .snapshot-top10,
body .pea-snapshot .snapshot-sectors,
body .pea-snapshot .snapshot-geo,
body .pea-snapshot .snapshot-capi {
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
}

/* ---- Top 10 liste ---- */
body .pea-snapshot .snapshot-top10-list {
  display: flex !important;
  flex-direction: column;
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  counter-reset: snaptop;
}
body .pea-snapshot .snapshot-top10-list li {
  display: grid !important;
  grid-template-columns: 24px 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 0.9rem;
  counter-increment: snaptop;
}
body .pea-snapshot .snapshot-top10-list li::before {
  content: counter(snaptop, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
}
body .pea-snapshot .snapshot-top10-list li:last-child { border-bottom: none; }

body .pea-snapshot .snapshot-top-name {
  font-family: var(--serif-display);
  font-size: 0.98rem;
  color: var(--ink);
  font-variation-settings: "opsz" 14;
}
body .pea-snapshot .snapshot-top-weight {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---- Barres secteurs ---- */
body .pea-snapshot .snapshot-bar-list {
  display: flex !important;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
}
body .pea-snapshot .snapshot-bar-item {
  display: grid !important;
  grid-template-columns: 150px 1fr 55px;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.85rem;
}
body .pea-snapshot .snapshot-bar-name { color: var(--ink-soft); }
body .pea-snapshot .snapshot-bar-track {
  background: var(--rule-soft);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
body .pea-snapshot .snapshot-bar-track::before {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--w, 0%);
  background: var(--iam-navy, #1e2b4a);
  border-radius: 3px;
}
body .pea-snapshot .snapshot-bar-value {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-align: right;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---- Géo (liste avec pastilles) ---- */
body .pea-snapshot .snapshot-geo-list {
  display: flex !important;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
}
body .pea-snapshot .snapshot-geo-item {
  display: grid !important;
  grid-template-columns: 14px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.88rem;
}
body .pea-snapshot .snapshot-geo-sw {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}
body .pea-snapshot .snapshot-geo-name { color: var(--ink-soft); }
body .pea-snapshot .snapshot-geo-value {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---- Capi (barre empilée) ---- */
body .pea-snapshot .snapshot-capi-meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}
body .pea-snapshot .snapshot-capi-meta strong {
  color: var(--ink);
  font-weight: 600;
}
body .pea-snapshot .snapshot-capi-bar {
  display: flex !important;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
body .pea-snapshot .snapshot-capi-segment {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bg);
  position: relative;
}
body .pea-snapshot .snapshot-capi-segment:nth-child(1) { background: var(--forest-soft); color: var(--forest-deep); }
body .pea-snapshot .snapshot-capi-segment:nth-child(2) { background: #a6c0af; color: var(--forest-deep); }
body .pea-snapshot .snapshot-capi-segment:nth-child(3) { background: var(--iam-navy, #1e2b4a); color: var(--ocre); }
body .pea-snapshot .snapshot-capi-segment:nth-child(4) { background: var(--ocre); color: var(--bg); }

/* ---- Ratios de valorisation ---- */
body .pea-snapshot .snapshot-ratios {
  background: var(--iam-navy, #1e2b4a);
  color: var(--bg);
  padding: 2rem 2.25rem;
  border-radius: 6px;
}
body .pea-snapshot .snapshot-ratios .snapshot-section-title {
  color: var(--ocre);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-family: var(--sans);
}
body .pea-snapshot .snapshot-ratios-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
body .pea-snapshot .snapshot-ratio-cell {
  background: rgba(250, 247, 242, 0.05);
  border: 1px solid rgba(250, 247, 242, 0.1);
  border-radius: 4px;
  padding: 1.15rem 1.25rem;
  display: grid !important;
  grid-template-areas: "lab lab lab" "fund sep bench" "disc disc disc";
  grid-template-columns: auto auto 1fr;
  gap: 0.4rem 0.5rem;
  align-items: baseline;
}
body .pea-snapshot .snapshot-ratio-label {
  grid-area: lab;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.65;
}
body .pea-snapshot .snapshot-ratio-fund {
  grid-area: fund;
  font-family: var(--serif-display);
  font-size: 1.7rem;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  color: var(--ocre);
  line-height: 1;
}
body .pea-snapshot .snapshot-ratio-sep {
  grid-area: sep;
  font-family: var(--sans);
  font-size: 0.75rem;
  opacity: 0.5;
}
body .pea-snapshot .snapshot-ratio-bench {
  grid-area: bench;
  font-family: var(--mono);
  font-size: 0.9rem;
  opacity: 0.7;
  text-decoration: line-through;
  text-align: right;
}
body .pea-snapshot .snapshot-ratio-discount {
  grid-area: disc;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ocre);
  font-weight: 500;
}

/* ---- Mouvements du mois ---- */
body .pea-snapshot .snapshot-moves-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
body .pea-snapshot .snapshot-moves-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid;
}
body .pea-snapshot .snapshot-moves-gainers h4 { color: var(--forest); border-color: var(--forest); }
body .pea-snapshot .snapshot-moves-losers h4 { color: var(--ocre-deep); border-color: var(--ocre); }

body .pea-snapshot .snapshot-moves-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  display: flex !important;
  flex-direction: column;
}
body .pea-snapshot .snapshot-moves-col li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
body .pea-snapshot .snapshot-moves-col li:last-child { border-bottom: none; }

body .pea-snapshot .snapshot-move-line {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
body .pea-snapshot .snapshot-move-name {
  font-family: var(--serif-display);
  font-size: 0.98rem;
  color: var(--ink);
  font-variation-settings: "opsz" 14;
}
body .pea-snapshot .snapshot-move-perf {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
body .pea-snapshot .snapshot-perf-up   { color: var(--forest); }
body .pea-snapshot .snapshot-perf-down { color: var(--ocre-deep); }

body .pea-snapshot .snapshot-move-comment {
  font-family: var(--serif-body);
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0.15rem 0 0;
  line-height: 1.4;
}

/* ---- Commentaire de gestion ---- */
body .pea-snapshot .snapshot-comment {
  background: var(--bg-warm);
  border-left: 3px solid var(--ocre);
  padding: 1.5rem 2rem;
  border-radius: 4px;
}
body .pea-snapshot .snapshot-commentary-body {
  font-family: var(--serif-display);
  font-size: 1.15rem;
  line-height: 1.55;
  font-variation-settings: "opsz" 36, "SOFT" 60;
  color: var(--ink);
  margin: 0 0 0.75rem;
  font-weight: 300;
  font-style: italic;
  border-left: none;
  padding-left: 0;
}
body .pea-snapshot .snapshot-commentary-attribution {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
}

/* ---- Footer ---- */
body .pea-snapshot .snapshot-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
body .pea-snapshot .snapshot-source {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}
body .pea-snapshot .snapshot-source strong { color: var(--ink); font-weight: 600; }

/* ---- Sélecteur d'historique des snapshots ---- */
body .snapshot-history-selector {
  display: flex !important;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
body .snapshot-history-selector label {
  font-weight: 500;
  color: var(--ink);
}
body .snapshot-history-selector select {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--bg-card);
  color: var(--ink);
  cursor: pointer;
}
body .snapshot-history-note {
  color: var(--ink-muted);
  font-style: italic;
  font-size: 0.8rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  body .pea-snapshot { padding: 1.5rem 1.25rem; }
  body .pea-snapshot .snapshot-kpi { grid-template-columns: repeat(3, 1fr) !important; }
  body .pea-snapshot .snapshot-kpi-cell { border-right: none; border-bottom: 1px solid var(--rule); }
  body .pea-snapshot .snapshot-composition { grid-template-columns: 1fr !important; }
  body .pea-snapshot .snapshot-stats-grid { grid-template-columns: 1fr !important; }
  body .pea-snapshot .snapshot-moves-grid { grid-template-columns: 1fr !important; }
  body .pea-snapshot .snapshot-ratios-grid { grid-template-columns: 1fr !important; }
  body .pea-snapshot .snapshot-bar-item { grid-template-columns: 110px 1fr 45px; }
}
