/* ============================================================
   RESANEH PUBLIC SITE — Global Header and Global Footer
   Build: MVP-007

   THIS FILE IS NOW REFERENCE-DRIVEN, NOT INTERPRETIVE.
   ---------------------------------------------------
   Every metric below is transcribed from the OWNER-CONFIRMED
   DESIGN-A.4 board CSS, archived in this repository at
   docs/design/A4-homepage/boards/, and checked against the
   confirmed frames in docs/design/A4-homepage/frames/. Where the
   board used its own mockup variable names, the production token
   from tokens.css with the identical value is used instead:

     board --brand      -> --brand-core
     board --canvas     -> --surface-canvas
     board --warm       -> --surface-warm
     board --divider    -> --divider
     board --border-c   -> --border-container
     board --border-i   -> --border-interactive
     board --t-muted    -> --text-muted
     board --t-second   -> --text-secondary
     board --t-strong   -> --text-strong
     board --t-primary  -> --text-primary
     board --dr-meta    -> --type-metadata-size/lh   (13/1.45, 14/1.70)
     board --dr-micro   -> --type-chip-size/lh       (12/1.35, 13/1.60)
     board --ed-small   -> --type-small-size/lh      (14/1.55, 15/1.75)

   Those type tiers are the APPROVED bilingual scale (DESIGN_SYSTEM
   sections 3.3/3.5) and match the board value for value, so the
   board's typography is reproduced from approved tokens rather
   than re-declared here.

   The board's spacing, radius and container values are [D]
   UNFROZEN per SS10.4. They are adopted here as implementation
   values because the confirmed reference is what they must match,
   and they are declared as locally-scoped --site-* names so that
   nothing in this file can be mistaken for a promoted Design
   System token. Adopting a value to match the reference is not the
   same as freezing it.

   ONE APPROVED SUPERSESSION. The boards draw the brand as a CSS
   glyph plus a typeset wordmark because no brand asset existed
   when they were made. P8 (SS6, Owner ruling 13 September 2026)
   closed that with production SVG lockups, committed at
   public/assets/brand/. The lockup rules below size the P8 asset;
   the board's glyph recipe is deliberately NOT reproduced.

   ACTIVE / FROZEN. The full approved shell renders now. Elements
   whose Build has not happened are FROZEN: same size, position and
   visual weight as their active counterpart, rendered as spans,
   with no interactive affordance and no fabricated data. The
   frozen treatment is deliberately subtle — the approved boards
   already draw every unselected icon as a dashed empty slot, so
   reproducing that treatment is reference-faithful rather than a
   grey generic placeholder.

   BREAKPOINTS are the board's own: 700px and 1100px, matching
   SS10.4. The board expresses them as container queries on a
   mockup wrapper; production uses the equivalent media queries.
   The Tablet band carries the board's own D-71 compaction rule,
   whose comment records the overflow it was measured to fix
   (EN 53px, FA 10px).
   ============================================================ */

:root {
  /* board --s1..--s9, --r-sm/md/lg, --maxw, --pad — [D] unfrozen,
     adopted to match the confirmed reference. */
  --site-s1: 4px;
  --site-s2: 8px;
  --site-s3: 12px;
  --site-s4: 16px;
  --site-s5: 24px;
  --site-s6: 32px;
  --site-s7: 48px;
  --site-r-sm: 2px;
  --site-r-md: 4px;
  --site-maxw: 1200px;
  --site-pad: 16px;

  /* Approved bilingual tiers, English by default. */
  --site-meta: var(--type-metadata-size-en);
  --site-meta-lh: var(--type-metadata-lh-en);
  --site-micro: var(--type-chip-size-en);
  --site-micro-lh: var(--type-chip-lh-en);
  --site-small: var(--type-small-size-en);
  --site-small-lh: var(--type-small-lh-en);

  /* P8: EN lockup minimum 32px symbol height; the board's own mark is
     34px, which is the value used. */
  --site-lockup-h: 34px;
}

html[lang='fa'] {
  --site-meta: var(--type-metadata-size-fa);
  --site-meta-lh: var(--type-metadata-lh-fa);
  --site-micro: var(--type-chip-size-fa);
  --site-micro-lh: var(--type-chip-lh-fa);
  --site-small: var(--type-small-size-fa);
  --site-small-lh: var(--type-small-lh-fa);

  /* P8: the Persian lockup carries a higher floor (40px) — below an 18px
     wordmark ink height the "heh" counter closes and the "seen" teeth
     merge. The board's Persian wordmark is also set larger (26px vs 20px),
     so this matches the reference as well as the ruling. */
  --site-lockup-h: 40px;
}

/* ---------- shared container (board .cont) ----------------------- */
.hdr .cont,
.ftr .cont {
  max-inline-size: var(--site-maxw);
  margin-inline: auto;
  padding-inline: var(--site-pad);
}

/* ---------- frozen state ----------------------------------------- */
.hdr .is-frozen,
.ftr .is-frozen {
  cursor: default;
  text-decoration: none;
}

/* ---------- shared: brand lockup (P8 supersession) --------------- */
/* DEFECT FIX, FOUND IN THE PRE-v0.8.2 AUDIT AND OLDER THAN THIS BUILD.
   Bootstrap declares `.mark, mark { padding:.1875em; color:var(--bs-
   highlight-color); background-color:var(--bs-highlight-bg) }`, and
   this class is named `.mark` for "wordmark". Bootstrap loads before
   this file, but the rule below never declared `background-color`,
   `padding` or `color`, so nothing overrode them: the approved brand
   lockup has been rendering inside a #FFF3CD highlight box with 3.19px
   of padding, in the Header AND the Footer, on EVERY public page, at
   every width, in both locales, since v0.7.0. Measured in this audit at
   128.5 x 40.4px of yellow behind the P8 asset.
   It went unseen because MVP-007's self-review was static inspection and
   `php -l` only -- no browser ran. The three declarations below are the
   whole fix; nothing else about the lockup changes. */
.mark {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none; /* an underline would strike the approved mark */
  background-color: transparent;
  padding: 0;
  color: inherit;
}
.mark img {
  display: block;
  block-size: var(--site-lockup-h);
  inline-size: auto;
}
/* v0.30.0 — Brand Identity V7.0 (App\Support\BrandAssets). The SVGs
   carry their approved clear space inside the viewBox, so the rendered
   height includes it. 64px puts the horizontal logo at 160px wide — the
   kit's stated digital minimum; the symbol's minimum is 48px. width and
   height attributes reserve the box; inline-size:auto keeps the aspect. */
.mark .brand-logo { inline-size: auto; max-inline-size: none; }
.mark .brand-h64 { block-size: 64px; }
.mark .brand-h48 { block-size: 48px; }
.mark .brand-h112 { block-size: 112px; }
.mark picture { display: block; }
.hdr .hdr-r1-in { padding-block: var(--site-s2); }
@media (max-width: 359.98px) {
  .mark--mob .brand-logo { block-size: 48px; }
}

/* ---------- shared: empty icon slot (board .islot) ---------------
   The approved boards draw every icon as a dashed empty slot, because
   SS10.4 leaves the icon set unselected and forbids drawing platform or
   brand marks. This reproduces that treatment exactly. */
.islot {
  inline-size: 16px;
  block-size: 16px;
  border: 1px dashed var(--border-interactive);
  border-radius: var(--site-r-sm);
  flex: 0 0 auto;
  opacity: 0.75;
}
.islot.lg {
  inline-size: 26px;
  block-size: 26px;
}

/* ---------- shared: primary button (board .btn-primary) ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--site-s2);
  background: var(--brand-core);
  color: #fff;
  border-radius: var(--site-r-md);
  padding: 11px 18px;
  font: 600 var(--site-meta) / 1.2 var(--font-latin);
  text-decoration: none;
  white-space: nowrap;
}
html[lang='fa'] .btn-primary { font-family: var(--font-persian); }

/* ---------- shared: disclosure triangle (board .chev-d) ---------- */
.chev-d {
  inline-size: 0;
  block-size: 0;
  border-inline: 5px solid transparent;
  border-block-start: 6px solid var(--text-muted);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
details[open] > summary .chev-d { transform: rotate(180deg); }

/* Visually hidden, but still the control's accessible name. */
.vh {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

/* ================================================== GLOBAL HEADER */
.hdr {
  background: var(--surface-canvas);
  border-block-end: 1px solid var(--divider);
}

/* ---------- Mobile bar (below 700px) ----------------------------- */
.hdr-mob { display: block; }
.hdr-mob-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--site-s3);
  padding-block: var(--site-s3);
}
.hdr-mob-in > .navdet { grid-column: 1; justify-self: start; }
.hdr-mob-in > .mark { grid-column: 2; justify-self: center; }
.hdr-mob-in > .searchtrig { grid-column: 3; justify-self: end; }
/* CMS-SIMPLIFY: language switch + search trigger share the bar's end. */
.hdr-mob-in > .mob-end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--site-s2); }
.lang--bar { display: inline-flex; align-items: center; justify-content: center; min-block-size: 40px; min-inline-size: 40px; }

.burger-btn {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: var(--site-s2);
  margin-inline-start: calc(var(--site-s2) * -1);
}
.burger-btn::-webkit-details-marker { display: none; }
.burger-btn::marker { content: ""; }
.burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.burger i {
  display: block;
  inline-size: 20px;
  block-size: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
/* The approved drawer frame shows a close control. With the native details
   element and no JavaScript there is exactly one control, so the hamburger
   becomes the close mark when the drawer is open. */
.navdet[open] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navdet[open] .burger i:nth-child(2) { opacity: 0; }
.navdet[open] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.searchtrig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 40px;
  block-size: 40px;
  border: 1px solid var(--border-container);
  border-radius: var(--site-r-md);
}

/* ---------- Mobile drawer (board .drawer) ------------------------ */
.navdet { position: static; }
.hdr-mob-in { position: relative; }
.drawer {
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(100% + var(--site-s3));
  z-index: 40;
  background: var(--surface-canvas);
  border: 1px solid var(--border-container);
  border-radius: var(--site-r-md);
  overflow: hidden;
}
.drawer .cta {
  padding: var(--site-s4);
  border-block-end: 1px solid var(--divider);
}
.drawer .cta .btn-primary {
  inline-size: 100%;
}
.drawer .drow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--site-s3);
  padding: 14px var(--site-s4);
  border-block-end: 1px solid var(--divider);
  font: 500 var(--site-small) / 1.3 var(--font-latin);
  color: var(--text-strong);
  text-decoration: none;
}
html[lang='fa'] .drawer .drow { font-family: var(--font-persian); }
.drawer .drow.sec {
  color: var(--text-secondary);
  font-weight: 400;
}
.drawer .drow.is-frozen { color: var(--text-muted); }
.drawer .drow.is-current { color: var(--brand-core); font-weight: 600; }
.drawer .dfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--site-s3);
  padding: var(--site-s4);
}
.drawer .dfoot-label {
  font: 400 var(--site-micro) / var(--site-micro-lh) var(--font-latin);
  color: var(--text-muted);
}
html[lang='fa'] .drawer .dfoot-label { font-family: var(--font-persian); }

/* ---------- Mobile Utility Strip (board .mstrip) -----------------
   Directly below the header bar, non-sticky, on the warm ground. */
.mstrip {
  display: block;
  background: var(--surface-warm);
  border-block-end: 1px solid var(--divider);
}
.mstrip-in {
  display: flex;
  align-items: center;
  gap: var(--site-s2);
  flex-wrap: nowrap;
  padding-block: var(--site-s2);
  font: 400 var(--site-micro) / 1.3 var(--font-latin);
  color: var(--text-secondary);
}
html[lang='fa'] .mstrip-in { font-family: var(--font-persian); }
.mstrip-in .dt { padding-inline-start: var(--site-s2); }

/* ---------- Row 1 (board .hdr-r1) -------------------------------- */
.hdr-r1 { display: none; }
.hdr-r1-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--site-s5);
  padding-block: var(--site-s4);
}

.hsearch {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--site-s2);
  border: 1px solid var(--border-interactive);
  border-radius: var(--site-r-md);
  padding-inline: 12px;
  block-size: 42px;
  background: var(--surface-canvas);
  min-inline-size: 0;
}
.hsearch .ph {
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 var(--site-meta) / 1.2 var(--font-latin);
  color: var(--text-muted);
}
html[lang='fa'] .hsearch .ph { font-family: var(--font-persian); }
/* v0.38.0: the header search is a live input. It keeps the placeholder look:
   no own border / background, the frame is .hsearch; focus ring on the frame. */
.hsearch-in {
  flex: 1 1 auto;
  inline-size: 100%;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  padding: 0;
  outline: none;
}
.hsearch-in::placeholder { color: var(--text-muted); opacity: 1; }
.hsearch:focus-within { outline: 2px solid var(--brand-core); outline-offset: 2px; }
a.searchtrig { color: inherit; }
/* v0.46.0 (§8): real magnifying-glass glyph (UiIcons 'search') replaces the
   dashed .islot placeholders in every public search control. */
.search-ic { flex: 0 0 auto; color: var(--text-secondary); }
.searchtrig .search-ic { color: var(--text-primary); }
.hsearch:focus-within .search-ic, .hp-ctl:focus-within .search-ic { color: var(--brand-core); }

.hutils {
  display: flex;
  align-items: center;
  gap: var(--site-s4);
  flex: 0 1 auto;
  min-inline-size: 0;
  /* MVP-018 (018-WP1, PR-10): Header-utility links are Menu Manager items.
     Too many (or very long) links wrap inside the cluster instead of pushing
     the language switcher off-screen. At the approved one link (About)
     nothing changes. */
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: var(--site-s2);
}
.hutils .txtlink {
  font: 500 var(--site-meta) / 1.2 var(--font-latin);
  color: var(--text-strong);
  text-decoration: none;
  white-space: nowrap;
  border-block-end: 2px solid transparent;
  padding-block-end: 2px;
}
html[lang='fa'] .hutils .txtlink { font-family: var(--font-persian); }
.hutils .txtlink.is-current {
  border-block-end-color: var(--brand-core);
  color: var(--text-primary);
  font-weight: 600;
}
/* Account: ICON-ONLY link to /admin (Owner request, 29 Sep 2026). The
   glyph is the UiIcons 'user' outline at 20px with the family's constant
   1.5px stroke; the 36px box is the hit target (shorter than the 42px
   search field, so Row 1 does not grow). Hover and focus reuse the site's
   existing control treatments (--fill-hover; 2px brand-core ring). */
.acct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  inline-size: 36px;
  block-size: 36px;
  border-radius: var(--site-r-md);
  color: var(--text-strong);
  text-decoration: none;
  --ui-ic-stroke: 1.5px;
}
.acct:hover { background: var(--fill-hover); color: var(--text-primary); }
.acct:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }

.lang {
  border: 1px solid var(--border-interactive);
  border-radius: var(--site-r-md);
  padding: 6px 10px;
  font: 600 var(--site-micro) / 1.2 var(--font-latin);
  color: var(--text-strong);
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
html[lang='fa'] .lang { letter-spacing: 0; }
.lang[lang='fa'] { font-family: var(--font-persian); letter-spacing: 0; font-size: 14px; }
.lang:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }

/* ---------- Row 2 (board .hdr-r2) -------------------------------- */
.hdr-r2 {
  display: none;
  border-block-start: 1px solid var(--divider);
}
.hdr-r2-in {
  display: flex;
  align-items: center;
  gap: var(--site-s5);
}
/* MVP-018 (PR-10): when the navigation list wraps, keep the Utility Strip on
   the FIRST navigation line instead of centring it between lines. On one
   line this is geometrically identical to centring (45.6 px item, 15.6 px
   strip → 15 px offset). */
.hdr-r2-in:has(.gnav) { align-items: flex-start; }
.hdr-r2-in:has(.gnav) > .ustrip { margin-block-start: 15px; }
.gnav {
  display: flex;
  gap: var(--site-s5);
  flex: 1 1 auto;
  min-inline-size: 0;
  /* MVP-018 (018-WP1, PR-10): the Menu Manager may hold more items than one
     line fits. The LIST wraps onto a further line; a label never wraps
     (D-71) and nothing scrolls horizontally. At the approved six items this
     changes nothing. */
  flex-wrap: wrap;
  row-gap: 0;
}
.gnav-item {
  display: block;
  padding-block: 14px;
  font: 500 var(--site-meta) / 1.2 var(--font-latin);
  color: var(--text-strong);
  text-decoration: none;
  white-space: nowrap; /* D-71: labels are never shortened or wrapped */
  border-block-end: 2px solid transparent;
}
html[lang='fa'] .gnav-item { font-family: var(--font-persian); }
.gnav-item.is-current {
  border-block-end-color: var(--brand-core);
  color: var(--text-primary);
  font-weight: 600;
}
.gnav-item.is-frozen { color: var(--text-muted); }

/* ---------- Utility Information Strip (board .ustrip) ------------ */
.ustrip {
  display: flex;
  align-items: center;
  gap: var(--site-s4);
  flex: 0 0 auto;
  font: 400 var(--site-micro) / 1.3 var(--font-latin);
  color: var(--text-secondary);
}
html[lang='fa'] .ustrip { font-family: var(--font-persian); }
.fxi {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.fxl { color: var(--text-muted); }
/* D-57/D-72: FX values and the DD/MM/YYYY date are Latin in both locales,
   so the value slot keeps the Latin face and tabular figures whatever the
   page language. No value is rendered at this Build. */
.fxv {
  font-weight: 600;
  color: var(--text-strong);
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
}
.fxu { color: var(--text-muted); }
.dt {
  color: var(--text-secondary);
  padding-inline-start: var(--site-s4);
  border-inline-start: 1px solid var(--divider);
}

/* ================================================== GLOBAL FOOTER */
.ftr {
  background: var(--surface-warm);
  border-block-start: 1px solid var(--border-container);
  padding-block: var(--site-s7) var(--site-s5);
}
.fgridw {
  display: grid;
  gap: var(--site-s5);
  grid-template-columns: 1fr;
}
.fbrand {
  display: flex;
  flex-direction: column;
  gap: var(--site-s4);
  align-items: start;
}
.fbrand p {
  margin: 0;
  font: 400 var(--site-small) / var(--site-small-lh) var(--font-latin);
  color: var(--text-secondary);
  max-inline-size: 38ch;
}
html[lang='fa'] .fbrand p { font-family: var(--font-persian); }

.fsocial { inline-size: 100%; }
.soclabel {
  margin: 0 0 var(--site-s2);
  font: 500 var(--site-micro) / var(--site-micro-lh) var(--font-latin);
  color: var(--text-muted);
}
html[lang='fa'] .soclabel { font-family: var(--font-persian); }
.socials {
  display: flex;
  gap: var(--site-s2);
  flex-wrap: wrap;
}
/* The approved labelled-slot treatment: a dashed slot carrying the
   platform's two-letter code. No platform artwork is drawn (SS10.4). */
.soc {
  inline-size: 36px;
  block-size: 36px;
  border: 1px dashed var(--border-interactive);
  border-radius: var(--site-r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 11px/1 var(--font-latin);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.fcol { display: none; }
.fcol h4 {
  margin: 0 0 var(--site-s4);
  font: 600 var(--site-micro) / 1 var(--font-latin);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}
html[lang='fa'] .fcol h4 {
  font-family: var(--font-persian);
  letter-spacing: 0;
  text-transform: none;
}
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin-block-end: 10px; }
.fcol a,
.fcol .is-frozen {
  font: 400 var(--site-meta) / var(--site-meta-lh) var(--font-latin);
  color: var(--text-strong);
}
html[lang='fa'] .fcol a,
html[lang='fa'] .fcol .is-frozen { font-family: var(--font-persian); }
.fcol .is-frozen { color: var(--text-muted); }

/* Tablet + Mobile: one shared disclosure model, in normal document flow.
   No overlay, no modal, no internal scrolling. */
.facc-list { display: block; margin-block-start: var(--site-s5); }
.facc {
  border-block-end: 1px solid var(--border-container);
}
.facc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--site-s3);
  min-block-size: 48px;
  font: 600 var(--site-meta) / 1.2 var(--font-latin);
  color: var(--text-strong);
}
html[lang='fa'] .facc > summary { font-family: var(--font-persian); }
.facc > summary::-webkit-details-marker { display: none; }
.facc > summary::marker { content: ""; }
.facc ul {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--site-s3);
}
.facc li { margin-block-end: 10px; }
.facc a,
.facc .is-frozen {
  font: 400 var(--site-meta) / var(--site-meta-lh) var(--font-latin);
  color: var(--text-strong);
}
html[lang='fa'] .facc a,
html[lang='fa'] .facc .is-frozen { font-family: var(--font-persian); }
.facc .is-frozen { color: var(--text-muted); }

.legalbar {
  margin-block-start: var(--site-s7);
  padding-block-start: var(--site-s4);
  border-block-start: 1px solid var(--border-container);
  display: flex;
  flex-wrap: wrap;
  gap: var(--site-s2) var(--site-s4);
  align-items: center;
  font: 400 var(--site-micro) / var(--site-micro-lh) var(--font-latin);
  color: var(--text-muted);
}
html[lang='fa'] .legalbar { font-family: var(--font-persian); }
.legalbar p { margin: 0; }
.legalbar .legal-links {
  display: flex;
  align-items: center;
  gap: var(--site-s2);
}
.legalbar .sep { color: var(--text-muted); }

/* ---------- responsive cut points -------------------------------- */
@media (min-width: 700px) {
  .hdr-mob { display: none; }
  .mstrip { display: none; }
  .hdr-r1 { display: block; }
  .hdr-r2 { display: block; }
}

/* D-71 Tablet compaction, transcribed from the approved board's own rule.
   The board's comment records what it was measured to fix: "Tablet Row 2
   must fit on one line. Spacing only: navigation labels, the two-row
   architecture and Desktop are all untouched. Measured overflow before
   this rule: EN 53px, FA 10px." */
@media (min-width: 700px) and (max-width: 1099px) {
  .hdr-r1-in { gap: var(--site-s4); }
  .hutils { gap: var(--site-s3); }
  .hsearch { inline-size: 190px; }
  .gnav { gap: 14px; }
  .hdr-r2-in { gap: var(--site-s4); }
  .ustrip { gap: 10px; }
  .ustrip .dt { padding-inline-start: 10px; }
}

@media (min-width: 1100px) {
  .hsearch { inline-size: 340px; }

  .fgridw {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--site-s7);
  }
  .fcol { display: block; }
  .facc-list { display: none; }
}

/* ================================================ CATEGORY PAGE
   Build: MVP-008 (WBS Task 34)

   REFERENCE-DRIVEN, NOT INTERPRETIVE — the same discipline this
   file's header records for the Header and Footer. Every metric
   below is transcribed from the OWNER-APPROVED DESIGN-A.4 Category
   page board (resaneh-category-final.html) and checked against the
   confirmed frames cat-final-f1…f6 and cat-final-states-en/-fa.
   The ruling is docs/DESIGN_SYSTEM.md §11 (CAT-1 … CAT-16).

   Board variable  ->  production token, identical value:
     board --canvas   -> --surface-canvas
     board --subtle   -> --surface-subtle
     board --divider  -> --divider
     board --bcont    -> --border-container
     board --bint     -> --border-interactive
     board --muted    -> --text-muted
     board --sec      -> --text-secondary
     board --pri      -> --text-primary
     board .h1        -> --type-h1-size/lh        (33/1.20, 33/1.45)
     board .h3        -> --type-h3-size/lh        (21/1.35, 22/1.60)
     board .ident__d  -> --type-dir-body-size/lh  (16/1.60, 17/1.75)
     board .ident__n  -> --type-metadata-size/lh  (13/1.45, 14/1.70)
     board .rel__i    -> --type-chip-size/lh      (12/1.35, 13/1.60)
   Those tiers are the APPROVED bilingual scale (DESIGN_SYSTEM
   §3.3/§3.5) and match the board value for value, so the board's
   typography is reproduced from approved tokens rather than
   re-declared here.

   TWO DELIBERATE DEPARTURES FROM THE BOARD, BOTH RECORDED IN
   docs/tasks/TASK-MVP-008.md §10:

   1. CONTENT WIDTH IS --site-maxw (1200px), not the board's 1280px.
      The category board draws its own Global Header full-bleed,
      so 1280px aligned with nothing; production's Owner-verified
      header and footer are centred at 1200px (MVP-007). Matching
      the confirmed production chrome is what "reference-faithful"
      means here — a 1280px content column inside a 1200px header
      would misalign every section edge against the masthead above
      it. Both numbers are [D] unfrozen (§11.9), so neither is a
      token and adopting one is not freezing it.

   2. THE PAGE'S INLINE PADDING IS --site-pad (16px) AT EVERY WIDTH,
      not the board's 16 / 24 / 32px ladder. The board's own header used
      the SAME ladder, so its content column and its masthead moved
      together; production's header and footer are fixed at --site-pad
      inside .cont. Reproducing the board's ladder here put the
      breadcrumb 16px inside the brand lockup above it at Desktop —
      MEASURED at 152px against the masthead's 136px in a 1440px render
      before this rule was changed. Alignment with the confirmed
      production chrome is the reference-faithful outcome; the ladder is
      a [D] unfrozen value and was not one.

   3. THE ICON SLOT IS DASHED, reusing this file's existing .islot
      primitive rather than the category board's solid 1px box. The
      Header/Footer half of this stylesheet already ships .islot as
      THE unselected-icon treatment (§10.4), and two different
      empty-slot treatments on one page would read as two different
      components. Only a size modifier is added.

   The board's spacing and radius values are [D] UNFROZEN per §10.4
   and §11.9. Where this file already carries an identical
   locally-scoped --site-* value it is reused; the three the board
   uses and --site-* does not carry are declared below as --cat-*,
   equally locally scoped, so nothing here can be mistaken for a
   promoted Design System token. Adopting a value to match the
   confirmed reference is not the same as freezing it.

   BREAKPOINTS are this file's own 700px and 1100px, which are the
   board's own container-query thresholds expressed as the media
   queries production uses everywhere else.

   NOT STYLED HERE, because NOT RENDERED: the COMMERCIAL Category
   Hero of §11.1 inventory item 4 (WBS Tasks 73-75), which remains
   DEFERRED and COLLAPSED under CAT-11 because nothing eligible
   exists. No rule below reserves space, height or a placeholder for
   it. (The BASIC Category Hero added by the Owner correction of
   23 September 2026 is a different surface and IS styled here — see
   its own banner further down; it is not item 4 and does not
   discharge it.)

   STYLED HERE SINCE MVP-013, which this banner predates: the Filters
   and Sort bar, the Ranked Business Heatmap and the conditional
   Offers in this Category.
   ============================================================ */

:root {
  /* board --s5, --s10 and --r — [D] unfrozen, adopted to match the
     confirmed reference; --site-* carries no equivalent value. */
  --cat-s5: 20px;
  --cat-s10: 40px;
  --cat-r: 8px;
}

/* ============================================================
   CATEGORY RAIL — the SHARED behaviour primitive
   MVP-013 FINAL OWNER CORRECTION, 23 September 2026
   ============================================================

   ONE MECHANISM, TWO SURFACES, TWO VISUAL TREATMENTS. The Homepage
   Directory category row and the Category page's `Other categories`
   row are now the same interaction — one horizontal row that scrolls
   natively and gains previous / next controls only when it actually
   overflows. The Owner instruction is explicit that they must NOT be
   forced to look alike, so everything below is layout and scrolling
   only: the Homepage keeps its stacked icon-over-label card
   (`.hp-cat`) and the Category page keeps its inline chip
   (`.cat-rel-i`), each defined in its own section further down and
   each unchanged in appearance.

   OVERFLOW IS CONTAINED TO THE TRACK. `.rail-t` is the only element
   that scrolls horizontally; `overscroll-behavior-inline: contain`
   stops a swipe that reaches the end from chaining to the document.
   Every ancestor on both surfaces is min-inline-size: 0 or a
   minmax(0, 1fr) grid track, so the row can never widen the page —
   the 0px page-overflow requirement is a property of the box model
   here, not of a measured width.

   THE CONTROLS ARE SERVER-RENDERED `hidden` and are un-hidden by
   `rail.js` only after a real overflow is measured. So without
   JavaScript there are no controls at all and the row still scrolls
   by wheel, trackpad, swipe and keyboard — never a control that
   changes nothing, which is the rule MVP-008 set for the Filters bar
   and MVP-013 kept for the Offers row.

   THE GLYPH IS `.hp-chev`, this stylesheet's EXISTING directional
   chevron, reused rather than redrawn. It is built from PHYSICAL
   borders and mirrored explicitly under html[dir='rtl'] because
   logical borders inside a rotated box resolve unpredictably in RTL
   — a measured defect already recorded against the Category board.
   Its `hp-` prefix is historical; it is a shared primitive, and a
   second chevron implementation would be a second thing to get wrong
   in RTL. */
.rail { display: grid; gap: var(--site-s3); }

/* Heading beside controls. The controls sit in the heading row, not
   floating over the track, so they never cover a category label and
   never move as the reader scrolls. */
.rail-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--site-s3);
  min-inline-size: 0;
}
.rail-t {
  display: flex;
  gap: var(--site-s2);
  margin: 0;
  /* NO inline-start padding: rail.js takes item 0's content-axis
     origin as 0, and scroll-padding-inline-start: 0 keeps
     scrollIntoView({inline:'start'}) landing on that same origin. */
  padding: 0 0 var(--site-s2);
  list-style: none;
  min-inline-size: 0;
  overflow-x: auto;
  scroll-snap-type: inline proximity;
  scroll-padding-inline-start: 0;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.rail-t::-webkit-scrollbar { display: none; }
/* flex: 0 0 auto — items keep their own intrinsic width and NEVER
   shrink to fit, which is what makes this a rail rather than a
   squeezed row. */
.rail-t > * { flex: 0 0 auto; scroll-snap-align: start; }
/* EQUAL HEIGHTS, MEASURED FIX. The <li> stretches to the row height
   by default, but its chip child did not, so a two-line English
   label ("Financial Services", "Home Services") produced a 90px card
   beside 74px neighbours and a ragged bottom edge — MEASURED at
   390px before this rule existed. The superseded grid got equal
   heights free from `stretch`; a flex row has to say so. Making the
   <li> a flex container passes that stretch down to the chip.
   NOTE the rule that is deliberately NOT here: `inline-size: 100%`
   on the chip. It looks like the matching half of this fix and is
   not — it beats .hp-cat's own fixed width on specificity, which
   collapses every card to its label and gives seventeen different
   card widths. Measured, and rejected. */
.rail-t > li { display: flex; }

.rail-nav { display: flex; gap: var(--site-s2); flex: 0 0 auto; }
/* Required: the flex above would otherwise defeat the attribute. */
.rail-nav[hidden] { display: none; }
.rail-b {
  inline-size: 44px;   /* SC 2.5.8, and the same size as .hp-arrow */
  block-size: 44px;
  border: 1px solid var(--border-interactive);
  border-radius: var(--site-r-md);
  background: var(--surface-canvas);
  color: var(--text-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.rail-b:hover:not(:disabled) { background: var(--fill-hover); }
/* An end state DISABLES rather than hides, so the control row keeps
   its width and nothing reflows under the reader's cursor. */
.rail-b:disabled { opacity: 0.4; cursor: default; }
.rail-b:focus-visible {
  outline: 2px solid var(--brand-core);
  outline-offset: 2px;
}

/* ---------- page container (board .main) -------------------------
   minmax(0, 1fr) is the board's own measured fix, kept: without it a
   future flex track inside any section forces the whole column to
   max-content and every sibling section stretches with it. */
.catwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--site-s6);
  max-inline-size: var(--site-maxw);
  margin-inline: auto;
  padding: var(--cat-s5) var(--site-pad) var(--cat-s10);
}

/* ---------- shared type (board .h1 / .h3) ------------------------ */
.cat-h1 {
  margin: 0 0 var(--site-s2);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--type-h1-size-en);
  line-height: var(--type-h1-lh-en);
  color: var(--text-primary);
}
html[lang='fa'] .cat-h1 {
  font-family: var(--font-persian);
  font-size: var(--type-h1-size-fa);
  line-height: var(--type-h1-lh-fa);
}
.cat-h3 {
  margin: 0 0 var(--site-s3);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--type-h3-size-en);
  line-height: var(--type-h3-lh-en);
  color: var(--text-primary);
}
html[lang='fa'] .cat-h3 {
  font-family: var(--font-persian);
  font-size: var(--type-h3-size-fa);
  line-height: var(--type-h3-lh-fa);
}

/* D-49: only Display / H1 / H2 take fluid treatment, so H3 is not
   reduced below 700px. The board reduces H1 to 26px in BOTH scripts. */
@media (max-width: 699px) {
  .cat-h1,
  html[lang='fa'] .cat-h1 { font-size: 26px; }
}

/* ---------- breadcrumb (board .bc) — flat, one level (§11.1) ----- */
.cat-bc { margin: 0; }
.cat-bc ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--site-s2);
  margin: 0;
  padding: 0;
}
.cat-bc li {
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: var(--site-meta);
  line-height: var(--site-meta-lh);
  color: var(--text-muted);
}
html[lang='fa'] .cat-bc li { font-family: var(--font-persian); }
.cat-bc a {
  color: var(--text-secondary);
  display: inline-block;
  min-block-size: 24px;
  min-inline-size: 24px;
}
/* The separator is drawn with PHYSICAL borders and mirrored
   explicitly, exactly as the board does it: logical borders inside a
   rotated box resolve unpredictably in RTL, which the board records
   as a measured defect. */
.cat-bc li + li::before {
  content: "";
  display: inline-block;
  inline-size: 6px;
  block-size: 6px;
  margin-inline-end: var(--site-s2);
  border-top: 1px solid var(--border-container);
  border-right: 1px solid var(--border-container);
  transform: rotate(45deg);
}
[dir='rtl'] .cat-bc li + li::before { transform: scaleX(-1) rotate(45deg); } /* v0.38.1: was rotate·scale = an upward caret */

/* ---------- BASIC CATEGORY HERO -----------------------------------
   MVP-013 FINAL OWNER CORRECTION, 23 September 2026.

   WHAT THIS IS: a header band that RECOMPOSES the page's existing
   breadcrumb and Category Identity into one deliberate Category
   header. It introduces NO new data, NO new field, NO media slot and
   NO second heading — the breadcrumb, the H1, the description and
   the result count are the same elements the page already rendered,
   moved inside one container. Nothing is duplicated, and the page
   still carries exactly one <h1>.

   WHAT THIS IS NOT: the Commercial Category Hero of §11.1 inventory
   item 4 (WBS Tasks 73-75). That surface — sponsored placement,
   package influence, campaign scheduling, its own CMS and its own
   creative — REMAINS DEFERRED and is not begun here. Nothing in this
   rule set is commercial, ranked, scheduled or sold, and inventory
   item 4 stays empty and collapsed under CAT-11.

   SURFACE. --surface-warm is this project's established header-band
   fill (§11.4 records "the Hero's surface-warm and canvas") against
   the --surface-canvas page. NOTE FOR THE RECORD: #F8F6F3 is also
   --surface-heat-low. That is a coincidence of one shared brand
   tone, not a rank signal — the band carries no rank, sits above the
   sort control and is separated from the heatmap by two sections.
   If the Owner prefers them visually distinct, --surface-subtle is a
   one-token change here and affects nothing else.

   PROPORTION. The heatmap remains the page's principal content, so
   this is a contained bordered band at the page's own --cat-r
   radius, not a full-bleed marketing banner and not a media frame.
   It grows only by its padding between breakpoints. */
