/* Tenderrizer public website.
   The look borrows from the documents the product handles: paper, ink, ruled lines,
   clause numbers and exhibits. The one colour is the amber of the brand, used as a
   highlighter the way the logo marks "rizer". */

@import url("fonts/fonts.css");

:root {
  --paper: #f7f4ec;
  --paper-2: #efe9dc;
  --paper-3: #e6dfcf;
  --card: #fffdf8;
  --ink: #1d2125;
  --ink-2: #474d54;
  --ink-3: #767c83;
  --rule: #d8d0bf;
  --rule-strong: #1d2125;
  --amber: #ffc107;
  --amber-soft: #ffe08a;
  --amber-ink: #8a5c00;
  --night: #23282d;
  --night-2: #2e343a;
  --night-ink: #f1ede3;
  --night-mute: #a9aeb3;
  --danger: #b3261e;
  --ok: #2f6b3a;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: 16px;
  color-scheme: light;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber-ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-300%); background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { transform: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ type */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-stretch: 88%;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.35rem; line-height: 1.15; font-weight: 750; letter-spacing: -0.005em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.55; color: var(--ink-2); max-width: 44em; }
.mute { color: var(--ink-3); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* The highlighter, as in the logo's "rizer". */
mark, .hl {
  background: linear-gradient(100deg, rgba(255, 193, 7, 0) 0.4%, var(--amber) 2.2%, var(--amber) 96%, rgba(255, 193, 7, 0) 99.6%);
  color: inherit;
  padding: 0 0.1em;
  margin: 0 -0.04em;
  border-radius: 0.12em 0.3em 0.16em 0.24em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* A clause number, like the numbering in a tender document. */
.clause {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 18px;
  flex-wrap: wrap;
  row-gap: 4px;
}
.clause b { font-weight: 500; color: var(--ink); }

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, 0.94);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(6px)) {
  .top { background: rgba(247, 244, 236, 0.86); backdrop-filter: blur(6px); }
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; max-width: 1360px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: auto; height: 38px; }
.brand .word { font-family: var(--display); font-stretch: 92%; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand .word mark { padding: 0 0.08em; }

.menu { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; }
.nav { display: flex; align-items: center; gap: 18px; margin-inline-start: 8px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }

.top .actions { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; flex-shrink: 0; white-space: nowrap; }
.top .signin { text-decoration: none; font-size: 15px; font-weight: 700; }
.top .signin:hover { text-decoration: underline; }

.menu-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--ink); border-radius: 2px; padding: 7px 10px; font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); cursor: pointer; }

@media (max-width: 1240px) {
  .menu { display: none; }
  .menu-toggle { display: inline-block; }
  .top.open .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-strong);
    padding: 8px var(--gutter) 22px;
  }
  .top.open .nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .top.open .nav a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .top.open .actions { margin: 0; justify-content: flex-start; gap: 18px; flex-wrap: wrap; }
}
/* French labels run longer: the compact menu comes in sooner. */
@media (max-width: 1330px) {
  html[lang="fr"] .menu { display: none; }
  html[lang="fr"] .menu-toggle { display: inline-block; }
  html[lang="fr"] .top.open .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-strong);
    padding: 8px var(--gutter) 22px;
  }
  html[lang="fr"] .top.open .nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  html[lang="fr"] .top.open .nav a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  html[lang="fr"] .top.open .actions { margin: 0; justify-content: flex-start; gap: 18px; flex-wrap: wrap; }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 15px 22px;
  border-radius: 2px;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-small { padding: 10px 14px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.btn-small:hover { box-shadow: 3px 3px 0 var(--ink); }
.arrow { font-family: var(--mono); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ------------------------------------------------------------------ hero */

.hero { padding: 64px 0 40px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1040px) {
  .hero { padding: 88px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}
.hero h1 { margin: 10px 0 26px; max-width: 12em; }
.hero .lead { margin-bottom: 30px; }
/* The promise under the headline, boxed like a note clipped to the front of a tender. */
.hero .promise {
  font-family: var(--display);
  font-stretch: 92%;
  font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.32;
  max-width: 30em;
  margin: -4px 0 26px;
  padding: 14px 18px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-inline-start: 8px solid var(--amber);
  box-shadow: 4px 4px 0 var(--paper-3);
}
.hero .promise .promise-more { display: block; margin-top: 8px; font-weight: 600; font-size: 0.86em; color: var(--ink-2); }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero .cta .quiet { font-size: 15px; color: var(--ink-2); }

/* A requirement row, set like the compliance matrix it comes from. */
.req-card { background: var(--card); border: 1px solid var(--rule-strong); box-shadow: 6px 6px 0 var(--paper-3); position: relative; }
.req-card header { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule-strong); }
.req-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: 14.5px; line-height: 1.45; }
.req-row:last-of-type { border-bottom: 0; }
.req-row .id { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 2px; }
.req-row .src { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.req-row .met { display: block; margin-top: 6px; color: var(--ink-2); }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border: 1px solid currentColor; border-radius: 2px; margin-inline-end: 6px; }
.tag-ok { color: var(--ok); }
.tag-input { color: var(--danger); }
.tag-amber { color: var(--amber-ink); }

.stamp {
  position: absolute;
  inset-inline-end: -12px;
  bottom: -26px;
  transform: rotate(-7deg);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-ink);
  border: 2px solid var(--amber-ink);
  border-radius: 4px;
  padding: 8px 12px;
  background: rgba(255, 253, 248, 0.92);
  line-height: 1.3;
  text-align: center;
}
.stamp strong { display: block; font-size: 15px; letter-spacing: 0.16em; }
@media (max-width: 560px) { .stamp { inset-inline-end: 8px; } }

