/* restgain.com, card 42: the company site. Bone paper, petrol ink and fields, gold only for marks
   (the rule under the header, the wedge under the name): gold fails as text on the bone (palette
   chosen by the owner on 18 Nov 2026), whole sections in flat fields. One typeface, five sizes, one column line (the axis) at
   40% of the width on wide screens. No scripts, no outside files. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
/* Card 43: Arabic letters only (chosen by the owner on 20 Nov 2026); the name, the numbers and
   every Latin word stay in Bricolage. Only a page with Arabic text fetches the file. */
@font-face {
  font-family: "Readex Pro";
  src: url("/fonts/readex-pro-arabic.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  color-scheme: light;
  --bg: #efe9dc;
  --surface: #e5ddcc;
  --ink: #0e3b43;
  --muted: #4a5568;
  --accent: #1a5560;
  --accent-hover: #0e3b43;
  --accent-ink: #efe9dc;
  --dark: #1a5560;
  --field: #1a5560;
  --dark-ink: #efe9dc;
  --dark-muted: #d4e0df;
  --gold: #c9a24a;
  --field-2: #0e3b43;
  --paper: #f8f4ea;
  --line: rgb(14 59 67 / 0.14);
  --gap-blk: clamp(3rem, 1.5rem + 5vw, 6rem);
  --select: #ead9a6;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --step-display: clamp(3.25rem, 0.5rem + 8.4vw, 8.5rem);

  --margin: clamp(1.25rem, 3vw, 2rem);
  --gap-section: clamp(4.5rem, 2rem + 8vw, 10rem);
  --reading: 40rem;
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem;
  scrollbar-color: var(--field) var(--surface); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: rgb(14 59 67 / 0.12);
}
a, summary, .button { touch-action: manipulation; }
h1, h2, h3 { font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: var(--step-head); margin: 0; }
h2 { font-size: var(--step-head); margin: 0 0 1.5rem; }
h3 { font-size: var(--step-lead); margin: 0 0 0.4rem; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.25em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }
:where(a) { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
::selection { background: var(--select); color: var(--ink); }
time, .count { font-variant-numeric: tabular-nums; }

.frame { width: 100%; max-width: 92rem; margin-inline: auto; padding-inline: var(--margin); }
.skip { position: absolute; inset-inline-start: var(--margin); top: -10rem; z-index: 20; padding: 0.6rem 1rem;
  background: var(--field); color: var(--bg); font-weight: 600; }
.skip:focus-visible { outline-color: var(--ink); }
.skip:focus { top: 0.75rem; }

/* Header: wordmark and plain links; below 40rem a Menu button that opens without script. */
.site-header { position: relative; z-index: 10; border-bottom: 3px solid var(--gold); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.4em; font-size: var(--step-lead);
  font-weight: 700; letter-spacing: -0.04em; text-decoration: none; }
/* The mark, "Pause and rise": a pause bar and a gold arrow going up. */
.mark { width: 1.35em; height: 1.35em; flex: none; color: var(--field); }
.site-header ul { list-style: none; margin: 0; padding: 0; }
.nav-wide ul { display: flex; gap: 0.25rem 1.75rem; }
.nav-wide li, .nav-menu li { margin: 0; }
.site-header nav a { display: inline-block; padding-block: 0.6rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.nav-menu { display: none; }
.nav-menu summary { list-style: none; cursor: pointer; padding: 0.55rem 1rem; min-height: 2.75rem;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover { background: var(--accent-hover); }
.nav-menu summary:focus-visible { outline-color: var(--ink); }
.nav-menu[open] summary { background: var(--dark); color: var(--dark-ink); }
.nav-menu nav { position: absolute; inset-inline: 0; top: 100%; padding: 0.5rem var(--margin) 1.25rem;
  background: var(--dark); color: var(--dark-ink); }
.nav-menu nav a { display: block; padding-block: 0.75rem; font-size: var(--step-lead);
  font-weight: 600; }
@media (max-width: 40rem) {
  .nav-wide { display: none; }
  .nav-menu { display: block; }
}

/* The axis: a side zone (40%) and a reading column hanging from the line. */
.axis, .page-head { display: grid; gap: 1.5rem; }
.reading { min-width: 0; }
.side { min-width: 0; }
@media (min-width: 64rem) {
  .axis, .page-head { grid-template-columns: 40% minmax(0, 1fr); gap: 0; }
  .side { padding-inline-end: 3rem; }
  .reading { max-width: var(--reading); }
  .page-head > :last-child { grid-column: 2; }
  .page-head .crumbs { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 0.5rem; }
  .side .toc { position: sticky; top: 1.5rem; }
}
.page-head { padding-top: clamp(2.5rem, 1rem + 5vw, 6rem); padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.page-head h1 { max-width: 22ch; }
main > .axis, .article > .axis { padding-bottom: var(--gap-section); }

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  font-size: var(--step-small); color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; padding-inline: 0.5em; }
.side-note { font-size: var(--step-small); color: var(--muted); }
.side-note a { color: var(--ink); }
.lede, .lead { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; }
.lead p { margin-bottom: 0.75em; }
.meta { font-size: var(--step-small); color: var(--muted); }
.empty { color: var(--muted); }
.list-title { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }

.toc { font-size: var(--step-small); }
.toc h2 { font-size: var(--step-small); letter-spacing: 0; margin: 0 0 0.5rem; color: var(--muted); }
.toc ol { padding-inline-start: 1.4em; margin: 0; }
.toc li { margin-bottom: 0.45em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 63.99rem) {
  .toc { background: var(--surface); padding: 1rem 1.25rem; }
}

/* Article text. */
.body h2 { font-size: var(--step-lead); letter-spacing: -0.02em; margin: 2.75rem 0 0.9rem; }
.body h3 { font-size: var(--step-body); letter-spacing: 0; margin: 1.75rem 0 0.4rem; }
.body > :first-child { margin-top: 0; }
.body blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--surface); }
.body code { font-size: 0.9em; background: var(--surface); padding: 0.1em 0.3em; }
.disclosure { font-size: var(--step-small); background: var(--surface); padding: 0.85rem 1.1rem;
  margin-bottom: 2.5rem; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
@media (min-width: 64rem) {
  /* Wide tables use the whole reading column (60% of the frame), past the 40rem text measure. */
  .article .table-scroll { width: min(56rem, calc((min(100vw, 92rem) - 2 * var(--margin)) * 0.6 - 1rem)); }
}
table { width: 100%; border-collapse: collapse; font-size: var(--step-small); line-height: 1.45; }
.table-scroll table { min-width: 36rem; }
caption { text-align: start; font-weight: 600; padding-bottom: 0.6rem; caption-side: top; }
th, td { padding: 0.7rem 0.8rem; text-align: start; vertical-align: top;
  border-bottom: 1px solid rgb(43 42 38 / 0.18); } /* taste-skill-ignore: rows of real data tables */
thead th { background: var(--field); color: var(--bg); border-bottom: 0; }
tbody tr:nth-child(even) { background: rgb(43 42 38 / 0.04); }
tbody th { font-weight: 600; }
.facts-table th { width: 38%; }

/* Diagrams Core draws from a guide's own table or steps (website/diagrams.py). */
.diagram { margin: 2rem 0 0.75rem; max-width: 30rem; }
.diagram svg { display: block; width: 100%; height: auto; font-family: inherit; font-size: 13px;
  fill: var(--ink); }
.diagram figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 0.5rem; }
.diagram .d-head { font-weight: 600; }
.diagram .d-small { font-size: 11px; }
.diagram .d-num { fill: var(--accent-ink); font-weight: 600; }
.diagram .d-yes { fill: var(--accent); }
.diagram .d-no { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.diagram .d-band { fill: var(--surface); }
.diagram .d-line { stroke: var(--accent); stroke-width: 2; }

.button { display: inline-block; padding: 0.85rem 1.4rem; min-height: 2.75rem;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
  transition: transform 160ms var(--ease-out); }
.button:hover { background: var(--accent-hover); }
.button:active { transform: translateY(1px); }
.affiliate-slot { margin: 2rem 0; padding: 1.25rem 1.4rem; background: var(--surface); }
.affiliate-slot p { margin: 0.25rem 0; }
.slot-note { font-size: var(--step-small); color: var(--muted); margin-top: 0.75rem !important; }
.slot-note a { color: var(--ink); }

.sources { background: var(--surface); padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.sources h2 { font-size: var(--step-head); }
.sources ol { padding-inline-start: 1.4em; }
.sources li { margin-bottom: 0.6em; }

/* Company pages (owner decision 18 Nov 2026, design review): drawn pictures instead of long text.
   Petrol and bone fields, the gold line as the one moving mark, buttons filled gold with dark petrol text
   (gold never carries text on the bone). Icons, covers and the example screen are inline SVG and
   HTML from visuals.py; no outside file, no script. */
.blk { padding-block: var(--gap-blk); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--step-small);
  font-weight: 650; letter-spacing: 0.02em; margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 1.75rem; height: 3px; background: var(--gold); }
.blk > h2 { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.meta { font-size: var(--step-small); color: var(--muted); }
.more-link { margin: 2rem 0 0; font-weight: 600; }
.more-link a, .tile .more { display: inline-flex; align-items: center; gap: 0.5rem; }
svg.i { stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round;
  stroke-linejoin: round; width: 1.25rem; height: 1.25rem; flex: none; }

.btn { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3.25rem;
  padding: 0.8rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform 250ms var(--ease-out), background-color 200ms; }
.btn.pri { background: var(--field); color: var(--bg); }
.btn.pri:hover { background: var(--field-2); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #d6b15a; }
.btn.ghost { border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--field); color: var(--bg); }
.btn:hover { transform: translateY(-2px); }
.btn.fit { width: max-content; }
.bar-cta { min-height: 2.75rem; padding: 0.5rem 1.2rem; margin-inline-start: 1rem; }
.nav-wide { margin-inline-start: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.sticky { display: none; }

/* Hero: words on the left, a drawn screen on the right with the gold line climbing behind it. */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--gap-blk); }
.hero.compact { padding-bottom: 0; }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.045em;
  margin-bottom: 1.4rem; max-width: 12ch; }
.hero-lead { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.hero > .eyebrow + h1 { max-width: 18ch; }
.stage { position: relative; }
.panel { position: absolute; inset-block: 8% -5%; inset-inline: 14% -3%; background: var(--field); border-radius: 28px; }
.rise { position: absolute; inset-block: -6% -8%; inset-inline: -8% -4%; width: 112%; height: 114%; }
.rise path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; }
.rise circle { fill: var(--gold); }
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}
@media (max-width: 63.99rem) {
  .panel { inset-block: 10% 2.8rem; inset-inline: 6% -3%; }
  }

/* The example school dashboard. */
.app { position: relative; background: var(--paper); color: var(--ink); border-radius: 18px;
  overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgb(14 59 67 / 0.45); }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 0.7rem 1rem; background: #fff;
  border-bottom: 1px solid #e3ddcf; font-size: 0.8rem; color: var(--muted); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8d0be; }
.app-bar span { margin-inline-start: 0.6rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; padding: 1rem 1rem 0.5rem; }
.kpi { border: 1px solid #e3ddcf; border-radius: 12px; padding: 0.6rem 0.8rem; background: #fff; }
.kpi small { display: block; font-size: 0.72rem; color: var(--muted); }
.kpi strong { font-size: 1.3rem; letter-spacing: -0.02em; }
.kpi svg { display: block; width: 2.25rem; height: 2.25rem; margin: 0.35rem auto; }
.kpi.plus { display: grid; place-items: center; font-size: 1.6rem; font-weight: 600; }
.icons-grid { grid-template-columns: repeat(3, 1fr); padding-bottom: 1rem; }

/* Three parts: unequal tiles, the product tile the largest. */
.bento, .cards, .feat, .three, .steps, .pillars { list-style: none; margin: 0; padding: 0; }
.bento li, .cards li, .feat li, .three li, .steps li, .pillars li { margin: 0; }
.bento { display: grid; gap: 1.1rem; }
.tile a { display: flex; flex-direction: column; gap: 1rem; height: 100%; text-decoration: none;
  padding: clamp(1.4rem, 2.5vw, 2.2rem); border-radius: 20px; overflow: hidden;
  transition: transform 300ms var(--ease-out); }
.tile a:hover { transform: translateY(-4px); }
.tile h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin: 0; }
.tile p { margin: 0; }
.tile .tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  opacity: 0.8; }
.tile .more { margin-top: auto; font-weight: 600; }
.tile.navy a { background: var(--field); color: var(--bg); }
.tile.paper a { background: var(--paper); border: 1px solid var(--line); }
.tile.sand a { background: var(--surface); }
.icons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ico { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 16px;
  background: var(--bg); }
