/* ==========================================================================
   Daleel client portal — brand theme
   Tokens, type scale and components taken from the visual identity in
   daleelclientui-visual-identity (src/index.css and src/App.tsx).
   ========================================================================== */

:root {
  /* Brand palette */
  --brand-green: #1a3a2a;
  --brand-green-mid: #2d5a3d;
  --brand-green-light: #4a7c59;
  --brand-green-deep: #111e17;
  --brand-gold: #c9913a;
  --brand-gold-light: #e8b46a;
  /* Gold dark enough for white text on it, and for gold text on sand or white (about 5:1).
     The brighter --brand-gold stays for accents and for anything on the deep green. */
  --brand-gold-strong: #946620;
  --brand-gold-strong-hover: #7d5519;
  --brand-sand: #faf7f0;
  --brand-sand-dark: #f0ead8;
  --brand-ink: #1a1a18;
  --brand-muted: #6b6a5e;
  --brand-line: #e5e0d0;

  --surface: #ffffff;
  --surface-sunken: var(--brand-sand);

  --danger: #b3261e;
  --danger-soft: #fdecea;
  --success: var(--brand-green-light);
  --success-soft: #eaf3ed;
  --info-soft: #fdf4e6;

  /* Type */
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(26 58 42 / 6%);
  --shadow: 0 4px 16px rgb(26 58 42 / 8%);
  --shadow-lg: 0 16px 40px rgb(26 58 42 / 14%);

  --nav-height: 64px;
  --page-max: 1200px;
}

/* Arabic reads better a touch larger; the display serif has no Arabic cut, so
   headings fall back to a serif Arabic face rather than rendering in Latin. */
html[dir="rtl"] {
  --font-display: "Noto Naskh Arabic", "Amiri", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Noto Kufi Arabic", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--brand-ink);
  background: var(--brand-sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--brand-green);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1rem; }

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: var(--brand-gold); }

/* Focus is always visible — the gold ring reads on both the sand and green grounds. */
:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────────────────────────────────── */

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.shell > main { flex: 1; }

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 4rem; }
.section--tight { padding-block: 2.5rem; }
.section--sand { background: var(--brand-sand); }
.section--white { background: var(--surface); }

.section--green {
  background: var(--brand-green);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section--green h1,
.section--green h2,
.section--green h3 { color: #fff; }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-gold-strong);
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--brand-muted);
  max-width: 60ch;
}

.section--green .lede { color: rgb(255 255 255 / 70%); }

.muted { color: var(--brand-muted); }

.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--brand-green);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  transition: box-shadow 0.2s ease;
}

/* Lifts the bar off the page once it is actually floating over content. */
.site-header.is-scrolled { box-shadow: 0 8px 24px rgb(17 30 23 / 28%); }

.site-header__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  flex: none;
}

.brand:hover { color: #fff; }

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-gold);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__name span {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-top: 2px;
}

/* Primary navigation — inline on desktop, a drawer under the bar on phones. */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  color: rgb(255 255 255 / 72%);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] { color: #fff; }

.site-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 2px;
  border-radius: 1px;
  background: var(--brand-gold);
}

/* The account block only exists inside the drawer; the desktop bar has the account menu. */
.site-nav__account { display: none; }

.site-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0;
  cursor: pointer;
  margin-inline-end: -0.5rem;
}

.nav-toggle:hover { background: rgb(255 255 255 / 10%); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.site-nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgb(17 30 23 / 55%);
  z-index: 40;
}

.site-nav__backdrop[hidden] { display: none; }

body.nav-open { overflow: hidden; }

/* Account menu (desktop) — a <details> so it opens without JavaScript. */
.account-menu { position: relative; }

.account-menu > summary {
  list-style: none;
  cursor: pointer;
}

.account-menu > summary::-webkit-details-marker { display: none; }

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 220px;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radius-pill);
  padding-block: 0.3rem;
  padding-inline: 0.3rem 0.7rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.account-chip:hover,
.account-menu[open] > .account-chip { color: #fff; background: rgb(255 255 255 / 16%); }

.account-chip__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip__caret {
  flex: none;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.account-menu[open] .account-chip__caret { transform: rotate(180deg); }

.account-menu__panel {
  position: absolute;
  inset-block-start: calc(100% + 0.6rem);
  inset-inline-end: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--surface);
  color: var(--brand-ink);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  transform-origin: top;
}

.account-menu[open] .account-menu__panel { animation: account-menu-in 0.16s ease-out; }

@keyframes account-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .account-menu[open] .account-menu__panel { animation: none; }
}

/* The same panel in the phone drawer: in the flow, full width, no dropdown chrome. */
.account-menu__panel--inline {
  position: static;
  width: auto;
  max-width: none;
  max-height: none;
  overflow: visible;
  border: 0;
  box-shadow: none;
  z-index: auto;
}

/* Header: avatar, name and email on a sand ground. */
.account-menu__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--brand-sand);
  border-radius: var(--radius);
  min-width: 0;
}

.account-menu__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.account-menu__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-muted);
}

.account-menu__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-green);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__email {
  font-size: 0.75rem;
  color: var(--brand-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* the address is LTR, but it should sit at the page's start edge like the name above it */
  align-self: flex-start;
  max-width: 100%;
}

.nav-icon { flex: none; }
html[dir="rtl"] .nav-icon--flip { transform: scaleX(-1); }

/* Personal links: four quick tiles, icon above label. */
.account-menu__tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.account-menu__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.25rem 0.6rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.account-menu__tile .nav-icon { width: 20px; height: 20px; color: var(--brand-green-light); }

.account-menu__tile:hover {
  background: var(--brand-sand);
  border-color: var(--brand-sand-dark);
  color: var(--brand-green);
}

.account-menu__tile[aria-current="page"] {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}
.account-menu__tile[aria-current="page"] .nav-icon { color: var(--brand-gold-light); }

.account-menu__count {
  position: absolute;
  inset-block-start: 0.35rem;
  inset-inline-end: 0.35rem;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: var(--radius-pill);
  background: var(--brand-gold);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 18px;
}
.account-menu__count[hidden] { display: none; }

/* Business: one card that opens the overview, then the sections in two columns. */
.account-menu__section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.5rem;
  border-block-start: 1px solid var(--brand-line);
}

.account-menu__business {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius);
  color: var(--brand-ink);
  text-decoration: none;
  transition: background 0.15s ease;
}

.account-menu__business:hover,
.account-menu__business[aria-current="page"] { background: var(--brand-sand); }

.account-menu__business-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--brand-green);
  color: var(--brand-gold-light);
}

.account-menu__business-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.account-menu__business-name {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-green);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__business > .nav-icon { width: 16px; height: 16px; color: var(--brand-muted); }

.account-menu__business--cta .account-menu__business-icon { background: rgb(201 145 58 / 14%); color: var(--brand-gold); }

.account-menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem;
}

.account-menu__grid a,
.account-menu__signout button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--brand-ink);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-menu__grid a .nav-icon { width: 16px; height: 16px; color: var(--brand-muted); transition: color 0.15s ease; }

.account-menu__grid a:hover { background: var(--brand-sand); color: var(--brand-green); }
.account-menu__grid a:hover .nav-icon { color: var(--brand-gold); }

.account-menu__grid a[aria-current="page"] {
  background: var(--brand-sand);
  color: var(--brand-green);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--brand-gold);
}
html[dir="rtl"] .account-menu__grid a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--brand-gold); }
.account-menu__grid a[aria-current="page"] .nav-icon { color: var(--brand-gold); }

.account-menu__panel a:focus-visible,
.account-menu__signout button:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: -2px;
}

.account-menu__signout {
  padding-top: 0.5rem;
  border-block-start: 1px solid var(--brand-line);
}

.account-menu__signout button { color: var(--danger); font-weight: 600; }
.account-menu__signout button:hover { background: rgb(179 38 30 / 8%); }

/* Tablet: the full name competes with the links, so shorten the chip before the bar wraps. */
@media (max-width: 1100px) {
  .site-nav__list { gap: 1.25rem; }
  .account-chip { max-width: 160px; }
}

/* Phone: brand, language and the toggle stay in the bar; everything else moves into the drawer. */
@media (max-width: 900px) {
  .site-actions { gap: 0.5rem; }
  .site-actions .account-menu,
  .site-actions .site-actions__signin,
  .site-actions .site-actions__cta { display: none; }
  .nav-toggle { display: grid; }

  .site-nav {
    display: none;
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--nav-height));
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    padding: 0.75rem 1rem 1.5rem;
    background: var(--brand-green);
    border-top: 1px solid rgb(255 255 255 / 10%);
    box-shadow: var(--shadow-lg);
    z-index: 45;
  }

  .site-nav.is-open { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav__list a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    white-space: normal;
  }

  .site-nav__list a:hover { background: rgb(255 255 255 / 8%); }
  .site-nav__list a[aria-current="page"] { background: rgb(255 255 255 / 10%); }

  .site-nav__list a[aria-current="page"]::after {
    inset-inline: 0 auto;
    inset-block: 0.7rem;
    inline-size: 3px;
    block-size: auto;
    border-radius: 2px;
  }

  .site-nav__account {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgb(255 255 255 / 12%);
  }

  /* The signed-in account block is the desktop dropdown's panel, laid flat as a card in the drawer. */
  .account-menu__panel--inline { gap: 0.6rem; padding: 0.6rem; }
  .account-menu__panel--inline .account-menu__tile { padding-block: 0.85rem 0.75rem; font-size: 0.8125rem; }
  .account-menu__panel--inline .account-menu__grid a,
  .account-menu__panel--inline .account-menu__signout button { padding-block: 0.7rem; font-size: 0.875rem; }

  .site-nav__cta .btn--ghost-light { border-color: rgb(255 255 255 / 18%); }

  .site-nav__cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding-top: 0.25rem;
  }

  .site-nav__cta .btn {
    padding: 0.7rem;
    font-size: 0.9375rem;
  }
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gold-strong);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex: none;
}