/* ------------------------------------------------------------ the ledger */

.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--rule-strong); margin-top: 56px; }
@media (min-width: 900px) { .ledger { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ledger div { padding-block: 16px 18px; padding-inline: 0 16px; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .ledger div { border-bottom: 0; border-inline-end: 1px solid var(--rule); padding-inline-start: 16px; } .ledger div:first-child { padding-inline-start: 0; } .ledger div:last-child { border-inline-end: 0; } }
.ledger .n { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; display: block; margin-bottom: 8px; }
.ledger .t { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.ledger-note { font-size: 13.5px; color: var(--ink-3); margin: 12px 0 0; }

/* -------------------------------------------------------------- sections */

.section { padding: 88px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 720px) { .section { padding: 64px 0; } }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 48px; margin-bottom: 48px; }
@media (min-width: 1000px) { .section-head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; } }
.section-head h2 { max-width: 13em; }
.section-head .lead { margin: 0; }

.paper-2 { background: var(--paper-2); }

/* ---------------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1000px) { .steps { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.step-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--rule-strong); counter-reset: step; }
.step-list li { border-bottom: 1px solid var(--rule); }
.step-list h3 { font-size: 1.25rem; }
.step-list button {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 18px 0;
  cursor: pointer;
  font: inherit;
}
.step-list button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.step-list .no { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); padding-top: 5px; }
.step-list p { margin: -6px 0 0; padding-block: 0 20px; padding-inline: 64px 0; color: var(--ink-2); font-size: 15.5px; display: none; }
.step-list li.on .no { color: var(--amber-ink); }
.step-list li.on button > span:last-child { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.step-list li.on p, .no-js .step-list p { display: block; }
.steps .exhibits { position: sticky; top: 100px; }
.steps figure[hidden] { display: none; }

/* ------------------------------------------------------------- exhibits */

figure.exhibit { margin: 0; }
.exhibit .frame { background: var(--card); border: 1px solid var(--rule-strong); padding: 6px; box-shadow: 8px 8px 0 var(--paper-3); }
.paper-2 .exhibit .frame { box-shadow: 8px 8px 0 var(--paper-3); }
.exhibit .frame img { border: 1px solid var(--rule); }
.exhibit figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.exhibit figcaption .label { color: var(--amber-ink); padding-top: 2px; white-space: nowrap; }

/* ------------------------------------------------------------- the tour */

.player { position: relative; background: #111; aspect-ratio: 16 / 9; }
.player video { display: block; width: 100%; height: 100%; background: #111; }
.player .play {
  position: absolute;
  inset-inline-start: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 16px 18px;
  background: var(--amber);
  color: var(--ink);
  border: 1.5px solid #000;
  border-radius: 2px;
  box-shadow: 4px 4px 0 #000;
  font: 700 17px var(--body);
  text-align: start;
  cursor: pointer;
}
.player .play:hover { box-shadow: 5px 5px 0 #000; transform: translate(-1px, -1px); }
.player .play small { display: block; font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.player .play .tri { width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink); }
.player.playing .play, .no-js .player .play { display: none; }
@media (max-width: 560px) { .player .play small { display: none; } .player .play { inset-inline-start: 12px; bottom: 12px; padding: 11px 14px; font-size: 15px; gap: 10px; } .player .play .tri { border-width: 8px 0 8px 13px; } }

/* ---------------------------------------------------------- two columns */

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } .split.wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .split.wide-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* A ruled list: what a bid is rejected for, what the product does. */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--rule-strong); }
.ruled li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ruled .k { font-family: var(--mono); font-size: 12.5px; color: var(--amber-ink); padding-top: 3px; }
.ruled strong { display: block; font-weight: 700; margin-bottom: 2px; }
.ruled span.d { color: var(--ink-2); font-size: 15.5px; }

/* Country coverage, set like an index at the back of a book. */
.index { columns: 2; column-gap: 28px; font-size: 14.5px; line-height: 1.9; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); padding-top: 10px; }
@media (min-width: 720px) { .index { columns: 3; } }
@media (min-width: 1100px) { .index { columns: 4; } }
.index li { break-inside: avoid; border-bottom: 1px dotted var(--rule); }