.ico svg { width: 2.1rem; height: 2.1rem; }
.ico.dark { background: var(--field); color: var(--bg); }
.mini { display: grid; gap: 0.5rem; }
.mini i { display: block; height: 12px; border-radius: 6px; background: rgb(14 59 67 / 0.14); }
.mini i:nth-child(1) { width: 92%; } .mini i:nth-child(2) { width: 70%; }
.mini i.gd { background: var(--gold); width: 38%; height: 8px; }
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(3, 1fr); }
}

/* How we work: four steps on one rising line. */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.steps::before { content: ""; position: absolute; inset-inline: 5%; top: 2.1rem; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--field)); border-radius: 2px; }
.step { position: relative; }
.step .n { display: grid; place-items: center; position: relative; width: 4.25rem; height: 4.25rem;
  border-radius: 50%; background: var(--field); color: var(--bg); border: 5px solid var(--bg); }
.step .n svg { width: 1.9rem; height: 1.9rem; }
.step h3 { margin: 1rem 0 0.3rem; font-size: 1.3rem; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 63.99rem) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 1.6rem; }
  .steps::before { display: none; }
}

/* Guide cards with a drawn cover. */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.gcard a { display: flex; flex-direction: column; height: 100%; text-decoration: none; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  transition: transform 300ms var(--ease-out), box-shadow 300ms; }
.gcard a:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgb(14 59 67 / 0.5); }
.cover { display: block; width: 100%; aspect-ratio: 2 / 1; }
.cover.big { aspect-ratio: 4 / 3; border-radius: 20px; }
.gc-body { display: grid; gap: 0.7rem; padding: 1.2rem 1.3rem 1.4rem; }
.gc-body h3 { margin: 0; font-size: 1.25rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; width: max-content; padding: 0.25rem 0.7rem;
  border-radius: 999px; background: var(--select); font-size: 0.8rem; font-weight: 700; }