.avatar--lg { width: 72px; height: 72px; font-size: 1.5rem; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn--gold { background: var(--brand-gold-strong); color: #fff; }
.btn--gold:hover:not(:disabled) { background: var(--brand-gold-strong-hover); color: #fff; box-shadow: 0 8px 20px rgb(201 145 58 / 30%); }

.btn--green { background: var(--brand-green); color: #fff; }
.btn--green:hover:not(:disabled) { background: var(--brand-green-mid); color: #fff; }

.btn--outline { background: transparent; border-color: var(--brand-line); color: var(--brand-green); }
.btn--outline:hover:not(:disabled) { border-color: var(--brand-gold); color: var(--brand-gold); }

.btn--ghost { background: transparent; color: var(--brand-muted); }
.btn--ghost:hover:not(:disabled) { color: var(--brand-green); background: var(--brand-sand-dark); }

.btn--ghost-light { background: transparent; color: rgb(255 255 255 / 82%); }
.btn--ghost-light:hover:not(:disabled) { color: #fff; }

.btn--danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn--danger:hover:not(:disabled) { background: var(--danger); color: #fff; }

.btn--sm { padding: 0.45rem 0.85rem; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn--block { width: 100%; }

.link-arrow {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.card--flush { padding: 0; overflow: hidden; }
.card--sand { background: var(--brand-sand); }

/* Destructive actions (deleting the business): a red rule, set well apart from what sits above it. */
.card--danger { border-color: rgb(179 38 30 / 35%); }
.danger-zone { margin-top: 3rem; }
.danger-zone__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--danger);
  margin-bottom: 0.35rem;
}

.card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card__title { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; color: var(--brand-ink); margin: 0; }

/* Company card */
.company-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.company-card:hover {
  border-color: rgb(201 145 58 / 40%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.company-card__media {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

/* Logos are shown whole on a light plate over the monogram, which shows while the image loads. */
.company-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  background: #fff;
}

.company-card__flag { position: absolute; inset-block-start: 0.75rem; inset-inline-start: 0.75rem; }

.company-card__monogram {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgb(255 255 255 / 90%);
}

.company-card__body { padding: 1.125rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.company-card__name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-ink);
  margin: 0;
  line-height: 1.35;
}

.company-card__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--brand-muted);
}

.company-card__excerpt {
  font-size: 0.875rem;
  color: var(--brand-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category tile */
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  border-color: rgb(201 145 58 / 60%);
  background: var(--brand-sand);
  box-shadow: 0 6px 18px rgb(201 145 58 / 12%);
}

.category-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--brand-sand-dark);
  display: grid;
  place-items: center;
  color: var(--brand-green);
  overflow: hidden;
}

.category-tile__icon img { width: 100%; height: 100%; object-fit: cover; }

.category-tile__label { font-size: 0.8125rem; font-weight: 600; color: var(--brand-ink); }
.category-tile__count { font-size: 0.6875rem; color: var(--brand-muted); }

/* Category card — the large image tiles on the home and main categories pages */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cat-card:hover {
  border-color: rgb(201 145 58 / 55%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.cat-card__link { display: flex; flex-direction: column; color: inherit; }
.cat-card__link:hover { color: inherit; }

.cat-card__media {
  position: relative;
  aspect-ratio: 248 / 174;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l20 20-20 20L0 20z' fill='%23c9913a' fill-opacity='0.09'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--brand-green-mid) 0%, var(--brand-green-deep) 100%);
  background-size: 40px 40px, auto;
}

/* a gold rule that grows in on hover */
.cat-card__media::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 4px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.cat-card:hover .cat-card__media::after { transform: scaleX(1); }

.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-card:hover .cat-card__media img { transform: scale(1.06); }

.cat-card__monogram {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--brand-gold-light);
}

.cat-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.125rem 1.25rem 1.25rem;
}

.cat-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-ink);
  transition: color 0.2s ease;
}

.cat-card:hover .cat-card__title { color: var(--brand-green); }

.cat-card__count { font-size: 0.8125rem; color: var(--brand-muted); }

.cat-card__children {
  list-style: none;
  margin: 0;
  padding: 0.875rem 1.25rem 1.125rem;
  border-block-start: 1px solid var(--brand-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cat-card__children a {
  display: inline-block;
  font-size: 0.8125rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--brand-sand);
  color: var(--brand-green);
}

.cat-card__children a:hover { background: var(--brand-sand-dark); color: var(--brand-gold); }

@media (max-width: 560px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem; }
  .cat-card { border-radius: var(--radius-lg); }
  .cat-card__body { padding: 0.75rem 0.875rem 0.875rem; }
  .cat-card__title { font-size: 0.9375rem; }
  .cat-card__count { font-size: 0.75rem; }
  .cat-card__monogram { font-size: 2.75rem; }
  .cat-card__children { padding: 0.75rem 0.875rem; }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--brand-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--brand-muted); }
.breadcrumb a:hover { color: var(--brand-gold); }
.breadcrumb [aria-current="page"] { color: var(--brand-ink); font-weight: 600; }

.breadcrumb--light,
.breadcrumb--light a { color: rgb(255 255 255 / 65%); }
.breadcrumb--light a:hover { color: var(--brand-gold-light); }
.breadcrumb--light [aria-current="page"] { color: #fff; }

/* Category banner — the head of a single category page */
.cat-banner {
  position: relative;
  padding-block: 2.25rem 2.5rem;
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23c9913a' fill-opacity='0.07'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--brand-green-mid) 0%, var(--brand-green-deep) 100%);
  background-size: 60px 60px, auto;
}

.cat-banner__head { display: flex; align-items: center; gap: 1.25rem; }
.cat-banner h1 { color: #fff; }

.cat-banner__media {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 8%);
  border: 2px solid rgb(201 145 58 / 60%);
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--brand-gold-light);
}

.cat-banner__media img { width: 100%; height: 100%; object-fit: cover; }

.cat-banner__count { margin: 0.35rem 0 0; color: rgb(255 255 255 / 70%); }

@media (max-width: 560px) {
  .cat-banner__media { width: 64px; height: 64px; font-size: 1.875rem; }
}

/* The few sentences introducing a category, above its subcategories and companies */
.cat-intro {
  max-width: 70ch;
  margin: 0 0 1.5rem;
  color: var(--brand-muted);
  line-height: 1.7;
}

/* The category city by city: a row of chips linking to its page in each city */
.cat-cities { margin-bottom: 2rem; }
.cat-cities__title { margin: 0 0 0.75rem; font-size: 1.125rem; }

/* Subcategories on a category page: a card grid with each one's company count */
.subcats {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.subcats__head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }

.subcats__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-green);
  margin: 0;
}

.subcats__total {
  min-width: 1.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--brand-sand-dark);
  color: var(--brand-gold-strong);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
}

.subcat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.subcat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  background: var(--brand-sand);
  color: var(--brand-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.subcat-card:hover {
  border-color: var(--brand-gold);
  background: var(--surface);
  box-shadow: 0 6px 18px rgb(201 145 58 / 16%);
  transform: translateY(-1px);
  color: var(--brand-ink);
}

.subcat-card__media {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--brand-green);
  color: var(--brand-gold);
  font-weight: 700;
  font-size: 1.125rem;
}

.subcat-card__media img { width: 100%; height: 100%; object-fit: cover; }

.subcat-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }

.subcat-card__name {
  font-weight: 600;
  color: var(--brand-green);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.subcat-card__count { font-size: 0.8125rem; color: var(--brand-gold-strong); font-weight: 600; }

.subcat-card__arrow { flex: none; color: var(--brand-muted); transition: color 0.2s ease, transform 0.2s ease; }
html[dir="rtl"] .subcat-card__arrow { transform: scaleX(-1); }
.subcat-card:hover .subcat-card__arrow { color: var(--brand-gold); }

.subcat-card.is-empty { opacity: 0.6; }
.subcat-card.is-empty .subcat-card__count { color: var(--brand-muted); }

@media (max-width: 560px) {
  .subcats { padding: 1rem; }
  .subcat-grid { grid-template-columns: 1fr; }
}

.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-line);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-green);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover { border-color: var(--brand-gold); color: var(--brand-gold); box-shadow: 0 4px 12px rgb(201 145 58 / 15%); }

/* Company row — the wide listing block on category pages; carries no contact details */
.company-list { display: flex; flex-direction: column; gap: 1rem; }

.company-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.company-row:hover { border-color: rgb(201 145 58 / 45%); box-shadow: var(--shadow); }

.company-row__media {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
}

.company-row__media { position: relative; }
.company-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; background: #fff; }

.company-row__monogram {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgb(255 255 255 / 90%);
}

.company-row__body { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }

.company-row__name {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.company-row__name a { color: var(--brand-ink); }
.company-row__name a:hover { color: var(--brand-gold); }

.company-row__excerpt {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--brand-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-row__foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.company-row__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--brand-muted);
}

.company-row__meta svg { color: var(--brand-gold); }

.company-row__more { font-size: 0.875rem; font-weight: 600; color: var(--brand-gold-strong); }
.company-row__more:hover { color: var(--brand-green); }

@media (max-width: 560px) {
  .company-row { grid-template-columns: 72px minmax(0, 1fr); gap: 0.875rem; padding: 1rem; }
  .company-row__media { width: 72px; height: 72px; }
  .company-row__monogram { font-size: 1.75rem; }
  .company-row__name { font-size: 1rem; }
}

/* ── Featured listings ──────────────────────────────────────────────────────
   A featured card or row gets a gold frame with a light travelling round it, a soft gold glow that
   breathes, and a sheen that sweeps across now and then. All of it stops for reduced motion, which
   keeps a static gold frame and glow. */
@property --featured-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.company-row--featured,
.company-card--featured {
  --featured-ring: rgb(201 145 58 / 40%);
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, #fffcf5 0%, var(--surface) 55%) padding-box,
    conic-gradient(
      from var(--featured-angle),
      var(--featured-ring) 0deg,
      var(--featured-ring) 200deg,
      var(--brand-gold) 250deg,
      var(--brand-gold-light) 290deg,
      #fff6e4 310deg,
      var(--brand-gold) 330deg,
      var(--featured-ring) 360deg
    ) border-box;
  animation:
    featured-orbit 5s linear infinite,
    featured-glow 3.2s ease-in-out infinite;
  isolation: isolate;
}

/* The sheen: a soft diagonal light that crosses the card once every few seconds. */
.company-row--featured::after,
.company-card--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgb(255 240 205 / 35%) 46%,
    rgb(255 250 235 / 50%) 50%,
    rgb(255 240 205 / 35%) 54%,
    transparent 65%
  ) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  animation: featured-sheen 6s ease-in-out infinite;
}

/* The row keeps its sheen inside the rounded frame; the card already clips. */
.company-row--featured { overflow: hidden; }

.company-row--featured:hover,
.company-card--featured:hover {
  --featured-ring: rgb(201 145 58 / 60%);
  border-color: transparent;
  /* Drop the breathing glow (an animated value would win over this one) but keep the orbit going. */
  animation: featured-orbit 5s linear infinite;
  box-shadow:
    0 0 0 4px rgb(232 180 106 / 22%),
    0 14px 38px rgb(201 145 58 / 34%);
}

.company-row--featured { transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.company-row--featured:hover { transform: translateY(-2px); }

/* The star on the featured badge twinkles in time with the glow. */
.company-row--featured .badge--featured svg,
.company-card--featured .badge--featured svg {
  animation: featured-twinkle 3.2s ease-in-out infinite;
  transform-origin: center;
}

.company-row--featured .badge--featured,
.company-card--featured .badge--featured {
  background: linear-gradient(135deg, #fff6e4 0%, #f8e2b8 100%);
  border-color: var(--brand-gold);
  box-shadow: 0 2px 8px rgb(201 145 58 / 28%);
}

@keyframes featured-orbit {
  to { --featured-angle: 360deg; }
}

@keyframes featured-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgb(201 145 58 / 8%),
      0 6px 18px rgb(201 145 58 / 14%);
  }
  50% {
    box-shadow:
      0 0 0 4px rgb(232 180 106 / 18%),
      0 10px 30px rgb(201 145 58 / 28%);
  }
}

/* Crosses in the first third of the cycle, then rests. */
@keyframes featured-sheen {
  0% { background-position: 150% 0; }
  35%, 100% { background-position: -50% 0; }
}

@keyframes featured-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.25) rotate(18deg); filter: drop-shadow(0 0 3px rgb(232 180 106 / 90%)); }
}

@media (prefers-reduced-motion: reduce) {
  .company-row--featured,
  .company-card--featured {
    animation: none;
    box-shadow: 0 0 0 3px rgb(232 180 106 / 18%), 0 8px 24px rgb(201 145 58 / 22%);
  }

  .company-row--featured::after,
  .company-card--featured::after { display: none; }

  .company-row--featured .badge--featured svg,
  .company-card--featured .badge--featured svg { animation: none; }

  .company-row--featured:hover { transform: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgb(26 58 42 / 96%) 0%, rgb(26 58 42 / 82%) 45%, rgb(26 58 42 / 55%) 100%),
    linear-gradient(135deg, var(--brand-green-mid) 0%, var(--brand-green-deep) 100%);
  color: #fff;
  overflow: hidden;
  padding-block: 3rem 2.75rem;
}

html[dir="rtl"] .hero {
  background:
    linear-gradient(260deg, rgb(26 58 42 / 96%) 0%, rgb(26 58 42 / 82%) 45%, rgb(26 58 42 / 55%) 100%),
    linear-gradient(225deg, var(--brand-green-mid) 0%, var(--brand-green-deep) 100%);
}