/* The globe beside the country index. The countries are the amber of the brand on a dark
   sphere with the site's offset shadow; a card with the flag and a few facts follows the
   pointer, or points at the country picked from the list. */
.coverage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 56px; margin-top: 72px; align-items: center; }
@media (min-width: 1000px) { .coverage { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .coverage .index { columns: 3; } }
.globe { position: relative; margin: 0; }
.no-js .globe, .globe[hidden] { display: none; }
.globe-stage { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin: 0 auto; touch-action: pan-y; }
.globe-stage:empty::before { content: ""; position: absolute; inset: 1.3% 2.7% 2.7% 1.3%; border-radius: 50%; background: var(--night); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--paper-3); }
.globe-stage svg { display: block; width: 100%; height: 100%; cursor: grab; -webkit-user-select: none; user-select: none; }
.globe-stage svg.dragging { cursor: grabbing; }
.globe .g-shadow { fill: var(--paper-3); }
.globe .g-sphere { fill: var(--night); }
.globe .g-grat { fill: none; stroke: rgba(241, 237, 227, 0.08); stroke-width: 0.8; }
.globe .g-land { fill: #454c53; }
.globe .g-borders { fill: none; stroke: var(--night); stroke-width: 0.6; stroke-linejoin: round; pointer-events: none; }
.globe .g-on { fill: var(--amber); stroke: var(--amber-ink); stroke-width: 0.6; stroke-linejoin: round; cursor: pointer; transition: fill 0.15s ease; }
.globe .g-dot { fill: var(--amber); stroke: var(--night); stroke-width: 1.5; cursor: pointer; }
.globe .g-on.hot, .globe .g-dot.hot { fill: var(--card); stroke: var(--amber); stroke-width: 1.5; }
.globe .g-rim { fill: none; stroke: var(--ink); stroke-width: 1.5; pointer-events: none; }
.globe .g-shine { pointer-events: none; }
.globe figcaption { margin: 14px auto 0; max-width: 34em; text-align: center; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.globe-card { position: absolute; z-index: 5; top: 0; left: 0; width: 280px; max-width: calc(100% - 8px); background: var(--card); border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--amber); padding: 14px 16px 12px; font-size: 14px; line-height: 1.4; pointer-events: none; }
.globe-card[hidden] { display: none; }
/* On a narrow screen the card sits under the globe instead of over it. */
@media (max-width: 999px) { .globe-card { position: static; width: auto; max-width: 540px; margin: 18px auto 0; pointer-events: auto; } }
.globe-card header { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--rule-strong); }
.globe-card header img { width: 40px; height: 30px; flex-shrink: 0; border: 1px solid var(--rule); object-fit: cover; }
.globe-card header strong { display: block; font-family: var(--display); font-stretch: 92%; font-weight: 800; font-size: 1.2rem; line-height: 1.1; }
.globe-card header .label { font-size: 11px; }
.globe-card dl { margin: 0; display: grid; grid-template-columns: minmax(0, 92px) minmax(0, 1fr); gap: 6px 12px; }
.globe-card dt { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.globe-card dd { margin: 0; color: var(--ink); }
.globe-pick { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; }
.globe-pick:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.index li.on { border-bottom-color: var(--amber); }
.index li.on .globe-pick, .globe-pick:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 4px; }
html[lang="ar"] .globe-card dt { font-family: var(--body); letter-spacing: 0; font-size: 12px; }
html[lang="ar"] .globe-card header strong { font-stretch: normal; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .globe .g-on { transition: none; } }