.chip svg { width: 0.9rem; height: 0.9rem; }
.chip-o { display: inline-flex; padding: 0.3rem 0.8rem; border: 2px solid var(--ink); border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; }
@media (max-width: 63.99rem) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) {
  .cards { grid-template-columns: 1fr; }
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.9rem;
    margin-inline-end: calc(var(--margin) * -1); padding-inline-end: var(--margin); padding-bottom: 0.6rem; }
  .rail .gcard { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Products and Services tiles. */
.feat { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.f { grid-column: span 2; display: grid; gap: 0.8rem; align-content: start; padding: 1.5rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  transition: transform 300ms var(--ease-out); }
.f:hover { transform: translateY(-4px); }
.f.wide { grid-column: span 3; }
.f h3 { margin: 0; }
.f p { margin: 0; color: var(--muted); }
.f.soon { background: transparent; border: 2px dashed rgb(14 59 67 / 0.4); }
.f.soon p a { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.1rem;
  border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; text-decoration: none; }
.chips a:hover, .chips a[aria-current] { background: var(--field); color: var(--bg); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.check { display: grid; gap: 0.6rem; align-content: start; padding: 1.5rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 20px; }
.check .ico { background: var(--select); }
.check h3 { margin: 0; font-size: 1.2rem; }
@media (max-width: 63.99rem) {
  .feat { grid-template-columns: 1fr 1fr; }
  .f, .f.wide { grid-column: auto; }
  .three { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) { .feat { grid-template-columns: 1fr; } }

/* About: the three parts as three fields. */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 20px; overflow: hidden; }
.pillars a { display: grid; gap: 0.8rem; align-content: start; height: 100%; padding: 2rem;
  text-decoration: none; }
.pillars svg { width: 3rem; height: 3rem; }
.pillars h2 { font-size: 1.6rem; margin: 0; }
.pillars p { margin: 0; }
.pillars li:nth-child(1) a { background: var(--field); color: var(--bg); }
.pillars li:nth-child(2) a { background: var(--field-2); color: var(--bg); }
.pillars li:nth-child(3) a { background: var(--surface); }
@media (max-width: 63.99rem) { .pillars { grid-template-columns: 1fr; } }

/* Blog: featured guide, stat strip, badges. */
.hero .chips { margin-top: 2rem; }
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; padding: 1.5rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; }
.feature-text { display: grid; gap: 1rem; justify-items: start; }
.feature h2 { margin: 0; }
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: 1.6rem 2rem; background: var(--surface); border-radius: 20px; }
.strip p { margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.stat strong { display: block; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); letter-spacing: -0.04em;
  line-height: 1; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--select); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 0; }
