/* Haram Recitations Archive — public site
   Identity: "Haram green". Deep green and antique gold on a soft green-ivory ground;
   at night an emerald dark theme. Type: Cairo for text and UI, Amiri for Quranic quotes. */

:root {
  --bg: #F3F6F1;
  --surface: #FFFFFF;
  --sunk: #E7EEE6;
  --fg: #11251B;
  --muted: #55695C;
  --line: #D8E3D6;
  --sea: #0E5A3A;
  --sea-ink: #0A472E;
  --sea-soft: #E1EDE3;
  --pearl: #A8853A;
  --pearl-soft: #F4ECD8;
  --red: #B3261E;
  --on-sea: #F8F4E6;
  --hero-a: #0E5A3A;
  --hero-b: #0A3F29;
  --hero-c: #072E1E;
  --shadow: 0 1px 2px rgba(17, 37, 27, .06), 0 8px 24px -16px rgba(14, 90, 58, .45);
  /* Cairo has no ﷺ glyph; "Amiri" covers it and the Quranic quotes. */
  --f-cairo: "Cairo", "Amiri", Tahoma, "Segoe UI", sans-serif;
  --f-heading: var(--f-cairo);
  --f-display: var(--f-cairo);
  --f-body: var(--f-cairo);
  --f-ui: var(--f-cairo);
  --f-quote: "Amiri", "Cairo", serif;
  --fs: 16.5px;
  --radius: 12px;
  --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1712; --surface: #12221A; --sunk: #0F1D16; --fg: #E4EEE7; --muted: #9AB1A3;
    --line: #22382C; --sea: #4CC08A; --sea-ink: #72D4A5; --sea-soft: #16301F; --pearl: #D8B66A;
    --pearl-soft: #2A2817; --red: #F07A6A; --on-sea: #0C1712;
    --hero-a: #134D33; --hero-b: #0E3826; --hero-c: #0A2A1C;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 26px -18px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1712; --surface: #12221A; --sunk: #0F1D16; --fg: #E4EEE7; --muted: #9AB1A3;
  --line: #22382C; --sea: #4CC08A; --sea-ink: #72D4A5; --sea-soft: #16301F; --pearl: #D8B66A;
  --pearl-soft: #2A2817; --red: #F07A6A; --on-sea: #0C1712;
  --hero-a: #134D33; --hero-b: #0E3826; --hero-c: #0A2A1C;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 26px -18px rgba(0,0,0,.8);
  color-scheme: dark;
}
:root[data-font="lg"] { --fs: 19px; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body);
  font-size: 1rem; line-height: 1.8; direction: rtl; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-heading); line-height: 1.45; margin: 0; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -100px; right: 12px; background: var(--sea); color: var(--on-sea); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

.container {
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 28px 56px; }
.section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head a { font-size: .9rem; text-decoration: none; font-weight: 500; }
.eyebrow { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; }

/* ---------- Header ---------- */
.date-bar { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.5; }
.date-bar-row { display: flex; align-items: center; gap: 8px; padding-block: 6px; }
.date-bar .icon { color: var(--sea); }
.date-lines { display: grid; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--bg); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: grid; line-height: 1.25; min-width: 0; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; white-space: nowrap; }
.brand-tag { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: .93rem;
  padding: 6px 12px; border-radius: 99px;
}
.main-nav a:hover { color: var(--fg); background: var(--sunk); }
.main-nav a[aria-current="page"] { color: var(--sea); background: var(--sea-soft); }
.header-actions { display: flex; gap: 4px; align-items: center; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: var(--fg); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--sunk); }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions { margin-inline-start: auto; }
}

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  }
  .tabbar a {
    display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--muted);
    font-size: .7rem; font-weight: 500; padding: 4px 0;
  }
  .tabbar a .icon { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--sea); }
}