.coverage + .examples { margin-top: 64px; }
/* Around the bid: the assistant and the features on the left, the assistant's panel beside them. */
.around { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 1000px) {
  .around { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-areas: "note shot" "features shot"; column-gap: 56px; row-gap: 0; }
  .around .assistant-note { grid-area: note; }
  .around .assistant-shot { grid-area: shot; }
  .around .features { grid-area: features; }
}
.around .features { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .around .features { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; } }
.assistant-note { margin: 0 0 32px; padding: 22px 26px 20px; background: var(--card); border: 1.5px solid var(--ink); border-inline-start: 8px solid var(--amber); box-shadow: 6px 6px 0 var(--paper-3); }
.assistant-note .label { color: var(--amber-ink); margin: 0 0 8px; }
.assistant-note h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0 0 10px; }
.assistant-note p { margin: 0 0 10px; color: var(--ink-2); }
.assistant-note .try-title { margin: 14px 0 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.assistant-note .try { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.assistant-note .try li { font-size: 14px; line-height: 1.35; padding: 7px 12px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 16px 16px 16px 4px; color: var(--ink); }
[dir="rtl"] .assistant-note .try li { border-radius: 16px 16px 4px 16px; }
.assistant-note .small { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.assistant-shot { max-width: 380px; margin: 0 auto; }
@media (min-width: 1000px) { .assistant-shot { position: sticky; top: 96px; } }
.ficon, .ticon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--ink); margin-bottom: 10px; }
.ficon .icon, .ticon .icon { width: 22px; height: 22px; }
/* The same amber roundel beside a figure (the ledger and the plan notes), a step, and the assistant's label. */
.licon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: var(--ink); margin-bottom: 10px; }
.licon .icon { width: 20px; height: 20px; }
.step-list button { grid-template-columns: 52px minmax(0, 1fr); align-items: start; }
.sicon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink); transition: background-color 0.15s ease; }
.sicon .icon { width: 22px; height: 22px; }
.step-list li.on .sicon { background: var(--amber); border-color: var(--amber); }
.step-list button .no { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 2px; padding: 0; }
.step-list li.on button .no { color: var(--amber-ink); }
.step-list p { padding-inline-start: 64px; }
.assistant-note .label { display: inline-flex; align-items: center; gap: 10px; }
.aicon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: var(--ink); }
.aicon .icon { width: 20px; height: 20px; }
.ruled li.with-icon { grid-template-columns: 52px minmax(0, 1fr); align-items: start; }
.ruled li.with-icon .ticon { margin: 0; }
html[lang="ar"] .assistant-note .label, html[lang="ar"] .assistant-note .try-title { font-family: var(--body); letter-spacing: 0; }
.coverage-note { margin-top: 18px; padding: 14px 18px 16px; background: var(--card); border: 1px solid var(--rule-strong); border-inline-start: 6px solid var(--amber); }
.coverage-note p { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }
.coverage-note .coverage-note-head { font-family: var(--display); font-stretch: 92%; font-weight: 800; font-size: 1.15rem; line-height: 1.25; color: var(--ink); margin-bottom: 6px; }
.coverage-note a { font-weight: 700; font-size: 15px; }
html[lang="ar"] .coverage-note .coverage-note-head { font-stretch: normal; font-weight: 700; }
.examples { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1.5px solid var(--rule-strong); margin: 40px 0 0; }
@media (min-width: 860px) { .examples { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.examples > div { padding-block: 20px 22px; padding-inline: 0 20px; border-bottom: 1px solid var(--rule); }
@media (min-width: 860px) { .examples > div { border-bottom: 0; border-inline-end: 1px solid var(--rule); padding-inline-start: 20px; } .examples > div:first-child { padding-inline-start: 0; } .examples > div:last-child { border-inline-end: 0; } }
.examples h4 { margin: 6px 0 8px; }
.examples p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ---------------------------------------------------------- comparison */

.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { text-align: start; vertical-align: top; padding-block: 14px; padding-inline: 0 16px; border-bottom: 1px solid var(--rule); }
.compare thead th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1.5px solid var(--rule-strong); }
.compare tbody th { font-weight: 700; width: 22%; }
.compare td.before { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(179, 38, 30, 0.45); }
.compare td.after { color: var(--ink); }
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { display: block; border: 0; padding: 2px 0; width: auto; }
  .compare tbody th { width: auto; }
}