/* The geometric field echoes the identity's tiled diamond motif. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23c9913a'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

.hero > .container { position: relative; }

.hero__content { max-width: 600px; }

/* a compact band: the search is the point, so the headline stays below the site-wide h1 size */
.hero h1 { color: #fff; font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: 0.6rem; }
.hero h1 em { color: var(--brand-gold); font-style: italic; }

.hero__lede {
  font-size: 1rem;
  color: rgb(255 255 255 / 72%);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

/* main categories as shortcuts under the search, styled for the dark band */
.hero__shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
.hero__shortcuts-label { font-size: 0.8125rem; color: rgb(255 255 255 / 60%); margin-inline-end: 0.25rem; }
.hero__shortcuts .chip {
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 22%);
  color: #fff;
  text-decoration: none;
}
.hero__shortcuts .chip:hover { background: rgb(201 145 58 / 22%); border-color: var(--brand-gold); color: #fff; box-shadow: none; }

@media (max-width: 640px) {
  .hero { padding-block: 2rem 1.75rem; }
}

/* Search bar */
.searchbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  box-shadow: 0 18px 40px rgb(0 0 0 / 28%);
  max-width: 620px;
}

.searchbar__field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-inline: 1rem;
  flex: 1 1 190px;
  min-width: 0;
}

/* the text search gets the larger share; the city picker needs less room */
.searchbar__field:first-child { flex-grow: 2; }

.searchbar__field svg { color: var(--brand-gold); flex: none; }

/* the search icon is the input's label: clicking it focuses the field */
.searchbar__icon { display: flex; flex: none; cursor: text; }

.searchbar__field input,
.searchbar__field select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--brand-ink);
  padding-block: 0.6rem;
}

.searchbar__divider { width: 1px; background: var(--brand-line); align-self: stretch; }

.searchbar .btn { flex: none; border-radius: var(--radius-lg); }

/* Stack before the button is left alone on a second row. */
@media (max-width: 800px) {
  .searchbar { border-radius: var(--radius-lg); }
  .searchbar__divider { display: none; }
  .searchbar .btn { width: 100%; }
}

/* Steps */
.step {
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
}

.step__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: rgb(201 145 58 / 28%);
  margin-bottom: 0.75rem;
}

.step h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: #fff; }
.step p { color: rgb(255 255 255 / 62%); font-size: 0.9375rem; margin: 0; }

/* ── Forms ──────────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.125rem; }
.field[hidden] { display: none; }

.field > label,
.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.field__hint { font-size: 0.8125rem; color: var(--brand-muted); }

.input,
.select,
.textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--brand-ink);
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea { min-height: 110px; resize: vertical; }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgb(201 145 58 / 18%);
}

.input::placeholder,
.textarea::placeholder { color: #a8a496; }

/* Fields carry dir="auto"; this lets the placeholder also follow its own text's direction. */
input[dir="auto"]::placeholder,
textarea[dir="auto"]::placeholder { unicode-bidi: plaintext; }

.input.input--error,
.select.input--error { border-color: var(--danger); }

.field-error { font-size: 0.8125rem; color: var(--danger); }

/* A password input with its show/hide button tucked into the trailing edge. */
.password-field { position: relative; }

/* Physical sides on purpose: the input is dir="auto", so padding-inline-end would follow the typed
   text's direction while the toggle sits at the page's trailing edge. */
html:not([dir="rtl"]).has-js .password-field .input { padding-right: 4.5rem; }
html[dir="rtl"].has-js .password-field .input { padding-left: 4.5rem; }

.password-field__toggle {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 0.4rem;
  transform: translateY(-50%);
  padding: 0.35rem 0.6rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-green);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.password-field__toggle:hover { background: var(--brand-sand-dark); }

.password-field__toggle:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 1px;
}

/* The one-time code box: wide-spaced digits, centred. */
.input--code {
  font-size: 1.25rem;
  letter-spacing: 0.35em;
  text-align: center;
}

.checkbox,
.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.checkbox input,
.radio input { width: 16px; height: 16px; accent-color: var(--brand-green); }

.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-block-start: 1px solid var(--brand-line);
}

fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }

legend {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-green);
  padding: 0;
  margin-bottom: 0.75rem;
}

/* Language tabs on translated forms */
/* One row that scrolls sideways when it runs out of room, instead of widening the page. */
.tabs { display: flex; gap: 0.35rem; border-bottom: 1px solid var(--brand-line); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }

.tabs__btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-muted);
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  flex: none;
}

.tabs__btn[aria-selected="true"],
.tabs__btn[aria-current="page"] { color: var(--brand-green); border-bottom-color: var(--brand-gold); }
a.tabs__btn { text-decoration: none; }

.tab-panel[hidden] { display: none; }

/* Email notification preferences: one row per category, its checkbox beside a title and a line of description. */
.pref-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
}

.pref-list__item + .pref-list__item { border-top: 1px solid var(--brand-line); }

.pref {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
}

.pref input { width: 18px; height: 18px; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--brand-green); }
.pref__title { display: block; font-weight: 600; color: var(--brand-ink); }
.pref__badge { margin-inline-start: 0.4rem; vertical-align: middle; }
.pref__desc { display: block; margin-top: 0.15rem; font-size: 0.875rem; color: var(--brand-muted); }

/* Checkbox grid for category pickers */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.75rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  background: var(--brand-sand);
}

/* ── Auth pages ─────────────────────────────────────────────────────────── */

.auth {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding-block: 3rem;
}

.auth__card {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.auth__card h1 { font-size: 1.875rem; margin-bottom: 0.35rem; }
.auth__card .lede { font-size: 0.9375rem; margin-bottom: 1.75rem; }

.auth__footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-block-start: 1px solid var(--brand-line);
  font-size: 0.9375rem;
  color: var(--brand-muted);
  text-align: center;
}

/* The provider's own sign-in button (an iframe, 40px tall). The outer box is what the script
   measures; the inner one takes the button's width, centres it, rounds its corners like the fields
   and draws the field border over the clipped ones. It is positioned out of the flow so its fixed
   width can never hold the card wider than the screen. */
.external-login {
  position: relative;
  height: 40px;
}

.external-login__button {
  position: absolute;
  inset: 0;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
}

.external-login.is-ready .external-login__button::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--brand-line);
  border-radius: inherit;
  pointer-events: none;
}

/* ── Alerts & badges ────────────────────────────────────────────────────── */

.alert {
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert--success { background: var(--success-soft); border-color: rgb(74 124 89 / 35%); color: #1f4a30; }
.alert--error { background: var(--danger-soft); border-color: rgb(179 38 30 / 30%); color: #8c1d18; }
.alert--info { background: var(--info-soft); border-color: rgb(201 145 58 / 35%); color: #7a5518; }

/* Flash toasts (the layout's TempData messages). Without JavaScript the stack sits in the page
   flow like the old alert boxes; with it (html.has-js) it floats in the top end corner, just under
   the header (site.js keeps --toast-top there), and each toast closes after its timer bar runs out. */
.toast-stack {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 1.5rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toast {
  --toast-color: var(--brand-green-light);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--surface);
  color: var(--brand-ink);
  border: 1px solid var(--brand-line);
  border-inline-start: 4px solid var(--toast-color);
  border-radius: var(--radius);
  padding: 0.8rem 0.8rem 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  overflow: hidden;
}
.toast--success { --toast-color: var(--brand-green-light); }
.toast--error { --toast-color: var(--danger); }
.toast--info { --toast-color: var(--brand-gold-strong); }
.toast__icon { flex: none; color: var(--toast-color); margin-top: 1px; }
.toast__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast__close {
  flex: none;
  display: none;
  border: 0;
  background: none;
  color: var(--brand-muted);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.toast__close:hover { color: var(--brand-ink); background: var(--brand-sand); }

.has-js .toast-stack {
  position: fixed;
  z-index: 70;
  inset-block-start: var(--toast-top, 1rem);
  inset-inline-end: 1rem;
  width: 22rem;
  max-width: calc(100vw - 2rem);
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.has-js .toast {
  pointer-events: auto;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.28s ease-out;
}
.has-js .toast__close { display: block; }
.has-js .toast::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  height: 3px;
  width: 100%;
  background: var(--toast-color);
  opacity: 0.55;
  animation: toast-timer var(--toast-duration, 5000ms) linear forwards;
}
.has-js .toast:hover::after,
.has-js .toast:focus-within::after { animation-play-state: paused; }
.has-js .toast.is-leaving { animation: toast-out 0.25s ease-in forwards; }

@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-timer { to { width: 0; } }

@media (prefers-reduced-motion: reduce) {
  .has-js .toast,
  .has-js .toast.is-leaving { animation-duration: 0.01ms; }
}

/* The layout's "verify your mobile" band for members of a business (OwnerMobileNotice):
   full width under the header, so it reads as part of the chrome rather than a stray card. */
.mobile-notice {
  background: var(--info-soft);
  border-block-end: 1px solid rgb(201 145 58 / 28%);
}
.mobile-notice__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-block: 0.7rem;
}
.mobile-notice__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  background: rgb(201 145 58 / 16%);
  color: var(--brand-gold);
}
.mobile-notice__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--brand-muted);
}
.mobile-notice__title { color: var(--brand-ink); font-weight: 700; margin-inline-end: 0.35rem; }
.mobile-notice__action { flex-shrink: 0; white-space: nowrap; }

.mobile-notice__close { flex-shrink: 0; color: var(--brand-muted); }

/* On a phone the band stays one line: title, action, close. The explanation is on the page it links to. */
@media (max-width: 640px) {
  .mobile-notice__inner { padding-block: 0.5rem; gap: 0.5rem; }
  .mobile-notice__icon { display: none; }
  .mobile-notice__body { display: none; }
  .mobile-notice__title { margin: 0; }
}

.validation-summary { margin-bottom: 1rem; }
.validation-summary ul { margin: 0; padding-inline-start: 1.1rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--gold { background: var(--brand-gold-strong); color: #fff; }
/* Sponsored search results (GET v1/companies/sponsored): labelled, set apart above the results. */
.badge--sponsored { background: var(--brand-green); color: #fff; }
.sponsored-results {
  margin-block: 1.25rem 1.75rem;
  padding: 1rem;
  border: 1px dashed var(--brand-gold);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--brand-gold) 6%, transparent);
}
.sponsored-results__title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-gold-strong);
}
.badge--green { background: var(--success-soft); color: #1f4a30; }
.badge--neutral { background: var(--brand-sand-dark); color: var(--brand-muted); }
.badge--danger { background: var(--danger-soft); color: #8c1d18; }
.badge--outline { background: transparent; border: 1px solid var(--brand-line); color: var(--brand-muted); }

/* Featured companies: opaque light gold, so it reads the same on white cards, green media and the dark hero. */
.badge--featured {
  align-self: flex-start;
  background: #fbf1df;
  border: 1px solid rgb(201 145 58 / 45%);
  color: #7a5518;
}

.badge--featured svg { color: var(--brand-gold); flex: none; }

/* Badges a company holds (bought or granted), styled by key; opaque like the featured badge. */
.badge--entitlement {
  align-self: flex-start;
  background: var(--brand-sand-dark);
  border: 1px solid var(--brand-line);
  color: var(--brand-ink);
}

.badge--entitlement svg { flex: none; }

.badge--verified {
  background: var(--success-soft);
  border-color: rgb(74 124 89 / 45%);
  color: #1f4a30;
}

.badge--verified svg { color: var(--brand-green-light); }

.badge--premium {
  background: var(--brand-green);
  border-color: var(--brand-gold);
  color: var(--brand-gold-light);
}

.badge--premium svg { color: var(--brand-gold-light); }

/* The verified seal: the only company badge (a green scalloped seal with a white check). The thin
   white outline keeps it readable on photos and on the deep-green profile hero. */
.verified-seal {
  --seal-green: #1f9d55;
  align-items: center;
  align-self: center;
  display: inline-flex;
  flex: none;
  height: 1.5rem;
  width: 1.5rem;
}

.verified-seal svg { height: 100%; overflow: visible; width: 100%; }
.verified-seal__shape { fill: var(--seal-green); paint-order: stroke; stroke: #fff; stroke-linejoin: round; stroke-width: 1.2; }
.verified-seal__check { fill: #fff; }
.profile-hero .verified-seal { height: 2rem; width: 2rem; }

/* Several badges side by side: on a card's media corner and above a row's name. */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.company-card__flag { display: flex; flex-wrap: wrap; gap: 0.35rem; inset-inline-end: 0.75rem; }

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--brand-sand);
  border: 1px solid var(--brand-line);
  color: var(--brand-muted);
}

/* ── Tables ─────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--brand-line); border-radius: var(--radius-lg); background: var(--surface); }

.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }

.table th {
  text-align: start;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-muted);
  padding: 0.85rem 1rem;
  background: var(--brand-sand);
  border-bottom: 1px solid var(--brand-line);
  white-space: nowrap;
}

.table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--brand-line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--brand-sand); }

/* ── Empty & error states ───────────────────────────────────────────────── */

.state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.state__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-sand-dark);
  color: var(--brand-gold);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.state h3,
.state .state__title { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; color: var(--brand-ink); }
.state p { color: var(--brand-muted); max-width: 44ch; margin-inline: auto; }

/* ── Pagination ─────────────────────────────────────────────────────────── */

.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; }