/* ---------- Season banner ---------- */
.season {
  position: relative; overflow: hidden; border-radius: 18px; color: var(--on-sea);
  background: linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 60%, var(--hero-c) 100%);
  padding: clamp(22px, 4vw, 40px); display: grid; gap: 10px;
}
:root[data-theme="dark"] .season { color: #F3F7F2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .season { color: #F3F7F2; } }
.season::after {
  content: ""; position: absolute; inset-inline-start: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.32), rgba(205,189,156,.18) 45%, transparent 70%);
  pointer-events: none;
}
.season-date { font-size: .85rem; opacity: .85; }
.season h1, .season h2 { font-size: clamp(1.5rem, 4.2vw, 2.25rem); }
.season .quote { font-family: var(--f-quote); font-size: clamp(1.1rem, 2.6vw, 1.4rem); line-height: 1.9; max-width: 48ch; opacity: .95; }
.season .source { font-size: .8rem; opacity: .75; }
.season .quote-line { max-width: none; }
.season .quote-line .source { font-family: var(--f-body); font-size: .7em; white-space: nowrap; margin-inline-start: 6px; }
.season a.btn { justify-self: start; margin-top: 6px; }

/* ---------- Search ---------- */
.search-box { position: relative; }
.search-form {
  display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 99px; padding: 6px 8px 6px 6px; box-shadow: var(--shadow);
}
.search-form:focus-within { border-color: var(--sea); }
.search-form .icon { color: var(--muted); margin-inline-start: 10px; }
.search-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 1rem; padding: 8px 4px; outline: none;
}
.search-form input::placeholder { color: var(--muted); }
.suggest {
  position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 20; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px;
  max-height: 70vh; overflow-y: auto;
}
.suggest a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--fg); }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--sunk); }
.suggest img { width: 72px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; flex: none; }
.suggest .s-title { font-weight: 500; font-size: .92rem; line-height: 1.5; }
.suggest .s-meta { font-size: .76rem; color: var(--muted); }
.suggest .s-label { font-size: .74rem; color: var(--muted); padding: 6px 8px 2px; font-weight: 600; }
.suggest .s-topic::before { content: "#"; color: var(--pearl); font-weight: 700; margin-inline-end: 2px; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--sea); color: var(--on-sea); font-weight: 600; font-size: .93rem;
  padding: 9px 18px; border-radius: 99px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--sea-ink); }
.btn-ghost { background: var(--sunk); color: var(--fg); }
.btn-ghost:hover { background: var(--line); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.24); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 99px; font-size: .88rem;
  text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line);
}
.chip:hover { border-color: var(--sea); color: var(--sea); }
.chip[aria-current="true"], .chip.is-active { background: var(--sea); color: var(--on-sea); border-color: var(--sea); }
.chip .count { font-size: .76rem; color: inherit; opacity: .7; font-variant-numeric: tabular-nums; }

/* ---------- Video cards ---------- */
.grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { display: grid; gap: 10px; align-content: start; min-width: 0; text-decoration: none; color: var(--fg); }
.thumb { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sunk); aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .thumb img { transform: scale(1.035); }
.badge {
  position: absolute; bottom: 8px; left: 8px; background: rgba(7, 26, 17, .82); color: #fff;
  font-size: .74rem; padding: 1px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; direction: ltr;
}
.badge-type { left: auto; right: 8px; direction: rtl; background: var(--pearl); color: #1B1A14; font-weight: 600; }
.card-title { font-weight: 600; font-size: 1rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { color: var(--sea); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; color: var(--muted); }
.card-meta .topic { color: var(--sea); }

/* Horizontal row of shorts */
.shorts-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin;
}
.short-card { scroll-snap-align: start; text-decoration: none; color: var(--fg); display: grid; gap: 8px; }
.short-card .thumb { aspect-ratio: 9 / 16; }
.short-card .card-title { font-size: .9rem; }


/* ---------- Page heading ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sea); }
.crumbs span[aria-hidden] { opacity: .6; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.select {
  appearance: none; font: inherit; font-size: .9rem; color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 34px 6px 14px; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: 18px 55%, 13px 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.empty { padding: 48px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; display: grid; gap: 12px; justify-items: center; }

/* ---------- Video page ---------- */
.watch { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1000px) { .watch { grid-template-columns: minmax(0, 1fr); } }
.watch-main { display: grid; gap: 16px; min-width: 0; }
.player {
  position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: var(--shadow);
}
.player.is-short { aspect-ratio: 9 / 16; max-width: 420px; margin-inline: auto; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-facade { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; background: #000; width: 100%; }
.player-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.player-facade .play {
  position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14, 90, 58, .94); color: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.4); transition: transform .2s;
}
.player-facade:hover .play { transform: scale(1.07); }
.player-facade .play .icon { width: 34px; height: 34px; margin-inline-start: 4px; }
.watch-title { font-size: clamp(1.3rem, 3.4vw, 1.8rem); }
.watch-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); }
.watch-meta a { text-decoration: none; }
.desc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; white-space: pre-line; overflow-wrap: anywhere; font-size: .95rem; }
.desc.is-clamped { max-height: 9.5em; overflow: hidden; position: relative; }
.desc.is-clamped::after { content: ""; position: absolute; inset: auto 0 0; height: 3em; background: linear-gradient(transparent, var(--surface)); }
.callout {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--sea-soft); border-radius: 12px; padding: 12px 16px; font-size: .95rem;
}
.side-list { display: grid; gap: 14px; }
.side-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; text-decoration: none; color: var(--fg); }
.side-item .thumb { border-radius: 10px; }
.side-item .card-title { font-size: .92rem; }