.art-head { display: grid; gap: 2rem; align-items: center; padding-top: clamp(2.5rem, 1rem + 5vw, 5rem);
  padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.art-head h1 { max-width: 18ch; }
@media (min-width: 64rem) { .art-head { grid-template-columns: 1.3fr 0.8fr; gap: 3rem; } }
@media (max-width: 63.99rem) { .feature { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Contact band, closing every company page. */
.band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem;
  align-items: center; padding: clamp(2rem, 5vw, 4.5rem); background: var(--field); color: var(--bg);
  border-radius: 28px; }
.band::after { content: ""; position: absolute; inset-inline-end: -60px; bottom: -60px; width: 260px; height: 260px;
  border: 5px solid var(--gold); border-radius: 50%; opacity: 0.5; }
.band h2 { margin: 0; }
.band p { margin: 1rem 0 0; color: var(--dark-muted); }
.band .cta { position: relative; z-index: 1; justify-content: flex-end; margin: 0; }
@media (max-width: 63.99rem) { .band { grid-template-columns: 1fr; } .band .cta { justify-content: flex-start; } }

@media (max-width: 40rem) {
  .bar-cta { display: none; }
  .sticky { display: flex; position: fixed; inset-inline: var(--margin); bottom: 0.9rem;
    z-index: 30; justify-content: center; box-shadow: 0 14px 30px -10px rgb(14 59 67 / 0.6); }
  body { padding-bottom: 5.5rem; }
}

.big-code { font-size: var(--step-display); font-weight: 600; letter-spacing: -0.05em;
  line-height: 0.9; margin: 0 0 1rem; }
.plain-list { padding-inline-start: 1.2em; }

/* Footer: the dark field, link columns above and the name across the full width. */
.site-footer { background: var(--dark); color: var(--dark-ink); padding-top: clamp(3rem, 2rem + 4vw, 6rem);
  overflow: hidden; }
.footer-columns { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  font-size: var(--step-small); }
.footer-columns h2 { font-size: var(--step-body); letter-spacing: 0; margin: 0 0 0.75rem; }
.footer-columns ul { list-style: none; padding: 0; }
.footer-columns li { margin-bottom: 0.2rem; }
.footer-columns li a { display: inline-block; padding-block: 0.25rem; }
.footer-columns p { color: var(--dark-muted); }
.footer-columns p a { color: var(--dark-ink); }
.footer-legal { font-size: var(--step-small); color: var(--dark-muted); padding-block: 1.25rem 1.75rem; margin: 0; }

/* Motion: the gold line draws once behind the hero; links and buttons answer hover and press.
   Content never waits on motion: none of it runs for reduced motion, and nothing is hidden
   before it plays. */
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .rise path { stroke-dasharray: 1200; stroke-dashoffset: 1200;
    animation: draw 1600ms var(--ease-out) 200ms forwards; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .skip, .toc, .affiliate-slot .button, .sticky { display: none; }
  body { background: #fff; }
}

/* Products: one small card per product; its own website holds the details. */
.pcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.pcard { display: grid; gap: 0.7rem; align-content: start; padding: 1.6rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 20px; margin: 0; }
.pcard h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.pcard p { margin: 0; }
.pcard .domain { font-size: var(--step-small); color: var(--muted); }
.pcard .btn { margin-top: 0.6rem; }
.pcard.soon { background: transparent; border: 2px dashed rgb(14 59 67 / 0.4); }
.pcard.soon a { font-weight: 600; }

/* Guides (owner decision 18 Nov 2026): at most 300 words, one column, facts shown as blocks
   (blocks.py adds the classes). Text stays at a reading measure; blocks use the full frame. */
.g-head { display: grid; gap: 1.5rem; align-items: center; padding-block: 1.5rem 2.5rem; }
.g-head .crumbs { margin-bottom: 1.2rem; }
.g-head h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem); letter-spacing: -0.035em; line-height: 1.02;
  margin: 0.8rem 0; max-width: 16ch; }
.g-lead { font-size: var(--step-lead); line-height: 1.35; margin: 0; max-width: 36ch; }
.g-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 1.2rem 0 0; font-size: var(--step-small);
  color: var(--muted); }