.cat-hero {
  display: grid;
  gap: var(--site-s4);
  padding: var(--cat-s5);
  border: 1px solid var(--border-container);
  border-radius: var(--cat-r);
  background: var(--surface-warm);
  min-inline-size: 0;
}
@media (min-width: 700px) {
  .cat-hero { gap: var(--site-s5); padding: var(--site-s6) var(--cat-s10); }
}
/* 320px: the band keeps a visible edge but gives the content back its
   horizontal room. */
@media (max-width: 359px) {
  .cat-hero { padding: var(--site-s4); }
}

/* ---------- v0.38.1 / v0.38.2 CATEGORY HEADER ART ------------------
   The header's background is the Category SPONSORED CREATIVE when an
   eligible campaign exists (v0.38.2, Owner 24 Oct 2026 23:03 — the
   separate banner below the header was removed), otherwise the Category
   Cover (v0.38.1), otherwise the cream header (unchanged; .cat-panel is
   display: contents there). The whole image is shown (contain) at the TOP;
   the rest is a blurred, enlarged copy of the same file (one download; a
   GIF keeps playing in both layers). Breadcrumb, icon, name and count sit
   together on ONE static frosted panel at the bottom-start, so the
   creative stays visible above it and its link stays clickable around it.
   A "Sponsored" label marks the advertisement (UK ad-identification). */
.cat-panel { display: contents; }
.cat-hero--cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-block-size: 230px;
  align-content: end;
  justify-items: start;
  border-color: transparent;
  background: #241f22;
}
@media (min-width: 700px) { .cat-hero--cover { min-block-size: 270px; } }
@media (min-width: 1100px) { .cat-hero--cover { min-block-size: 310px; } }
.cat-cover { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
a.cat-cover { pointer-events: auto; display: block; cursor: pointer; }
a.cat-cover:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.cat-cover img { max-inline-size: none; }
.cat-cover-bgw { position: absolute; inset: 0; }
.cat-cover-bg {
  position: absolute;
  inset: -32px;
  inline-size: calc(100% + 64px);
  block-size: calc(100% + 64px);
  object-fit: cover;
  filter: blur(24px) saturate(1.05) brightness(.78);
  transform: translateZ(0); /* its own layer: the blur is not re-laid-out */
}
.cat-cover-fg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: contain; object-position: center top; }
.cat-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 23, 26, .55) 0%, rgba(28, 23, 26, .12) 40%, rgba(28, 23, 26, 0) 65%);
  pointer-events: none;
}
.cat-hero--cover .cat-panel {
  display: grid;
  gap: var(--site-s2);
  max-inline-size: 100%;
  padding: var(--site-s3) var(--site-s4);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--cat-r);
  background: rgba(24, 19, 22, .82); /* no backdrop-filter support: near-opaque */
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .cat-hero--cover .cat-panel {
    background: rgba(24, 19, 22, .62);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    backdrop-filter: blur(16px) saturate(1.15);
  }
}
.cat-hero--cover .cat-ident { align-items: center; }
.cat-hero--cover .cat-bc li,
.cat-hero--cover .cat-bc a { color: #fff; }
.cat-hero--cover .cat-bc li[aria-current] { color: rgba(255, 255, 255, .86); }
.cat-hero--cover .cat-bc a { text-decoration-color: rgba(255, 255, 255, .6); }
.cat-hero--cover .cat-bc li + li::before { border-color: rgba(255, 255, 255, .75); }
.cat-hero--cover .cat-bc a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cat-hero--cover .cat-h1 { color: #fff; margin-block-end: 2px; }
.cat-hero--cover .cat-ident-n { color: rgba(255, 255, 255, .88); }
.cat-hero--cover .cat-ic { background: var(--surface-warm); color: var(--brand-core); border-color: transparent; }
/* v0.38.2 FINAL — CATEGORY SPONSORED HEADER (Owner reference, 26 Oct 2026).
   ONE banner container = the creative itself. The container takes the
   creative's own ratio (--ar; the mobile file's --ar-m below 700 px),
   height-capped per breakpoint: the creative fills it exactly when it fits
   and is otherwise shown whole (contain) over a blurred copy of itself.
   Two compact dark glass labels sit ON the creative at the top corners:
   breadcrumb "Home > Food -- N businesses" at the inline start (left in
   English, right in Persian; "-- N" only on phones) and the disclosure
   label at the inline end. The breadcrumb text is one step larger than the
   label. No title, no icon, no panel, no banner below; the H1 is visually
   hidden. With no campaign, Resaneh's own house promotion fills the same
   container on ivory. */
.cat-hero--banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  padding: 0;
  gap: 0;
  inline-size: 100%;
  min-inline-size: 0;
  border-radius: 12px;
}
.cat-hero--ad {
  aspect-ratio: var(--ar, 3.2);
  min-block-size: 200px;
  max-block-size: 380px;
  border-color: transparent;
  background: #2a2326;
}
@media (max-width: 1099.98px) { .cat-hero--ad { min-block-size: 170px; max-block-size: 320px; } }
@media (max-width: 699.98px) { .cat-hero--ad { aspect-ratio: var(--ar-m, var(--ar, 2)); min-block-size: 150px; max-block-size: 300px; border-radius: 10px; } }
.cat-hero--ad .cat-cover::after { background: rgba(28, 23, 26, .2); }
.cat-ad-art { position: absolute; inset: 0; display: block; z-index: 0; }
.cat-ad-art picture { display: block; inline-size: 100%; block-size: 100%; }
.cat-ad-art img { display: block; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: contain; object-position: center; }
.cat-ad-art:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
/* The labels row: above the creative, but only the labels take clicks —
   the space between them still belongs to the creative's link. */
.cat-top {
  position: absolute;
  inset-block-start: 16px;
  inset-inline: 16px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.cat-top > * { pointer-events: auto; }
/* v0.40.0 (Owner, 26 Oct 2026): the labels read as ordinary small site
   navigation on a light smoky-grey frosted glass, never a solid dark block.
   Contrast comes from the backdrop being DIMMED (brightness .72) under a
   30-45 % grey tint plus a soft text shadow: white text stays readable over
   white artwork (~4:1) while the creative remains visible through it. */
.cat-glass {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  background: rgba(45, 48, 52, .62); /* no backdrop-filter support */
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .cat-glass {
    background: rgba(45, 48, 52, .38);
    -webkit-backdrop-filter: blur(8px) brightness(.72);
    backdrop-filter: blur(8px) brightness(.72);
  }
}
.cat-hero--banner .cat-bc { min-inline-size: 0; overflow: hidden; padding: 3px 10px; }
.cat-hero--banner .cat-bc ol { column-gap: 6px; row-gap: 0; flex-wrap: nowrap; white-space: nowrap; }
.cat-hero--banner .cat-bc li { color: #fff; font-size: 14px; line-height: 20px; font-weight: 400; min-inline-size: 0; }
.cat-hero--banner .cat-bc li[aria-current] { overflow: hidden; text-overflow: ellipsis; }
.cat-hero--banner .cat-bc li:not([aria-current]) { flex: none; } /* only the current name shortens on narrow screens */
.cat-hero--banner .cat-bc a { color: #fff; min-block-size: 20px; min-inline-size: 0; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .7); text-underline-offset: 2px; }
.cat-hero--banner .cat-bc a:hover { text-decoration-color: #fff; }
.cat-hero--banner .cat-bc a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cat-hero--banner .cat-bc li + li::before { inline-size: 5px; block-size: 5px; margin-inline-end: 6px; border-color: rgba(255, 255, 255, .85); vertical-align: 2px; }
.cat-hero--banner .cat-bc li.cat-bc-n::before { display: none; }
.cat-hero--banner .cat-bc li.cat-bc-n { margin-inline-start: -1px; color: rgba(255, 255, 255, .92); }
.cat-bc-ns { display: none; }
.cat-spons {
  flex: none;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: .02em;
}
html[lang='fa'] .cat-spons { letter-spacing: 0; font-family: var(--font-persian); }
@media (max-width: 1099.98px) {
  .cat-top { inset-block-start: 12px; inset-inline: 12px; }
  .cat-hero--banner .cat-bc { padding: 2px 9px; }
  .cat-hero--banner .cat-bc li { font-size: 13px; line-height: 20px; }
  .cat-spons { padding: 2px 8px; font-size: 12px; line-height: 20px; }
}
@media (max-width: 699.98px) {
  .cat-top { inset-block-start: 8px; inset-inline: 8px; gap: 6px; }
  .cat-glass { border-radius: 5px; }
  .cat-hero--banner .cat-bc { padding: 2px 7px; }
  .cat-hero--banner .cat-bc li { font-size: 12px; line-height: 18px; }
  .cat-hero--banner .cat-bc a { min-block-size: 18px; }
  .cat-hero--banner .cat-bc li + li::before { inline-size: 4px; block-size: 4px; margin-inline-end: 5px; vertical-align: 1px; }
  .cat-hero--banner .cat-bc ol { column-gap: 5px; }
  .cat-spons { padding: 1px 6px; font-size: 11px; line-height: 18px; }
  /* Phones: "-- 71" — the full count stays for assistive technology. */
  .cat-bc-nl { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .cat-bc-ns { display: inline; }
}
html[lang='fa'] .cat-hero--banner .cat-bc li { font-family: var(--font-persian); }
/* Reference: the sub-category chips sit just under the banner (16 px), not
   a full section gap away. */
.catwrap > .cat-hero--banner + .cat-sub { margin-block-start: calc(var(--site-s4) - var(--site-s6)); }
/* House promotion: Resaneh's own, minimal, ivory with a burgundy accent,
   in the same container. Labelled "Sponsored" like any advert (Owner,
   26 Oct 2026); the copy names Resaneh as the advertiser; never counted. */
.cat-hero--house {
  aspect-ratio: 5;
  min-block-size: 200px;
  max-block-size: 260px;
  background: var(--surface-warm);
  border: 1px solid var(--border-container);
}
@media (max-width: 1099.98px) { .cat-hero--house { aspect-ratio: 3.4; min-block-size: 180px; } }
@media (max-width: 699.98px) { .cat-hero--house { aspect-ratio: 2.1; min-block-size: 160px; border-radius: 10px; } }
.cat-house {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 48px 16px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
}
.cat-house::before { content: ""; inline-size: 32px; block-size: 2px; margin-block-end: 8px; border-radius: 1px; background: var(--brand-core); }
.cat-house-t { font-family: var(--font-latin); font-weight: 600; font-size: 24px; line-height: 32px; color: var(--text-primary); }
.cat-house-s { font-family: var(--font-latin); font-size: 15px; line-height: 22px; color: var(--brand-core); text-decoration: underline; text-decoration-color: rgba(150, 5, 70, .35); text-underline-offset: 3px; }
html[lang='fa'] .cat-house-t,
html[lang='fa'] .cat-house-s { font-family: var(--font-persian); }
.cat-house:hover .cat-house-s { text-decoration-color: currentColor; }
.cat-house:focus-visible { outline: 2px solid var(--brand-core); outline-offset: -4px; }
@media (max-width: 699.98px) {
  .cat-house { padding: 36px 12px 12px; }
  .cat-house-t { font-size: 19px; line-height: 26px; }
  .cat-house-s { font-size: 13px; line-height: 20px; }
}

/* ---------- category identity (board .ident) — CAT-2 ------------- */
.cat-ident {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--site-s4);
  align-items: start;
}
/* The 48px identity slot the approved frames show. .islot itself is
   defined once, above, in the shared primitives. */
.islot.xl {
  inline-size: 48px;
  block-size: 48px;
  border-radius: var(--cat-r);
}
.cat-ident-b { min-inline-size: 0; }
.cat-ident-d {
  margin: 0 0 var(--site-s2);
  max-inline-size: var(--measure-en); /* D-47 editorial measure, per script */
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: var(--type-dir-body-size-en);
  line-height: var(--type-dir-body-lh-en);
  color: var(--text-secondary);
}
html[lang='fa'] .cat-ident-d {
  max-inline-size: var(--measure-fa);
  font-family: var(--font-persian);
  font-size: var(--type-dir-body-size-fa);
  line-height: var(--type-dir-body-lh-fa);
}
.cat-ident-n {
  margin: 0;
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: var(--site-meta);
  line-height: var(--site-meta-lh);
  color: var(--text-muted);
}
html[lang='fa'] .cat-ident-n { font-family: var(--font-persian); }

/* ---------- OTHER categories (board .rel) — CAT-2 -----------------
   D-59's compact shortcut-card language. Not a hierarchy: the
   taxonomy is FLAT at Release 1 and no child navigation exists.

   HISTORY, KEPT SO THE CHANGE IS TRACEABLE. MVP-013 shipped this as
   "Related categories", rendered as an EXPANDED wrapped row. The
   Owner verification correction of 22 September 2026 fixed the word
   — nothing here computes relatedness — and collapsed it behind a
   native <details>/<summary> because fifteen chips took a large
   vertical band on every visit.

   FINAL OWNER CORRECTION, 23 September 2026. The disclosure is
   REMOVED. The section is now ALWAYS VISIBLE as a single-row rail:
   the chips are never hidden behind a click, the row never wraps into
   a wall, and the vertical cost is one row whatever the category
   count. The <details>/<summary>, the .cat-oth-s summary rules, the
   [open] rule and the .cat-rel-l wrapped-row container are all gone
   rather than left behind as dead implementation.

   THE CHIP ITSELF IS UNCHANGED, deliberately: same shortcut-card
   language, same destinations, same type tier, same target size. Only
   its container changed. The row mechanics live in .rail-t at the top
   of this section and are shared with the Homepage.

   NO RANK COLOUR HERE. --surface-heat-high / -mid / -low belong to
   the Business Heatmap and carry rank meaning; a category chip has no
   rank, so it keeps --surface-subtle. */
.cat-oth { margin: 0; }
.cat-oth-h {
  /* The page's own .cat-h3 tier, with its block margin removed because
     the rail header row owns the spacing here. */
  margin: 0;
  min-inline-size: 0;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--type-h3-size-en);
  line-height: var(--type-h3-lh-en);
  color: var(--text-primary);
}
html[lang='fa'] .cat-oth-h {
  font-family: var(--font-persian);
  font-size: var(--type-h3-size-fa);
  line-height: var(--type-h3-lh-fa);
}
.cat-rel-i {
  display: inline-flex;
  align-items: center;
  gap: var(--site-s2);
  min-block-size: 44px; /* SC 2.5.8 with room to spare */
  padding-inline: var(--site-s3);
  border: 1px solid var(--border-container);
  border-radius: var(--cat-r);
  background: var(--surface-subtle);
  color: var(--text-strong);
  text-decoration: none;
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: var(--site-micro);
  line-height: var(--site-micro-lh);
}
html[lang='fa'] .cat-rel-i { font-family: var(--font-persian); }
.cat-rel-i:hover { background: var(--fill-hover); }

/* ---------- zero-results state (board .nores) — CAT-11 -----------
   No Clear filters control: no filter exists to clear at this Build,
   and a control that changes nothing is not rendered. */
.cat-nores {
  border: 1px solid var(--border-container);
  border-radius: var(--cat-r);
  background: var(--surface-subtle);
  padding: var(--site-s5);
  display: grid;
  gap: var(--site-s3);
  justify-items: start;
}
.cat-nores .cat-h3 { margin: 0; }
.cat-nores-b {
  margin: 0;
  max-inline-size: 40rem;
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: var(--type-dir-body-size-en);
  line-height: var(--type-dir-body-lh-en);
  color: var(--text-secondary);
}
html[lang='fa'] .cat-nores-b {
  font-family: var(--font-persian);
  font-size: var(--type-dir-body-size-fa);
  line-height: var(--type-dir-body-lh-fa);
}

/* ================= Tablet — 700px, the board's own threshold =====
   Only the BLOCK rhythm changes across breakpoints. The inline padding
   stays --site-pad at every width — see the third recorded departure at
   the head of this section. */
@media (min-width: 700px) {
  .catwrap {
    padding-block: var(--site-s5) var(--cat-s10);
    gap: var(--cat-s10);
  }
  .catwrap > .cat-hero--banner + .cat-sub { margin-block-start: calc(var(--site-s4) - var(--cat-s10)); }
}

/* ============================================== HOMEPAGE
   Build: HOMEPAGE-SHELL-A (v0.8.1)

   REFERENCE-DRIVEN, NOT INTERPRETIVE — the same discipline
   this file's header records for the Header and Footer, and
   the Category page section above. Every metric below is
   transcribed from the OWNER-APPROVED DESIGN-A.4 boards
   archived in this repository at docs/design/A4-homepage/,
   resolved through docs/design/VISUAL_CONTRACT_INDEX.md:

     Editorial Hero     D-58, D-74
                        boards/resaneh-design-a4-hero-revision.html
                        boards/resaneh-design-a4-hero-geometry.html
     Directory Search   D-59, D-75, D-76B
                        boards/resaneh-design-a4-directory-search.html
                        boards/resaneh-design-a4-tablet-categories.html
     Education          D-64
                        boards/resaneh-design-a4-education.html
     Latest Articles    D-66 + Hero dedup amendment
                        frames/homepage-desktop-en-1440.png and siblings

   Board variable -> production token, identical value:
     --canvas  -> --surface-canvas    --warm     -> --surface-warm
     --subtle  -> --surface-subtle    --premium  -> --surface-premium
     --divider -> --divider           --border-c -> --border-container
     --border-i-> --border-interactive
     --t-muted -> --text-muted        --t-second -> --text-secondary
     --t-strong-> --text-strong       --t-primary-> --text-primary
     --brand   -> --brand-core
     .display  -> --type-display-*    .h1 -> --type-h1-*   .h2 -> --type-h2-*
     .h3       -> --type-h3-*         .lead -> --type-lead-*
     --dr-title-> --type-card-title-* --dr-body -> --type-dir-body-*
     --dr-meta -> --type-metadata-*   --dr-micro-> --type-chip-*
     --ed-small-> --type-small-*      --measure -> --measure-en/fa
   Those tiers are the APPROVED bilingual scale (DESIGN_SYSTEM
   sections 3.3/3.5) and match the board value for value, so the
   board's typography is reproduced from approved tokens rather
   than re-declared here.

   THE .sigrule DEFECT IS FIXED HERE, ONCE. The approved Today
   on Resaneh and Latest Offers gates both recorded that the
   shared sighead() component declares inline-size/block-size on
   an INLINE span, which an inline box ignores, so the brand mark
   never paints — "affects every approved DESIGN-A.4 board, not
   only this one" (VISUAL_CONTRACT_INDEX), fix allocated to Shell
   implementation. .hp-sigrule therefore declares display:block.
   The approved 24 x 2px and the brand colour are unchanged. This
   is a defect fix in a section component and is NOT licence to
   change the Header, the Footer or anything else released.

   FOUR DELIBERATE DEPARTURES, all recorded in
   docs/tasks/TASK-HOMEPAGE-SHELL-A.md section 10:

   1. CLASS PREFIX .hp-. The boards use short mockup names —
      .cat, .catwrap, .cats, .img, .h2. Two of those ALREADY
      EXIST in this stylesheet with different meanings: .catwrap
      is the MVP-008 Category PAGE container, and .cont is scoped
      to the Header and Footer. Reusing board names would have
      silently restyled a released page. Every Homepage class is
      therefore prefixed .hp-, and only genuinely shared
      primitives are reused unprefixed: .islot, .btn-primary,
      .chev-d and .vh.

   2. .hp-cont DUPLICATES the header/footer container VALUES but
      not its RULE. The released rule is scoped `.hdr .cont,
      .ftr .cont` and this Build may not edit the Header/Footer
      half of this file. Both use the same --site-maxw and
      --site-pad custom properties, so the two cannot drift: a
      change to either token moves both.

   3. THE BREAKPOINTS ARE MEDIA QUERIES, not the boards'
      container queries. The boards query a fixed-width demo
      frame; a real full-width page has no such ancestor. Same
      two thresholds, 700px and 1100px, same behaviour — this
      file's Header/Footer half already made exactly this
      substitution for the same reason.

   4. THE PEEK SLIDES ARE REAL. The board fakes the Hero's
      centred peek with two empty decorative placeholders because
      a static board has no scroll position. Production renders
      the actual neighbouring stories in one scroll-snap track,
      which is the same composition with a working mechanism
      behind it.

   The board's spacing and radius values are [D] UNFROZEN per
   section 10.4. Where this file already carries an identical
   --site-* value it is reused; the four the board uses and
   --site-* does not carry are declared below as --hp-*, equally
   locally scoped, so nothing here can be mistaken for a promoted
   Design System token. Adopting a value to match the confirmed
   reference is not freezing it.

   NOT STYLED HERE, because NOT RENDERED: Today on Resaneh,
   Resaneh Perks and Latest Offers (all HOMEPAGE-SHELL-B), and
   the RETIRED Featured Businesses and Essential Businesses. No
   rule below reserves space, height or a placeholder for any of
   them.
   ============================================================ */

:root {
  /* board --s5, --s7, --s8, --r-lg — [D] unfrozen, adopted to match
     the confirmed reference; --site-* carries no equivalent value. */
  --hp-s5: 20px;
  --hp-s7: 48px;
  --hp-s8: 64px;
  --hp-r-lg: 8px;
}

/* ---------- page container (board .cont) — see departure 2 ------- */
.hp-cont {
  max-inline-size: var(--site-maxw);
  margin-inline: auto;
  padding-inline: var(--site-pad);
}

/* ---------- section rhythm and grounds (board .sec, .g-*) -------- */
.hp-sec { padding-block: var(--hp-s7); }
.hp-g-canvas { background: var(--surface-canvas); }
.hp-g-warm { background: var(--surface-warm); }

/* ---------- type, from approved tokens --------------------------- */
.hp-display {
  margin: 0;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--type-display-size-en);
  line-height: var(--type-display-lh-en);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
html[lang='fa'] .hp-display {
  font-family: var(--font-persian);
  font-size: var(--type-display-size-fa);
  line-height: var(--type-display-lh-fa);
  letter-spacing: 0;
}
.hp-h1 {
  margin: 0;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--type-h1-size-en);
  line-height: var(--type-h1-lh-en);
  color: var(--text-primary);
  text-wrap: balance;
}
html[lang='fa'] .hp-h1 {
  font-family: var(--font-persian);
  font-size: var(--type-h1-size-fa);
  line-height: var(--type-h1-lh-fa);
  letter-spacing: 0;
}
.hp-h2 {
  margin: var(--site-s3) 0 0;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--type-h2-size-en);
  line-height: var(--type-h2-lh-en);
  color: var(--text-primary);
  text-wrap: balance;
}
html[lang='fa'] .hp-h2 {
  font-family: var(--font-persian);
  font-size: var(--type-h2-size-fa);
  line-height: var(--type-h2-lh-fa);
  letter-spacing: 0;
}

/* D-49: only Display / H1 / H2 take fluid treatment. The boards use
   clamp() against container units; the equivalent step-down at the
   Mobile threshold is used here, matching the board's own rendered
   values at 390px. */
@media (max-width: 699px) {
  .hp-display, html[lang='fa'] .hp-display { font-size: 31px; }
  .hp-h1, html[lang='fa'] .hp-h1 { font-size: 26px; }
  .hp-h2, html[lang='fa'] .hp-h2 { font-size: 22px; }
}

/* eyebrow: a 2px brand rule — brand as signature, not paint */
.hp-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--site-s2);
  margin: 0;
  font-family: var(--font-latin);
  font-size: var(--site-micro);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
html[lang='fa'] .hp-eyebrow {
  font-family: var(--font-persian);
  letter-spacing: 0;
  text-transform: none;
}
.hp-eyebrow::before {
  content: "";
  inline-size: 18px;
  block-size: 2px;
  background: var(--brand-core);
  flex: 0 0 auto;
}

/* ---------- section heading (board .sechead) --------------------- */
.hp-sechead {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--site-s3) var(--site-s5);
  margin-block-end: var(--site-s6);
}
.hp-sechead-t { flex: 1 1 320px; min-inline-size: 0; }
/* THE FIX: display:block. An inline span ignores inline-size and
   block-size, which is why this mark never painted on any board. */
.hp-sigrule {
  display: block;
  inline-size: 24px;
  block-size: 2px;
  background: var(--brand-core);
  border-radius: 1px;
}
.hp-deck {
  margin: var(--site-s2) 0 0;
  max-inline-size: 52ch;
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: var(--site-small);
  line-height: var(--site-small-lh);
  color: var(--text-secondary);
}
html[lang='fa'] .hp-deck { font-family: var(--font-persian); }
/* View all is FROZEN in this Build: a non-anchor span, not focusable. */
.hp-viewall {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--font-latin);
  font-size: var(--site-meta);
  line-height: 1.2;
  font-weight: 500;
  color: var(--text-muted);
  cursor: default;
}
html[lang='fa'] .hp-viewall { font-family: var(--font-persian); }

/* ---------- shared primitives ------------------------------------ */
/* image placeholder — image treatment is NOT approved (section 6), so
   the boards draw every photograph as a hatch and production does too */
.hp-img {
  display: block;
  position: relative;
  background: repeating-linear-gradient(135deg,
    var(--fill-hover) 0 9px, var(--divider) 9px 18px);
  overflow: hidden;
}
.hp-link {
  font-family: var(--font-latin);
  font-size: var(--site-meta);
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-muted);
  cursor: default;
}
html[lang='fa'] .hp-link { font-family: var(--font-persian); }
/* A frozen control is present, in position, and not interactive. */
.hp .is-frozen { cursor: default; text-decoration: none; }
/* OWNER CORRECTION, 18 September 2026 — VISUAL STATE AND FUNCTIONAL STATE
   ARE SEPARATE. `Add your business` and the Hero's primary CTA are both
   APPROVED as brand-primary buttons, and both are FROZEN because their
   destinations belong to Builds that have not run. The previous rule
   greyed them out, which made an approved primary CTA look like a
   disabled one and lost the approved composition. They now keep the
   approved brand treatment and stay non-interactive: non-anchors, not
   focusable, cursor:default, and with NO hover or pressed state,
   because nothing happens.
   This applies ONLY to the primary button. Secondary and navigation
   affordances that are frozen — both View all slots and the Today
   source affordance — stay muted and are NOT promoted to brand. */
.btn-primary.is-frozen { cursor: default; }

/* Interactive states belong to the ACTIVE primary CTA only. */
.btn-primary:not(.is-frozen):hover { background: var(--brand-core-hover); }
.btn-primary:not(.is-frozen):active { background: var(--brand-core-pressed); }
/* .hp-catdisc left this list with the Homepage category disclosure
   itself (Owner decision, 23 September 2026). The rail's own controls
   carry the identical ring through .rail-b:focus-visible. */
.btn-primary:not(.is-frozen):focus-visible,
.hp-arrow:focus-visible,
.hp-pkbtn:focus-visible {
  outline: 2px solid var(--brand-core);
  outline-offset: 2px;
}

/* ================================================== EDITORIAL HERO */
.hp-hero { padding-block: var(--hp-s7) var(--site-s6); }
.hp-htrack {
  display: flex;
  gap: var(--site-s4);
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  padding-block-end: var(--site-s2);
}
.hp-htrack::-webkit-scrollbar { display: none; }
.hp-hslide {
  flex: 0 0 86%;
  scroll-snap-align: center;
  border: 1px solid var(--border-container);
  border-radius: var(--hp-r-lg);
  background: var(--surface-canvas);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
/* APPROVED: media 61.5% / copy 38.5% at Desktop and Tablet, so the
   photograph's clipped boundary AVERAGES exactly the approved 60%
   line — the geometry board's own correction. */
@media (min-width: 700px) {
  .hp-hslide { flex: 0 0 86%; grid-template-columns: 61.5% 38.5%; }
}
/* The diagonal IS the photograph's own clipped edge, never an
   overlay, so no headline of any length can collide with it.
   clip-path takes PHYSICAL coordinates — the one place in the whole
   design that carries an explicit LTR/RTL pair, exactly as the board
   records. [D] unfrozen: the 4.9% lean, one value for both widths. */
.hp-hmedia {
  background: repeating-linear-gradient(135deg,
    var(--divider) 0 9px, var(--border-container) 9px 18px);
  min-block-size: 240px;
}
html[dir='ltr'] .hp-hslide {
  --hp-lean: 4.9%;
  --hp-wedge: polygon(0 0, calc(100% - var(--hp-lean)) 0, 100% 100%, 0 100%);
}
html[dir='rtl'] .hp-hslide {
  --hp-lean: 4.9%;
  --hp-wedge: polygon(100% 0, var(--hp-lean) 0, 0 100%, 100% 100%);
}
/* Mobile keeps the approved reflow: stacked, no diagonal. */
@media (min-width: 700px) {
  .hp-hmedia {
    clip-path: var(--hp-wedge);
    min-block-size: 0;
    block-size: auto;
    align-self: stretch;
  }
  /* aspect-ratio is deliberately NOT used: on a grid item it makes the
     height determinate, which suppresses the stretch and leaves blank
     ground below the photograph whenever the copy column is taller.
     The 4:3 nominal frame is a ratio-box FLOOR instead. Measured
     defect, recorded in the archive's own README. */
  .hp-hmedia::before { content: ""; display: block; padding-block-start: 75%; }
}
.hp-hbody {
  padding: var(--site-s5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--site-s4);
}
@media (min-width: 700px) {
  .hp-hbody { padding: var(--site-s4) var(--site-s5); gap: var(--site-s3); }
}
/* D-74 FINAL: a hard SIX-line maximum at every breakpoint. A safety
   limit against pathological content — typography is never shrunk. */
.hp-hslide .hp-display {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}
.hp-hdeck {
  margin: 0;
  max-inline-size: var(--measure-en);
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: var(--type-lead-size-en);
  line-height: var(--type-lead-lh-en);
  color: var(--text-secondary);
}
html[lang='fa'] .hp-hdeck {
  font-family: var(--font-persian);
  max-inline-size: var(--measure-fa);
  font-size: var(--type-lead-size-fa);
  line-height: var(--type-lead-lh-fa);
}
.hp-hctas { display: flex; gap: var(--site-s3); flex-wrap: wrap; margin: var(--site-s2) 0 0; }

/* the travelling brand rule, doubling as the position indicator */
.hp-hnav { display: flex; align-items: center; gap: var(--site-s4); margin-block-start: var(--site-s5); }
.hp-hprogress { flex: 1 1 auto; display: flex; gap: 6px; align-items: center; }
.hp-hprogress i {
  display: block;
  block-size: 2px;
  flex: 1 1 0;
  background: var(--divider);
  border-radius: 1px;
}
.hp-hprogress i.is-on { background: var(--brand-core); }
.hp-harrows { display: flex; gap: var(--site-s2); flex: 0 0 auto; }
.hp-arrow {
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--border-interactive);
  border-radius: var(--site-r-md);
  background: var(--surface-canvas);
  color: var(--text-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.hp-arrow:hover { background: var(--fill-hover); }
/* Chevrons encode direction of travel, so D-53 mirrors them. Drawn
   with PHYSICAL borders and mirrored explicitly: logical borders
   inside a rotated box resolve unpredictably in RTL, which the
   Category board records as a measured defect. */
.hp-chev {
  inline-size: 9px;
  block-size: 9px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-inline-start: 3px;
}
.hp-chev--next { transform: rotate(135deg); margin-inline: 0 3px; }
html[dir='rtl'] .hp-chev { transform: rotate(135deg); margin-inline: 0 3px; }
html[dir='rtl'] .hp-chev--next { transform: rotate(-45deg); margin-inline-start: 3px; }

/* ================================================ DIRECTORY SEARCH */
.hp-dsearch {
  border: 1px solid var(--border-container);
  border-radius: var(--site-r-md);
  background: var(--surface-canvas);
  padding: var(--site-s4);
  display: grid;
  gap: var(--site-s3);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 700px) {
  .hp-dsearch { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: stretch; }
}
.hp-field { display: flex; flex-direction: column; min-inline-size: 0; }
.hp-ctl {
  display: flex;
  align-items: center;
  gap: var(--site-s2);
  block-size: 46px;
  border: 1px solid var(--border-interactive);
  border-radius: var(--site-r-md);
  padding-inline: 12px;
  background: var(--surface-canvas);
  color: var(--text-muted);
}
.hp-input {
  flex: 1 1 auto;
  min-inline-size: 0;
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-latin);
  font-size: var(--type-dir-body-size-en);
  line-height: 1.2;
  color: var(--text-primary);
}
html[lang='fa'] .hp-input {
  font-family: var(--font-persian);
  font-size: var(--type-dir-body-size-fa);
}
.hp-input:focus { outline: none; }
.hp-ctl:focus-within { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.hp-select { appearance: auto; cursor: pointer; }
/* The location control is FROZEN: rendered at its approved size and
   position as a non-interactive span, because no geocoding,
   coordinate or radius logic exists anywhere in this project. */
.hp-ctl.is-frozen { cursor: default; }
.hp-ph {
  flex: 1 1 auto;
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-latin);
  font-size: var(--type-dir-body-size-en);
  line-height: 1.2;
}
html[lang='fa'] .hp-ph { font-family: var(--font-persian); font-size: var(--type-dir-body-size-fa); }
.hp-dcta { block-size: 46px; border: 0; cursor: pointer; }

/* ---------- results — HPS-1, Shell-only, replaced at MVP-009 ------
   The approved D-59 composition carries NO results region, because
   on the finished site the search navigates to the Directory results
   page, which MVP-009 owns and which this Build may not create. The
   interaction policy nonetheless requires the filter to genuinely
   work. This list is therefore the minimum honest surface that makes
   a server-side result observable: approved type tiers, the existing
   container edge, and nothing else. It carries no rating, no action
   row, no logo plate and no image, so it cannot be mistaken for the
   RETIRED Featured or Essential Businesses card. It renders ONLY
   after a search. */
.hp-results { margin-block-start: var(--site-s5); }
.hp-rescount,
.hp-nores {
  margin: 0 0 var(--site-s3);
  font-family: var(--font-latin);
  font-size: var(--site-meta);
  line-height: var(--site-meta-lh);
  color: var(--text-secondary);
}
html[lang='fa'] .hp-rescount, html[lang='fa'] .hp-nores { font-family: var(--font-persian); }
.hp-reslist {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-container);
  border-radius: var(--site-r-md);
  background: var(--surface-canvas);
}
.hp-res {
  display: block;
  padding: var(--site-s3) var(--site-s4);
  border-block-start: 1px solid var(--divider);
}
.hp-res:first-child { border-block-start: 0; }
.hp-res-n {
  display: block;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--type-card-title-size-en);
  line-height: var(--type-card-title-lh-en);
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
html[lang='fa'] .hp-res-n { font-size: var(--type-card-title-size-fa); line-height: var(--type-card-title-lh-fa); }
.hp-res-m,
.hp-res-d {
  display: block;
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: var(--site-meta);
  line-height: var(--site-meta-lh);
  color: var(--text-muted);
}
html[lang='fa'] .hp-res-m, html[lang='fa'] .hp-res-d { font-family: var(--font-persian); }
.hp-res-d { color: var(--text-secondary); margin-block-start: 2px; }
/* R2 (v0.26.0): the short description may now be 500 characters (was 255).
   Clamp the Directory result summary at 4 lines so one long summary cannot
   stretch the results list; at <=255 characters the result is unchanged in
   practice. The full text stays in the DOM (search, copy, screen readers)
   and on the Business Profile. Same -webkit-line-clamp pattern as .hx__d. */
