/* Siyaha Go — design tokens and components. Brand navy is sampled from the approved logo (#081F3B). */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-display: optional; /* preloaded per page language: no late swap, so no layout shift (CLS) */
  font-weight: 160 700;
  src: url(/fonts/readex-pro-arabic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-display: optional; /* preloaded per page language: no late swap, so no layout shift (CLS) */
  font-weight: 160 700;
  src: url(/fonts/readex-pro-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20C1, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens v2 (2026-12-01). Three layers: brand primitives -> semantic roles -> components. Light theme only (owner).
   Brand stays the logo navy #081F3B with apricot as the one accent.
   Contrast (measured): --ink 15.9:1, --ink-soft 7.0:1, --ink-faint 5.0:1 on --paper. */
:root {
  /* @platform-theme:start (generated by scripts/platform/apply.mjs from platform/platform.json; edit there) */
  --brand: #044747;
  --brand-rgb: 4, 71, 71;
  --plate-dark: #022C2C;   /* logo dark plate: brand hue, luminance <= 0.02 (src/logo-plate.ts) */
  --brand-raised: #185656;
  --brand-hover: #2C6464;
  --on-brand: #FFFFFF;        /* 10.5:1 on brand */
  --on-brand-soft: #D2DEDE;   /* 7.6:1 on brand */
  --accent: #FFE875;        /* the benefit; text on it is always --on-accent */
  --accent-deep: #E0CC67;
  --on-accent: #044747;
  --ink: #044747;
  --ink-hover: #225D5D;
  /* @platform-theme:end */
  /* semantic roles: light */
  --paper: #F4F6F9;          /* page ground */
  --surface: #FFFFFF;        /* cards */
  --sunken: #EEF1F5;         /* inset tiles inside a card */
  --tint: #E6ECF4;           /* hover / selected fill */
  --line: #DDE3EB;           /* only for form fields and dashed placeholders, never as a divider */
  --field-line: #6F7B8E;     /* 3:1 field outline */
  --on-ink: #FFFFFF;
  --ink-soft: #46546A;
  --ink-faint: #5F6B7E;
  --link: #1F5FD1;           /* 5.8:1 on surface, >= 5.1:1 on tint/paper (was #2A68DE: 4.52 on tint) */
  --go: #12603B;
  --late: #7A3E00;
  --off: #5A6270;
  --danger: #A1191E;
  --focus: #1F5FD1;
  --scrim: rgba(5, 12, 24, 0.6);
  --flag-edge: rgba(var(--brand-rgb), 0.25);
  --flag-edge-brand: rgba(255, 255, 255, 0.45);
  --shadow-1: 0 1px 2px rgba(var(--brand-rgb), 0.05), 0 1px 3px rgba(var(--brand-rgb), 0.06);
  --shadow-2: 0 2px 4px rgba(var(--brand-rgb), 0.04), 0 8px 24px rgba(var(--brand-rgb), 0.08);
  --shadow-3: 0 12px 32px rgba(var(--brand-rgb), 0.14);
  /* scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 20px;
  --r-pill: 999px;
  --fs-xs: 0.8125rem; --fs-s: 0.9375rem; --fs-m: 1rem; --fs-l: 1.125rem; --fs-xl: 1.375rem;
  --space: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Readex Pro", "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif;
  color-scheme: only light;   /* light only, owner 2026-12-01: also stops Chrome/Samsung auto-dark */
}



*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-feature-settings: "liga" 1, "calt" 1;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
[dir="ltr"] body { line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 650; letter-spacing: 0; }
[dir="ltr"] h1, [dir="ltr"] h2 { letter-spacing: -0.015em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }
bdi { unicode-bidi: isolate; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: var(--r-s); z-index: 10; }
.skip:focus { top: 12px; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--space); }
.page { padding-block: clamp(24px, 5vw, 56px); }
.narrow { max-width: 760px; }
.muted { color: var(--ink-soft); }

/* Buttons — 44px minimum target */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 0.975rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); transition: background-color 150ms, color 150ms;
}
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--tint); text-decoration: none; }

/* Header */
.site-header { background: var(--surface); box-shadow: var(--shadow-1); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { flex: none; display: block; }
.logo img { width: 148px; height: auto; }   /* = the reference offers platform (L-47): owner file brand/logo-nav.svg, vector */
.header-search { flex: 1 1 0; min-width: 0; display: flex; max-width: 440px; }
.header-search input {
  flex: 1; min-width: 0; min-height: 44px; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-start-start-radius: 999px; border-end-start-radius: 999px;
  border-inline-end: 0; padding-inline: 18px;
}
.header-search button {
  min-height: 44px; font: inherit; font-weight: 600; padding-inline: 16px; color: var(--on-ink); background: var(--ink);
  border: 0; border-start-end-radius: 999px; border-end-end-radius: 999px; cursor: pointer;
}
.header-nav { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; font-size: 0.95rem; white-space: nowrap; }
/* The full nav needs >= 1024px (AR overflowed 75px at 900px); below that the compact header + bottom nav apply.
   1024-1499px: nav + search on one row left the search under 230px (and AR overflowed ~65px at 1150px), so the
   search takes its own full-width second row while the full nav stays. */
@media (min-width: 1024px) and (max-width: 1499px) {
  .header-row { flex-wrap: wrap; gap: 8px 14px; padding-block: 10px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-nav { gap: 14px; }
}
.header-nav a:not(.btn) { text-decoration: none; padding-block: 10px; }
.header-nav a:not(.btn):hover { text-decoration: underline; }
.market-chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.875rem; color: var(--ink-soft); }

/* Hero: the slogan is the type event of the page */
.hero { background: var(--surface); padding-block: clamp(32px, 7vw, 88px) clamp(28px, 5vw, 64px); overflow: hidden; }
.slogan {
  font-size: clamp(3rem, 1.6rem + 7vw, 7.5rem); font-weight: 700; line-height: 1.02; margin: 0 0 0.25em;
  color: var(--ink); max-width: 12ch;
}
[dir="ltr"] .slogan { letter-spacing: -0.04em; max-width: 14ch; }
.hero h1 { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; max-width: 34ch; }
.hero .lead { color: var(--ink-soft); max-width: 56ch; font-size: 1.0625rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Search */
.search { margin-block: 20px; max-width: 680px; }
.search-label { display: block; font-weight: 600; margin-bottom: 8px; }
.search-row { display: flex; gap: 8px; }
.search input {
  flex: 1; min-width: 0; min-height: 52px; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 999px; padding-inline: 22px;
}
.search-big input { min-height: 58px; }
.search-big .btn { min-height: 58px; padding-inline: 28px; }
.header-search input:focus-visible, .search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }

/* Category strip — scrolls on phones, wraps on desktop */
.cat-strip { margin-block: 24px 8px; }
.cat-strip ul { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.cat-strip a {
  display: inline-flex; align-items: center; min-height: 40px; white-space: nowrap; padding: 6px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 0.925rem;
}
.cat-strip a:hover { border-color: var(--ink); }
.cat-strip a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
@media (min-width: 1024px) { .cat-strip ul { flex-wrap: wrap; overflow: visible; } }

.section-h { margin-top: 32px; }
.count { color: var(--ink-soft); font-size: 0.925rem; }

/* Offer card: a coupon — content panel plus a perforated benefit stub */
.offer-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }
.offer-card { --notch: 9px; position: relative; }
.offer-link {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "status stub" "title stub" "org stub" "meta stub";
  height: 100%; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 18px; column-gap: 18px; transition: border-color 150ms;
}
.offer-link:hover { border-color: var(--ink); text-decoration: none; }
.offer-link:hover .offer-title { text-decoration: underline; text-decoration-thickness: 1px; }
.offer-card .badge { grid-area: status; justify-self: start; }
.offer-title { grid-area: title; margin: 8px 0 4px; font-size: 1.0625rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer-org { grid-area: org; font-size: 0.925rem; }
.offer-meta { grid-area: meta; font-size: 0.875rem; color: var(--ink-soft); margin-top: 6px; }
.offer-card .benefit {
  grid-area: stub; align-self: stretch; display: flex; align-items: center; justify-content: center; text-align: center;
  width: 96px; margin-block: -18px; margin-inline-end: -18px; padding: 12px 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1.05rem; line-height: 1.25;
  border-start-end-radius: var(--r-m); border-end-end-radius: var(--r-m);
  border-inline-start: 2px dashed var(--ink);
  /* the two punched notches of a tear line */
  -webkit-mask: radial-gradient(circle var(--notch) at var(--nx) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--nx) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at var(--nx) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--nx) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
[dir="rtl"] .offer-card .benefit { --nx: 100%; }
[dir="ltr"] .offer-card .benefit { --nx: 0; }

.badge { display: inline-block; font-size: 0.8125rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
.badge-active { color: var(--go); }
.badge-upcoming { color: var(--late); }
.badge-expired, .badge-blocked { color: var(--off); }

/* Offer page */
.offer-page { max-width: 860px; }
.offer-head { padding-bottom: 8px; margin-bottom: 20px; }
.offer-head h1 { margin-top: 12px; }
.offer-by { color: var(--ink-soft); }
.offer-by a { color: var(--ink); font-weight: 600; }
.benefit-lg { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 6px 16px; border-radius: var(--r-s); font-weight: 700; font-size: 1.25rem; }
.offer-page section { margin-bottom: 28px; }
.price { font-size: 1.5rem; font-weight: 700; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.offer-page h3 { margin-top: 20px; }
.hint { display: block; font-size: 0.875rem; color: var(--ink-soft); margin-top: 8px; }
.aff-label { display: block; font-size: 0.875rem; color: var(--ink-soft); margin-top: 8px; }
.aff-label a { color: var(--link); font-weight: 600; text-underline-offset: 2px; }
.aff-label a:is(:hover, :focus-visible) { text-decoration: underline; }
.disclaimer { font-size: 0.925rem; color: var(--ink-soft); background: var(--sunken); border-radius: var(--r-m); padding: 14px 16px; }
.disclaimer a { color: inherit; }
.org-head { margin-bottom: 28px; }

/* Empty, pager, lists */
.empty { background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--r-m); padding: clamp(24px, 5vw, 48px); margin-top: 16px; max-width: 760px; }
.empty p { color: var(--ink-soft); max-width: 60ch; }
.pager { display: flex; gap: 20px; align-items: center; justify-content: center; margin-block: 28px; }
.pager a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 12px; }
.checks { padding-inline-start: 1.2em; }
.checks li { margin-bottom: 6px; }
.lead { font-size: 1.125rem; }

/* Footer */
/* Zayenha Hub unified footer (UNIFIED_FOOTER_STANDARD), on Siyaha Go navy. White on #081F3B = 16.4:1; #C9D3E0 = 11.3:1 (AAA). */
.site-footer { background: var(--brand); color: var(--on-brand); margin-top: 64px; padding-block: 40px 24px; }
.site-footer a { color: var(--on-brand); }
.site-footer a:hover { color: var(--accent); }
.site-footer h2 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: var(--accent); }
.footer-brand { margin-bottom: 28px; }
.footer-slogan { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.footer-slogan span { display: block; }
.footer-desc, .footer-nl p, .footer-legal { color: var(--on-brand-soft); }
.footer-cols { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols ul, .footer-social { list-style: none; margin: 0; padding: 0; }
.footer-cols a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.ext, .fi { flex-shrink: 0; }
[dir=rtl] .ext { transform: scaleX(-1); }
.footer-nl { margin-top: 40px; padding: clamp(20px, 4vw, 32px); background: var(--brand-raised); border-radius: var(--r-l); text-align: center; }
.footer-nl form { display: grid; gap: 10px; max-width: 440px; margin-inline: auto; }
.footer-nl input, .footer-nl select { min-height: 44px; padding: 8px 12px; border-radius: var(--r-s); border: 1.5px solid var(--on-brand-soft); background: #fff; color: var(--brand); font: inherit; width: 100%; }
.nl-phone { display: grid; grid-template-columns: minmax(0, 9rem) 1fr; gap: 8px; }
.footer-nl form { position: relative; }
/* Honeypot: hidden in place, never by a large negative left offset (that made RTL pages scroll sideways). */
.footer-nl .hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.btn-apricot { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-apricot:hover { background: var(--accent-deep); }
/* L3 newsletter consent (Hub kit 12 rule 2): explicit, unchecked checkbox; 24px target, label wraps beside it. */
.nl-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 0.875rem; text-align: start; line-height: 1.6; flex-wrap: wrap; }
.footer-nl .nl-check input[type=checkbox] { width: 24px; height: 24px; min-height: 24px; flex: 0 0 24px; margin: 2px 0 0; padding: 0; accent-color: var(--accent, #F4A261); }
.nl-check label { flex: 1 1 0; min-width: 0; cursor: pointer; }
.nl-check a { flex-basis: 100%; padding-inline-start: 34px; color: #fff; font-weight: 600; }
.nl-check input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nl-status:empty { display: none; }
.nl-status { margin: 0; font-weight: 600; color: var(--on-brand); }
.footer-actions { display: flex; justify-content: center; margin-top: 20px; }
.site-footer .btn-ghost { color: var(--on-brand); border-color: var(--on-brand); }
.site-footer .btn-ghost:hover { background: var(--brand-raised); }
.footer-social { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-raised); }
.footer-social a:hover { background: var(--brand-hover); color: var(--on-brand); }
.footer-legal { margin-top: 20px; text-align: center; font-size: 0.875rem; }
.footer-legal p { margin: 2px 0; }
.site-footer :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Phones: header becomes two rows; search takes full width */
@media (max-width: 1023px) {
  .header-row { flex-wrap: wrap; gap: 10px 14px; padding-block: 10px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .logo img { width: 112px; }
  /* Mobile: the nav is a drawer behind the menu button; only logo, install, Create account and the button stay in the row. */
  .header-acts { margin-inline-start: auto; }
  .header-nav {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 30; width: min(20rem, calc(100% - 48px));
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 72px 16px calc(24px + env(safe-area-inset-bottom));
    background: var(--surface); box-shadow: 0 0 40px rgba(var(--brand-rgb), .24); overflow-y: auto; overscroll-behavior: contain; white-space: normal;
  }
  .header-nav:not(.is-open) { display: none; }
  .header-nav > a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 8px 12px; border-radius: var(--r-s); font-size: 1rem; }
  .header-nav > a:not(.btn):hover { background: var(--paper); text-decoration: none; }
  .header-nav > .btn { margin-top: 12px; }
  .header-nav .market-switch > summary { width: 100%; justify-content: space-between; }
  .header-nav .market-switch ul { position: static; box-shadow: none; margin-top: 6px; min-width: 0; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 29; background: rgba(var(--brand-rgb), .45); }
  .nav-backdrop[hidden] { display: none; }
  .nav-toggle { position: relative; z-index: 31; }
  body.nav-locked { overflow: hidden; }
  body.nav-locked .site-header { z-index: 40; }
}
/* Phones (owner 2026-12-01): ONE row: a large logo that takes all the room left, the market picker (flag AND name, the
   name truncates), the account control as a 44x44 person icon, the menu button. The logo never wraps to its own row. */
.hdr-cta-sr { display: none; }
@media (max-width: 479px) {
  .header-row { gap: 10px 8px; }
  .logo { flex: 1 1 0; min-width: 0; max-width: 148px; }
  .logo img { width: 100%; max-width: 148px; }
  .header-acts { gap: 6px; }
  .hdr-cta { width: 44px; height: 44px; padding: 0; border-radius: 999px; justify-content: center; }
  .hdr-cta .bi { margin: 0; }
  .hdr-cta-txt { display: none; }
  .hdr-cta-sr { display: block; }
}
/* Header actions: install icon, Create account (always outside the menu), menu button (mobile only). */
.header-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-install, .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 0;
  border: 1px solid var(--field-line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer;
}
.hdr-install:hover, .nav-toggle:hover { border-color: var(--ink); }
.hdr-install .ico { background: var(--ink); width: 20px; height: 20px; }
.hdr-cta { min-height: 44px; padding: 6px 14px; font-size: 0.875rem; white-space: nowrap; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; inset-inline-start: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }
.ico-install { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m-5-5 5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }
@media (min-width: 1024px) {
  .nav-toggle, .nav-backdrop, .nav-menu-only { display: none !important; }
  .header-nav { order: 1; }
  .header-acts { order: 2; }
  .site-header .header-nav .js-auth { order: 0; }
}
@media (max-width: 359px) { .hdr-install { display: none; } }
/* Install and sign-in intro pages */
.install-icon { border-radius: 16px; margin-bottom: 12px; }
.install-guides { display: grid; gap: 10px; margin-block: 20px; }
.install-guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 16px; margin-bottom: 10px; }
.install-guide > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; cursor: pointer; font-weight: 600; list-style: none; }
.install-guide > summary::-webkit-details-marker { display: none; }
.install-guide > summary::after { content: ""; flex: none; width: 8px; height: 8px; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg); }
.install-guide[open] > summary::after { transform: rotate(-135deg); }
.install-guide > summary > span:first-child { flex: 1; }
.install-guide ol { margin: 0 0 8px; padding-inline-start: 1.4em; }
.install-guide li { margin-bottom: 6px; }
.signin-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; max-width: 26rem; margin-inline: auto; } /* owner rule 2026-12-03: action and option groups are centre-aligned */
.signin-actions .btn { min-height: 48px; justify-content: center; text-align: center; white-space: normal; }
/* No sideways drift anywhere: root causes are fixed per component; this is the safety net (clip keeps sticky working). */
html, body { overflow-x: clip; max-width: 100%; }
/* Root causes: a long <option> (adsell product + price) or a grid/flex child must never widen its column. */
select, input, textarea { max-width: 100%; }
.field, fieldset { min-width: 0; }
:is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) { font-size: max(16px, 1em); } /* 16px stops iOS zooming into a focused field */

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .search, .cat-strip { display: none; } }