/* ---------------------------------------------------------- feature list */

.features { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1.5px solid var(--rule-strong); }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.features > div { padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.features h3 { font-size: 1.2rem; margin-bottom: 6px; }
.features p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* --------------------------------------------------------------- plans */

.plans { width: 100%; border-collapse: collapse; font-size: 15px; }
.plans th, .plans td { text-align: start; padding-block: 14px; padding-inline: 0 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.plans thead th { font-family: var(--display); font-stretch: 88%; font-size: 1.35rem; font-weight: 800; border-bottom: 1.5px solid var(--rule-strong); }
.plans tbody th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); width: 20%; }
.plans-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plans-scroll .plans { min-width: 640px; }
.pu-note { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; }
@media (min-width: 860px) { .pu-note { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pu-note .n { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 2rem; line-height: 1; display: block; margin-bottom: 8px; }
.pu-note p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------------ the close */

.close { background: var(--night); color: var(--night-ink); padding: 88px 0; }
.close h2 { color: var(--night-ink); max-width: 14em; }
.close mark { color: var(--ink); }
.close .lead { color: var(--night-mute); margin: 20px 0 32px; }
.close .btn-primary { box-shadow: 3px 3px 0 #000; border-color: #000; }
.close .btn-ghost { color: var(--night-ink); border-color: var(--night-ink); }
.close .btn-ghost:hover { background: var(--night-2); }
.close .cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------- footer */

.foot { background: var(--night); color: var(--night-mute); border-top: 1px solid #3a4046; padding: 48px 0 40px; font-size: 14.5px; }
.foot a { color: var(--night-ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); } }
.foot .brand .word { color: var(--night-ink); }
.foot .brand .word mark { color: var(--ink); }
.foot h4 { color: var(--night-ink); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.foot .legal { border-top: 1px solid #3a4046; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ----------------------------------------------------------------- about */

.page-head { padding: 72px 0 48px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 14em; margin: 8px 0 22px; }
.facts { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.facts th, .facts td { text-align: start; vertical-align: top; padding-block: 12px; padding-inline: 0 12px; border-bottom: 1px solid var(--rule); }
.facts th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); width: 36%; padding-top: 15px; }
.facts tr:first-child th, .facts tr:first-child td { border-top: 1.5px solid var(--rule-strong); }
.principles { counter-reset: p; list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--rule-strong); }
.principles li { counter-increment: p; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--amber-ink); padding-top: 6px; }
.principles h3 { margin-bottom: 6px; }
.principles p { margin: 0; color: var(--ink-2); }

/* ----------------------------------------------------------------- forms */

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 24px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--ink-3); font-size: 13.5px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 16px var(--body);
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--ink-3);
  border-radius: 2px;
  padding: 12px 13px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--amber); }