.hp-res-d {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* ---------- Homepage categories — RAIL ---------------------------
   OWNER PRODUCT DECISION, 23 September 2026. SUPERSEDES D-59's TEN
   SHORTCUTS AND ITS RESPONSIVE DISCLOSURE, for this section only.

   WHAT D-59 RULED, and what has changed:
     - "Ten category shortcuts at every breakpoint, 10x1 / 5x2 / 2x5,
       no incomplete final row"  ->  SUPERSEDED. ALL publicly eligible
       categories are now available; the count is whatever the
       taxonomy holds, and a fixed grid cannot hold an unbounded one
       without becoming the multi-row wall the Owner ruled against.
     - "Responsive disclosure: the shortcut grid collapses at Tablet
       and Mobile behind a labelled control"  ->  SUPERSEDED. A
       one-row rail costs one row at every width, so there is nothing
       left for a disclosure to save and a control that hides a row
       the reader can simply swipe is a control that earns nothing.
       .hp-catdisc, .hp-catwrap and .hp-catgrid are DELETED rather
       than left as dead rules, and initCategoryDisclosure() went with
       them.

   WHAT DID NOT CHANGE, deliberately and by Owner instruction: the
   CHIP. .hp-cat below is byte-identical in appearance to v0.13.0 —
   the stacked icon-over-label card, its border, radius, fill, hover
   and type. The Homepage and the Category page share the rail's
   BEHAVIOUR (.rail-t, at the top of this stylesheet) and keep their
   own visual treatments; they were explicitly not to be made
   identical.

   Eligibility is untouched: CategoryRepository::activeForLocale()
   still returns ACTIVE categories only, in sort_order then id. Only
   the presentation cap was removed. */
.hp-cats { margin-block-start: var(--site-s5); min-inline-size: 0; }
/* The Homepage row's heading is .vh (position: absolute), so it leaves
   the flow and space-between would strand the controls at the
   inline-start. The Category page's heading is visible and keeps the
   shared space-between. */
.hp-cats .rail-h { justify-content: flex-end; }
/* One fixed cell width at every breakpoint, because the row no longer
   divides a container into N columns. 116px is the Desktop cell the
   superseded repeat(10) grid produced at 1200px, so the chip keeps
   the size the approved frames show; it is an implementation value
   [D], not a promoted token. */
.hp-cat {
  inline-size: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-block-size: 74px;
  padding: var(--site-s3) var(--site-s2);
  border: 1px solid var(--border-container);
  border-radius: var(--site-r-md);
  background: var(--surface-canvas);
  text-align: center;
  text-decoration: none;
}
.hp-cat:hover { background: var(--fill-hover); border-color: var(--border-interactive); }
.hp-cat span {
  font-family: var(--font-latin);
  font-size: var(--site-micro);
  line-height: var(--site-micro-lh);
  font-weight: 500;
  color: var(--text-strong);
}
html[lang='fa'] .hp-cat span { font-family: var(--font-persian); }

/* ======================================================= EDUCATION */
.hp-edu { display: grid; gap: var(--site-s5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .hp-edu { grid-template-columns: 1.25fr 1fr; gap: var(--site-s6); } }
.hp-eduf {
  display: flex;
  flex-direction: column;
  background: var(--surface-canvas);
  border: 1px solid var(--border-container);
  border-radius: var(--site-r-md);
  overflow: hidden;
}
/* D-38: Surface-Premium is a decorative, NON-INTERACTIVE edge only.
   Drawn with ::before so it cannot receive content or a control. */
.hp-eduf::before { content: ""; display: block; block-size: 6px; background: var(--surface-premium); }
.hp-eduimg { aspect-ratio: 16 / 9; border-block-end: 1px solid var(--border-container); }
.hp-edufb { padding: var(--site-s5); display: flex; flex-direction: column; gap: var(--site-s3); }
.hp-edudeck {
  margin: 0;
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: var(--type-dir-body-size-en);
  line-height: var(--type-dir-body-lh-en);
  color: var(--text-secondary);
}
html[lang='fa'] .hp-edudeck {
  font-family: var(--font-persian);
  font-size: var(--type-dir-body-size-fa);
  line-height: var(--type-dir-body-lh-fa);
}
.hp-edumeta {
  display: flex;
  gap: var(--site-s3);
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  font-family: var(--font-latin);
  font-size: var(--site-micro);
  line-height: var(--site-micro-lh);
  font-weight: 500;
  color: var(--text-muted);
}
html[lang='fa'] .hp-edumeta { font-family: var(--font-persian); }
.hp-pill { border: 1px solid var(--border-container); border-radius: var(--site-r-sm); padding: 3px 8px; }
.hp-educta { margin: var(--site-s2) 0 0; }
/* No thumbnails on the supporting guides — one image in the whole
   section is the mechanism that keeps Education distinct from Latest
   Articles (D-64). */
.hp-edulist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-self: start; }
.hp-eduitem { display: block; padding-block: var(--site-s4); border-block-end: 1px solid var(--divider); }
.hp-eduitem:first-child { padding-block-start: 0; }
.hp-eduitem-t {
  display: block;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--type-h3-size-en);
  line-height: var(--type-h3-lh-en);
  color: var(--text-primary);
  text-wrap: balance;
}
html[lang='fa'] .hp-eduitem-t {
  font-family: var(--font-persian);
  font-size: var(--type-h3-size-fa);
  line-height: var(--type-h3-lh-fa);
}
.hp-eduitem-m {
  display: block;
  margin-block-start: 6px;
  font-family: var(--font-latin);
  font-size: var(--site-micro);
  line-height: var(--site-micro-lh);
  font-weight: 500;
  color: var(--text-muted);
}
html[lang='fa'] .hp-eduitem-m { font-family: var(--font-persian); }

/* ================================================= LATEST ARTICLES */
/* No carousel at any breakpoint, by ruling. */
.hp-news { display: grid; gap: var(--site-s5); }
@media (min-width: 1100px) { .hp-news { grid-template-columns: 1.3fr 1fr; gap: var(--site-s6); } }
.hp-nmain { display: flex; flex-direction: column; gap: var(--site-s3); }
.hp-nimg {
  aspect-ratio: 16 / 9;
  margin-block-end: var(--site-s2);
  border: 1px solid var(--border-container);
  border-radius: var(--site-r-md);
}
.hp-ndeck {
  margin: 0;
  max-inline-size: var(--measure-en);
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: var(--type-dir-body-size-en);
  line-height: var(--type-dir-body-lh-en);
  color: var(--text-secondary);
}
html[lang='fa'] .hp-ndeck {
  font-family: var(--font-persian);
  max-inline-size: var(--measure-fa);
  font-size: var(--type-dir-body-size-fa);
  line-height: var(--type-dir-body-lh-fa);
}
.hp-nrest { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) and (max-width: 1099px) {
  .hp-nrest { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--site-s5); }
}
.hp-nitem { display: block; padding-block: var(--site-s4); border-block-start: 1px solid var(--divider); }
.hp-nitem:first-child { border-block-start: 0; padding-block-start: 0; }
@media (min-width: 700px) and (max-width: 1099px) {
  .hp-nitem:nth-child(2) { border-block-start: 0; padding-block-start: 0; }
}
.hp-nitem-t {
  display: block;
  margin-block: 6px;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--type-h3-size-en);
  line-height: var(--type-h3-lh-en);
  color: var(--text-primary);
  text-wrap: balance;
}
html[lang='fa'] .hp-nitem-t {
  font-family: var(--font-persian);
  font-size: var(--type-h3-size-fa);
  line-height: var(--type-h3-lh-fa);
}
.hp-neyebrow {
  display: block;
  font-family: var(--font-latin);
  font-size: var(--site-micro);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
html[lang='fa'] .hp-neyebrow { font-family: var(--font-persian); letter-spacing: 0; text-transform: none; }
.hp-neyebrow--main { color: var(--brand-core); }
.hp-ndate {
  display: block;
  font-family: var(--font-latin);
  font-size: var(--site-micro);
  line-height: var(--site-micro-lh);
  font-weight: 500;
  color: var(--text-muted);
}
html[lang='fa'] .hp-ndate { font-family: var(--font-persian); }

/* The Homepage category disclosure's two transitions were the only
   entries here; both elements are gone (Owner decision, 23 September
   2026). The rails animate nothing in CSS — their only motion is the
   smooth scroll rail.js requests, and rail.js asks
   prefers-reduced-motion itself and falls back to 'auto'. */

/* ============================================== HOMEPAGE — SHELL-B
   Build: HOMEPAGE-SHELL-B (v0.8.2)

   The three remaining approved sections, and the assembly rule that
   only exists once all seven are on the page. Same discipline as the
   SHELL-A block above: every metric is transcribed from approved
   evidence, every class is .hp- prefixed, breakpoints are the same
   two media queries (700px / 1100px) standing in for the boards'
   container queries, and no value is promoted to a Design System
   token by appearing here.

     Today on Resaneh   TOD-1 .. TOD-9   DESIGN_SYSTEM section 10.8
                        docs/design/A4-today-on-resaneh/source/today_css.py
                        docs/design/A4-today-on-resaneh/source/build_today.py
     Resaneh Perks      DESIGN-A.4a      DESIGN_SYSTEM sections 10.7, 10.4a
                        the DESIGN-A.4a record set in D:\..\Development\
                        (listed file by file in app/Demo/PerksDemo.php)
     Latest Offers      LO-1 .. LO-9     DESIGN_SYSTEM section 10.9
                        docs/design/A4-latest-offers/source/lo_css.py
                        docs/design/A4-latest-offers/source/build_lo.py

   THE THREE SECTIONS ARE DELIBERATELY UNLIKE ONE ANOTHER, and the
   record is explicit that this is load-bearing rather than taste.
   Today is a BORDERLESS ruled list on surface-subtle. Latest Offers
   uses the approved .card language - 1px border, --r-md, canvas fill
   - on surface-warm. Resaneh Perks is the only Creative-led surface,
   on canvas, and the only one carrying a disclosure. Three text-led
   sections, three treatments a reader can tell apart.

   FOUR DELIBERATE DEPARTURES, all recorded in
   docs/tasks/TASK-HOMEPAGE-SHELL-B.md:

   1. THE PERKS DESKTOP COLUMN IS 274px, NOT THE FROZEN 300px. The
      DESIGN-A.4a Desktop geometry is frozen against a 1272px content
      width (4 x 300 + 3 x 24). The released page-width model gives
      1168px at 1440 (.cont, max 1200, 16px padding), which is section
      10.2's and is [D] unfrozen. Widening the container is a released
      Header/Footer/Category-page change and is out of scope; widening
      Perks alone would leave its edges 52px outside every neighbour.
      So the MANDATORY things are preserved - the Tier 1 4:3 Creative
      ratio and the 133.00px caption reserve - and the column resolves
      from the container. TABLET AND MOBILE ARE UNAFFECTED: 834 gives
      254 against the frozen 252, and 390 gives EXACTLY the frozen 173.
      The clean resolution is an Owner decision, not this Build's:
      promoting the content maximum from 1200 to 1304 makes the frozen
      Desktop geometry hold AND keeps all seven sections aligned.

   2. THE CAPTION IS TOP-ANCHORED AND THE RESERVE FALLS AT THE BOTTOM.
      Frozen-by-consequence, and the reason it must be written down:
      bottom-anchoring the caption is a natural-looking tidy-up for the
      trailing whitespace, and it makes a caption's top position a
      function of its own content height, which varies by locale and by
      title line count. The 0.00px caption-baseline deviation measured
      across the validation frames is what would be lost.

   3. THE PERKS CREATIVE IS A PLATE GROUND AND NOTHING ELSE. No motif
      is drawn: the six approved motifs' geometry lives in the D-70
      Step 1/2 records, and drawing one from its name would be
      inventing approved visual design. No photograph and no merchant
      logotype either - the calibration gate takes genuine photographs
      only and explicitly excludes generated and placeholder imagery,
      and no demo business has a brand asset (section 6). The three
      frozen grounds are named here as TOKENS, because #D8C1A5,
      #DCD8D1 and #EBE9E4 are already --surface-premium,
      --border-container and --divider: re-declaring the hex values
      would let the plates drift from the palette.

   4. A HAIRLINE SEPARATES TWO ADJACENT SECTIONS ON THE SAME GROUND.
      The seven-section sequence puts Perks next to Directory Search
      (both canvas) and Education next to Latest Offers (both warm).
      The grounds are each section's own approved ground and none may
      be changed to break the pair, so the boundary is drawn with the
      same 1px --divider hairline Today's own approved CSS uses for
      exactly this purpose. It is one adjacency rule, it touches no
      partial, and it disappears by itself when a section collapses.

   NOT STYLED HERE, because NOT RENDERED: the RETIRED Featured
   Businesses and Essential Businesses, the Perks Vertical and the
   Desktop/Tablet Band geometries (D1 and T1 are 1x1 only), the Perk
   pill, and any semantic urgency colour - ADM-P1 defers the state
   palette and section 10.8a says in terms not to invent one.
   ============================================================ */

/* ---------- assembly: same-ground adjacency (departure 4) -------- */
.hp .hp-g-canvas + .hp-g-canvas,
.hp .hp-g-warm + .hp-g-warm {
  border-block-start: 1px solid var(--divider);
}

/* (v0.43.0: the TODAY ON RESANEH rules were removed with the section;
   Need It Now's rules are at the end of this file.) */

/* ============================================== RESANEH PERKS
   Internal architecture identifier: Resaneh Select. The user-facing
   name lives in app/Lang and nowhere else. */

/* ---------- header ----------------------------------------------- */
.hp-pkhead-r {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--site-s4);
}
.hp-pkhead-t { display: flex; flex-direction: column; min-inline-size: 0; }

/* Section heading typography is FROZEN for this section only (section
   10.4a): Mobile 21/1.35 EN, 22/1.60 FA - Tablet 24/1.30, 25/1.55 -
   Desktop 28/1.25, 29/1.55, weight 600, FA = EN + 1px. It therefore
   overrides the shared .hp-h2 tier here and nowhere else. */
.hp-pk .hp-h2 { font-size: 21px; line-height: 1.35; }
html[lang='fa'] .hp-pk .hp-h2 { font-size: 22px; line-height: 1.60; }
@media (min-width: 700px) {
  .hp-pk .hp-h2 { font-size: 24px; line-height: 1.30; }
  html[lang='fa'] .hp-pk .hp-h2 { font-size: 25px; line-height: 1.55; }
}
@media (min-width: 1100px) {
  .hp-pk .hp-h2 { font-size: 28px; line-height: 1.25; }
  html[lang='fa'] .hp-pk .hp-h2 { font-size: 29px; line-height: 1.55; }
}

/* THE DISCLOSURE IS A DEDICATED LINE BENEATH THE HEADING ROW, at the
   inline start. Measured: `Resaneh Perks . Ad` inline is 226.3px
   against a 288px header at 320px with the 76px control present, and
   OVERFLOWS BY 26.3px. Dropping the separator recovers 22px and still
   fails; a chip beside the heading fails by a similar margin. This line
   costs 24.2px and is the only treatment that fits without touching a
   frozen element. `Ad` is the only disclosure copy, in both locales,
   and there is NO per-card badge - ruling F removed it. */
.hp-pkad {
  margin: var(--site-s1) 0 0;
  font-family: var(--font-latin);
  font-size: var(--site-micro);
  line-height: var(--site-micro-lh);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
html[lang='fa'] .hp-pkad { letter-spacing: 0; }

/* ---------- paging control (76px in every state) ------------------
   Two 8px dots + a 6px gap + a 10px gap + one 44 x 44 button.
   8 + 6 + 8 + 10 + 44 = 76. The dots are informational and
   aria-hidden, so they carry no target-size obligation; with two
   panels one arrow reaches every state, and actionable dots would add
   nothing while creating a permanently inert neighbour target.
   Ruling B AS RULED: the control mirrors, so the button sits after the
   dots on Panel 1 and before them on Panel 2. row-reverse is
   direction-aware, so this is one declaration in both locales. The
   measured cost is a 32.0px button shift on activation with a 27%
   target overlap; the re-validation recommended a fixed-position
   variant that removes it, no record adopts that variant, and changing
   to it is deleting the one rule below. */
.hp-pkpager { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.hp-pkpager[data-panel='2'] { flex-direction: row-reverse; }
.hp-pkdots { display: flex; align-items: center; gap: 6px; }
.hp-pkdots i {
  display: block;
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--border-container);
}
.hp-pkdots i.is-on { background: var(--text-muted); }
.hp-pkbtn {
  inline-size: 44px;
  block-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* border-interactive #978B7A - 3.34:1, satisfies SC 1.4.11.
     border-container is 1.42:1 and FAILS for this element. */
  border: 1px solid var(--border-interactive);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.hp-pkchev {
  /* The glyph is the SAME in both locales and the engine mirrors it.
     U+2039 and U+203A are bidi-mirrored characters: pre-mirroring by
     locale mirrors twice and the two cancel, which points the Persian
     "next" arrow at "previous". unicode-bidi:isolate does not prevent
     it, because isolation controls ordering, not mirroring. */
  font: 400 22px / 1 var(--font-latin);
}
/* The control exists only where there are two panels. At Tablet and
   Desktop every cell is in one grid, so it is ABSENT - not disabled,
   not a reserved empty 76px. That is the approved single-panel
   fallback, measured and passed in both locales at both widths. */
@media (min-width: 700px) {
  .hp-pkpager { display: none; }
}

/* ---------- the bento grid ---------------------------------------
   One DOM order, three frozen templates. Mobile base first. */
.hp-pkgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--site-s3);
  margin: var(--site-s5) 0 0;
  padding: 0;
  list-style: none;
}
.hp-pkcell {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  /* Borderless, unfilled, shadowless Standard card surface - frozen. */
}
/* The Creative area. An EMPTY approved placeholder carrying one of the
   three frozen plate grounds, at the frozen 12px radius. Tier 1 4:3 is
   the mandatory master tier and the sole Creative requirement for
   Launch, so it is the ratio every 1x1 holds at every breakpoint. */
.hp-pkcreative {
  display: block;
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  flex: 0 0 auto;
}
.hp-pkplate--premium   { background: var(--surface-premium); }
.hp-pkplate--container { background: var(--border-container); }
.hp-pkplate--divider   { background: var(--divider); }

/* Caption: TOP-ANCHORED, with the trailing reserve at the bottom.
   Internals 10 / 6 / 12 - a recorded, deliberate exception to the 4px
   spacing scale, which it does not alter anywhere else. */
.hp-pkcap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 10px 12px;
  overflow: hidden;
}
/* Primary Title mandatory, 2-line clamp. */
.hp-pktitle {
  margin: 0;
  font-family: var(--font-latin);
  font-size: var(--type-card-title-size-en);
  line-height: var(--type-card-title-lh-en);
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
}
html[lang='fa'] .hp-pktitle {
  font-family: var(--font-persian);
  font-size: var(--type-card-title-size-fa);
  line-height: var(--type-card-title-lh-fa);
}
/* MAXIMUM ONE supporting element, and no additional row merely because
   the geometry is larger. The prohibition is load-bearing: both larger
   Mobile geometries measure enough spare budget to hold a third row,
   which is exactly why it needed stating. */
.hp-pksupport {
  margin: 0;
  font-family: var(--font-latin);
  font-size: var(--site-meta);
  line-height: var(--site-meta-lh);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang='fa'] .hp-pksupport { font-family: var(--font-persian); }
/* `Drop` is a placement/format identifier, NOT the advertising
   disclosure, and ruling F left it in place when it removed every
   per-card badge. It is therefore typeset as the caption's ordinary
   supporting element and is not a chip. */
.hp-pkdrop { font-weight: 600; letter-spacing: 0.06em; }
html[lang='fa'] .hp-pkdrop { letter-spacing: 0; }

/* ---------- PLACEMENT SIZE IS CROSS-BREAKPOINT (Owner, HPS-15) ----
   (Extended by HPS-17, 21 Sep 2026: two orientations, Large - Horizontal
   = the Band described here, class hp-pksz--large-h, and Large -
   Vertical, below; at most one of each.)
   A LARGE placement is large at Desktop, Tablet AND Mobile. A STANDARD
   placement is standard at all three. A breakpoint may change a
   placement's geometry; it may NEVER promote a STANDARD placement into
   the large tier. Before this correction module 1 was an ordinary cell
   at Desktop and Tablet and a two-card band at Mobile -- the same
   placement changing tier with the viewport, which the Owner rejected.

   The frozen family has a Band Head member at every breakpoint, so one
   placement can be large everywhere without leaving the approved set:
     Desktop  D3  Band at Row 1, cols 3-4   + 14 x 1x1
     Tablet   T3  Band at Row 1, cols 2-3   + 13 x 1x1
     Mobile   T3  Full Row at Row 1         + 6 x 1x1   (Panel 1)
              T1  eight 1x1                             (Panel 2)
   The Band is placed EXPLICITLY per breakpoint and the 1x1 cells flow
   around it, which is how one DOM order serves three templates whose
   Band sits in a different column in each. */
.hp-pksz--large-h { grid-column: span 2; }

/* At Desktop and Tablet the Band's frozen Creative height is IDENTICAL
   to the 1x1's -- 225 and 189 -- so it is twice as wide, never taller.
   Filling the row its 1x1 neighbours define reproduces that exactly at
   any resolved column, instead of only at the two the board measured. */
@media (min-width: 700px) {
  .hp-pksz--large-h .hp-pkcreative { aspect-ratio: auto; flex: 1 1 auto; min-block-size: 0; }
}

/* ---------- LARGE - VERTICAL (HPS-17, Owner pre-release amendment,
   21 Sep 2026, section 10.7b) -------------------------------------------
   One column wide, two rows tall, at EVERY breakpoint (HPS-15 extended to
   orientation). Column 1 (logical, so it mirrors in RTL); rows 1-2, or
   rows 2-3 when a Large - Horizontal is present (.hp-pkgrid[data-h='1']),
   so the two Large shapes never share a row. The row heights are set by
   the Standard cells beside it; the Vertical's Creative takes whatever the
   two rows leave above the SAME caption budget the Standard cell has, so
   its caption registers with the second row's captions and the extra
   height is image, never extra text (caption anatomy unchanged). */
.hp-pksz--large-v { grid-column: 1; grid-row: 1 / span 2; }
.hp-pkgrid[data-h='1'] > .hp-pksz--large-v { grid-row: 2 / span 2; }
.hp-pksz--large-v .hp-pkcreative { aspect-ratio: auto; flex: 1 1 auto; min-block-size: 0; }
.hp-pksz--large-v .hp-pkcap { flex: 0 0 auto; }

/* ---------- Mobile: the paged bento -------------------------------
   Panel 1 = T3 Band Head, Panel 2 = T1 Quiet. The pair satisfies the
   frozen no-repeat rule; ruling C's "a single Full Row must be in
   Panel 1"; structural rule 3 (that Full Row occupies Row 1); and
   structural rule 4 (Row 2 keeps free Drop positions -- the Drop is
   module 4, which lands in Row 3 here, and Row 1 is the only row barred
   to it). Cell floor is the frozen 250px; the Full Row holds the frozen
   11:4. */
@media (max-width: 699px) {
  .hp-pkcell { min-block-size: 250px; }
  .hp-pkcap { flex: 1 1 auto; min-block-size: 119.83px; }

  .hp-pkgrid[data-panel='1'] > .hp-pksz--large-h { grid-row: 1; grid-column: 1 / -1; }
  .hp-pkgrid[data-panel='1'] > .hp-pksz--large-h .hp-pkcreative { aspect-ratio: 11 / 4; }
  .hp-pksz--large-v .hp-pkcap { min-block-size: 119.83px; }

  /* MVP-012 correction: the panel of every cell is decided by the service
     (data-p), never counted here. */
  .hp-pkgrid[data-panel='1'] > [data-p='2'],
  .hp-pkgrid[data-panel='2'] > [data-p='1'] { display: none; }
}

/* ---------- Tablet T3 Band Head: 3 x 5, fifteen cells ------------- */
@media (min-width: 700px) {
  .hp-pkgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hp-s5); }
  /* Caption reserve 133.00px, uniform across all three geometries.
     The 1x1 Creative follows the resolved column at the mandatory 4:3,
     so it is what sets each row's height. */
  .hp-pkcap { block-size: 133px; }
  .hp-pksz--large-h { grid-row: 1; grid-column: 2 / span 2; }
}
/* Tablet carries 15 cells against Desktop's 16; which module that
   withholds (and every reduced tier) is marked per cell by the service
   (.hp-pkx-t) -- see the MVP-012 block at the end. */

/* ---------- Desktop D3 Band Head: 4 x 4, sixteen cells ------------ */
@media (min-width: 1100px) {
  .hp-pkgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--site-s5); }
  .hp-pksz--large-h { grid-row: 1; grid-column: 3 / span 2; }
}

/* ============================================== LATEST OFFERS
   LO-3, LO-4, LO-5. Ground surface-warm with cards on canvas so the
   card edge reads. D-65 is AMENDED here, not adopted. */
/* The ground is carried by the shared .hp-g-warm class rather than
   declared here, so the same-ground adjacency rule at the top of this
   block sees it and draws the Education/Latest Offers boundary. */

/* LO-10 — OWNER CORRECTION, 18 September 2026. ONE CAROUSEL AT EVERY
   WIDTH. This supersedes LO-3's Desktop 3 x 2 grid and LO-4(b)'s Tablet
   two-column grid; both are preserved in DESIGN_SYSTEM.md section 10.9
   for traceability and must no longer be described as current.
   The mechanism does not change with the viewport -- only how many
   cards are in view: three at Desktop, two at Tablet, one plus D-65's
   approved 76% peek at Mobile. Manual previous/next only: no autoplay,
   no timer, no auto-advance, and nothing is cloned to make the wrap
   work. Cards are flex items on one stretched row, so every card is the
   height of the tallest BY CONSTRUCTION -- which is what LO-3's
   grid-auto-rows:1fr was doing before. */
.hp-lotop {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--site-s4);
}
.hp-lotop .hp-sechead { flex: 1 1 auto; min-inline-size: 0; }
.hp-lonav { display: flex; gap: var(--site-s2); flex: 0 0 auto; padding-block-end: var(--site-s1); }

.hp-logrid {
  display: flex;
  gap: var(--site-s3);
  margin: var(--site-s5) 0 0;
  padding: 0 0 var(--site-s2);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  scroll-padding-inline-start: 0;
}
.hp-logrid::-webkit-scrollbar { display: none; }
.hp-logrid > * { flex: 0 0 76%; scroll-snap-align: start; }

/* Tablet: two cards in view. */
@media (min-width: 700px) {
  .hp-logrid { gap: var(--site-s4); }
  .hp-logrid > * { flex: 0 0 calc((100% - var(--site-s4)) / 2); }
}
/* Desktop: three cards in view. Declared AFTER the Tablet rule so source
   order cannot defeat it -- the recorded DESIGN-A.4 lesson. */
@media (min-width: 1100px) {
  .hp-logrid > * { flex: 0 0 calc((100% - 2 * var(--site-s4)) / 3); }
}

/* The card. Reuses the approved .card language - 1px border, --r-md,
   canvas fill - which Today deliberately avoids, so the two text-led
   sections stay distinguishable from each other as well as from Perks.
   AMENDED vs D-65 (LO-4a): NO media region, at any breakpoint.
   The whole card is FROZEN: a non-anchor with no href and no #. */
.hp-locard {
  block-size: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--site-s2);
  padding: var(--site-s4);
  background: var(--surface-canvas);
  border: 1px solid var(--border-container);
  border-radius: var(--site-r-md);
}

/* Every text region carries a fixed allocation and clamps. Content is
   clamped, never the card (D-61, and D-65's own wording). */
/* LO-10 label. The approved neutral OUTLINE chip language already in
   this stylesheet (.hp-pill, Education's "Guide"), reused for the one
   semantic role the Owner amended into this card. It is a qualitative
   CLASSIFICATION, never a measurement: no amount, no percentage, no
   declared value, so AI-BC-7 stays dormant. It is unfilled and neutral,
   so it cannot be mistaken for a brand object -- and it is deliberately
   unlike Resaneh Perks' `Ad`, which is a section-level micro line and
   not a chip at all. The row is ALWAYS reserved, so a labelled and an
   unlabelled Offer are the same height. Not interactive. */
.hp-lolabel {
  align-self: start;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid var(--border-container);
  border-radius: var(--site-r-sm);
  font-family: var(--font-latin);
  font-size: var(--site-micro);
  line-height: var(--site-micro-lh);
  font-weight: 600;
  color: var(--text-secondary);
  min-block-size: calc(var(--site-micro) * var(--site-micro-lh));
}
html[lang='fa'] .hp-lolabel { font-family: var(--font-persian); }

.hp-lohead {
  margin: 0;
  font-family: var(--font-latin);
  font-size: var(--type-card-title-size-en);
  line-height: var(--type-card-title-lh-en);
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-block-size: calc(2 * var(--type-card-title-size-en) * var(--type-card-title-lh-en));
}
html[lang='fa'] .hp-lohead {
  font-family: var(--font-persian);
  font-size: var(--type-card-title-size-fa);
  line-height: var(--type-card-title-lh-fa);
  min-block-size: calc(2 * var(--type-card-title-size-fa) * var(--type-card-title-lh-fa));
}
.hp-lobiz {
  margin: 0;
  font-family: var(--font-latin);
  font-size: var(--site-meta);
  line-height: var(--site-meta-lh);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-locond {
  margin: 0;
  font-family: var(--font-latin);
  font-size: var(--site-meta);
  line-height: var(--site-meta-lh);
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-block-size: calc(2 * var(--site-meta) * var(--site-meta-lh));
}
html[lang='fa'] .hp-locond { font-family: var(--font-persian); }
/* Validity: ONE LINE, ALWAYS RESERVED whether or not the Offer states
   one, so the card foot never shifts. The fifth archived offer states
   none, which is why the reserved-but-empty case is genuinely rendered
   rather than described. Unfilled neutral text - NEVER a badge,
   because a filled chip is Perks' language. */
.hp-lovalid {
  margin: auto 0 0;
  padding-block-start: var(--site-s3);
  border-block-start: 1px solid var(--divider);
  font-family: var(--font-latin);
  font-size: var(--site-micro);
  line-height: var(--site-micro-lh);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-block-size: calc(var(--site-micro) * var(--site-micro-lh));
}
html[lang='fa'] .hp-lovalid {
  font-family: var(--font-persian);
  letter-spacing: 0;
  text-transform: none;
}

/* ============================================== BUSINESS PROFILE
   Build: MVP-011 (MVP-011A + MVP-011B, WBS Tasks 49-60), v0.11.0

   REFERENCE-DRIVEN, NOT INTERPRETIVE — the same discipline the
   Category page and Homepage sections above record. Every metric is
   transcribed from the OWNER-APPROVED DESIGN-A.4 Business Profile
   board (resaneh-business-profile.html, frames bp-f1 … bp-f6;
   DESIGN_SYSTEM.md §12, BP-1 … BP-5), not composed here.

   BRAND RESTRAINT (§12.3). #960546 appears ONLY on the single primary
   Call CTA and on inline links. No section background, card fill,
   gallery treatment or information panel uses it. The Offer accents
   §12.3 also permits are absent because Offers are MVP-012's.

   [D] UNFROZEN VALUES (§12.6). Section radius and border, the 348px
   rail, gallery ratios and gutters, the 76px logo and the 46px action
   height are demonstrated values, not tokens. They are declared below
   as --bp-*, scoped to .bpwrap, so nothing here can be mistaken for a
   promoted Design System token — the same treatment --cat-* received.

   TWO DEPARTURES, BOTH ON THE CATEGORY PAGE'S RECORDED PRECEDENT
   (TASK-MVP-008 §10): content width is --site-maxw (1200px) and the
   inline padding is --site-pad at every width, so every section edge
   aligns with the Owner-verified production Header and Footer above
   and below it rather than the board's own full-bleed masthead.

   TYPE METRICS FOLLOW THE ELEMENT'S OWN LANGUAGE (:lang), not the
   page's. Business-authored Release-1 content is English inside
   Persian chrome (D-54) and carries lang="en" on its block (§11.8), so
   it takes the approved ENGLISH tier and the Latin face, while the
   Persian chrome around it takes the Persian tier. That is what D-46's
   "measured per script" rule requires of a mixed page.

   BREAKPOINTS are this file's own 700px and 1100px — the board's
   container-query thresholds expressed as the media queries production
   uses everywhere else.
   ============================================================ */

.bpwrap {
  --bp-border: #e6e0d6;
  --bp-border-soft: #ede7de;
  --bp-border-ctl: #cfc6b8;
  --bp-border-pill: #dcd5c9;
  --bp-border-logo: #e0d8cc;
  --bp-ink: #242124;
  --bp-ink-body: #332f2b;
  --bp-ink-desc: #403b37;
  --bp-ink-muted: #5c554f;
  --bp-tile: #ede7de;
  --bp-r-sec: 6px;
  --bp-r-ctl: 4px;
  --bp-s5: 20px;
  --bp-s8: 32px;
  --bp-s10: 40px;
  --bp-rail: 348px;

  background: var(--surface-warm);
  color: var(--bp-ink);
  font-family: var(--font-latin);
}
html[lang='fa'] .bpwrap { font-family: var(--font-persian); }
.bpwrap [lang='en'] { font-family: var(--font-latin); }

.bpmain {
  max-inline-size: var(--site-maxw);
  margin-inline: auto;
  padding: var(--bp-s5) var(--site-pad) var(--bp-s10);
}
.bpmain > * + * { margin-block-start: var(--bp-s8); }
@media (min-width: 700px) {
  .bpmain { padding-block-start: var(--site-s5); }
}

/* ---------- shared section furniture (board .sec) ---------------- */
.bp-sec {
  background: var(--surface-canvas);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-r-sec);
  padding: var(--bp-s5);
  min-inline-size: 0;
}
.bp-sec-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--site-s4);
  flex-wrap: wrap;
  margin-block-end: var(--site-s4);
}
.bp-h2,
.bp-h3 {
  margin: 0;
  font-weight: 600;
  color: var(--bp-ink);
}
.bp-h2 { font-size: 22px; line-height: 1.30; }
.bp-h2:lang(fa) { line-height: 1.55; }
.bp-h3 { font-size: var(--type-h3-size-en); line-height: var(--type-h3-lh-en); }
.bp-h3:lang(fa) { font-size: var(--type-h3-size-fa); line-height: var(--type-h3-lh-fa); }