/* Slogan on one line from tablet up */
@media (min-width: 768px) { .slogan { max-width: none; } }

/* Offer actions + availability feedback */
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.offer-actions .btn[aria-pressed="true"], .fb-form .btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.js-toast, .fb-status { font-size: 0.925rem; color: var(--go); }
.feedback { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; }
.fb-h { font-size: 1.0625rem; }
.fb-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.base-price { font-size: 1rem; font-weight: 400; color: var(--ink-soft); margin-inline-start: 10px; }

/* Saved list */
.saved-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.saved-list li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t b" "o b"; align-items: center; gap: 2px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.saved-list a { grid-area: t; font-weight: 600; }
.saved-list .muted { grid-area: o; font-size: 0.9rem; }
.saved-list .btn { grid-area: b; }

/* Bottom navigation (phones) */
.bottom-nav { display: none; }
@media (max-width: 1023px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 6;
    background: var(--surface); box-shadow: 0 -2px 12px rgba(var(--brand-rgb), 0.08); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 0.78rem; text-decoration: none; color: var(--ink-soft); }
  .bottom-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .bottom-nav a[aria-current="page"] .ico { background: var(--ink); }
  .site-footer { margin-top: 40px; }
}
.ico { width: 22px; height: 22px; background: var(--ink-soft); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 12 4l8 6.5V20h-5.5v-6h-5v6H4z'/%3E%3C/svg%3E"); }
.ico-explore { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m15 15 5 5'/%3E%3C/svg%3E"); }
.ico-saved { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6 4h12v16l-6-4-6 4z'/%3E%3C/svg%3E"); }
.ico-business { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 9h16l-1.5-5h-13zM5 9v11h14V9M10 20v-6h4v6'/%3E%3C/svg%3E"); }

/* Account */
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.inline-form { display: inline; margin: 0; }

/* Market switcher (native details: works without JS, keyboard and screen readers) */
.market-switch { position: relative; }
.market-switch > summary {
  list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 0.875rem; color: var(--ink);
}
.market-switch > summary::-webkit-details-marker { display: none; }
.market-switch > summary::after { content: ""; width: 7px; height: 7px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.market-switch[open] > summary { border-color: var(--ink); }
.market-switch ul {
  position: absolute; inset-inline-start: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; max-height: 70vh; overflow: auto;
  list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-3);
}
.market-switch li a { display: block; padding: 10px 12px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; }
.market-switch li a:hover, .market-switch li a[aria-current] { background: var(--paper); }
.market-switch li a[aria-current] { font-weight: 600; }

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--ink-faint); }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* City + category filter */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-block: 16px; }
.filters .field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px; min-width: 0; }
.filters label { font-size: 0.875rem; color: var(--ink-soft); }
.filters select {
  min-height: 44px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--field-line);
  border-radius: var(--r-s); padding-inline: 12px;
}
.filters select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Browse by city */
.city-list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.city-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--field-line);
  border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none;
}
.city-list a:hover { border-color: var(--ink); }
.offer-by .sep::before { content: "·"; margin-inline: 6px; }

/* Slogan: «قبل ما تشتري،» leads quietly into the core line */
.slogan-lead { display: block; font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); margin-bottom: 0.15em; }
.footer-logo { margin: 0 0 14px; }
.footer-logo img { display: block; background: #fff; /* the logo artwork sits on white */ border-radius: var(--r-s); padding: 8px 10px; width: 180px; height: auto; }
.footer-slogan { font-size: clamp(1.2rem, 0.9rem + 1.4vw, 1.5rem); text-wrap: balance; }
/* Footer slogan breaks at the comma, never mid-phrase */
.footer-slogan span { display: block; white-space: nowrap; }
/* The hero heading reads as a description under the slogan, not a second slogan */
.hero h1 { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); font-weight: 500; color: var(--ink-soft); line-height: 1.5; max-width: 48ch; letter-spacing: 0; margin-block: 0.6em 0.4em; } /* visual audit F7: 40ch wrapped the longest market line (Oman) in the fallback font, then unwrapped when Readex Pro arrived (CLS 0.076); 48ch keeps every market on one line in both */
.nowrap { white-space: nowrap; }

/* Headings never leave one word alone on a line (owner rule); balance helps, .nowrap binds the last two words */
h1, h2, .slogan-line { text-wrap: balance; }

/* House copy line «{moment}؟ شوف العروض أول»: the type event of a listing, distinct from the heading under it */
.slogan-line {
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.9rem); font-weight: 700; line-height: 1.15; color: var(--ink);
  margin: 8px 0 10px; letter-spacing: 0;
}
.slogan-line .nowrap { box-shadow: inset 0 -0.28em 0 var(--accent); }
.slogan-line + h1 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.intro { color: var(--ink-soft); max-width: 68ch; margin: 0 0 8px; }

/* Offer type chip: a fact about the offer (خصم، هدية مع الشراء…) */
.otype { display: inline-block; font-weight: 600; color: var(--ink); background: var(--tint); border-radius: 6px; padding: 0 8px; margin-inline-end: 8px; }
.otype-lg { font-size: 0.8125rem; padding: 2px 10px; border-radius: 999px; vertical-align: middle; }

/* Offer types and level-2 sections: same pill language as the category strip */
.type-strip, .sub-strip { margin-block: 12px 8px; }
.type-strip ul, .sub-strip ul { list-style: none; margin: 0; padding: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.type-strip a, .sub-strip a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.type-strip a:hover, .sub-strip a:hover { border-color: var(--ink); }
.type-strip a[aria-current="page"], .sub-strip a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.sub-strip a { min-height: 40px; font-size: 0.9375rem; background: transparent; }

/* Category directory */
.cat-dir { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cat-dir > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; }
.cat-dir h2 { font-size: 1.15rem; margin: 0 0 4px; }
.cat-dir h2 a { color: var(--ink); text-decoration: none; }
.cat-dir h2 a:hover { text-decoration: underline; }
.cat-moment { color: var(--ink-soft); font-size: 0.9375rem; margin: 0 0 10px; }
.cat-dir ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.9375rem; }
.cat-dir ul a { display: inline-block; padding-block: 6px; color: var(--ink); }

/* About and FAQ */
.prose section { margin-top: 28px; }
.prose .slogan-line { margin-top: 0; }
.faq details { background: var(--surface); border-radius: var(--r-m); padding: 4px 16px; margin-block-end: var(--s-4); box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font-weight: 700; }
.faq details[open] summary::before { content: "−"; }
.faq summary h2 { font-size: 1.0625rem; margin: 0; font-weight: 600; }
.faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.faq details p { margin: 0 0 14px; padding-inline-start: 38px; color: var(--ink); }
.glossary { display: grid; grid-template-columns: 1fr; gap: 4px 20px; margin: 0; }
.glossary dt { font-weight: 650; margin-top: 10px; }
.glossary dd { margin: 0; color: var(--ink-soft); }
@media (min-width: 768px) { .glossary { grid-template-columns: max-content 1fr; } .glossary dt { margin-top: 0; } }
.branches { margin: 6px 0; }

/* «Ask your AI» box */
.ai-box { margin-top: 36px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-m); padding: clamp(18px, 4vw, 28px); max-width: 860px; }
.ai-box h2 { margin-bottom: 6px; }
.ai-tasks { border: 0; margin: 12px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ai-tasks legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.ai-tasks label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--field-line); border-radius: 999px; cursor: pointer; }
.ai-tasks label:has(input:checked) { border-color: var(--ink); background: var(--tint); font-weight: 600; }
.ai-tasks input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.ai-tasks input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ai-text { width: 100%; font: inherit; font-size: 0.9375rem; line-height: 1.6; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px; resize: vertical; }
.ai-text:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.js-ai-status { color: var(--go); font-weight: 600; }

/* Market flags: same box everywhere, aligned with the name, thin edge so white stripes show on white and navy. */
.flag { width: 20px; height: 15px; flex-shrink: 0; border-radius: 2px; box-shadow: 0 0 0 1px var(--flag-edge); vertical-align: middle; }
.market-switch > summary { gap: 8px; }
.market-switch li a { display: flex; align-items: center; gap: 8px; }
.site-footer .flag { box-shadow: 0 0 0 1px var(--flag-edge-brand); }

