/* ==========================================================================
   Tokens — app/theme.css
   ========================================================================== */

/* Jeux-Max — design tokens. The only file with colour literals (plus the error module).
   Palette kept from the original site: midnight navy, emerald primary, warm gold accent. */

:root {
  /* surfaces */
  --xf-bg: #0a0f1d;
  --xf-bg-2: #0e1528;
  --xf-surface: #141d35;
  --xf-surface-2: #1a2545;
  --xf-surface-hover: #1f2c52;
  --xf-border: #233056;
  --xf-border-strong: #314273;
  --xf-header-bg: rgba(10, 15, 29, 0.82);

  /* brand */
  --xf-primary: #16c79a;
  --xf-primary-600: #11a884;
  --xf-primary-700: #0d8a6c;
  --xf-primary-soft: rgba(22, 199, 154, 0.12);
  --xf-primary-glow: rgba(22, 199, 154, 0.55);
  --xf-primary-glow-strong: rgba(22, 199, 154, 0.85);
  --xf-on-primary: #04231b;
  --xf-accent: #ffc857;
  --xf-accent-700: #f2a93b;
  --xf-accent-soft: rgba(255, 200, 87, 0.14);
  --xf-accent-glow: rgba(255, 200, 87, 0.45);
  --xf-accent-glow-strong: rgba(255, 200, 87, 0.8);
  --xf-on-accent: #2a1c00;

  /* text */
  --xf-text: #eef2fb;
  --xf-text-muted: #a7b2cc;
  --xf-text-dim: #76849f;
  --xf-danger: #ff5d6c;

  /* light plate under official marks that are dark artwork (footer) */
  --xf-plate: #ffffff;
  /* one plate under every operator logo, whatever the file */
  --xf-logo-plate: #0d1630;

  /* atmosphere */
  --xf-glow-primary: rgba(22, 199, 154, 0.1);
  --xf-glow-accent: rgba(255, 200, 87, 0.06);
  --xf-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  --xf-shadow-soft: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --xf-skeleton: rgba(167, 178, 204, 0.12);

  /* layout */
  --xf-maxw: 67.5rem;
  --xf-radius: 1rem;
  --xf-radius-sm: 0.625rem;
  --xf-radius-xs: 0.375rem;
  --xf-header-h: 4.25rem;
  --container-pad: 1.25rem;

  color-scheme: dark;
}

/* Font variable that next/font set on <html> (app/fonts.ts): Inter, loaded from Google Fonts. */
:root {
  --font-body: 'Inter';
}

/* ==========================================================================
   Reset — app/globals.css
   ========================================================================== */

/* Reset, element defaults and the few element selectors of the site. Component files hold
   only class selectors; anything that targets a tag lives here. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--xf-bg);
  color: var(--xf-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--xf-primary);
  outline-offset: 2px;
}

/* Anchored blocks clear the sticky header. Keep in step with SECTION_IDS in app/content.ts. */
#comparatif,
#criteres,
#methode,
#questions,
#transparence {
  scroll-margin-top: calc(var(--xf-header-h) + 1rem);
}

/* Shared width container. */
.Wrap {
  width: 100%;
  max-width: var(--xf-maxw);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Site frame — Atmosphere, Masthead
   ========================================================================== */

/* Emerald glow from the top, gold glow from the right corner. */

.Atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(75rem 37.5rem at 50% -12.5rem, var(--xf-glow-primary), transparent 60%),
    radial-gradient(56rem 31rem at 100% 0%, var(--xf-glow-accent), transparent 55%),
    var(--xf-bg);
}

/* Site header. */

.Masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--xf-header-bg);
  backdrop-filter: blur(10px);
}

.Masthead-bar {
  display: flex;
  align-items: center;
  height: var(--xf-header-h);
}

.Masthead-home {
  display: inline-flex;
  align-items: center;
}

.Masthead-logo {
  width: auto;
  height: 2.5rem;
}

.Masthead-line {
  height: 2px;
  background: linear-gradient(90deg, var(--xf-primary), var(--xf-accent) 55%, transparent);
  opacity: 0.85;
}

@media (max-width: 39.99rem) {
  .Masthead-bar {
    justify-content: center;
  }

  .Masthead-logo {
    height: 2.125rem;
  }
}