.pagination { flex-wrap: wrap; }
.pagination__info { font-size: 0.875rem; color: var(--brand-muted); margin-inline: 0.75rem; }
.pagination__step.is-disabled { opacity: 0.45; pointer-events: none; }
.pagination__pages { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.pagination__page {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding-inline: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-ink);
  text-decoration: none;
}
a.pagination__page:hover { background: var(--brand-sand-dark); color: var(--brand-green); }
.pagination__page.is-current { background: var(--brand-green); color: #fff; }
.pagination__gap { min-width: 1.25rem; text-align: center; color: var(--brand-muted); }
/* The numbers say where you are; the "page x of y" line is kept for screen readers. */
.pagination__info { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phones: arrows only, so the numbers fit on one line. */
@media (max-width: 560px) {
  .pagination__step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pagination { gap: 0.15rem; flex-wrap: nowrap; }
  .pagination__pages { gap: 0.1rem; }
  .pagination__page { min-width: 32px; padding-inline: 0.3rem; }
  .pagination__gap { min-width: 0.9rem; }
  .pagination__step { padding-inline: 0.6rem; }
}

/* Directional chevrons flip with the writing direction. */
html[dir="rtl"] .pagination svg { transform: scaleX(-1); }

/* ── Detail page ────────────────────────────────────────────────────────── */

.profile-hero {
  background: var(--brand-green);
  color: #fff;
  padding-block: 3rem;
  position: relative;
  overflow: hidden;
}

.profile-hero h1 { color: #fff; margin-bottom: 0.5rem; }

.profile-hero__title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.5rem; }
.profile-hero__title h1 { margin-bottom: 0; }

/* Beside the name the two badges are matching pills on one line: verified in white with its seal
   and word, featured in gold. Cards and rows keep the small badge and the bare seal. */
.profile-hero__badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.profile-hero__badges .badge--featured,
.profile-hero__badges .verified-seal--labelled {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: auto;
  height: 2rem;
  padding-block: 0;
  padding-inline: 0.6rem 0.9rem;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.profile-hero__badges .badge--featured {
  background: linear-gradient(135deg, #f8dfae 0%, var(--brand-gold-light) 45%, var(--brand-gold) 100%);
  color: #3b2707;
  box-shadow: 0 2px 12px rgb(201 145 58 / 38%), inset 0 1px 0 rgb(255 255 255 / 50%);
}
.profile-hero__badges .badge--featured svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #6b4409;
  animation: featured-twinkle 3.2s ease-in-out infinite;
  transform-origin: center;
}
.profile-hero__badges .verified-seal--labelled {
  background: #fff;
  color: #17693a;
  box-shadow: 0 2px 12px rgb(0 0 0 / 22%);
}
.profile-hero__badges .verified-seal--labelled svg { flex: none; width: 1.25rem; height: 1.25rem; }
.profile-hero__badges .verified-seal--labelled .verified-seal__shape { stroke: none; }
@media (prefers-reduced-motion: reduce) {
  .profile-hero__badges .badge--featured svg { animation: none; }
}

.profile-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

/* ── The public company profile's hero (profile-hero--company) ──────────────
   The other pages that share .profile-hero keep the plain band. */
.profile-hero--company {
  background:
    radial-gradient(46rem 20rem at 50% -8rem, rgb(201 145 58 / 16%), transparent 70%),
    linear-gradient(180deg, var(--brand-green) 0%, #16321f 100%);
  padding-block: 2.75rem;
}
.profile-hero--company .profile-hero__inner { align-items: flex-start; gap: 1.5rem 1.75rem; }
.profile-hero__body { flex: 1; min-width: 240px; }
.profile-hero--company .profile-logo {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 12%), 0 12px 32px rgb(0 0 0 / 28%);
}

/* Location and followers on one line, each behind a gold icon. */
.profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  color: rgb(255 255 255 / 80%);
  font-size: 0.9375rem;
}
.profile-hero__meta-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.profile-hero__meta-item svg { flex: none; width: 1rem; height: 1rem; color: var(--brand-gold); }

/* The actions: one gold primary, the rest as soft glass buttons of the same height. */
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-block-start: 1.25rem; }
.profile-actions .inline-form { display: inline-flex; }
.profile-actions .btn {
  min-height: 2.5rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
}
.profile-actions .btn svg { flex: none; width: 1rem; height: 1rem; }
.profile-actions .btn--gold { box-shadow: 0 6px 18px rgb(201 145 58 / 32%); }
.profile-hero--company .profile-actions .btn--ghost-light {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 22%);
  color: #fff;
}
.profile-hero--company .profile-actions .btn--ghost-light:hover:not(:disabled) {
  background: rgb(255 255 255 / 16%);
  border-color: rgb(255 255 255 / 45%);
}
/* Following: the heart fills and the button takes the gold, so the state reads at a glance. */
.profile-hero--company .profile-actions .follow__button.is-following {
  border-color: rgb(232 180 106 / 70%);
  color: var(--brand-gold-light);
}
.profile-hero--company .profile-actions .profile-actions__claim { border-color: rgb(232 180 106 / 70%); color: var(--brand-gold-light); }
.profile-actions .badge--gold { align-self: center; }

/* What the viewer can do as themself and as their business: two boxes of one design, stacked. */
.profile-actions__stack { display: flex; flex: 0 0 100%; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; }
.profile-actions__group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.25rem;
  padding-inline-start: 0.8rem;
  border: 1px dashed rgb(255 255 255 / 26%);
  border-radius: calc(var(--radius) + 0.25rem);
  background: rgb(0 0 0 / 16%);
}
.profile-actions__as {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  margin-inline-end: 0.25rem;
  color: rgb(255 255 255 / 78%);
  font-size: 0.8125rem;
  font-weight: 600;
}
.profile-actions__as svg { flex: none; width: 0.95rem; height: 0.95rem; color: var(--brand-gold); }
.profile-actions__as-name { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-actions__group .btn { min-height: 2rem; padding: 0.3rem 0.8rem; font-size: 0.8125rem; border-radius: var(--radius-sm); }

@media (max-width: 640px) {
  .profile-hero--company { padding-block: 2rem; }
  .profile-hero--company .profile-logo { width: 88px; height: 88px; border-radius: var(--radius-lg); }
  .profile-actions__as-name { max-width: 11rem; }
}

.profile-logo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  box-shadow: var(--shadow);
}

.profile-logo img { width: 100%; height: 100%; object-fit: contain; padding: 0.4rem; }

.profile-logo__monogram { font-family: var(--font-display); font-size: 2.25rem; color: var(--brand-green); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1.5rem; align-items: start; }

@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.definition { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 0.65rem 1.25rem; font-size: 0.9375rem; }
.definition dt { color: var(--brand-muted); }
.definition dd { margin: 0; color: var(--brand-ink); overflow-wrap: anywhere; }

.social-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-green);
}

.social-links a:hover { border-color: var(--brand-gold); color: var(--brand-gold); }

/* ── Filters ────────────────────────────────────────────────────────────── */

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.filters .field { margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer { background: var(--brand-green-deep); color: rgb(255 255 255 / 45%); padding-block: 3.5rem 2rem; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(auto-fit, minmax(140px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer a { color: rgb(255 255 255 / 45%); font-size: 0.875rem; }
.site-footer a:hover { color: rgb(255 255 255 / 85%); }
.site-footer p { font-size: 0.8125rem; max-width: 32ch; }

.site-footer__base {
  border-top: 1px solid rgb(255 255 255 / 10%);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* ── Utilities ──────────────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-end { text-align: end; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.inline-form { display: inline; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ── Comments (company profile thread) ──────────────────────────────────── */

.comments__count {
  display: inline-block;
  margin-inline-start: 0.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--brand-sand-dark);
  color: var(--brand-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  vertical-align: middle;
}

.comments__signin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--brand-line);
  border-radius: var(--radius);
  background: var(--brand-sand);
  margin-bottom: 1.25rem;
}

.comments__empty { font-size: 0.9375rem; margin: 0.5rem 0 0; }

.comments__list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 0.5rem; }

/* form */
.comment-form { margin-bottom: 1.25rem; }
.comment-form--reply { margin: 0.75rem 0 0; }
.comment-form--edit { margin: 0.5rem 0; }

.comment-form__row { display: flex; align-items: flex-end; gap: 0.5rem; }
.comment-form__input { min-height: 44px; border-radius: var(--radius-lg); padding: 0.6rem 0.9rem; }
.comment-form__submit { flex-shrink: 0; }

.identity-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  padding: 0;
  border: 0;
}

.identity-picker__label {
  font-size: 0.8125rem;
  color: var(--brand-muted);
  padding: 0;
  margin-inline-end: 0.25rem;
}

.identity-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-block: 0.3rem;
  padding-inline-start: 0.3rem;
  padding-inline-end: 0.75rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.identity-chip:has(input:checked) {
  border-color: var(--brand-gold);
  background: var(--info-soft);
  box-shadow: 0 0 0 3px rgb(201 145 58 / 15%);
}

.identity-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.identity-chip__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-gold-strong);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.identity-chip__avatar--company { border-radius: 8px; background: var(--brand-green); }

/* a chip that is not a choice: the one identity a form posts as (business comments page) */
.identity-chip--fixed {
  border-color: var(--brand-gold);
  background: var(--info-soft);
  cursor: default;
}

/* business comments page: one top-level comment with its status, replies and reply box */
.business-comment + .business-comment {
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--brand-line);
}

.business-comment__status { display: flex; justify-content: flex-start; margin-bottom: 0.4rem; }

/* one comment */
.comment { display: flex; gap: 0.75rem; align-items: flex-start; }
.comment--reply { margin-top: 0.75rem; }

.comment__avatar-col { flex-shrink: 0; }

.comment__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-gold-strong);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
}

.comment--reply .comment__avatar { width: 32px; height: 32px; font-size: 0.8125rem; }
.comment__avatar--company { border-radius: 10px; background: var(--brand-green); }

.comment__main { flex: 1; min-width: 0; }

.comment__bubble {
  display: inline-block;
  max-width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-lg);
  background: var(--brand-sand);
}

.comment__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.comment__name { font-weight: 600; font-size: 0.9375rem; color: var(--brand-ink); }

.comment__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.comment__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.3rem;
  padding-inline-start: 0.5rem;
  font-size: 0.8125rem;
  color: var(--brand-muted);
}

.comment__action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--brand-muted);
  cursor: pointer;
  text-decoration: none;
}

.comment__action:hover { color: var(--brand-green); text-decoration: underline; text-underline-offset: 3px; }
.comment__action--danger:hover { color: var(--danger); }
span.comment__action { cursor: default; opacity: 0.6; }
span.comment__action:hover { color: var(--brand-muted); text-decoration: none; }