/* ── Home C (2026-11-30): alternating grounds, one navy band, quick-pick icons, moving strips ── */
.band { padding-block: clamp(28px, 5vw, 56px); }
.band .section-h { margin-top: 0; }
.g-white { background: var(--surface); }
.g-paper { background: var(--paper); }
.g-navy { background: var(--brand); color: var(--on-brand); }
.g-navy .section-h { color: var(--on-brand); }
.band-lead { color: var(--on-brand-soft); max-width: 64ch; }
.g-navy .type-strip a { background: var(--brand-raised); color: var(--on-brand); border-color: transparent; }
.g-navy .type-strip a:hover { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }
.g-navy :focus-visible { outline-color: var(--accent); }
.hero { border-bottom: 0; padding-block: clamp(28px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.slogan .nowrap { box-shadow: inset 0 -0.22em 0 var(--accent); }
.search-big { max-width: 760px; }
.more { margin-top: 20px; }

.quick-pick { margin-top: clamp(20px, 3vw, 32px); }
.qp-h { font-size: 1rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px; }
.quick-pick ul { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 104px; grid-template-rows: repeat(2, auto); gap: 8px; overflow-x: auto; scrollbar-width: thin; }
@media (min-width: 1024px) { .quick-pick ul { grid-auto-flow: row; grid-template-columns: repeat(8, 1fr); grid-template-rows: none; overflow: visible; } }
.quick-pick a {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; height: 100%; min-height: 92px;
  padding: 12px 6px; text-align: center; text-decoration: none; font-size: 0.8125rem; line-height: 1.35; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m);
}
.quick-pick a:hover { border-color: var(--ink); background: var(--surface); }
.ico24 { width: 24px; height: 24px; flex: none; color: var(--ink); }

/* Moving strips (M3): the page sends one still, scrollable list; app.js adds the inert loop copy + pause/play button and
   the .mq-run class that starts the motion (never under reduced motion). Hover, focus and the button pause it. */
.mq-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.mq-head .section-h { margin-bottom: 0; }
.mq-pause { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; background: var(--surface); color: var(--ink); }
.mq-pause::before { content: ""; width: 10px; height: 12px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.mq-paused .mq-pause { background: var(--ink); color: var(--on-ink); }
.mq-paused .mq-pause::before { border-inline: 0; border-block: 6px solid transparent; border-inline-start: 10px solid currentColor; width: 0; height: 0; }
.mq-pause:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mq { overflow-x: auto; scrollbar-width: none; }
.mq-run .mq { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.mq-track { display: flex; width: max-content; }
.mq-run .mq-track { animation: mq-ltr 60s linear infinite; }
[dir="rtl"] .mq-run .mq-track { animation-name: mq-rtl; }
.mq-run .mq-s { animation-duration: 24s; } .mq-run .mq-m { animation-duration: 48s; } .mq-run .mq-l { animation-duration: 80s; }
.mq:hover .mq-track, .mq:focus-within .mq-track, .mq-paused .mq-track { animation-play-state: paused; }
@keyframes mq-ltr { to { transform: translateX(-50%); } }
@keyframes mq-rtl { to { transform: translateX(50%); } }
.mq-list { list-style: none; margin: 0; padding: 4px 0; display: flex; gap: 12px; padding-inline-end: 12px; }
.mq-list > li { flex: none; }
@media (prefers-reduced-motion: reduce) {
  .mq-run .mq { overflow-x: auto; mask-image: none; }
  .mq-track, .mq-run .mq-track { animation: none; }
  .mq-dup, .mq-pause { display: none; }
}

.mq-ticker a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.mq-ticker a:hover { border-color: var(--ink); }
.tk-org { font-weight: 650; }
.tk-title { color: var(--ink-soft); max-width: 34ch; overflow: hidden; text-overflow: ellipsis; }
.tk-benefit { background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: 0.875rem; }

.logo-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 152px; padding: 12px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); text-align: center; }
.g-white .logo-tile { background: var(--paper); }
.logo-tile:hover { border-color: var(--ink); }
.logo-box { display: grid; place-items: center; width: 120px; height: 60px; overflow: hidden; }
.logo-box img { width: 120px; height: 60px; object-fit: contain; }
.logo-text { font-weight: 700; font-size: 0.9375rem; line-height: 1.2; background: var(--paper); border-radius: var(--r-s); padding: 4px; }
.logo-name { font-size: 0.8125rem; color: var(--ink-soft); max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mini-card { display: flex; flex-direction: column; gap: 4px; width: 240px; height: 100%; padding: 0 0 12px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.mini-card:hover { border-color: var(--ink); }
.mini-card > span:not(.mini-img) { padding-inline: 12px; }
.mini-img { display: grid; place-items: center; width: 240px; height: 135px; background: var(--paper); overflow: hidden; }
.mini-img img { width: 240px; height: 135px; object-fit: cover; }
.mini-title { font-weight: 650; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; }
.mini-org, .mini-meta { font-size: 0.8125rem; color: var(--ink-soft); }
.sponsored { align-self: flex-start; margin-inline: 12px; font-size: 0.75rem; font-weight: 700; color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; padding: 0 6px; }
.logo-tile .sponsored { align-self: center; margin: 0; }

/* Smart optional fields */
.org-logo { margin: 0 0 12px; }
.org-logo img { width: 160px; height: 80px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px; }
.org-facts { margin-block: 8px 24px; }
.offer-img { margin: 16px 0 0; max-width: 640px; aspect-ratio: 16 / 9; background: var(--paper); border-radius: var(--r-m); overflow: hidden; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; }
.code-chip { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; background: var(--accent); color: var(--on-accent); padding: 2px 10px; border-radius: var(--r-s); border: 1.5px dashed var(--ink); }

/* Admin */
.notice { background: var(--surface); border-inline-start: 4px solid var(--ink); padding: 10px 14px; border-radius: var(--r-s); }
.admin-form input:not([type="checkbox"]) { min-height: 44px; font: inherit; padding-inline: 10px; border: 1px solid var(--field-line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); }
.table-wrap { position: relative; overflow-x: auto; max-width: 100%; } /* relative: the .sr spans inside cells must not leak out of the scroller (RTL sideways scroll at 375 px) */
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: start; vertical-align: middle; }
.admin-table tbody tr:nth-child(odd), .items-table tbody tr:nth-child(odd) { background: var(--sunken); }
.items-table { width: 100%; border-collapse: collapse; background: var(--surface); font-variant-numeric: tabular-nums; }
.items-table caption { text-align: start; padding-block-end: 6px; }
.items-table th, .items-table td { padding: 10px 12px; text-align: start; vertical-align: top; }
.items-table thead th { font-weight: 600; }
.items-table tbody th { font-weight: 500; }
@media (max-width: 639px) {
  .items-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .items-table tr { display: block; padding: 10px 0; border-radius: var(--r-s); }
  .items-table tbody th, .items-table td { display: block; border: 0; padding: 2px 10px; }
  .items-table td:empty { display: none; }
  .items-table td::before { content: attr(data-label) ": "; color: var(--ink-soft); }
}
.token-once { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; background: var(--surface); border: 1.5px dashed var(--ink); padding: 10px 12px; border-radius: var(--r-s); }
.mq-static { mask-image: none; overflow-x: auto; }
.mq-static .mq-list { flex-wrap: wrap; }
@media (max-width: 639px) { .mq-static .mq-list { flex-wrap: nowrap; } }

/* Search typeahead (batch SEARCH): grouped listbox under the input */
.has-suggest, .header-search { position: relative; }
.suggest {
  position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 20; max-height: min(70vh, 460px); overflow-y: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-3); padding: 6px; text-align: start;
}
.suggest-h { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); padding: 10px 12px 4px; }
.suggest-o { display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: center; padding: 8px 12px; border-radius: var(--r-s); cursor: pointer; }
.suggest-o:hover, .suggest-o[aria-selected="true"] { background: var(--tint); }
.suggest-o[aria-selected="true"] { outline: 2px solid var(--focus); outline-offset: -2px; }
.suggest-sub { font-size: 0.8125rem; color: var(--ink-soft); }
.did-you-mean { font-size: 1.0625rem; margin-block: 8px; }
.matched { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.matched p { margin: 0; color: var(--ink-soft); }
.fallback { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(18px, 4vw, 32px); margin-top: 16px; }
.fallback h2 { margin-top: 0; font-size: 1.25rem; }
.fallback h3 { font-size: 1rem; margin-block: 18px 4px; }
.fallback > p { color: var(--ink-soft); max-width: 66ch; }
@media (max-width: 640px) { .header-search .suggest { position: fixed; inset-inline: 8px; top: 64px; } }

/* Weekly flyers (batch D1): cards with a reserved cover box, and a scroll-snap viewer (no library). */
.flyer-cover { display: block; margin: -2px -2px 10px; background: var(--paper); border-radius: var(--r-s); overflow: hidden; }
/* feat/flyer-link-download-1203: card = link + one-tap download (siblings, never nested links) */
.flyer-card { display: flex; flex-direction: column; gap: var(--s-3); }
@media (min-width: 768px) { .flyer-card { gap: var(--s-4); } }
.flyer-card > .offer-link { flex: 1; height: auto; }
.flyer-card > .flyer-dl { width: 100%; }
.flyer-dl .ico, .wfl-link .ico { flex: none; }
.flyer-valid { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.flyer-cover img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.flyer-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--ink-soft); }
.flyer-viewer { margin-block: 16px; }
/* D1-part2: what is inside a flyer (items per page, page text) and flyer search hits */
.flyer-inside { margin-block: 20px; }
.flyer-inside-page { background: var(--surface); border-radius: var(--r-m); padding: 14px 16px; margin-block-end: 10px; }
.flyer-inside-page h3 { margin: 0 0 6px; font-size: 1rem; }
.flyer-items { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 4px; }
.flyer-items s { color: var(--ink-soft); }
.flyer-text { white-space: normal; overflow-wrap: anywhere; color: var(--ink-soft); }
.flyer-hits { margin-block: 24px; }
.flyer-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 8px; }
.flyer-track:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.crumbs { font-size: 0.925rem; color: var(--ink-soft); margin-bottom: 8px; }

/* Business directory (D3) */
.dir-index { list-style: none; margin: 12px 0 24px; padding: 0; display: grid; gap: 8px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.dir-index li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.dir-index a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.dir-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dir-grid { grid-template-columns: repeat(3, 1fr); } }
.dir-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.dir-logo { width: 96px; height: 48px; object-fit: contain; object-position: start; }
.dir-name { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.dir-name a { color: var(--ink); }
.dir-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-soft); font-size: 0.925rem; }
.dir-cat { font-weight: 600; }
.dir-live { margin: 0; }
.dir-live a { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.dir-actions { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.925rem; }
.dir-actions a { min-height: 44px; display: inline-flex; align-items: center; }

/* Batch E: policy links in the footer, legal pages, consent centre, reserved ad slots (inert while ads are off) */
.footer-policies ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.footer-policies a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-brand); }
.legal .toc ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legal .toc a { display: inline-flex; min-height: 44px; align-items: center; }
.legal-table { font-size: 0.925rem; }
.legal-table th[scope="row"] { font-weight: 600; }
.legal-table code { font-size: 0.875rem; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); }
.contact-list span { color: var(--ink-soft); }
.choices fieldset { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); padding: 12px 16px; margin: 0 0 8px; }
.choices legend { font-weight: 700; padding-inline: 4px; }
.choices .check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-block: 8px; cursor: pointer; }
.choices .check input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.status-line:empty { display: none; }
.status-line { font-weight: 600; color: var(--go); }
.ad-slot { margin-block: 28px; padding: 8px; min-height: calc(var(--ad-h, 280px) + 32px); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-s); contain: layout; overflow: hidden; }
@media (min-width: 768px) { .ad-slot { min-height: calc(var(--ad-h-lg, 250px) + 32px); } }
.ad-label { margin: 0 0 6px; font-size: 0.75rem; letter-spacing: 0; color: var(--ink-soft); text-align: center; }
.ad-slot .adsbygoogle { display: block; min-height: var(--ad-h, 280px); }
@media (min-width: 768px) { .ad-slot .adsbygoogle { min-height: var(--ad-h-lg, 250px); } }

/* Batch 2: publisher dashboard, claims, moderation */
.notice-err { border-inline-start-color: var(--danger); }
.notice-err > p:first-child, .notice-err:not(:has(p)) { color: var(--danger); font-weight: 600; }
.notice ul { margin: 6px 0 0; padding-inline-start: 20px; }
.pub-form { display: grid; gap: 16px; max-width: 760px; margin-block: 16px 32px; }
.pub-form fieldset { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); padding: 16px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.pub-form legend { font-weight: 700; padding-inline: 6px; }
.pub-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pub-form label { font-weight: 600; }
.pub-form .opt { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; min-height: 44px; padding-block: 8px; }
.pub-form .opt input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.pub-form input:not([type="checkbox"]):not([type="radio"]), .pub-form select, .pub-form textarea, .mod-reason input, .items-edit input, .items-edit select {
  min-height: 44px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--field-line); border-radius: var(--r-s); padding: 8px 10px; width: 100%; min-width: 0; }
.pub-form textarea { resize: vertical; }
.pub-form :is(input, select, textarea):focus-visible, .mod-reason input:focus-visible, .items-edit :is(input, select):focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.pub-form .hint { margin-top: 0; }
.req { font-size: 0.8125rem; font-weight: 400; color: var(--ink-soft); }
.req-gate { color: var(--late); }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.handle-row { display: flex; align-items: center; gap: 6px; }
.handle-row span { color: var(--ink-soft); white-space: nowrap; }
.field-static { margin: 0; }
.more { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); padding: 12px 16px; }
.more > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.more[open] > summary { margin-bottom: 12px; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0 12px; }
.branch-list { display: grid; gap: 12px; }
.branch-row { grid-template-columns: 1fr; }
@media (min-width: 768px) { .branch-row { grid-template-columns: 1fr 1fr 1fr; } }
.items-edit { min-width: 720px; }
.items-edit td { padding: 4px; }
.items-edit td.size { display: flex; gap: 4px; }
.items-edit td.size input { width: 5.5em; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pub-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pub-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
.pub-card h3 { margin: 0 0 4px; }
.empty-box { background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--r-m); padding: 20px; color: var(--ink-soft); }
.due { color: var(--late); font-size: 0.875rem; font-weight: 600; }
.plain { list-style: none; padding: 0; display: grid; gap: 8px; }
.inline-grid { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 640px) { .inline-grid { grid-template-columns: 2fr 1fr auto; } }
.pub-split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .pub-split { grid-template-columns: minmax(0, 1fr) 340px; } .phone-preview { position: sticky; top: 96px; } }
.pv-h { font-size: 1rem; margin: 0 0 8px; }
.phone { border: 10px solid var(--ink); border-radius: 34px; background: var(--paper); padding: 18px 10px; max-width: 320px; min-height: 420px; }
.phone-screen { display: grid; gap: 10px; }
.pv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; }
.pv-card h3 { margin: 8px 0 4px; font-size: 1.0625rem; overflow-wrap: anywhere; }
.pv-card p { margin: 4px 0; overflow-wrap: anywhere; }
.pv-summary { color: var(--ink); font-size: 0.925rem; }
.mod-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px 20px; }
.mod-tabs a { border: 1px solid var(--field-line); border-radius: 999px; padding: 8px 14px; min-height: 44px; display: inline-flex; align-items: center; background: var(--surface); }
.mod-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.mod-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
.mod-item h3 { margin: 0 0 6px; }
.mod-item .row-actions { margin-top: 12px; }
.mod-reason { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.mod-reason input { width: auto; min-width: 14em; }
.tag { display: inline-block; font-size: 0.8125rem; font-weight: 600; border: 1px solid currentColor; border-radius: 999px; padding: 0 8px; }
.tag-ok { color: var(--go); }
.tag-warn { color: var(--late); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Batch 2a: house/direct banners (aspect ratio reserved by width/height: no layout shift) and the city+category pin. */
.ad-direct { margin-block: 28px; contain: layout; }
.ad-direct a { display: block; border-radius: var(--r-s); overflow: hidden; }
.ad-direct a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ad-direct img { display: block; width: 100%; height: auto; }
.pin-slot { margin-block: 12px 20px; }
.ad-pop { max-width: min(92vw, 720px); padding: 16px; border: 0; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-3); color: var(--ink); }
.ad-pop::backdrop { background: var(--scrim); }
.ad-pop a { display: block; border-radius: var(--r-s); overflow: hidden; }
.ad-pop a:focus-visible, .ad-pop button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ad-pop img { display: block; width: 100%; height: auto; }
.ad-pop form { margin-top: 12px; text-align: center; }
.card-box { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); padding: 16px; margin-block: 16px 24px; }
.kv { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 6px 16px; margin: 0 0 12px; }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 6px; } }
.pin-slot .ad-label { text-align: start; font-weight: 700; color: var(--ink); }
.num-s { width: 5.5em; }
.adv-form { display: grid; gap: 12px; max-width: 560px; }
.adv-form textarea { width: 100%; font: inherit; }
.adv-form .hp { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Batch 3: offer actions, follow, reminders, reports, reviews, account hub */
.offer-actions-2 { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: -12px 0 24px; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.follow .btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.act-details { position: relative; }
.act-details > summary { list-style: none; cursor: pointer; }
.act-details > summary::-webkit-details-marker { display: none; }
.act-details[open] > summary { background: var(--surface); }
.act-panel { display: grid; gap: 8px; margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); width: min(100%, 26rem); min-width: 0; }
.act-details[open] { flex-basis: 100%; }
.act-panel fieldset, .acct-prefs fieldset, .acct-follow fieldset, .star-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.act-panel legend, .acct-prefs legend, .acct-follow legend, .star-pick legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.chk { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.act-panel textarea, .review-form textarea { width: 100%; font: inherit; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--r-s); color: var(--ink); background: var(--surface); }
.act-panel textarea:focus-visible, .review-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.act-panel .hp { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.stars { color: var(--late); letter-spacing: 1px; }
.rating-avg { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.review-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.review-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; }
.review-list p { margin: 4px 0; }
.review-meta { color: var(--ink-soft); font-size: 0.9rem; }
.review-form { display: grid; gap: 8px; max-width: 560px; margin-top: 12px; }
.account section { margin-top: 28px; }
.acct-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.acct-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; }
.acct-list > li > div { min-width: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
.acct-follow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.acct-prefs { display: grid; gap: 16px; max-width: 560px; }
.push-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.act-panel[hidden], .push-box [hidden] { display: none !important; }
/* Batch 4: flyer text review (image beside its text; stacked on phones) + current logo preview */
.flyer-text-row { background: var(--surface); border-radius: var(--r-m); padding: 16px; margin-block-end: 12px; }
.flyer-text-row h2 { font-size: 1.125rem; margin: 0 0 8px; }
.flyer-text-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .flyer-text-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.flyer-text-grid img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.flyer-text-grid textarea { width: 100%; min-height: 18rem; font: inherit; line-height: 1.65; }
.logo-current { margin-block: 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }

/* Batch 5: redemption steps + promo-code card */
.redeem-methods { margin-block: 24px; }
.rm-list { padding-inline-start: 1.2em; display: grid; gap: 16px; }
.rm-label { font-weight: 600; }
.rm-step { color: var(--ink-soft); font-weight: 500; }
.code-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--surface); border: 1.5px dashed var(--ink); border-radius: var(--r-m); padding: 12px 14px; margin-block: 8px; }
.code-text { font-family: ui-monospace, Consolas, monospace; font-size: 1.2rem; letter-spacing: .04em; color: var(--on-accent); background: var(--accent); border: 0; border-radius: var(--r-s); padding: 6px 12px; min-inline-size: 0; inline-size: min(100%, 16ch); text-align: center; unicode-bidi: isolate; }
.code-text:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.code-tag { font-size: .85rem; font-weight: 600; background: var(--ink); color: var(--on-ink); padding: 2px 8px; border-radius: var(--r-s); }
.rm-conds { margin: 6px 0; padding-inline-start: 1.2em; }
.cf-form fieldset { border: 0; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cf-form legend { font-weight: 600; margin-block-end: 6px; }
.cf-form .btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.cf-reason select { min-block-size: 44px; }
.coupon-list { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.coupon-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
.coupon-title { font-size: 1.05rem; margin: 6px 0; }

/* Batch 6: install prompt — a small bar above the bottom nav, shown only by app.js, dismissible, never on first view. */
.install-bar[hidden] { display: none; }
.install-bar {
  position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 7; max-width: 520px; margin-inline: auto;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow-3);
}
.install-bar img { border-radius: 9px; flex: none; }
.install-bar p { margin: 0; flex: 1 1 180px; font-size: .92rem; line-height: 1.5; }
.install-bar .btn { min-height: 44px; }
@media (max-width: 1023px) { .install-bar { bottom: calc(72px + env(safe-area-inset-bottom)); } }


/* ══ Design system v2 (2026-12-01): calm, content-first. Tonal surfaces and soft elevation instead of lines;
   one accent (apricot) for the benefit only; type scale and spacing tokens; links without underlines. ══ */

/* Type hierarchy: one scale for every inner page */
.page h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-block-end: var(--s-3); }
.page h2 { font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.45rem); font-weight: 650; margin: 0 0 var(--s-3); }
.page h3 { font-size: var(--fs-l); font-weight: 650; }
.band-lead { color: var(--ink-soft); }
.g-navy .band-lead { color: var(--on-brand-soft); }
.hero .lead, .hero h1 { color: var(--ink); }