.field .err { color: var(--danger); font-size: 14px; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
/* The captcha box, set like the form's own fields. */
altcha-widget {
  display: block;
  font-family: var(--body);
  --altcha-max-width: 320px;
  --altcha-border-width: 1.5px;
  --altcha-border-radius: 2px;
  --altcha-border-color: var(--ink-3);
  --altcha-color-base: var(--card);
  --altcha-color-base-content: var(--ink);
  --altcha-color-primary: var(--ink);
  --altcha-color-primary-content: var(--card);
  --altcha-color-success: var(--ok);
  --altcha-color-success-content: #fff;
  --altcha-color-error: var(--danger);
  --altcha-checkbox-border-color: var(--ink);
  --altcha-checkbox-border-radius: 2px;
  --altcha-checkbox-outline-color: var(--amber);
  --altcha-shadow: none;
}
.field.invalid altcha-widget { --altcha-border-color: var(--danger); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.notice { border: 1.5px solid var(--ink); background: var(--card); padding: 22px 24px; box-shadow: 6px 6px 0 var(--amber); }
.notice h2 { font-size: 1.8rem; margin-bottom: 10px; }
.aside-box { border-top: 1.5px solid var(--rule-strong); padding-top: 18px; }
.aside-box ol { margin: 0; padding-inline-start: 1.2em; color: var(--ink-2); }
.aside-box li { margin-bottom: 10px; }

/* --------------------------------------------------------- languages */

.langs { display: flex; align-items: center; gap: 2px; border: 1px solid var(--rule); border-radius: 2px; padding: 2px; flex-shrink: 0; }
.langs a { white-space: nowrap; }
.langs a { text-decoration: none; font: 500 12px/1 var(--mono); letter-spacing: 0.04em; color: var(--ink-2); padding: 6px 7px; border-radius: 1px; }
.langs a:hover { background: var(--paper-2); color: var(--ink); }
.langs a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.langs a[lang="ar"], .langs a[lang="zh"] { font-family: var(--body); font-size: 13px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 0; font-size: 14px; }
.foot-langs a[aria-current="true"] { color: var(--amber); }

/* A tender by any other name. */
.names { margin-top: 72px; }
.names-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 48px; margin-bottom: 22px; }
@media (min-width: 1000px) { .names-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; } }
.names-head h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.names-head p { margin: 0; color: var(--ink-2); }
.names-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.names-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; background: var(--card); border: 1px solid var(--rule-strong); }
.names-table th, .names-table td { text-align: start; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.names-table thead th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1.5px solid var(--rule-strong); }
.names-table tbody th { font-weight: 700; width: 26%; }
.names-table td:last-child { color: var(--amber-ink); font-weight: 700; }
.names-table tr:last-child th, .names-table tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------ writing systems */

/* Arabic reads right to left; the arrows turn with it, and letter spacing, which breaks the
   joins between Arabic letters, is removed. */
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
html[lang="ar"] { --display: "IBM Plex Sans Arabic", "Archivo", system-ui, sans-serif; --body: "IBM Plex Sans Arabic", "Lato", system-ui, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-stretch: normal; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
html[lang="ar"] body { font-size: 17.5px; line-height: 1.8; }
html[lang="ar"] .label, html[lang="ar"] .clause, html[lang="ar"] .names-table thead th, html[lang="ar"] .compare thead th, html[lang="ar"] .plans tbody th, html[lang="ar"] .facts th, html[lang="ar"] .tag, html[lang="ar"] .stamp, html[lang="ar"] .player .play small, html[lang="ar"] .foot h4 { font-family: var(--body); letter-spacing: 0; }
html[lang="ar"] .stamp { transform: rotate(7deg); }
html[lang="ar"] .menu-toggle, html[lang="zh-Hans"] .menu-toggle { font-family: var(--body); letter-spacing: 0; font-size: 14px; }

/* Russian: IBM Plex Sans carries the Cyrillic, the Latin brand fonts the rest. */
html[lang="ru"] { --display: "IBM Plex Sans", "Archivo", system-ui, sans-serif; --body: "IBM Plex Sans", "Lato", system-ui, sans-serif; }
html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] h3, html[lang="ru"] h4 { font-stretch: normal; font-weight: 700; letter-spacing: -0.01em; line-height: 1.12; }
html[lang="ru"] h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
html[lang="ru"] h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }

/* Chinese: the reader's own system fonts, which carry thousands of characters. */
html[lang="zh-Hans"] { --display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif; --body: var(--display); }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3, html[lang="zh-Hans"] h4 { font-stretch: normal; font-weight: 700; letter-spacing: 0.01em; line-height: 1.25; }
html[lang="zh-Hans"] body { line-height: 1.8; }
html[lang="zh-Hans"] .label, html[lang="zh-Hans"] .clause, html[lang="zh-Hans"] .foot h4, html[lang="zh-Hans"] .names-table thead th, html[lang="zh-Hans"] .compare thead th, html[lang="zh-Hans"] .plans tbody th, html[lang="zh-Hans"] .facts th { letter-spacing: 0.04em; }

/* French headlines run longer. */
html[lang="fr"] h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }

@media print {
  .top, .close, .foot, .menu-toggle { display: none; }
  body { background: #fff; }
}