.comment__like.is-liked { color: var(--brand-gold-strong); }
.comment__like.is-liked svg { fill: currentColor; }

.comment__likes {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: -0.4rem;
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--brand-line);
  font-size: 0.75rem;
  font-weight: 600;
}

.comment__likes.is-empty { display: none; }

.comment__time { white-space: nowrap; }
.comment__edited { font-style: italic; }

.comment__replies {
  margin-top: 0.75rem;
  padding-inline-start: 0.75rem;
  border-inline-start: 2px solid var(--brand-line);
}

/* Without JavaScript the <details> summaries are the Reply / Edit controls; with it, the
   links in the meta row take over and the summaries are hidden. */
.comment__summary { list-style: none; margin-top: 0.3rem; padding-inline-start: 0.5rem; font-size: 0.8125rem; }
.comment__summary::-webkit-details-marker { display: none; }
[data-open-details] { display: none; }
.has-js [data-open-details] { display: inline-flex; }
.has-js .comment__summary { display: none; }

/* while editing, the bubble gives way to the editor */
.comment__main:has(.comment__editor[open]) .comment__bubble { display: none; }

@media (max-width: 640px) {
  .comment-form__row { flex-direction: column; align-items: stretch; }
  .comment-form__submit { align-self: flex-end; }
}

/* ── Following a company ─────────────────────────────────────────────────── */

.follow__button svg { transition: fill 0.15s ease; }
.follow__button.is-following svg { fill: currentColor; }

/* ── Statistics ─────────────────────────────────────────────────────────── */

.segmented {
  display: inline-flex;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.segmented a {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(255 255 255 / 80%);
  text-decoration: none;
  white-space: nowrap;
}
.segmented a + a { border-inline-start: 1px solid rgb(255 255 255 / 30%); }
.segmented a:hover { color: #fff; }
.segmented a[aria-current="true"] { background: var(--brand-gold-strong); color: #fff; }

.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--brand-muted); }
.stat__value { font-family: var(--font-display); font-size: 2.25rem; line-height: 1.1; color: var(--brand-green); }
html[dir="rtl"] .stat__value { font-family: inherit; font-weight: 700; }
.stat__meta { font-size: 0.875rem; color: var(--brand-muted); }
.stat__delta {
  margin-top: 0.35rem;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}
.stat__delta--up { background: var(--success-soft); color: #1f4a30; }
.stat__delta--down { background: var(--danger-soft); color: #8c1d18; }
.stat__delta--flat { background: var(--brand-sand-dark); color: var(--brand-muted); }
.stat__delta--none { background: transparent; color: var(--brand-muted); padding-inline: 0; }

.chart { display: block; width: 100%; height: auto; }
.chart__grid { stroke: var(--brand-line); stroke-width: 1; stroke-dasharray: 2 3; }
.chart__axis { stroke: var(--brand-line); stroke-width: 1; }
.chart__bar { fill: var(--brand-gold); }
.chart__bar:hover { fill: var(--brand-gold-light); }
.chart__line { fill: none; stroke: var(--brand-green); stroke-width: 2; stroke-linejoin: round; }
.chart__dot { fill: var(--brand-green); stroke: var(--surface); stroke-width: 1.5; }
.chart__label { font-family: var(--font-body); font-size: 11px; fill: var(--brand-muted); }
/* The chart scales down with its column, so its text is drawn larger on phones and thinned out. */
@media (max-width: 640px) {
  .chart__label { font-size: 20px; }
  .chart__label--minor { display: none; }
}

.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.8125rem; color: var(--brand-muted); }
.legend__swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-inline-end: 0.4rem;
  vertical-align: middle;
}
.legend__swatch--visits { background: var(--brand-gold); }
.legend__swatch--followers { background: var(--brand-green); }
.legend__swatch--signed { background: var(--brand-green); }

.split { display: flex; height: 10px; border-radius: var(--radius-pill); overflow: hidden; background: var(--brand-sand-dark); }
.split__signed { background: var(--brand-green); }
.split__anon { background: var(--brand-gold); }

.follower-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.follower { display: flex; align-items: center; gap: 0.75rem; }
.follower__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar--md { width: 40px; height: 40px; font-size: 1rem; }
.follower__text { display: flex; flex-direction: column; min-width: 0; }
.follower__name { font-weight: 600; color: var(--brand-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.follower__name { text-decoration: none; }
a.follower__name:hover { color: var(--brand-green); text-decoration: underline; }
.follower__since { font-size: 0.8125rem; color: var(--brand-muted); }
/* a business follower: square logo instead of a round avatar, and a type badge at the end */
.follower__avatar--logo { border-radius: var(--radius-sm); }
.follower__type { margin-inline-start: auto; flex: none; }
/* an announcement from the directory's management carries the site's mark at avatar size */
.announcement__staff-mark { width: 40px; height: 40px; }

/* the chart scales with its viewBox, so on a phone its labels need more user units to stay legible */
@media (max-width: 640px) {
  .chart__label { font-size: 22px; }
}

/* ── Conversations & announcements ──────────────────────────────────────── */

.container--narrow { max-width: 820px; }

html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* Header inbox icon with the unread count; stays in the bar on phones too. */
.inbox-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  color: rgb(255 255 255 / 82%);
  transition: background 0.15s ease, color 0.15s ease;
}
.inbox-link:hover,
.inbox-link[aria-current="page"] { background: rgb(255 255 255 / 10%); color: #fff; }

.inbox-link__badge {
  position: absolute;
  inset-block-start: 2px;
  inset-inline-end: 0;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: var(--radius-pill);
  background: var(--brand-gold);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--brand-green);
}
.inbox-link__badge[hidden] { display: none; }

/* Section tabs on a light ground, with the who-am-I switch beside them. */
.convo-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--brand-line);
}
.convo-tabs__sections { border-bottom: 0; margin-bottom: 0; }
.convo-tabs .segmented { margin-bottom: 0.5rem; }

.segmented--light { border-color: var(--brand-line); background: var(--surface); }
.segmented--light a { color: var(--brand-muted); }
.segmented--light a + a { border-inline-start-color: var(--brand-line); }
.segmented--light a:hover { color: var(--brand-ink); }
.segmented--light a[aria-current="true"] { color: #fff; }

/* Inbox */
.convo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.convo-row + .convo-row { border-top: 1px solid var(--brand-line); }

.convo-row__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  color: inherit;
  text-decoration: none;
}
.convo-row__link:hover { background: var(--brand-sand); }

.convo-row__main { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.convo-row__top { display: flex; align-items: baseline; gap: 0.75rem; }
.convo-row__name { font-weight: 600; color: var(--brand-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-row__time { margin-inline-start: auto; flex: none; font-size: 0.8125rem; color: var(--brand-muted); }
.convo-row__excerpt { font-size: 0.875rem; color: var(--brand-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-row__you { font-weight: 600; margin-inline-end: 0.25rem; }

.convo-row.is-unread .convo-row__name,
.convo-row.is-unread .convo-row__excerpt { color: var(--brand-ink); }
.convo-row.is-unread .convo-row__excerpt { font-weight: 600; }
.convo-row.is-unread .convo-row__time { color: var(--brand-gold-strong); font-weight: 600; }

.convo-row__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-gold); }

/* Conversation page */
.convo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.convo-head__who { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 200px; }
.convo-head__text { display: flex; flex-direction: column; min-width: 0; }
.convo-head__name { font-size: 1.5rem; margin: 0; overflow-wrap: anywhere; }
.convo-head__name a { color: inherit; }
.convo-head__as { font-size: 0.8125rem; color: var(--brand-muted); }
.convo-head__actions { gap: 0.5rem; }

.convo { display: flex; flex-direction: column; gap: 1rem; }
.convo__more { margin: 0; text-align: center; font-size: 0.875rem; }
.convo__closed {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--brand-sand);
  color: var(--brand-muted);
  font-size: 0.9375rem;
  text-align: center;
}
.convo__composer { border-top: 1px solid var(--brand-line); padding-top: 1rem; }

.message-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }

.message { display: flex; flex-direction: column; align-items: flex-start; max-width: min(80%, 560px); }
.message--mine { align-self: flex-end; align-items: flex-end; }

.message__bubble {
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-lg);
  border-end-start-radius: 4px;
  background: var(--brand-sand-dark);
  color: var(--brand-ink);
}
.message--mine .message__bubble {
  border-end-start-radius: var(--radius-lg);
  border-end-end-radius: 4px;
  background: var(--brand-green);
  color: #fff;
}

.message__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9375rem; }

.message__quote {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.75rem;
  border-inline-start: 3px solid var(--brand-gold);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 55%);
  color: var(--brand-ink);
  font-size: 0.8125rem;
}
.message--mine .message__quote { background: rgb(255 255 255 / 12%); color: #fff; }
.message__quote-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }

.message__meta { display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; margin-top: 0.25rem; font-size: 0.75rem; color: var(--brand-muted); }
.message__seen { color: var(--brand-green-light); font-weight: 600; }

/* Announcements */
.announcement-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.announcement-list__heading { font-size: 1.375rem; margin: 2rem 0 1rem; }

.announcement { display: flex; flex-direction: column; gap: 0.6rem; }
.announcement.is-unread { border-color: rgb(201 145 58 / 55%); box-shadow: 0 0 0 1px rgb(201 145 58 / 25%); }
.announcement__head { display: flex; align-items: center; gap: 0.75rem; }
.announcement__title { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; margin: 0; }
.announcement__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.announcement__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.75rem; margin-top: 0.5rem; }

/* "Message" beside a follower */
.follower__action { flex: none; margin-inline-start: auto; }
.follower__type + .follower__action { margin-inline-start: 0; }

@media (max-width: 600px) {
  .message { max-width: 92%; }
  .convo-head__name { font-size: 1.25rem; }
}

/* a linked message lands mid-screen, with the conversation around it, not under the header */
.message { scroll-margin-block: 35vh; }

/* ── Company blogs ──────────────────────────────────────────────────────── */

/* article cards: the profile preview and the blog page */
.post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover { border-color: rgb(201 145 58 / 40%); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 75%);
  overflow: hidden;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.125rem 1.125rem 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-card__title { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.4; margin: 0; color: var(--brand-ink); }