.g-meta a { color: var(--ink); }
@media (min-width: 60rem) { .g-head { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; padding-block: 2.5rem 3.5rem; } }
.g-body { padding-bottom: var(--gap-blk); }
.g-body .disclosure { max-width: 46rem; }
.guide .body > p, .guide .body > ol, .guide .body > ul:not([class]), .guide .body > h3,
.guide .body > blockquote { max-width: 46rem; }
.guide .body h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -0.025em; margin: 3.5rem 0 1.2rem; }
.guide .article .table-scroll, .guide .table-scroll { width: auto; }
.g-short { background: var(--field); color: var(--bg); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1rem; }
.guide .body .g-short h2 { font-size: var(--step-small); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gold); margin: 0 0 1rem; }
.g-short ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.g-short li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; margin: 0;
  font-size: var(--step-lead); line-height: 1.35; }
.g-short li::before { content: counter(s); font-weight: 700; color: var(--gold); }
@media (min-width: 60rem) { .g-short ul { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .g-short li { grid-template-columns: 1fr; gap: 0.4rem; } }
.g-figs, .g-cards, .g-check { list-style: none; padding: 0; margin: 1.2rem 0; }
.g-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 1rem; }
.g-figs li { margin: 0; border-top: 4px solid var(--gold); background: var(--paper); border-radius: 0 0 18px 18px;
  padding: 1.1rem 1.2rem 1.2rem; font-size: var(--step-small); line-height: 1.4; }
