/* Nucleus Blast · pages de référence (commandes, recettes). Chargée après styles.css, dont elle reprend les jetons.
   Écrite le 04/12/2026 pour le référencement : des pages de lecture, sobres, dans le code couleur « Patchbay ». */

.ref__wrap { padding-top: 28px; padding-bottom: 96px; }

.ref__crumbs { font: 500 12px/1.5 var(--mono); letter-spacing: .06em; color: var(--brass-text); }
.ref__crumbs a { color: var(--mute); text-decoration: none; }
.ref__crumbs a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.ref__crumbs span[aria-hidden] { margin: 0 6px; }
.ref__crumbs [aria-current] { color: var(--body); }

.ref__head { margin: 48px 0 40px; max-width: 980px; }
.ref__head .lead { margin-top: 22px; max-width: 46em; }
.ref__when { margin: -16px 0 22px; max-width: 78ch; font-size: 15.5px; color: var(--body); }
.ref__when + .ref__when { margin-top: -14px; }
.ref__when b { margin-right: 8px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.ref__when + section { margin-top: 40px; }
.ref__title {
  margin-top: 14px;
  font: 900 76px/.95 var(--display);
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--cream);
  text-wrap: balance;
}
.ref__for { font-size: .5em; color: var(--brass-text); letter-spacing: .02em; white-space: nowrap; }

.ref h2 { font: 700 30px/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--cream); }
.ref code { font: 500 .9em/1.5 var(--mono); color: var(--amber); overflow-wrap: anywhere; }
.ref a { text-underline-offset: 3px; }

.ref__toc { margin-bottom: 36px; }
.ref__toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ref__toc a {
  display: inline-block; padding: 6px 10px; border: 1px solid var(--line2); border-radius: 3px; text-decoration: none;
}
.ref__toc a:hover { border-color: var(--amber); }
.ref__toc code { font-size: 13px; }

.ref__how {
  margin: 0 0 40px; padding: 16px 18px; max-width: 78ch;
  border-left: 3px solid var(--amber); background: var(--panel); font-size: 15.5px; color: var(--body);
}

/* une commande */
.cmd { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head) + 16px); }
.cmd:last-of-type { border-bottom: 1px solid var(--line); }
.ref .cmd__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font: 600 21px/1.35 var(--sans); text-transform: none; letter-spacing: 0; }
.cmd__name code { font: 500 20px/1.3 var(--mono); }
.cmd__name span { color: var(--cream); }
.cmd__usage { margin-top: 12px; max-width: 78ch; color: var(--body); }
.cmd__usage code { padding: 1px 5px; border-radius: 3px; background: var(--deep); font-size: 14px; }
.cmd__note { margin-top: 10px; max-width: 78ch; font-size: 14.5px; color: var(--mute); }
.cmd__used { margin-top: 10px; font-size: 14.5px; color: var(--mute); }
.cmd__used a { color: var(--cream); }

/* l'index des commandes */
.ref__domain { padding: 32px 0 8px; border-top: 1px solid var(--line); }
.ref__domain h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.ref__domain h2 a { text-decoration: none; }
.ref__domain h2 a:hover { color: var(--amber); }
.ref__domain h2 span, .shells__panel h3 span { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--brass-text); }
.cmds dt a { color: inherit; text-decoration: none; }
.cmds dt a:hover { text-decoration: underline; }

/* une recette */
.ref__h2 { margin-bottom: 28px; }
.ref .steps { max-width: 900px; }
.ref .steps > li { padding-bottom: 32px; padding-left: 72px; }
.ref .steps > li::before { font-size: 46px; top: -2px; }
.step__call { font-size: 17px; color: var(--cream); }
.step__call a { text-decoration: none; }
.step__call a:hover code { text-decoration: underline; }
.step__call code + code { margin-left: 6px; color: var(--body); }
.step__why { margin-top: 6px; color: var(--mute); }
.ref__stop {
  margin: 8px 0 40px; padding: 18px 20px; max-width: 78ch;
  border: 1px solid var(--red); border-radius: 4px; background: rgba(228, 87, 46, .07);
}
.ref .ref__stop h2 { font-size: 22px; color: var(--red); }
.ref__stop p { margin-top: 8px; color: var(--body); }

/* l'index des recettes, et les recettes de la page principale */
.ref__recipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-bottom: 48px; }
.ref__recipes > li, .recipes__list > li { border-top: 1px solid var(--line); }
.ref__recipes > li { padding: 0; }
.ref__recipes a, .recipes__list a { display: block; padding: 14px 0; text-decoration: none; }
.recipes__list > li:has(> a) { padding: 0; }
.ref__recipes b { display: block; font-weight: 500; font-size: 16px; line-height: 1.4; color: var(--cream); }
.ref__recipes span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--mute); }
.ref__recipes a:hover b, .recipes__list a:hover b { color: var(--amber); }

/* voir aussi, et l'appel final */
.ref__more { margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.ref__more ul { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; }
.ref__more a { color: var(--body); }
.ref__more a:hover { color: var(--amber); }
.ref__more p { margin-top: 16px; font: 500 13px var(--mono); }
.ref__more p a { color: var(--amber); }
.ref__cta { margin-top: 56px; padding: 28px; border: 1px solid var(--line2); border-radius: 4px; background: var(--panel); max-width: 900px; }
.ref__cta p { max-width: 66ch; }
.ref__cta b { color: var(--cream); font-weight: 600; }
.ref__ctabtns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* liens vers la référence, sur la page principale */
.reflinks { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font: 500 13.5px var(--mono); }
.reflinks a { color: var(--amber); text-underline-offset: 4px; }
.reflinks a:hover { color: var(--cream); }
.shells__panel h3 a { color: inherit; text-decoration: none; }
.shells__panel h3 a:hover { color: var(--amber); }

@media (max-width: 1023px) {
  .ref__recipes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 799px) {
  .ref__title { font-size: 54px; }
  .ref__head { margin: 32px 0 28px; }
  .ref .steps > li { padding-left: 0; padding-top: 48px; }
  .ref .steps > li::before { top: 0; font-size: 40px; }
  .ref__cta { padding: 22px; }
}
@media (max-width: 599px) {
  .ref__recipes { grid-template-columns: minmax(0, 1fr); }
  .ref__title { font-size: 44px; }
  .cmd__name code { font-size: 18px; }
}