/* Links in running copy: link colour (3.25:1 against body text) + weight; underline only on hover/focus (WCAG 1.4.1). */
:where(.prose, .legal, .narrow, .card, .org-desc, .faq, .intro, .empty, .notice) :where(p, dd) a:not([class]):not(nav a) { color: var(--link); font-weight: 600; text-decoration: none; }
:where(.prose, .legal, .narrow, .card, .org-desc, .faq, .intro, .empty, .notice) :where(p, dd) a:not([class]):not(nav a):is(:hover, :focus-visible) { text-decoration: underline; }
.dir-name a:hover, .cat-dir ul a:hover, .cat-dir h2 a:hover, .saved-list a:hover, .offer-by a:hover { color: var(--link); text-decoration: none; }
.offer-link:hover .offer-title { text-decoration: none; color: var(--link); }

/* Surfaces: cards lose their outline and gain soft elevation */
:is(.offer-link, .dir-card, .cat-dir > li, .saved-list li, .pub-card, .mod-item, .review-list li, .acct-list > li, .coupon-item,
  .contact-list li, .fallback, .feedback, .card-box, .pv-card, .logo-tile, .mini-card, .quick-pick a, .more, .pub-form fieldset,
  .choices fieldset, .act-panel, .ai-box, .notice, .empty, .empty-box, .code-card, .flyer-cover) { border: 0; box-shadow: var(--shadow-1); }
.empty, .empty-box { background: var(--surface); }
.notice { border-inline-start: 0; background: var(--surface); }
.notice-err { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--danger); }
:is(.offer-link, .logo-tile, .mini-card, .quick-pick a) { transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
:is(.offer-link, .logo-tile, .mini-card, .quick-pick a):hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: transparent; }
.card { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: clamp(18px, 3vw, 28px); margin-block-end: var(--s-4); }
.card > h2:first-child, .card > header > h2:first-child { margin-top: 0; }
/* Offer page and prose sections become cards so content groups read at a glance */
.offer-page > section, .prose > section, .account > section, .legal > section:not(.toc) { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: clamp(18px, 3vw, 28px); margin-block: 0 var(--s-4); }
.offer-page > section.redeem-methods, .offer-page > section.feedback { margin-block: 0 var(--s-4); }

/* Chips and pills: tonal, no outline */
:is(.cat-strip a, .type-strip a, .sub-strip a, .city-list a, .mod-tabs a, .ai-tasks label, .mq-ticker a) { border-color: transparent; background: var(--surface); box-shadow: var(--shadow-1); }
:is(.cat-strip a, .type-strip a, .sub-strip a, .city-list a, .mod-tabs a, .ai-tasks label, .mq-ticker a):hover { border-color: transparent; background: var(--tint); }
.g-white :is(.cat-strip a, .type-strip a, .sub-strip a, .city-list a, .mq-ticker a) { background: var(--sunken); box-shadow: none; }
.g-white :is(.cat-strip a, .type-strip a, .sub-strip a, .city-list a, .mq-ticker a):hover { background: var(--tint); }
:is(.cat-strip, .type-strip, .sub-strip) a[aria-current="page"], .ai-tasks label:has(input:checked) { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.g-white .logo-tile, .g-white .quick-pick a { background: var(--sunken); box-shadow: none; }
.quick-pick a { background: var(--surface); }
.badge { border: 0; background: color-mix(in srgb, currentColor 12%, transparent); padding: 3px 10px; }
.otype { background: var(--tint); }
.empty { border-radius: var(--r-l); text-align: center; margin-inline: auto; } /* owner rule 2026-12-03: centred */
.empty h2 { font-size: var(--fs-xl); }
.pager a { border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-1); padding-inline: 18px; }
.pager a:hover { background: var(--tint); }
.fb-status, .js-toast { color: var(--go); }

/* Buttons: one height, icon slot */
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { border-color: transparent; background: var(--sunken); }
.btn-ghost:hover { background: var(--tint); }
.site-footer .btn-ghost { background: transparent; }

/* Direction-aware chevron: one icon, mirrored in RTL */
.chev { width: 18px; height: 18px; flex: none; color: var(--ink-faint); margin-inline-start: auto; }
[dir="rtl"] .chev { transform: scaleX(-1); }

/* Logo plate: the tile colour is chosen per logo (orgs.logo_bg) so white-on-transparent marks stay readable in both themes. */
.plate { display: grid; place-items: center; flex: none; overflow: hidden; background: #FFFFFF; border-radius: var(--r-m); box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.08); }
.plate-dark { background: var(--plate-dark); }
.plate img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }


/* Org profile */
.org-page { max-width: 1040px; }
.org-hero { display: grid; gap: var(--s-4); }
.org-id { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.org-id .plate { width: 88px; height: 88px; }
.org-id h1 { margin: 0 0 var(--s-2); font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); overflow-wrap: anywhere; }
.org-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 12px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; background: var(--tint); color: var(--ink); }
a.chip:hover { background: var(--ink); color: var(--on-ink); }
.chip svg { width: 16px; height: 16px; }
.chip-ok { color: var(--go); background: color-mix(in srgb, var(--go) 12%, transparent); }
.org-desc { margin: 0; max-width: 68ch; font-size: var(--fs-l); color: var(--ink); }
.org-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-2); }
.org-actions .follow { gap: var(--s-2); }
.org-actions .js-toast:empty { display: none; }
.logo-note { margin: 0; font-size: var(--fs-xs); color: var(--ink-faint); display: flex; align-items: center; gap: 6px; }
.logo-note svg { width: 16px; height: 16px; flex: none; }
.org-grid { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .org-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }

/* Info tiles: icon + label + value; a link tile is a full tappable row with a chevron */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.info-tile { display: flex; align-items: center; gap: var(--s-3); min-height: 60px; padding: 10px 14px; border-radius: var(--r-m); background: var(--sunken); color: var(--ink); min-width: 0; }
a.info-tile { transition: background-color 150ms var(--ease); }
a.info-tile:hover { background: var(--tint); }
.info-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); color: var(--ink); flex: none; }
.info-ico svg { width: 20px; height: 20px; }
.info-text { display: grid; min-width: 0; }
.info-k { font-size: var(--fs-xs); color: var(--ink-soft); }
.info-v { font-weight: 600; overflow-wrap: anywhere; }

/* Social accounts: recognisable platform buttons, 44px+ targets, never mirrored */
.social-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); }
.social-btn { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: var(--r-m); background: var(--sunken); color: var(--ink); font-weight: 600; font-size: var(--fs-s); }
.social-btn:hover { background: var(--ink); color: var(--on-ink); }
.social-btn svg { width: 20px; height: 20px; flex: none; }

/* A link row with a chevron (claim the page, see all...) */
.link-row { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 10px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); font-weight: 600; }
.link-row:hover { background: var(--tint); }
.link-row .info-ico { background: var(--sunken); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin-block: var(--s-6) var(--s-3); }
.section-head h2 { margin: 0; }
.section-head .count { margin: 0; }

/* Offer card v2: media slot (16:9, reserved) + body + perforated benefit stub */
.offer-card > .offer-link { position: relative; grid-template-areas: "media media" "status stub" "title stub" "org stub" "meta stub"; grid-template-rows: auto auto 1fr auto auto; padding: 0; column-gap: 14px; overflow: hidden; }
.oc-media { grid-area: media; display: block; aspect-ratio: 16 / 9; background: var(--sunken); overflow: hidden; }
.oc-media > img { width: 100%; height: 100%; object-fit: cover; }
.oc-media.plate { display: grid; width: 100%; border-radius: 0; box-shadow: none; }
.oc-media.plate img { width: 56%; height: 62%; padding: 0; }
.offer-card .badge { margin: 14px 0 0; margin-inline-start: 18px; }
.offer-card .offer-title { margin: 8px 0 6px; margin-inline-start: 18px; align-self: start; line-height: 1.4; }
.offer-card .offer-org { margin-inline-start: 18px; }
.offer-card .offer-meta { margin: 8px 0 16px; margin-inline-start: 18px; }
.offer-card .benefit { margin: 0; align-self: stretch; border-start-end-radius: 0; border-end-end-radius: var(--r-m); width: 92px; }

/* Media slots with reserved geometry (no CLS) for images, flyers and future banners */
.media-slot { position: relative; aspect-ratio: var(--ar, 16 / 9); background: var(--sunken); border-radius: var(--r-l); overflow: hidden; }
.media-slot > img { width: 100%; height: 100%; object-fit: cover; }
.offer-img { border-radius: var(--r-l); background: var(--sunken); }
.offer-img a { display: block; height: 100%; cursor: zoom-in; }
.offer-fallback { margin: 16px 0 0; max-width: 640px; aspect-ratio: 16 / 9; border-radius: var(--r-l); }
.offer-fallback img { width: 48%; height: 60%; padding: 0; }
.ad-slot { border: 0; background: var(--sunken); border-radius: var(--r-l); }

/* Offer facts as tiles */
.offer-page .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--s-2); }
.offer-page .facts > div { background: var(--sunken); border-radius: var(--r-m); padding: 10px 14px; }
.offer-page .facts dt { font-size: var(--fs-xs); color: var(--ink-soft); }
.offer-page .facts dd { font-weight: 600; }
.offer-page h3 { font-size: var(--fs-m); margin-block: var(--s-5) var(--s-2); }
.price { margin-block: var(--s-3); }

/* Directory card: plate + text */
.dir-card { gap: var(--s-2); border-radius: var(--r-l); padding: 18px; }
.dir-card .plate { width: 112px; height: 56px; border-radius: var(--r-s); }
.dir-actions a { color: var(--link); font-weight: 600; }
.logo-tile .plate { width: 120px; height: 60px; border-radius: var(--r-s); }
.logo-name { color: var(--ink-soft); }

/* FAQ: cards, + / − marker */
.faq summary::before { border: 0; background: var(--tint); }

/* Tables keep their own scroller; zebra rows replace rules */
.items-table, .admin-table { border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-1); }

/* Footer: organised columns, group headings, comfortable spacing, no rules */
.footer-cols { gap: var(--s-6) var(--s-5); }
.footer-cols h2 { font-size: var(--fs-s); letter-spacing: 0; margin-block-end: var(--s-2); }
.footer-cols a, .footer-policies a { color: var(--on-brand-soft); }
.footer-cols a:hover, .footer-policies a:hover { color: var(--on-brand); }
.footer-legal { margin-top: var(--s-5); }
.site-footer .wrap > * + * { border: 0; }




/* Form fields: visible 3:1 outline, readable placeholder (4.5:1) */
::placeholder { color: var(--ink-faint); opacity: 1; }
:is(input, select, textarea) { color: var(--ink); }