/* ==========================================================================
   Home — Foyer, Frontispiece, AgeFlag, Lineup, Plaque, Explainers, Forthright
   ========================================================================== */

/* Home page wrapper. */

.Foyer {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Hero. Height follows the content: no min-height, no max-height. */

.Frontispiece {
  padding-block: 2.5rem 1.25rem;
  text-align: center;
}

.Frontispiece-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.Frontispiece-title {
  max-width: 22ch;
  margin-top: 1.125rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.Frontispiece-accent {
  background: linear-gradient(135deg, var(--xf-primary), var(--xf-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.Frontispiece-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

.Frontispiece-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--xf-on-primary);
  background: linear-gradient(135deg, var(--xf-primary), var(--xf-primary-700));
  box-shadow: 0 10px 24px -10px var(--xf-primary-glow-strong);
  transition: transform 0.15s ease;
}

.Frontispiece-cta:hover {
  transform: translateY(-1px);
}

.Frontispiece-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--xf-text-dim);
}

@media (max-width: 39.99rem) {
  .Frontispiece {
    padding-block: 0 0.75rem;
  }

  .Frontispiece-title {
    margin-top: 0.875rem;
  }

  .Frontispiece-actions {
    margin-top: 1.125rem;
  }
}

/* Age notice strip: low, one line, visible but no pill. */

.AgeFlag-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.4375rem 0.75rem;
  border: 1px solid var(--xf-border);
  border-radius: var(--xf-radius-sm);
  background: var(--xf-bg-2);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--xf-text-muted);
}

.AgeFlag-marker {
  flex: none;
  padding: 0.125rem 0.375rem;
  border-radius: var(--xf-radius-xs);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--xf-on-accent);
  background: var(--xf-accent);
}

@media (max-width: 39.99rem) {
  .AgeFlag-row {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Offer list section and its grid; the skeleton reuses the same grid. */

.Lineup {
  padding-block: 1.5rem 3.5rem;
}

.Lineup-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.Lineup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.125rem;
  align-items: stretch;
  padding-top: 0.75rem;
}

/* Kept as a 1px tall visible element: the promo modal observes it with threshold 1. */
.Lineup-end {
  height: 1px;
}

@media (max-width: 63.99rem) {
  .Lineup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 39.99rem) {
  .Lineup {
    padding-block: 1rem 2.5rem;
  }

  .Lineup-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.375rem;
  }
}

/* Offer card. The inner grid ignores the pointer; only the button area takes clicks. */

.Plaque {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.375rem 1.5rem;
  background: linear-gradient(180deg, var(--xf-surface), var(--xf-bg-2));
  border: 1px solid var(--xf-border);
  border-radius: var(--xf-radius);
  box-shadow: var(--xf-shadow-soft);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.Plaque:hover {
  border-color: var(--xf-border-strong);
  transform: translateY(-3px);
}

.Plaque--podium {
  border-color: var(--xf-border-strong);
  background: linear-gradient(180deg, var(--xf-surface-2), var(--xf-bg-2));
}

.Plaque--top {
  border-color: var(--xf-accent);
  background: linear-gradient(180deg, var(--xf-surface-2), var(--xf-surface));
  animation: plaque-top-glow 2.4s ease-in-out infinite alternate;
}

.Plaque-inner {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  flex: 1;
  text-align: center;
}

.Plaque-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  z-index: 1;
  translate: -50% 0;
  padding: 0.25rem 0.75rem;
  border-radius: var(--xf-radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--xf-text);
  background: var(--xf-surface-2);
  border: 1px solid var(--xf-border-strong);
}

.Plaque-badge--podium {
  color: var(--xf-primary);
  background: var(--xf-bg-2);
  border-color: var(--xf-primary-700);
}

.Plaque-badge--top {
  color: var(--xf-on-accent);
  background: linear-gradient(135deg, var(--xf-accent), var(--xf-accent-700));
  border-color: var(--xf-accent);
  box-shadow: 0 6px 18px -6px var(--xf-accent-glow-strong);
  animation: plaque-badge-bob 1.4s ease-in-out infinite alternate;
}

.Plaque-rank {
  position: absolute;
  top: 0.875rem;
  left: 1rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--xf-text-dim);
}

:where(.Plaque--top) .Plaque-rank {
  color: var(--xf-accent);
}

