/* ==========================================================================================================
   g-reference.css : page de référence d'un service (site/page-reference.blade.php, en-tête `template: reference`).
   Chargé après g-sk.css ; réutilise ses jetons (--px, --mn-*, --mg-*). Préfixe : ref-. Aucun style en ligne (CSP).
   ========================================================================================================== */

/* sommaire */
.mn-sec.ref-toc { padding-block: calc(var(--sk-py) * .6) 0; }
.ref-toc-l { margin-top: calc(14 * var(--px)); display: flex; flex-wrap: wrap; gap: calc(8 * var(--px)) calc(28 * var(--px)); list-style: none; padding: 0; }
.ref-toc-l a { font-size: var(--mn-fs-sm); font-weight: 600; color: var(--mn-teal); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.ref-toc-l a:hover, .ref-toc-l a:focus-visible { text-decoration-color: var(--mn-accent); text-decoration-thickness: 3px; }

/* sections de texte : colonne lisible, tableau et figures plus larges */
.ref-sec .ref-body { margin-top: var(--sk-head-gap); }
.ref-body > :is(p, ul, ol, h3, h4) { max-width: 74ch; }
.ref-body h3 { margin-top: calc(40 * var(--px)); font-size: max(20px, calc(26 * var(--px))); line-height: 1.2; }
.ref-body h3:first-child { margin-top: 0; }
.ref-body h3 + p { margin-top: calc(12 * var(--px)); }
.ref-body p + :is(ul, ol), .ref-body :is(ul, ol) + p { margin-top: calc(14 * var(--px)); }
.ref-body :is(.sk-list, .sk-ol) li { font-size: var(--mn-fs); line-height: 1.6; }

/* tableau comparatif : défilement horizontal sur petit écran, filets fins */
.ref-body table { display: block; width: 100%; max-width: 100%; margin-top: calc(28 * var(--px)); overflow-x: auto; border-collapse: collapse; font-size: var(--mn-fs-sm); line-height: 1.5; }
.ref-body :is(th, td) { min-width: 9em; padding: calc(12 * var(--px)) calc(16 * var(--px)) calc(12 * var(--px)) 0; border-top: 1px solid var(--mn-rule); text-align: left; vertical-align: top; }
.ref-body thead th { padding-top: 0; padding-bottom: calc(8 * var(--px)); border-top: 0; border-bottom: 1px solid var(--mn-rule); font-weight: 600; color: var(--mn-mute); white-space: nowrap; }
.ref-body tbody :is(th, td):first-child { font-weight: 700; color: var(--mn-ink); }
.ref-body tbody tr:last-child :is(th, td) { border-bottom: 1px solid var(--mn-rule); }
@media (max-width: 700px) { .ref-body :is(th, td) { min-width: 8em; padding-block: 10px; } }

/* figures */
.ref-fig { margin: calc(36 * var(--px)) 0 0; max-width: 900px; }
.ref-fig img { display: block; width: 100%; height: auto; border-radius: var(--mg-r, 6px); background: var(--mn-ph); }
.ref-fig figcaption { margin-top: 10px; font-size: var(--mn-fs-cap); line-height: 1.5; color: var(--mn-mute); }

/* autres services HELIX en Corse */
.ref-net-l { list-style: none; padding: 0; border-bottom: 1px solid var(--mn-rule); }
.ref-net-row { display: grid; grid-template-columns: minmax(0, 22em) minmax(0, 1fr) auto; align-items: center; column-gap: calc(28 * var(--px)); padding: calc(18 * var(--px)) calc(14 * var(--px)); border-top: 1px solid var(--mn-rule); color: var(--mn-ink); transition: background-color .3s; }
.ref-net-row:hover, .ref-net-row:focus-visible { background: var(--mg-neutral); }
.ref-net-t { font: 600 max(18px, calc(22 * var(--px))) / 1.25 var(--head); color: var(--mn-teal); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.ref-net-d { font-size: var(--mn-fs-sm); line-height: 1.55; }
@media (max-width: 900px) { .ref-net-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; } .ref-net-d { grid-column: 1 / 2; grid-row: 2; } .ref-net-go { grid-column: 2; grid-row: 1 / 3; } }