.post-card__summary {
  margin: 0;
  font-size: 0.875rem;
  color: var(--brand-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0 1.125rem 1.125rem; font-size: 0.8125rem; color: var(--brand-muted); }

/* a single article */
.post-preview-bar { border-radius: 0; margin: 0; border-inline: 0; }
.post__head { background: var(--brand-green); color: #fff; padding-block: 2.5rem 2rem; }
.post__title { color: #fff; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; margin: 0 0 1.25rem; overflow-wrap: anywhere; }
.post__byline { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; color: rgb(255 255 255 / 75%); }
.post__byline a { color: #fff; font-weight: 600; text-decoration: none; }
.post__byline a:hover { text-decoration: underline; }
.post__author::before, .post__views::before { content: "·"; margin-inline: 0.4rem; }
.post__other-language { margin-top: 1.25rem; }
.post__cover { display: block; width: 100%; border-radius: var(--radius-lg); margin-top: 2rem; box-shadow: var(--shadow); }
.post__foot { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; border-top: 1px solid var(--brand-line); margin-block: 2.5rem 3rem; padding-top: 1.5rem; }

/* sanitized article bodies; only the tags the API keeps need styling */
.prose { font-size: 1.0625rem; line-height: 1.8; color: var(--brand-ink); margin-top: 2rem; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-body); font-weight: 700; line-height: 1.3; margin: 2rem 0 0.75rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.0625rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose pre, .prose table { margin: 0 0 1.25rem; }
.prose ul, .prose ol { padding-inline-start: 1.5rem; }
.prose li + li { margin-top: 0.35rem; }
.prose a { color: var(--brand-green); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-gold); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose figcaption { font-size: 0.875rem; color: var(--brand-muted); margin-top: 0.5rem; text-align: center; }
.prose blockquote { border-inline-start: 3px solid var(--brand-gold); padding: 0.25rem 1rem; color: var(--brand-muted); background: var(--brand-sand); border-start-end-radius: var(--radius-sm); border-end-end-radius: var(--radius-sm); }
.prose pre { background: var(--brand-sand); padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: 0.875rem; }
.prose code { font-size: 0.9em; }
.prose hr { border: 0; border-top: 1px solid var(--brand-line); margin: 2rem 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--brand-line); padding: 0.5rem 0.75rem; text-align: start; }
.prose th { background: var(--brand-sand); }

/* the business editor */
.post-editor__body { min-height: 420px; font-family: ui-monospace, monospace; font-size: 0.875rem; }
.post-editor__cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
fieldset.tab-panel { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.tab-panel + fieldset.tab-panel:not([hidden]) { border-top: 1px solid var(--brand-line); padding-top: 1.25rem; margin-top: 1.25rem; }
.tox-tinymce { border-radius: var(--radius-sm) !important; }

/* ── Header bands (block order after findsaudi.com) ──────────────────────── */

/* Utility strip: language at the start edge, account at the end edge. */
.topbar {
  background: var(--brand-green-deep);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

/* The padding keeps the account chip and inbox icon (both ~40px) off the strip's edges. */
.topbar__inner {
  min-height: 52px;
  padding-block: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.topbar__lang { display: flex; align-items: center; gap: 0.25rem; }

@media (max-width: 900px) {
  .topbar__inner { min-height: 48px; padding-block: 0.375rem; }
}

/* Masthead: the brand at the start edge, the welcome line beside it. */
.masthead { padding-block: 1.25rem; }
.masthead--compact { padding-block: 0.75rem; }

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.masthead__welcome { flex: 1; min-width: 0; }

.masthead__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  color: #fff;
  margin: 0;
}

.masthead__tagline {
  font-size: 0.875rem;
  color: rgb(255 255 255 / 70%);
  margin: 0.25rem 0 0;
}

.brand--lg .brand__mark { width: 48px; height: 48px; border-radius: var(--radius); }
.brand--lg .brand__name strong { font-size: 1.375rem; }
.brand--lg .brand__name span { font-size: 0.6875rem; }

/* Menu bar: a full-width band holding the primary links. */
.menubar {
  background: rgb(0 0 0 / 18%);
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.menubar__inner {
  min-height: 48px;
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .masthead { padding-block: 0.75rem 1rem; }
  .masthead__tagline { display: none; }
  .brand--lg .brand__mark { width: 40px; height: 40px; }

  /* brand and toggle share the first row; the welcome line takes a full row beneath */
  .masthead__inner { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .masthead__inner .nav-toggle { order: 2; margin-inline-start: auto; }
  .masthead__welcome { order: 3; flex-basis: 100%; }
  .masthead__title { font-size: 1.0625rem; }

  /* The links live in the drawer on phones, so the band itself collapses. */
  .menubar { border-top: 0; }
  .menubar__inner { min-height: 0; }
}


/* ── Home: search block ─────────────────────────────────────────────────── */

.searchblock {
  background: var(--brand-sand-dark);
  border-bottom: 1px solid var(--brand-line);
  padding-block: 1.5rem;
}

.searchbar--wide {
  max-width: none;
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-sm);
}

.searchbar__label {
  display: flex;
  align-items: center;
  padding-inline: 1rem 0.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--brand-green);
  white-space: nowrap;
}

.searchblock__links {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.6rem;
  font-size: 0.875rem;
}

.searchblock__cats { margin-top: 0.75rem; }

.searchblock__cats > summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-green);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.searchblock__cats > summary::-webkit-details-marker { display: none; }

.searchblock__cats > summary::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.searchblock__cats[open] > summary::before { transform: rotate(-135deg) translateY(-2px); }

.searchblock__cats .chip-list { margin-top: 0.75rem; }

@media (max-width: 640px) {
  .searchbar__label { display: none; }
  .searchblock__links { justify-content: flex-start; }
}

/* ── Home: two-column body ──────────────────────────────────────────────── */

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding-block: 2.5rem 3.5rem;
}

.home-main { display: flex; flex-direction: column; gap: 2.5rem; min-width: 0; }
.home-side { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.home-more { display: flex; justify-content: center; margin-top: 1.5rem; }

/* Wide screens: the sidebar stays in view beside the longer main column. */
@media (min-width: 901px) {
  .home-side { position: sticky; inset-block-start: 1.5rem; }
}

/* One column: the featured and new businesses come before the category grid, not after it. */
@media (max-width: 900px) {
  .home-grid { display: flex; flex-direction: column; }
  .home-main { display: contents; }
  .home-intro { order: 1; }
  .home-side { order: 2; width: 100%; }
  #categories { order: 3; }
}

.home-intro { padding: 1.75rem; }
.home-intro__title { font-size: 1.5rem; margin-bottom: 0.75rem; }
.home-intro p { margin-bottom: 0.75rem; }
.home-intro__lead { font-weight: 600; color: var(--brand-green); }
.home-intro ul { margin: 0; padding-inline-start: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.home-intro li::marker { color: var(--brand-gold); }

/* three tiles per row inside the wide column */
.cat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

.side-block__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 1.0625rem;
  margin-bottom: 1rem;
  padding-block-end: 0.5rem;
  border-bottom: 2px solid var(--brand-gold);
}

.side-block__more { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }

/* One featured company visible at a time; swiping or scrolling snaps to the next. */
.side-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-gold) transparent;
  /* Room for the featured glow, which the scroll box would otherwise clip. */
  padding: 0.5rem 0.5rem 1rem;
  scroll-padding-inline: 0.5rem;
}

.side-carousel > * { flex: 0 0 100%; scroll-snap-align: start; }
.side-carousel .company-card { height: auto; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--brand-ink);
}

.logo-tile__media {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-tile:hover .logo-tile__media { border-color: rgb(201 145 58 / 55%); box-shadow: var(--shadow-sm); }
.logo-tile__media img { width: 100%; height: 100%; object-fit: contain; }
.logo-tile__monogram { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: var(--brand-gold-strong); }
.logo-tile__name { font-size: 0.8125rem; font-weight: 600; line-height: 1.35; }
.logo-tile:hover .logo-tile__name { color: var(--brand-gold); }

@media (max-width: 1100px) {
  .cat-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2rem 2.5rem; }
}

@media (max-width: 560px) {
  .home-intro { padding: 1.25rem; }
  .cat-grid--3 { gap: 0.875rem; }
}

/* ── Main categories page: findsaudi-style text list ────────────────────── */

.catdir__title { font-size: clamp(1.625rem, 3vw, 2rem); margin-bottom: 1rem; }

.catdir {
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* the city filter bar across the top of the list */
.catdir__bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--brand-line);
}

.catdir__select { width: auto; min-width: 200px; padding-block: 0.45rem; font-size: 0.875rem; }
.catdir__bar [hidden] { display: none; }

/* three columns, filled top to bottom so the alphabetical order runs down each column */
.catlist {
  list-style: none;
  margin: 0;
  padding: 0.25rem 1rem 0.75rem;
  columns: 3;
  column-gap: 1.75rem;
}

.catlist li { break-inside: avoid; border-bottom: 1px solid var(--brand-line); }

/* block, not flex: a wrapped name keeps its count right after the last word */
.catlist a {
  display: block;
  padding-block: 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--brand-ink);
}

.catlist a:hover .catlist__name { color: var(--brand-gold); }

.catlist__name { transition: color 0.15s ease; }

.catlist__count {
  margin-inline-start: 0.35rem;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: var(--brand-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .catlist { columns: 2; }
}

@media (max-width: 520px) {
  .catlist { columns: 1; }
  .catdir__bar { justify-content: stretch; }
  .catdir__select { flex: 1; min-width: 0; }
}

/* ── Footer blocks ──────────────────────────────────────────────────────── */

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.site-footer .site-footer__tagline { margin: 0; max-width: none; color: rgb(255 255 255 / 70%); }

.site-footer__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.site-footer__base--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.site-footer__rights { display: flex; flex-direction: column; gap: 0.3rem; }
.site-footer .site-footer__blurb { margin: 0; max-width: none; text-align: end; }

@media (max-width: 900px) {
  .site-footer__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

@media (max-width: 640px) {
  .site-footer__grid--4 { grid-template-columns: minmax(0, 1fr); }
  .site-footer__base--split { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .site-footer .site-footer__blurb { text-align: start; }
}

/* ── Messages: list and conversation side by side ───────────────────────── */

.inbox-page { padding-block: 1.5rem 2.5rem; }

.inbox-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.inbox-head__title { font-size: 1.75rem; margin: 0; }
.inbox-tabs { margin-bottom: 1rem; }
.inbox-tabs .tabs__btn,
.segmented a { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Unread count beside a tab or switch; filled in by the script, hidden at zero. */
.count-pill {
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: var(--radius-pill);
  background: var(--brand-gold);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.count-pill[hidden] { display: none; }
.segmented a[aria-current="true"] .count-pill { background: #fff; color: var(--brand-gold-strong); }

/* Small filter links (inbox / archived). */
.pills { display: inline-flex; gap: 0.25rem; }
.pills a {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-muted);
  text-decoration: none;
}
.pills a:hover { color: var(--brand-green); background: var(--brand-sand); }
.pills a[aria-current="true"] { background: var(--brand-sand-dark); color: var(--brand-green); }

.icon-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--brand-muted);
  cursor: pointer;
}
.icon-btn:hover { background: var(--brand-sand-dark); color: var(--brand-green); }

/* A small dropdown: a <details>, so it opens without JavaScript. */
.menu { position: relative; flex: none; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--brand-sand-dark); color: var(--brand-green); }
.menu__panel {
  position: absolute;
  inset-block-start: calc(100% + 0.35rem);
  inset-inline-end: 0;
  z-index: 20;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.menu__panel form { display: contents; }
.menu__panel a,
.menu__panel button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--brand-ink);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.menu__panel a:hover,
.menu__panel button:hover { background: var(--brand-sand); color: var(--brand-green); }
.menu__panel .menu__danger { color: var(--danger); }
.menu__panel .menu__danger:hover { color: var(--danger); background: rgb(179 38 30 / 8%); }

/* The two panes. The script measures where the box starts (--inbox-top) so that it fills the
   rest of the window; without the script it takes a fixed share of the window instead. */
.inbox {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  height: max(min(640px, 100dvh - 2rem), 100dvh - var(--inbox-top, 100dvh) - 1.5rem);
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Both pane headers share this height so their bottom borders line up across the box. */
  --inbox-head-h: 4rem;
}

.inbox__list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-inline-end: 1px solid var(--brand-line);
}
.inbox__list-head {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: var(--inbox-head-h);
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--brand-line);
}
.inbox__list .convo-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
}
.inbox__list .convo-row:last-child { border-bottom: 1px solid var(--brand-line); }
.inbox__list .pagination { flex: none; margin: 0; padding: 0.6rem; border-top: 1px solid var(--brand-line); }
.inbox__note { margin: 0; padding: 1.5rem 1rem; text-align: center; font-size: 0.9375rem; color: var(--brand-muted); }
.inbox__more { flex: none; margin: 0; padding: 0.6rem; text-align: center; font-size: 0.875rem; border-top: 1px solid var(--brand-line); }

.convo-row.is-active .convo-row__link { background: var(--brand-sand); box-shadow: inset 3px 0 0 var(--brand-gold); }
html[dir="rtl"] .convo-row.is-active .convo-row__link { box-shadow: inset -3px 0 0 var(--brand-gold); }

.inbox__thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.inbox__thread--empty { align-items: center; justify-content: center; background: var(--brand-sand); }
.state--plain { border: 0; background: transparent; }