.Plaque-mark {
  grid-area: mark;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10rem;
  height: 4.0625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--xf-radius);
  background: var(--xf-logo-plate);
  border: 1px solid var(--xf-border-strong);
}

.Plaque-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.Plaque-rating {
  grid-area: rating;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
}

.Plaque-stars {
  display: inline-flex;
  gap: 0.125rem;
  color: var(--xf-accent);
}

.Plaque-score {
  font-weight: 800;
  color: var(--xf-text);
}

.Plaque-scale {
  margin-left: -0.25rem;
  font-size: 0.8125rem;
  color: var(--xf-text-dim);
}

.Plaque-offer {
  grid-area: offer;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--xf-text-muted);
}

:where(.Plaque--top) .Plaque-offer {
  color: var(--xf-text);
}

.Plaque-action {
  grid-area: action;
  position: relative;
  display: flex;
  width: 100%;
  margin-top: auto;
  padding-top: 0.25rem;
}

/* The anchor itself: keyboard target. Not positioned, so the overlay stays on top of it. */
.Plaque-cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.875rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: var(--xf-on-primary);
  background: linear-gradient(135deg, var(--xf-primary), var(--xf-primary-700));
  box-shadow: 0 10px 24px -12px var(--xf-primary-glow);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.Plaque-cta--podium {
  box-shadow: 0 12px 28px -10px var(--xf-primary-glow-strong);
}

.Plaque-cta--top {
  color: var(--xf-on-accent);
  background: linear-gradient(135deg, var(--xf-accent), var(--xf-accent-700));
  box-shadow:
    0 0 0 1px var(--xf-accent),
    0 14px 34px -8px var(--xf-accent-glow-strong);
}

:where(.Plaque-action:hover) .Plaque-cta {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px var(--xf-primary-glow-strong);
}

:where(.Plaque-action:hover) .Plaque-cta--top {
  box-shadow:
    0 0 0 1px var(--xf-accent),
    0 18px 40px -8px var(--xf-accent-glow-strong);
}

/* Sibling overlay over the anchor: takes the pointer, never shows an address. */
.Plaque-hit {
  pointer-events: auto;
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  display: none;
}

@keyframes plaque-top-glow {
  from {
    box-shadow:
      0 0 0 1px var(--xf-accent),
      0 12px 32px -18px var(--xf-accent-glow);
  }
  to {
    box-shadow:
      0 0 0 1px var(--xf-accent),
      0 18px 48px -12px var(--xf-accent-glow-strong);
  }
}

@keyframes plaque-badge-bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-0.1875rem);
  }
}

/* Phones: compact horizontal card so more slots fit on the first screen. */
@media (max-width: 39.99rem) {
  .Plaque {
    padding: 1.5rem 1rem 1rem;
  }

  .Plaque-inner {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    grid-template-areas:
      'mark rating'
      'mark offer'
      'action action';
    align-items: center;
    gap: 0.375rem 0.875rem;
    text-align: left;
  }

  .Plaque-mark {
    width: 9.5rem;
    height: 4rem;
    padding: 0.375rem 0.5rem;
    border-radius: var(--xf-radius-sm);
  }

  .Plaque-rating {
    font-size: 0.875rem;
  }

  .Plaque-offer {
    font-size: 0.875rem;
  }

  .Plaque-action {
    padding-top: 0.5rem;
  }

  .Plaque-rank {
    top: 0.5rem;
    left: 0.75rem;
    font-size: 0.875rem;
  }
}

/* Home content sections: criteria grid, stepped method, questions. */

.Explainers {
  padding-block: 3.5rem;
}

.Explainers--method {
  background: linear-gradient(180deg, transparent, var(--xf-bg-2) 18%, var(--xf-bg-2) 82%, transparent);
}

.Explainers-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.Explainers-eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xf-primary);
}

.Explainers-title {
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
  font-weight: 800;
}

.Explainers-intro {
  margin-top: 0.75rem;
  color: var(--xf-text-muted);
}

/* Criteria: a ruled grid, no boxed cards. */
.Explainers-criteria {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2rem;
  list-style: none;
}

.Explainers-criterion {
  padding-block: 1.5rem;
  border-top: 1px solid var(--xf-border);
}

.Explainers-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.875rem;
  border-radius: var(--xf-radius-sm);
  color: var(--xf-accent);
  background: var(--xf-accent-soft);
}

