/* ==========================================================================
   Components

   Signatures carried over from the reference and applied to this product:
     1. Mint is the only filled action colour.
     2. Circles are the structural shape — topic tiles, icon containers,
        step markers, avatars.
     3. White cards float on a blue-tinted canvas with one subtle shadow.

   Secure The Humans signatures layered on top:
     4. Question bubbles — the questions beginners actually ask, in the hero.
     5. «لماذا يهمّك هذا؟» — an indigo-tinted panel on every news item.
     6. The ladder — IT → Networking + OS → Security as connected circles.
   ========================================================================== */

/* --- Layout --------------------------------------------------------------- */
.wrap { inline-size: 100%; max-inline-size: var(--page-max); margin-inline: auto; padding-inline: var(--sp-20); }
.wrap--text { max-inline-size: calc(var(--text-w) + var(--sp-40)); }

.band { padding-block: var(--section-gap); }
.band--tight { padding-block: var(--sp-48); }
.band--air   { padding-block: calc(var(--section-gap) * 1.5); }
.band--white { background: var(--surface); }
/* Retained names from earlier templates; all now flow on the canvas. */
.band--tint, .band--rule, .band--deep { background: transparent; }

/* --- Section heading: centred, as in the reference ------------------------ */
.head { text-align: center; margin-block-end: var(--sp-40); }
.head__top { display: contents; }
.head h2 { margin-block-end: var(--sp-8); }
.head p { color: var(--text-3); max-inline-size: 56ch; margin-inline: auto; margin-block: 0; }
.head__more {
  display: inline-block; margin-block-start: var(--sp-12);
  font-size: var(--text-body); font-weight: var(--w-bold); color: var(--brand);
}
.head__more:hover { text-decoration: underline; text-underline-offset: .25em; }
.head--start { text-align: start; }
.head--start p { margin-inline: 0; }

/* Small metadata label. */
.label { display: inline-block; font-size: var(--text-caption); font-weight: var(--w-bold); color: var(--text-3); }
.label--brand { color: var(--brand); }
.label--signal { color: var(--deep-indigo); }

/* --- Top navigation ------------------------------------------------------- */
.masthead { position: sticky; inset-block-start: 0; z-index: 50; background: var(--surface); box-shadow: var(--shadow-subtle); }
.masthead__in { display: flex; align-items: center; gap: var(--sp-24); min-block-size: var(--nav-h); }

.wordmark { display: flex; align-items: center; gap: var(--sp-12); flex: none; }
.wordmark__mark {
  inline-size: 36px; block-size: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--signal-blue); color: #fff;
}
.wordmark__mark svg { inline-size: 22px; block-size: 22px; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1.2; }
.wordmark b { font-size: var(--text-subheading); font-weight: var(--w-bold); color: var(--signal-blue); }
.wordmark i { font-style: normal; font-size: var(--text-caption); color: var(--text-3); }

.mainnav { display: flex; gap: var(--sp-24); list-style: none; margin: 0 auto 0 0; padding: 0; }
html[dir="ltr"] .mainnav { margin: 0 0 0 auto; }
.mainnav li { margin: 0; position: relative; }
.mainnav > li > a { display: block; padding-block: var(--sp-8); font-size: var(--text-body); font-weight: var(--w-bold); color: var(--text); white-space: nowrap; }
.mainnav > li > a:hover, .mainnav .is-current > a,
.mainnav .current-menu-item > a, .mainnav .current_page_item > a { color: var(--brand); }

