/* GrowMore for restaurants (T-407): /restaurants/ and /ar/restaurants/, direction D of the approved design (docs/design/0017-site-restaurants.md, 13.9).
   Loaded after styles.css, pages.css and, in Arabic, ar.css. Logical properties only. */
.rx-dc { display: contents; }
/* T-407 design demo. Loaded AFTER the site's own styles.css, pages.css and ar.css (served read-only under /_site/), so the page
   wears the site's tokens, faces, header, footer and buttons. Everything here is prefixed rx- (shared), A- / B- / C- (one direction),
   ap- / tk- / rp- (product screens redrawn with the app's tokens). Logical properties only. */

/* the review bar (not part of any design) */

/* shared type and pieces */
.rx-h1 { font: 800 clamp(2.25rem, 1.2rem + 3.4vw, 4rem)/1.05 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
[lang="ar"] .rx-h1 { line-height: 1.3; letter-spacing: 0; }
.rx-kicker { font: 600 14px/20px var(--font-sans); color: var(--accent-ink); margin-block-end: 14px; }
.rx-sub { font-size: 18px; line-height: 28px; max-inline-size: 56ch; }
[lang="ar"] .rx-sub { font-size: 19px; line-height: 34px; }
.rx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.rx-btn-line { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.rx-btn-line:hover { background: var(--surface-card); }
.rx-sec { padding-block: var(--sec); }
.rx-sec > .wrap > .h2 { max-inline-size: 22ch; }
.rx-sec .lede { max-inline-size: 60ch; margin-block-start: 14px; }
.rx-small { font-size: 14px; line-height: 22px; color: var(--ink-muted); max-inline-size: 78ch; }
.ic-xs { inline-size: 12px; block-size: 12px; }
[dir="rtl"] .flip { scale: -1 1; }
.rx-ticks { display: grid; gap: 12px; }
.rx-ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.rx-ticks .ic { color: var(--positive); margin-block-start: 3px; }
[lang="ar"] .rx-ticks .ic { margin-block-start: 6px; }
.rx-pt { font: 700 19px/26px var(--font-display); color: var(--brand-ink); }
.rx-img { border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-panel); }
.rx-img img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.rx-ref a { display: inline-flex; align-items: center; gap: 1px; padding: 0 3px; margin-inline-start: 2px; font: 600 11px/14px var(--font-sans); color: var(--brand-ink); text-decoration: none; border-radius: 4px; background: var(--brand-soft); }
.rx-ref a:hover { text-decoration: underline; }

/* ---- product screens: the app's own tokens and faces ---- */
.ph { inline-size: 264px; flex: none; border: 7px solid #121a3a; border-radius: 34px; background: #f6f7fb; overflow: hidden; box-shadow: 0 1px 0 #fff inset, 0 24px 48px -18px rgba(11,36,127,.38); }
.ap { font: 400 12px/17px "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif; color: #121a3a; text-align: start; }
[lang="ar"] .ap, [lang="ar"] .tk, [lang="ar"] .rp { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; font-size: 13px; line-height: 20px; }
.ap b { font-weight: 600; } .ap small { display: block; font-size: 11px; line-height: 15px; color: #343d5c; } .ap i { font-style: normal; font-size: 10px; color: #5b6480; }
[lang="ar"] .ap small { font-size: 12px; line-height: 18px; }
.ap-mut { color: #5b6480 !important; }
.ap-head { display: flex; gap: 10px; align-items: center; padding: 16px 14px 12px; background: #fff; border-block-end: 1px solid #d9deea; }
.ap-head b { display: block; font-size: 14px; line-height: 19px; }
.ap-av { flex: none; display: grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: 50%; background: #e8ecf8; color: #0b247f; font-weight: 600; font-size: 14px; }
.ap-av.sq { border-radius: 8px; background: #eef0f5; color: #121a3a; }
.ap-ok { color: #0f766e !important; }
.ap-tabs { display: flex; gap: 6px; padding: 10px 14px; background: #fff; }
.ap-tabs span { padding: 5px 10px; border-radius: 999px; border: 1px solid #7f8aa8; font-weight: 600; font-size: 11px; white-space: nowrap; }
.ap-tabs span.on { background: #0b247f; border-color: #0b247f; color: #fff; }
.ap-tabs.two { padding: 0; border-block-end: 1px solid #d9deea; } .ap-tabs.two span { flex: 1; border: 0; border-radius: 0; text-align: center; padding-block: 9px; }
.ap-tabs.two span.on { background: transparent; color: #0b247f; box-shadow: inset 0 -2px 0 #0b247f; }
.ap-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; padding: 10px 14px; background: #fff; border-block-start: 1px solid #eef0f5; }
.ap-th { border-radius: 10px; background-image: url(/img/restaurants/b1-table-from-above.webp); background-repeat: no-repeat; }
.ap-price { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.ap-amt { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ap-tag { font-style: normal; font-size: 10px; font-weight: 600; padding: 0 5px; border: 1px solid #ad5600; border-radius: 5px; color: #ad5600; margin-inline-start: 4px; }
.ap-how { padding: 10px 14px 4px; }
.ap-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-block-start: 6px; }
.ap-seg span { padding: 7px 8px; border: 1px solid #7f8aa8; border-radius: 10px; background: #fff; }
.ap-seg span.on { border: 2px solid #0b247f; background: #e8ecf8; }
.ap-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px 14px; }
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-block-size: 34px; padding-inline: 12px; border-radius: 10px; background: #0b247f; color: #fff; font-weight: 600; white-space: nowrap; }
.ap-btn.sm { min-block-size: 28px; padding-inline: 9px; font-size: 11px; border-radius: 8px; }
.ap-btn.ghost { background: #fff; color: #121a3a; border: 1.5px solid #7f8aa8; }
.ap-round { margin: 10px 14px 0; padding: 10px; background: #fff; border: 1px solid #d9deea; border-radius: 10px; }
.ap-round.now { border: 1.5px solid #ad5600; background: #fef2e6; }
.ap-rh { display: flex; justify-content: space-between; align-items: center; margin-block-end: 3px; }
.ap-st { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 600; font-size: 11px; color: #ad5600; }
.ap-st.ok { color: #0f766e; }
.ap-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 14px 0; }
.ap-sec { padding: 9px 14px 5px; font-weight: 600; font-size: 11px; color: #343d5c; background: #f3f5fc; }
.ap-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; background: #fff; border-block-start: 1px solid #eef0f5; }
.ap-row.hot { background: #fef2e6; border-inline-start: 3px solid #ad5600; }
.ic.on { fill: #f19a3e; stroke: #ad5600; }
/* paper: a kitchen ticket and a bill */
.tk { inline-size: 210px; flex: none; padding: 14px 14px 12px; background: #fff; color: #121a3a; font: 400 12px/17px "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif; text-align: start; box-shadow: 0 14px 30px -14px rgba(11,36,127,.35), 0 0 0 1px #d9deea; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; padding-block-end: 20px; }
.tk b { font-weight: 600; } .tk small { display: block; font-size: 11px; color: #343d5c; }
.tk-top { display: flex; justify-content: space-between; font-size: 15px; padding-block-end: 6px; border-block-end: 1.5px dashed #7f8aa8; }
.tk-top span, .tk-row b { font-variant-numeric: tabular-nums; direction: ltr; }
.tk-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding-block: 6px; font-weight: 600; }
.tk-meta em { font-style: normal; padding: 1px 6px; border: 1.5px solid #121a3a; border-radius: 4px; font-size: 11px; }
.tk-line { display: grid; grid-template-columns: 26px 1fr; padding-block: 5px; border-block-start: 1px solid #eef0f5; }
.tk-bars { block-size: 26px; margin-block-start: 10px; background: repeating-linear-gradient(90deg, #121a3a 0 2px, #fff 2px 3px, #121a3a 3px 4px, #fff 4px 7px, #121a3a 7px 10px, #fff 10px 12px); }
.tk-code { text-align: center; font-family: "IBM Plex Mono", monospace; margin-block-start: 3px; direction: ltr; }
.tk-row { display: flex; justify-content: space-between; gap: 10px; padding-block: 4px; border-block-start: 1px solid #eef0f5; }
.tk-row.tot { border-block-start: 1.5px solid #121a3a; margin-block-start: 4px; font-weight: 600; font-size: 14px; }
/* report cards */
.rp { padding: 16px; background: #fff; border: 1px solid #d9deea; border-radius: 14px; font: 400 12.5px/18px "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif; color: #121a3a; text-align: start; box-shadow: var(--shadow-sm); }
.rp-t { display: block; font-weight: 600; font-size: 14px; margin-block-end: 10px; }
.rp-bars { display: grid; gap: 8px; }
.rp-bar { display: grid; grid-template-columns: 96px 1fr; column-gap: 8px; align-items: center; }
.rp-bar i { block-size: 10px; border-radius: 3px; background: #0b247f; }
.rp-bar em { grid-column: 2; font-style: normal; font-size: 11px; color: #343d5c; }
.rp-bar.st { grid-template-columns: 34px 1fr; } .rp-bar.st span { display: inline-flex; align-items: center; gap: 3px; }
.rp-mx { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rp-mx div { padding: 8px 10px; border-radius: 8px; border: 1px solid #d9deea; min-block-size: 62px; }
.rp-mx em { display: block; font-style: normal; font-weight: 600; font-size: 11px; }
.mx-s { background: #e0f2ef; } .mx-s em { color: #0f766e; } .mx-p { background: #e8ecf8; } .mx-p em { color: #0b247f; }
.mx-z { background: #fef2e6; } .mx-z em { color: #ad5600; } .mx-d { background: #fff; border-style: dashed !important; } .mx-d em { color: #b42318; }
.rp-row { display: flex; align-items: center; gap: 8px; padding-block: 6px; border-block-start: 1px solid #eef0f5; }
.rp-row span { flex: 1; } .rp-row em { font-style: normal; color: #5b6480; } .rp-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rp-cap { display: block; margin-block-start: 6px; font-size: 11px; color: #5b6480; }

/* ---- the closing blocks every direction shares (skinned per direction below) ---- */
.rx-val-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 56px; margin-block-start: 36px; align-items: start; }
.rx-cost { padding: 28px; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); grid-row: span 2; }
.rx-cost-ex { font: 700 19px/28px var(--font-display); color: var(--brand-ink); margin-block-end: 16px; }
.rx-cost dl { margin: 0; }
.rx-cost dl div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-block-start: 1px solid var(--border); }
.rx-cost dd { margin: 0; font: 600 17px/24px var(--font-sans); font-variant-numeric: tabular-nums; direction: ltr; }
.rx-cost .tot { border-block-start: 2px solid var(--ink); }
.rx-cost .tot dd { font: 800 34px/38px var(--font-display); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.rx-cost .tot dt { font-weight: 600; align-self: end; }
.rx-cost .rx-small { margin-block-start: 8px; }
.rx-back .h3 { margin-block-end: 14px; font-size: 19px; }
.rx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block-start: 24px; border-block-start: 1px solid var(--border); }
.rx-stats b, .rx-q b { display: block; font: 800 34px/40px var(--font-display); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.rx-stats span { display: block; font-size: 14px; line-height: 22px; color: var(--ink-secondary); margin-block-start: 4px; }
[lang="ar"] .rx-stats span { font-size: 15px; line-height: 26px; }
.rx-q { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-block-start: 28px; }
.rx-q li { padding-block: 24px; border-block-start: 1px solid var(--border); display: grid; grid-template-columns: 150px 1fr; gap: 6px 20px; }
.rx-q li p { grid-column: 2; color: var(--ink-secondary); }
.rx-q-a { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink) !important; font-weight: 600; }
.rx-q-a .ic { color: var(--positive); margin-block-start: 3px; }
.rx-table { margin-block: 28px 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-card); }
.rx-table table { inline-size: 100%; border-collapse: collapse; min-inline-size: 560px; }
.rx-table th, .rx-table td { padding: 14px 18px; text-align: start; border-block-end: 1px solid var(--border); }
.rx-table tbody tr:last-child > * { border-block-end: 0; }
.rx-table thead th { font: 600 13px/18px var(--font-sans); color: var(--ink-secondary); background: var(--surface-table-head); }
.rx-table tbody th { font-weight: 600; }
.rx-table td, .rx-table thead th:not(:first-child) { text-align: end; font-variant-numeric: tabular-nums; }
.rx-table td b { font: 800 18px/24px var(--font-display); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.rx-table s { color: var(--ink-muted); }
.rx-base > * { background: var(--brand-soft); }
.rx-base em { display: inline-block; margin-inline-end: 10px; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--brand); color: #fff; font: 600 12px/18px var(--font-sans); font-style: normal; }
.rx-table .rx-sub th { padding-block: 8px; font: 600 13px/18px var(--font-sans); color: var(--ink-secondary); background: var(--surface-table-head); }
.rx-calc table { min-inline-size: 0; }
.rx-calc th, .rx-calc td { padding-block: 10px; }
.rx-ckc { inline-size: 64px; text-align: center !important; padding: 0 !important; }
.rx-calc thead th:first-child { text-align: center; padding-inline: 0; }
.rx-calc thead th:nth-child(2) { text-align: start; }
.rx-ck { display: grid; place-items: center; min-inline-size: 44px; min-block-size: 44px; margin-inline: auto; cursor: pointer; }
.rx-ck input { inline-size: 22px; block-size: 22px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.rx-ck input:disabled { cursor: default; }
.rx-ck input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.rx-calc tr:has(input:not(:checked)) > th, .rx-calc tr:has(input:not(:checked)) td b { color: var(--ink-secondary); font-weight: 400; }
.rx-seats { display: inline-flex; align-items: center; margin-inline-start: 14px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-card); vertical-align: middle; }
.rx-seats button { inline-size: 32px; block-size: 32px; border: 0; background: transparent; font: 600 18px/1 var(--font-sans); color: var(--brand-ink); cursor: pointer; border-radius: 8px; }
.rx-seats button:hover { background: var(--brand-soft); }
.rx-seats output { min-inline-size: 28px; text-align: center; font: 600 15px/20px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.rx-est { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 40px; align-items: end; margin-block: 0 20px; padding: 18px 22px; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.rx-est span { display: block; font: 600 13px/18px var(--font-sans); color: var(--ink-secondary); }
.rx-est b { display: block; font: 800 34px/40px var(--font-display); color: var(--brand-ink); font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
[dir="rtl"] .rx-est b { text-align: end; }
.rx-est div:nth-child(2) b { font-size: 24px; line-height: 34px; color: var(--ink); }
.rx-est .rx-small { align-self: center; }
@media (max-width: 639px) {
  .rx-calc tr:not(.rx-sub) > :nth-child(4), .rx-calc tr:not(.rx-sub) > :nth-child(5) { display: none; }
  .rx-calc th, .rx-calc td { padding-inline: 12px; }
  .rx-ckc { inline-size: 52px; }
  .rx-seats { display: flex; inline-size: max-content; margin: 8px 0 0; }
  .rx-seats button { inline-size: 44px; block-size: 44px; }
  .rx-est { grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 16px; }
  .rx-est .rx-small { grid-column: 1 / -1; }
}
.rx-more { margin-block-end: 6px; color: var(--ink-secondary); }
.rx-more .link { min-block-size: 0; margin-inline-start: 6px; }
.rx-src { margin-block-start: 28px; border-block-start: 1px solid var(--border); padding-block-start: 12px; }
.rx-src summary { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; cursor: pointer; font-weight: 600; color: var(--brand-ink); }
.rx-src ol { list-style: decimal; padding-inline-start: 22px; margin-block-start: 8px; display: grid; gap: 10px; font-size: 14px; line-height: 22px; color: var(--ink-secondary); max-inline-size: 96ch; }
.rx-src li:target { background: var(--brand-soft); outline: 6px solid var(--brand-soft); border-radius: 2px; }
.rx-src a { color: var(--brand-ink); display: inline-flex; gap: 4px; align-items: baseline; }
.rx-close { padding-block: var(--sec); text-align: center; background: var(--surface-card); border-block-start: 1px solid var(--border); }
.rx-close .h2 { margin-inline: auto; max-inline-size: 20ch; }
.rx-close .lede { margin-block-start: 14px; }
.rx-close .rx-cta { justify-content: center; }

/* =====================  A · THE DINING ROOM  (people, daylight, editorial photography)  ===================== */
.A-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #0b1230; color: #fff; min-block-size: min(680px, 100dvh - 64px); }
.A-hero-txt { align-self: center; padding: 56px clamp(20px, 4vw, 64px) 96px; padding-inline-start: max(var(--g), calc((100vw - var(--wrap)) / 2)); }
.A-hero .rx-kicker { color: var(--orange-300); }
.A-hero .rx-h1 { font-size: clamp(2.125rem, 1.1rem + 2.7vw, 3.375rem); }
.A-hero .rx-sub { color: #d3d9f2; margin-block-start: 20px; }
.A-hero-img { margin: 0; position: relative; }
.A-hero-img img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 40% 50%; }
.A-prom { position: relative; margin-block-start: -56px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.A-prom > div { padding: 26px 28px; }
.A-prom > div + div { border-inline-start: 1px solid var(--border); }
.A-prom p { margin-block-start: 6px; color: var(--ink-secondary); font-size: 15px; line-height: 24px; }
[lang="ar"] .A-prom p { font-size: 16px; line-height: 28px; }
.A-pain .rx-img { aspect-ratio: 21 / 9; margin-block: 32px 8px; }
.rx-pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.rx-pains li { padding-block: 22px; border-block-end: 1px solid var(--border); }
.rx-pains s { display: block; color: var(--ink-muted); text-decoration-color: #b4231880; text-decoration-thickness: 1.5px; }
.rx-pains b { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin-block-start: 8px; font-weight: 600; }
.rx-pains .ic { color: var(--positive); margin-block-start: 3px; }
.A-fast .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.A-fast .rx-ticks { margin-block-start: 26px; }
.A-collage { position: relative; padding-block-end: 90px; }
.A-collage .rx-img { aspect-ratio: 16 / 10; }
.A-collage .ph { position: absolute; inset-block-end: 0; }
.A-collage > div:nth-of-type(1) .ph { inset-inline-start: -28px; rotate: -3deg; }
.A-collage > div:nth-of-type(2) .ph { inset-inline-end: 24px; rotate: 2deg; }
[dir="rtl"] .A-collage > div:nth-of-type(1) .ph { rotate: 3deg; } [dir="rtl"] .A-collage > div:nth-of-type(2) .ph { rotate: -2deg; }
.A-collage .ph { inline-size: 232px; }
.A-collage .ph .ap { zoom: .88; }
.A-an .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.A-an-pic { position: relative; padding-block-end: 70px; padding-inline-end: 40px; }
.A-an-pic .rx-img { aspect-ratio: 4 / 3; }
.A-an-pic .rp { position: absolute; inset-block-end: 0; inset-inline-end: 0; inline-size: 270px; box-shadow: var(--shadow-md); }
.rx-reports { margin-block-start: 22px; }
.rx-reports li { padding-block: 13px; border-block-start: 1px solid var(--border); display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
.rx-reports b { font-weight: 600; color: var(--brand-ink); }
.rx-reports span { color: var(--ink-secondary); }
.rx-ch { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin-block-start: 36px; }
.rx-ch li { padding-block-start: 16px; border-block-start: 2px solid var(--brand); }
.rx-ch .ic { color: var(--brand-mark); margin-block-end: 10px; inline-size: 24px; block-size: 24px; }
.rx-ch p { margin-block-start: 4px; color: var(--ink-secondary); font-size: 15px; line-height: 24px; }
[lang="ar"] .rx-ch p { font-size: 16px; line-height: 27px; }
.A-ch { background: var(--surface-card); border-block: 1px solid var(--border); }
/* D: B's order line as a section inside A (no buttons, a lower band), and B's tool tabs */
.D-line { background: repeating-linear-gradient(to bottom, #fbfcfe 0 31px, #0b247f1a 31px 32px); border-block: 1px solid var(--border); padding-block: 64px; }
.D-line-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.D-line-top .lede { margin: 0; }
.D-line .B-line { margin-block-start: 40px; align-items: start; }
/* D: four equal columns so the dashed line starts at the first stop's centre and ends at the last one's (half a column in from each edge, the 24px gaps counted), and the moving dot travels BEHIND the stop pills, visible only between them (the owner's note of 2026-12-02) */
@media (min-width: 900px) { .D-line .B-line { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: stretch; } .D-line .B-line::before { inset-inline: calc((100% - 72px) / 8); } .D-line .B-line::after { z-index: 0; inset-inline-start: calc((100% - 72px) / 8); animation-name: D-run; } .D-line .B-stop > b { z-index: 1; } }
@keyframes D-run { 0% { inset-inline-start: calc((100% - 72px) / 8); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { inset-inline-start: calc(100% - (100% - 72px) / 8 - 14px); opacity: 0; } }
.D-line .B-stop .ph { inline-size: 212px; max-block-size: 300px; border-end-start-radius: 0; border-end-end-radius: 0; border-block-end: 0; -webkit-mask: linear-gradient(#000 78%, #0000); mask: linear-gradient(#000 78%, #0000); box-shadow: none; }
.D-line .B-stop .ph .ap { zoom: .8; }
.D-line .B-stop .tk { inline-size: 196px; }
.D-tools .B-stage { box-shadow: var(--shadow-sm); }
.D-rate { background: var(--surface-card); border-block: 1px solid var(--border); }
.D-rate .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.D-rate .h2 { max-inline-size: 18ch; }
.D-rate .rx-ticks { margin-block-start: 26px; }
.D-rate-pic { position: relative; padding-block-end: 56px; padding-inline-start: 40px; }
.D-rate-pic .rx-img { aspect-ratio: 4 / 3; }
/* The owner's order of 2026-12-01: the guest's own view of the rating, a circle in the photo's bottom corner AWAY from the ratings card (inline-end). The photo itself is untouched. */
.D-rate-shot { position: relative; }
.D-rate-pov { position: absolute; inset-block-end: 4%; inset-inline-end: 3%; inline-size: 34%; block-size: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid #ffffff; box-shadow: var(--shadow-md); }
.D-rate-pic .rp { position: absolute; inset-block-end: 0; inset-inline-start: 0; inline-size: 250px; box-shadow: var(--shadow-md); }
@media (max-width: 899px) { .D-rate .wrap { grid-template-columns: 1fr; gap: 32px; } .D-rate-pic { padding: 0; } .D-rate-pic .rp { position: static; inline-size: auto; margin-block-start: 12px; } .D-rate-pov { inline-size: 36%; border-width: 3px; } }
/* A photograph does not mirror: its empty corner (the floor) is the same physical corner in both languages, so in Arabic the circle keeps that corner and the ratings card takes the other one. */
[dir="rtl"] .D-rate-pov { inset-inline: 3% auto; }
@media (min-width: 900px) { [dir="rtl"] .D-rate-pic { padding-inline: 0 40px; } [dir="rtl"] .D-rate-pic .rp { inset-inline: auto 0; } }
/* home A */

/* =====================  B · THE BOARD  (objects from above, live product, ruled paper)  ===================== */
.B-line { position: relative; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; align-items: start; gap: 24px; margin-block-start: 56px; }
.B-line::before { content: ""; position: absolute; inset-inline: 40px; inset-block-start: 21px; border-block-start: 2px dashed var(--brand); opacity: .55; }
.B-line::after { content: ""; position: absolute; inset-block-start: 15px; inset-inline-start: 40px; inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--accent); animation: B-run 5s var(--motion-curve) infinite; }
@keyframes B-run { 0% { inset-inline-start: 40px; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { inset-inline-start: calc(100% - 54px); opacity: 0; } }
.B-stop { position: relative; display: grid; justify-items: center; gap: 14px; }
.B-stop > b { position: relative; padding: 8px 14px; background: var(--brand); color: #fff; border-radius: var(--radius-pill); font: 600 14px/20px var(--font-sans); white-space: nowrap; }
.B-stop .ph { inline-size: 240px; } .B-stop .ph .ap { zoom: .9; }
.B-tabs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; margin-block-start: 36px; }
.B-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.B-tablist { display: grid; align-content: start; gap: 4px; }
.B-tablist label { display: flex; align-items: center; gap: 12px; min-block-size: 52px; padding-inline: 16px; border-radius: var(--radius-md); border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: var(--tr); }
.B-tablist label:hover { background: var(--surface-card); }
.B-tablist .ic { color: var(--brand-mark); }
.B-stage { min-block-size: 470px; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.B-panel { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); block-size: 100%; min-block-size: 470px; }
.B-panel > div:first-child { padding: 36px; align-self: center; }
.B-panel p { margin-block-start: 10px; color: var(--ink-secondary); }
.B-vis { position: relative; background: var(--surface-panel); display: grid; place-items: center; overflow: hidden; }
.B-vis > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.B-vis > :not(img) { position: relative; }
.B-vis .ph { inline-size: 230px; margin-block: 24px -60px; align-self: start; } .B-vis .ph .ap { zoom: .87; }
.B-vis .tk { rotate: -3deg; } .B-vis .rp { inline-size: 250px; }
.B-tabs > input:nth-of-type(1):checked ~ .B-tablist label:nth-of-type(1) { background: var(--brand); color: #fff; }
.B-tabs > input:nth-of-type(1):checked ~ .B-tablist label:nth-of-type(1) .ic { color: #fff; }
.B-tabs > input:nth-of-type(1):focus-visible ~ .B-tablist label:nth-of-type(1) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.B-tabs > input:nth-of-type(1):checked ~ .B-stage .B-panel:nth-of-type(1) { display: grid; }
.B-tabs > input:nth-of-type(2):checked ~ .B-tablist label:nth-of-type(2) { background: var(--brand); color: #fff; }
.B-tabs > input:nth-of-type(2):checked ~ .B-tablist label:nth-of-type(2) .ic { color: #fff; }
.B-tabs > input:nth-of-type(2):focus-visible ~ .B-tablist label:nth-of-type(2) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.B-tabs > input:nth-of-type(2):checked ~ .B-stage .B-panel:nth-of-type(2) { display: grid; }
.B-tabs > input:nth-of-type(3):checked ~ .B-tablist label:nth-of-type(3) { background: var(--brand); color: #fff; }
.B-tabs > input:nth-of-type(3):checked ~ .B-tablist label:nth-of-type(3) .ic { color: #fff; }
.B-tabs > input:nth-of-type(3):focus-visible ~ .B-tablist label:nth-of-type(3) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.B-tabs > input:nth-of-type(3):checked ~ .B-stage .B-panel:nth-of-type(3) { display: grid; }
.B-tabs > input:nth-of-type(4):checked ~ .B-tablist label:nth-of-type(4) { background: var(--brand); color: #fff; }
.B-tabs > input:nth-of-type(4):checked ~ .B-tablist label:nth-of-type(4) .ic { color: #fff; }
.B-tabs > input:nth-of-type(4):focus-visible ~ .B-tablist label:nth-of-type(4) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.B-tabs > input:nth-of-type(4):checked ~ .B-stage .B-panel:nth-of-type(4) { display: grid; }
.B-tabs > input:nth-of-type(5):checked ~ .B-tablist label:nth-of-type(5) { background: var(--brand); color: #fff; }
.B-tabs > input:nth-of-type(5):checked ~ .B-tablist label:nth-of-type(5) .ic { color: #fff; }
.B-tabs > input:nth-of-type(5):focus-visible ~ .B-tablist label:nth-of-type(5) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.B-tabs > input:nth-of-type(5):checked ~ .B-stage .B-panel:nth-of-type(5) { display: grid; }
.B-tabs > input:nth-of-type(6):checked ~ .B-tablist label:nth-of-type(6) { background: var(--brand); color: #fff; }
.B-tabs > input:nth-of-type(6):checked ~ .B-tablist label:nth-of-type(6) .ic { color: #fff; }
.B-tabs > input:nth-of-type(6):focus-visible ~ .B-tablist label:nth-of-type(6) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.B-tabs > input:nth-of-type(6):checked ~ .B-stage .B-panel:nth-of-type(6) { display: grid; }
.B-tabs > input:nth-of-type(7):checked ~ .B-tablist label:nth-of-type(7) { background: var(--brand); color: #fff; }
.B-tabs > input:nth-of-type(7):checked ~ .B-tablist label:nth-of-type(7) .ic { color: #fff; }
.B-tabs > input:nth-of-type(7):focus-visible ~ .B-tablist label:nth-of-type(7) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.B-tabs > input:nth-of-type(7):checked ~ .B-stage .B-panel:nth-of-type(7) { display: grid; }
/* home B */

/* =====================  C · ONE EVENING  (night close-ups, a timeline, then the morning)  ===================== */
/* home C */
/* D's band has two-line titles: the pictures keep one line whatever the title's length. */

/* ---------------------------------- narrow screens: one column, no overlaps ---------------------------------- */
@media (max-width: 899px) {
  .A-hero { grid-template-columns: 1fr; min-block-size: 0; }
  .A-hero-img { order: -1; aspect-ratio: 16 / 10; }
  .A-hero-txt { padding: 32px var(--g) 88px; }
  .A-prom { grid-template-columns: 1fr; margin-block-start: -48px; }
  .A-prom > div + div { border-inline-start: 0; border-block-start: 1px solid var(--border); }
  .A-pain .rx-img { aspect-ratio: 16 / 9; }
  .rx-pains, .rx-q, .rx-val-grid, .A-fast .wrap, .A-an .wrap { grid-template-columns: 1fr; gap: 0; }
  .A-fast .wrap, .A-an .wrap, .rx-val-grid { gap: 32px; }
  .A-collage { padding-block-end: 0; display: grid; gap: 16px; justify-items: center; }
  .A-collage .ph { position: static; rotate: none !important; }
  .A-collage > div:nth-of-type(2) .ph { display: none; }
  .A-an-pic { padding: 0; } .A-an-pic .rp { position: static; inline-size: auto; margin-block-start: 12px; }
  .rx-reports li { grid-template-columns: 1fr; gap: 2px; }
  .rx-ch { grid-template-columns: 1fr 1fr; gap: 20px; }
  .rx-stats { grid-template-columns: 1fr; }
  .rx-q li { grid-template-columns: 1fr; } .rx-q li p { grid-column: 1; }
  .rx-cost { grid-row: auto; padding: 22px; }
  .B-line { grid-template-columns: 1fr; justify-items: center; gap: 28px; margin-block-start: 36px; }
  .B-line::before { inset-inline: auto; inset-inline-start: 50%; inset-block: 20px; border-block-start: 0; border-inline-start: 2px dashed var(--brand); }
  .B-line::after { display: none; }
  .B-tabs { grid-template-columns: 1fr; gap: 16px; }
  .B-tablist { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-block-end: 8px; }
  .B-tablist label { border-color: var(--border-strong); min-block-size: 44px; }
  .B-panel { grid-template-columns: 1fr; } .B-panel > div:first-child { padding: 24px; } .B-vis { min-block-size: 300px; }
}
@media (max-width: 899px) { .D-line { padding-block: 44px; } .D-line-top { grid-template-columns: 1fr; gap: 14px; } .D-line .B-stop .ph { max-block-size: 260px; } }
@media (max-width: 479px) { .rx-ch { grid-template-columns: 1fr; } .rx-cta .btn { inline-size: 100%; } .rx-cost .tot dd { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .B-line::after { display: none; } }
/* D: the tools section and «اعرف أين يتسرّب ربح مطعمك» share one background, so their two paddings stacked into a ~165px hole; the second section drops its top padding (the owner's note of 2026-12-02) */
.D-tools + .A-an { padding-block-start: 0; }