.thread__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--inbox-head-h);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--brand-line);
}
/* Back to the list: on phones the only way out of a conversation, on wide screens it closes it. */
.thread__back { margin-inline-start: -0.4rem; }
.thread__who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.thread__name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread__name a { color: inherit; }
.thread__as { font-size: 0.75rem; color: var(--brand-muted); }

/* column-reverse makes the box start scrolled to its end, the newest message, without any
   script, and keeps a short conversation sitting just above the reply box. */
.thread__scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column-reverse;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  background: var(--brand-sand);
}
.thread__scroll--center { flex-direction: column; align-items: center; justify-content: center; }
.thread__inner { display: flex; flex-direction: column; gap: 1rem; }
.thread__intro { max-width: 40ch; margin: 0; text-align: center; font-size: 0.9375rem; color: var(--brand-muted); }

.thread .message--theirs .message__bubble { background: var(--surface); border: 1px solid var(--brand-line); }
.thread .message { scroll-margin-block: 4rem; }

/* Day headings and grouping are added by the script, in the reader's own time zone. */
.message-day {
  align-self: center;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--brand-sand-dark);
  color: var(--brand-muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.message-day::first-letter { text-transform: uppercase; }
.message.is-grouped { margin-bottom: -0.55rem; }
.message.is-grouped .message__meta { display: none; }

.thread__foot { flex: none; padding: 0.75rem 1rem; border-top: 1px solid var(--brand-line); background: var(--surface); }
.thread__foot .convo__closed { background: transparent; padding: 0.35rem; }

.composer__row { display: flex; align-items: flex-end; gap: 0.5rem; }
.composer__input {
  min-height: 44px;
  max-height: 9.5rem;
  /* No scroll arrows on a one-line box; the script grows it, and it scrolls only once full. */
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-lg);
  resize: none;
}
.composer__send { flex: none; min-height: 44px; }
.composer__hint { margin: 0.4rem 0 0; font-size: 0.75rem; color: var(--brand-muted); }
/* the key hint only holds where the script binds the keys and there is a hardware keyboard */
.composer__keys { display: none; }
.composer__error {
  margin: 0 0 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.875rem;
}
.composer__error[hidden] { display: none; }

@media (hover: hover) and (pointer: fine) {
  .has-js .composer__keys { display: inline; }
}

.inbox-feed { max-width: 760px; }

/* Phones: one pane at a time. The inbox page is the list; an open conversation is the
   conversation alone, with a back arrow to the list. */
@media (max-width: 800px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }

  .inbox:not(.inbox--open) { height: auto; }
  .inbox:not(.inbox--open) .inbox__thread { display: none; }
  .inbox:not(.inbox--open) .inbox__list .convo-list { overflow: visible; }

  .inbox--open { height: max(420px, 100dvh - 1.5rem); }
  .inbox--open .inbox__list { display: none; }
  .inbox__list { border-inline-end: 0; }

  .inbox-page--open { padding-block: 0.75rem 1.5rem; }
  .inbox-page--open .inbox-chrome { display: none; }
  .composer__hint { display: none; }
}

/* ── Business section navigation ────────────────────────────────────────── */

/* One row of links shared by every "my business" page, directly under the page header. */
.subnav {
  background: var(--surface);
  border-bottom: 1px solid var(--brand-line);
}
.subnav__list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 2px solid transparent;
  color: var(--brand-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.subnav__list a:hover { color: var(--brand-green); }
.subnav__list a[aria-current="page"] { color: var(--brand-green); border-bottom-color: var(--brand-gold); }

/* Group headings inside the phone drawer. */
.site-nav__group {
  margin: 0;
  padding: 0.6rem 0.75rem 0.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
.site-nav__group { padding-inline: 0.85rem; color: rgb(255 255 255 / 55%); }

/* ── Business overview ──────────────────────────────────────────────────── */

/* A figure that opens the page behind it. */
.stat--link { color: inherit; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.stat--link:hover { border-color: var(--brand-gold); box-shadow: var(--shadow); }
.stat--alert { border-color: rgb(201 145 58 / 55%); background: var(--info-soft); }
.stat--alert .stat__value { color: var(--brand-gold); }

/* The conversation list inside a card: no frame of its own, rows run to the card edges. */
.convo-list--flush { border: 0; border-radius: 0; margin-inline: -0.5rem; }
.convo-list--flush .convo-row__link { padding-inline: 0.5rem; border-radius: var(--radius-sm); }

/* long single-line rows (a message excerpt) must shrink with the column, not widen the page */
.detail-grid > * { min-width: 0; }

/* ── Purchases ─────────────────────────────────────────────────────────────── */

/* A card with a line of text and one action beside it (the "pay online" prompt). */
.cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cta-card > div { flex: 1; min-width: 220px; }

.plan-group { margin-top: 1.5rem; }
.plan-group__title { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; color: var(--brand-ink); margin-bottom: 0.25rem; }
.plan-group__hint { margin-bottom: 1rem; }

/* one card per offering; its lengths are rows inside it, so cards are wider than a single price */
.plan-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* a single plan picked on the pricing page, shown alone */
.plan-grid--focus { grid-template-columns: minmax(0, 520px); }
.plan--focus { border-color: var(--brand-gold); box-shadow: 0 0 0 3px rgb(201 145 58 / 15%); }

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.plan__name { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; color: var(--brand-ink); margin: 0; }
.plan__description { color: var(--brand-muted); font-size: 0.9375rem; margin: 0; }
.plan__duration { font-size: 0.8125rem; font-weight: 600; color: var(--brand-green-light); margin: 0; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; margin-top: 0.5rem; }
.plan__price strong { font-family: var(--font-display); font-size: 1.625rem; line-height: 1.1; color: var(--brand-green); }
.plan__price span { font-size: 0.8125rem; }

/* the action sits at the bottom so buttons line up across a row of cards */
.plan__action { margin-top: auto; padding-top: 0.75rem; }
.plan__action .field { margin-bottom: 0.75rem; }

/* the buy form fills the rest of the card so its button still lines up with the others */
.plan__form { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.plan__form .field { margin: 0.25rem 0 0; }
.plan__vat { font-size: 0.8125rem; margin: 0; }

/* The lengths an offering is sold in: a list on the pricing page, radio rows in the buy form. */
.plan-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.plan-option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 0;
}

label.plan-option { cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
label.plan-option:hover { border-color: var(--brand-gold); }
label.plan-option:has(input:checked) {
  border-color: var(--brand-gold-strong);
  background: rgb(201 145 58 / 8%);
  box-shadow: inset 0 0 0 1px var(--brand-gold-strong);
}
label.plan-option:has(input:focus-visible) { outline: 2px solid var(--brand-gold-strong); outline-offset: 2px; }

.plan-option input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--brand-gold-strong); }
.plan-option__term { font-weight: 600; color: var(--brand-ink); }
.plan-option__save {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--brand-green-light);
  background: var(--success-soft);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-option__price {
  margin-inline-start: auto;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--brand-green);
  white-space: nowrap;
}

.order-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }

/* The page the checkout returns to. */
.purchase-result__title { font-size: 1.625rem; margin-bottom: 0.5rem; }
.purchase-result__details { text-align: start; max-width: 420px; margin: 1.5rem auto 0; }
.purchase-result__actions { justify-content: center; margin-top: 1.5rem; }
.purchase-result--success .state__icon { background: var(--success-soft); color: var(--brand-green-light); }
.purchase-result--failed .state__icon { background: var(--danger-soft); color: var(--danger); }

/* Invoice */
.invoice { padding: 2rem; }
.invoice p { margin: 0; }
.invoice__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--brand-line); }
.invoice__seller { font-weight: 700; font-size: 1.0625rem; color: var(--brand-ink); }
.invoice__title { text-align: end; }
.invoice__title h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.invoice__meta { margin: 1.25rem 0; }
.invoice__lines { margin-bottom: 1.25rem; }
.invoice__totals { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 0.5rem 2rem; margin: 0; font-size: 0.9375rem; }
.invoice__totals dt { color: var(--brand-muted); }
.invoice__totals dd { margin: 0; text-align: end; }
.invoice__totals .invoice__total { font-weight: 700; color: var(--brand-ink); padding-top: 0.5rem; border-top: 1px solid var(--brand-line); }
.invoice__note { margin-top: 1rem; font-size: 0.8125rem; text-align: end; }

@media print {
  .site-header,
  .site-footer,
  .subnav,
  .mobile-notice,
  .alert,
  .no-print { display: none !important; }

  body { background: #fff; }
  .section { padding: 0; }
  .container { max-width: none; padding-inline: 0; }
  .invoice { border: 0; box-shadow: none; padding: 0; }
  .invoice .table-wrap { border-radius: 0; }
  .table tbody tr:hover { background: transparent; }
}

/* ── Features & pricing page ───────────────────────────────────────────────── */

.features-head { max-width: 680px; margin-bottom: 2rem; }
.features-head--center { margin-inline: auto; text-align: center; }
.features-head .lede { margin-bottom: 0; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
}

.section--white .feature-card { background: var(--brand-sand); }

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgb(201 145 58 / 12%);
  color: var(--brand-gold);
  margin-bottom: 1rem;
}

.feature-card__title { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; color: var(--brand-ink); margin-bottom: 0.35rem; }
.feature-card__body { color: var(--brand-muted); font-size: 0.9375rem; margin: 0; }

/* what a package includes: a ticked list under the card's text */
.feature-card__points { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--brand-line); display: flex; flex-direction: column; gap: 0.6rem; }
.feature-card__points li { position: relative; padding-inline-start: 1.5rem; color: var(--brand-ink); font-size: 0.9375rem; }

.feature-card__points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.15rem;
  top: 0.3em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--brand-gold-strong);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* the featured scope above a featuring package's name */
.plan__scope {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.faq { display: flex; flex-direction: column; gap: 0.75rem; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding-inline: 1.25rem;
}

.faq__item[open] { border-color: var(--brand-gold); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  font-weight: 600;
  color: var(--brand-ink);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
  content: "+";
  flex: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--brand-gold);
}

.faq__item[open] .faq__question::after { content: "−"; }

.faq__answer { color: var(--brand-muted); margin: 0; padding-bottom: 1.1rem; }

/* four steps: one row, then two by two, then one column, never a lone card on its own row */
.features-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .features-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .features-steps { grid-template-columns: 1fr; }
}

/* ── Support tab (Views/Support) ───────────────────────────────────────── */
/* Daleel support's mark stands in for an avatar beside a ticket. */
.support-mark { flex: none; background: var(--brand-green); color: var(--brand-gold-light); }
.state .support-mark { width: 56px; height: 56px; margin: 0 auto 1rem; }
.support-row__meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.15rem; font-size: 0.75rem; color: var(--brand-muted); }
.support-row__meta .badge { font-size: 0.6875rem; }
.message__from-support { font-weight: 600; color: var(--brand-green); }
.support-form { width: 100%; max-width: 560px; margin-inline: auto; }
.support-form__intro { max-width: none; margin-bottom: 1.25rem; }
.support-form__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── Tables on phones ───────────────────────────────────────────────────── */
/* site.js copies each column heading into its cells (data-label) and marks the table; on a phone
   each row then reads as a small card of "label: value" lines instead of a sideways-scrolling grid. */
@media (max-width: 640px) {
  .table[data-stacked] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table[data-stacked],
  .table[data-stacked] tbody,
  .table[data-stacked] tr,
  .table[data-stacked] td { display: block; width: 100%; }
  .table[data-stacked] tr { padding-block: 0.5rem; border-bottom: 1px solid var(--brand-line); }
  .table[data-stacked] tr:last-child { border-bottom: 0; }
  .table[data-stacked] td { display: grid; grid-template-columns: minmax(90px, 35%) minmax(0, 1fr); gap: 0.75rem; align-items: center; padding: 0.35rem 1rem; border: 0; text-align: start; }
  /* Values keep their own size (a badge stays a badge) and long ones such as emails wrap inside the card. */
  .table[data-stacked] td > *,
  .table[data-stacked] td .row > * { min-width: 0; max-width: 100%; justify-self: start; overflow-wrap: anywhere; }
  .table[data-stacked] td[data-empty] { display: none; }
  .table[data-stacked] td::before {
    content: attr(data-label);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-muted);
  }
  .table[data-stacked] td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .table[data-stacked] td[data-label=""]::before { display: none; }
  .table-wrap:has(.table[data-stacked]) { overflow-x: visible; }
}