/* ---------- breadcrumb (board .bc) — identical to the Category page's */
.bp-bc ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--site-s2);
  margin: 0;
  padding: 0;
}
.bp-bc li {
  font-weight: 400;
  font-size: var(--type-metadata-size-en);
  line-height: var(--type-metadata-lh-en);
  color: var(--text-muted);
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.bp-bc li:lang(fa) { font-size: var(--type-metadata-size-fa); line-height: var(--type-metadata-lh-fa); }
.bp-bc a {
  color: var(--text-secondary);
  display: inline-block;
  min-block-size: 24px;
  min-inline-size: 24px;
}
.bp-bc li + li::before {
  content: "";
  display: inline-block;
  inline-size: 6px;
  block-size: 6px;
  margin-inline-end: var(--site-s2);
  border-top: 1px solid var(--border-container);
  border-right: 1px solid var(--border-container);
  transform: rotate(45deg);
}
[dir='rtl'] .bp-bc li + li::before { transform: scaleX(-1) rotate(45deg); } /* v0.38.1 */

/* ---------- identity (board .bp) — §12.1 item 3 ------------------ */
.bp-top {
  display: flex;
  align-items: flex-start;
  gap: var(--site-s4);
  flex-wrap: wrap;
}
.bp-logo {
  flex: 0 0 auto;
  inline-size: 76px;
  block-size: 76px;
  border-radius: var(--bp-r-sec);
  overflow: hidden;
  border: 1px solid var(--bp-border-logo);
  background: var(--surface-canvas);
}
.bp-logo img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.bp-id { min-inline-size: 0; flex: 1 1 320px; }
.bp-n {
  margin: 0;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--type-h1-size-en);
  line-height: var(--type-h1-lh-en);
  color: var(--bp-ink);
  overflow-wrap: anywhere;
}
html[lang='fa'] .bp-n { line-height: var(--type-h1-lh-fa); }
.bp-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--site-s2) var(--site-s3);
  margin: var(--site-s2) 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bp-ink);
}
.bp-facts:lang(fa) { font-size: 15px; line-height: 1.7; }
.bp-facts a { color: var(--brand-core); display: inline-block; min-block-size: 24px; }
.bp-dot { color: var(--text-muted); }
.bp-d {
  margin: var(--site-s3) 0 0;
  color: var(--bp-ink-desc);
  font-size: 17px;
  line-height: 1.6;
  max-inline-size: 33rem;
}
.bp-d:lang(fa) { font-size: 18px; line-height: 1.85; max-inline-size: 31.5rem; }

.bp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--bp-border-pill);
  background: var(--surface-warm);
  color: var(--text-strong);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}
.bp-pill:lang(fa) { font-size: 13px; line-height: 1.6; }
.bp-pill--open { border-color: #b4bfa8; background: #f2f5ee; color: #3a4634; }
.bp-pill--shut { border-color: var(--bp-border-pill); background: #f5f2ed; color: var(--bp-ink-muted); }
.islot.bp-islot-s { inline-size: 12px; block-size: 12px; }

/* primary actions — §12.1: Call · Directions · Website; Call is the
   single primary CTA and the only brand-filled control on the page. */
.bp-acts { display: flex; flex-wrap: wrap; gap: var(--site-s2); margin-block-start: var(--site-s4); }
.bp-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--site-s2);
  min-block-size: 46px;
  padding-inline: var(--site-s4);
  border-radius: var(--bp-r-ctl);
  border: 1px solid var(--bp-border-ctl);
  background: var(--surface-canvas);
  color: var(--bp-ink);
  text-decoration: none;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}
.bp-act:lang(fa) { font-size: 16px; }
.bp-act:hover { background: var(--fill-hover); color: var(--bp-ink); }
.bp-act--primary { background: var(--brand-core); border-color: var(--brand-core); color: #fff; font-weight: 600; }
.bp-act--primary:hover { background: var(--brand-core-hover); border-color: var(--brand-core-hover); color: #fff; }
.bp-act--primary:active { background: var(--brand-core-pressed); }
.bp-act--primary .islot { border-color: rgba(255, 255, 255, 0.7); }

/* ---------- gallery (board .gal) — §12.1 item 4, BP-3 ------------
   Mobile: the dominant tile, then the supporting tiles in one row.
   >= 700: dominant tile beside a 2 x 2 block that fills its height
   exactly (the board's own measured fix — with aspect-ratio still
   applied the supporting rows left a visible hole). data-rest carries
   how many supporting tiles exist, so a business with fewer than five
   photos gets a complete composition, never an empty cell. */
.bp-gal { display: grid; gap: 4px; grid-template-columns: minmax(0, 1fr); margin-block-start: var(--bp-s5); }
.bp-gal a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--bp-r-ctl);
  background: var(--bp-tile);
}
.bp-gal img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.bp-gal-1 { aspect-ratio: 16 / 10; }
.bp-gal-rest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.bp-gal[data-rest='1'] .bp-gal-rest { grid-template-columns: minmax(0, 1fr); }
.bp-gal[data-rest='2'] .bp-gal-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-gal[data-rest='3'] .bp-gal-rest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bp-gal-rest a { aspect-ratio: 4 / 3; }
.bp-gal[data-rest='1'] .bp-gal-rest a { aspect-ratio: 16 / 10; }
.bp-gal-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 33, 36, 0.52);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  padding: var(--site-s1);
}
@media (min-width: 700px) {
  .bp-gal:not([data-rest='0']) { grid-template-columns: 2fr 1fr; }
  .bp-gal-1 { aspect-ratio: auto; min-block-size: 340px; }
  .bp-gal[data-rest='0'] .bp-gal-1 { aspect-ratio: 21 / 9; min-block-size: 0; }
  .bp-gal-rest,
  .bp-gal[data-rest='2'] .bp-gal-rest,
  .bp-gal[data-rest='3'] .bp-gal-rest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .bp-gal[data-rest='1'] .bp-gal-rest { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .bp-gal[data-rest='2'] .bp-gal-rest { grid-template-columns: minmax(0, 1fr); }
  .bp-gal[data-rest='3'] .bp-gal-rest a:first-child { grid-column: 1 / -1; }
  .bp-gal-rest a,
  .bp-gal[data-rest='1'] .bp-gal-rest a { aspect-ratio: auto; block-size: 100%; }
}
@media (min-width: 1100px) {
  .bp-gal-1 { min-block-size: 420px; }
}

/* ---------- lightbox (Task 58) — a native <dialog> ---------------- */
.bp-lb {
  inline-size: min(100vw - 2 * var(--site-pad), 1100px);
  max-block-size: calc(100vh - 2 * var(--site-pad));
  padding: var(--site-s4);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-r-sec);
  background: var(--surface-canvas);
  color: var(--bp-ink);
}
.bp-lb::backdrop { background: rgba(36, 33, 36, 0.72); }
.bp-lb-in { display: grid; gap: var(--site-s3); justify-items: center; }
.bp-lb-pos { margin: 0; font-size: var(--type-metadata-size-en); line-height: var(--type-metadata-lh-en); color: var(--bp-ink-muted); }
.bp-lb-pos:lang(fa) { font-size: var(--type-metadata-size-fa); line-height: var(--type-metadata-lh-fa); }
.bp-lb-img { display: block; max-inline-size: 100%; max-block-size: calc(100vh - 200px); inline-size: auto; block-size: auto; object-fit: contain; }
.bp-lb-ctl { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--site-s2); }
.bp-chev {
  display: inline-block;
  inline-size: 8px;
  block-size: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.bp-chev--prev { transform: rotate(-135deg); }
[dir='rtl'] .bp-chev { transform: rotate(-135deg); }
[dir='rtl'] .bp-chev--prev { transform: rotate(45deg); }

/* ---------- main column + factual rail (§12.2) --------------------
   Desktop >= 1100: main column beside the 348px rail; the rail is NOT
   sticky (no ruling requires it).
   Below 1100 the two column wrappers dissolve (display: contents) and
   the sections take the approved Tablet/Mobile order through `order`:
   About · Services · Opening hours · Location · Contact · More
   information. ONE DOM, one information architecture — the same
   markup reflowed, never a second template. The DOM keeps the Desktop
   grouping (main column, then rail), which is the reading order a
   screen reader follows at every width. */
.bp-cols { display: flex; flex-direction: column; gap: var(--bp-s8); }
.bp-col,
.bp-rail { display: contents; }
.bp-o-about { order: 1; }
.bp-o-svc { order: 2; }
.bp-o-hours { order: 3; }
.bp-o-rev { order: 4; }   /* v0.29.0, Reference A: reviews before Location on mobile */
.bp-o-loc { order: 5; }
.bp-o-contact { order: 6; }
.bp-o-more { order: 7; }
@media (min-width: 1100px) {
  .bp-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--bp-rail);
    gap: var(--bp-s8);
    align-items: start;
  }
  .bp-col,
  .bp-rail { display: block; min-inline-size: 0; }
  .bp-col > * + * { margin-block-start: var(--bp-s8); }
  .bp-rail > * + * { margin-block-start: var(--bp-s5); }
}

/* ---------- about (Task 57) --------------------------------------- */
.bp-about {
  font-size: 17px;
  line-height: 1.6;
  max-inline-size: 33rem;
  color: var(--bp-ink-body);
}
.bp-about:lang(fa) { font-size: 18px; line-height: 1.85; max-inline-size: 31.5rem; }
.bp-about p { margin: 0; }
.bp-about p + p { margin-block-start: var(--site-s3); }
.bp-more { margin-block-start: var(--site-s3); }
.bp-more > .bp-about { margin-block-start: var(--site-s3); }
.bp-more > summary {
  display: inline-block;
  min-block-size: 24px;
  color: var(--brand-core);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}
.bp-more > summary:lang(fa) { font-size: 15px; line-height: 1.6; }
.bp-more > summary::-webkit-details-marker { display: none; }
.bp-more[open] > summary { display: none; }

/* ---------- services (Task 53) ------------------------------------ */
.bp-svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.bp-svc-i {
  display: flex;
  gap: var(--site-s3);
  align-items: flex-start;
  padding-block: var(--site-s3);
  border-block-start: 1px solid var(--bp-border-soft);
  min-inline-size: 0;
}
.bp-svc-i:first-child { border-block-start: 0; }
.bp-svc-i > span:last-child { min-inline-size: 0; overflow-wrap: anywhere; }
.bp-svc-m {
  flex: 0 0 auto;
  inline-size: 18px;
  block-size: 18px;
  margin-block-start: 3px;
  border-radius: 3px;
  border: 1px solid #d3cabb;
  background: var(--surface-warm);
}
.bp-svc-t { display: block; font-weight: 500; font-size: 16px; line-height: 1.5; }
.bp-svc-t:lang(fa) { font-size: 17px; line-height: 1.7; }
.bp-svc-s { display: block; color: var(--bp-ink-muted); margin-block-start: 2px; font-size: 14px; line-height: 1.5; }
.bp-svc-s:lang(fa) { font-size: 15px; line-height: 1.7; }
@media (min-width: 700px) {
  .bp-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--site-s5); }
  .bp-svc-i:nth-child(2) { border-block-start: 0; }
}

/* ---------- opening hours (Task 56) --------------------------------
   The table is an English/Latin run in BOTH locales (§4.7). Its cells
   carry lang="en" dir="ltr", so on the Persian page each cell is
   aligned PHYSICALLY to its own side of the mirrored row — the day at
   the reading-start edge, the times at the far edge — rather than both
   collapsing to the middle, which is what dir="ltr" alone does inside
   an RTL table (measured on the board's own Persian frames). */
.bp-oh-now { display: flex; align-items: center; gap: var(--site-s2); flex-wrap: wrap; margin: 0 0 var(--site-s3); }
.bp-oh { inline-size: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.bp-oh th,
.bp-oh td { padding-block: 7px; border-block-start: 1px solid var(--bp-border-soft); vertical-align: top; }
.bp-oh tr:first-child th,
.bp-oh tr:first-child td { border-block-start: 0; }
.bp-oh-d { color: var(--bp-ink-muted); font-weight: 400; text-align: left; padding-inline-end: var(--site-s3); }
.bp-oh-t { text-align: right; white-space: nowrap; }
[dir='rtl'] .bp-oh-d { text-align: right; }
[dir='rtl'] .bp-oh-t { text-align: left; }
.bp-oh tr.is-today th,
.bp-oh tr.is-today td { font-weight: 600; color: var(--bp-ink); }
.bp-oh-note { margin: var(--site-s3) 0 0; color: var(--bp-ink-muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }

/* ---------- facts list: contact / more information (board .fl2) --- */
.bp-fl { margin: 0; font-size: 14px; line-height: 1.5; }
.bp-fl:lang(fa) { font-size: 15px; line-height: 1.7; }
.bp-fl-r {
  display: flex;
  gap: var(--site-s3);
  justify-content: space-between;
  align-items: baseline;
  padding-block: 9px;
  border-block-start: 1px solid var(--bp-border-soft);
}
.bp-fl-r:first-child { border-block-start: 0; }
.bp-fl dt { color: var(--bp-ink-muted); font-weight: 400; flex: 0 0 auto; }
.bp-fl dd { margin: 0; text-align: end; min-inline-size: 0; overflow-wrap: anywhere; }
.bp-fl dd a { color: var(--brand-core); display: inline-block; min-block-size: 24px; }
.bp-fl dd [lang='en'] { font-size: 14px; line-height: 1.5; }

/* Social links: the platform NAME, not an icon — the icon set is
   unselected (§10.4, §12.6) and an empty slot cannot tell one platform
   from another. Same 40px target the board's slots carried. */
.bp-soc { list-style: none; margin: var(--site-s3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--site-s2); }
.bp-soc a {
  display: inline-flex;
  align-items: center;
  min-block-size: 40px;
  padding-inline: var(--site-s3);
  border: 1px solid var(--bp-border-pill);
  border-radius: var(--bp-r-ctl);
  background: var(--surface-canvas);
  color: var(--bp-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
}
.bp-soc a:hover { background: var(--fill-hover); }
/* MVP-018 (018-WP2, PR-V4): glyph before the name. */
.bp-soc a { gap: var(--site-s2); }
.bp-soc .soc-ic { flex: 0 0 auto; }

/* ---------- location (Tasks 54-55, BP-2) --------------------------- */
.bp-loc { display: grid; gap: var(--site-s4); grid-template-columns: minmax(0, 1fr); }
.bp-map {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--bp-border-logo);
  border-radius: 5px;
  overflow: hidden;
  background: #f3efe8;
}
.bp-map iframe { display: block; inline-size: 100%; block-size: 100%; border: 0; }
@media (min-width: 700px) {
  .bp-loc.has-map { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .bp-map { aspect-ratio: 4 / 3; }
}
.bp-addr { font-style: normal; color: var(--bp-ink-body); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.bp-addr:lang(fa) { font-size: 17px; line-height: 1.75; }
.bp-loc-act { margin: var(--site-s4) 0 0; }

/* ---------- Mobile < 700 (D-49: only H1/H2 take fluid treatment) --- */
@media (max-width: 699px) {
  .bp-n { font-size: 26px; }
  .bp-logo { inline-size: 60px; block-size: 60px; }
  .bp-svc-i:nth-child(2) { border-block-start: 1px solid var(--bp-border-soft); }
}

/* ---------- focus ------------------------------------------------- */
.bpwrap a:focus-visible,
.bpwrap button:focus-visible,
.bpwrap summary:focus-visible {
  outline: 2px solid var(--brand-core);
  outline-offset: 2px;
}

/* ---------- Directory Search result → Business Profile (MVP-011B) --
   The roadmap's MVP-011B row: "Homepage business-card links activate;
   nothing is rebuilt." The approved result row is unchanged; only its
   name becomes the link to the real profile. Same colour, weight and
   size as before — the underline is the affordance, not a new colour. */
a.hp-res-n { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.hp-res-n:hover { color: var(--brand-core); }
a.hp-res-n:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }

/* ============================================== HOMEPAGE — MVP-014 LIVE
   Build: MVP-014 (target release v0.12.0). The Editorial Hero, Education and Latest
   Articles become LIVE. NOTHING BELOW CHANGES A COMPOSITION: section order,
   backgrounds, container widths, type, the Hero geometry and diagonal, and
   every card proportion are exactly the shipped HOMEPAGE-SHELL values.
   What is added is only what a real destination and a real photograph need:

   1. A real image fills the APPROVED media box (.hp-img keeps its size,
      ratio floor and clip; the image is absolutely positioned and cropped
      with object-fit), so upload shape can never change the geometry. No
      image → the approved hatch placeholder, untouched.
   2. Link treatments taken from the archived board CSS (css.py): View all
      is brand + permanent underline (.viewall); a card title is the anchor
      and its ::after overlay makes the whole card the target (.cardlink);
      the Education CTA is the board's .link label; list rows are one
      anchor each (a.eduitem / a.nitem).
   3. The single-story Hero: the one slide takes the full track, because
      the peek composition needs a neighbour to peek at.
   ============================================================ */
.hp-img > img {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.hp-htrack.is-single .hp-hslide { flex-basis: 100%; }
/* Real headlines are less cooperative than board fixtures: an unbroken
   word longer than the copy column was CLIPPED by the slide's overflow.
   Minimum structural fix — wrap inside the word; no size, clamp or
   geometry changes. */
.hp-hslide .hp-display,
.hp-eduf .hp-h1,
.hp-nmain .hp-h1,
.hp-eduitem-t,
.hp-nitem-t { overflow-wrap: anywhere; }
.hp-hctas .btn-primary:hover,
.hp-hctas .btn-primary:focus { color: #fff; }

.hp-viewall.is-live {
  color: var(--brand-core);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.hp-viewall.is-live:hover { color: var(--brand-core-hover); }

.hp-eduf,
.hp-nmain { position: relative; }
.hp-cardlink { color: inherit; text-decoration: none; }
.hp-cardlink::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.hp-cardlink:hover { color: var(--brand-core); }
.hp-link.is-live {
  color: var(--brand-core);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hp-rowlink { display: block; color: inherit; text-decoration: none; }
.hp-rowlink:hover { color: inherit; }
.hp-rowlink:hover .hp-eduitem-t,
.hp-rowlink:hover .hp-nitem-t { color: var(--brand-core); }
.hp-viewall.is-live:focus-visible,
.hp-cardlink:focus-visible,
.hp-rowlink:focus-visible {
  outline: 2px solid var(--brand-core);
  outline-offset: 2px;
}

/* ============================================== EDITORIAL PAGES
   Build: MVP-014 (MVP-014A + MVP-014B, WBS Tasks 85-87), target release v0.12.0

   REFERENCE-DRIVEN. Every metric below is transcribed from the OWNER-
   APPROVED DESIGN-A.4 Editorial board (Development/editorial-final/
   resaneh-editorial.html, Video-first frames B1 … B6 and the no-related
   state; DESIGN_SYSTEM.md §13, ED-1 … ED-9), not composed here.

   TYPE. The §3.3 editorial scale is used unchanged through the existing
   tokens. The only contextual tiers are ED-2 (Display: EN 56/44/34,
   FA 52/42/33) and ED-4 (Lead: EN 24/1.55, FA 24/1.80), and the only
   face exception is ED-3 (Noto Serif / Noto Naskh Arabic, 600, on the
   Display headline alone). D-47 measure: EN 33rem, FA 31.5rem.

   METRICS FOLLOW THE ELEMENT'S LANGUAGE (:lang), as the Business Profile
   does: under D4 an English story renders inside Persian chrome, and it
   must take the English tier and face, not the page's.

   BRAND RESTRAINT (ED-9). #960546 appears only on kickers, inline links,
   Read more and the See all link — never as a section, block or panel
   fill.

   [D] UNFROZEN, scoped as --ed-* so none can be mistaken for a token: the
   board's warm ink and rule colours, the figure ground and the card
   grounds.

   ONE RECORDED DEPARTURE, ON THE CATEGORY / BUSINESS PROFILE PRECEDENT
   (TASK-MVP-008 §10, TASK-MVP-011): the content column is --site-maxw
   with --site-pad, so every editorial edge aligns with the Owner-verified
   Header and Footer instead of the board's own 1312px wrap. The video
   stays TRUE edge-to-edge (ED-1: measured 1440/1440, 834/834, 390/390).

   BREAKPOINTS are 700px and 1100px, the board's container thresholds as
   the media queries production uses everywhere else.
   ============================================================ */
.edwrap {
  --ed-ink: #242124;
  --ed-ink2: #3a3538;
  --ed-ink3: #6b6460;
  --ed-rule: #e2dcd2;
  --ed-rule2: #cfc7ba;
  --ed-fig: #e7e0d6;
  --ed-card-lead: #ede6dc;
  --ed-card: #fffdfa;
  --ed-video: #14181f;
  --ed-s10: 40px;

  background: var(--surface-warm);
  color: var(--ed-ink);
  font-family: var(--font-latin);
  padding-block-end: var(--ed-s10);
}
.edwrap :lang(fa) { font-family: var(--font-persian); }
.edwrap :lang(en) { font-family: var(--font-latin); }
.ed-cont {
  max-inline-size: var(--site-maxw);
  margin-inline: auto;
  padding-inline: var(--site-pad);
}
.edwrap figure { margin: 0; }

/* ---- shared type, from the §3.3 tokens ---- */
.ed-t-h1 { margin: 0; font-weight: 600; font-size: var(--type-h1-size-en); line-height: var(--type-h1-lh-en); color: var(--ed-ink); }
.ed-t-h1:lang(fa) { font-size: var(--type-h1-size-fa); line-height: var(--type-h1-lh-fa); }
.ed-t-h2 { font-weight: 600; font-size: var(--type-h2-size-en); line-height: var(--type-h2-lh-en); }
.ed-t-h2:lang(fa) { font-size: var(--type-h2-size-fa); line-height: var(--type-h2-lh-fa); }
.ed-t-h3 { font-weight: 600; font-size: var(--type-h3-size-en); line-height: var(--type-h3-lh-en); }
.ed-t-h3:lang(fa) { font-size: var(--type-h3-size-fa); line-height: var(--type-h3-lh-fa); }
@media (max-width: 699px) {
  .ed-t-h1, .ed-t-h1:lang(fa) { font-size: 26px; }
  .ed-t-h2 { font-size: 21px; }
  .ed-t-h2:lang(fa) { font-size: 22px; }
}
.ed-kicker {
  display: inline-block;
  color: var(--brand-core);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ed-kicker:lang(fa) { font-size: 13px; line-height: 1.6; letter-spacing: 0; text-transform: none; }

/* ---- D4 language notice ---- */
.ed-notice {
  margin: var(--site-s5) 0 0;
  padding: var(--site-s3) var(--site-s4);
  border-inline-start: 2px solid var(--ed-rule2);
  background: var(--surface-canvas);
  color: var(--ed-ink2);
  font-size: var(--type-small-size-en);
  line-height: var(--type-small-lh-en);
}
.ed-notice:lang(fa) { font-size: var(--type-small-size-fa); line-height: var(--type-small-lh-fa); }

/* ---- editorial header: kicker · Display · Lead · contributor rail ---- */
.ed-h {
  display: grid;
  gap: var(--site-s5);
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--site-s6) var(--site-s5);
}
@media (min-width: 1100px) {
  .ed-h { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--ed-s10); align-items: start; }
  .ed-h--solo { grid-template-columns: minmax(0, 1fr); }
  .ed-by { border-inline-start: 1px solid var(--ed-rule); padding-inline-start: var(--site-s5); }
}
.ed-h-main { min-inline-size: 0; }
.ed-h-k { margin: 0; }
.edwrap .ed-display {
  margin: var(--site-s3) 0 0;
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ed-ink);
  overflow-wrap: break-word;
}
.edwrap .ed-display:lang(fa) {
  font-family: 'Noto Naskh Arabic', var(--font-persian), serif;
  font-size: 52px;
  line-height: 1.45;
  letter-spacing: 0;
}
@media (min-width: 700px) and (max-width: 1099px) {
  .edwrap .ed-display { font-size: 44px; }
  .edwrap .ed-display:lang(fa) { font-size: 42px; }
}
@media (max-width: 699px) {
  .edwrap .ed-display { font-size: 34px; }
  .edwrap .ed-display:lang(fa) { font-size: 33px; }
}
.ed-lead {
  margin: var(--site-s4) 0 0;
  max-inline-size: var(--measure-en);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.55;
  color: var(--ed-ink2);
}
.ed-lead:lang(fa) { max-inline-size: var(--measure-fa); line-height: 1.80; }
.ed-by { min-inline-size: 0; }
.ed-by-r { display: flex; align-items: center; gap: var(--site-s3); }
.ed-av {
  flex: 0 0 auto;
  inline-size: 46px;
  block-size: 46px;
  border-radius: 50%;
  background: #20304a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
}
.ed-by-x { min-inline-size: 0; }
.ed-by-n { display: block; font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--ed-ink); overflow-wrap: anywhere; }
.ed-by-n:lang(fa) { font-size: 18px; line-height: 1.6; }
.ed-role {
  display: inline-block;
  margin-block-start: var(--site-s2);
  padding: 1px 7px;
  border-radius: 2px;
  border: 1px solid var(--ed-rule2);
  color: var(--ed-ink3);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
}
.ed-role:lang(fa) { font-size: 13px; line-height: 1.7; }

/* ---- the video: 16:9 in the SITE CONTENT CONTAINER ----
   MVP-014 FINAL VIDEO COMPOSITION CORRECTION (Owner, pre-release, target
   v0.12.0). ED-1's approved board drew the video TRUE edge to edge; the Owner
   has superseded that for the video only: the media box now sits in the SAME
   container as the Global Header (.hdr .cont: --site-maxw + --site-pad), so
   its edges align with the Header logo and the Header's right edge, and on
   Tablet / Mobile it keeps the standard --site-pad gutter. Hierarchy:
   header / title  >  video (container width)  >  meta + body (the D-47
   measure, narrower). Same tokens as .hdr .cont, so the two cannot drift. */
.ed-bleed {
  max-inline-size: var(--site-maxw);
  margin-inline: auto;
  padding-inline: var(--site-pad);
}
.ed-vid {
  position: relative;
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ed-video);
  overflow: hidden;
}
/* MVP-014 pre-release correction: the slot owns the geometry. The image is
   taken OUT of flow (as .hp-img > img already is), so its intrinsic size can
   never feed the box's automatic minimum height; it covers the 16:9 box. */
.ed-vid img { position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }

/* Play control — restrained editorial circle (final composition correction):
   64 / 56 / 48 px by breakpoint, a quiet ink fill with a fine white rule, the
   brand colour only on hover / focus. No YouTube-style red, no heavy ring. */
.ed-play {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  translate: -50% -50%;
  inline-size: 64px;
  block-size: 64px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 24, 31, 0.55);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
[dir='rtl'] .ed-play { translate: 50% -50%; }
.ed-play::after {
  content: "";
  inline-size: 0;
  block-size: 0;
  margin-inline-start: 4px;
  border-block-start: 9px solid transparent;
  border-block-end: 9px solid transparent;
  border-inline-start: 15px solid #fff;
}
/* A play glyph is a media control, not a direction: it points the same
   way in both locales (the board's own `[dir=rtl] ... scale:-1 1`). */
[dir='rtl'] .ed-play::after { scale: -1 1; margin-inline-start: 0; margin-inline-end: 4px; }
@media (max-width: 1099px) { .ed-play { inline-size: 56px; block-size: 56px; } }
@media (max-width: 699px) {
  .ed-play { inline-size: 48px; block-size: 48px; }
  .ed-play::after { border-block-start-width: 7px; border-block-end-width: 7px; border-inline-start-width: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ed-play { transition: none; } }

/* ---- the in-page video: click-to-load gate (MVP-014 pre-release Owner
   correction — Video-first = EMBEDDED IN PAGE). One control covers the whole
   16:9 poster: the no-JS <a> to YouTube, or — once editorial-video.js runs —
   the Play <button>. The iframe is inserted into the SAME box, absolutely
   positioned, so nothing moves when it arrives. */
.ed-vid-go {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: linear-gradient(to top, rgba(20, 24, 31, 0.4), rgba(20, 24, 31, 0) 24%);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}
.ed-vid-go[hidden] { display: none; }
.ed-vid-go:hover .ed-play { background: var(--brand-core); border-color: var(--brand-core); }
.ed-vid-go:focus-visible { outline: 2px solid var(--brand-core); outline-offset: -2px; }
.ed-vid-go:focus-visible .ed-play {
  background: var(--brand-core);
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--brand-core);
}
/* The privacy disclosure stays legible but secondary: small, regular weight,
   slightly muted, bottom-start of the box. */
.ed-vid-note {
  position: absolute;
  inset-block-end: var(--site-s3);
  inset-inline-start: var(--site-s4);
  font-family: var(--font-latin);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.86);
}
.ed-vid-go:lang(fa) .ed-vid-note { font-family: var(--font-persian); font-size: 12px; line-height: 1.6; letter-spacing: 0; }
.ed-vid-frame { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.ed-vid.is-playing .ed-vid-poster { visibility: hidden; }

/* ---- meta strip ---- */
.ed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--site-s3) 20px;
  padding-block: var(--site-s4);
  border-block-end: 1px solid var(--ed-rule);
  font-size: var(--type-small-size-en);
  line-height: var(--type-small-lh-en);
  color: var(--ed-ink2);
}
.ed-meta:lang(fa) { font-size: var(--type-small-size-fa); line-height: var(--type-small-lh-fa); }
.ed-meta-l, .ed-meta-r { display: flex; flex-wrap: wrap; align-items: center; gap: var(--site-s3) var(--site-s4); }
.ed-meta-r { margin-inline-start: auto; }
.ed-sep { color: var(--ed-rule2); }
.ed-meta a {
  display: inline-flex;
  align-items: center;
  min-block-size: 24px;
  color: var(--brand-core);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- description, centred at the D-47 measure ---- */
.ed-desc { padding-block: var(--ed-s10); display: flex; justify-content: center; }
@media (max-width: 699px) { .ed-desc { padding-block: var(--site-s6); } }
.ed-measure { inline-size: 100%; max-inline-size: var(--measure-en); }
.ed-measure:lang(fa) { max-inline-size: var(--measure-fa); }
.ed-measure p {
  margin: 0;
  color: var(--ed-ink2);
  font-size: var(--type-body-size-en);
  line-height: var(--type-body-lh-en);
  overflow-wrap: break-word;
}
.ed-measure p:lang(fa) { font-size: var(--type-body-size-fa); line-height: var(--type-body-lh-fa); }
.ed-measure p + p { margin-block-start: var(--site-s4); }

/* ---- section openers ---- */
.ed-sect { padding-block: var(--ed-s10); }
@media (max-width: 699px) { .ed-sect { padding-block: var(--site-s6); } }
.ed-sect-k { display: flex; align-items: center; gap: var(--site-s3); margin: 0; }
.ed-sect-k::after { content: ""; flex: 1; max-inline-size: 110px; border-block-start: 1px solid var(--ed-rule2); }
.ed-sect-t { margin: var(--site-s3) 0 0; }

/* ---- Related Articles: numbered zig-zag rows (ED-7) ---- */
.ed-rel-grid { display: grid; gap: var(--site-s6); margin-block-start: var(--site-s5); }
@media (min-width: 1100px) {
  .ed-rel-lead { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: var(--ed-s10); align-items: start; }
  .ed-rel-lead .ed-rel-grid { margin-block-start: 0; }
}
.ed-num { display: flex; align-items: baseline; gap: var(--site-s3); margin: 0; }
.ed-num b { font-weight: 400; font-size: 26px; line-height: 1; color: var(--ed-ink3); }
.ed-num::after { content: ""; flex: 1; max-inline-size: 72px; border-block-start: 1px solid var(--ed-rule2); transform: translateY(-7px); }
.ed-zz { display: grid; gap: var(--site-s5); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 700px) {
  .ed-zz { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--site-s6); }
  .ed-zz--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .ed-zz--flip > .ed-fig { order: -1; }
}
@media (min-width: 1100px) { .ed-zz { gap: var(--ed-s10); } }
.ed-zz-x { min-inline-size: 0; }
.ed-zz-t { margin: var(--site-s3) 0 0; color: var(--ed-ink); overflow-wrap: break-word; }
.ed-zz-d {
  margin: var(--site-s3) 0 0;
  max-inline-size: var(--measure-en);
  color: var(--ed-ink2);
  font-size: var(--type-small-size-en);
  line-height: var(--type-small-lh-en);
}
.ed-zz-d:lang(fa) { max-inline-size: var(--measure-fa); font-size: var(--type-small-size-fa); line-height: var(--type-small-lh-fa); }
.ed-zz-m {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-block-size: 24px;
  margin-block-start: var(--site-s4);
  color: var(--brand-core);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.ed-zz-m:lang(fa) { font-size: 15px; line-height: 1.7; }
.ed-zz-m em, .ed-more-a em { font-style: normal; display: inline-block; }
[dir='rtl'] .ed-zz-m em, [dir='rtl'] .ed-more-a em, [dir='rtl'] .ed-arrow em { scale: -1 1; }
.ed-zz-m:hover { text-decoration: underline; }

/* ---- figures: the board's neutral ground, never a broken image ---- */
.ed-fig {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--ed-fig);
  aspect-ratio: 16 / 10;
}
/* MVP-014 pre-release correction: out of flow, so a portrait or small
   upload cannot stretch the card (measured: a 409x488 upload grew the 834px
   Magazine lead figure from 300px to 490px tall). */
.ed-fig img { position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }

/* ---- More Articles + index cards (the approved .st1 / .st2) ---- */
.ed-more-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--site-s4);
  flex-wrap: wrap;
  border-block-start: 1px solid var(--ed-rule2);
  padding-block-start: var(--site-s5);
}
.ed-more-a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-block-size: 24px;
  color: var(--brand-core);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ed-more-a:lang(fa) { font-size: 16px; line-height: 1.7; }
.ed-more-g { display: grid; gap: 20px; margin-block-start: var(--site-s5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .ed-more-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ed-more-g { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr); } }
.ed-st1 { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ed-card-lead); text-decoration: none; color: inherit; }
@media (min-width: 700px) {
  .ed-st1 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
  /* §13.8: a definite block-size PLUS aspect-ratio computes the INLINE
     size and overrides the track — side by side, the cover takes its
     width from the track and its height from the row. */
  .ed-st1 .ed-fig { aspect-ratio: auto; block-size: 100%; min-block-size: 300px; }
}
.ed-st1-x { padding: 20px; display: flex; flex-direction: column; justify-content: center; min-inline-size: 0; }
.ed-st2 { display: block; text-decoration: none; color: inherit; border: 1px solid var(--ed-rule); background: var(--ed-card); }
.ed-st2-x { display: block; padding: var(--site-s4); }
.ed-st-t { display: block; margin: var(--site-s2) 0 0; color: var(--ed-ink); overflow-wrap: break-word; }
.ed-st-r { display: block; margin: var(--site-s3) 0 0; color: var(--ed-ink3); font-size: var(--type-small-size-en); line-height: var(--type-small-lh-en); }
.ed-st-r:lang(fa) { font-size: var(--type-small-size-fa); line-height: var(--type-small-lh-fa); }
.ed-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  border: 1px solid var(--ed-rule2);
  margin-block-start: var(--site-s4);
  color: var(--ed-ink2);
}
.ed-arrow em { font-style: normal; line-height: 1; display: inline-block; }
.ed-st1:hover .ed-st-t, .ed-st2:hover .ed-st-t { color: var(--brand-core); }
.ed-st1:focus-visible, .ed-st2:focus-visible, .ed-zz-m:focus-visible, .ed-more-a:focus-visible, .ed-meta a:focus-visible, .ed-pager a:focus-visible {
  outline: 2px solid var(--brand-core);
  outline-offset: 2px;
}
.ed-endrule { border-block-start: 1px solid var(--ed-rule2); margin-block-start: var(--ed-s10); }

