/* Baghdad Street Brands: a Baghdad street read through its road signs.
   Pale concrete ground, white panels, the blue BAGHDAD sign, a green guide sign, a blue street plate over each section, brand cards with their logos
   outlined in their own colours. One light look for every viewer. No drop shadows. */

/* layout: a 1280 column on the page's gutters; the hero fills the first screen on desktops (at most 1100px), every other section is as tall as its content, one --sec gap between them; the board is five sections of brand cards (5, 4, 3 columns, one row per brand on phones) */
:root {
  /* ground and text on it */
  --bg: #eef0f2;
  --fg: #111111;
  --fg-muted: #4b5057;
  --line: rgba(17, 17, 17, 0.12);
  /* the bar along the top */
  --nav-bg: #ffffff;
  --nav-ink: #111111;
  --nav-line: rgba(17, 17, 17, 0.12);
  --nav-accent: #0c4ca2;
  /* white panels and cards */
  --panel: #ffffff;
  --panel-ink: #111111;
  --panel-muted: #565656;
  --panel-line: rgba(17, 17, 17, 0.14);
  --panel-hover: #f4f6f8;
  /* road-sign enamel */
  --sign-blue: #0c4ca2;
  --sign-blue-deep: #0a3f86;
  --sign-green: #37b64b;
  --guide-green: #196031;
  --amber: #fcb03f;
  --on-sign: #ffffff;
  --on-amber: #111111;
  /* focus: blue on light grounds, amber on dark grounds and on signs */
  --focus: #0c4ca2;
  --focus-on-sign: #fcb03f;

  --f-sign: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-text: "Barlow", "Segoe UI", system-ui, sans-serif;
  /* the Arabic: Mada, the closest free match to GE MB MB Bold (the old site's Arabic); bold beside the sign lettering, regular in text.
     Latin letters inside Arabic text fall back to the Barlows. */
  --f-ar-sign: "Mada", "Barlow Condensed", "Geeza Pro", Tahoma, sans-serif;
  --f-ar: "Mada", "Barlow", "Geeza Pro", Tahoma, sans-serif;

  --nav: 64px;
  --gut: 80px;
  --gap: 24px;
  --sec: clamp(56px, 2.4vw + 40px, 80px);
  --bar: 0px;
  --r-panel: 14px;
  --r-card: 12px;

  --t-h1: clamp(40px, 2.2vw + 28px, 64px);
  --t-h2: clamp(36px, 1.4vw + 26px, 52px);
  --t-lead: 19px;
  --t-body: 17px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (max-width: 1023px) { :root { --gut: 40px; } }
@media (max-width: 639px) {
  :root { --nav: 56px; --gut: 16px; --gap: 12px; --sec: 48px; --t-lead: 18px; --r-panel: 12px; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-body)/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--bar);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
[lang="ar"] { font-family: var(--f-ar); }
::selection { background: var(--sign-blue); color: #ffffff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:is(.panel, .ticketbar, .item) :focus-visible, .item:focus-visible { outline-color: var(--sign-blue); }
:is(.guide, .close__ticket, .pillar__sign:not(.pillar--amber *)) :focus-visible { outline-color: var(--focus-on-sign); }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }

/* ---------- buttons and links: pills, as on the old site ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font: 600 16px/1 var(--f-text); text-decoration: none; white-space: nowrap;
  border: 2px solid var(--sign-blue); border-radius: 999px;
  transition: transform 180ms var(--ease), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn--primary { background: var(--sign-blue); color: #ffffff; }
.btn--secondary { background: var(--panel); color: var(--sign-blue); }
.btn:hover { transform: translateY(-2px); }
.btn--primary:hover { background: var(--sign-blue-deep); border-color: var(--sign-blue-deep); }
.btn--secondary:hover { background: var(--panel-hover); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: 60ms; }
.btn .arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 260ms var(--ease);
}
.link:hover { background-size: 100% 1.5px; }

.skip-link { position: absolute; left: 0; top: -100px; z-index: 30; background: var(--sign-blue); color: #ffffff; padding: 10px 16px; font-weight: 600; text-decoration: none; border-radius: 999px; }
.skip-link:focus { top: 10px; }

/* ---------- the mini sign (header, footer) ---------- */
.minisign { display: block; width: 204px; height: 36px; }

/* ---------- the bar along the top ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: calc(var(--nav) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); background: var(--nav-bg); border-bottom: 1px solid var(--nav-line); }
.nav__bar { position: relative; height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__logo { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.nav__logo .minisign { transition: transform 180ms var(--ease); }
.nav__logo:hover .minisign { transform: translateY(-1px); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link { color: var(--nav-ink); text-decoration: none; font: 600 15px/1 var(--f-text); padding: 8px 0; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--nav-accent); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; min-height: 44px; background: var(--sign-blue); color: #ffffff; }
.nav__cta:hover { background: var(--sign-blue-deep); border-color: var(--sign-blue-deep); }
.nav__toggle { display: none; }
@media (max-width: 839px) {
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: none; border: 2px solid var(--nav-line); border-radius: 999px; color: var(--nav-ink); cursor: pointer;
  }
  .nav__toggle span, .nav__toggle span::before { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform 200ms var(--ease); }
  .nav__toggle span::before { content: ""; position: absolute; top: 6px; }
  .nav__toggle span { transform: translateY(-3px); }
  .nav__toggle[aria-expanded="true"] span { transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span::before { transform: translateY(-6px) rotate(-90deg); }
  .nav__links {
    position: fixed; inset: calc(var(--nav) + env(safe-area-inset-top, 0px)) 0 0; background: var(--nav-bg); flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px max(var(--gut), calc((100% - 1280px) / 2)) 32px; border-top: 1px solid var(--nav-line);
    visibility: hidden; opacity: 0; transition: opacity 200ms ease, visibility 0s 200ms;
  }
  .nav__links.is-open { visibility: visible; opacity: 1; transition: opacity 200ms ease; }
  .nav__link { font: 600 28px/1 var(--f-sign); padding: 0; min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid var(--nav-line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 24px 0 0; min-height: 52px; }
}
html.no-scroll { overflow: hidden; }

/* ---------- sections ---------- */
main > section, .closing { scroll-margin-top: var(--nav); }
main > section { padding: calc(var(--sec) / 2) 0; }
.head { display: grid; justify-items: start; gap: 4px; margin-bottom: 32px; }
.head h2 { font: 600 var(--t-h2)/1 var(--f-sign); letter-spacing: -0.005em; text-wrap: balance; color: var(--fg); }
.head__ar { width: fit-content; font: 600 clamp(22px, .6vw + 18px, 30px)/1.5 var(--f-ar-sign); color: var(--fg); }
.head__lead { font-size: var(--t-lead); line-height: 1.55; color: var(--fg-muted); max-width: 44rem; margin-top: 8px; }
.head__lead strong { color: var(--fg); }
.head__lead--ar { font-family: var(--f-ar); font-size: 17px; line-height: 1.85; margin-top: 4px; text-align: justify; }
@media (max-width: 639px) { .head { margin-bottom: 24px; } .head h2 { font-size: 32px; } }

.panel { background: var(--panel); color: var(--panel-ink); border-radius: var(--r-panel); }

/* a road sign: enamel with a white line set in from its edge */
.guide, .cat__head, .close__ticket, .pillar__sign {
  --sign-edge: 6px; --sign-line: 3px; --sign-ground: var(--sign-blue);
  background: var(--sign-ground); color: var(--on-sign);
  box-shadow: inset 0 0 0 var(--sign-edge) var(--sign-ground), inset 0 0 0 calc(var(--sign-edge) + var(--sign-line)) var(--on-sign);
}
.guide, .pillar--green .pillar__sign { --sign-ground: var(--guide-green); }

/* ---------- hero ---------- */
.hero { padding: calc(var(--nav) + 20px) 0 calc(var(--sec) / 2); }
/* desktops: the hero is the first screen (at most 1100px), its content centred, so the board's heading never sits cut at the fold */
@media (min-width: 1101px) { .hero { display: flex; flex-direction: column; justify-content: center; min-height: min(100vh, 1100px); min-height: min(100svh, 1100px); } .hero > .wrap { width: min(100% - 2 * var(--gut), 1280px); } }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.sign { grid-column: 1 / -1; }
.sign__svg { display: block; width: 100%; height: auto; }
.sign__svg--tall { display: none; }
@media (max-width: 639px) { .sign__svg--wide { display: none; } .sign__svg--tall { display: block; } }
.hero__copy { grid-column: 1 / span 6; padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.hero__index { grid-column: 7 / -1; padding: 30px 40px 22px; display: flex; flex-direction: column; border-radius: var(--r-panel); }
.hero__index .index { flex: 1; display: flex; flex-direction: column; }
.hero__index .index li { flex: 1; display: flex; }
.hero__index .index__row { flex: 1; align-items: center; }
.hero h1 { font: 600 var(--t-h1)/0.98 var(--f-sign); letter-spacing: -0.01em; text-wrap: balance; max-width: 17ch; }
.hero__ar { font: 600 clamp(20px, .6vw + 15px, 26px)/1.6 var(--f-ar-sign); margin-top: 12px; text-wrap: balance; }
.hero__lead { font-size: var(--t-lead); color: var(--panel-muted); max-width: 34rem; margin-top: 12px; }
.hero__lead--ar { font-family: var(--f-ar); font-size: 17px; line-height: 1.85; margin-top: 6px; }
.hero .btn-row { margin-top: 28px; }

/* the guide sign: the five sections like destinations, each with its count */
.index__title { font: 600 15px/1.4 var(--f-text); padding-bottom: 12px; border-bottom: 2px solid currentColor; }
.index li { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.index li:last-child { border-bottom: 0; }
.index__row { display: flex; align-items: baseline; gap: 12px; min-height: 52px; padding: 12px 0 10px; text-decoration: none; color: inherit; transition: padding 200ms var(--ease), background-color 200ms ease; border-radius: 8px; }
.index__arrow { flex: none; width: 22px; height: 22px; align-self: center; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease); }
.index__en { font: 600 24px/1.1 var(--f-sign); }
.index__dots { flex: 1; min-width: 16px; border-bottom: 2px dotted rgba(255, 255, 255, 0.45); transform: translateY(-4px); }
.index__ar { font: 500 17px/1.5 var(--f-ar-sign); }
.index__count { font: 700 22px/1 var(--f-sign); min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.index__row:hover { padding-left: 10px; padding-right: 10px; background: rgba(255, 255, 255, 0.1); }
.index__row:hover .index__arrow { transform: translateY(3px); }

@media (max-width: 1399px) { .hero__copy { padding: 36px 36px; } .hero__index { padding: 26px 30px 18px; } }
@media (max-width: 1100px) {
  .hero__copy { grid-column: 1 / -1; padding: 40px; justify-content: center; }
  .hero__index { grid-column: 1 / -1; padding: 30px 40px; }
}
/* narrower screens keep the hero to the sign and the words; the guide sign opens the board instead */
@media (max-width: 1100px) { .hero__index { display: none; } }
/* tablets: the full-width panel reads like the sign above it, English on the left, Arabic on the right */
@media (min-width: 640px) and (max-width: 1100px) {
  .hero__copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "h1 ar" "lead arl" "btns arl"; column-gap: 48px; align-content: center; }
  .hero h1 { grid-area: h1; }
  .hero__ar { grid-area: ar; align-self: start; margin-top: 4px; font-size: clamp(24px, 1.2vw + 14px, 30px); line-height: 1.7; }
  .hero__lead { grid-area: lead; }
  .hero__lead--ar { grid-area: arl; align-self: start; margin-top: 12px; font-size: 17px; }
  .hero .btn-row { grid-area: btns; }
}
@media (max-width: 639px) {
  .hero__index { display: none; }
  .hero { padding-top: calc(var(--nav) + 12px); }
  .hero h1 { font-size: 36px; }
  .hero__copy, .hero__index { padding: 24px 20px; }
  .hero__ar { font-size: 20px; margin-top: 8px; }
  .hero__lead { font-size: 16px; line-height: 1.5; margin-top: 10px; }
  .hero__lead--ar { font-size: 15px; line-height: 1.8; margin-top: 6px; }
  .hero .btn-row { margin-top: 20px; }
  .hero .btn-row .btn { width: 100%; }
  .index__en { font-size: 21px; }
  .index__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "arrow en count" "arrow ar ar"; align-items: baseline; column-gap: 10px; row-gap: 2px; }
  .index__arrow { grid-area: arrow; }
  .index__en { grid-area: en; }
  .index__dots { display: none; }
  .index__ar { grid-area: ar; justify-self: end; font-size: 14px; }
  .index__count { grid-area: count; }
}

/* the hero entrance: the sign stays still; the words come up once, on load */
@media (prefers-reduced-motion: no-preference) {
  html.m-enter:not(.m-enter-done) .hero[data-enter]:not(.is-entering, .is-entered) :is(.hero__copy, .hero__index) > * { opacity: 0; }
  html.m-enter.m-enter-done .hero[data-enter]:not(.is-entering, .is-entered) :is(.hero__copy, .hero__index) > * { transition: opacity 400ms ease; }
  .hero.is-entering :is(.hero__copy, .hero__index) > * { animation: rise 520ms var(--ease) both; animation-delay: calc(60ms + var(--i, 0) * 60ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- the board: the five sections in turn, each a street plate over a grid of brand cards ---------- */
.board__index { display: none; padding: 10px 20px 6px; margin-bottom: 32px; border-radius: var(--r-panel); }
@media (max-width: 1100px) { .board__index { display: block; } }
@media (max-width: 639px) {
  .board__index { padding: 10px 16px 6px; margin-bottom: 24px; }
  .board__index .index__title { padding-bottom: 8px; }
  .board__index .index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .board__index .index li, .board__index .index li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
  .board__index .index li:nth-last-child(-n + 1) { border-bottom: 0; }
  .board__index .index__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "en count" "ar ar"; min-height: 48px; padding: 8px 0 6px; column-gap: 8px; }
  .board__index .index__arrow { display: none; }
  .board__index .index__en { font-size: 17px; line-height: 1.15; }
  .board__index .index__count { font-size: 17px; }
  .board__index .index__ar { font-size: 12.5px; line-height: 1.5; }
}
.board__panels { display: grid; gap: 40px; }
.cat { display: grid; gap: 12px; scroll-margin-top: calc(var(--nav) + 12px); }

/* the street plate: the section's name, its count in words, its Arabic name */
.cat__head { --sign-edge: 4px; --sign-line: 2px; display: flex; align-items: center; min-height: 56px; padding: 10px 22px; border-radius: 10px; }
.cat__head { column-gap: 16px; }
.cat__head h3 { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; }
.cat__en { font: 600 24px/1.1 var(--f-sign); }
.cat__count { flex: none; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .45); font: 600 15px/1.2 var(--f-text); }
.cat__ar { margin-left: auto; font: 500 18px/1.4 var(--f-ar-sign); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cat__items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cat__items > li { display: flex; min-width: 0; }
@media (max-width: 1199px) { .cat__items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 939px) { .cat__items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* a brand card: its logo on top, then its name, its English and Arabic lines, and an Add button */
.item {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
  color: var(--panel-ink); text-decoration: none; cursor: pointer;
  background: var(--panel); border: 2px solid var(--c); border-radius: var(--r-card); overflow: hidden;
  transition: transform 200ms var(--ease), box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.item__logo { display: grid; place-items: center; height: 124px; padding: 16px; background: #ffffff; border-bottom: 1px solid var(--panel-line); }
.item__logo img { width: 100%; height: 100%; max-width: 184px; max-height: 84px; object-fit: contain; transition: transform 420ms var(--ease); }
/* a brand with no logo: its name on a quiet plate tinted with its own colour, so the real logos lead */
.item__logo--name {
  --tint: color-mix(in srgb, var(--c) 13%, #ffffff); --deep: color-mix(in srgb, var(--c) 72%, #000000);
  background: #f3f4f5; background: var(--tint); color: #111111; color: var(--deep);
  box-shadow: inset 0 0 0 8px var(--tint, #f3f4f5), inset 0 0 0 9.5px var(--deep, #111111);
}
.item__word { font: 700 26px/1.05 var(--f-sign); text-transform: uppercase; letter-spacing: .06em; text-align: center; text-wrap: balance; }
.item__info { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; transition: background-color 160ms ease, color 160ms ease; }
.item__name { font: 600 22px/1.05 var(--f-sign); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.item__en { font: 400 15px/1.35 var(--f-text); color: var(--panel-muted); }
.item__ar { font: 500 16px/1.55 var(--f-ar); text-align: right; }
/* a brand the owner marks open (data-status="open" on its card) says so before its description */
.item[data-status="open"] .item__en::before { content: "Open \00B7  "; font-weight: 600; color: var(--panel-ink); }

/* the Add button: shown only when the script runs (without it the card is an email link) */
.item__add {
  display: none; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto;
  min-height: 36px; padding: 0 14px 0 11px; border: 2px solid currentColor; border-radius: 999px;
  font: 600 15px/1 var(--f-text); transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
html.js .item__add { display: inline-flex; }
.item__info > .item__ar { margin-top: 4px; margin-bottom: 12px; }
.item__add svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.item__add .i-tick, .item__add-on { display: none; }

@media (hover: hover) {
  .item:hover { transform: translateY(-2px); }
  .item:hover .item__logo img { transform: scale(1.04); }
  .item:not([aria-pressed="true"]):hover .item__add { background: var(--panel-ink); border-color: var(--panel-ink); color: var(--panel); }
}
.item:active { transform: translateY(0) scale(.99); }
.item:focus-visible { outline-offset: 3px; }
/* picked: the card rings and fills in its brand colour; Add becomes Added */
.item[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c); }
.item[aria-pressed="true"] .item__info { background: var(--cp, var(--c)); color: var(--ci); }
.item[aria-pressed="true"] .item__en, .item[aria-pressed="true"][data-status="open"] .item__en::before { color: var(--ci); }
.item[aria-pressed="true"] .item__add { background: var(--ci); border-color: var(--ci); color: var(--cp, var(--c)); }
.item[aria-pressed="true"] .item__add .i-plus, .item[aria-pressed="true"] .item__add-off { display: none; }
.item[aria-pressed="true"] .item__add .i-tick, .item[aria-pressed="true"] .item__add-on { display: inline; }

/* phones: one brand per row, its logo on the left, Add on the right, like a delivery app's list */
@media (max-width: 639px) {
  .board__panels { gap: 32px; }
  .cat { gap: 8px; }
  .cat__items { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cat__head { padding: 10px 16px; min-height: 52px; }
  .cat__en { font-size: 22px; }
  .cat__count { font-size: 14px; }
  .cat__head h3 { flex-direction: column; align-items: flex-start; }
  .cat__ar { margin-left: 0; font-size: 15px; }
  .cat__count { padding-left: 12px; }
  .item { flex-direction: row; }
  .item__logo { flex: none; width: 100px; height: auto; min-height: 96px; padding: 10px; border-bottom: 0; border-right: 1px solid var(--panel-line); }
  .item__logo { place-items: center start; padding: 10px 12px; }
  .item__logo img { max-width: 76px; max-height: 64px; object-position: left center; }
  .item__logo--name { box-shadow: inset 0 0 0 6px var(--tint, #f3f4f5), inset 0 0 0 7.5px var(--deep, #111111); }
  .item__word { font-size: 17px; letter-spacing: .03em; text-align: left; }
  .item__info {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name add" "en add" "ar ar";
    align-items: center; column-gap: 10px; row-gap: 2px; padding: 10px 12px;
  }
  .item__name { grid-area: name; font-size: 21px; }
  .item__en { grid-area: en; font-size: 14px; }
  .item__ar { grid-area: ar; font-size: 14px; }
  .item__info > .item__ar { margin: 0; }
  .item__add { grid-area: add; align-self: center; margin: 0; min-height: 40px; padding: 0 12px 0 10px; font-size: 14px; }
}

/* ---------- about: the motto on an amber sign, then three cards (who we are, vision, mission), each under its own road sign ---------- */
.about .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.about .head { grid-column: 1 / span 6; margin-bottom: 0; gap: 6px; }
.motto {
  grid-column: 7 / -1; padding: 18px 26px 16px; border-radius: 12px;
  background: var(--amber); color: var(--on-amber);
  box-shadow: inset 0 0 0 5px var(--amber), inset 0 0 0 8px var(--on-amber);
}
.motto__en { font: 600 21px/1.3 var(--f-sign); text-wrap: balance; }
.motto__ar { font: 600 19px/1.8 var(--f-ar-sign); margin-top: 6px; text-wrap: balance; }
.pillars { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-top: 32px; }
.pillar { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pillar__sign {
  --sign-edge: 4px; --sign-line: 2px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: 14px; row-gap: 2px;
  min-height: 54px; padding: 10px 20px; border-radius: 10px;
}
.pillar__sign h3 { font: 600 24px/1.1 var(--f-sign); }
.pillar__ar { font: 600 18px/1.5 var(--f-ar-sign); }
.pillar--amber .pillar__sign { background: var(--amber); color: var(--on-amber); box-shadow: inset 0 0 0 4px var(--amber), inset 0 0 0 6px var(--on-amber); }
/* under each sign, the English and the Arabic side by side on the page, in the hero's 6/6 split */
.pillars { gap: 40px; }
.pillar { gap: 18px; }
.pillar__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 18px; align-items: start; }
.pillar__en { grid-column: 1 / span 6; font-size: 17px; line-height: 1.6; }
.pillar__arp { grid-column: 7 / -1; font: 400 17px/1.9 var(--f-ar); text-align: justify; }
@media (max-width: 1279px) {
  .about .head, .motto { grid-column: 1 / -1; justify-self: start; }
  .motto { max-width: 40rem; }
  .motto { margin-top: 20px; }
}
@media (max-width: 699px) {
  .pillar__body { grid-template-columns: minmax(0, 1fr); }
  .pillar__en, .pillar__arp { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .motto { padding: 16px 20px 14px; }
  .motto__en { font-size: 19px; }
  .pillars { margin-top: 24px; }
  .pillar__sign { padding: 10px 16px; }
  .pillar__sign h3 { font-size: 22px; }
  .pillars { gap: 32px; }
  .pillar { gap: 14px; }
  .pillar__body { row-gap: 14px; }
  .pillar__en { font-size: 16px; }
  .pillar__arp { font-size: 15px; }
}

/* ---------- the close: the list on a blue sign, the contacts on an amber one ---------- */
.closing { padding: calc(var(--sec) / 2) 0 28px; }
.closing > .wrap { display: flex; flex-direction: column; gap: var(--sec); }
.closing__cta { display: flex; flex-direction: column; }
.close { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.close__ticket { --sign-edge: 8px; --sign-line: 4px; grid-column: 1 / span 6; grid-row: 1; display: grid; gap: 32px; align-content: space-between; padding: 40px 44px 36px; border-radius: 18px; }
.close__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid currentColor; padding-bottom: 14px; }
.close__head h3 { font: 600 34px/1 var(--f-sign); }
.close__ar { font: 600 22px/1.4 var(--f-ar-sign); }
.close__direct {
  grid-column: 7 / -1; grid-row: 1 / span 2; align-self: start; display: grid; justify-items: start; gap: 4px;
  padding: 28px 32px 24px; border-radius: 18px;
  background: var(--amber); color: var(--on-amber);
  box-shadow: inset 0 0 0 6px var(--amber), inset 0 0 0 9px var(--on-amber);
}
.close__direct h3 { font: 600 34px/1 var(--f-sign); margin-bottom: 8px; }
.close__note { font-size: var(--t-lead); margin-bottom: 12px; }
.close__direct a { font: 600 clamp(22px, .8vw + 15px, 28px)/1.2 var(--f-sign); min-height: 48px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.ticket__empty[hidden] { display: none; }
.ticket__big { font: 600 clamp(30px, 1.6vw + 12px, 44px)/1.05 var(--f-sign); max-width: 18ch; text-wrap: balance; }
.ticket__big-ar { font: 600 clamp(19px, .6vw + 14px, 24px)/1.6 var(--f-ar-sign); margin-top: 8px; }
.ticket__kept { margin-top: 20px; font-size: 15px; opacity: .9; }
.ticket__kept[hidden] { display: none; }
.ticket__remove {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: .12em; padding: 0;
  border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%; background: transparent; color: #ffffff; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.ticket__remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ticket__remove:hover { background: rgba(255, 255, 255, .16); border-color: #ffffff; }
.ticket__hint { font-size: var(--t-lead); max-width: 30rem; margin-top: 16px; }
.ticket__hint .link { font-weight: 600; background-size: 100% 1.5px; }
.ticket__hint .link:hover { background-size: 0% 1.5px; }
.ticket__names { display: flex; flex-wrap: wrap; gap: 6px 36px; }
.close.has-names .close__ticket { grid-column: 1 / -1; }
.close.has-names .close__direct { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; justify-items: stretch; }
.close.has-names .close__direct h3, .close.has-names .close__note { grid-column: 1 / -1; }
.close.has-names .close__direct a { grid-column: span 4; justify-self: start; }
/* each picked brand: its logo on a white chip (or a dot of its colour), sized with its name */
.ticket__names li { display: flex; align-items: center; gap: .16em; font-size: clamp(56px, 8vw, 128px); }
.ticket.is-long .ticket__names li { font-size: clamp(40px, 4.8vw, 76px); }
.ticket.is-many .ticket__names li { font-size: clamp(28px, 2.6vw, 44px); }
.ticket__mark { flex: none; display: grid; place-items: center; width: 1.1em; height: .8em; padding: .07em; border-radius: .1em; background: #ffffff; }
.ticket__mark img { width: 100%; height: 100%; object-fit: contain; }
.ticket__mark--name::after { content: ""; width: .34em; height: .34em; border-radius: 50%; background: var(--c); }
.ticket__name { font: 700 1em/0.95 var(--f-sign); text-transform: uppercase; letter-spacing: -.005em; }
.close__actions { grid-column: 1 / span 6; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.btn--two { flex-direction: column; gap: 1px; padding: 5px 26px; line-height: 1.1; }
.btn__ar { font: 500 12px/1.3 var(--f-ar); }
.close__how { flex-basis: 100%; max-width: 40rem; font-size: 15px; line-height: 1.5; color: var(--fg-muted); }
.close__how--ar { font-family: var(--f-ar); text-align: justify; text-align-last: left; }
.close.has-names .close__actions { grid-column: 1 / -1; }
.close.has-names .close__direct { grid-row: 3; }
.ticket__clear { font-weight: 400; min-height: 44px; color: var(--fg-muted); }
.ticket__clear[hidden] { display: none; }
@media (max-width: 1023px) {
  .close__ticket, .close__direct, .close__actions { grid-column: 1 / -1; grid-row: auto; }
  .close__direct { margin-top: 8px; }
}
@media (max-width: 639px) {
  .close__ticket { padding: 30px 22px; min-height: 0; --sign-edge: 6px; --sign-line: 3px; }
  .close__direct { padding: 24px 22px 20px; }
  .ticket__names li { font-size: 44px; }
  .ticket.is-long .ticket__names li { font-size: 34px; }
  .ticket.is-many .ticket__names li { font-size: 26px; }
  .close.has-names .close__direct a { grid-column: 1 / -1; }
  .close .btn-row .btn { width: 100%; }
  .close__actions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .ticket__clear { align-self: flex-start; order: 3; margin-top: 4px; }
  .close__how { order: 2; flex-basis: auto; }
  .ticket__remove { width: 36px; height: 36px; }
}

.footer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 12px var(--gap); padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-muted); }
.footer__logo { grid-column: 1 / span 6; display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.footer__links { grid-column: 7 / -1; display: flex; flex-wrap: wrap; column-gap: 28px; }
.footer__links a { color: var(--fg-muted); min-height: 44px; display: inline-flex; align-items: center; }
.footer__links a:hover { color: var(--fg); }
.footer__legal { grid-column: 1 / -1; font-size: 14px; }
@media (max-width: 639px) { .footer__logo, .footer__links { grid-column: 1 / -1; } }

/* ---------- the list bar: rises over the board once a brand is picked ---------- */
.ticketbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  background: var(--panel); color: var(--panel-ink); border-top: 3px solid var(--sign-blue);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(0); transition: transform 320ms var(--ease), visibility 0s;
}
.ticketbar[hidden] { display: block !important; transform: translateY(110%); visibility: hidden; transition: transform 320ms var(--ease), visibility 0s 320ms; }
.ticketbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.ticketbar__text { font: 400 16px/1.4 var(--f-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticketbar__text strong { font: 700 24px/1 var(--f-sign); margin-right: 2px; color: var(--sign-blue); }
.ticketbar__link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ticketbar__link:hover { text-decoration-thickness: 2px; }
.ticketbar__names { color: var(--panel-muted); }
.ticketbar__actions { display: flex; gap: 12px; flex: none; }
@media (max-width: 639px) {
  .ticketbar { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .ticketbar__in { gap: 12px; }
  .ticketbar__names { display: none; }
  .ticketbar__actions .btn--secondary { display: none; }
  .ticketbar__actions .btn { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
}
@media print {
  .nav, .ticketbar { display: none; }
}

/* laptops with short screens: the hero still fits the first screen */
@media (min-width: 1101px) and (max-height: 960px) {
  .hero h1 { font-size: clamp(40px, 5.6vh, 52px); }
  .hero__copy { padding: 24px 40px; }
  .hero__index { padding: 20px 32px 10px; }
  .hero__ar { font-size: 21px; margin-top: 8px; }
  .hero__lead { font-size: 17px; margin-top: 8px; }
  .hero__lead--ar { font-size: 15px; line-height: 1.8; margin-top: 4px; }
  .hero .btn-row { margin-top: 14px; }
  .index__en { font-size: 21px; }
}

/* the Arabic set as the old site set it: bold headings at 1.4 leading, no tracking, words a little closer (as in GE MB MB Bold);
   text at 1.6 leading. Placed last so it settles every Arabic line above, phones included. */
:is(.head__ar, .hero__ar, .index__ar, .cat__ar, .motto__ar, .pillar__ar, .close__ar, .ticket__big-ar) { font-weight: 700; line-height: 1.4; letter-spacing: 0; word-spacing: -0.05em; }
:is(.head__lead--ar, .hero__lead--ar, .pillar__arp, .close__how--ar) { line-height: 1.6; letter-spacing: 0; }
.item__ar { line-height: 1.45; }
.btn__ar { font-weight: 600; }
:is(.guide, .close__ticket, .cat__head, .pillar--blue .pillar__sign, .pillar--green .pillar__sign) ::selection { background: #ffffff; color: #0c4ca2; }