.mainnav .sub, .mainnav .sub-menu {
  position: absolute; inset-block-start: 100%; inset-inline-start: calc(var(--sp-12) * -1);
  min-inline-size: 210px; margin: 0; padding: var(--sp-8); list-style: none;
  background: var(--surface); border-radius: var(--radius-cards); box-shadow: 0 8px 24px rgba(0,0,0,.08), var(--shadow-subtle);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.mainnav li:hover > .sub, .mainnav li:focus-within > .sub,
.mainnav li:hover > .sub-menu, .mainnav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mainnav .sub a, .mainnav .sub-menu a { display: block; padding: var(--sp-8) var(--sp-12); border-radius: 10px; font-size: var(--text-body); color: var(--text); }
.mainnav .sub a:hover, .mainnav .sub-menu a:hover { background: var(--canvas-mist); color: var(--brand); }

.masthead__act { display: flex; align-items: center; gap: var(--sp-8); flex: none; }
.lang { display: flex; gap: var(--sp-4); }
.lang a { padding: var(--sp-8) var(--sp-12); border-radius: var(--radius-buttons); font-size: var(--text-body); font-weight: var(--w-bold); color: var(--text); }
.lang a:hover { background: var(--canvas-mist); }
.lang a[aria-current="true"] { display: none; } /* show only the other language */

.navtoggle {
  display: none; inline-size: 40px; block-size: 40px; place-items: center;
  background: none; border: 0; border-radius: var(--radius-circles); color: var(--text); cursor: pointer;
}
.navtoggle:hover { background: var(--canvas-mist); }
/* Never let the flex row squeeze the toggle — it is the only way into the menu on mobile. */
.navtoggle { flex: none; }
.navtoggle svg { inline-size: 20px; block-size: 20px; }

/* --- Buttons: filled mint → outlined blue → ghost ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-8);
  padding: 12px var(--sp-20); min-block-size: 44px;
  border: 2px solid transparent; border-radius: var(--radius-buttons);
  font: inherit; font-size: var(--text-body-lg); font-weight: var(--w-bold); line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Primary: the only chromatic filled control. Charcoal on mint is ~12:1. */
.btn--mint, .btn--solid { background: var(--spring-mint); color: var(--charcoal); }
.btn--mint:hover, .btn--solid:hover { background: var(--mint-press); }

/* Secondary: brand-blue outline. */
.btn--outline, .btn--line { background: transparent; border-color: var(--signal-blue); color: var(--signal-blue); }
.btn--outline:hover, .btn--line:hover { background: var(--blue-tint); }

/* Tertiary: text-level. */
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--canvas-mist); }