.g-figs strong { display: block; font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); line-height: 1; letter-spacing: -0.04em;
  color: var(--field); margin-bottom: 0.5rem; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.g-cards li { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; }
.g-cards li::before { content: ""; display: block; width: 44px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--field)); margin-bottom: 1rem; }
.g-cards strong { display: block; font-size: var(--step-lead); margin-bottom: 0.3rem; }
.g-check { max-width: 46rem; }
.g-check li { position: relative; margin: 0; padding-block: 0.85rem; padding-inline: 2.6rem 0; border-bottom: 1px solid var(--line); }
.g-check li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.8rem; width: 26px; height: 26px;
  border-radius: 8px; background: var(--gold); }
.g-check li::after { content: ""; position: absolute; inset-inline-start: 9px; top: 1.1rem; width: 6px; height: 11px;
  border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.guide .body .g-note, .g-note { max-width: 46rem; background: var(--surface); border-radius: 22px;
  padding: 1.4rem 1.6rem; border-inline-start: 6px solid var(--gold); }
.g-src { margin-top: 3rem; border-block: 1px solid var(--line); padding: 1rem 0; font-size: var(--step-small);
  max-width: 46rem; }
.g-src summary { cursor: pointer; font-weight: 600; }
.g-src ol { margin: 0.8rem 0 0; }
.guide .affiliate-slot { max-width: 46rem; border-radius: 22px; }
.guide .affiliate-slot .button { border-radius: 999px; background: var(--gold); color: var(--ink); padding: 0.8rem 1.4rem; }
.guide .affiliate-slot .button:hover { background: #d9b45e; }

/* Arabic pages (card 43): the same sheet, read from the right. Sides follow the text direction
   through logical properties above; here only what a direction cannot give. Arabic letters join,
   so no tracking, and they carry marks above and below, so lines sit further apart. */
html[lang="ar"] { --font: "Readex Pro", "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; }
[dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; }
[dir="rtl"] .hero h1 { line-height: 1.3; }
[dir="rtl"] :not(.wordmark) { letter-spacing: 0; }
[dir="rtl"] svg.i:has(use[href="#i-arrow"]), [dir="rtl"] .rise { transform: scaleX(-1); }
[dir="rtl"] .steps::before { background: linear-gradient(270deg, var(--gold), var(--field)); }