.Explainers-criterionTitle {
  margin-bottom: 0.375rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.Explainers-criterionText {
  font-size: 0.9375rem;
  color: var(--xf-text-muted);
}

/* Method: a real sequence, numbered and joined by a line. */
.Explainers-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.Explainers-steps::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--xf-primary), var(--xf-border-strong));
}

.Explainers-step {
  position: relative;
}

.Explainers-stepNumber {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--xf-primary-700);
  border-radius: var(--xf-radius-sm);
  font-weight: 800;
  color: var(--xf-primary);
  background: var(--xf-bg-2);
}

.Explainers-stepTitle {
  margin-bottom: 0.375rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.Explainers-stepText {
  font-size: 0.9375rem;
  color: var(--xf-text-muted);
}

/* Questions: heading on the side, native disclosure list. */
.Explainers-faqWrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: 2.5rem;
  align-items: start;
}

.Explainers-head--side {
  margin-bottom: 0;
}

.Explainers-faq {
  border-top: 1px solid var(--xf-border);
}

.Explainers-faqItem {
  border-bottom: 1px solid var(--xf-border);
}

.Explainers-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}

.Explainers-question::-webkit-details-marker {
  display: none;
}

.Explainers-plus {
  position: relative;
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s ease;
}

.Explainers-plus::before,
.Explainers-plus::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  margin-top: -1px;
  background: var(--xf-primary);
}

.Explainers-plus::after {
  transform: rotate(90deg);
}

:where(.Explainers-faqItem[open]) .Explainers-plus {
  transform: rotate(45deg);
}

.Explainers-answer {
  padding-bottom: 1.125rem;
  max-width: 62ch;
  color: var(--xf-text-muted);
}

@media (max-width: 63.99rem) {
  .Explainers-criteria {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .Explainers-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .Explainers-steps::before {
    display: none;
  }

  .Explainers-faqWrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 39.99rem) {
  .Explainers {
    padding-block: 2.5rem;
  }

  .Explainers-criteria,
  .Explainers-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Closing transparency block: quiet, small type. */

.Forthright {
  padding-block: 1rem 3.5rem;
}

.Forthright-frame {
  padding-top: 1.75rem;
  border-top: 1px solid var(--xf-border);
}

.Forthright-title {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--xf-text);
}

.Forthright-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.Forthright-blockTitle {
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--xf-text-muted);
}

.Forthright-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--xf-text-dim);
}

@media (max-width: 47.99rem) {
  .Forthright-blocks {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

/* ==========================================================================
   Footer — Baseboard
   ========================================================================== */

/* Site footer. Separated from the content by a gradient, not a grey rule. */

.Baseboard {
  margin-top: auto;
  padding-bottom: 1.75rem;
  background: var(--xf-bg-2);
}

.Baseboard-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--xf-primary) 30%, var(--xf-accent) 70%, transparent);
  opacity: 0.7;
}

.Baseboard-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 2.25rem;
}

.Baseboard-licensed {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--xf-primary-700);
  border-radius: var(--xf-radius);
  background: var(--xf-primary-soft);
}

.Baseboard-licensedIcon {
  flex: none;
  margin-top: 0.125rem;
  color: var(--xf-primary);
}

.Baseboard-licensedText {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--xf-text);
}

.Baseboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr);
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--xf-border);
}

.Baseboard-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
}

.Baseboard-home {
  display: inline-flex;
}

.Baseboard-logo {
  width: auto;
  height: 2.25rem;
}

.Baseboard-anchor {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--xf-primary);
}

.Baseboard-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.Baseboard-navLink {
  font-size: 0.875rem;
  color: var(--xf-text-muted);
}

.Baseboard-navLink:hover {
  color: var(--xf-text);
}

.Baseboard-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--xf-text);
}

.Baseboard-licences,
.Baseboard-services {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  list-style: none;
}

.Baseboard-licence {
  display: flex;
  flex-direction: column;
  padding-left: 0.75rem;
  border-left: 2px solid var(--xf-border-strong);
}

.Baseboard-licensee {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--xf-text);
}

.Baseboard-licenceNumber,
.Baseboard-licenceScope {
  font-size: 0.8125rem;
  color: var(--xf-text-muted);
}

.Baseboard-org {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.Baseboard-orgName {
  font-size: 0.875rem;
  font-weight: 600;
}

.Baseboard-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--xf-text-muted);
}