/* Outline variant for the gradient hero. */
.btn--onhero { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--onhero:hover { background: rgba(255,255,255,.12); }

.btn--sm { padding: 8px var(--sp-16); min-block-size: 38px; font-size: var(--text-body); }

.arrowlink { display: inline-flex; align-items: center; gap: var(--sp-8); font-size: var(--text-body); font-weight: var(--w-bold); color: var(--brand); }
.arrowlink::after { content: "←"; }
html[dir="ltr"] .arrowlink::after { content: "→"; }
.arrowlink:hover { text-decoration: underline; text-underline-offset: .25em; }

/* --- Hero: full-bleed gradient, text + illustration ----------------------- */
.hero { background: var(--gradient-hero); color: #fff; padding-block: var(--sp-64); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-48); align-items: center; }
.hero h1 { color: #fff; margin-block-end: var(--sp-20); max-inline-size: 16ch; }
.hero__lede { font-size: var(--text-body-lg); color: rgba(255,255,255,.9); max-inline-size: 480px; margin-block-end: var(--sp-28); }
.hero__act { display: flex; align-items: center; gap: var(--sp-12); flex-wrap: wrap; }
.hero__note { margin-block-start: var(--sp-16); font-size: var(--text-body); color: rgba(255,255,255,.78); }
.hero__note span + span::before { content: "·"; margin-inline: var(--sp-8); }

/* --- Signature 4 · hero illustration with question bubbles ---------------- */
.hero__art { position: relative; aspect-ratio: 1 / .92; max-inline-size: 500px; margin-inline: auto; inline-size: 100%; }
/* Faint dotted network behind the figures — the reference's world-map role. */
.hero__art::before {
  content: ""; position: absolute; inset: 4%;
  border-radius: var(--radius-circles);
  background: radial-gradient(rgba(255,255,255,.28) 1.2px, transparent 1.6px) 0 0 / 18px 18px;
  -webkit-mask: radial-gradient(circle, #000 55%, transparent 72%);
          mask: radial-gradient(circle, #000 55%, transparent 72%);
}
.hero__art .person { position: absolute; border-radius: var(--radius-circles); }
.hero__art .person svg { inline-size: 100%; block-size: 100%; }
.hero__art .p1 { inline-size: 46%; inset-block-start: 20%; inset-inline-start: 27%; }
.hero__art .p2 { inline-size: 27%; inset-block-start: 6%;  inset-inline-end: 2%; }
.hero__art .p3 { inline-size: 29%; inset-block-end: 2%;   inset-inline-start: 0; }
.hero__art .badge {
  position: absolute; inset-block-end: 12%; inset-inline-end: 8%;
  inline-size: 17%; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: var(--radius-circles); background: #fff; color: var(--signal-blue);
  box-shadow: var(--shadow-subtle);
}
.hero__art .badge svg { inline-size: 54%; block-size: 54%; }

.bubble {
  position: absolute; z-index: 2;
  padding: 8px 14px; border-radius: 14px;
  background: #fff; color: var(--charcoal);
  font-size: var(--text-body); font-weight: var(--w-bold); white-space: nowrap;
  box-shadow: var(--shadow-subtle);
}
.bubble::after {
  content: ""; position: absolute; inset-block-end: -6px; inset-inline-start: 16px;
  inline-size: 12px; block-size: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px;
}
.bubble--1 { inset-block-start: 8%;  inset-inline-start: 4%; }
.bubble--2 { inset-block-start: 40%; inset-inline-end: -2%; }
.bubble--3 { inset-block-end: 26%;  inset-inline-start: 34%; }
.bubble--4 { inset-block-start: 0;   inset-inline-start: 46%; }

/* --- Signature 2 · circular topic tiles in a scrolling row ---------------- */
.tiles-wrap { position: relative; }
.tiles {
  display: flex; gap: var(--sp-24); overflow-x: auto; scroll-snap-type: x mandatory;
  list-style: none; margin: 0; padding: var(--sp-8) var(--sp-4) var(--sp-16);
  scrollbar-width: none;
}
.tiles::-webkit-scrollbar { display: none; }
.tiles li { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.tile { display: flex; flex-direction: column; align-items: center; gap: var(--sp-12); inline-size: 112px; text-align: center; }
.tile__circle {
  inline-size: 88px; block-size: 88px; border-radius: var(--radius-circles);
  display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow-subtle);
  transition: transform .18s, box-shadow .18s;
}
.tile__circle span {
  inline-size: 60px; block-size: 60px; border-radius: var(--radius-circles);
  display: grid; place-items: center; background: var(--blue-tint); color: var(--signal-blue);
}
.tile__circle svg { inline-size: 26px; block-size: 26px; }
.tile:hover .tile__circle { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.08), var(--shadow-subtle); }
.tile b { font-size: var(--text-body); font-weight: var(--w-bold); line-height: 1.45; }
.tile:nth-child(3n+2) .tile__circle span, .tiles li:nth-child(3n+2) .tile__circle span { background: var(--indigo-tint); color: var(--deep-indigo); }
.tiles li:nth-child(3n) .tile__circle span { background: var(--mint-tint); color: #0a7a4c; }

.tiles__nav {
  position: absolute; inset-block-start: 30px; z-index: 2;
  inline-size: 40px; block-size: 40px; display: grid; place-items: center;
  border: 0; border-radius: var(--radius-circles); background: var(--surface); color: var(--text-3);
  box-shadow: var(--shadow-subtle); cursor: pointer;
}
.tiles__nav:hover { color: var(--brand); }
.tiles__nav--prev { inset-inline-start: -20px; }
.tiles__nav--next { inset-inline-end: -20px; }
.tiles__nav svg { inline-size: 18px; block-size: 18px; }
/* Chevrons point along the reading direction. */
html[dir="rtl"] .tiles__nav svg { transform: scaleX(-1); }

/* --- Cards ---------------------------------------------------------------- */
.cards { display: grid; gap: var(--sp-20); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column; gap: var(--sp-8);
  padding: var(--card-pad);
  background: var(--surface); border-radius: var(--radius-cards); box-shadow: var(--shadow-subtle);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.07), var(--shadow-subtle); }
.card__img { margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) var(--sp-8); aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-cards) var(--radius-cards) 0 0; background: var(--blue-tint); position: relative; }
.card__img img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.card__icon {
  inline-size: 60px; block-size: 60px; flex: none; margin-block-end: var(--sp-8);
  border-radius: var(--radius-circles); display: grid; place-items: center;
  background: var(--blue-tint); color: var(--signal-blue);
}
.card__icon svg { inline-size: 26px; block-size: 26px; }
.card__icon--indigo { background: var(--indigo-tint); color: var(--deep-indigo); }
.card__icon--mint { background: var(--mint-tint); color: #0a7a4c; }
.card h3 { font-size: var(--text-subheading); line-height: 1.5; margin: 0; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card { position: relative; }
.card p { font-size: var(--text-body); color: var(--text-3); margin: 0; }
.card .meta { margin-block-start: auto; padding-block-start: var(--sp-8); }
.card--video .dur {
  position: absolute; inset-block-end: var(--sp-8); inset-inline-start: var(--sp-8);
  padding: 2px 8px; border-radius: var(--radius-buttons);
  background: rgba(0,0,0,.72); color: #fff; font-size: var(--text-caption); direction: ltr;
}

/* --- Meta line & chips ---------------------------------------------------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); font-size: var(--text-caption); color: var(--text-3); font-variant-numeric: tabular-nums; }
.meta > * + *::before { content: "·"; margin-inline-end: var(--sp-8); }

.chip {
  display: inline-block; padding: 3px var(--sp-12);
  border-radius: var(--radius-buttons); background: var(--blue-tint); color: var(--signal-blue);
  font-size: var(--text-caption); font-weight: var(--w-bold);
}
.chip--brand { background: var(--signal-blue); color: #fff; }
a.chip:hover { background: var(--signal-blue); color: #fff; }

/* --- Signature 6 · the ladder as connected circles ------------------------ */
.ladder {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-24);
  list-style: none; margin: 0; padding: var(--sp-40) var(--sp-32);
  background: var(--surface); border-radius: var(--radius-cards); box-shadow: var(--shadow-subtle);
  counter-reset: rung; position: relative;
}
.ladder > li { margin: 0; text-align: center; counter-increment: rung; position: relative; z-index: 1; }
.ladder > li::before {
  content: counter(rung);
  display: grid; place-items: center; margin: 0 auto var(--sp-16);
  inline-size: 64px; block-size: 64px; border-radius: var(--radius-circles);
  background: var(--blue-tint); color: var(--signal-blue);
  font-size: var(--text-heading-sm); font-weight: var(--w-extra);
  box-shadow: 0 0 0 8px var(--surface);
}
.ladder > li:last-child::before { background: var(--spring-mint); color: var(--charcoal); }
/* The connecting line sits behind the circles. */
.ladder::before {
  content: ""; position: absolute; z-index: 0;
  inset-block-start: calc(var(--sp-40) + 31px); inset-inline: 16.6%;
  block-size: 2px; background: var(--rule);
}
.ladder b { display: block; font-size: var(--text-subheading); font-weight: var(--w-bold); direction: ltr; margin-block-end: var(--sp-4); }
.ladder span { font-size: var(--text-body); color: var(--text-3); display: block; max-inline-size: 26ch; margin-inline: auto; }

/* --- Signature 5 · «لماذا يهمّك هذا؟» ------------------------------------- */
.why {
  margin-block: var(--sp-24);
  padding: var(--sp-20) var(--sp-24);
  background: var(--indigo-tint); border-radius: var(--radius-cards);
  border-inline-start: 4px solid var(--deep-indigo);
}
.why > .label { display: block; margin-block-end: var(--sp-8); font-size: var(--text-body); color: var(--deep-indigo); }
.why h2, .why h3 { font-size: var(--text-subheading); color: var(--deep-indigo); margin-block-end: var(--sp-8); }
.why p { color: var(--text); margin: 0; font-size: var(--text-body-lg); }

/* --- News: a lead card beside a list card --------------------------------- */
.lead-story { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--sp-20); align-items: start; }
.lead-story__main { padding: var(--sp-32); background: var(--surface); border-radius: var(--radius-cards); box-shadow: var(--shadow-subtle); }
.lead-story__main h3 { font-size: var(--text-heading-sm); margin-block: var(--sp-12); line-height: var(--lh-heading); }
.lead-story__main h3 a:hover { color: var(--brand); }
.lead-story__stand { color: var(--text-3); margin: 0; }

.stack-list { list-style: none; margin: 0; padding: var(--sp-8) var(--sp-24); background: var(--surface); border-radius: var(--radius-cards); box-shadow: var(--shadow-subtle); }
.stack-list > li { margin: 0; padding-block: var(--sp-16); border-block-start: 1px solid var(--rule); }
.stack-list > li:first-child { border-block-start: 0; }
.stack-list h4 { font-size: var(--text-body-lg); margin-block: var(--sp-4); line-height: 1.55; }
.stack-list h4 a:hover { color: var(--brand); }

/* --- Numbered list inside a card (episodes, curricula) -------------------- */
.index { list-style: none; margin: 0; padding: var(--sp-8) var(--sp-16); background: var(--surface); border-radius: var(--radius-cards); box-shadow: var(--shadow-subtle); }
.index > li { margin: 0; border-block-start: 1px solid var(--rule); }
.index > li:first-child { border-block-start: 0; }
.index a, .index > li > .row {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--sp-16);
  padding: var(--sp-12) var(--sp-8); border-radius: 12px;
}
.index a:hover { background: var(--canvas-mist); }
.index .n {
  inline-size: 36px; block-size: 36px; border-radius: var(--radius-circles);
  display: grid; place-items: center; background: var(--blue-tint); color: var(--signal-blue);
  font-size: var(--text-body); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; direction: ltr;
}
.index a:hover .n { background: var(--signal-blue); color: #fff; }
.index .t { font-size: var(--text-body-lg); font-weight: var(--w-bold); line-height: 1.55; }
.index .m { font-size: var(--text-caption); color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.index .d { grid-column: 2 / -1; font-size: var(--text-body); color: var(--text-3); }
.index--split { columns: 2; column-gap: var(--sp-20); background: none; box-shadow: none; padding: 0; }
.index--split > li { break-inside: avoid; margin-block-end: var(--sp-12); border: 0; background: var(--surface); border-radius: var(--radius-cards); box-shadow: var(--shadow-subtle); }

/* --- Roadmap (learning path detail): circles on a line ------------------- */
.road { list-style: none; margin: 0; padding: 0; }
.road > li { position: relative; margin: 0; padding-inline-start: 64px; padding-block-end: var(--sp-32); }
.road > li::before {
  content: attr(data-step); position: absolute; inset-inline-start: 0; inset-block-start: 0;
  inline-size: 44px; block-size: 44px; border-radius: var(--radius-circles);
  display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow-subtle), inset 0 0 0 2px var(--rule);
  font-size: var(--text-body); font-weight: var(--w-bold); color: var(--text-3); direction: ltr;
}
.road > li::after { content: ""; position: absolute; inset-inline-start: 21px; inset-block: 48px 4px; inline-size: 2px; background: var(--rule); }
.road > li:last-child { padding-block-end: 0; }
.road > li:last-child::after { display: none; }
.road > li[data-state="done"]::before { background: var(--signal-blue); color: #fff; box-shadow: none; }
.road > li[data-state="now"]::before { background: var(--spring-mint); color: var(--charcoal); box-shadow: 0 0 0 5px var(--mint-tint); }
.road h3 { font-size: var(--text-subheading); margin-block: 8px 4px; }
.road p { font-size: var(--text-body); color: var(--text-3); margin: 0; }
.road .skills { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-block-start: var(--sp-12); }

/* --- Comparison table (kept for role detail pages; not used on home) ------ */
.compare { overflow-x: auto; background: var(--surface); border-radius: var(--radius-cards); box-shadow: var(--shadow-subtle); }
.compare table { min-inline-size: 640px; }
.compare .bar { display: flex; gap: 3px; }
.compare .bar i { inline-size: 14px; block-size: 6px; border-radius: 3px; background: var(--rule); }
.compare .bar i.on { background: var(--signal-blue); }

/* --- Pull quote / mission ------------------------------------------------- */
.pull { margin: 0; padding: 0; background: none; box-shadow: none; font-size: var(--text-heading-sm); font-weight: var(--w-extra); line-height: 1.55; max-inline-size: 34ch; margin-inline: auto; }
.pull cite { display: block; margin-block-start: var(--sp-12); font-size: var(--text-body); font-weight: var(--w-regular); font-style: normal; color: var(--text-3); }

/* --- Article body --------------------------------------------------------- */
.prose { font-size: var(--text-subheading); line-height: 1.85; }
.prose > * + * { margin-block-start: var(--sp-16); }
.prose h2 { font-size: var(--text-heading-sm); margin-block-start: var(--sp-48); }
.prose h3 { font-size: var(--text-subheading); margin-block-start: var(--sp-32); }
.prose img { border-radius: var(--radius-cards); margin-block: var(--sp-32); }
.prose ul, .prose ol { color: var(--text-2); }

/* Reading surface for single content pages: a white sheet on the canvas. */
.sheet { background: var(--surface); border-radius: var(--radius-cards); box-shadow: var(--shadow-subtle); padding: var(--sp-48) clamp(var(--sp-20), 5vw, var(--sp-64)); }

/* --- Breadcrumbs ---------------------------------------------------------- */
.crumbs { font-size: var(--text-body); color: var(--text-3); margin-block-end: var(--sp-16); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-8); list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "‹"; margin-inline-end: var(--sp-8); }
html[dir="ltr"] .crumbs li + li::before { content: "›"; }
.crumbs a { color: var(--brand); }
.crumbs a:hover { text-decoration: underline; }

/* --- Interior page header: a slim gradient band --------------------------- */
.pagehead { background: var(--gradient-hero); color: #fff; padding-block: var(--sp-48); }
.pagehead h1 { color: #fff; max-inline-size: 22ch; margin: var(--sp-8) 0 0; }
.pagehead p { color: rgba(255,255,255,.88); max-inline-size: 60ch; margin-block: var(--sp-12) 0; }
.pagehead .crumbs, .pagehead .crumbs a { color: rgba(255,255,255,.85); }
.pagehead .label, .pagehead .label--brand { color: rgba(255,255,255,.85); }
.pagehead .meta { color: rgba(255,255,255,.8); }
.pagehead .chip { background: rgba(255,255,255,.18); color: #fff; }

/* --- Filters: pill tabs --------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-8); margin-block-end: var(--sp-32); }
.filters a { padding: 8px var(--sp-16); border-radius: var(--radius-buttons); background: var(--surface); box-shadow: var(--shadow-subtle); font-size: var(--text-body); font-weight: var(--w-bold); color: var(--text); }
.filters a:hover { color: var(--brand); }
.filters a[aria-current="true"] { background: var(--signal-blue); color: #fff; }

/* --- Next step ------------------------------------------------------------ */
.next {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16); flex-wrap: wrap;
  margin-block-start: var(--sp-48); padding: var(--sp-20) var(--sp-24);
  background: var(--canvas-mist); border-radius: var(--radius-cards);
}
.next p { margin: 0; }
.next span { display: block; font-size: var(--text-caption); color: var(--text-3); font-weight: var(--w-bold); }
.next b { font-size: var(--text-subheading); }

/* --- Forms ---------------------------------------------------------------- */
.field { display: grid; gap: var(--sp-8); margin-block-end: var(--sp-16); }
.field label { font-size: var(--text-body); font-weight: var(--w-bold); }
input[type="text"], input[type="email"], input[type="search"], select, textarea {
  font: inherit; font-size: var(--text-body-lg); inline-size: 100%; padding: 10px 14px;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-inputs);
}
input:focus, select:focus, textarea:focus { border-color: var(--signal-blue); outline: 2px solid var(--blue-tint); outline-offset: 0; }
.search-form { display: flex; gap: var(--sp-8); }

/* --- Newsletter card ------------------------------------------------------ */
.newsletter { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-32); align-items: center; padding: var(--sp-40); background: var(--surface); border-radius: var(--radius-cards); box-shadow: var(--shadow-subtle); }
.newsletter h2 { font-size: var(--text-heading-sm); margin-block-end: var(--sp-8); }
.newsletter p { color: var(--text-3); margin: 0; }
.newsletter form { display: flex; gap: var(--sp-8); }

/* --- Empty & loading states ----------------------------------------------- */
.empty { padding: var(--sp-48) var(--sp-24); text-align: center; background: var(--surface); border-radius: var(--radius-cards); box-shadow: var(--shadow-subtle); }
.empty::before {
  content: "?"; display: grid; place-items: center; margin: 0 auto var(--sp-16);
  inline-size: 64px; block-size: 64px; border-radius: var(--radius-circles);
  background: var(--blue-tint); color: var(--signal-blue); font-size: 28px; font-weight: var(--w-extra);
}
.empty h3 { font-size: var(--text-subheading); margin-block-end: var(--sp-8); }
.empty p, .empty ul { color: var(--text-3); font-size: var(--text-body); }
.empty ul { list-style: none; padding: 0; margin-block-start: var(--sp-16); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-8); }
.empty ul li { margin: 0; }

.skel { background: #e6edf5; border-radius: 8px; position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: skel 1.3s infinite; }
@keyframes skel { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skel--line { block-size: .8em; margin-block-end: var(--sp-8); }
.skel--img { aspect-ratio: 16/9; border-radius: var(--radius-cards); }
.skel--circle { inline-size: 60px; block-size: 60px; border-radius: var(--radius-circles); }

/* --- Pagination: circles -------------------------------------------------- */
.pager { display: flex; justify-content: center; gap: var(--sp-8); margin-block-start: var(--sp-48); }
.pager .page-numbers {
  min-inline-size: 40px; block-size: 40px; padding-inline: var(--sp-12);
  display: grid; place-items: center; border-radius: var(--radius-buttons);
  background: var(--surface); box-shadow: var(--shadow-subtle);
  font-size: var(--text-body); font-weight: var(--w-bold); font-variant-numeric: tabular-nums;
}
.pager .page-numbers.current { background: var(--signal-blue); color: #fff; }
.pager a.page-numbers:hover { color: var(--brand); }

/* --- Footer: a light canvas band, as in the reference --------------------- */
.foot { background: var(--canvas-mist); border-block-start: 1px solid var(--rule); padding-block: var(--sp-48) var(--sp-32); font-size: var(--text-body); color: var(--text-3); margin-block-start: var(--sp-64); }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--sp-32); }
.foot h3 { font-size: var(--text-body); color: var(--text); margin-block-end: var(--sp-12); }
.foot__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-8); }
.foot__grid li { margin: 0; }
.foot a:hover { color: var(--brand); }
.foot__mission { max-inline-size: 36ch; margin-block: var(--sp-16); }
.foot__locale label { display: block; font-weight: var(--w-bold); color: var(--text); margin-block-end: 10px; }
.foot__locale select { inline-size: auto; min-inline-size: 180px; font-size: var(--text-body); }
.foot__end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-16); margin-block-start: var(--sp-40); padding-block-start: var(--sp-24); border-block-start: 1px solid var(--rule); font-size: var(--text-caption); }
.social { display: flex; gap: var(--sp-8); }
.social a { inline-size: 36px; block-size: 36px; display: grid; place-items: center; border-radius: var(--radius-circles); background: var(--surface); box-shadow: var(--shadow-subtle); color: var(--text); }
.social a:hover { color: var(--signal-blue); }
.social svg { inline-size: 16px; block-size: 16px; }