/* ---- Magazine / Education index (no bespoke contract — see the view) ---- */
.ed-ix { padding-block-start: var(--site-s6); }
.ed-ix-h { padding-block-end: var(--site-s5); border-block-end: 1px solid var(--ed-rule2); }
.ed-ix-d {
  margin: var(--site-s2) 0 0;
  max-inline-size: var(--measure-en);
  color: var(--ed-ink2);
  font-size: var(--type-small-size-en);
  line-height: var(--type-small-lh-en);
}
.ed-ix-d:lang(fa) { max-inline-size: var(--measure-fa); font-size: var(--type-small-size-fa); line-height: var(--type-small-lh-fa); }
@media (min-width: 1100px) {
  /* The lead card spans two tracks of the approved 1.9fr / 1fr / 1fr grid
     only on page 1 of an index; every later card is a standard card. */
  .ed-ix-g { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-ix-g > .ed-st1 { grid-column: span 2; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .ed-ix-g > .ed-st1 { grid-column: 1 / -1; }
}
.ed-empty { margin: var(--site-s6) 0; color: var(--ed-ink2); }
.ed-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--site-s3) var(--site-s5);
  margin-block-start: var(--site-s6);
  font-size: var(--type-small-size-en);
}
.ed-pager:lang(fa) { font-size: var(--type-small-size-fa); }
.ed-pager a { display: inline-flex; align-items: center; min-block-size: 24px; color: var(--brand-core); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================== HOMEPAGE — MVP-012 LIVE
   Build: MVP-012 (target release v0.13.0). Today on Resaneh, Resaneh
   Perks and Latest Offers become LIVE. NOTHING BELOW CHANGES A
   COMPOSITION: section order, grounds, heading typography, the Perks
   geometry, caption reserve and plate grounds, the Offers card and
   carousel, and the Today ruled list are the shipped HOMEPAGE-SHELL-B
   values. What is added is only what live data and real destinations
   need:

   1. Real destinations. The Perks cell and the Offer card take the
      MVP-014 stretched-link pattern (.hp-cardlink: the title is the
      anchor, its ::after covers the card), so each has ONE destination
      and the accessible name is the title alone. The Today source
      affordance becomes a real anchor with the approved board treatment
      (brand + permanent underline) only when its destination exists.
   2. Perks inventory states. (Pre-release Owner correction, 21 Sep
      2026, section 10.7b: the BAND / QUIET modes of the first delivery
      are gone.) The service marks each cell outside a breakpoint's
      whole-row tier (hp-pkx-*) and its Mobile panel (data-p); data-d /
      data-t / data-m on the section give the count, 0 darkens the
      section at that breakpoint only. The Drop plays no part.
   3. A real Tier-1 Creative fills the approved 4:3 box and inherits its
      geometry (the MVP-014 slot-owns-geometry rule), with the frozen
      render grade (section 10.4a). No image -> the plate ground, as before.
   4. Ruling E's responsive Location for Business cells.
   ============================================================ */

/* ---------- 1. one destination per card -------------------------- */
.hp-pkcell,
.hp-locard { position: relative; }
.hp-pklink,
.hp-lolink { color: inherit; }
.hp-pklink:hover,
.hp-lolink:hover { color: var(--brand-core); }
.hp-pklink:focus-visible,
.hp-lolink:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }
.hp-pklink::after,
.hp-lolink::after { border-radius: 12px; }
.hp-lolink::after { border-radius: var(--site-r-md); }

/* LO-10a: an Offer without a label keeps the reserved row at the same
   height as the chip -- same padding and border box, border invisible. */
.hp-lolabel.is-empty { border-color: transparent; }


/* ---------- 2. Perks inventory states ---------------------------- */
/* Pre-release correction: the service marks every cell that falls outside
   a breakpoint (hp-pkx-d / -t / -m) from grid-cell capacity; the section
   element carries the count per breakpoint and 0 darkens it there only.
   No mode, no nth-child count -- the numbers live in one place, the plan. */
@media (max-width: 699px) {
  .hp-pkx-m { display: none; }
  .hp-pk[data-m='0'] { display: none; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .hp-pkx-t { display: none; }
  .hp-pk[data-t='0'] { display: none; }
}
@media (min-width: 1100px) {
  .hp-pkx-d { display: none; }
  .hp-pk[data-d='0'] { display: none; }
}
/* A section darkened at one breakpoint must not leave the same-ground
   hairline (departure 4) on Directory Search, which then meets Today. */
@media (max-width: 699px) {
  .hp .hp-pk[data-m='0'] + .hp-g-canvas { border-block-start: 0; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .hp .hp-pk[data-t='0'] + .hp-g-canvas { border-block-start: 0; }
}
@media (min-width: 1100px) {
  .hp .hp-pk[data-d='0'] + .hp-g-canvas { border-block-start: 0; }
}

/* ---------- 3. the Tier-1 Creative -------------------------------- */
.hp-pkcreative { position: relative; overflow: hidden; }
/* v0.42.0 (Owner ruling 4, 27 Oct 2026; DESIGN_SYSTEM 10.4a amended): the
   Creative is shown WHOLE (contain) over a blurred copy of itself, inside
   the unchanged frame (4:3, Large and Mobile Full Row geometry alike). The
   .mfit layer fills the frame absolutely, because a Large cell's height
   comes from the grid, not from an aspect ratio. House grade, render stage,
   applies to the photograph only (never compounded on the blurred fill). */
.hp-pkcreative > .mfit { position: absolute; inset: 0; background: transparent; }
.hp-pkcreative > .mfit .mfit__img { filter: saturate(0.92) contrast(1.04); }

/* ---------- 4. Ruling E: Place . Postcode, per-module fallback ------
   One line. The two runs are separate flex items in DOM order postcode,
   place, laid out row-reverse so they READ "Place . Postcode"; with
   wrap on, when both do not fit the caption width the PLACE is the item
   that wraps to line two, which the one-line box clips -- leaving
   postcode-only, per module, with no measurement script. The run is
   Latin in both locales (D-55 clause A) and laid out LTR; it is
   anchored to the inline start of the page in each direction. */
.hp-pkloc {
  display: flex;
  flex-flow: row-reverse wrap;
  justify-content: flex-end;
  direction: ltr;
  white-space: normal;
  block-size: calc(var(--site-meta) * var(--site-meta-lh));
  overflow: hidden;
  font-family: var(--font-latin);
}
html[dir='rtl'] .hp-pkloc { justify-content: flex-start; }
html[lang='fa'] .hp-pkloc { font-family: var(--font-latin); }
.hp-pkpc,
.hp-pkplace { white-space: nowrap; }
.hp-pkplace { margin-inline-end: 0.3em; }
.hp-lonav[hidden] { display: none; }

/* ==================================================================
   CATEGORY PAGE — LIVE. MVP-013 (target release v0.14.0).

   Adds the three sections MVP-008 deliberately did not style because
   nothing eligible existed: the Filters and Sort shell (SORT ONLY —
   LAUNCH-31 defers City / Service / Verified / Package), the Ranked
   Business Heatmap, and `Offers in this Category`. Every rule MVP-008
   shipped above is UNTOUCHED.

   THE HEATMAP IS A REAL SQUARIFIED TREEMAP (DESIGN_SYSTEM.md §11.2).
   There are no tile-size classes here and no grid template: the server
   packs the frozen weight curve once per breakpoint and hands each tile
   three fractional rectangles as custom properties. This file only maps
   the right set by media query. Replacing it with a CSS grid, masonry
   or per-breakpoint template would be a different component.

   FIELD GEOMETRY — FROZEN, Owner decision B2, 22 September 2026. The
   reference fields are Desktop 1216x700, Tablet 786x860, Mobile
   358x1420, adopted as ASPECT RATIOS, not pixel dimensions: the field
   takes the content width and derives its height from the ratio, so
   one packing scales to any viewport with no re-pack and no JS.

   GUTTER AND RADIUS ARE ABSOLUTE PIXELS and do not scale with the
   field (B2): 3px Desktop and Tablet, 2px Mobile, radius 3px. The
   gutter is applied as a HALF-GUTTER MARGIN on all four sides of every
   tile, which reproduces the approved board exactly — 3px between
   neighbours and the board's own 1.5px inset at the field edge.

   BREAKPOINTS are this file's own 700px and 1100px, which are the
   board's container-query thresholds expressed as the media queries
   production already uses: Mobile < 700, Tablet 700-1099, Desktop
   >= 1100.

   COLOUR — Owner amendment, 22 September 2026 (§11.3a). Three tones,
   banded by rendered rank: --surface-heat-high / -mid / -low. No
   fourth colour, no gradient, no interpolation. #960546 stays an
   Offer/brand accent and is NEVER a tile fill.

   NO BORDER, HAIRLINE OR SHADOW ON A LOW TILE. LOW is #F8F6F3, which
   is also this page's own background, so a LOW tile is separated from
   the page by the gutter alone. That is a MEASURED CONSEQUENCE of the
   approved palette, recorded in TASK-MVP-013.md §9.5 observation 2,
   and the Owner has explicitly decided to see the real implementation
   before any remedy. Adding one here would be a material visual
   departure under Protocol §2B.

   CONTENT IS DECIDED ON THE SERVER. The per-breakpoint hx-no-*-*
   classes below only HIDE what the drawn box cannot hold; the budget
   itself is computed in App\Core\CategoryHeatmap from measured values.
   Nothing here measures anything at runtime.

   NOTHING INSIDE A TILE MAY SHRINK (§11.8, constraint 6): the budget
   decides what appears, and a flex child left to shrink would be
   squashed below its own clamp height and collide with its neighbour.

   THE CSS `font` SHORTHAND IS NEVER USED (§11.8, constraint 1).
   ================================================================== */

/* ---------- Filters and Sort (board .bar) — SORT ONLY ------------- */
.cat-bar-f {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--site-s3);
}
.cat-bar-l {
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: var(--site-meta);
  line-height: var(--site-meta-lh);
  color: var(--text-secondary);
}
html[lang='fa'] .cat-bar-l { font-family: var(--font-persian); }
.cat-bar-s {
  min-block-size: 44px; /* SC 2.5.8 */
  padding-inline: var(--site-s3);
  border: 1px solid var(--border-interactive);
  border-radius: var(--cat-r);
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: var(--type-dir-body-size-en);
  line-height: var(--type-dir-body-lh-en);
}
html[lang='fa'] .cat-bar-s {
  font-family: var(--font-persian);
  font-size: var(--type-dir-body-size-fa);
  line-height: var(--type-dir-body-lh-fa);
}
.cat-bar-b {
  min-block-size: 44px;
  padding-inline: var(--site-s4);
  border: 1px solid var(--brand-core);
  border-radius: var(--cat-r);
  background: var(--brand-core);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: var(--site-micro);
  line-height: var(--site-micro-lh);
}
html[lang='fa'] .cat-bar-b { font-family: var(--font-persian); }
.cat-bar-b:hover { background: var(--brand-core-hover); border-color: var(--brand-core-hover); }
.cat-bar-b:active { background: var(--brand-core-pressed); border-color: var(--brand-core-pressed); }

/* ---------- results header (board .res__h) ------------------------ */
.cat-results { display: grid; gap: var(--site-s4); }
.cat-res-h { display: grid; gap: var(--site-s2); }
.cat-res-h .cat-h3 { margin: 0; }
.cat-res-c {
  margin: 0;
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: var(--site-meta);
  line-height: var(--site-meta-lh);
  color: var(--text-muted);
}
html[lang='fa'] .cat-res-c { font-family: var(--font-persian); }

/* ---------- v0.29.0: the heatmap (relevance key, field, tiles) was
   REMOVED with the Business list. Only the Offer badge, still used by
   "Offers in this category", is kept. ------------------------------ */
.hx__badge {
  align-self: flex-start;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--brand-core);
  color: #fff;
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: var(--site-micro);
  line-height: var(--site-micro-lh);
  white-space: nowrap;
}
html[lang='fa'] .hx__badge { font-family: var(--font-persian); }

/* ---------- Offers in this category (board .offs) -----------------
   CONDITIONAL: with no eligible Offer the section is ABSENT from the
   DOM, so there is no empty-state rule here and none is needed. A
   wrapped row, not a scripted carousel: the approved board's nav
   arrows would be controls that change nothing without JavaScript,
   and MVP-008's contract forbids drawing one that does. */
.cat-offs { display: grid; gap: var(--site-s4); }
.cat-offs .cat-h3 { margin: 0; }
.cat-offs-l {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--site-s3);
}
@media (min-width: 700px) { .cat-offs-l { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-offs-l { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-off {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--site-s2);
  padding: var(--site-s4);
  border: 1px solid var(--border-container);
  border-radius: var(--cat-r);
  background: var(--surface-subtle);
}
.cat-off-t {
  margin: 0;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: var(--type-card-title-size-en);
  line-height: var(--type-card-title-lh-en);
  color: var(--text-primary);
}
html[lang='fa'] .cat-off-t {
  font-family: var(--font-persian);
  font-size: var(--type-card-title-size-fa);
  line-height: var(--type-card-title-lh-fa);
}
.cat-off-m {
  margin: 0;
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: var(--site-meta);
  line-height: var(--site-meta-lh);
  color: var(--text-muted);
}
html[lang='fa'] .cat-off-m { font-family: var(--font-persian); }
.cat-off-a {
  margin-block-start: auto;
  min-block-size: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: var(--site-s3);
  border: 1px solid var(--border-interactive);
  border-radius: var(--cat-r);
  background: var(--surface-canvas);
  color: var(--text-strong);
  text-decoration: none;
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: var(--site-micro);
  line-height: var(--site-micro-lh);
}
html[lang='fa'] .cat-off-a { font-family: var(--font-persian); }
.cat-off-a:hover { background: var(--fill-hover); }

/* ---------- focus -------------------------------------------------
   The same visible focus treatment .bpwrap already establishes for the
   Business Profile, applied to this page's links and to the Other
   categories disclosure. The heatmap tile overrides the offset to -2px
   because a tile sits flush against its neighbours and an outward
   outline would be clipped by the next rectangle. */
/* `summary` was in this list while the Other-categories disclosure
   existed. The final Owner correction of 23 September 2026 removed
   the last <summary> from this page, so the selector went with it
   rather than staying as a rule matching nothing. */
.catwrap a:focus-visible,
.catwrap select:focus-visible,
.catwrap button:focus-visible {
  outline: 2px solid var(--brand-core);
  outline-offset: 2px;
}
.catwrap .hx:focus-visible { outline-offset: -2px; }

/* ============================================================
   MVP-017 (017-WP1) — STATIC & ESSENTIAL PAGES: the shared page
   shell and the legal DOCUMENT template (Privacy · Terms · Cookies).

   APPROVED contract: DESIGN-A.4 "Static & Essential Pages",
   docs/design/A4-static-pages/APPROVAL.md — SP-D1 (shell), SP-D13…
   SP-D18 (document, links, lists, legal date), SP-D26 (fallback
   notice), SP-D27 (empty state), SP-D28 (responsive / RTL / 320).
   Transcribed from the approved board stylesheet
   docs/design/A4-static-pages/source/static-pages.css — the WP1
   subset only; the About (017-WP2) and Contact (017-WP3) rules are
   added by those work packages.

   No new colour, font, radius scale, spacing scale, shadow or icon.
   The three --sp-* inks below are EXISTING values already named on
   this page as --ed-ink / --ed-ink2 / --ed-rule (§13); they are
   re-declared here only because those are scoped to .edwrap.
   Composition values (section rhythm, measures) are [D] values in the
   §10.4 sense.
   ============================================================ */
.sp {
  --sp-ink: #242124;   /* = --ed-ink */
  --sp-ink2: #3a3538;  /* = --ed-ink2 */
  --sp-rule: #e2dcd2;  /* = --ed-rule */
  --sp-notice-rule: #cfc7ba; /* = --ed-rule2 (the D4 notice edge) */
  color: var(--sp-ink);
  padding-block-end: 48px;
}
@media (min-width: 700px) { .sp { padding-block-end: 64px; } }
@media (min-width: 1100px) { .sp { padding-block-end: 96px; } }
.sp :lang(fa) { font-family: var(--font-persian); }
.sp :lang(en) { font-family: var(--font-latin); }
.sp p { margin: 0; }
.sp h1,
.sp h2,
.sp h3 { margin: 0; font-weight: 600; color: var(--sp-ink); }

/* ---- SP-D1 page header ---- */
.sp-hd { padding-block-start: var(--site-s7); }
@media (min-width: 1100px) { .sp-hd { padding-block-start: 72px; } }
.sp-k {
  display: inline-block;
  margin-block-end: var(--site-s3);
  color: var(--brand-core);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sp-k:lang(fa) { font-size: 13px; line-height: 1.6; letter-spacing: 0; text-transform: none; }
.sp-h1 { font-size: 30px; line-height: var(--type-h1-lh-en); max-inline-size: 22ch; }
.sp-h1:lang(fa) { line-height: var(--type-display-lh-fa); max-inline-size: 24ch; }
@media (min-width: 700px) { .sp-h1 { font-size: var(--type-h1-size-en); } }
@media (min-width: 1100px) {
  .sp-h1 { font-size: var(--type-display-size-en); line-height: var(--type-display-lh-en); }
  .sp-h1:lang(fa) { font-size: var(--type-display-size-fa); line-height: var(--type-display-lh-fa); }
}
.sp-lead { margin-block-start: var(--site-s4); max-inline-size: 40rem; color: var(--sp-ink2); }
.sp-lead p { font-size: 19px; line-height: var(--type-lead-lh-en); }
.sp-lead p + p { margin-block-start: var(--site-s3); }
.sp-lead:lang(fa) p { font-size: 20px; line-height: var(--type-lead-lh-fa); }
@media (min-width: 700px) {
  .sp-lead p { font-size: var(--type-lead-size-en); }
  .sp-lead:lang(fa) p { font-size: var(--type-lead-size-fa); }
}
.sp .sp-date { margin-block-start: var(--site-s4); color: var(--text-muted); font-size: var(--type-small-size-en); line-height: var(--type-small-lh-en); }
.sp-date:lang(fa) { font-size: var(--type-small-size-fa); line-height: var(--type-small-lh-fa); }

/* ---- SP-D26 fallback-language notice (the D4 .ed-notice) ---- */
.sp .sp-notice {
  margin-block: 0; /* as rendered in the approved frame sp-state-fallback-fa-390 */
  max-inline-size: 40rem;
  padding: var(--site-s3) var(--site-s4);
  border-inline-start: 2px solid var(--sp-notice-rule);
  background: var(--surface-canvas);
  color: var(--sp-ink2);
  font-size: var(--type-small-size-en);
  line-height: var(--type-small-lh-en);
}
html[lang='fa'] .sp .sp-notice { font-size: var(--type-small-size-fa); line-height: var(--type-small-lh-fa); }

/* ---- SP-D16 / SP-D17 structured body: paragraphs, lists, links ---- */
.sp .sp-body > * + * { margin-block-start: var(--site-s4); }
.sp-body p,
.sp-body li { font-size: var(--type-body-size-en); line-height: var(--type-body-lh-en); color: var(--sp-ink2); }
.sp-body:lang(fa) p,
.sp-body:lang(fa) li,
.sp-body :lang(fa) p,
.sp-body :lang(fa) li,
:lang(fa) > .sp-docsec .sp-body p,
:lang(fa) > .sp-docsec .sp-body li { font-size: var(--type-body-size-fa); line-height: var(--type-body-lh-fa); }
.sp-body ul,
.sp-body ol { margin-block-end: 0; padding-inline-start: 1.25em; }
.sp-body li + li { margin-block-start: var(--site-s2); }
:lang(fa) > .sp-docsec .sp-body ol { list-style-type: persian; }
.sp-body a {
  color: var(--brand-core);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.sp-body a:hover { color: var(--brand-core-hover); }
.sp a:focus-visible {
  outline: 2px solid var(--brand-core-pressed);
  outline-offset: 2px;
}

/* ---- SP-D13…D15 legal document template ---- */
.sp-doc { max-inline-size: var(--site-maxw); margin-inline: auto; padding-inline: var(--site-pad); }
.sp-doc-in { max-inline-size: 44rem; }
html[lang='fa'] .sp-doc-in { max-inline-size: 42rem; }
.sp-doc .sp-hd { padding-block-end: var(--site-s6); border-block-end: 1px solid var(--sp-rule); }
.sp-docsec { margin-block-start: var(--site-s7); scroll-margin-block-start: var(--site-s5); }
.sp-docsec h2 { margin-block-end: var(--site-s4); font-size: 22px; line-height: var(--type-h2-lh-en); }
:lang(fa) > .sp-docsec h2 { line-height: var(--type-h2-lh-fa); }
@media (min-width: 700px) {
  .sp-docsec h2 { font-size: var(--type-h2-size-en); }
  :lang(fa) > .sp-docsec h2 { font-size: var(--type-h2-size-fa); }
}
.sp-doc .sp-body { max-inline-size: var(--measure-en); }
:lang(fa) > .sp-docsec .sp-body { max-inline-size: var(--measure-fa); }
@media (min-width: 1100px) {
  .sp-doc .sp-body,
  :lang(fa) > .sp-docsec .sp-body { max-inline-size: 40rem; }
}

/* ---- SP-D27 empty state ---- */
.sp .sp-empty { margin-block-start: var(--site-s6); color: var(--sp-ink2); font-size: var(--type-body-size-en); line-height: var(--type-body-lh-en); }
html[lang='fa'] .sp .sp-empty { font-size: var(--type-body-size-fa); line-height: var(--type-body-lh-fa); }

/* ============================================================
   MVP-017 (017-WP2) — ABOUT (DESIGN-A.4 SP-D2 … SP-D5, SP-D28).
   Transcribed from docs/design/A4-static-pages/source/static-pages.css
   (the About subset). Differences from the board, all required by the
   contract rather than chosen: no .is-ph placeholder rules — a missing
   image renders nothing publicly (SP-D3); .sp-feat--text (a feature row
   without its image takes the full row at the reading measure, SP-D2);
   .sp-tm--text (a Team card without a portrait is text-only, SP-D5);
   the principle / band / team-intro bodies are Structured Plain Text,
   so their paragraphs sit inside a wrapper div.
   No new colour, font, radius scale, spacing scale, shadow or icon.
   ============================================================ */
.sp { --sp-gap: 48px; }                                   /* s7 */
@media (min-width: 700px) { .sp { --sp-gap: 64px; } }     /* s7 + s4 */
@media (min-width: 1100px) { .sp { --sp-gap: 96px; } }    /* 2 × s7 */
.sp-cont { max-inline-size: var(--site-maxw); margin-inline: auto; padding-inline: var(--site-pad); }
.sp-sec { margin-block-start: var(--sp-gap); }
.sp-anchor {
  display: inline-flex;
  gap: var(--site-s2);
  align-items: center;
  margin-block-start: var(--site-s5);
  color: var(--brand-core);
  font-weight: 600;
  font-size: var(--site-small);
  text-decoration: none;
}
.sp-anchor:hover { text-decoration: underline; }

/* ---- SP-D3 image slots (public: only ever a real image) ---- */
.sp-img { position: relative; margin: 0; overflow: hidden; border-radius: var(--site-r-md); background: #f3efe8; /* = .bp-map ground */ }
.sp-img img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.sp-img--hero { aspect-ratio: 4 / 3; margin-block-start: var(--sp-gap); }
@media (min-width: 700px) { .sp-img--hero { aspect-ratio: 16 / 9; } }
@media (min-width: 1100px) { .sp-img--hero { aspect-ratio: 21 / 9; } }
.sp-img--feat { aspect-ratio: 4 / 3; }

/* ---- A2 story split ---- */
.sp-split { display: grid; gap: var(--site-s5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .sp-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; } }
.sp-stmt { font-size: 24px; line-height: 1.3; }
.sp-stmt:lang(fa) { font-size: 24px; line-height: 1.6; }
@media (min-width: 700px) {
  .sp-stmt { font-size: var(--type-h1-size-en); line-height: var(--type-h1-lh-en); }
  .sp-stmt:lang(fa) { font-size: var(--type-h1-size-fa); line-height: var(--type-h1-lh-fa); }
}

/* ---- A3 alternating feature rows ---- */
.sp-feat { display: grid; gap: var(--site-s5); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 700px) {
  .sp-feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--site-s6); }
  .sp-feat--rev .sp-img { order: 2; } /* image on the inline-END side */
}
@media (min-width: 1100px) {
  .sp-feat { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; }
  .sp-feat--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.sp .sp-feat--text { grid-template-columns: minmax(0, 1fr); }
.sp-feat--text .sp-body { max-inline-size: var(--measure-en); }
.sp-feat--text:lang(fa) .sp-body { max-inline-size: var(--measure-fa); }
.sp-feat h2 { margin-block-end: var(--site-s4); font-size: var(--type-h2-size-en); line-height: var(--type-h2-lh-en); }
.sp-feat h2:lang(fa) { font-size: var(--type-h2-size-fa); line-height: var(--type-h2-lh-fa); }
@media (max-width: 699px) {
  .sp-feat h2 { font-size: 21px; }
  .sp-feat h2:lang(fa) { font-size: 22px; }
}

/* ---- section head (principles, Team) ---- */
.sp-shead { max-inline-size: 44rem; margin-block-end: var(--site-s6); }
.sp-shead h2 { font-size: var(--type-h2-size-en); line-height: var(--type-h2-lh-en); }
.sp-shead h2:lang(fa) { font-size: var(--type-h2-size-fa); line-height: var(--type-h2-lh-fa); }
.sp-shead-b { margin-block-start: var(--site-s3); }
.sp-shead-b p { color: var(--sp-ink2); font-size: var(--type-body-size-en); line-height: var(--type-body-lh-en); }
.sp-shead-b:lang(fa) p { font-size: var(--type-body-size-fa); line-height: var(--type-body-lh-fa); }
.sp-shead-b p + p { margin-block-start: var(--site-s3); }
@media (max-width: 699px) {
  .sp-shead h2 { font-size: 21px; }
  .sp-shead h2:lang(fa) { font-size: 22px; }
}

/* ---- A4 principles grid (max 6) — Latin counters EN, Persian FA ---- */
.sp-pr { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--site-s4); grid-template-columns: minmax(0, 1fr); counter-reset: pr; }
@media (min-width: 700px) { .sp-pr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--site-s5); } }
@media (min-width: 1100px) { .sp-pr { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-pr li { counter-increment: pr; border-block-start: 2px solid var(--sp-ink); padding-block-start: var(--site-s4); }
.sp-pr li::before {
  content: counter(pr, decimal-leading-zero);
  display: block;
  margin-block-end: var(--site-s2);
  color: var(--brand-core);
  font: 600 12px/1.4 var(--font-latin);
  letter-spacing: 0.14em;
}
.sp-pr li:lang(fa)::before { content: counter(pr, persian); font-family: var(--font-persian); font-size: 14px; letter-spacing: 0; }
.sp-pr h3 { font-size: var(--type-card-title-size-en); line-height: var(--type-card-title-lh-en); }
.sp-pr h3:lang(fa) { font-size: var(--type-card-title-size-fa); line-height: var(--type-card-title-lh-fa); }
.sp-pr-b { margin-block-start: var(--site-s2); }
.sp-pr-b p,
.sp-pr-b li { color: var(--sp-ink2); font-size: var(--type-dir-body-size-en); line-height: var(--type-dir-body-lh-en); }
.sp-pr-b:lang(fa) p,
.sp-pr-b:lang(fa) li { font-size: var(--type-dir-body-size-fa); line-height: var(--type-dir-body-lh-fa); }
.sp-pr-b > * + * { margin-block-start: var(--site-s2); }
.sp-pr-b ul,
.sp-pr-b ol { margin-block-end: 0; padding-inline-start: 1.25em; }

/* ---- A5 closing band — existing warm surface ---- */
.sp-band {
  margin-block-start: var(--sp-gap);
  display: grid;
  gap: var(--site-s4);
  grid-template-columns: minmax(0, 1fr);
  padding: var(--site-s6) var(--site-s5);
  background: var(--surface-warm);
  border-radius: 6px; /* = --bp-r-sec */
}
@media (min-width: 1100px) { .sp-band { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--site-s7); padding: var(--site-s7); align-items: center; } }
.sp-band h2 { font-size: var(--type-h2-size-en); line-height: var(--type-h2-lh-en); }
.sp-band h2:lang(fa) { font-size: var(--type-h2-size-fa); line-height: var(--type-h2-lh-fa); }
@media (max-width: 699px) {
  .sp-band h2 { font-size: 21px; }
  .sp-band h2:lang(fa) { font-size: 22px; }
}
.sp-band-b p { color: var(--sp-ink2); font-size: var(--type-body-size-en); line-height: var(--type-body-lh-en); }
.sp-band-b:lang(fa) p { font-size: var(--type-body-size-fa); line-height: var(--type-body-lh-fa); }
.sp-band-b p + p { margin-block-start: var(--site-s3); }

/* ---- A6 Team grid (SP-D4) + card (SP-D5) ---- */
.sp-team { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--site-s6) var(--site-s5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) { .sp-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) { .sp-team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sp-team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--site-s7) var(--site-s6); } }
.sp-tm { display: flex; flex-direction: column; gap: var(--site-s1); min-inline-size: 0; }
.sp-tm .sp-img { aspect-ratio: 4 / 5; margin-block-end: var(--site-s3); }
.sp-tm h3 { font-size: var(--type-card-title-size-en); line-height: var(--type-card-title-lh-en); }
.sp-tm h3:lang(fa) { font-size: var(--type-card-title-size-fa); line-height: var(--type-card-title-lh-fa); }
.sp-tm h3 [lang='en'] { font-family: var(--font-latin); }
.sp-tm .role { color: var(--brand-core); font-weight: 500; font-size: var(--site-small); line-height: var(--site-small-lh); }
.sp-tm .bio { margin-block-start: var(--site-s1); color: var(--text-secondary); font-size: var(--site-small); line-height: var(--site-small-lh); }
.sp-tm .lnk { margin-block-start: var(--site-s2); color: var(--brand-core); font-weight: 500; font-size: var(--site-meta); text-decoration: none; }
.sp-tm .lnk:hover { text-decoration: underline; }
@media (max-width: 479px) { /* compact card: portrait 112 px at the inline-start, text beside */
  .sp-tm { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--site-s4); align-items: start; }
  .sp-tm > * { grid-column: 2; }
  .sp-tm .sp-img { grid-column: 1; grid-row: 1 / span 5; margin: 0; }
  .sp-tm--text { display: flex; }
}

/* ---- A7 Reach strip (values from Settings) ---- */
.sp-reach {
  display: grid;
  gap: var(--site-s5);
  grid-template-columns: minmax(0, 1fr);
  padding-block-start: var(--sp-gap);
  border-block-start: 1px solid var(--sp-rule);
}
@media (min-width: 1100px) { .sp-reach { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.sp-reach h2 { font-size: var(--type-h2-size-en); line-height: var(--type-h2-lh-en); }
html[lang='fa'] .sp-reach h2 { font-size: var(--type-h2-size-fa); line-height: var(--type-h2-lh-fa); }
.sp-reach .btn-primary { margin-block-start: var(--site-s5); min-block-size: 48px; }
.sp-rows { margin: 0; display: grid; }
.sp-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--site-s1); padding-block: var(--site-s4); border-block-end: 1px solid var(--sp-rule); }
.sp-row:first-child { padding-block-start: 0; }
@media (min-width: 700px) { .sp-row { grid-template-columns: 120px minmax(0, 1fr); gap: var(--site-s4); } }
.sp-row dt { font: 600 12px/1.6 var(--font-latin); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
html[lang='fa'] .sp-row dt { font-family: var(--font-persian); font-size: 13px; letter-spacing: 0; text-transform: none; }
.sp-row dd { margin: 0; font-size: var(--type-dir-body-size-en); line-height: var(--type-dir-body-lh-en); color: var(--sp-ink); overflow-wrap: anywhere; }
html[lang='fa'] .sp-row dd { font-size: var(--type-dir-body-size-fa); line-height: var(--type-dir-body-lh-fa); }
.sp-row a { color: var(--brand-core); text-decoration: none; }
.sp-row a:hover { text-decoration: underline; }
.sp-addr { margin: 0; font-style: normal; }

/* ============================================================
   MVP-017 (017-WP3) — CONTACT (DESIGN-A.4 SP-D6 … SP-D12,
   SP-D19 … SP-D25) and the Footer activations (SP-D29 social slots,
   SP-D30 company line). Transcribed from
   docs/design/A4-static-pages/source/static-pages.css (the Contact
   subset). Differences, all mechanical: selectors carrying the board's
   `!important` margins are written with a `.sp` prefix instead (they
   only need to outrank `.sp p { margin: 0 }`); the MVP-018 embedded /
   declined map simulation is NOT transcribed (not built in MVP-017);
   the board's inline Footer styles become .soc.is-live / .legal-co.
   No new colour, font, radius scale, spacing scale, shadow or icon —
   the error colour is the existing --brand-core-pressed (SP-D20).
   ============================================================ */
.sp { --sp-card-r: 6px; --sp-err: var(--brand-core-pressed); }

/* ---- SP-D6 two principal areas ---- */
.sp-ct { display: grid; gap: var(--site-s6); grid-template-columns: minmax(0, 1fr); margin-block-start: var(--site-s6); align-items: start; }
@media (min-width: 1100px) { .sp-ct { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); margin-block-start: var(--site-s7); } }