/* Share bar */
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 99px; font-size: .88rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; text-decoration: none;
}
.share-btn:hover { border-color: var(--sea); color: var(--sea); }
.share-btn.wa { background: #1F8F55; border-color: #1F8F55; color: #fff; }
.share-btn.wa:hover { background: #18774A; color: #fff; }
.share-btn .icon { width: 18px; height: 18px; }
.share-time { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.share-time input { accent-color: var(--sea); }

.toast {
  position: fixed; inset-inline: 0; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); margin-inline: auto; width: max-content; max-width: calc(100% - 32px);
  background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 99px; font-size: .9rem; z-index: 60;
  opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { font-size: .82rem; color: var(--muted); text-decoration: none; background: var(--sunk); padding: 2px 10px; border-radius: 99px; }
.tags a:hover { color: var(--sea); }

/* ---------- Shorts feed ---------- */
.shorts-page { background: #06100B; color: #F3F7F2; }
.shorts-page .site-header, .shorts-page .site-footer { display: none; }
.feed { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; }
@media (max-width: 900px) { .feed { height: calc(100dvh - 64px - env(safe-area-inset-bottom, 0px)); } }
.feed-item { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; position: relative; padding: 12px; }
.feed-stage { position: relative; height: 100%; max-height: 880px; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 16px; overflow: hidden; background: #000; }
.feed-stage .player-facade, .feed-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.feed-info {
  position: absolute; inset: auto 0 0; padding: 60px 16px 18px; background: linear-gradient(transparent, rgba(0,0,0,.82));
  display: grid; gap: 10px; pointer-events: none;
}
.feed-info > * { pointer-events: auto; }
.feed-info h2 { font-size: 1.1rem; color: #fff; }
.feed-info .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.feed-top {
  position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); inset-inline: max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-left, 0px));
  z-index: 10; display: flex; justify-content: space-between; align-items: center; pointer-events: none;
}
.feed-top > * { pointer-events: auto; }
.feed-top .icon-btn { background: rgba(0,0,0,.45); color: #fff; }
.feed-top .eyebrow { color: #fff; background: rgba(0,0,0,.45); padding: 4px 12px; border-radius: 99px; }
.feed-empty { min-height: 80dvh; display: grid; place-items: center; text-align: center; padding: 24px; }
.feed-empty > div { display: grid; gap: 14px; justify-items: center; max-width: 40ch; }

/* ---------- About ---------- */
.about { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 14px; max-width: 68ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 2px; }
.stat b { font-family: var(--f-display); font-size: 1.5rem; color: var(--sea); font-variant-numeric: tabular-nums; }
.stat span { font-size: .82rem; color: var(--muted); }
.links { display: grid; gap: 8px; }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; padding-top: 8px; }
.pager a, .pager span {
  min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 99px;
  text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: var(--sea); color: var(--sea); }
.pager .is-current { background: var(--sea); color: var(--on-sea); border-color: var(--sea); }
.pager .is-disabled { opacity: .45; }

mark { background: var(--pearl-soft); color: inherit; border-radius: 3px; padding: 0 2px; }

.narrow { max-width: 860px; }

/* ---------- Transcript ---------- */
.transcript { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.transcript-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.transcript-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.transcript-filter { font: inherit; font-size: .9rem; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; min-width: 0; width: 200px; max-width: 100%; }
.transcript-hint { font-size: .84rem; }
.transcript-lines { list-style: none; margin: 0; padding: 0; max-height: 26rem; overflow-y: auto; display: grid; gap: 2px; scroll-behavior: smooth; overscroll-behavior: contain; }
.transcript-lines button {
  display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 10px; align-items: baseline; width: 100%;
  text-align: start; border: 0; background: transparent; cursor: pointer; padding: 6px 8px; border-radius: 8px; line-height: 1.9;
}
.transcript-lines button:hover { background: var(--sunk); }
.transcript-lines .t { font-size: .78rem; color: var(--sea); font-variant-numeric: tabular-nums; font-weight: 600; }
.transcript-lines .is-now { background: var(--sea-soft); }
.transcript-lines .is-now .x { color: var(--fg); font-weight: 500; }

/* ---------- Moments in search ---------- */
.moments { display: grid; gap: 14px; }
.moment-group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.moment-video { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--fg); font-weight: 600; }
.moment-video img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; }
.moment-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.moment-group li a { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 10px; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--fg); line-height: 1.9; }
.moment-group li a:hover { background: var(--sunk); }
.moment-group .t { color: var(--sea); font-weight: 600; font-size: .8rem; font-variant-numeric: tabular-nums; }
.suggest .s-quote { font-family: var(--f-quote); font-size: 1rem; }


/* ---------- Watching progress & series ---------- */
.watch-bar { position: absolute; inset: auto 0 0 0; height: 4px; background: rgba(255,255,255,.35); display: none; }
.watch-bar.on { display: block; }
.watch-bar span { display: block; height: 100%; width: 0; background: var(--red); }
.progress { height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--sea); border-radius: 99px; transition: width .4s; }
.series-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.series-card { display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--fg); min-width: 0; }
.series-card:hover { border-color: var(--sea); }
.series-card p { font-size: .9rem; }
.series-thumbs { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 16/8; border-radius: 10px; overflow: hidden; background: var(--sunk); }
.series-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.series-thumbs img:first-child { grid-row: span 2; }
.series-progress { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.series-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.series-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.series-list a { display: grid; grid-template-columns: 2em 140px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; color: var(--fg); padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.series-list a:hover { border-color: var(--sea); }
.series-list .n { font-family: var(--f-display); color: var(--pearl); font-size: 1.2rem; text-align: center; }
.series-list .thumb { border-radius: 8px; }
.series-list .done-mark { color: var(--sea); font-weight: 700; font-size: 1.2rem; padding-inline: 6px; }
.series-list .is-done a, .series-list li.is-done a { opacity: .8; }
@media (max-width: 560px) { .series-list a { grid-template-columns: 1.6em 104px minmax(0, 1fr) auto; gap: 8px; } }
.series-callout a:not(.btn) { color: var(--sea); font-weight: 600; }
.pill-done { font-size: .85rem; color: var(--sea); font-weight: 600; }
.resume-btn { justify-self: start; }


/* ---------- Share card & notifications ---------- */
.card-preview { position: fixed; inset: 0; z-index: 85; background: rgba(4, 12, 14, .9); display: grid; place-items: center; gap: 14px; padding: 16px; align-content: center; }
.card-preview img { max-height: 70dvh; max-width: 100%; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.card-preview .entry-actions { justify-content: center; }
.push-box { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 14px 18px; }

/* ---------- Main nav ----------
   Desktop: its own full-width row under the brand, always visible, icon + label.
   Phones (≤900px): folded behind the menu button (the tab bar covers the basics). */
.header-row { flex-wrap: wrap; column-gap: 20px; row-gap: 0; }
.header-actions { margin-inline-start: auto; }
.menu-btn { display: none; }
.main-nav {
  order: 3; flex: 1 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 4px;
  margin: 0; padding-block: 6px 8px; border-top: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 7px; flex: none; white-space: nowrap;
  padding: 6px 10px 6px 12px; border-radius: 99px; font-size: .93rem; font-weight: 600; color: var(--muted);
}
.main-nav a .icon {
  width: 28px; height: 28px; padding: 5.5px; border-radius: 50%;
  color: var(--sea); background: var(--pearl-soft); vertical-align: 0;
  transition: background-color .15s, color .15s;
}
.main-nav a:hover { color: var(--fg); background: var(--sunk); }
.main-nav a:hover .icon { background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--sea-ink); background: var(--sea-soft); }
.main-nav a[aria-current="page"] .icon { background: var(--sea); color: var(--on-sea); }
html { scroll-padding-top: calc(var(--header-h) + 72px); }
/* Narrow desktops / tablets: stack icon over label so all ten still fit on one row. */
@media (min-width: 901px) and (max-width: 1180px) {
  .main-nav a { flex-direction: column; gap: 3px; padding: 6px 8px; border-radius: 12px; font-size: .8rem; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: calc(var(--header-h) + 12px); }
  .header-row { flex-wrap: nowrap; }
  .menu-btn { display: inline-grid; }
  .main-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0; border-top: 0; overflow: visible;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
  }
  .main-nav.is-open { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
  .main-nav a { padding: 8px 10px; border-radius: 12px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-row { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); padding-block: 32px; }
@media (max-width: 760px) { .footer-row { grid-template-columns: minmax(0, 1fr); } }
.footer-row > * { align-content: start; }
.footer-row h3 { font-size: .95rem; margin-bottom: 6px; }
.footer-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.footer-row a { color: var(--fg); text-decoration: none; }
.footer-row a:hover { color: var(--sea); }
.footer-hadith { font-family: var(--f-quote); font-size: 1.2rem; color: var(--pearl); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 14px; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-credit { flex-basis: 100%; text-align: center; color: var(--muted); text-decoration: none; }
.footer-credit:hover { color: var(--sea); text-decoration: underline; }


/* Error pages */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-page > div { display: grid; gap: 14px; justify-items: center; max-width: 46ch; }
.error-page .code { font-family: var(--f-display); font-size: 4rem; color: var(--pearl); line-height: 1; }

/* UI controls stay in a crisp sans so buttons and fields read cleanly next to the naskh text. */
.btn, .select, .main-nav a, .transcript-filter, .search-form input { font-family: var(--f-ui); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Archive components
   ===================================================================== */

/* Mosque colour coding: Makkah green, Madinah gold. */
.m-haram { --m: var(--sea); --m-soft: var(--sea-soft); }
.m-nabawi { --m: var(--pearl); --m-soft: var(--pearl-soft); }
.m-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; line-height: 1.6;
  padding: 0 9px; border-radius: 99px; color: var(--m, var(--sea)); background: var(--m-soft, var(--sea-soft)); white-space: nowrap;
}
.m-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Hero */
.season .ayah { font-family: var(--f-quote); font-size: clamp(1.15rem, 2.8vw, 1.5rem); line-height: 2; max-width: 52ch; }
.season-pattern { position: absolute; inset-inline-end: -30px; top: -30px; width: 260px; height: 260px; opacity: .13; pointer-events: none; color: #E9D6A4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ---------- Today's prayers board ---------- */
.board { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.board-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: grid; align-content: start; box-shadow: var(--shadow);
}
.board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); background: linear-gradient(0deg, transparent, var(--m-soft));
}
.board-head h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 8px; }
.board-head h3 a { color: var(--fg); text-decoration: none; }
.board-head h3 a:hover { color: var(--m); }
.board-head .dome { width: 26px; height: 26px; color: var(--m); }
.board-date { font-size: .8rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.board-date:hover { color: var(--m); }
.prayer-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.prayer-row {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--fg);
}
a.prayer-row:hover { background: var(--sunk); }
.prayer-row .slot { font-weight: 700; color: var(--m); font-size: .95rem; }
.prayer-row .who { min-width: 0; display: grid; line-height: 1.45; }
.prayer-row .who b { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prayer-row .who small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prayer-row .go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--m-soft); color: var(--m); }
.prayer-row .go .icon { width: 16px; height: 16px; margin-inline-start: 2px; }
.prayer-row.is-missing { opacity: .5; }
.prayer-row.is-missing .go { background: transparent; }
.board-foot { padding: 10px 16px 14px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.board-foot .eyebrow { color: var(--m); }
.khutbah-link { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--fg); }
.khutbah-link .thumb { border-radius: 8px; }
.khutbah-link b { display: block; font-size: .92rem; line-height: 1.5; }
.khutbah-link small { color: var(--muted); font-size: .78rem; }
.khutbah-link:hover b { color: var(--m); }
.board-empty { padding: 22px 16px; color: var(--muted); font-size: .9rem; text-align: center; }

/* ---------- Cards (archive meta) ---------- */
.card-kicker { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.card-kicker .who { color: var(--fg); font-weight: 600; }

/* ---------- People ---------- */
.people-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.person-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--fg); transition: border-color .15s, transform .15s;
}
.person-card:hover { border-color: var(--m, var(--sea)); transform: translateY(-1px); }
.person-card b { display: block; font-size: 1rem; line-height: 1.5; }
.person-card small { color: var(--muted); font-size: .8rem; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--m-soft, var(--sea-soft)); color: var(--m, var(--sea)); font-weight: 800; font-size: .95rem;
  border: 2px solid color-mix(in srgb, var(--m, var(--sea)) 30%, transparent);
}
.avatar.lg { width: 84px; height: 84px; font-size: 1.5rem; }
.people-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 240px); gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Page hero for a person, mosque or surah */
.page-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 3vw, 26px);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset-inline-end: -50px; top: -50px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--m-soft, var(--sea-soft)), transparent 70%); pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.page-hero .sub { color: var(--muted); }
.page-hero .dome-lg { width: 72px; height: 72px; color: var(--m); }
.stat-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; font-size: .88rem; color: var(--muted); }
.stat-row b { color: var(--fg); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .page-hero { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Quran index ---------- */
.surah-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
.surah-tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--fg);
}
.surah-tile:hover { border-color: var(--sea); }
.surah-tile b { font-family: var(--f-quote); font-size: 1.25rem; font-weight: 700; line-height: 1.4; display: block; }
.surah-tile small { color: var(--muted); font-size: .76rem; }
.surah-tile .n { color: var(--sea); font-weight: 700; }
.surah-tile.is-empty b { color: var(--muted); }
.surah-filter { max-width: 420px; }
.medallion {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none; position: relative;
  font-size: .82rem; font-weight: 700; color: var(--pearl); font-variant-numeric: tabular-nums;
}
.medallion::before, .medallion::after {
  content: ""; position: absolute; inset: 5px; border: 1.5px solid var(--pearl); border-radius: 7px;
}
.medallion::before { transform: rotate(45deg); }
.medallion::after { opacity: .55; }
.medallion.lg { width: 80px; height: 80px; font-size: 1.35rem; }
.medallion.lg::before, .medallion.lg::after { inset: 10px; border-width: 2px; border-radius: 12px; }
.surah-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Hijri archive ---------- */
.year-list { display: grid; gap: 12px; }
.year-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.year-row h2 { font-size: 1.25rem; color: var(--sea); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .year-row { grid-template-columns: minmax(0, 1fr); } }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { text-align: center; font-size: .78rem; color: var(--muted); font-weight: 600; padding-bottom: 2px; }
.cal-day {
  min-height: 76px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 6px 8px;
  display: grid; align-content: space-between; gap: 4px; text-decoration: none; color: var(--fg);
}
a.cal-day:hover { border-color: var(--sea); }
.cal-day .d { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.cal-day .g { font-size: .7rem; color: var(--muted); }
.cal-day .dots { display: flex; gap: 3px; flex-wrap: wrap; }
.cal-day .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--m); }
.cal-day.is-empty { background: transparent; border-style: dashed; color: var(--muted); }
.cal-day.is-today { box-shadow: 0 0 0 2px var(--pearl); }
@media (max-width: 560px) { .cal { gap: 4px; } .cal-day { min-height: 56px; padding: 4px 5px; border-radius: 9px; } .cal-day .g { display: none; } }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--m); }
.day-nav { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* ---------- Video page ---------- */
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chips a, .meta-chips span {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: .86rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none;
}
.meta-chips a:hover { border-color: var(--sea); color: var(--sea); }
.meta-chips .icon { width: 16px; height: 16px; color: var(--pearl); }
.yt-title { font-size: .86rem; color: var(--muted); }

/* Mini player: the playing video follows the reader down the page and stays visible, as YouTube requires. */
.player-slot { position: relative; }
.player.is-mini {
  position: fixed; z-index: 40; width: min(356px, calc(100vw - 24px)); min-height: 200px; aspect-ratio: 16 / 9;
  inset-inline-end: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
@media (max-width: 900px) { .player.is-mini { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
.mini-close {
  position: absolute; top: 6px; inset-inline-start: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.6); color: #fff; display: none; place-items: center; cursor: pointer;
}
.player.is-mini .mini-close { display: grid; }

/* ---------- Play queue (kept in this browser) ---------- */
.queue { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.queue-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.queue-head h2 { font-size: 1.05rem; }
.queue-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.queue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 360px; overflow-y: auto; }
.queue-list a {
  display: grid; grid-template-columns: 1.8em 88px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: 10px;
  text-decoration: none; color: var(--fg); font-size: .88rem; line-height: 1.5;
}
.queue-list a .i { color: var(--muted); text-align: center; font-size: .8rem; }
.queue-list a:hover { background: var(--sunk); }
.queue-list .is-now a { background: var(--sea-soft); font-weight: 600; }
.queue-list img { width: 88px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); cursor: pointer; }
.switch input { accent-color: var(--sea); width: 16px; height: 16px; }

/* Filters bar on archive lists */
.filters-bar { display: grid; gap: 10px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip { flex: none; }

/* Disclaimer and footer */
.disclaimer { font-size: .82rem; color: var(--muted); background: var(--sunk); border-radius: 10px; padding: 10px 14px; line-height: 1.8; }
.footer-ayah { font-family: var(--f-quote); font-size: 1.3rem; color: var(--pearl); line-height: 2; }
.date-link { color: inherit; text-decoration: none; } .date-link:hover { color: var(--sea); }
.board-actions { padding: 0 12px 10px; display: flex; justify-content: flex-end; }
.person-card small { display: block; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .person-card small.n { color: var(--m, var(--sea)); font-weight: 600; } .person-card > span:last-child { min-width: 0; } .person-card b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-day.is-empty { opacity: .6; } a.cal-day { border-color: color-mix(in srgb, var(--sea) 28%, var(--line)); box-shadow: var(--shadow); }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
.board-head { flex-wrap: wrap; row-gap: 2px; }
.board-head h3, .board-head h2 { white-space: nowrap; }
@media (max-width: 480px) {
  .header-actions [data-font-toggle] { display: none; }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .header-row { gap: 10px; }
  .board-date .pre { display: none; }
  .prayer-row { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; }
}

/* ---------- Linked filters ---------- */
.filter-search {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 99px; padding: 4px 14px; max-width: 520px;
}
.filter-search:focus-within { border-color: var(--sea); }
.filter-search .icon { color: var(--muted); }
.filter-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: .95rem; padding: 6px 0; outline: none; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; }
.active-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 10px; border-radius: 99px;
  background: var(--sea-soft); color: var(--sea-ink); text-decoration: none; font-weight: 600;
}
.active-chip .icon { width: 14px; height: 14px; }
.active-chip:hover { background: var(--sea); color: var(--on-sea); }
.clear-all { color: var(--muted); font-size: .84rem; }
.is-loading { opacity: .55; transition: opacity .15s; pointer-events: none; }

/* Desktop menu: never clip the last item behind a hidden scroll. Tighter spacing,
   and if it still does not fit (narrow screens, large font) it wraps to a second row. */
@media (min-width: 901px) {
  .main-nav { flex-wrap: wrap; justify-content: center; overflow: visible; column-gap: 2px; row-gap: 4px; }
  .main-nav a { padding: 5px 9px 5px 10px; gap: 6px; font-size: .92rem; }
  .main-nav a .icon { width: 26px; height: 26px; padding: 5px; }
}
@media (min-width: 1181px) {
  .main-nav { justify-content: space-between; }
}