/* ── Business section navigation: show that it scrolls ─────────────────── */
/* Fades at whichever edge has more links behind it; site.js sets the flags while scrolling. */
.subnav__list[data-more-start] { mask-image: linear-gradient(to var(--fade-start), transparent 0, #000 2.5rem); }
.subnav__list[data-more-end] { mask-image: linear-gradient(to var(--fade-end), transparent 0, #000 2.5rem); }
.subnav__list[data-more-start][data-more-end] {
  mask-image: linear-gradient(to right, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%);
}
.subnav__list { --fade-start: right; --fade-end: left; }
html[dir="rtl"] .subnav__list { --fade-start: left; --fade-end: right; }

/* A logo still loading (or that failed) stays out of sight so the monogram under it shows. */
img[data-logo] { transition: opacity 0.2s ease; }
/* Hidden at once (no transition), faded in when it arrives. */
img[data-logo].is-loading,
img[data-logo].is-broken { opacity: 0; transition: none; }

/* The FindSaudi default image (no logo, or one that failed) fills its box edge to edge; its own
   ground is --brand-sand, so it is shown whole on sand and the margins blend in. */
.company-card__media img.is-default,
.company-row__media img.is-default,
.profile-logo img.is-default,
.logo-tile__media img.is-default { object-fit: contain; padding: 0; background: var(--brand-sand); }
.logo-tile__media:has(img.is-default) { padding: 0; background: var(--brand-sand); }

/* On the deep green, the bright gold reads well; the strong gold would sink into it. */
.profile-hero .eyebrow,
.hero .eyebrow,
.section--green .eyebrow,
.site-footer .eyebrow { color: var(--brand-gold); }
.profile-hero .btn--gold,
.hero .btn--gold,
.section--green .btn--gold { background: var(--brand-gold); color: var(--brand-green-deep); }
.profile-hero .btn--gold:hover:not(:disabled),
.hero .btn--gold:hover:not(:disabled),
.section--green .btn--gold:hover:not(:disabled) { background: var(--brand-gold-light); color: var(--brand-green-deep); }

/* In-page jump links under a page's tabs: small pills, one scrolling row. */
.jumpnav { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; margin: -0.5rem 0 1.25rem; }
.jumpnav::-webkit-scrollbar { display: none; }
.jumpnav a {
  flex: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-muted);
  text-decoration: none;
  white-space: nowrap;
}
.jumpnav a:hover { border-color: var(--brand-gold); color: var(--brand-green); }

/* ── Touch screens: small text links get a finger-sized hit area ────────── */
@media (pointer: coarse) {
  .link-arrow,
  .side-block__more,
  .breadcrumb a,
  .comment__action,
  .company-row__more,
  .tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }
  .comment__action { padding-inline: 0.3rem; }
  .comment__meta { gap: 0.15rem 0.5rem; }
  .password-field__toggle { min-height: 36px; }
}

/* Secondary actions on the green headers read as buttons, not loose text beside the main one. */
.profile-hero .btn--ghost-light { border-color: rgb(255 255 255 / 24%); }
.profile-hero .btn--ghost-light:hover:not(:disabled) { border-color: rgb(255 255 255 / 45%); background: rgb(255 255 255 / 6%); }

/* The contact card stays beside a long profile while it scrolls. */
@media (min-width: 901px) {
  .detail-grid > .detail-aside--sticky { position: sticky; inset-block-start: 1.5rem; }
}

/* Category picker as a list: a main category, then its subcategories indented under it. */
.choice-grid--tree { grid-template-columns: 1fr; max-height: 340px; gap: 0.35rem; }
.checkbox--child { padding-inline-start: 1.75rem; color: var(--brand-muted); }

/* Long forms keep their save button in reach. */
.form-actions--sticky {
  position: sticky;
  inset-block-end: 0;
  z-index: 5;
  margin-inline: -1.5rem;
  margin-block-end: -1.5rem;
  padding: 0.85rem 1.5rem;
  border-end-start-radius: inherit;
  border-end-end-radius: inherit;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(6px);
  border-block-start: 1px solid var(--brand-line);
}

/* ── Polish ─────────────────────────────────────────────────────────────── */

/* A file picker that matches the other fields instead of the browser's grey button. */
.input--file { padding: 0.35rem; font-size: 0.875rem; color: var(--brand-muted); cursor: pointer; }
.input--file::file-selector-button {
  margin-inline-end: 0.75rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  background: var(--brand-sand);
  color: var(--brand-green);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.input--file::file-selector-button:hover { background: var(--brand-sand-dark); }

/* Badges and tags were 11px; 12px keeps them small but legible. */
.badge,
.tag { font-size: 0.75rem; }

/* The 404 heading is the page's h1 but keeps the empty-state size. */
.state .state__title { margin-bottom: 0.5rem; }

/* Side cards beside a long form stay in view on wide screens. */
@media (min-width: 901px) {
  .aside--sticky { position: sticky; inset-block-start: 1.5rem; align-self: start; }
}

/* Category directory: a long name and its count wrap together, not the count on its own line. */
.catlist__name { overflow-wrap: anywhere; }

/* Following list: each card with its own unfollow button under it. */
.following-item { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.following-item > .company-card { flex: 1; }
.following-item__action { display: flex; justify-content: flex-end; }

/* Changing a sponsored search's keywords from the purchases page */
.keywords-edit { margin-block-start: 0.35rem; }
.keywords-edit > summary { cursor: pointer; color: var(--brand-gold-strong); font-size: 0.85rem; }
.keywords-edit__form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 0.5rem 0.25rem; }
.keywords-edit__form .input { flex: 1 1 14rem; min-width: 0; }

/* ── Featured showcase: profile gallery carousel + YouTube video ─────────── */
/* Without script the track is a swipeable, snapping strip and a picture opens in a new tab;
   site.js adds the arrows, counter, thumbnails and the full-screen viewer. */
.showcase { padding: 0.75rem; overflow: hidden; }
.showcase__video { margin-block-start: 0.75rem; }

.showcase-carousel { position: relative; }

/* One fixed shape for every picture: the slides are laid over the stage rather than sizing it,
   so a tall picture can no longer stretch the whole gallery. */
.showcase-carousel__stage {
  position: relative;
  aspect-ratio: 3 / 2;
  max-height: 34rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-green-deep);
}

.showcase-carousel__track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.showcase-carousel__track::-webkit-scrollbar { display: none; }
.showcase-carousel__track:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: -2px; }

.showcase-carousel__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
/* The picture again, blurred and dimmed, filling whatever its own proportions leave empty. */
.showcase-carousel__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  filter: blur(22px) brightness(0.55) saturate(1.15);
  pointer-events: none;
}
.showcase-carousel__open { position: absolute; inset: 0; display: block; cursor: zoom-in; }
.showcase-carousel__open img { width: 100%; height: 100%; object-fit: contain; display: block; }
.showcase-carousel__open:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: -4px; }

.showcase-carousel__zoom,
.showcase-carousel__count {
  position: absolute;
  inset-inline-end: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgb(17 30 23 / 62%);
  color: #fff;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.showcase-carousel__zoom { top: 0.75rem; width: 2rem; height: 2rem; opacity: 0.85; transition: opacity 0.2s ease; }
.showcase-carousel__stage:hover .showcase-carousel__zoom { opacity: 1; }
.showcase-carousel__count {
  bottom: 0.75rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.showcase-carousel__count[hidden] { display: none; }

.showcase-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 90%);
  color: var(--brand-green);
  cursor: pointer;
  box-shadow: 0 2px 10px rgb(0 0 0 / 28%);
  transition: background 0.15s ease, color 0.15s ease;
}
.showcase-carousel__nav[hidden] { display: none; }
.showcase-carousel__nav:hover { background: var(--brand-gold); color: #fff; }
.showcase-carousel__nav:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 2px; }
.showcase-carousel__nav--prev { inset-inline-start: 0.75rem; }
.showcase-carousel__nav--next { inset-inline-end: 0.75rem; }
/* The chevrons point physically; mirror them when the page reads right to left. */
html[dir="rtl"] .showcase-carousel__nav { transform: translateY(-50%) scaleX(-1); }

/* Thumbnail strip under the stage; it scrolls sideways when the pictures outgrow the row. */
.showcase-carousel__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-block-start: 0.6rem;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.showcase-carousel__thumbs[hidden] { display: none; }
.showcase-carousel__thumbs::-webkit-scrollbar { display: none; }
.showcase-carousel__thumb {
  flex: 0 0 auto;
  width: 4.75rem;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--brand-green-deep);
  cursor: pointer;
  opacity: 0.6;
  outline: 2px solid transparent;
  outline-offset: 0;
  transition: opacity 0.2s ease, outline-color 0.2s ease;
}
.showcase-carousel__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-carousel__thumb:hover { opacity: 1; }
.showcase-carousel__thumb:focus-visible { opacity: 1; outline-color: var(--brand-green); }
.showcase-carousel__thumb[aria-current="true"] { opacity: 1; outline-color: var(--brand-gold); }

@media (max-width: 640px) {
  .showcase-carousel__stage { aspect-ratio: 4 / 3; }
  .showcase-carousel__nav { width: 2.25rem; height: 2.25rem; }
  .showcase-carousel__nav--prev { inset-inline-start: 0.5rem; }
  .showcase-carousel__nav--next { inset-inline-end: 0.5rem; }
  .showcase-carousel__thumb { width: 3.75rem; }
}

/* Full-screen picture viewer (a modal <dialog>, opened by site.js). */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(9 17 13 / 94%); }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox__image {
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 7rem);
  max-height: calc(100dvh - 7rem);
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 48px rgb(0 0 0 / 50%);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 14%);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--brand-gold); }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible { outline: 2px solid var(--brand-gold-light); outline-offset: 2px; }
.lightbox__close { top: 1rem; inset-inline-end: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { inset-inline-start: 1rem; }
.lightbox__nav--next { inset-inline-end: 1rem; }
html[dir="rtl"] .lightbox__nav { transform: translateY(-50%) scaleX(-1); }
.lightbox__count {
  position: absolute;
  bottom: 1.1rem;
  inset-inline: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgb(255 255 255 / 85%);
  pointer-events: none;
}
@media (max-width: 640px) {
  .lightbox__nav--prev { inset-inline-start: 0.4rem; }
  .lightbox__nav--next { inset-inline-end: 0.4rem; }
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Business page: the gallery as a grid of thumbnails with their actions. */
.showcase-manage {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.showcase-manage__item {
  border: 1px solid var(--border, rgb(26 58 42 / 12%));
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface, #fff);
}
.showcase-manage__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--brand-green); }
.showcase-manage__actions { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.4rem; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .showcase-carousel__track { scroll-behavior: auto; }
  .showcase-carousel__thumb,
  .showcase-carousel__nav,
  .showcase-carousel__zoom { transition: none; }
}

/* Frequently asked questions (About page): one disclosure per question */
.faq__title { margin: 3rem 0 1rem; text-align: center; }
.faq { display: grid; gap: 0.75rem; }
.faq__item {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
}
.faq__item summary { cursor: pointer; font-weight: 600; color: var(--brand-ink); }
.faq__item[open] summary { margin-bottom: 0.5rem; }

/* The introduction staff wrote for a category reads as body text, ahead of the generated facts */
.cat-intro--written { color: var(--brand-ink); margin-bottom: 0.75rem; }