/* ---- SP-D7 form panel ---- */
.sp-form { padding: var(--site-s5); background: var(--surface-canvas); border: 1px solid var(--border-container); border-radius: var(--sp-card-r); }
@media (min-width: 700px) { .sp-form { padding: var(--site-s6); } }
.sp-form h2,
.sp-card h2 { margin-block-end: var(--site-s2); font-size: var(--type-h3-size-en); line-height: var(--type-h3-lh-en); }
html[lang='fa'] .sp-form h2,
html[lang='fa'] .sp-card h2 { font-size: var(--type-h3-size-fa); line-height: var(--type-h3-lh-fa); }
.sp .sp-req { margin-block-end: var(--site-s5); color: var(--text-muted); font-size: var(--site-small); line-height: var(--site-small-lh); }
.sp-fld { margin-block-end: var(--site-s5); }
.sp-grid2 { display: grid; gap: 0 var(--site-s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .sp-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-lbl { display: block; margin-block-end: var(--site-s2); font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--sp-ink); }
html[lang='fa'] .sp-lbl { font-size: 16px; line-height: 1.6; }
.sp-in {
  display: block;
  inline-size: 100%;
  min-block-size: 48px;
  padding: 11px 14px;
  border: 1px solid var(--border-interactive);
  border-radius: var(--site-r-md);
  background: var(--surface-canvas);
  color: var(--sp-ink);
  font: 400 16px/1.5 var(--font-latin);
}
html[lang='fa'] .sp-in { font-family: var(--font-persian); font-size: 17px; }
html[lang='fa'] .sp-in[dir='ltr'] { font-family: var(--font-latin); }
textarea.sp-in { min-block-size: 168px; block-size: 168px; resize: vertical; } /* the approved frame height; rows="8" (§15.1) stays for assistive tech and no-CSS */
select.sp-in {
  appearance: none;
  padding-inline-end: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(-45deg, transparent 50%, var(--text-muted) 50%);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
}
html[dir='rtl'] select.sp-in { background-position: 15px 21px, 20px 21px; }
.sp-in:hover { border-color: var(--text-secondary); }
.sp-in:focus { outline: 2px solid var(--brand-core-pressed); outline-offset: 2px; border-color: var(--text-strong); } /* SP-D19 */
.sp .sp-help { margin-block-start: var(--site-s2); color: var(--text-muted); font-size: var(--site-small); line-height: var(--site-small-lh); }
.sp-note { margin-block-start: var(--site-s4); }
.sp-note p { color: var(--text-secondary); font-size: var(--site-small); line-height: var(--site-small-lh); }
.sp-note a { color: var(--brand-core); overflow-wrap: anywhere; }
.sp-submit { min-block-size: 48px; padding-inline: var(--site-s6); border: 0; font-size: 15px; cursor: pointer; }
.sp-submit:focus-visible { outline: 2px solid var(--brand-core-pressed); outline-offset: 2px; }
@media (max-width: 699px) { .sp-submit { inline-size: 100%; } }
.sp-hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sp-hp input { inline-size: 1px; }

/* ---- SP-D20 / SP-D21 errors, SP-D22 … D25 outcome panels (no new colour) ---- */
.sp-mark { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; inline-size: 22px; block-size: 22px; border-radius: 50%; font: 700 13px/1 var(--font-latin); }
.sp-mark--err { background: var(--sp-err); color: #fff; }
.sp-mark--ok { background: var(--text-primary); color: #fff; }
.sp-mark--info { border: 2px solid var(--text-primary); color: var(--text-primary); }
.sp-sum { margin-block-end: var(--site-s5); padding: var(--site-s4) var(--site-s5); border: 2px solid var(--sp-err); border-radius: var(--site-r-md); background: var(--surface-canvas); }
.sp-sum:focus { outline: 2px solid var(--brand-core-pressed); outline-offset: 3px; }
.sp-sum h3 { display: flex; gap: var(--site-s3); align-items: center; font-size: 17px; line-height: 1.4; color: var(--sp-err); }
.sp-sum ul { margin: var(--site-s2) 0 0; padding-inline-start: calc(22px + var(--site-s3) + 1em); }
.sp-sum li { font-size: var(--site-small); line-height: var(--site-small-lh); }
.sp-sum a { color: var(--sp-err); font-weight: 600; text-decoration: underline; }
.sp-fld.is-err .sp-in { padding: 10px 13px; border: 2px solid var(--sp-err); }
.sp .sp-err { display: flex; gap: var(--site-s2); align-items: center; margin-block-start: var(--site-s2); color: var(--sp-err); font-weight: 600; font-size: var(--site-small); line-height: var(--site-small-lh); }
.sp-err .sp-mark { inline-size: 18px; block-size: 18px; font-size: 11px; }
.sp-out { display: flex; gap: var(--site-s3); align-items: flex-start; margin-block-end: var(--site-s5); padding: var(--site-s4) var(--site-s5); background: var(--surface-warm); border-inline-start: 4px solid var(--text-primary); border-radius: var(--site-r-sm); }
.sp-out:focus { outline: 2px solid var(--brand-core-pressed); outline-offset: 3px; }
.sp-out--err { border-inline-start-color: var(--sp-err); }
.sp-out strong { display: block; font-size: 17px; line-height: 1.4; }
.sp .sp-out p { margin-block-start: var(--site-s1); color: var(--sp-ink2); font-size: var(--site-small); line-height: var(--site-small-lh); }

/* ---- SP-D8 Contact information card ---- */
.sp-card { padding: var(--site-s5); background: var(--surface-warm); border-radius: var(--sp-card-r); }
@media (min-width: 700px) { .sp-card { padding: var(--site-s6); } }
.sp-card .sp-rows { margin-block-start: var(--site-s4); }
.sp-card .sp-row { border-block-end-color: var(--border-container); }
@media (min-width: 700px) and (max-width: 1099px) {
  .sp-card-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--site-s6); align-items: start; }
  .sp-card .sp-map { margin-block-start: var(--site-s4); }
}
.sp-hours { margin: 0; display: grid; gap: var(--site-s1); }
.sp-hours div { display: flex; justify-content: space-between; gap: var(--site-s4); }
.sp-hours dt { font: inherit; color: var(--sp-ink2); text-transform: none; letter-spacing: 0; }
.sp-hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---- SP-D11 map placeholder + external link (no Google request) ---- */
.sp-map { margin-block-start: var(--site-s5); }
.sp-map-box { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f3efe8; border: 1px solid #e0d8cc; border-radius: 5px; } /* = .bp-map */
.sp-map-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: var(--site-s2);
  align-items: center;
  justify-content: center;
  padding: var(--site-s5);
  text-align: center;
  background-image: linear-gradient(var(--divider) 1px, transparent 1px), linear-gradient(90deg, var(--divider) 1px, transparent 1px);
  background-size: 32px 32px;
}
.sp-map-ph strong { font-size: 15px; line-height: 1.4; }
.sp .sp-map-ph p { color: var(--text-secondary); font-size: var(--site-small); line-height: var(--site-small-lh); max-inline-size: 28ch; }
.sp-map-act { display: flex; flex-wrap: wrap; gap: var(--site-s2); margin-block-start: var(--site-s3); }
.sp-btn2 {
  display: inline-flex;
  gap: var(--site-s2);
  align-items: center;
  min-block-size: 44px;
  padding-inline: var(--site-s4);
  background: var(--surface-canvas);
  border: 1px solid #cfc6b8; /* = .bp-act */
  border-radius: 4px;
  color: var(--sp-ink);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
}
.sp-btn2:hover { background: var(--fill-hover); }

/* ---------- MVP-018 (018-WP5): consent-aware map (CONTRACT PR-V1) ------
   The SP-D11/SP-D12 component, now shared by the Contact card and the
   Business Profile Location section. Only additions: the embedded iframe
   fills the approved 4:3 box; the "Manage cookie choices" line; the
   component's text rules applied outside the .sp page scope. */
.sp-map-frame { display: block; inline-size: 100%; block-size: 100%; border: 0; }
.sp-map-manage { margin: var(--site-s3) 0 0; font-size: var(--site-small); line-height: var(--site-small-lh); color: var(--text-secondary); }
.sp-map-manage a { color: var(--text-secondary); text-decoration: underline; }
.sp-map-manage a:hover { color: var(--text-strong); }
.bp-loc .sp-map { margin-block-start: 0; }
.bp-loc .sp-map-ph p { margin: 0; color: var(--text-secondary); font-size: var(--site-small); line-height: var(--site-small-lh); max-inline-size: 28ch; }
.bp-loc .sp-map-ph strong { color: var(--text-strong); }

/* ---- SP-D10 social (labelled slots) — Contact card and Footer ---- */
.sp-soc { margin-block-start: var(--site-s5); }
.soc.is-live { border-style: solid; border-color: var(--border-interactive); background: var(--surface-canvas); text-decoration: none; }
.soc.is-live:hover { background: var(--fill-hover); }
.soc.is-live:focus-visible { outline: 2px solid var(--brand-core-pressed); outline-offset: 2px; }
/* MVP-018 (018-WP2, PR-V4): the local social glyph replaces the code inside
   the unchanged 36 px slot; monochrome, never brand-coloured. */
.soc.is-live { color: var(--text-strong); }
.soc .soc-ic { display: block; inline-size: 18px; block-size: 18px; }

/* ---- Contact: optional CMS sections below both areas (document style) ---- */
.sp-ctsec { max-inline-size: 44rem; }
.sp-ctsec .sp-body { max-inline-size: var(--measure-en); }
.sp-ctsec:lang(fa) .sp-body { max-inline-size: var(--measure-fa); }

/* ---- SP-D30 Footer company line: full width, muted, small (the legal bar's own type) ---- */
.legalbar .legal-co { flex-basis: 100%; color: var(--text-muted); }

/* MVP-018 (018-WP5, CONTRACT PR-V2): the video consent line under the
   Video-first player — meta-strip type, secondary ink. */
.ed-vid-consent { margin: var(--site-s3) 0 0; font-size: var(--site-small); line-height: var(--site-small-lh); color: var(--text-secondary); }
.ed-vid-consent a { color: var(--text-secondary); text-decoration: underline; }
.ed-vid-consent a:hover { color: var(--text-strong); }

/* MVP-018 (018-WP5, CONTRACT PR-V3): Cookies page "Your choices". Built from
   the Contact form's field language (.sp-lbl, .sp-help, primary button). */
.sp-choices-f { margin-block-start: var(--site-s5); }
.sp-choice { margin: 0 0 var(--site-s5); padding: 0; border: 0; min-inline-size: 0; }
.sp-choice .sp-lbl { padding: 0; margin-block-end: var(--site-s1, 4px); }
.sp-choice-opts { display: flex; flex-wrap: wrap; gap: var(--site-s2) var(--site-s5); margin-block: var(--site-s2); }
.sp-radio { display: inline-flex; align-items: center; gap: var(--site-s2); min-block-size: 44px; font-size: 16px; line-height: 1.4; cursor: pointer; }
.sp-radio input { inline-size: 20px; block-size: 20px; margin: 0; accent-color: var(--brand-core); }
.sp-choice-now { color: var(--text-secondary); }
@media (max-width: 389px) { .sp-choice-opts { flex-direction: column; gap: 0; } }

/* ============================================================
   PERKS-ENGINE-UI (WP5) — the local UI + Category icon family
   (UI-1, UI-6). App\Support\UiIcons draws curated Lucide outline
   glyphs inline with currentColor. ONE constant rendered stroke at
   every size: the stroke does not scale with the icon, so the 16px
   chip, the 26px rail and the 28px identity glyph read as one family.
   Neutral ink, never the brand accent (BP brand restraint, section
   12.3); no mirroring in RTL (section 4.10: objects, not direction).
   ============================================================ */
.ui-ic { display: block; flex: 0 0 auto; overflow: visible; }
.ui-ic * { vector-effect: non-scaling-stroke; stroke-width: var(--ui-ic-stroke, 1.5px); }
.cat-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  inline-size: 16px;
  block-size: 16px;
  color: var(--text-strong);
  --ui-ic-stroke: 1.5px;
}
.cat-ic--lg { inline-size: 26px; block-size: 26px; --ui-ic-stroke: 1.5px; }
/* The 48px identity tile: the approved slot box, now holding the glyph. */
.cat-ic--xl {
  inline-size: 48px;
  block-size: 48px;
  border: 1px solid var(--border-container);
  border-radius: var(--cat-r);
  background: var(--surface-subtle);
  --ui-ic-stroke: 1.6px;
}
.hp-cat:hover .cat-ic,
.cat-rel-i:hover .cat-ic { color: var(--text-primary); }

/* ============================================================
   PERKS-ENGINE-UI (WP6) — Business Profile UI polish
   (UI-2, UI-3, UI-4, UI-5, UI-6). Same tokens, same controls;
   only the glyphs and the labels' visibility change.
   ============================================================ */
/* UI-5 / UI-3: Call, Directions and Get directions are ICON-ONLY squares.
   46 x 46 keeps the approved control height and a comfortable touch
   target (WCAG 2.2 SC 2.5.8 needs 24); the accessible name is the
   visually hidden text inside the link. Call stays the single
   brand-filled control. */