.Baseboard-note {
  color: var(--xf-text-dim);
}

.Baseboard-mark {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 0.25rem;
}

.Baseboard-mark--plate {
  padding: 0.3125rem 0.5rem;
  border-radius: var(--xf-radius-xs);
  background: var(--xf-plate);
}

.Baseboard-markImage {
  display: block;
}

.Baseboard-partner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--xf-border);
}

.Baseboard-partnerText {
  font-size: 0.8125rem;
  color: var(--xf-text-muted);
}

.Baseboard-link {
  color: var(--xf-primary);
}

.Baseboard-link:hover {
  text-decoration: underline;
}

.Baseboard-plainLink {
  color: inherit;
}

.Baseboard-plainLink:hover {
  color: var(--xf-text);
}

.Baseboard-risk {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--xf-border-strong);
  border-radius: var(--xf-radius-sm);
  background: var(--xf-accent-soft);
  font-size: 0.875rem;
  color: var(--xf-text);
}

.Baseboard-age {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--xf-radius-sm);
  font-weight: 800;
  color: var(--xf-on-accent);
  background: var(--xf-accent);
}

.Baseboard-company {
  font-size: 0.8125rem;
  color: var(--xf-text-muted);
}

.Baseboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--xf-text-dim);
}

@media (max-width: 56rem) {
  .Baseboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .Baseboard-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 39.99rem) {
  .Baseboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .Baseboard-risk {
    align-items: flex-start;
  }
}

/* ==========================================================================
   Legal pages — Manuscript
   ========================================================================== */

/* Long-form legal pages: element styling scoped to the legal wrapper (app/globals.css).
   Kept before the Manuscript classes, as in the source cascade: `.Manuscript-cards` resets the
   list padding these rules set. */
.Manuscript-body :where(h2) {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--xf-text);
}

.Manuscript-body :where(h3) {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--xf-text);
}

.Manuscript-body :where(p, li, address, dd) {
  color: var(--xf-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.Manuscript-body :where(p + p, p + ul, ul + p, p + ol, ol + p, address + p) {
  margin-top: 0.875rem;
}

.Manuscript-body :where(ul, ol) {
  padding-left: 1.25rem;
}

.Manuscript-body :where(li + li) {
  margin-top: 0.375rem;
}

.Manuscript-body :where(address) {
  font-style: normal;
}

.Manuscript-body :where(a) {
  color: var(--xf-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.Manuscript-body :where(strong) {
  color: var(--xf-text);
}

/* Legal and information pages. */

.Manuscript {
  flex: 1;
  padding-block: 2.5rem 3.5rem;
}

.Manuscript-inner {
  max-width: 52rem;
}

.Manuscript-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
}

.Manuscript-lead {
  margin-top: 0.875rem;
  font-size: 1.0625rem;
  color: var(--xf-text-muted);
}

.Manuscript-updated {
  margin-top: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--xf-border);
  font-size: 0.8125rem;
  color: var(--xf-text-dim);
}

.Manuscript-box {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--xf-border-strong);
  border-radius: var(--xf-radius-sm);
  background: var(--xf-surface);
}

.Manuscript-box--accent {
  border-color: var(--xf-primary-700);
  background: var(--xf-primary-soft);
}

.Manuscript-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.Manuscript-card {
  padding: 1rem 1.125rem;
  border: 1px solid var(--xf-border);
  border-radius: var(--xf-radius-sm);
  background: var(--xf-bg-2);
}

.Manuscript-partner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 39.99rem) {
  .Manuscript {
    padding-block: 1.75rem 2.5rem;
  }

  .Manuscript-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   404 — Nowhere
   ========================================================================== */

/* 404 page. */

.Nowhere {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 4rem;
}

.Nowhere-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.Nowhere-code {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--xf-primary), var(--xf-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.Nowhere-title {
  margin-top: 1rem;
  font-size: 1.75rem;
  font-weight: 800;
}

.Nowhere-text {
  margin-top: 0.5rem;
  color: var(--xf-text-muted);
}

.Nowhere-back {
  display: inline-flex;
  margin-top: 1.75rem;
  padding: 0.75rem 1.375rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--xf-on-primary);
  background: linear-gradient(135deg, var(--xf-primary), var(--xf-primary-700));
}