::selection { background: var(--accent); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { :is(.offer-link, .logo-tile, .mini-card, .quick-pick a):hover { transform: none; } }

/* Stretched title link: the whole card opens the offer; the org identity link sits above it (no nested anchors). */
.oc-link { color: inherit; }
.oc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-m); }
.oc-link:focus-visible { outline: none; }
.offer-link:has(.oc-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.offer-link:hover .oc-link { color: var(--link); }

/* Org identity: logo plate (only when a logo exists) + name + claimed mark, one tappable unit, truncation-safe */
.org-ident { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; min-height: 32px; justify-self: start; color: var(--ink); font-weight: 600; font-size: var(--fs-s); border-radius: var(--r-s); }
a.org-ident:hover .oi-name { color: var(--link); }
.oi-plate.plate { width: 44px; height: 26px; border-radius: 6px; }
.oi-plate.plate img { padding: 8%; }
.oi-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oi-ok { width: 16px; height: 16px; flex: none; color: var(--go); }
.offer-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.tk-org.org-ident { font-weight: 650; }
.mini-org.org-ident { padding-inline: 12px; font-size: var(--fs-xs); }


.oc-media.plate-dark { background: var(--plate-dark); }
/* On an org's own page every card would repeat the same logo: the fallback slot collapses there (an offer image still shows). */
.org-page .oc-media.plate { display: none; }
.org-page .offer-card > .offer-link { grid-template-areas: "status stub" "title stub" "org stub" "meta stub"; grid-template-rows: auto 1fr auto auto; }
.org-page .offer-card:has(.oc-media > img) > .offer-link { grid-template-areas: "media media" "status stub" "title stub" "org stub" "meta stub"; grid-template-rows: auto auto 1fr auto auto; }
/* Fact lists never push the page sideways: values wrap, and phones stack label over value. */
.facts dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .facts:not(.offer-page .facts) { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .facts:not(.offer-page .facts) dd { margin-block-end: var(--s-2); } }
.footer-nl ::placeholder { color: #5F6B7E; } /* the newsletter fields stay white in both themes: 4.9:1 */
.oc-media.plate > img { object-fit: contain; }   /* a logo is never cropped */
.oc-media.plate-light { background: #FFFFFF; }
/* No image and no logo: the business name set in type fills the slot (no letter tile, no fake mark). */
.oc-name { display: grid; place-items: center; padding: 0 var(--s-5); background: #FFFFFF; color: var(--ink); font-weight: 700; font-size: var(--fs-xl); line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.org-page .oc-name { display: none; }
/* Install page: iOS glyphs inline in the step text and as a step-chip strip (light theme). */
.inline-i { display: inline-flex; vertical-align: -5px; margin-inline: 2px; padding: 2px; color: #0A63D6; background: #EEF4FD; border: 1px solid #C9DBF6; border-radius: 6px; }
.ios-i { display: block; }
.step-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.chip-i { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #0A63D6; background: #EEF4FD; border: 1px solid #C9DBF6; border-radius: 12px; }
.chip-i .ios-i { width: 24px; height: 24px; }
.chip-t { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; color: #0A63D6; background: #EEF4FD; border: 1px solid #C9DBF6; border-radius: 12px; font-weight: 600; }
.chip-arrow { width: 8px; height: 8px; border-right: 2px solid var(--ink-soft); border-top: 2px solid var(--ink-soft); transform: rotate(45deg); } /* physical: points right, flipped for RTL */
[dir="rtl"] .chip-arrow { transform: rotate(-135deg); }

/* FOR-YOU: /{m}/for-you settings, onboarding chips, sort bar, cards with "hide store", home strip */
.fy-prefs { margin-block: 16px 24px; }
.fy-form { display: grid; gap: 24px; }
.fy-opts { display: grid; gap: 0 16px; }
.fy-cols .fy-opts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.fy-onboard { background: var(--surface); border-radius: var(--r-m); padding: clamp(16px, 4vw, 28px); margin-block: 16px; }
.fy-onboard h2 { margin-top: 0; }
.fy-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fy-chip { position: relative; }
.fy-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.fy-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--field-line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); }
.fy-chip input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.fy-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.fy-sort { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.fy-sort .btn { min-height: 44px; }
.fy-sort-h { font-weight: 600; margin-inline-end: 4px; }
.fy-grid .offer-card { display: flex; flex-direction: column; gap: 6px; }
.fy-grid .offer-link { flex: 1; height: auto; }
.fy-hide { margin: 0; }
.fy-hide .btn { min-height: 44px; width: 100%; justify-content: center; font-size: var(--fs-s); }
.fy-stores { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fy-stores a { min-height: 44px; display: inline-flex; align-items: center; }
.more-link { margin-top: 20px; }
.fy .ad-direct { margin-block: 16px; }
/* Home strip «عروض على ذوقك»: active choices + in-place editor (same for signed-in and signed-out) */
.fy-active-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-block: 8px 16px; }
.fy-active-h { font-weight: 600; }
.fy-active { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.fy-active li { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); overflow-wrap: anywhere; }
.fy-edit { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.fy-pick { background: var(--surface); border-radius: var(--r-m); padding: clamp(16px, 4vw, 24px); margin-bottom: 16px; display: grid; gap: 16px; }
.fy-pick fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fy-pick legend { font-weight: 600; padding: 0; }
.fy-pick .fy-chip span { background: var(--paper, #fff); }
.fy-pick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.fy-pick-actions .btn { min-height: 44px; }
.fy-st:empty { display: none; }
.fy-invite { margin-top: 16px; }
/* Copy chip (copyChip in src/html.ts): value + 44px copy / open icon buttons; the one pattern for any value to copy. */
.cc { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; vertical-align: middle; padding-inline-start: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; position: relative; }
.cc-v { min-width: 0; overflow-wrap: anywhere; font-weight: 600; padding-inline-end: 4px; user-select: all; }
.cc-b { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.cc-b:hover { background: var(--paper); }
.cc-b[hidden] { display: none; }
.cc-st:empty { display: none; }
.cc-st { position: absolute; inset-block-end: calc(100% + 6px); inset-inline-end: 0; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8125rem; white-space: nowrap; pointer-events: none; }
.cc-code { border-style: dashed; border-color: var(--ink); }
.cc-code .cc-v { font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; letter-spacing: .04em; }
.install-guide li .cc { margin-block: 4px; }

/* ── Org profile v3 (2026-12-01): hero with stats, sticky section tabs, offers first, similar businesses ── */
.org-hero { gap: var(--s-4); }
.org-id .plate { width: 96px; height: 96px; }
.plate-cat { background: var(--tint); color: var(--ink); box-shadow: none; }
.plate-cat svg { width: 44%; height: 44%; }
.logo-tile .plate-cat svg { width: 28px; height: 28px; }
.org-title { min-width: 0; }
.chip-muted { background: var(--sunken); color: var(--ink-soft); }
.chip-cta { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--link); }
.chip-cta:hover { text-decoration: underline; }
.org-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: var(--s-2); }
.org-stats li { display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--r-m); background: var(--sunken); }
.org-stats strong { font-size: var(--fs-l); font-weight: 700; font-variant-numeric: tabular-nums; }
.org-stats span { font-size: var(--fs-xs); color: var(--ink-soft); }
.org-hero .js-follow-btn[aria-pressed="false"] { background: var(--ink); color: var(--on-ink); }
.org-hero .js-follow-btn[aria-pressed="false"]:hover { background: var(--ink-hover); }
.org-sec { scroll-margin-top: calc(var(--hdr, 72px) + 64px); margin-block-end: var(--s-5); }
.org-sec > .section-head { margin-top: var(--s-2); }

/* Section tabs: sticky under the site header; on phones they also carry the name and a follow shortcut */
.org-tabs { position: sticky; top: var(--hdr, 0px); z-index: 4; display: flex; align-items: center; gap: var(--s-3); margin-block: 0 var(--s-4); padding: 8px 12px; background: var(--surface); border-radius: var(--r-pill); box-shadow: var(--shadow-2); min-width: 0; }
.org-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.org-tabs a:not(.btn) { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 14px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-s); white-space: nowrap; color: var(--ink-soft); }
.org-tabs a:not(.btn):hover { background: var(--tint); color: var(--ink); }
.org-tabs-name { display: none; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
.org-tabs-follow { min-height: 40px; padding-inline: 16px; flex: none; }
@media (min-width: 768px) { .org-tabs-follow { display: none; } }
@media (max-width: 767px) { .org-tabs { border-radius: var(--r-m); } .org-tabs-name { display: block; } .org-tabs ul { display: none; } .org-tabs-follow { margin-inline-start: auto; } }

.org-empty { display: grid; justify-items: start; gap: var(--s-2); max-width: none; }
.org-empty .empty-ico { width: 32px; height: 32px; color: var(--ink-soft); }
.org-empty h3 { margin: 0; font-size: var(--fs-xl); }
.org-empty p { margin: 0; }
.org-empty .row-actions { margin-top: var(--s-2); }

/* Social: neutral tiles in an even grid; the platform's own colour only on hover/focus (AA with its text) */
.social-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.social-btn { transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.social-btn:hover, .social-btn:focus-visible { color: #FFFFFF; background: var(--brand, var(--ink)); }
.social-btn[data-k="x"], .social-btn[data-k="tiktok"] { --brand: #000000; }
.social-btn[data-k="instagram"] { --brand: #C13584; }
.social-btn[data-k="facebook"] { --brand: #0B5FCC; }
.social-btn[data-k="youtube"] { --brand: #CC0000; }
.social-btn[data-k="linkedin"] { --brand: #0A66C2; }
.social-btn[data-k="telegram"] { --brand: #1B7FB0; }
.social-btn[data-k="appstore"] { --brand: #0066CC; }
.social-btn[data-k="playstore"] { --brand: #01875F; }
.social-btn[data-k="snapchat"]:hover, .social-btn[data-k="snapchat"]:focus-visible { background: #FFFC00; color: #000000; }

/* Similar businesses: one scrolling row of logo tiles */
.sim-row { list-style: none; margin: 0; padding: 4px 2px 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.sim-row > li { scroll-snap-align: start; }
.sim-row .logo-tile { height: 100%; }
.sim-row:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Action icons (platform standard): one set, 18px in buttons, directional ones mirrored in RTL, toggles show their state */
.bi { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .bi-dir { transform: scaleX(-1); }
.bi-on { display: none; }
[aria-pressed="true"] > .bi-on { display: inline-block; }
[aria-pressed="true"] > .bi-off { display: none; }
/* Logos keep their intrinsic ratio everywhere (owner standard): painted with contain inside their box. */
.logo img, .footer-logo img { height: auto; object-fit: contain; }

/* Vertical rhythm (owner standard: no two boxes touch): every sibling block of a page is spaced by a token, not by
   per-component margins. Headings keep their text close; grids/flex rows use gap. */
.page > * + * { margin-block-start: var(--s-5); }
.page > :is(h1, h2, h3, .slogan-line, .crumbs, .section-head) + * { margin-block-start: var(--s-2); }
.page > * { margin-block-end: 0; }
@media (max-width: 767px) { .page > * + * { margin-block-start: var(--s-4); } }

/* Strip arrows (every horizontal strip): 44px, chevrons point the reading direction, disabled at the ends */
.strip-nav { display: flex; justify-content: flex-end; gap: var(--s-2); margin-block-end: var(--s-2); }
.strip-nav[hidden] { display: none; }
.strip-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); cursor: pointer; }
.strip-btn:hover:not(:disabled) { background: var(--tint); }
.strip-btn:disabled { opacity: 0.4; cursor: default; } /* WCAG-ALLOW: disabled control, exempt under WCAG 2.1 SC 1.4.3 */
.strip-btn svg { width: 20px; height: 20px; }
.strip-prev svg { transform: scaleX(-1); }
[dir="rtl"] .strip-prev svg { transform: none; }
[dir="rtl"] .strip-next svg { transform: scaleX(-1); }
.mq-manual .mq, .mq-manual.mq-run .mq { overflow-x: auto; mask-image: none; scroll-snap-type: x proximity; scrollbar-width: none; }
.mq-manual .mq-track, .mq-manual.mq-run .mq-track { animation: none; }
.mq-manual .mq-pause { display: none; }
.mq-manual .mq-dup { display: none; }
.mq-manual .mq-list > li, .sim-row > li, .quick-pick li { scroll-snap-align: start; }
.cat-strip:not(:has(ul)) { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.contact-list { gap: var(--s-4); }
/* A logo never leaves its tile: the image box is the tile (padding inside), painted with contain. */
.plate { position: relative; }
.plate > img { position: absolute; inset: 0; margin: auto; box-sizing: border-box; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.info-list, .org-stats { gap: var(--s-3); }
@media (min-width: 768px) { .info-list, .org-stats { gap: var(--s-4); } }
/* Security batch: Turnstile slot (empty until a key exists; the managed widget only shows when it needs a click) and the sign-in prompt that replaces rating/review/report forms for visitors. */
.ts-slot:empty { display: none; }
.ts-slot { margin-block: 8px; max-width: 100%; }
.ugc-signin { background: var(--surface); border-inline-start: 4px solid var(--ink); padding: 10px 14px; border-radius: var(--r-s); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Org quick bar on phones: fixed under the header, shown by app.js only after the hero's follow button has scrolled away */
@media (max-width: 767px) {
  .org-tabs { position: fixed; top: var(--hdr, 0px); inset-inline: 12px; margin: 8px 0 0; transform: translateY(-140%); opacity: 0; pointer-events: none; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
  .org-tabs.show { transform: none; opacity: 1; pointer-events: auto; }
}
.org-stats strong { white-space: nowrap; }
@media (max-width: 400px) { .org-stats strong { font-size: var(--fs-m); } .org-stats li { padding: 8px 12px; } }

/* Horizontal card strips (home «لك»): one row that scrolls, with the shared strip arrows */
.offer-grid.strip-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(320px, 85%); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-block-end: 8px; }
.offer-grid.strip-row > li { scroll-snap-align: start; }

/* v3 structure on offer and section pages: one hero card for identity + actions, then content cards */
.list-hero > *, .offer-head.card > * { margin-block: 0; }
.list-hero > * + *, .offer-head.card > * + * { margin-block-start: var(--s-3); }
.list-hero .search, .list-hero .filters, .list-hero .cat-strip, .list-hero .sub-strip, .list-hero .type-strip { max-width: none; }
.offer-head.card .offer-actions, .offer-head.card .offer-actions-2 { margin: var(--s-4) 0 0; }
.offer-head.card { padding-bottom: clamp(18px, 3vw, 28px); }
:where(.legal, .prose) li a:not([class]):not(nav a) { color: var(--link); font-weight: 600; text-decoration: none; }
/* Card media without image or logo: the section icon on a clean tile; the org page hides it like the logo fallback */
.oc-media.plate-cat { background: var(--sunken); }
.oc-media.plate-cat svg { width: 40px; height: 40px; color: var(--ink-soft); }
.org-page .oc-media.plate-cat { display: none; }
/* Narrow phones: a slimmer stub so the content column keeps its room */
@media (max-width: 400px) { .offer-card .benefit { width: 76px; font-size: 0.95rem; padding: 10px 6px; } .offer-card > .offer-link { column-gap: 10px; } }

/* ── ADS-INVENTORY: named ad boxes. Each box reserves its exact size per breakpoint (--aw/--ah mobile, --aw-d/--ah-d
   from 768 px) so nothing shifts when the creative loads; an empty row collapses completely. Light theme only. */
.ad-band:empty { display: none; }
.ad { display: block; width: 100%; max-width: calc(var(--aw, 300) * 1px); margin: 24px auto; contain: layout; }
.ad .ad-label { margin: 0 0 6px; }
.ad .ad-link { display: block; aspect-ratio: var(--aw, 4) / var(--ah, 1); background: var(--surface); border-radius: var(--r-s); overflow: hidden; }
.ad .ad-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ad .ad-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 768px) {
  .ad { max-width: calc(var(--aw-d, 1200) * 1px); }
  .ad .ad-link { aspect-ratio: var(--aw-d, 4) / var(--ah-d, 1); }
}
li.ad { margin: 0; max-width: none; list-style: none; }
li.ad .ad-link, .ad-native .ad-link { aspect-ratio: var(--aw, 6) / var(--ah, 5); }
@media (min-width: 768px) { aside.ad-native { max-width: calc(var(--aw-d, 970) * 1px); } aside.ad-native .ad-link { aspect-ratio: var(--aw-d) / var(--ah-d); } }
.ad-sponsor { display: flex; align-items: center; gap: 10px; max-width: none; margin: 4px 0 14px; }
.ad-sponsor .ad-label { margin: 0; font-size: 0.875rem; }
.ad-sponsor .ad-link, .ad-sponsor .ad-link img { width: 160px; height: 40px; aspect-ratio: auto; }
@media (min-width: 768px) { .ad-sponsor .ad-link, .ad-sponsor .ad-link img { width: 240px; height: 60px; aspect-ratio: auto; } }
@media (min-width: 1280px) {
  .ad-sidebar { float: inline-end; position: sticky; top: 96px; width: 300px; max-width: 300px; margin: 0 0 24px; margin-inline-start: 24px; }
}
.ad-showcase { max-width: none; }
.ad-sc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ad-sc-head h2 { margin: 0 0 8px; font-size: 1.125rem; }
.ad-sc-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.ad-sc-track li { scroll-snap-align: start; }
.ad-sc-track .ad-link { display: block; aspect-ratio: var(--aw) / var(--ah); background: var(--surface); border-radius: var(--r-s); overflow: hidden; }
@media (min-width: 768px) { .ad-sc-track .ad-link { aspect-ratio: var(--aw-d) / var(--ah-d); } }
.ad-sc-track img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ad-sc-track a:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
/* ADS-INVENTORY B: visual rate card */
.ratecard { margin-block: 24px 40px; }
.rc-group { margin: 32px 0 12px; font-size: 1.25rem; }
.rc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .rc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rc { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rc h3 { margin: 0; font-size: 1.0625rem; }
.rc-wires { display: flex; gap: 12px; align-items: flex-start; justify-content: center; flex-wrap: wrap; padding: 12px; background: var(--paper); border-radius: var(--r-s); }
.rc-wires figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rc-wires figcaption { font-size: 0.8125rem; color: var(--ink-soft); }
.wf { display: block; max-width: 100%; height: auto; }
.rc-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.rc-price strong { font-size: 1.375rem; color: var(--ink); }
.rc-launch-k { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.8125rem; font-weight: 600; }
.rc-per { color: var(--ink-soft); font-size: 0.875rem; }
.rc-regular { color: var(--ink-soft); font-size: 0.9375rem; }
.rc-billed { margin: 0; font-size: 0.8125rem; }
.rc-facts { margin: 0; display: grid; gap: 6px; }
.rc-facts div { display: grid; grid-template-columns: minmax(7.5em, auto) 1fr; gap: 8px; }
.rc-facts dt { color: var(--ink-soft); font-size: 0.875rem; }
.rc-facts dd { margin: 0; font-size: 0.9375rem; min-width: 0; overflow-wrap: anywhere; }
.rc .row-actions { margin-top: auto; }
.slotmap-cal { display: grid; grid-template-columns: repeat(30, minmax(6px, 1fr)); gap: 2px; min-width: 180px; }
.slotmap-cal span { display: block; height: 14px; border-radius: 2px; }
.cal-free { background: #CFEBD9; } .cal-part { background: var(--accent-deep); } .cal-full { background: var(--brand); }

/* ADS-INVENTORY: slot geometry per data-slot = ad_slots (0031) w_mobile x min_h_mobile / w_desktop x min_h_desktop.
   Kept here because the CSP forbids inline style attributes; a new slot size needs its line here. */
[data-slot="home-top"] { --aw: 320; --ah: 100; --aw-d: 970; --ah-d: 90; }
[data-slot="home-hero"] { --aw: 320; --ah: 250; --aw-d: 970; --ah-d: 250; }
[data-slot="home-after-logos"] { --aw: 300; --ah: 250; --aw-d: 970; --ah-d: 250; }
[data-slot="home-infeed"] { --aw: 300; --ah: 250; --aw-d: 970; --ah-d: 250; }
[data-slot="home-showcase"] { --aw: 320; --ah: 180; --aw-d: 1200; --ah-d: 400; }
[data-slot="home-footer"] { --aw: 320; --ah: 100; --aw-d: 970; --ah-d: 90; }
[data-slot="listing-top"] { --aw: 320; --ah: 100; --aw-d: 970; --ah-d: 90; }
[data-slot="listing-sponsor"] { --aw: 240; --ah: 60; --aw-d: 240; --ah-d: 60; }
[data-slot="listing-infeed-3"] { --aw: 300; --ah: 250; --aw-d: 300; --ah-d: 250; }
[data-slot="listing-infeed-9"] { --aw: 300; --ah: 250; --aw-d: 300; --ah-d: 250; }
[data-slot="listing-side"] { --aw: 300; --ah: 250; --aw-d: 300; --ah-d: 600; }
[data-slot="search-top"] { --aw: 320; --ah: 100; --aw-d: 970; --ah-d: 90; }
[data-slot="offer-media"] { --aw: 320; --ah: 100; --aw-d: 728; --ah-d: 90; }
[data-slot="offer-related"] { --aw: 300; --ah: 250; --aw-d: 970; --ah-d: 250; }
[data-slot="org-top"] { --aw: 320; --ah: 100; --aw-d: 970; --ah-d: 90; }
[data-slot="directory-top"] { --aw: 320; --ah: 100; --aw-d: 970; --ah-d: 90; }
[data-slot="directory-infeed"] { --aw: 300; --ah: 250; --aw-d: 970; --ah-d: 250; }
[data-slot="flyers-top"] { --aw: 320; --ah: 100; --aw-d: 970; --ah-d: 90; }
[data-slot="flyers-infeed"] { --aw: 300; --ah: 250; --aw-d: 970; --ah-d: 250; }
[data-slot="home-mid"] { --aw: 300; --ah: 280; --aw-d: 1200; --ah-d: 300; --ad-h: 280px; --ad-h-lg: 300px; }
[data-slot="listing-end"] { --aw: 300; --ah: 280; --aw-d: 1200; --ah-d: 300; --ad-h: 280px; --ad-h-lg: 300px; }
[data-slot="offer-end"] { --aw: 300; --ah: 280; --aw-d: 1200; --ah-d: 300; --ad-h: 280px; --ad-h-lg: 300px; }
[data-slot="org-end"] { --aw: 300; --ah: 280; --aw-d: 1200; --ah-d: 300; --ad-h: 280px; --ad-h-lg: 300px; }
[data-slot="directory-end"] { --aw: 300; --ah: 280; --aw-d: 1200; --ah-d: 300; --ad-h: 280px; --ad-h-lg: 300px; }
[data-slot="flyers-end"] { --aw: 300; --ah: 280; --aw-d: 1200; --ah-d: 300; --ad-h: 280px; --ad-h-lg: 300px; }

/* No-image card visual (owner 2026-12-01): designed category art (public/art/, scripts/gen-cat-art.mjs) under the icon.
   cv0..cv3 mirror the art layer (seeded by the offer id) so a grid of one category does not repeat; the icon never flips. */
.cat-art { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--sunken); }
.cat-art .ca-layer { position: absolute; inset: 0; }
.cat-art .ca-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-art.cv1 .ca-layer { transform: scaleX(-1); }
.cat-art.cv2 .ca-layer { transform: scaleY(-1); }
.cat-art.cv3 .ca-layer { transform: scale(-1, -1); }
.cat-art .ca-ico { position: relative; width: 17%; height: auto; aspect-ratio: 1; max-width: 64px; color: #1F2A3D; }
.mini-img .mi-media { width: 240px; height: 135px; }
.mini-img .mi-media.plate { display: grid; place-items: center; border-radius: 0; box-shadow: none; }
.mini-img .mi-media.plate img { width: 56%; height: 62%; object-fit: contain; }.org-page .oc-media.cat-art { display: none; }   /* the org page shows its own identity */
.inbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.inbox-item { padding: 14px 16px; }
.inbox-item p { margin: 4px 0; overflow-wrap: anywhere; }
.inbox-item .row-actions { margin-top: 8px; }
/* GEO-NAV 2: compact market button in the mobile header (flag + short name, 44px target). Desktop keeps the nav picker. */
.hdr-mkt > summary { padding: 4px 10px; gap: 6px; max-width: 132px; }
.hdr-mkt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hdr-mkt ul { inset-inline-start: auto; inset-inline-end: 0; }
@media (max-width: 1023px) { .hdr-mkt ul { position: fixed; inset-inline: 16px; top: 64px; min-width: 0; } }
/* Below 480 px the install icon lives in the menu; below 400 px the wordmark gives way to the brand mark so logo,
   market, sign-up and menu stay on one row down to 320 px (tests: scripts/e2e-geo-nav.mjs). */
.logo .logo-mark { display: none; border-radius: 10px; }
@media (max-width: 479px) { .hdr-install { display: none; } }
@media (max-width: 399px) {
  .hdr-mkt > summary { padding-inline: 8px; gap: 4px; max-width: 116px; }
  .hdr-mkt > summary::after { display: none; }
}
@media (max-width: 359px) { .header-row { padding-inline: 12px; column-gap: 6px; } .header-acts { gap: 4px; } .hdr-mkt > summary { padding-inline: 6px; max-width: 112px; } }
/* GEO-NAV 4: slim, dismissible location notice under the header (not a modal). */
.geo-bar { background: var(--paper); color: var(--ink); font-size: 0.875rem; }
.geo-bar[hidden] { display: none; }
.geo-row { display: flex; align-items: center; gap: 8px; padding-block: 4px; }
.geo-row p { margin: 0; flex: 1; min-width: 0; }
.geo-row a { color: var(--brand, var(--ink)); font-weight: 600; }
.geo-ico { flex: none; color: var(--ink); }
.geo-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 999px; }
.geo-x:hover { background: var(--surface); }
.geo-x:focus-visible, .geo-row a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* TRUST-SUPPORT (2026-12-01): verification line, trust strip, /how-we-verify, /support, admin inbox, cashier screen. */
.verified { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: var(--s-2) 0; color: var(--go); font-weight: 600; font-size: 0.95rem; }
.verified .vf-ico, .cp-votes .vf-ico, .cs-note .vf-ico { flex: none; color: var(--go); }
.verified .vf-link { color: var(--link); font-weight: 500; }
.cp-votes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: var(--s-2) 0; color: var(--ink); }
.trust-strip { background: var(--surface); padding: var(--s-4) 0; }
.trust-strip .ts-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.trust-strip .ts-ico { color: var(--go); width: 24px; height: 24px; }
.trust-strip ul { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); list-style: none; margin: 0; padding: 0; }
.trust-strip li { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.trust-strip strong { font-size: 1.15rem; color: var(--ink); }
.trust-strip span { color: var(--ink-soft); }
.trust-strip .ts-how { color: var(--link); font-weight: 600; }
.how-steps { list-style: none; margin: var(--s-4) 0; padding: 0; counter-reset: hs; display: grid; gap: var(--s-4); }
.how-steps > li { counter-increment: hs; position: relative; background: var(--surface); border-radius: var(--r-m); padding: var(--s-4) var(--s-4) var(--s-4) var(--s-4); padding-inline-start: 56px; box-shadow: var(--shadow-1); }
.how-steps > li::before { content: counter(hs); position: absolute; inset-inline-start: var(--s-4); top: var(--s-4); width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.how-steps h2 { margin: 0 0 var(--s-1); font-size: 1.1rem; }
.how-steps p { margin: 0; }
.sla-card { display: flex; gap: var(--s-3); align-items: flex-start; margin: var(--s-4) 0; }
.sla-card .sla-ico { flex: none; width: 24px; height: 24px; color: var(--ink); }
.sla-card h2 { margin: 0 0 var(--s-1); font-size: 1.05rem; }
.sla-card p { margin: 0; }
.sup-form { display: grid; gap: var(--s-2); margin: var(--s-4) 0; }
.sup-form label { font-weight: 600; margin-top: var(--s-2); }
.sup-form input[type="text"], .sup-form input[type="email"], .sup-form textarea, .admin-support textarea, .admin-support select { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); }
.sup-form .chk { font-weight: 400; margin-top: 0; display: flex; gap: 8px; align-items: center; min-height: 32px; }
.sup-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.sup-form legend { font-weight: 600; margin-bottom: var(--s-2); }
.sup-form .hint { margin: 0; }
.sup-form .btn { justify-self: start; margin-top: var(--s-3); }
.sup-form .hp { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.sup-about { margin: 0; }
.sup-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.sup-channels li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.admin-support form.card { display: grid; gap: var(--s-2); margin: var(--s-4) 0; }
.admin-support form .btn { justify-self: start; }
.tk-msg { white-space: pre-wrap; background: var(--surface); border-radius: var(--r-m); padding: var(--s-4); overflow-wrap: anywhere; }
.tk-audit { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.tk-audit p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sla { font-weight: 600; color: var(--ink); white-space: nowrap; }
.sla-soon { color: var(--late); }
.sla-late { color: var(--danger); }
.sla-ok { color: var(--go); }
.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: var(--s-3) 0; }
.chip-row a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); }
.chip-row a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.report-row, .org-help { margin-top: var(--s-4); }
.cashier-cta { margin: var(--s-3) 0 0; }
.intro-facts { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: var(--s-4) 0; }
.intro-facts .card h2, .intro-next h2 { margin-top: 0; font-size: 1.1rem; }
.intro-next { margin: var(--s-5) 0; }
.intro-steps > li { padding-block: var(--s-3); }
.faq-item { background: var(--surface); border-radius: var(--r-m); padding: var(--s-3) var(--s-4); margin: 0 0 var(--s-3); }
.faq-item summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.faq-item p { margin: var(--s-2) 0 0; }
/* Cashier screen: big, calm, readable at arm's length; light only. */
.cashier-body { background: var(--surface); color: var(--ink); margin: 0; }
.cashier { max-width: 560px; margin: 0 auto; padding: var(--s-4) var(--s-4) var(--s-6); display: flex; flex-direction: column; align-items: center; gap: var(--s-3); text-align: center; overflow-wrap: anywhere; }
.cs-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.cs-org { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.cs-org-name { font-weight: 700; font-size: 1.1rem; }
.cs-store { width: 32px; height: 32px; }
.cs-title { font-size: 1.15rem; margin: var(--s-2) 0 0; color: var(--ink-soft); }
.cs-value { font-size: clamp(2rem, 9vw, 3.25rem); line-height: 1.15; font-weight: 800; margin: 0; background: var(--accent); color: var(--on-accent); border-radius: var(--r-l); padding: var(--s-3) var(--s-5); }
.cs-code { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.cs-code-l { color: var(--ink-soft); font-size: 0.95rem; }
.cs-code-v { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 700; letter-spacing: 0.08em; border: 2px dashed var(--field-line); border-radius: var(--r-m); padding: var(--s-2) var(--s-4); }
.cs-qr img { width: min(240px, 60vw); height: auto; image-rendering: pixelated; display: block; }
.cs-clock { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0; color: var(--ink); }
.cs-clock time { font-variant-numeric: tabular-nums; font-weight: 700; }
.cs-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--go); animation: cs-pulse 1.2s ease-in-out infinite; }
@keyframes cs-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { .cs-pulse { animation: none; } }
.cs-facts { display: flex; gap: 8px; margin: 0; }
.cs-facts dt { color: var(--ink-soft); }
.cs-facts dd { margin: 0; font-weight: 700; }
.cs-terms { width: 100%; text-align: start; background: var(--paper); border-radius: var(--r-m); padding: var(--s-3) var(--s-4); }
.cs-terms h2 { font-size: 1rem; margin: 0 0 var(--s-1); }
.cs-terms p { margin: 0; }
.cs-note { display: flex; gap: 8px; align-items: flex-start; text-align: start; font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.cs-actions { margin: 0; }
.cs-close { white-space: nowrap; flex: none; }

/* INSIGHTS (#44): «الخلاصة» / Bottom line cards — src/insights-page.ts. Light theme, no divider lines. */
.insights { background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r-m); padding: clamp(16px, 4vw, 28px); margin-block: 16px; }
.insights h2 { margin: 0 0 4px; font-size: 1.25rem; color: var(--ink); }
.ins-lead { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.9375rem; }
.ins-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.ins-card { background: var(--paper); border-radius: var(--r-s); padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ins-label { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.ins-text { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ins-card a { margin-top: auto; color: var(--link); text-decoration: none; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.ins-card a:hover { color: var(--ink-hover); }
.ins-card a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
/* lane E: admin home + analytics (ADMIN-ANALYTICS #54, ADMIN-HOME #50) */
.an-kpis, .admin-areas { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.an-kpis > li, .admin-areas > li, .an-funnels > .card { margin: 0; }
.an-kpis > li { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.an-kpis strong { font-size: 1.75rem; line-height: 1.2; }
.admin-areas > li { padding: 16px; }
.admin-areas a, .an-kpis a { text-decoration: none; }
.an-chart { margin: 16px 0; max-width: 100%; overflow: hidden; }
.an-sec { margin: 32px 0; min-width: 0; }
.an-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.an-grid .an-sec { margin: 0; }
.an-funnels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.an-funnels > .card { padding: 16px; }
.an-funnel { margin: 8px 0 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.an-page .chips { margin: 8px 0; }
.chips a.chip[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
/* lane O: countdown (46), WhatsApp share (48), branch locations (47), guides (25/81) */
.lo-cd { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .75rem 0 0; color: var(--ink); }
.lo-cd-k { display: inline-flex; align-items: center; gap: .375rem; font-weight: 600; }
.lo-cd-k .icon, .lo-cd-k svg { width: 1.125rem; height: 1.125rem; }
.lo-cd-u { display: inline-flex; flex-direction: column; align-items: center; min-width: 3.25rem; padding: .375rem .5rem; border-radius: .625rem; background: var(--brand); color: #fff; line-height: 1.2; }
.lo-cd-u b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.lo-cd-u small { font-size: .75rem; color: #E6EAF0; }
.lo-wa svg { width: 1.125rem; height: 1.125rem; }
.lo-br-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .lo-br-list { gap: var(--s-4); } }
.lo-br { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .625rem .75rem; border-radius: .75rem; background: var(--paper, #F2F4F7); }
.lo-br .info-text { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.lo-br-go { min-height: 44px; }
.lo-g-head .lead { font-size: 1.0625rem; color: var(--ink-soft); max-width: 46rem; }
.lo-g-list { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.lo-g-card h2 { font-size: 1.125rem; margin: 0 0 .5rem; }
.lo-g-card a { text-decoration: none; color: var(--ink); }
.lo-g-card a:hover, .lo-g-card a:focus-visible { color: var(--ink-hover); }
.lo-guide section { max-width: 46rem; }
.lo-guide section:has(.offer-grid) { max-width: none; }
.lo-g-stats { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.lo-g-stats li { display: flex; flex-direction: column; }
.lo-g-stats strong { font-size: 1.75rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.lo-g-stats span { color: var(--ink-soft); }
.lo-g-src { padding-inline-start: 1.25rem; }.lo-qr summary { list-style: none; }
.lo-qr summary::-webkit-details-marker { display: none; }
.lo-qr-box { width: min(100%, 14rem); margin: .75rem 0; background: #fff; }
.lo-qr-box svg { display: block; width: 100%; height: auto; }
.lo-qr-url { overflow-wrap: anywhere; color: var(--ink-soft); }
/* lane O: official Saudi riyal symbol (src/riyal.ts) — sized to the text, follows its colour */
.sar { display: inline-flex; align-items: baseline; }
/* Visual audit F11: the page's one riyal <symbol> sprite takes no space (a class, not an inline style attribute: CSP style-src 'self'). */
.sar-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sar-i { width: .82em; height: .92em; vertical-align: -.08em; fill: currentColor; }
/* Lane G tools (src/tools.ts): price list + card offers. Light only, no dividers, gap between boxes. */
.tool-page .pl-form { max-width: 640px; margin-block: var(--s-3); }
.tools-strip a { display: inline-flex; align-items: center; gap: 6px; }
.tools-strip svg { width: 18px; height: 18px; flex: none; }
.pl-summary, .pl-line { background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-1); padding: var(--s-3) var(--s-4); margin-block: var(--s-3); }
.pl-summary h2, .pl-line h2 { font-size: 1.05rem; margin: 0 0 var(--s-2); overflow-wrap: anywhere; }
.pl-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pl-hits a { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--r-m); background: var(--sunken); color: var(--ink); text-decoration: none; min-height: 44px; }
.pl-hits a:hover { background: var(--tint); }
.pl-hits a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pl-best a { background: var(--tint); }
.pl-item { overflow-wrap: anywhere; }
.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-soft); }
.pl-price { color: var(--ink); font-variant-numeric: tabular-nums; }
/* lane Q (SEO-DOD D): publisher «what people search for now» panel */
.sq-panel { border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px; display: grid; gap: 8px; }
.sq-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sq-chip { min-height: 44px; }
.sq-sub { font-size: 1rem; margin: 4px 0 0; }
.sq-serp { color: var(--link); font-weight: 600; overflow-wrap: anywhere; }
/* lane S (0043): price history + price-drop watch on compare pages */
.price-history, .price-watch { margin-block: 24px; }
.price-history h2, .price-watch h2 { font-size: 1.15rem; margin: 0 0 6px; color: var(--ink); }
.watch-form { margin-block: 8px; }

/* lane W: flyer product crop in /admin/flyer-items (SVG viewBox over the quarantined page). */
.fx-crop { display: block; max-width: 100%; height: auto; border: 1px solid var(--line, #d0d4da); border-radius: 8px; background: var(--sunken); margin: 6px 0; }
/* lane U: visitor code suggestion form (COMP-user-codes) */
.cs-form { display: grid; gap: 6px; max-width: 560px; }
.cs-form label { font-weight: 600; margin-top: 8px; }
.cs-form input { min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line-strong, var(--ink-soft)); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.cs-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cs-form input[aria-invalid="true"] { border-color: var(--danger); }
.cs-form .field-err { color: var(--danger); font-weight: 600; margin: 0; }
.cs-form button { justify-self: start; margin-top: 12px; }
.cs-link { margin: 12px 0; }

/* ===== D8a admin dashboard audit ===== */
.admin-crumbs { padding-top: 16px; margin-bottom: 0; }
.admin-crumbs + .page { padding-top: 8px; }
.an-sec .admin-table th[scope="row"] { font-weight: 600; }
/* ===== end D8a ===== */
/* D9: home entry card (no options on the home page) + public landing /{m}/for-you + ready-made mixes */
.fy-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 20px; background: var(--surface); border-radius: var(--r-m); padding: clamp(16px, 4vw, 24px); }
.fy-card-i { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; color: #0A63D6; background: #EEF4FD; }
.fy-card-h { margin: 0; font-size: var(--fs-l, 1.35rem); color: var(--ink); }
.fy-card-p { margin: 4px 0 0; color: var(--ink-soft); }
.fy-card-b { min-height: 48px; white-space: normal; text-align: center; }
@media (max-width: 600px) { .fy-card { grid-template-columns: auto 1fr; } .fy-card-b { grid-column: 1 / -1; justify-content: center; } }
.fy-back { margin-top: 20px; }
.fy-back-h { margin: 0; font-size: var(--fs-m, 1.1rem); }
.fy-chooser { margin-block: 24px 32px; }
.fy-landing section { margin-block: 32px; }
.fy-how { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); padding: 0; list-style: none; counter-reset: fyh; }
.fy-how li { background: var(--surface); border-radius: var(--r-m); padding: 16px 20px; counter-increment: fyh; }
.fy-how li::before { content: counter(fyh); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 700; }
.fy-how h3 { margin: 10px 0 4px; font-size: 1.05rem; }
.fy-how p { margin: 0; color: var(--ink-soft); }
.fy-mixes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); padding: 0; margin: 16px 0 0; list-style: none; }
.fy-mix { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 44px; padding: 16px 20px; border-radius: var(--r-m); background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.fy-mix:hover { border-color: var(--field-line); }
.fy-mix:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fy-mix-h { font-weight: 700; color: #0A63D6; }
.fy-mix-p { color: var(--ink); }
.fy-mix-c { color: var(--ink-soft); font-size: var(--fs-s); overflow-wrap: anywhere; }
.fy-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.fy-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); text-decoration: none; }
.fy-links a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fy-crumb { margin: 0 0 8px; }
.fy-mix-secs { overflow-wrap: anywhere; }
/* L2 card (external report C5/C8/C10/C19/C21, 2026-12-02): chips under the meta line, channel tag, numbered pager. */
.offer-card .ends-soon, .offer-card .partner-badge { grid-column: 1 / -1; justify-self: start; margin: 0 0 12px; margin-inline-start: 18px; max-width: calc(100% - 36px); }
.offer-card .offer-meta { overflow-wrap: anywhere; }
.offer-card .offer-meta .otype { margin-inline-end: 2px; }
.ends-soon { background: #FBE3E4; color: #84161A; } /* 8.15:1 (AAA) */
.pager-num { flex-wrap: wrap; gap: 8px 10px; }
.pager-num .pg-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager-num .pg-list a, .pager-num .pg-cur { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 10px; border-radius: var(--r-pill); font-weight: 600; }
.pager-num .pg-cur { background: var(--ink); color: var(--on-ink); }
.pager-num .pg-gap { min-width: 20px; text-align: center; color: var(--ink-soft); }
.pager-num .pg-of { flex-basis: 100%; text-align: center; margin: 0; color: var(--ink-soft); font-size: 0.875rem; }
.pager-num a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* ===== L-VIEWER: flyer viewer (src/flyers.ts viewerHtml + public/flyer-viewer.js) ===== */
.fv { margin-block: 16px; }
.fv-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; margin-block-end: 8px; }
.fv:not(.fv-ready) .fv-bar { visibility: hidden; }
.fv-grp { display: flex; align-items: center; gap: 6px; }
@media (max-width: 599px) { .fv-bar { gap: 4px; } .fv-grp { gap: 2px; } .fv-grp:first-child { flex-basis: 100%; justify-content: space-between; } .fv-ib { padding: 0; } }
.fv-ib { min-width: 44px; min-height: 44px; padding: 0 10px; justify-content: center; }
.fv-ib:disabled { opacity: 0.45; }
.fv-pos { min-width: 7.5em; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink); }
.fv-body { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .fv-has-side .fv-body { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.fv-main { min-width: 0; }
.fv-track { position: relative; gap: 16px; padding-bottom: 8px; }
.fv-page { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; text-align: center; min-width: 0; }
.fv-frame { position: relative; margin-inline: auto; width: 100%; max-width: 680px; overflow: hidden; border-radius: var(--r-s); background: var(--sunken); box-shadow: var(--shadow-1); touch-action: pan-x pan-y; }
@media (min-width: 1024px) { .fv-frame { max-width: min(680px, calc((100vh - 200px) * 0.72)); } }
.fv-page.is-zoomed .fv-frame { touch-action: none; cursor: grab; }
.fv-page.is-zoomed .fv-frame:active { cursor: grabbing; }
.fv-zoom { position: relative; transform-origin: 0 0; transition: transform 0.12s ease-out; will-change: transform; }
.fv-img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.fv-hot { position: absolute; inset: 0; width: 100%; height: 100%; }
.fv-hot rect { fill: rgba(31, 95, 209, 0.08); stroke: var(--focus); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 6 4; }
.fv-hot a:hover rect { fill: rgba(31, 95, 209, 0.18); }
.fv-hot a:focus { outline: none; }
.fv-hot a:focus-visible rect { fill: rgba(31, 95, 209, 0.22); stroke-width: 4; stroke-dasharray: none; }
.fv-err { margin: 0; padding: 24px 16px; color: var(--ink); }
.fv-failed .fv-zoom { display: none; }
.fv-page figcaption { font-size: 0.875rem; color: var(--ink-soft); margin-top: 6px; }
.fv-thumbs ol { display: flex; gap: 8px; list-style: none; margin: 8px 0 0; padding: 4px 2px 8px; overflow-x: auto; scrollbar-width: thin; }
.fv-thumbs li { flex: none; }
.fv-thumbs a { display: grid; justify-items: center; gap: 2px; padding: 4px; border-radius: var(--r-s); color: var(--ink-soft); font-size: 0.8125rem; font-variant-numeric: tabular-nums; text-decoration: none; }
.fv-thumbs a:hover { background: var(--tint); text-decoration: none; }
.fv-thumbs a[aria-current="true"] { background: var(--tint); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 2px var(--ink); }
.fv-thumbs a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fv-thumbs img { display: block; width: 64px; height: 88px; object-fit: contain; background: var(--sunken); border-radius: 4px; }
.fv-side { background: var(--surface); border-radius: var(--r-m); padding: 14px 16px; box-shadow: var(--shadow-1); }
.fv-side h2 { font-size: 1.0625rem; margin: 0 0 8px; }
.fv-side h3 { font-size: 0.9375rem; margin: 0 0 6px; color: var(--ink-soft); }
.fv-pg + .fv-pg { margin-top: 12px; }
@media (min-width: 1024px) { .fv-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; } }
@media (prefers-reduced-motion: reduce) { .fv-zoom { transition: none; } .fv-thumbs ol, .fv-track { scroll-behavior: auto; } }
@media print {
  .fv-bar, .fv-thumbs, .fv-hot, #fv-hint, .fv-side { display: none !important; }
  .fv-track { display: block; overflow: visible; }
  .fv-page { break-after: page; margin-bottom: 0; }
  .fv-frame { max-width: 100%; box-shadow: none; }
  .fv-zoom { transform: none !important; }
}
/* ===== end L-VIEWER ===== */
/* ===== p3: product master P3 (src/product-pages.ts, src/catalogues.ts cards). Light only, no dividers, AA. ===== */
.p3-grid { list-style: none; margin: var(--s-4) 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 720px) { .p3-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .p3-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 1360px) { .p3-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.p3-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: var(--s-3); background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-1); overflow-wrap: anywhere; }
.p3-card p { margin: 0; }
.p3-top { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.p3-brand { font-size: .8125rem; color: var(--ink-soft); }
.p3-name { font-size: .975rem; font-weight: 600; line-height: 1.45; margin: 0; color: var(--ink); }
.p3-name a { color: inherit; text-decoration: none; }
.p3-name a:hover { color: var(--link); }
.p3-size, .p3-unit, .p3-valid { font-size: .8125rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.p3-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.p3-now { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.p3-was { font-size: .875rem; color: var(--ink-faint); }
.p3-off { font-size: .8125rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.p3-sig { display: flex; flex-direction: column; gap: 2px; font-size: .8125rem; }
.p3-low { display: inline-flex; align-items: center; gap: 4px; color: var(--go); font-weight: 600; }
.p3-low svg { width: 14px; height: 14px; flex: none; }
.p3-prev { color: var(--ink-soft); }
.p3-acts { margin-top: auto; padding-top: var(--s-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.p3-more { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 600; }
.p3-watch { margin: 0; margin-inline-start: auto; }
.p3-watch .btn { min-height: 44px; min-width: 44px; padding: 6px 12px; gap: 6px; font-size: .8125rem; }
.p3-watch svg { width: 16px; height: 16px; }
.p3-search { display: flex; gap: var(--s-2); max-width: 560px; margin-block: var(--s-4); }
.p3-search input { flex: 1; min-width: 0; min-height: 44px; }
.p3-search .btn { min-height: 44px; }
/* Visual audit F3: department strip stays inside the viewport — one scrolling row on phones, wraps from 1024 px. */
.cat-strip.p3-strip { display: flex; flex-wrap: nowrap; gap: var(--s-2); overflow-x: auto; max-width: 100%; padding-block-end: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; overscroll-behavior-x: contain; }
.cat-strip.p3-strip a { flex: none; min-height: 44px; max-width: 80vw; overflow: hidden; text-overflow: ellipsis; scroll-snap-align: start; }
@media (min-width: 1024px) { .cat-strip.p3-strip { flex-wrap: wrap; overflow: visible; } .cat-strip.p3-strip a { max-width: none; } }
.p3-crumbs { font-size: .875rem; margin-block-end: var(--s-2); }
.p3-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.p3-brandline { color: var(--ink-soft); margin-top: 0; }
.p3-stores { list-style: none; padding: 0; margin: var(--s-4) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
@media (min-width: 720px) { .p3-stores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .p3-stores { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.p3-store { display: flex; flex-direction: column; gap: 4px; padding: var(--s-4); background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-1); min-width: 0; }
.p3-store h3 { margin: 0; font-size: 1rem; }
.p3-store p { margin: 0; }
.p3-ended { background: var(--sunken); box-shadow: none; }
.p3-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .875rem; }
.p3-links a { display: inline-flex; align-items: center; min-height: 44px; }
.p3-history { margin-block: var(--s-5); }
.p3-history h2 { font-size: 1.15rem; margin: 0 0 6px; }
.p3-chart { margin: 0; padding: var(--s-3); background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-1); }
.p3-chart svg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; }
.p3-chart figcaption { font-size: .875rem; margin-top: var(--s-2); font-variant-numeric: tabular-nums; }
.p3-ln { fill: none; stroke: currentColor; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.p3-chart g { fill: currentColor; }
.p3-c2 .p3-ln { stroke-dasharray: 8 4; } .p3-c3 .p3-ln { stroke-dasharray: 2 4; } .p3-c5 .p3-ln { stroke-dasharray: 8 4; } .p3-c6 .p3-ln { stroke-dasharray: 2 4; }
.p3-c1 { color: var(--ink); } .p3-c2 { color: var(--link); } .p3-c3 { color: var(--go); } .p3-c4 { color: var(--late); } .p3-c5 { color: var(--danger); } .p3-c6 { color: var(--off); }
.p3-legend { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .875rem; }
.p3-legend li { display: inline-flex; align-items: center; gap: 6px; }
.p3-key { display: inline-block; width: 18px; height: 4px; border-radius: 2px; background: currentColor; }
.p3-table { margin-top: var(--s-3); }
.p3-table summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--link); }
.p3-table summary:focus-visible, .p3-name a:focus-visible, .p3-more:focus-visible, .p3-links a:focus-visible, .p3-crumbs a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
@media print { .p3-watch, .p3-search, .p3-strip { display: none; } }
/* ===== end p3 ===== */

/* ===== C5 near me (src/near-me.ts + public/near.js). Text: --ink 15.9:1, --ink-soft 7.0:1; badge --on-accent on --accent. ===== */
.near-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 16px; }
.near-range { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-s); color: var(--ink-soft); }
.near-range select { min-height: 44px; min-width: 9rem; padding: 0 12px; border: 1.5px solid var(--field-line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: inherit; }
.near-privacy { display: flex; gap: 8px; align-items: flex-start; max-width: 760px; color: var(--ink-soft); }
.near-privacy svg { flex: none; margin-top: 2px; }
.near-status { min-height: 1.5em; margin: 12px 0 0; color: var(--ink-soft); }
.near-status:empty { min-height: 0; margin: 0; }
.near[aria-busy="true"] .near-results { opacity: 0.6; }
.near-results h2 { margin-top: 24px; }
.near-results h2:focus, .near-msg:focus { outline: none; }
.near-results h2:focus-visible, .near-msg:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.near-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.near-card { background: var(--surface); border-radius: var(--r-m); padding: 16px; box-shadow: var(--shadow-1); min-width: 0; overflow-wrap: anywhere; }
.near-head { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; }
.near-head h3 { margin: 0; font-size: var(--fs-l); }
.near-km { flex: none; display: inline-flex; gap: 4px; align-items: center; font-size: var(--fs-s); color: var(--ink); background: var(--sunken); border-radius: var(--r-pill); padding: 2px 10px; }
.near-where { margin: 6px 0 0; color: var(--ink); }
.near-addr, .near-none { margin: 4px 0 0; font-size: var(--fs-s); }
.near-oh { margin: 12px 0 4px; font-size: var(--fs-s); color: var(--ink-soft); }
.near-offers { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; }
.near-badge { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: var(--r-pill); padding: 0 8px; font-size: var(--fs-xs); }
.near-map { margin: 12px 0 0; }
.near-map a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.near-noscript { color: var(--danger); }
/* ===== end C5 near me ===== */

/* Visual audit 2026-12-02 (F5/F12/F13): every stand-alone tap target is at least 44x44 CSS px (owner UX baseline,
   WCAG 2.5.5 AAA). Inline links inside running sentences are exempt by the standard and left as they are. */
.logo { display: flex; align-items: center; min-height: 44px; }
.header-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.trust-strip .ts-how, .verified .vf-link { display: inline-flex; align-items: center; min-height: 44px; }
.org-ident { min-height: 44px; min-width: 44px; }
.sub-strip a { min-height: 44px; }
.sup-form .chk { min-height: 44px; }
/* ===== A2 WALLET (src/wallet.ts): «محفظتي» chooser ===== */
.wl-form { margin-block: 16px 24px; }
.wl-banks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.wl-bank { border: 0; margin: 0; padding: 14px 16px; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-1); min-width: 0; }
.wl-bank legend { float: inline-start; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.wl-chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.wl-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--field-line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.wl-chip input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.wl-chip:hover { background: var(--tint); }
.wl-chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.wl-chip:has(input:checked) .wl-n { color: var(--on-ink); }
.wl-chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.wl-n { color: var(--ink-soft); font-size: .875em; }
.wl-privacy { display: flex; align-items: flex-start; gap: 8px; }
.wl-privacy svg { flex: none; margin-top: 2px; }
.wl-results { margin-top: 8px; }
/* ===== end A2 WALLET ===== */

/* ===== fix1203: support/report links reach 44x44 (owner UX baseline, WCAG 2.5.5) ===== */
.footer-cols a, .footer-policies a { min-width: 44px; justify-content: center; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.disclaimer a { display: inline-block; min-height: 44px; }
/* ===== end fix1203 ===== *//* ===== perf/cwv-1203: skip the first layout of off-screen blocks (Lighthouse trace: the long task on /sa, /sa/offers
   and offer pages is the first full-page Layout, 70-100ms unthrottled for 700-950 objects, not script). content-visibility
   only on full-width blocks with no fixed descendants and padded edges, so paint containment clips nothing; the browser
   renders each one as it nears the viewport, and `auto` keeps its real size afterwards (no scroll jump on the way back).
   Not on the offer page's own sections (ai-box, reviews...): measured, they sit near the fold and only added layout passes. */
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 1400px; }
main > .band:not(:first-of-type) { content-visibility: auto; contain-intrinsic-size: auto 560px; }
/* ===== end perf/cwv-1203 ===== */
/* Owner rule 2026-12-03: gate, sign-in, install, offline and empty-state blocks (icon + message + options) are centre-aligned. */
.intro-next, .signin-page, .install-page, .offline, .signin-failed { text-align: center; }
.signin-page .install-icon, .install-page .install-icon { margin-inline: auto; display: block; }
.signin-page .checks, .install-page .checks, .install-page ol, .install-page ul { display: inline-block; text-align: start; margin-inline: auto; }

/* Viral share card (owner 2026-12-03): framed invitation at the end of the content, above the footer; centred. */
.share-card { margin-block: var(--s-6, 32px) var(--s-5, 24px); }
.share-card-in { text-align: center; background: var(--surface); border: 1px solid var(--field-line); border-radius: var(--r-m); padding: 20px 16px; max-width: 40rem; margin-inline: auto; }
.share-card h2 { margin: 0 0 6px; font-size: 1.25rem; color: var(--ink); }
.share-card p { margin: 0; }
.share-card-acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 14px !important; }
.share-card-acts .btn { min-height: 44px; }
.share-card-acts .js-toast { flex-basis: 100%; min-height: 1.4em; font-size: var(--fs-xs); }
/* Install page (owner rule 2026-12-03: centred): device cards keep the open chevron at the end, their title centred;
   numbered steps stay start-aligned inside a centred block for reading; chips and actions centre on their row. */
.install-page .install-guide > summary > span:first-child { text-align: center; }
.install-page .install-guide > summary::before { content: ""; flex: none; width: 8px; }
.install-page .install-guide ol { display: block; max-width: 34rem; margin-inline: auto; text-align: start; }
.install-page .step-chips, .install-page .row-actions, .install-page .signin-actions { justify-content: center; }
.install-page .checks { text-align: start; }

/* Entity core (template session 2): facts, taxonomy lists, ratings, comparison. No divider lines (css-lines guard). */
.ent-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 12px 20px; margin: 0; }
.ent-facts div { background: var(--sunken); border-radius: var(--r-m); padding: 10px 14px; }
.ent-facts dt { color: var(--ink-soft); font-size: .92rem; }
.ent-facts dd { margin: 2px 0 0; font-weight: 650; color: var(--ink); }
.ent-list { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.ent-list li { background: var(--surface); border-radius: var(--r-m); padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ent-list li a { color: var(--link); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.ent-list li p { margin: 4px 0 0; color: var(--ink-soft); }
.ent-acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-block: var(--s-4, 16px); }
.ent-avg { font-size: 1.15rem; font-weight: 650; }
.ent-reviews { display: grid; gap: 12px; padding: 0; }
.ent-review { background: var(--surface); border-radius: var(--r-m); padding: 14px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ent-stars { font-weight: 700; margin: 0 0 6px; }
.ent-reply { background: var(--sunken); border-radius: var(--r-m); padding: 10px 14px; margin-top: 10px; }
.ent-report summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; color: var(--ink-soft); }
.ent-form .stars { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; border: 0; padding: 0; }
.ent-form .stars label { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.ent-form textarea, .ent-form input:not([type=radio]), .ent-form select { width: 100%; border: 1px solid var(--field-line); border-radius: var(--r-s, 8px); padding: 10px; font: inherit; }
.ent-signin { text-align: center; }
.ent-compare { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.ent-compare th, .ent-compare td { background: var(--surface); padding: 10px 12px; text-align: start; vertical-align: top; }
.ent-compare thead th { background: var(--sunken); }
.mod-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }

/* ===== Design items approved 2026-12-03 (docs/DESIGN-PROPOSALS.md; patterns from docs/design-demo) ===== */
/* 1 (trial). Cross-page view transitions: a short root fade, only when the reader has not asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }
}
/* 2 + 9. One CTA family: every .btn/.chip/card link gives tactile press feedback (transform only, no layout shift). */
.btn, .chip, .pager a, .pager-num .pg-list a { transition: background-color 150ms, color 150ms, transform 100ms ease; }
.btn:active, .chip:active, .pager a:active, .pager-num .pg-list a:active { transform: scale(0.96); }
:is(.offer-link, .mini-card, .logo-tile, .quick-pick a):active { transform: scale(0.98); }
.btn:focus-visible, .chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* 4. Dialogs enter softly (@starting-style); browsers without it simply show them. */
dialog { transition: opacity 0.2s ease, transform 0.2s ease, overlay 0.2s allow-discrete, display 0.2s allow-discrete; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(12px) scale(0.98); } }
/* 6. Star rating input: radio group, DOM 5..1 + row-reverse fills from the reading start in RTL and LTR. */
.star-in { display: inline-flex; flex-direction: row-reverse; justify-content: center; gap: 6px; }
.star-pick { justify-items: center; text-align: center; }
.star-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-in label { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-s, 10px); cursor: pointer; }
.star-in svg { width: 32px; height: 32px; fill: transparent; stroke: var(--ink-faint); stroke-width: 1.6; stroke-linejoin: round; transition: transform 0.18s ease, fill 0.18s ease; }
.star-in input:checked ~ label svg, .star-in label:hover svg, .star-in label:hover ~ label svg { fill: var(--late); stroke: var(--late); }
.star-in input:checked + label svg { transform: scale(1.15); }
.star-in input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.star-out { display: block; min-height: 1.6em; font-weight: 600; text-align: center; color: var(--ink); }
.ent-form .stars.star-pick { display: grid; }
/* 7. Two-step destructive confirm: the first press arms the button (public/app.js js-arm). */
.btn[data-arm].armed { background: var(--danger); border-color: var(--danger); color: #FFFFFF; }
details.confirm { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
details.confirm > summary { list-style: none; cursor: pointer; }
details.confirm > summary::-webkit-details-marker { display: none; }
details.confirm[open] > summary { opacity: 0.85; }
details.confirm[open] > .btn[data-arm] { background: var(--danger); border-color: var(--danger); color: #FFFFFF; }
.arm-note { flex-basis: 100%; margin: 6px 0 0; font-size: 0.875rem; color: var(--danger); text-align: center; }
/* 11. Sort chips as real links, centred above the list. */
.hub-sort { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0 20px; }
/* 12. «Show more» replaces the pager only when JS runs; the rel=next link stays for crawlers. */
.pager .more-btn { min-width: 12rem; }
/* 13. Several offer images = one scroll-snap gallery (touch swipe, keyboard scroll, explicit image sizes). */
.snap-gal { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 560px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-block-end: 8px; margin-top: 16px; border-radius: var(--r-l); }
.snap-gal .offer-img { margin: 0; scroll-snap-align: center; }
.snap-gal:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .btn:active, .chip:active, .pager a:active, .pager-num .pg-list a:active, :is(.offer-link, .mini-card, .logo-tile, .quick-pick a):active, .star-in input:checked + label svg { transform: none; }
  dialog { transition: none; }
}
/* E10 audit: action rows inside entity forms are centred like every other action group. */
:is(.ent-report, .ent-form) form > p:has(> .btn), .ent-form > p:has(> .btn) { text-align: center; }
/* Disabled buttons: no opacity fade (it failed AA); a solid muted pair, --ink-soft on --sunken = 6.9:1. The site is light only. */
.btn:disabled, .btn:disabled:hover, .btn[aria-disabled="true"] { opacity: 1; background: var(--sunken); border-color: var(--sunken); color: var(--ink-soft); cursor: not-allowed; transform: none; }
.btn[aria-busy="true"], .btn[aria-busy="true"]:hover { opacity: 1; background: var(--sunken); border-color: var(--sunken); color: var(--ink-soft); cursor: progress; transform: none; } /* B-17: a submitted button while its request runs; same AA pair as disabled */
/* ===== end design items ===== */