.bp-act--ic { inline-size: 46px; padding-inline: 0; }
.bp-act .ui-ic { --ui-ic-stroke: 1.75px; }
.bp-act--primary .ui-ic { color: #fff; }
/* UI-2: social links are ICON-ONLY 44 x 44 squares (was a 40 px chip with
   the platform name). Brand glyphs stay Bootstrap Icons, in ink. */
.bp-soc a { inline-size: 44px; min-block-size: 44px; padding-inline: 0; justify-content: center; }
.bp-soc .soc-ic { inline-size: 18px; block-size: 18px; }
/* UI-4: Services are a bullet list, not checkbox-like boxes. The marker is
   a 6 px round dot centred on the first line (16 px x 1.5 = 24 px line,
   17 x 1.7 in Persian), logical start edge, muted ink. */
.bp-svc-m {
  inline-size: 6px;
  block-size: 6px;
  margin-block-start: 9px;
  margin-inline: 4px 2px;
  border: 0;
  border-radius: 50%;
  background: var(--bp-ink-muted);
}
.bp-svc-i:lang(fa) .bp-svc-m,
html[lang='fa'] .bp-svc-m { margin-block-start: 12px; }
/* UI-6: the Verified pill and the map component use the same family. */
.bp-pill-ic { inline-size: 14px; block-size: 14px; --ui-ic-stroke: 1.5px; }
.sp-map-ic { color: var(--text-secondary); }
.sp-btn2 .ui-ic { inline-size: 16px; block-size: 16px; }

/* R4 (v0.28.0) — business-authored Persian prose shown on an ENGLISH page.
   The approved Persian face for the run (DESIGN-A.3a), instead of a system
   fallback from the Latin stack. On the Persian page these already inherit
   the Persian face (html[lang='fa'] rules above), so nothing changes there.
   Direction comes from the markup (dir="rtl"); no `direction` / `unicode-bidi`
   CSS (DESIGN-A.3b-ii). */
.bpwrap [lang='fa'],
.hx__d:lang(fa),
.hp-res-d [lang='fa'] { font-family: var(--font-persian); }

/* =====================================================================
   v0.29.0 — PUBLIC REDESIGN (Owner instruction, 18 October 2026)
   Category Business LIST (References C/D), blurred-background image fit,
   Business Profile carousel / action bar / rating bar / reviews (A/B).
   Brand palette, type tokens and fonts are unchanged; only components.
   ===================================================================== */

/* ---------- blurred-background contain fit (§7) --------------------
   The photograph is shown whole (contain, no crop, no distortion); the
   uncovered area shows a blurred copy of the same file. */
.mfit { position: relative; display: block; inline-size: 100%; block-size: 100%; overflow: hidden; background: var(--bp-tile, #ede7de); isolation: isolate; }
.mfit__bg {
  position: absolute;
  inset: -10%;
  inline-size: 120%;
  block-size: 120%;
  max-inline-size: none;
  object-fit: cover;
  filter: blur(20px) saturate(1.15) brightness(0.92);
  z-index: 0;
}
.mfit__img { position: relative; z-index: 1; display: block; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: contain; }

/* ---------- results header: title + sort (Reference D) ------------- */
.cat-results .cat-res-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--site-s3); padding-block-end: var(--site-s3); border-block-end: 1px solid var(--divider); }
.cat-bar-sw { position: relative; display: inline-flex; align-items: center; }
.cat-bar-sw .cat-bar-ic { position: absolute; inset-inline-start: 12px; color: var(--text-secondary); pointer-events: none; }
.cat-results .cat-bar-s { padding-inline-start: 34px; border-radius: 999px; border-color: var(--border-container); font-weight: 500; box-shadow: 0 1px 2px rgba(34, 33, 30, 0.06); }
.js-sort .cat-bar-b { display: none; }

/* ---------- the list ---------------------------------------------- */
.lc-list { display: grid; gap: 14px; }
.lc {
  --lc-r: 16px;
  --lc-border: #e8ddc6;
  --lc-dash: #e4d6b8;
  --lc-btn-bg: #fdf4df;
  --lc-btn-border: #ead9b5;
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-areas:
    "media main"
    "media acts"
    "attrs attrs";
  column-gap: 14px;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-r);
  background: #fffdf7;
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.lc:hover { border-color: #dccaa2; box-shadow: 0 4px 14px rgba(70, 52, 20, 0.08); }
.lc:focus-within { border-color: var(--border-interactive); }

.lc-media { grid-area: media; position: relative; min-block-size: 150px; background: var(--bp-tile, #ede7de); }
.lc-media .mfit { position: absolute; inset: 0; }
.lc-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); background: var(--surface-warm); }
.lc-logo {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-end: 8px;
  z-index: 2;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.lc-fav {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  padding: 0;
  border: 1px solid rgba(150, 5, 70, 0.18);
  border-radius: 50%;
  background: rgba(255, 249, 236, 0.94);
  color: var(--brand-core);
  cursor: pointer;
}
.lc-fav:hover { background: #fff; }
.lc-fav[aria-pressed='true'] svg { fill: currentColor; }
.lc-fav:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }

.lc-main { grid-area: main; min-inline-size: 0; padding: 12px 12px 4px 0; }
[dir='rtl'] .lc-main { padding: 12px 0 4px 12px; }
.lc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lc-n { margin: 0; font-family: var(--font-latin); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--text-primary); overflow-wrap: anywhere; }
.lc-n a { color: inherit; text-decoration: none; }
.lc-n a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.lc-n a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lc-n a:focus-visible { outline: none; }
.lc-n a:focus-visible::after { outline: 2px solid var(--brand-core); outline-offset: -2px; border-radius: var(--lc-r); }
.lc-cat {
  flex: none;
  max-inline-size: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 9px;
  border: 1px solid #b9d7c3;
  border-radius: 999px;
  background: #e9f4ec;
  color: #2c6a43;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}
.lc-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.lc-flag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--bp-border-pill, #dcd5c9); border-radius: 4px; background: #fff; color: var(--text-secondary); font-size: 11.5px; font-weight: 500; line-height: 18px; }
.lc-flag--sp { border-color: #e2c9a0; background: #fbf1df; color: #7a5410; letter-spacing: 0.02em; }
.lc-flag--offer { border-color: rgba(150, 5, 70, 0.3); color: var(--brand-core); }
.lc-rate { display: flex; align-items: center; gap: 5px; margin: 6px 0 0; font-size: 14px; color: var(--text-strong); }
.lc-star { display: inline-flex; color: #f29d12; }
.lc-star svg { fill: currentColor; }
.lc-g { font-weight: 700; font-size: 13px; color: #8a8a8a; }
.lc-rc { color: var(--text-muted); font-size: 13px; }
.lc-addr { display: flex; align-items: flex-start; gap: 5px; margin: 6px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.lc-addr svg { flex: none; margin-block-start: 2px; }
.lc-addr span { min-inline-size: 0; overflow-wrap: anywhere; }

.lc-acts { grid-area: acts; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 6px 12px 12px 0; }
[dir='rtl'] .lc-acts { padding: 6px 0 12px 12px; }
.lc-open { display: none; }
.lc-btns { display: flex; gap: 8px; }
.lc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-block-size: 40px;
  padding-inline: 14px;
  border: 1px solid var(--lc-btn-border);
  border-radius: 10px;
  background: var(--lc-btn-bg);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.lc-btn:hover { background: #fbe9c4; color: var(--text-primary); }
.lc-btn:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }
.lc-btn--call { flex: 1 1 auto; max-inline-size: 180px; }
.lc-btn--dir { inline-size: 40px; padding: 0; flex: none; }
.lc-btn--web { display: none; }
.lc-soc { display: none; }

.lc-attrs { grid-area: attrs; position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 8px 12px 10px; list-style: none; border-block-start: 1px dashed var(--lc-dash); }
.lc-attrs li { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid var(--lc-btn-border); border-radius: 6px; background: var(--lc-btn-bg); color: var(--text-secondary); font-size: 12px; line-height: 18px; }

html[lang='fa'] .lc-cat, html[lang='fa'] .lc-flag, html[lang='fa'] .lc-btn, html[lang='fa'] .lc-attrs li,
html[lang='fa'] .lc-rate, html[lang='fa'] .lc-open { font-family: var(--font-persian); }

/* Tablet and desktop — Reference D: media | info | status + actions. */
@media (min-width: 700px) {
  .lc {
    grid-template-columns: 200px minmax(0, 1fr) 150px;
    grid-template-areas:
      "media main acts"
      "media attrs acts";
    grid-template-rows: 1fr auto;
    column-gap: 0;
    min-block-size: 168px;
  }
  .lc-main { padding: 16px 18px 8px; }
  [dir='rtl'] .lc-main { padding: 16px 18px 8px; }
  .lc-n { font-size: 20px; }
  .lc-cat { font-size: 12px; }
  .lc-attrs { margin-inline: 18px; padding: 10px 0 14px; align-self: end; }
  .lc-acts {
    padding: 14px;
    border-inline-start: 1px dashed var(--lc-dash);
    justify-content: flex-start;
  }
  [dir='rtl'] .lc-acts { padding: 14px; }
  .lc-open {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin: 0 0 4px;
    padding-block-end: 8px;
    border-block-end: 1px dashed var(--lc-dash);
    color: var(--text-muted);
    font-size: 13px;
  }
  .lc-open.is-open { color: #2c6a43; }
  .lc-open-t { color: var(--text-muted); }
  .lc-btns { flex-direction: column; }
  .lc-btn--call { max-inline-size: none; }
  .lc-btn--dir { display: none; }
  .lc-btn--web { display: inline-flex; }
  .lc-soc { display: flex; gap: 8px; margin: 2px 0 0; padding: 8px 0 0; list-style: none; border-block-start: 1px dashed var(--lc-dash); }
  .lc-soc a { display: inline-grid; place-items: center; inline-size: 28px; block-size: 28px; color: var(--text-muted); border-radius: 6px; }
  .lc-soc a:hover { color: var(--brand-core); background: var(--fill-hover); }
}
@media (min-width: 1100px) {
  .lc { grid-template-columns: 228px minmax(0, 1fr) 168px; min-block-size: 176px; }
}

/* ---------- pagination ---------------------------------------------- */
.cat-pg { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding-block-start: var(--site-s4); }
.cat-pg-l { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cat-pg-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding-inline: 12px;
  border: 1px solid var(--border-container);
  border-radius: 10px;
  background: var(--surface-canvas);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}
.cat-pg-a:hover { background: var(--fill-hover); color: var(--text-primary); }
.cat-pg-a.is-current { border-color: var(--brand-core); background: var(--brand-core); color: #fff; }
.cat-pg-gap { align-self: center; color: var(--text-muted); }
html[lang='fa'] .cat-pg-a { font-family: var(--font-persian); }

/* ---------- Business Profile (References A/B) -------------------------- */
.bp-act--wide { min-inline-size: 132px; }
.bp-act--wa { color: #136c3a; border-color: #9fd3b2; background: #f1faf4; }
.bp-act--wa:hover { background: #e3f4e9; color: #0f5a30; }
.bp-pill--fl { border-color: #c9c0e3; background: #f5f2fc; color: #4a3d7a; }

.bpc { position: relative; margin-block-start: var(--bp-s5, 24px); border-radius: 10px; overflow: hidden; background: var(--bp-tile, #ede7de); outline: none; }
.bpc:focus-visible { box-shadow: 0 0 0 2px var(--surface-canvas), 0 0 0 4px var(--brand-core); }
.bpc-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 16 / 10;
}
.bpc-track::-webkit-scrollbar { display: none; }
.bpc-s { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.bpc-s > a { display: block; inline-size: 100%; block-size: 100%; }
.bpc-nav {
  position: absolute;
  inset-block-start: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  margin-block-start: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.92);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.bpc-nav:hover { background: #fff; }
.bpc-nav:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }
.bpc-nav--prev { inset-inline-start: 12px; }
.bpc-nav--next { inset-inline-end: 12px; }
.bpc-pos { position: absolute; inset-block-end: 10px; inset-inline-end: 12px; z-index: 3; margin: 0; padding: 2px 9px; border-radius: 999px; background: rgba(20, 18, 16, 0.62); color: #fff; font-size: 12px; }
.bpc-pos:empty { display: none; }
@media (min-width: 700px) {
  .bpc-track { aspect-ratio: 21 / 9; max-block-size: 520px; }
}
@media (prefers-reduced-motion: reduce) { .bpc-track { scroll-behavior: auto; } }

.bp-rbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-block-start: 12px; padding: 10px 12px; border: 1px solid var(--bp-border, #e6e0d6); border-radius: 8px; background: #fffdf7; }
.bp-rbar-r { display: inline-flex; align-items: center; gap: 6px; color: var(--text-primary); text-decoration: none; font-size: 15px; }
.bp-rbar-r:hover b { text-decoration: underline; }
.bp-rbar-c { color: var(--text-muted); font-size: 14px; }
.bp-rbar-a { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid #ead9b5; border-radius: 6px; background: #fdf4df; color: var(--text-secondary); font-size: 13px; }
.bp-rbar-a--fl { border-color: #c9c0e3; background: #f5f2fc; color: #4a3d7a; }
html[lang='fa'] .bp-rbar-a, html[lang='fa'] .bp-rbar-r { font-family: var(--font-persian); }
.g-attr { font-family: var(--font-latin); font-weight: 600; font-size: 13px; letter-spacing: -0.01em; color: #5f6368; }

.bp-rev-hd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.bp-rev-sum { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--text-secondary); font-size: 14px; }
.bp-rev { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .bp-rev { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.bp-rev-i { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--bp-border, #e6e0d6); border-radius: 8px; background: #fffdf7; }
.bp-rev-a { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.bp-rev-a img { border-radius: 50%; }
.bp-rev-a small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; }
.bp-rev-a a { color: inherit; }
.bp-rev-s { margin: 0; color: #f29d12; letter-spacing: 1px; font-size: 13px; }
.bp-rev-s0 { color: #d9d2c4; }
.bp-rev-t { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-strong); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.bp-rev-src { font-size: 13px; }
.bp-rev-ft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; }
.bp-rev-note { color: var(--text-muted); font-size: 13px; }
/* Reference A: the logo stays beside the name on phones too. */
.bp-top { flex-wrap: nowrap; }
.bp-id { flex: 1 1 0; min-inline-size: 0; }
@media (max-width: 699px) { .bp-logo { inline-size: 56px; block-size: 56px; } }
[dir="rtl"] .lc-n { text-align: right; }
.bpc.is-js .bpc-track { touch-action: pan-y; }

/* ---------- v0.29.0: Drop landing page ------------------------------------ */
.dropwrap { max-inline-size: var(--site-maxw, 1216px); margin-inline: auto; padding: var(--site-s5) var(--site-pad, 16px) var(--site-s7); display: grid; gap: var(--site-s4); }
.drop { display: grid; gap: var(--site-s5); }
@media (min-width: 900px) { .drop { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; } }
.drop-media { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.drop-k { margin: 0 0 4px; color: var(--brand-core); font-weight: 600; font-size: 14px; }
.drop-h { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.drop-p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--text-strong); max-inline-size: 60ch; }
.drop-preview { margin: 0; padding: 8px 12px; border: 1px dashed var(--brand-core); border-radius: 6px; background: #fbf1f5; color: var(--brand-core); font-weight: 600; }
.lc-attrs li.lc-attr-more { background: transparent; border-style: dashed; }

/* =========================================================================
   v0.31.0 PROFILE-MEDIA — Business Profile & Contact UX (A1, A3, A4)
   ========================================================================= */

/* ---------- A4: the Business logo is always shown WHOLE ----------------
   object-fit: contain on a neutral tile (the canvas surface + the existing
   logo border). The image keeps its own aspect ratio (its width/height
   attributes are the real ratio) and is never enlarged past its natural
   pixels: inline/block-size auto with max 100 % only ever scales DOWN. A
   transparent logo sits on the canvas colour, not on black. No blurred
   backdrop: behind a mark that must read crisply, a blur of the same mark
   only adds noise (decision log, TASK-v0.31.0 D-7). */
/* Flex (not grid): a flex item's percentage max-block-size resolves against the
   tile's definite 76/60/56 px height, so a very tall logo is scaled down too. */
.bp-logo { display: flex; align-items: center; justify-content: center; padding: 6px; box-sizing: border-box; background: var(--surface-canvas, #fff); }
.bp-logo img {
  display: block;
  inline-size: auto;
  block-size: auto;
  max-inline-size: 100%;
  max-block-size: 100%;
  object-fit: contain;
  image-rendering: auto;
}
.lc-logo { box-sizing: border-box; padding: 4px; }

/* ---------- A1: video thumbnail directly under the carousel ------------ */
.bp-vids { margin-block-start: var(--site-s3, 12px); display: flex; flex-wrap: wrap; gap: var(--site-s2, 8px); }
.bp-vid {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-block-size: 64px;
  padding: 6px 16px 6px 6px;
  padding-inline: 6px 16px;
  border: 1px solid var(--bp-border, #e6e0d6);
  border-radius: 12px;
  background: var(--surface-canvas, #fff);
  color: var(--bp-ink, #242124);
  text-decoration: none;
  max-inline-size: 100%;
}
.bp-vid:hover { background: var(--fill-hover, #f6f1ea); color: var(--bp-ink, #242124); }
.bp-vid:focus-visible { outline: 2px solid var(--brand-core, #960546); outline-offset: 2px; }
.bp-vid-th {
  position: relative;
  flex: 0 0 auto;
  inline-size: 88px;
  block-size: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bp-tile, #ede7de);
}
.bp-vid-th > img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; filter: brightness(0.82); }
.bp-vid-th--plate { background: linear-gradient(135deg, #d8c1a5 0%, #c9ad8c 100%); }
.bp-vid-play {
  position: absolute;
  inset: 0;
  margin: auto;
  inline-size: 34px;
  block-size: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-core, #960546);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.bp-vid-play .ui-ic { inline-size: 16px; block-size: 16px; color: #fff; fill: currentColor; margin-inline-start: 2px; }
[dir='rtl'] .bp-vid-play .ui-ic { margin-inline-start: 0; margin-inline-end: 2px; }
.bp-vid-tx { display: grid; gap: 2px; min-inline-size: 0; }
.bp-vid-l { font-weight: 600; font-size: 15px; line-height: 1.3; }
.bp-vid-l:lang(fa) { font-size: 16px; line-height: 1.6; }
.bp-vid-p { font-size: 13px; line-height: 1.3; color: var(--bp-ink-muted, #6b645c); }

/* The video item inside the existing gallery viewer. */
.bp-lb-vid { inline-size: 100%; max-inline-size: 960px; min-inline-size: 0; display: grid; gap: var(--site-s2, 8px); justify-items: center; }
.bp-lb-vid[hidden] { display: none; }
.bp-lb-img[hidden] { display: none; }
.bp-lb-frame { position: relative; inline-size: min(100%, calc((100vh - 220px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.bp-lb-frame > iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.bp-lb-vnote { margin: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; color: var(--bp-ink-muted, #6b645c); text-align: center; }
.bp-lb-vnote:lang(fa), [lang='fa'] .bp-lb-vnote { font-size: 14px; line-height: 1.7; }
.bp-lb-vnote a { color: var(--brand-core, #960546); }

/* ---------- A3: Contact section — Call · Website, then social ---------- */
.bp-cacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--site-s2, 8px); }
.bp-cacts--one { grid-template-columns: minmax(0, 1fr); }
.bp-cacts .bp-act { justify-content: center; min-inline-size: 0; }
.bp-cacts + .bp-soc { margin-block-start: var(--site-s3, 12px); }
.bp-fl--contact { margin-block-start: var(--site-s3, 12px); }

/* =====================================================================
   v0.33.0 (release E–I): Offers Directory · Events Directory · Event page.
   Owner-approved designs (offers-*, events-*, event-*), 24 October 2026.
   Ported from the approved mockup rule set; real form controls added.
   ===================================================================== */
.dx-page { gap: 0; padding-block-end: 40px; }
.dx-page > .dx-grid, .dx-page > .dx-empty { margin-block-start: 6px; }
.dx-hero { padding: 28px 32px; border: 1px solid var(--border-container); border-radius: 12px; background: var(--surface-warm); }
.dx-hero h1 { margin: 6px 0 6px; }
.dx-lead { margin: 0; color: var(--text-secondary); max-inline-size: 60ch; }
.dx-note { margin: 8px 0 0; font-size: 14px; color: var(--text-secondary); }
.dx-form { margin: 0; }
.dx-search { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) auto auto; gap: 10px; margin-block: 20px 14px; }
.dx-in { display: flex; align-items: center; gap: 8px; min-block-size: 46px; padding: 0 12px; border: 1px solid var(--border-interactive); border-radius: 10px; background: #fff; color: var(--text-muted); font-size: 15px; margin: 0; min-inline-size: 0; }
.dx-in:focus-within { border-color: var(--brand-core); box-shadow: 0 0 0 3px rgba(150, 5, 70, .14); }
.dx-in input { flex: 1 1 auto; min-inline-size: 0; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; padding: 10px 0; }
.dx-in input::placeholder { color: var(--text-muted); }
.dx-ico { flex: none; }
.dx-btn { min-block-size: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-interactive); background: #fff; color: var(--text-strong); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; cursor: pointer; }
.dx-btn:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.dx-btn:focus-visible, .dx-chip:focus-visible, .dx-radio:focus-visible + .dx-chip { outline: 3px solid var(--brand-core); outline-offset: 2px; }
.dx-btn--p { background: var(--brand-core); border-color: var(--brand-core); color: #fff; }
.dx-btn--p:hover { background: var(--brand-core-hover); border-color: var(--brand-core-hover); color: #fff; }
.dx-btn.is-on { border-color: var(--brand-core); color: var(--brand-core); }
.dx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.dx-chips li { display: flex; }
.dx-chip { padding: 7px 14px; border: 1px solid var(--border-container); border-radius: 999px; background: #fff; font-size: 14px; line-height: 1.4; color: var(--text-strong); text-decoration: none; white-space: nowrap; cursor: pointer; }
.dx-chip:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.dx-chip.is-on, .dx-radio:checked + .dx-chip { background: var(--text-primary); color: #fff; border-color: var(--text-primary); }
.dx-radio { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.dx-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; border-block: 1px solid var(--divider); margin-block-end: 12px; }
.dx-count { margin: 0; color: var(--text-muted); font-size: 14px; }
.dx-bar-r { display: flex; gap: 8px; align-items: center; }
.dx-sort { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--text-secondary); }
.dx-sort select { min-block-size: 40px; padding: 0 10px; border: 1px solid var(--border-interactive); border-radius: 10px; background: #fff; color: var(--text-strong); font: 600 14px/1 inherit; }
.dx-details { margin-block-end: 18px; }
.dx-details > summary { list-style: none; min-block-size: 40px; font-size: 14px; inline-size: fit-content; }
.dx-details > summary::-webkit-details-marker { display: none; }
.dx-details[open] > summary { border-color: var(--text-primary); color: var(--text-primary); }
.dx-more { margin-block-start: 10px; padding: 14px; border: 1px solid var(--border-container); border-radius: 12px; background: var(--surface-subtle); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dx-more fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.dx-more legend { margin: 0 0 6px; font-size: 13px; color: var(--text-muted); font-weight: 600; float: none; inline-size: auto; padding: 0; }
.dx-more .dx-chips { margin: 0; }
.dx-more-acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.dx-more-acts .dx-btn { min-block-size: 40px; font-size: 14px; }
.dx-dates { position: relative; }
.dx-dates > summary { list-style: none; }
.dx-dates > summary::-webkit-details-marker { display: none; }
.dx-dates-pop { position: absolute; z-index: 5; inset-block-start: calc(100% + 6px); inset-inline-start: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--border-container); border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(34, 33, 30, .12); min-inline-size: 280px; }
.dx-dates-pop label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.dx-dates-pop input { min-block-size: 40px; padding: 0 8px; border: 1px solid var(--border-interactive); border-radius: 8px; font: inherit; color: var(--text-primary); }
.dx-dates-pop .dx-btn { min-block-size: 40px; }
.dx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ofc { border: 1px solid var(--border-container); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; min-inline-size: 0; }
.ofc-img { display: block; aspect-ratio: 16 / 9; background: var(--surface-premium); position: relative; }
.ofc-img > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; display: block; border-start-start-radius: 11px; border-start-end-radius: 11px; }
.ofc-img.g2 { background: var(--border-container); } .ofc-img.g3 { background: var(--divider); }
.ofc-logo { position: absolute; inset-block-end: -18px; inset-inline-start: 14px; inline-size: 40px; block-size: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--border-container); overflow: hidden; }
.ofc-logo img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.ofc-b { padding: 24px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.ofc-b .pk3-chip { display: inline-block; align-self: flex-start; inline-size: fit-content; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.6; background: #fbe9f0; color: var(--brand-core); }
.ofc-t { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--text-primary); }
.ofc-t a { color: inherit; text-decoration: none; }
.ofc-t a:hover { text-decoration: underline; }
html[lang='fa'] .ofc-t { line-height: 1.7; }
.ofc-c { margin: 0; font-size: 14px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ofc-m { margin: 0; font-size: 14px; color: var(--text-muted); }
.ofc-v { margin: 0; font-size: 13px; color: var(--text-secondary); }
.ofc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: auto; padding-block-start: 8px; }
.ofc-acts .dx-btn { min-block-size: 40px; font-size: 14px; }
.dx-btn.wa { color: #1d7a45; border-color: #9fd3b4; }
.dx-day { margin: 26px 0 12px; font-size: 18px; font-weight: 600; color: var(--text-strong); display: flex; align-items: baseline; gap: 10px; }
.dx-day small { font-weight: 400; font-size: 14px; color: var(--text-muted); }
.evc { display: grid; grid-template-columns: 72px 160px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--border-container); border-radius: 12px; background: #fff; margin-block-end: 12px; position: relative; }
.evd { text-align: center; border-radius: 10px; background: var(--surface-warm); padding: 8px 0; }
.evd b { display: block; font-size: 26px; line-height: 1.1; }
.evd small { font-size: 12px; font-weight: 600; color: var(--brand-core); letter-spacing: .06em; font-family: var(--font-latin); }
.evi { aspect-ratio: 16 / 10; border-radius: 10px; background: var(--surface-premium); overflow: hidden; position: relative; }
.evi img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.evi.g2 { background: var(--border-container); }
.evbody { min-inline-size: 0; }
.evt { margin: 0 0 4px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.evt a { color: var(--text-primary); text-decoration: none; }
.evt a::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.evt a:focus-visible { outline: none; }
.evc:focus-within { outline: 3px solid var(--brand-core); outline-offset: 2px; }
.evc:hover { border-color: var(--border-interactive); }
.evm { margin: 0; font-size: 14px; color: var(--text-muted); }
.evtags { display: flex; gap: 6px; margin-block-start: 8px; flex-wrap: wrap; }
.evtags .tag { padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-heat-mid); color: var(--text-secondary); }
.evtags .tag--free { background: #e6f2ea; color: #1f5c36; }
.evtags .tag--on { background: #e8eefb; color: #2b4a8a; }
.dx-empty { margin: 8px 0 0; padding: 28px; border: 1px dashed var(--border-interactive); border-radius: 12px; text-align: center; color: var(--text-secondary); }
.dx-empty-acts { margin: 12px 0 0; text-align: center; }
.dx-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-block-start: 24px; font-size: 14px; color: var(--text-secondary); }
.evx-chip { justify-self: start; display: inline-block; margin-block-start: 14px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; background: #fbe9f0; color: var(--brand-core); }
.evx-h1 { margin-block: 8px 4px; }
.evx { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin-block-start: 20px; align-items: start; }
.evx-hero { aspect-ratio: 16 / 7; border-radius: 12px; background: linear-gradient(120deg, #d8c1a5, #ebe9e4); margin-block-start: 18px; overflow: hidden; position: relative; }
.evx-hero img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.evx-card { border: 1px solid var(--border-container); border-radius: 12px; background: #fff; padding: 18px; min-inline-size: 0; }
.evx-card h2 { font-size: 20px; margin: 0 0 10px; }
.evx-card p { overflow-wrap: anywhere; }
.evx-dl { display: grid; gap: 14px; margin: 0; }
.evx-dl dt { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.evx-dl dd { margin: 2px 0 0; color: var(--text-primary); overflow-wrap: anywhere; }
.evx-book { margin: 16px 0 0; }
.evx-book .dx-btn { justify-content: center; inline-size: 100%; }
.evx-banner { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #fff4dc; border: 1px solid #ecd39c; color: #7a5410; font-weight: 600; }
.evx-banner--cancel { background: #fdecec; border-color: #efb4b4; color: #8a1f1f; }
@media (max-width: 1100px) {
  .dx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evc { grid-template-columns: 64px 120px minmax(0, 1fr); }
  .evc .ev-act { display: none; }
}
@media (max-width: 699px) {
  .dx-hero { padding: 18px; }
  .dx-hero h1, .evx-h1 { overflow-wrap: anywhere; }
  .dx-search { grid-template-columns: 1fr; }
  .dx-search .dx-btn { justify-content: center; }
  .dx-chips { flex-wrap: nowrap; overflow-x: auto; max-inline-size: 100%; padding-block-end: 4px; scrollbar-width: thin; }
  .dx-more .dx-chips { flex-wrap: wrap; overflow: visible; }
  .dx-bar { flex-wrap: wrap; }
  .dx-bar-r { flex-wrap: wrap; }
  .dx-grid { grid-template-columns: 1fr; }
  .dx-more { grid-template-columns: 1fr; }
  .dx-chips--dates { flex-wrap: wrap; overflow: visible; }
  .dx-chips--dates li:has(> .dx-dates[open]) { flex-basis: 100%; }
  .dx-dates-pop { position: static; margin-block-start: 8px; min-inline-size: 0; box-shadow: none; }
  .evc { grid-template-columns: 56px minmax(0, 1fr); }
  .evc .evi { display: none; }
  .evx { grid-template-columns: 1fr; }
}

/* =====================================================================
   v0.34.0 PERKS V3 — Concept B "hub rail" (Owner-approved 24 Oct 2026).
   Every cell is placed explicitly per breakpoint from custom properties
   the service writes (--d* desktop, --t* tablet, --m* mobile: row, col,
   row span, col span). One DOM; RTL mirrors through the grid. Hubs, the
   Drop fallback and the house Large are Resaneh's own cards (existing
   tokens; brand plate, sand plate, dark plate, brand gradient).
   ===================================================================== */
@media (max-width: 699px) {
  .hp-pkgrid.hp-pkgrid--v3[data-panel] > .hp-pkcell { grid-row: var(--mr, auto) / span var(--mrs, 1); grid-column: var(--mc, auto) / span var(--mcs, 1); }
  .hp-pkgrid--v3 > .hp-pksz--large-h .hp-pkcreative { aspect-ratio: 11 / 4; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .hp-pkgrid.hp-pkgrid--v3[data-panel] > .hp-pkcell { grid-row: var(--tr, auto) / span var(--trs, 1); grid-column: var(--tc, auto) / span var(--tcs, 1); }
}
@media (min-width: 1100px) {
  .hp-pkgrid.hp-pkgrid--v3[data-panel] > .hp-pkcell { grid-row: var(--dr, auto) / span var(--drs, 1); grid-column: var(--dc, auto) / span var(--dcs, 1); }
}
@media (min-width: 700px) {
  .hp-pkgrid--v3 > .hp-pksz--large-h .hp-pkcreative,
  .hp-pkgrid--v3 > .hp-pksz--large-v .hp-pkcreative { aspect-ratio: auto; flex: 1 1 auto; min-block-size: 0; }
}
.hp-pkgrid--v3 > .hp-pksz--large-v .hp-pkcreative { aspect-ratio: auto; flex: 1 1 auto; min-block-size: 0; }

.pk3-hubplate { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 18px; color: #fff; }
.pk3-hubplate--offers { background: var(--brand-core); }
.pk3-hubplate--events { background: var(--surface-premium); color: var(--text-primary); }
.pk3-hubplate--drop { background: var(--text-primary); }
.pk3-hubplate--house { background: linear-gradient(135deg, var(--brand-core) 0%, var(--brand-core-pressed) 100%); }
.pk3-copy { display: flex; flex-direction: column; gap: 4px; min-inline-size: 0; padding-inline-end: 46px; }
.pk3-eyebrow { font: 600 12px/1.2 var(--font-latin); letter-spacing: .08em; text-transform: uppercase; opacity: .92; }
.pk3-eyebrow--big { font-size: 22px; letter-spacing: 0; }
html[lang='fa'] .pk3-eyebrow { font-family: var(--font-persian); letter-spacing: 0; text-transform: none; font-size: 13px; }
html[lang='fa'] .pk3-eyebrow--big { font-size: 22px; }
.pk3-big { font: 600 26px/1.15 var(--font-latin); overflow-wrap: anywhere; }
.pk3-big--drop { font-size: 21px; }
html[lang='fa'] .pk3-big { font-family: var(--font-persian); font-size: 25px; line-height: 1.5; }
html[lang='fa'] .pk3-big--drop { font-size: 20px; }
.pk3-count { font: 500 14px/1.4 var(--font-latin); opacity: .92; }
html[lang='fa'] .pk3-count { font-family: var(--font-persian); }
.pk3-arrow { position: absolute; inset-block-end: 16px; inset-inline-end: 16px; inline-size: 36px; block-size: 36px; border-radius: 50%; border: 1px solid currentColor; display: flex; align-items: center; justify-content: center; font: 400 20px/1 var(--font-latin); }
html[dir='rtl'] .pk3-arrow { transform: scaleX(-1); }
.pk3-dates { display: flex; gap: 6px; }
.pk3-dates > span { display: flex; flex-direction: column; align-items: center; justify-content: center; inline-size: 44px; block-size: 48px; border-radius: 8px; background: rgba(255, 255, 255, .65); font: 600 16px/1 var(--font-latin); color: var(--text-primary); }
.pk3-dates small { font: 600 10px/1.2 var(--font-latin); letter-spacing: .06em; color: var(--brand-core); }
.hp-pkcap .pk3-chip { display: inline-block; align-self: flex-start; inline-size: fit-content; padding: 1px 8px; border-radius: 999px; font: 600 11px/1.6 var(--font-latin); background: #fbe9f0; color: var(--brand-core); }
html[lang='fa'] .hp-pkcap .pk3-chip { font-family: var(--font-persian); }
.pk3-large-copy { max-inline-size: 34ch; }
.pk3-cta { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--brand-core); font: 600 14px/1 var(--font-latin); }
html[lang='fa'] .pk3-cta { font-family: var(--font-persian); }
.hp-pk--hub-offers .hp-pklink:hover, .hp-pk--house .hp-pklink:hover, .hp-pk--drop-house .hp-pklink:hover { color: var(--brand-core); }
.pk3-short { display: none; }
@media (min-width: 700px) and (max-width: 1099px) {
  .pk3-big { font-size: 21px; } html[lang='fa'] .pk3-big { font-size: 20px; }
}
@media (max-width: 699px) {
  .pk3-hubplate { padding: 12px; }
  .pk3-copy { padding-inline-end: 34px; }
  .pk3-big { font-size: 19px; } html[lang='fa'] .pk3-big { font-size: 18px; line-height: 1.45; }
  .pk3-big--drop { font-size: 18px; }
  .pk3-arrow { inline-size: 30px; block-size: 30px; inset-block-end: 10px; inset-inline-end: 10px; }
  .pk3-dates { display: none; }
  .pk3-hubplate .pk3-count { display: none; }
  .pk3-long { display: none; } .pk3-short { display: inline; }
  .pk3-hubplate--house .pk3-count { display: none; }
}
html[dir='rtl'] .pk3-chev { display: inline-block; transform: scaleX(-1); }

/* ===================================================================
   v0.35.0 — Advertise with Resaneh (approved "Advertise" mockup, E–I gate)
   =================================================================== */
.adv-page { padding-block-end: 48px; }
.adv-sec { margin-block-start: 34px; }
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.adv-card { border: 1px solid var(--border-container); border-radius: 12px; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
.adv-card h3 { margin: 0; font-size: 18px; line-height: 1.35; color: var(--text-primary); }
.adv-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
html[lang='fa'] .adv-card p { font-size: 15px; line-height: 1.8; }
.adv-mini { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 3px; inline-size: 100%; aspect-ratio: 4 / 3; }
.adv-mini i { background: var(--divider, #e7e3dc); border-radius: 3px; }
.adv-mini i.on { background: var(--brand-core); }
.adv-mini i.h { grid-column: span 2; }
.adv-mini i.v { grid-row: span 2; }
.adv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adv-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.adv-steps li { border: 1px solid var(--border-container); border-radius: 12px; padding: 14px; background: #fff; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.adv-steps li b { display: block; color: var(--text-primary); font-size: 16px; margin-block-end: 4px; }
.adv-dur { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adv-dur div { border: 1px solid var(--border-container); border-radius: 12px; padding: 16px; background: #fff; }
.adv-dur b { display: block; font-size: 24px; color: var(--text-primary); }
.adv-dur span { color: var(--text-muted); font-size: 14px; }
.adv-note { margin-block-start: 10px; }
.adv-cta { margin-block-start: 34px; padding: 26px; border-radius: 12px; background: var(--brand-core); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.adv-cta h2 { margin: 0; color: #fff; font-size: 24px; }
.adv-cta p { margin: 4px 0 0; opacity: .9; }
.adv-cta a { padding: 12px 18px; border-radius: 10px; background: #fff; color: var(--brand-core); font-weight: 600; text-decoration: none; white-space: nowrap; }
.adv-cta a:hover { background: #fbeef4; }
.adv-cta a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.adv-form { --sp-ink: #242124; --sp-err: var(--brand-core-pressed); max-inline-size: 860px; scroll-margin-block-start: 24px; }
.adv-form:focus { outline: none; }
.adv-form .sp-in { inline-size: 100%; }
.adv-fgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.adv-form .btn-primary { margin-block-start: 4px; }
@media (max-width: 1100px) {
  .adv-grid, .adv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .adv-grid, .adv-two, .adv-steps, .adv-dur, .adv-fgrid { grid-template-columns: 1fr; }
  .adv-cta { flex-direction: column; align-items: flex-start; }
  .adv-cta a { white-space: normal; }
  .adv-mini { max-inline-size: 168px; }
}
.adv-dur .adv-price { display: block; color: var(--text-primary); font-size: 20px; font-weight: 600; margin-block: 4px; }
/* v0.40.0 — restored Advertise page additions: the Category Header Banner
   card (wide, under the four formats), the sales band's call option and the
   three-field form. */
.adv-card--wide { margin-block-start: 16px; flex-direction: row; align-items: center; gap: 20px; }
.adv-card--wide > div:last-child { display: flex; flex-direction: column; gap: 6px; min-inline-size: 0; }
.adv-mini--cat { flex: none; inline-size: 168px; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1.3fr 1fr 1fr; aspect-ratio: 4 / 3; }
.adv-mini--cat i.b { grid-column: 1 / -1; }
.adv-cta-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.adv-cta .adv-call { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 16px; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.adv-cta .adv-call:hover { background: rgba(255, 255, 255, .2); }
.adv-call-l { font-size: 13px; font-weight: 500; opacity: .95; }
.adv-call-n { font-size: 20px; font-weight: 600; letter-spacing: .01em; }
.adv-cta .adv-call-h { margin: 0; font-size: 13px; opacity: .92; text-align: end; }
.adv-fgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .adv-fgrid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 699px) {
  .adv-card--wide { flex-direction: column; align-items: flex-start; }
  .adv-mini--cat { inline-size: 100%; max-inline-size: 168px; }
  .adv-cta-act { align-items: stretch; inline-size: 100%; }
  .adv-cta .adv-call-h { text-align: start; }
  .adv-fgrid--3 { grid-template-columns: 1fr; }
}

/* ---------- v0.36.0: sub-category links on Category pages ----------
   Ordinary links that WRAP (never scroll sideways, so 0 px page overflow at
   320 px), using the related-category chip's tokens. "All" is the parent.
   The current one carries aria-current and the brand fill; the count is
   secondary text. Logical properties, so RTL needs no extra rule. */
.cat-sub { margin-block: var(--site-s4) 0; }
.cat-sub-l {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--site-s2);
}
.cat-sub-l > li { min-inline-size: 0; max-inline-size: 100%; }
.cat-sub-a {
  display: inline-flex; align-items: center; gap: var(--site-s2);
  min-block-size: 44px; max-inline-size: 100%;
  padding-inline: var(--site-s3);
  border: 1px solid var(--border-container); border-radius: var(--cat-r);
  background: var(--surface-subtle); color: var(--text-strong);
  text-decoration: none; font-family: var(--font-latin); font-weight: 500;
  overflow-wrap: anywhere;
}
html[lang='fa'] .cat-sub-a { font-family: var(--font-persian); }
.cat-sub-a:hover { background: var(--fill-hover); }
.cat-sub-a[aria-current='page'] { background: var(--brand-core); border-color: var(--brand-core); color: #fff; }
.cat-sub-n { font-weight: 400; opacity: .8; font-variant-numeric: tabular-nums; }

/* v0.40.0 — search results: where a search lands, and its two controls.
   Landing on #hp-results is an INSTANT jump (the page-wide smooth scroll
   was the "jump to the top, then slide down" the Owner rejected). */
html:has(#hp-results:target) { scroll-behavior: auto; }
.hp-results { scroll-margin-block-start: 16px; }
.hp-res-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--site-s2) var(--site-s4); margin-block-end: var(--site-s2); }
.hp-res-x, .hp-res-clr {
  display: inline-flex; align-items: center; min-block-size: 36px; padding-inline: var(--site-s3);
  border: 1px solid var(--border-container); border-radius: var(--site-r-md, 8px); background: #fff;
  color: var(--text-strong); font: inherit; font-size: var(--site-meta); text-decoration: none; cursor: pointer;
}
.hp-res-x[hidden] { display: none; }
.hp-res-x:hover, .hp-res-clr:hover { background: var(--fill-hover); }
.hp-res-x:focus-visible, .hp-res-clr:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }
/* v0.37.0 — Directory search pagination (results only; plain links, no JS). */
.hp-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--site-s4);
  margin-block-start: var(--site-s4);
  font-size: var(--site-meta);
  color: var(--text-secondary);
}
.hp-pager-l { color: var(--brand-core); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hp-pager-l:hover { color: var(--brand-core-hover); }
.hp-pager-s { font-variant-numeric: tabular-nums; }

/* v0.37.0 — Advertise: short sales invitation + one consultation form. */
.adv-page--simple .adv-hero { padding-block-end: var(--site-s5); }
.adv-pitch { max-inline-size: 62ch; }
.adv-cta-row { margin: var(--site-s5) 0 0; }
.adv-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 46px;
  padding-inline: var(--site-s5);
  border-radius: var(--site-r-md);
  text-decoration: none;
  font-weight: 600;
}
@media (max-width: 479.98px) { .adv-cta-btn { inline-size: 100%; } }

/* v0.37.0 — CATEGORY-HEADER ADVERTISEMENT. Restrained: one static banner,
   a small "Sponsored" label above it, the card edge and radius of the
   Directory, no animation. The <img> keeps the creative's own ratio via
   its width/height attributes, so the box is reserved before it loads. */
.cat-ad { margin-block: var(--site-s4) 0; }
.cat-ad-l {
  margin: 0 0 var(--site-s2);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
html[lang='fa'] .cat-ad-l { letter-spacing: 0; text-transform: none; font-family: var(--font-persian); }
.cat-ad-a {
  display: block;
  border: 1px solid var(--border-container);
  border-radius: var(--cat-r);
  overflow: hidden;
  background: var(--surface-canvas);
}
.cat-ad-a:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.cat-ad-img { display: block; inline-size: 100%; block-size: auto; }

/* ---------- v0.39.0 GOOGLE RATING (cards + profile) ----------------
   Owner-approved mockups. Stars are a two-layer text glyph: a grey row and
   a gold row clipped to rating/5 (partial star). Attribution "Google Maps"
   follows Google's text-attribution rule: Roboto 400 (sans-serif fallback),
   #5E5E5E, 12-16px, not translated (translate="no"), one line. Inserted
   only by assets/js/ratings.js when Google returns a valid rating. */
.rt { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; line-height: 1.3; color: var(--text-primary); text-decoration: none; }
a.rt:hover .rt-c, a.rt:focus-visible .rt-c { text-decoration: underline; }
.rt b { font-weight: 600; }
.rt-st { position: relative; display: inline-block; color: #d9d2c6; font-size: 15px; letter-spacing: 1px; line-height: 1; white-space: nowrap; direction: ltr; }
.rt-st::before { content: "\2605\2605\2605\2605\2605"; }
.rt-st i { position: absolute; inset-block-start: 0; left: 0; overflow: hidden; white-space: nowrap; color: #e3a008; font-style: normal; }
.rt-st i::before { content: "\2605\2605\2605\2605\2605"; }
.rt-c { color: var(--text-muted); }
.rt-g { font: 400 12px/1.2 Roboto, Arial, sans-serif; color: #5e5e5e; white-space: nowrap; }
.lc-rate.rt-row { margin: 4px 0 6px; }
.bp-rt { margin: 6px 0 0; }
.bp-rt .rt { font-size: 15px; }
.bp-rt .rt-st { font-size: 18px; }
.bp-rt .rt-g { font-size: 13px; }
html[lang='fa'] .rt { font-family: var(--font-persian); }

/* ---------- v0.39.1 "Translated by Google" (Cloud Translation attribution) ---------- */
.bp-mt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 4px 0 0; font: 400 12px/1.4 Roboto, Arial, sans-serif; color: #5e5e5e; }
.bp-mt a { color: #5e5e5e; text-decoration: underline; }
.bp-mt-d summary { cursor: pointer; text-decoration: underline; list-style: none; }
.bp-mt-d summary::-webkit-details-marker { display: none; }
.bp-mt-d p { margin: 4px 0 0; max-inline-size: 60ch; font-size: 11px; }

/* ============================================== NEED IT NOW (v0.43.0)
   Workstream J, owner-approved 28 Oct 2026. Homepage section 2 (between
   the Editorial Hero and Resaneh Perks) and the group landing pages.
   Ground: a light, gently burgundy-tinted surface, distinct from the
   Hero's warm ground and the Perks canvas; burgundy only as a restrained
   accent (ring on hover / focus, the selected chip, the Call button).
   No semantic state colours are invented (ADM-P1): the hours line and the
   tags stay neutral.
   ============================================================ */
:root {
  --nin-ground: #fbf4f7;
  --nin-ring: rgba(150, 5, 70, .12);
  --nin-plain: #f4e8ee;
  --nin-size: 120px;
  --nin-col: 132px;
  --nin-gap: 16px;
}
@media (min-width: 700px) { :root { --nin-size: 152px; --nin-col: 168px; --nin-gap: 24px; } }
@media (min-width: 1100px) { :root { --nin-size: 184px; --nin-col: 200px; --nin-gap: 32px; } }

.hp-nin {
  background: var(--nin-ground);
  border-block: 1px solid var(--divider);
}
/* v0.46.0 (§2.1): compact section — the shared 48px section rhythm and the
   32px section-head gap left ~150px of empty ground above the circles. The
   pale ground and its dividers stay; the vertical rhythm tightens. */
.hp-sec.hp-nin { padding-block: var(--site-s5) var(--site-s4); }
@media (min-width: 700px) { .hp-sec.hp-nin { padding-block: var(--site-s6) var(--site-s5); } }
.hp-ninhead { display: flex; flex-direction: column; min-inline-size: 0; margin-block-end: var(--site-s3); }
@media (min-width: 700px) { .hp-ninhead { margin-block-end: var(--site-s4); } }
/* Heading typography = the Resaneh Perks heading (section 10.4a values). */
.hp-nin .hp-h2 { margin-block-start: var(--site-s2); font-size: 21px; line-height: 1.35; }
html[lang='fa'] .hp-nin .hp-h2 { font-size: 22px; line-height: 1.60; }
@media (min-width: 700px) {
  .hp-nin .hp-h2 { font-size: 24px; line-height: 1.30; }
  html[lang='fa'] .hp-nin .hp-h2 { font-size: 25px; line-height: 1.55; }
}
@media (min-width: 1100px) {
  .hp-nin .hp-h2 { font-size: 28px; line-height: 1.25; }
  html[lang='fa'] .hp-nin .hp-h2 { font-size: 29px; line-height: 1.55; }
}
.nin-preview-note {
  margin: 0 0 var(--site-s4);
  padding: var(--site-s2) var(--site-s3);
  border: 1px dashed var(--brand-core);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: var(--text-strong);
}
.nin-preview-badge {
  display: inline-block;
  margin-block-start: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-container);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---------- the circles rail: side by side while it fits, a native
   horizontal scroller when it does not (touch swipe, trackpad, keyboard,
   mouse drag via need-it-now.js). No arrows, no duplicated items. --- */
.nin-rail {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--site-pad);
  margin-inline: calc(-1 * var(--site-pad));
  padding-inline: var(--site-pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.nin-rail::-webkit-scrollbar { display: none; }
.nin-rail:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-core); border-radius: 12px; }
@media (min-width: 1100px) {
  .nin-rail { scroll-snap-type: x proximity; scrollbar-width: thin; }
  .nin-rail::-webkit-scrollbar { display: block; height: 6px; }
  .nin-rail::-webkit-scrollbar-thumb { background: var(--border-container); border-radius: 3px; }
  .nin-rail.can-drag { cursor: grab; }
  .nin-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .nin-rail.is-dragging .nin-link { pointer-events: none; }
}
.nin-rail-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(var(--nin-col), 1fr);
  gap: var(--nin-gap);
  margin: 0;
  padding: 6px 0 10px;
  list-style: none;
}
.nin-item { scroll-snap-align: start; min-width: 0; }
.nin-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--site-s3);
  padding: 6px 4px;
  border-radius: 14px;
  color: var(--text-primary);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.nin-link:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }
.nin-circle {
  position: relative;
  display: block;
  inline-size: var(--nin-size);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--nin-plain);
  box-shadow: 0 0 0 1px var(--nin-ring), 0 6px 18px rgba(34, 33, 30, .08);
  transition: box-shadow .2s ease;
}
.nin-circle img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  /* v0.44.0 (B2): the saved zoom (--crop-zoom, set with transform-origin at
     the focal point by ResponsiveImage::cropStyle); 1 when not set. */
  transform: scale(var(--crop-zoom, 1));
  transition: transform .35s ease;
}
.nin-circle--plain { display: grid; place-items: center; color: var(--brand-core); }
.nin-plain-ic { inline-size: 34%; block-size: auto; opacity: .85; }
.nin-link:hover .nin-circle,
.nin-link:focus-visible .nin-circle { box-shadow: 0 0 0 2px var(--brand-core), 0 8px 22px rgba(34, 33, 30, .12); }
.nin-link:hover .nin-circle img { transform: scale(calc(var(--crop-zoom, 1) * 1.04)); }
@media (prefers-reduced-motion: reduce) {
  .nin-circle, .nin-circle img { transition: none; }
  .nin-link:hover .nin-circle img { transform: scale(var(--crop-zoom, 1)); }
}
.nin-name {
  max-inline-size: calc(var(--nin-size) + 24px);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}
html[lang='fa'] .nin-name { font-family: var(--font-persian); font-size: 15px; line-height: 1.5; }

/* ---------- group landing page ------------------------------------- */
.nin-head {
  background: var(--nin-ground);
  border-block-end: 1px solid var(--divider);
  padding-block: var(--site-s5) var(--site-s6);
}
.nin-bc ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--site-s3); padding: 0; list-style: none; font-size: 13px; color: var(--text-muted); }
.nin-bc li + li::before { content: '›'; margin-inline-end: 6px; color: var(--text-muted); }
html[dir='rtl'] .nin-bc li + li::before { content: '‹'; }
.nin-bc a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.nin-h1 { margin: 0 0 var(--site-s2); font-size: 30px; font-weight: 600; line-height: 1.2; color: var(--text-primary); }
.nin-intro { max-inline-size: 70ch; margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
html[lang='fa'] .nin-h1, html[lang='fa'] .nin-intro { font-family: var(--font-persian); }
html[lang='fa'] .nin-intro { line-height: 1.9; }
.nin-safety {
  display: flex;
  gap: var(--site-s2);
  align-items: flex-start;
  max-inline-size: 70ch;
  margin: var(--site-s4) 0 0;
  padding: var(--site-s3) var(--site-s4);
  background: #fff;
  border: 1px solid var(--border-container);
  border-inline-start: 4px solid var(--brand-core);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-primary);
}
.nin-safety-ic { flex: none; margin-block-start: 2px; color: var(--brand-core); }
.nin-main { padding-block: var(--site-s5) var(--site-s7); }
/* v0.46.0 (§2.2): breadcrumb-only head — no pale banner, no min-height, the
   service chips / location / results move up. The ground matches the page so
   the breadcrumb reads as part of the content column, aligned to .hp-cont. */
.nin-head--compact {
  background: transparent;
  border-block-end: 0;
  padding-block: var(--site-s3) 0;
}
.nin-head--compact .nin-bc ol { margin: 0; }
.nin-head--compact .nin-safety { margin-block-start: var(--site-s3); }
.nin-head--compact .nin-preview-note { margin: var(--site-s3) 0 0; }
.nin-head--compact + .nin-main { padding-block-start: var(--site-s3); }
@media (min-width: 700px) {
  .nin-head--compact { padding-block-start: var(--site-s4); }
  .nin-head--compact + .nin-main { padding-block-start: var(--site-s4); }
}

.nin-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--site-s4);
  padding: var(--site-s4);
  background: #fff;
  border: 1px solid var(--border-container);
  border-radius: 14px;
}
@media (min-width: 700px) { .nin-filters { padding: var(--site-s5); } }
.nin-chips-legend { margin: 0 0 var(--site-s2); font-size: 14px; color: var(--text-secondary); }
.nin-chips { display: flex; flex-wrap: wrap; gap: var(--site-s2); margin: 0; padding: 0; list-style: none; }
.nin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: 40px;
  padding: 0 16px;
  border: 1px solid var(--border-container);
  border-radius: 999px;
  background: #fff;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
html[lang='fa'] .nin-chip { font-family: var(--font-persian); }
.nin-chip:hover { border-color: var(--brand-core); }
.nin-chip:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }
.nin-chip.is-on,
.nin-chip[aria-current='true'] { background: var(--brand-core); border-color: var(--brand-core); color: #fff; }
.nin-chips-line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--site-s2); }
.nin-chips-line > .nin-chips { flex: 0 1 auto; }
.nin-more[open] { flex-basis: 100%; }
.nin-more > summary { list-style: none; border-style: dashed; color: var(--text-secondary); }
.nin-more > summary::-webkit-details-marker { display: none; }
.nin-more > summary::after { content: '▾'; font-size: 12px; transition: transform .15s ease; }
.nin-more[open] > summary::after { transform: rotate(180deg); }
.nin-more .nin-less-l, .nin-more[open] .nin-more-l { display: none; }
.nin-more[open] .nin-less-l { display: inline; }
.nin-chips--more { margin-block-start: var(--site-s2); }

.nin-place { border-block-start: 1px solid var(--divider); padding-block-start: var(--site-s4); }
.nin-place-l { display: block; margin-block-end: 6px; font-size: 14px; font-weight: 500; color: var(--text-strong); }
.nin-place-row { display: flex; flex-wrap: wrap; gap: var(--site-s2); }
.nin-place-in {
  flex: 1 1 240px;
  min-inline-size: 0;
  inline-size: 100%;
  min-block-size: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-container);
  border-radius: 999px;
  font-size: 16px;
  color: var(--text-primary);
  background: #fff;
}
.nin-place-in:focus { outline: 2px solid var(--brand-core); outline-offset: 1px; border-color: var(--brand-core); }
.nin-place-in[aria-invalid='true'] { border-color: var(--brand-core); }
.nin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-block-size: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
html[lang='fa'] .nin-btn { font-family: var(--font-persian); }
.nin-btn--dark { background: var(--text-primary); color: #fff; border: 1px solid var(--text-primary); }
.nin-btn--dark:hover { background: #000; }
.nin-btn--ghost { background: #fff; color: var(--text-primary); border: 1px solid var(--border-container); }
.nin-btn--ghost:hover { border-color: var(--brand-core); }
.nin-btn:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }
.nin-btn[aria-busy='true'] { opacity: .6; cursor: progress; }
.nin-geo-msg { margin: var(--site-s2) 0 0; font-size: 13px; color: var(--text-secondary); }
.nin-place-error { margin: 0 0 var(--site-s3); padding: var(--site-s2) var(--site-s3); border-inline-start: 3px solid var(--brand-core); background: #fff; font-size: 14px; }

.nin-results-wrap { margin-block-start: var(--site-s5); }
.nin-results-wrap[aria-busy='true'] { opacity: .55; transition: opacity .15s; }
.nin-results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--site-s4); margin-block-end: var(--site-s3); }
.nin-h2 { margin: 0; font-size: 19px; font-weight: 600; color: var(--text-primary); }
.nin-results-count { margin-inline-start: 6px; font-size: 14px; font-weight: 400; color: var(--text-muted); }
.nin-results-sort { margin: 0; font-size: 13px; color: var(--text-muted); }
html[lang='fa'] .nin-h2, html[lang='fa'] .nin-results-count, html[lang='fa'] .nin-results-sort { font-family: var(--font-persian); }

.nin-cards { display: grid; grid-template-columns: 1fr; gap: var(--site-s4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .nin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--site-s3);
  padding: var(--site-s4);
  background: #fff;
  border: 1px solid var(--border-container);
  border-radius: 14px;
}
.nin-card-body { display: grid; gap: 6px; }
.nin-card-ic { position: absolute; inset-block-start: var(--site-s4); inset-inline-end: var(--site-s4); color: var(--text-muted); }
.nin-card-name { margin: 0; padding-inline-end: 32px; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--text-primary); }
.nin-card-services { margin: 0; font-size: 14px; color: var(--text-secondary); }
html[lang='fa'] .nin-card-services, html[lang='fa'] .nin-card-hours, html[lang='fa'] .nin-card-based, html[lang='fa'] .nin-tag { font-family: var(--font-persian); }
.nin-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.nin-tag { padding: 3px 10px; border-radius: 999px; background: var(--fill-hover); font-size: 12.5px; font-weight: 500; color: var(--text-strong); }
.nin-tag--ok { color: var(--brand-core); }
.nin-card-based { margin: 0; font-size: 13px; color: var(--text-secondary); }
.nin-card-hours { display: flex; gap: 6px; align-items: flex-start; margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-secondary); }
.nin-card-hours[data-state='within'] { color: var(--text-strong); font-weight: 500; }
.nin-hours-ic { flex: none; margin-block-start: 1px; }
.nin-card-actions { display: flex; gap: var(--site-s2); }
.nin-act {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-block-size: 44px;
  padding: 0 10px;
  border: 1px solid var(--border-container);
  border-radius: 999px;
  background: #fff;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
html[lang='fa'] .nin-act { font-family: var(--font-persian); }
.nin-act:hover { border-color: var(--brand-core); }
.nin-act:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }
.nin-act--call { background: var(--brand-core); border-color: var(--brand-core); color: #fff; }
.nin-act--call:hover { background: var(--brand-core-hover); border-color: var(--brand-core-hover); }
.nin-empty { margin: 0; padding: var(--site-s5); border: 1px dashed var(--border-container); border-radius: 14px; background: #fff; color: var(--text-secondary); }
.nin-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--site-s4); margin-block-start: var(--site-s5); font-size: 14px; }
.nin-page-a { color: var(--brand-core); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nin-disclaimer { max-inline-size: 80ch; margin: var(--site-s6) 0 0; padding-block-start: var(--site-s4); border-block-start: 1px solid var(--divider); font-size: 13px; line-height: 1.6; color: var(--text-muted); }
html[lang='fa'] .nin-disclaimer, html[lang='fa'] .nin-empty, html[lang='fa'] .nin-safety, html[lang='fa'] .nin-chips-legend, html[lang='fa'] .nin-place-l, html[lang='fa'] .nin-bc { font-family: var(--font-persian); }

/* v0.44.0 (B1): Directory Search sponsored positions 1, 4, 7 — the approved
   Category "Sponsored" flag (.lc-flag--sp), placed under the result meta. */
.hp-res-sp { margin-block-start: 4px; }
html[lang='fa'] .hp-res-sp { font-family: var(--font-persian); }

/* =====================================================================
   v0.46.0 — "Add your business" six-step popup (js/register.js).
   Values are the Owner-approved prototype's (resaneh_business_registration_
   wireframe.html): brand #960546, ink #252326, muted #79747a, line #e7e0e2,
   soft #fff7fa, 720px modal, 19px radius, 24/28px header padding, 9px field
   radius, 6-segment 5px bar, 600px mobile breakpoint. Deviations: the site's
   own typefaces (IBM Plex Sans / Plex Sans Arabic) instead of Tahoma; field
   errors under each field; a checkbox group for "How customers are served".
   ===================================================================== */
.rz-overlay {
  --rz-brand: #960546; --rz-ink: #252326; --rz-muted: #79747a; --rz-line: #e7e0e2; --rz-soft: #fff7fa;
  position: fixed; inset: 0; z-index: 1000;
  display: flex; justify-content: center; align-items: center;
  padding: 15px; overflow-y: auto;
  background: rgba(23, 14, 20, .58);
}
.rz-overlay[hidden] { display: none; }
html.rz-reg-open, html.rz-reg-open body { overflow: hidden; }
.rz-modal {
  background: #fff; color: var(--rz-ink);
  inline-size: min(720px, 100%); max-block-size: calc(100vh - 30px); max-block-size: calc(100dvh - 30px);
  overflow: auto; overscroll-behavior: contain;
  border-radius: 19px; box-shadow: 0 25px 80px rgba(0, 0, 0, .2);
  font-family: var(--font-latin); text-align: start;
}
.rz-modal[lang='fa'] { font-family: var(--font-persian); }
.rz-modal *, .rz-modal *::before, .rz-modal *::after { box-sizing: border-box; }
.rz-top { display: flex; justify-content: space-between; gap: 15px; align-items: start; padding: 24px 28px 15px; }
.rz-eyebrow { font-family: var(--font-latin); font-size: 11px; color: var(--rz-brand); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.rz-heading { margin: 6px 0 0; font-size: 22px; font-weight: 700; line-height: 1.35; color: var(--rz-ink); }
.rz-sub { font-size: 13px; color: var(--rz-muted); margin-top: 7px; line-height: 1.8; }
.rz-headtools { display: flex; gap: 7px; align-items: center; flex: none; }
.rz-lang { border: 1px solid var(--rz-line); background: #fff; padding: 6px 10px; border-radius: 7px; color: var(--rz-ink); font: 500 14px/1.2 var(--font-latin); min-block-size: 34px; cursor: pointer; }
.rz-lang[lang='fa'] { font-family: var(--font-persian); }
.rz-close { border: 1px solid var(--rz-line); background: #fff; color: #555; border-radius: 9px; inline-size: 34px; block-size: 34px; font-size: 20px; line-height: 1; cursor: pointer; }
.rz-lang:focus-visible, .rz-close:focus-visible, .rz-btn:focus-visible, .rz-modal a:focus-visible { outline: 2px solid var(--rz-brand); outline-offset: 2px; }
.rz-progress { padding: 0 28px 17px; }
.rz-steplabel { display: flex; justify-content: space-between; font-size: 11px; color: #777; margin-block-end: 10px; }
.rz-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rz-bar span { block-size: 5px; border-radius: 5px; background: #e9e0e4; transition: background-color .25s ease; }
.rz-bar span.on { background: var(--rz-brand); }
.rz-body { padding: 22px 28px 26px; border-block: 1px solid var(--rz-line); min-block-size: 310px; }
.rz-body h2 { font-size: 20px; font-weight: 700; margin: 0 0 12px; line-height: 1.4; outline: none; }
.rz-body p { color: #554e53; font-size: 14px; line-height: 2; margin: 0 0 12px; }
.rz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.rz-field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 15px; min-inline-size: 0; border: 0; padding: 0; }
.rz-field.full { grid-column: 1 / -1; }
.rz-field label, .rz-field legend { font-size: 12px; font-weight: 700; color: var(--rz-ink); padding: 0; }
.rz-req { color: var(--rz-brand); }
.rz-modal input:not([type='checkbox']), .rz-modal select {
  background: #fff; border: 1px solid #d8d1d3; border-radius: 9px; padding: 12px 13px;
  outline: 0; inline-size: 100%; min-inline-size: 0; color: var(--rz-ink);
  font: inherit; font-size: 14px; line-height: 1.4; min-block-size: 44px;
}
.rz-modal input[dir='ltr'] { text-align: left; }
.rz-modal input:focus, .rz-modal select:focus { border-color: var(--rz-brand); box-shadow: 0 0 0 3px rgba(150, 5, 70, .08); }
.rz-modal input::placeholder { color: #aaa; }
.rz-field.has-err input, .rz-field.has-err select { border-color: #c0392b; }
.rz-ferr { color: #9b2626; font-size: 12px; line-height: 1.6; }
.rz-tip { color: #807880; font-size: 11px; line-height: 1.8; }
.rz-note { background: var(--rz-soft); border: 1px solid #efdde4; border-radius: 12px; padding: 16px; font-size: 13px; line-height: 2; color: var(--rz-ink); }
.rz-checkline { display: flex; gap: 9px; align-items: flex-start; margin: 20px 0 8px; }
.rz-checkline input { inline-size: 18px; block-size: 18px; margin-block-start: 5px; flex: none; accent-color: var(--rz-brand); }
.rz-checkline label { font-size: 13px; line-height: 1.9; }
.rz-checkline.has-err label { color: #9b2626; }
.rz-modal a { color: var(--rz-brand); }
.rz-modes { grid-column: 1 / -1; }
.rz-chkrow { display: flex; flex-wrap: wrap; gap: 8px; }
.rz-chk { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 8px 13px; border: 1px solid #d8d1d3; border-radius: 9px; font-size: 13px !important; font-weight: 500 !important; cursor: pointer; }
.rz-chk input { inline-size: 16px; block-size: 16px; accent-color: var(--rz-brand); }
.rz-chk:has(input:checked) { border-color: var(--rz-brand); background: var(--rz-soft); }
.rz-footer { padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
/* v0.46.0 QA: Back / Next / Submit never scroll out of reach — the footer stays
   at the bottom of the scrolling modal (long review, errors, 320px). */
.rz-footer { position: sticky; inset-block-end: 0; z-index: 2; background: #fff; border-end-start-radius: inherit; border-end-end-radius: inherit; }
.rz-actions, .rz-actions-c { display: flex; gap: 10px; }
.rz-actions[hidden] { display: none; }
.rz-btn { border: 1px solid #d9cbd2; background: #fff; color: var(--rz-ink); border-radius: 9px; padding: 11px 18px; min-inline-size: 98px; min-block-size: 44px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rz-btn[hidden] { display: none; }
.rz-primary { background: var(--rz-brand); color: #fff; border-color: var(--rz-brand); }
.rz-btn:disabled { opacity: .45; cursor: not-allowed; }
.rz-footnote { font-size: 11px; color: #777; }
.rz-confirm { display: flex; flex-direction: column; gap: 10px; flex: 1 1 100%; padding: 12px; border: 1px solid #efdde4; background: var(--rz-soft); border-radius: 12px; font-size: 13px; line-height: 1.8; }
.rz-confirm[hidden] { display: none; }
.rz-footer:has(.rz-confirm:not([hidden])) .rz-footnote { display: none; }
.rz-success { background: #f0faf3; border: 1px solid #cce8d0; padding: 18px; border-radius: 12px; line-height: 2; }
.rz-ref { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid #cce8d0; font-size: 14px; }
.rz-ref b { font-family: var(--font-latin); letter-spacing: .04em; }
.rz-review { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 0 12px; }
.rz-review div { padding: 10px; background: #faf8f8; border: 1px solid #eee5e7; border-radius: 8px; font-size: 12px; min-inline-size: 0; }
.rz-review dt { display: block; color: #827980; font-size: 11px; font-weight: 400; margin-block-end: 5px; }
.rz-review dd { margin: 0; overflow-wrap: anywhere; color: var(--rz-ink); font-weight: 700; }
.rz-error { background: #fff1f1; border: 1px solid #efc5c5; border-radius: 8px; color: #9b2626; padding: 10px; margin: 0 0 12px; font-size: 12px; }
.rz-resumed { background: var(--rz-soft); border: 1px solid #efdde4; border-radius: 8px; padding: 10px; margin: 0 0 12px; font-size: 12px; }
.rz-hpwrap { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.rz-vh { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .rz-overlay { padding: 7px; }
  .rz-modal { border-radius: 14px; max-block-size: calc(100vh - 14px); max-block-size: calc(100dvh - 14px); }
  .rz-top, .rz-progress, .rz-body, .rz-footer { padding-inline: 17px; }
  .rz-top { padding-block-start: 15px; }
  .rz-heading { font-size: 19px; }
  .rz-body { min-block-size: 280px; }
  .rz-grid, .rz-review { grid-template-columns: 1fr; }
  .rz-field.full { grid-column: auto; }
  .rz-footer { flex-direction: column-reverse; align-items: stretch; }
  .rz-actions, .rz-actions-c { flex-direction: row-reverse; }
  .rz-actions .rz-btn, .rz-actions-c .rz-btn { flex: 1; }
  .rz-footnote { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .rz-bar span { transition: none; } }
.rz-reg-page-in { display: flex; flex-direction: column; gap: var(--site-s3); align-items: flex-start; min-block-size: 40vh; }
a.btn-primary:hover { filter: brightness(.92); }
a.btn-primary:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }

/* v0.46.0: point-of-collection privacy line under public forms */
.sp-privacy { margin: var(--site-s3) 0 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.sp-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   v0.47.0 (P3) — Plans & Pricing (/pricing). Owner v5.5 layout in the
   official RESANEH system: tokens only, brand #960546, editorial canvas
   #F8F6F3 (--surface-warm), body ink. Festival band = pale rose ground
   with DARK ink (v5.5 contrast rule: never light text on a pastel).
   Contrast checked: ink #22211e / secondary #585148 / brand #960546 /
   brand-dark #670437 on #fff, #f8f6f3 and #fbf0f4 are all ≥ 4.5:1.
   ===================================================================== */
.pr-page { --pr-rose: #fbf0f4; --pr-rose-line: #ecc9d8; --pr-brand-dark: #670437; --pr-ok: #1d6b45; padding-block-end: 56px; }
.pr-page :where(h2, h3, h4, p, ul, dl) { margin: 0; }
.pr-hero { display: grid; gap: var(--site-s3); }
.pr-hero-txt { display: contents; }
/* v0.47.3 (Owner, 5 Nov 2026): optional CMS background image. The breadcrumb, headline
   and CTA keep their places; over the image they sit on light frosted surfaces (Category
   Hero language, light variant) so the approved brand / dark headline colours stay
   readable on ANY photo: the text panel is ≥ 88 % warm white, so dark text and the brand
   colour keep ≥ 4.5 : 1 even over a black image. No backdrop-filter = a near-opaque panel. */
.pr-hero--img { position: relative; isolation: isolate; overflow: hidden; border-color: transparent; background: #ebe6df; min-block-size: clamp(340px, 34vw, 460px); align-content: center; justify-items: start; }
.pr-hero-bg { position: absolute; inset: 0; z-index: -2; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.pr-hero--img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(248, 246, 243, .5), rgba(248, 246, 243, .12) 62%, rgba(248, 246, 243, 0)); pointer-events: none; }
html[dir='rtl'] .pr-hero--img::before { background: linear-gradient(to left, rgba(248, 246, 243, .5), rgba(248, 246, 243, .12) 62%, rgba(248, 246, 243, 0)); }
.pr-hero--img .pr-hero-txt, .pr-hero--img .cat-bc, .pr-hero--img .pr-link {
  background: rgba(248, 246, 243, .95);
  border: 1px solid rgba(150, 5, 70, .14);
  box-shadow: 0 1px 3px rgba(34, 33, 30, .08);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .pr-hero--img .pr-hero-txt, .pr-hero--img .cat-bc, .pr-hero--img .pr-link {
    background: rgba(248, 246, 243, .88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
.pr-hero--img .pr-hero-txt { display: grid; gap: var(--site-s3); max-inline-size: min(680px, 100%); padding: 20px 24px; border-radius: 12px; }
.pr-hero--img .cat-bc { padding: 4px 12px; border-radius: 999px; }
.pr-hero--img .pr-jumps { margin-block-start: 0; }
.pr-hero--img .pr-link { display: inline-flex; align-items: center; min-block-size: 44px; padding: 0 16px; border-radius: 8px; font-size: 15px; text-decoration: none; }
.pr-hero--img .pr-link:hover { background: #fff; text-decoration: underline; }
.pr-hero--img .pr-chips li { background: #fff; }
@media (max-width: 699.98px) {
  .pr-hero--img { min-block-size: 0; padding: 14px; }
  .pr-hero--img .pr-hero-txt { padding: 16px; }
}
.pr-kicker { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
html[lang='fa'] .pr-kicker { letter-spacing: 0; text-transform: none; }
.pr-h1 { margin: 0; text-wrap: balance; }
.pr-brand { color: var(--brand-core); }
.pr-ink { color: var(--text-primary); }
.pr-lead { max-inline-size: 72ch; color: var(--text-secondary); }
.pr-chips { display: flex; flex-wrap: wrap; gap: var(--site-s2); list-style: none; padding: 0; }
.pr-chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface-warm); color: var(--text-strong); font-size: 14px; font-weight: 500; }
.pr-chips .pr-chip--fest { background: var(--pr-rose); color: var(--pr-brand-dark); border: 1px solid var(--pr-rose-line); }
.pr-jumps { display: flex; flex-wrap: wrap; align-items: center; gap: var(--site-s4); margin-block-start: var(--site-s2); }
.pr-link { color: var(--brand-core); font-weight: 600; text-underline-offset: 3px; }
.pr-link:focus-visible, .pr-card-cta:focus-visible, .pr-page summary:focus-visible, .pr-tabs [role="tab"]:focus-visible, .pr-scroll:focus-visible { outline: 2px solid var(--brand-core); outline-offset: 2px; }

.pr-sec { display: grid; gap: var(--site-s4); margin-block-start: var(--site-s7); scroll-margin-block-start: 16px; }
.pr-h2 { font-size: var(--type-h2-size-en, 28px); line-height: 1.25; font-weight: 600; color: var(--text-primary); }
html[lang='fa'] .pr-h2 { font-size: var(--type-h2-size-fa, 28px); line-height: 1.5; }
.pr-h3 { font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--text-primary); }
html[lang='fa'] .pr-h3 { line-height: 1.6; }
.pr-sub { color: var(--text-secondary); max-inline-size: 75ch; }
.pr-note { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.pr-unit { display: block; font-size: 13px; font-weight: 400; color: var(--text-muted); }
.pr-ic { inline-size: 16px; block-size: 16px; flex: none; margin-block-start: 3px; }
.pr-ic--y { color: var(--pr-ok); }
.pr-ic--n { color: var(--text-muted); }

/* packages */
.pr-seg { display: inline-flex; border: 1px solid var(--border-container); border-radius: 999px; padding: 3px; margin: 0; background: #fff; justify-self: start; }
.pr-seg label { position: relative; }
.pr-seg input { position: absolute; opacity: 0; inset: 0; }
.pr-seg span { display: block; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-strong); cursor: pointer; }
.pr-seg input:checked + span { background: var(--brand-core); color: #fff; }
.pr-seg input:focus-visible + span { outline: 2px solid var(--brand-core); outline-offset: 2px; }
.pr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--site-s4); align-items: stretch; }
.pr-card { position: relative; display: flex; flex-direction: column; gap: var(--site-s3); padding: 22px; border: 1px solid var(--border-container); border-radius: 12px; background: #fff; min-inline-size: 0; }
.pr-card--top { border: 2px solid var(--brand-core); }
.pr-badge { position: absolute; inset-block-start: -12px; inset-inline-start: 20px; padding: 2px 10px; border-radius: 999px; background: var(--brand-core); color: #fff; font-size: 12px; font-weight: 600; }
.pr-card-h { font-size: 22px; font-weight: 600; color: var(--text-primary); }
.pr-card-tag { color: var(--text-secondary); font-size: 15px; min-block-size: 2.6em; }
.pr-amt { font-size: 36px; line-height: 1.1; font-weight: 600; color: var(--text-primary); }
.pr-amt span { font-size: 15px; font-weight: 400; color: var(--text-muted); }
.pr-card-note { font-size: 14px; color: var(--text-secondary); }
.pr-terms { display: grid; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--surface-warm); }
.pr-terms > div { display: grid; gap: 2px; }
.pr-terms dt { font-size: 13px; color: var(--text-secondary); }
.pr-terms dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--text-primary); }
.pr-terms dd b { font-size: 18px; }
.pr-terms dd s { color: var(--text-muted); font-size: 14px; }
.pr-terms dd span { flex-basis: 100%; font-size: 13px; color: var(--text-secondary); }
.pr-feat { display: grid; gap: 8px; list-style: none; padding: 0; font-size: 15px; line-height: 1.5; }
.pr-feat li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-strong); }
.pr-feat li.is-n { color: var(--text-muted); }
/* v0.47.3: the Lumarken partner benefits inside the Premium / Growth cards — separated
   from the main list, light brand tint (rose #fbf0f4 / line #ecc9d8), never a price row. */
.pr-lumbox { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--pr-rose-line); border-radius: 10px; background: var(--pr-rose); }
.pr-lumbox-h { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--pr-brand-dark); }
.pr-feat--lum { font-size: 14px; gap: 6px; }
.pr-feat--lum .pr-ic--y { color: var(--pr-brand-dark); }
.pr-lumbox-n { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.pr-card-cta { margin-block-start: auto; align-self: flex-start; color: var(--brand-core); font-weight: 600; text-underline-offset: 3px; }
.pr-what, .pr-more, .pr-faq details, .pr-grp { border: 1px solid var(--border-container); border-radius: 10px; background: #fff; }
.pr-page summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; font-weight: 600; color: var(--text-primary); list-style: none; }
.pr-page summary::-webkit-details-marker { display: none; }
.pr-what p, .pr-faq details p { padding: 0 14px 14px; color: var(--text-secondary); }

/* festival + Lumarken band */
.pr-band { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--site-s4); margin-block-start: var(--site-s7); }
.pr-band--one { grid-template-columns: minmax(0, 1fr); }
.pr-fest, .pr-lumi { display: grid; gap: var(--site-s3); align-content: start; padding: 26px; border-radius: 14px; }
.pr-fest { background: var(--pr-rose); border: 1px solid var(--pr-rose-line); color: var(--text-primary); }
.pr-lumi { background: var(--surface-warm); border: 1px solid var(--border-container); color: var(--text-primary); }
.pr-band-k { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--pr-brand-dark); }
html[lang='fa'] .pr-band-k { letter-spacing: 0; text-transform: none; }
.pr-band-h { font-size: 26px; line-height: 1.3; font-weight: 600; color: var(--pr-brand-dark); }
html[lang='fa'] .pr-band-h { line-height: 1.55; }
.pr-band-p { color: var(--text-primary); line-height: 1.7; }
.pr-band-small { font-size: 14px; color: var(--text-secondary); }
.pr-fest-two { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--pr-rose-line); }
.pr-fest-two b { color: var(--pr-brand-dark); }
.pr-fest-two span { color: var(--text-strong); }
.pr-pct { display: flex; flex-wrap: wrap; gap: var(--site-s2); }
.pr-pct span { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--border-container); color: var(--text-strong); }
.pr-pct b { color: var(--brand-core); font-size: 18px; }

/* Lumarken */
.pr-box { display: grid; gap: var(--site-s3); padding: 20px; border: 1px solid var(--border-container); border-radius: 12px; background: #fff; min-inline-size: 0; }
.pr-ads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--site-s3); list-style: none; padding: 0; }
.pr-ads li { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 10px; background: var(--surface-warm); min-inline-size: 0; }
.pr-ads-h { font-weight: 600; color: var(--text-primary); }
.pr-ads-l { font-size: 13px; color: var(--text-secondary); }
.pr-ads dl { display: grid; gap: 4px; }
.pr-ads dl > div { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.pr-ads dt { color: var(--text-secondary); }
.pr-ads dd { margin: 0; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.pr-ads dd span { font-weight: 400; color: var(--text-muted); }
.pr-ads .is-g dd { color: var(--brand-core); }
.pr-more > :not(summary) { margin: 0 14px 14px; }
.pr-incexc { display: grid; grid-template-columns: 1fr 1fr; gap: var(--site-s4); }
.pr-incexc h4 { font-size: 15px; font-weight: 600; margin-block-end: 8px; color: var(--text-primary); }
.pr-consult { padding: 12px 14px; border-radius: 10px; background: var(--surface-warm); color: var(--text-strong); }
.pr-consult b { color: var(--text-primary); }

/* tables (scroll inside their own box; the page never scrolls sideways) */
.pr-scroll { overflow-x: auto; max-inline-size: 100%; border: 1px solid var(--border-container); border-radius: 10px; background: #fff; }
.pr-table { inline-size: 100%; border-collapse: collapse; font-size: 15px; }
.pr-table th, .pr-table td { padding: 10px 12px; border-block-end: 1px solid var(--divider); text-align: start; vertical-align: top; color: var(--text-strong); }
.pr-table thead th { background: var(--surface-warm); color: var(--text-primary); font-weight: 600; font-size: 14px; white-space: nowrap; }
.pr-table tbody th { font-weight: 500; color: var(--text-primary); }
.pr-table tr:last-child > * { border-block-end: 0; }
.pr-table td b { color: var(--text-primary); }
.pr-table .is-g { background: #fdf7fa; }
.pr-save { display: block; font-size: 13px; color: var(--pr-ok); }
.pr-table--cmp { min-inline-size: 640px; }
.pr-table--cmp tbody th { min-inline-size: 190px; }
.pr-table--cmp td { white-space: normal; }
.pr-table--lum { min-inline-size: 560px; }
.pr-y { display: inline-flex; gap: 4px; align-items: flex-start; color: var(--pr-ok); font-weight: 500; }
.pr-n { display: inline-flex; color: var(--text-muted); }

/* Add-ons */
.pr-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-block-end: 1px solid var(--border-container); padding-block-end: 8px; }
.pr-tabs [role="tab"] { border: 1px solid var(--border-container); background: #fff; color: var(--text-strong); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.pr-tabs [role="tab"][aria-selected="true"] { background: var(--brand-core); border-color: var(--brand-core); color: #fff; }
.pr-panel { display: grid; gap: var(--site-s3); }
.pr-panel[hidden] { display: none; }
.pr-add { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--site-s3); list-style: none; padding: 0; }
.pr-add-i { display: flex; justify-content: space-between; gap: var(--site-s4); padding: 16px; border: 1px solid var(--border-container); border-radius: 10px; background: #fff; min-inline-size: 0; }
.pr-add-t { display: grid; gap: 4px; min-inline-size: 0; }
.pr-add-t h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.pr-add-t p { font-size: 14px; color: var(--text-secondary); }
.pr-add-p { display: grid; gap: 2px; justify-items: end; text-align: end; flex: none; max-inline-size: 45%; }
.pr-add-p b { font-size: 18px; color: var(--text-primary); }
.pr-add-p span { font-size: 13px; color: var(--text-muted); }
.pr-add-p .pr-add-m { color: var(--brand-core); font-weight: 500; }
.pr-na { color: var(--text-secondary) !important; }

/* contract length */
.pr-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--site-s4); }
.pr-two .pr-box p { color: var(--text-secondary); }
.pr-figs { list-style: none; padding: 0; display: grid; gap: 4px; font-weight: 600; color: var(--text-primary); }

/* calculator */
.pr-calc:focus { outline: none; }
.pr-calc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--site-s5); align-items: start; }
.pr-form { display: grid; gap: var(--site-s4); min-inline-size: 0; }
.pr-fs { margin: 0; padding: 0; border: 0; min-inline-size: 0; display: grid; gap: var(--site-s2); }
.pr-fs.is-off { opacity: .55; }
.pr-lg { font-weight: 600; color: var(--text-primary); margin-block-end: 6px; padding: 0; font-size: 16px; }
.pr-opts { display: flex; flex-wrap: wrap; gap: var(--site-s2); }
.pr-opt { position: relative; }
.pr-opt input { position: absolute; opacity: 0; inset: 0; }
.pr-opt span { display: block; padding: 9px 14px; border: 1px solid var(--border-interactive); border-radius: 8px; background: #fff; color: var(--text-strong); cursor: pointer; font-size: 15px; }
.pr-opt small { color: var(--pr-ok); font-weight: 600; }
.pr-opt input:checked + span { border-color: var(--brand-core); box-shadow: inset 0 0 0 1px var(--brand-core); background: var(--pr-rose); color: var(--text-primary); }
.pr-opt input:focus-visible + span { outline: 2px solid var(--brand-core); outline-offset: 2px; }
.pr-opt input:disabled + span { cursor: not-allowed; }
.pr-hint { font-size: 14px; color: var(--text-secondary); }
.pr-qtys { list-style: none; padding: 0 14px 12px; display: grid; gap: 10px; }
.pr-qtys li { display: flex; justify-content: space-between; align-items: center; gap: var(--site-s3); }
.pr-qtys label { color: var(--text-primary); font-size: 15px; min-inline-size: 0; }
.pr-q { display: grid; justify-items: center; gap: 2px; flex: none; }
.pr-q[hidden] { display: none; }
/* v0.47.2: one control per Add-on kind — checkbox, category choice, or quantity */
.pr-qtys li { flex-direction: column; align-items: stretch; }
.pr-qrow { display: flex; justify-content: space-between; align-items: center; gap: var(--site-s3); }
.pr-q--chk { display: inline-flex; align-items: center; gap: 6px; }
.pr-chk { inline-size: 22px; block-size: 22px; accent-color: var(--brand-core); margin: 0; }
.pr-cats { margin: 8px 0 2px; padding: 10px 12px; border: 1px solid var(--border-container); border-radius: 8px; background: var(--surface-warm); }
.pr-cats[hidden] { display: none; }
.pr-dur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 0; font-size: 14px; color: var(--text-secondary); }
.pr-dur[hidden] { display: none; }
.pr-dur select { inline-size: auto; min-inline-size: 9.5em; min-block-size: 40px; }
.pr-line-calc { font-variant-numeric: tabular-nums; }
.pr-cats legend { float: none; inline-size: auto; padding: 0 4px; margin: 0; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.pr-catlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 4px 12px; max-block-size: 240px; overflow-y: auto; padding-block: 4px; }
.pr-cat { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-primary); min-block-size: 32px; }
.pr-cat.is-sub { padding-inline-start: 18px; color: var(--text-strong); }
.pr-cat input { inline-size: 18px; block-size: 18px; accent-color: var(--brand-core); flex: none; } /* v0.47.1: no quantity box for an item included in / not sold with the chosen membership */
.pr-q input { inline-size: 76px; text-align: center; }
.pr-qd { font-size: 12px; color: var(--text-muted); }
.pr-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--site-s3); }
.pr-sel { display: grid; gap: 4px; font-size: 14px; color: var(--text-secondary); }
.pr-sel select { inline-size: 100%; }
.pr-est { position: sticky; inset-block-start: 16px; display: grid; gap: var(--site-s3); padding: 20px; border-radius: 12px; border: 1px solid var(--border-container); background: var(--surface-warm); min-inline-size: 0; }
.pr-est[aria-busy="true"] { opacity: .6; }
.pr-est-sel { color: var(--text-secondary); }
.pr-est-err { color: var(--brand-core-pressed); font-weight: 600; }
.pr-lines { list-style: none; padding: 0; display: grid; gap: 10px; }
.pr-line { padding-block-end: 10px; border-block-end: 1px solid var(--border-container); display: grid; gap: 6px; }
.pr-line-h { display: flex; justify-content: space-between; gap: var(--site-s3); align-items: baseline; }
.pr-line-n { color: var(--text-primary); font-weight: 500; min-inline-size: 0; }
.pr-line-n small { display: block; font-weight: 400; color: var(--text-secondary); font-size: 13px; }
.pr-line-v { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.pr-line--included .pr-line-v, .pr-line--free .pr-line-v { color: var(--pr-ok); }
.pr-line--not_available .pr-line-v, .pr-line--not_sold .pr-line-v { color: var(--text-secondary); font-weight: 500; white-space: normal; text-align: end; }
.pr-line-s { font-size: 13px; color: var(--text-secondary); }
.pr-adj { display: grid; gap: 2px; font-size: 13px; }
.pr-adj > div, .pr-tot > div { display: flex; justify-content: space-between; gap: var(--site-s3); }
.pr-adj dt { color: var(--text-secondary); }
.pr-adj dd { margin: 0; color: var(--text-strong); white-space: nowrap; }
.pr-tot { display: grid; gap: 4px; }
.pr-tot dt { color: var(--text-secondary); }
.pr-tot dd { margin: 0; color: var(--text-primary); white-space: nowrap; }
.pr-tot .is-d dd { color: var(--pr-ok); }
.pr-tot .is-t { padding-block-start: 6px; border-block-start: 1px solid var(--border-container); }
.pr-tot .is-t dt, .pr-tot .is-t dd { font-size: 20px; font-weight: 600; color: var(--text-primary); }
.pr-tot .is-s dt, .pr-tot .is-s dd { font-size: 13px; }
.pr-req { justify-self: stretch; }
.pr-faq { display: grid; gap: var(--site-s2); }

@media (max-width: 1099.98px) {
  .pr-ads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-band { grid-template-columns: minmax(0, 1fr); }
  .pr-calc-grid { grid-template-columns: minmax(0, 1fr); }
  .pr-est { position: static; }
}
@media (max-width: 899.98px) {
  .pr-cards { grid-template-columns: minmax(0, 1fr); max-inline-size: 560px; }
  .pr-add { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699.98px) {
  .pr-sec, .pr-band { margin-block-start: var(--site-s6); }
  .pr-ads { grid-template-columns: minmax(0, 1fr); }
  .pr-two, .pr-incexc, .pr-row2 { grid-template-columns: minmax(0, 1fr); }
  .pr-fest, .pr-lumi, .pr-box, .pr-est, .pr-card { padding: 16px; }
  .pr-band-h { font-size: 22px; }
  .pr-amt { font-size: 32px; }
  .pr-add-i { flex-direction: column; gap: 8px; }
  .pr-add-p { justify-items: start; text-align: start; max-inline-size: none; }
  .pr-card-tag { min-block-size: 0; }
}
/* v0.47.0 (P4): request page */
.pr-check { display: flex; gap: 10px; align-items: flex-start; color: var(--text-primary); cursor: pointer; }
.pr-check input { inline-size: 20px; block-size: 20px; margin-block-start: 2px; accent-color: var(--brand-core); flex: none; }
.pr-consent { margin-block: 6px 12px; }
.pr-page .sp-out p { margin: 4px 0 0; }

/* v0.49.0 — Pricing: 12-month qualifier, dedicated website section, release estimate */
.pr-feat .is-term small.pr-only { display: block; font-size: 12px; font-weight: 600; color: var(--pr-brand-dark); }
.pr-web-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--site-s5, 28px); align-items: center; padding: 28px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #57072b, var(--brand-core, #960546) 78%); }
.pr-web .pr-web-badge { display: inline-block; margin: 0 0 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--brand-core, #960546); background: #f9e8ee; }
.pr-web-h { margin: 4px 0 12px; font-size: 28px; line-height: 1.25; color: #fff; }
.pr-web-txt > p { margin: 0 0 14px; line-height: 1.65; color: #f5dfe9; }
.pr-web-pts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.pr-web-pts li { padding: 10px 12px; border: 1px solid #ffffff2e; border-radius: 10px; background: #ffffff17; }
.pr-wire { margin: 0; }
.pr-wire-in { padding: 13px; border-radius: 13px; color: #231920; background: #fff; transform: rotate(-2deg); box-shadow: 0 13px 29px #1d00134d; }
.pr-wire-nav { display: flex; justify-content: space-between; align-items: center; block-size: 22px; border-block-end: 1px solid #eee; }
.pr-wire-nav span { inline-size: 64px; block-size: 9px; border-radius: 6px; background: var(--brand-core, #960546); }
.pr-wire-nav i { font-size: 8px; font-style: normal; color: #777; }
.pr-wire-hero { display: grid; gap: 6px; align-content: center; block-size: 66px; margin-block-start: 12px; padding: 14px; border-radius: 7px; background: #f6e9ef; }
.pr-wire-hero span { block-size: 6px; inline-size: 60%; border-radius: 6px; background: #d7b3c3; }
.pr-wire-hero span + span { inline-size: 38%; }
.pr-wire-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-block-start: 9px; }
.pr-wire-grid span { block-size: 50px; border: 1px solid #e6e3e2; border-radius: 5px; background: #f1f0ef; }
.pr-wire figcaption { margin-block-start: 14px; font-size: 12px; text-align: center; color: #ffebf0; }
.pr-web-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-block-start: 16px; }
.pr-web-info article { padding: 16px 18px; border: 1px solid var(--border-container); border-radius: 12px; background: #fff; }
.pr-web-info h3 { margin: 0 0 6px; font-size: 16px; color: var(--pr-brand-dark); }
.pr-web-info p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.pr-web > .pr-note { margin-block-start: 12px; }
.pr-rel { margin-block: 10px; padding: 10px 12px; border: 1px dashed var(--pr-rose-line); border-radius: 10px; background: var(--pr-rose); font-size: 13px; line-height: 1.55; }
.pr-rel p { margin: 0; }
.pr-rel-h { font-weight: 600; color: var(--pr-brand-dark); }
@media (max-width: 899.98px) {
  .pr-web-card { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .pr-web-info { grid-template-columns: minmax(0, 1fr); }
  .pr-wire { max-inline-size: 360px; justify-self: center; }
}
@media (max-width: 479.98px) {
  .pr-web-pts { grid-template-columns: minmax(0, 1fr); }
  .pr-web-h { font-size: 23px; }
}
.pr-scroll { position: relative; } /* v0.49.0: keeps visually-hidden cell text inside the scroll box (no page overflow at 390px) */
