/* ==========================================================================
   Muslim baby names guide · page styles
   Aqiqah hero, name finder, name cards, details, Aqiqah sheet, shortlist.
   Shared brand styles (tokens, header, menu, buttons, footer, FAQ) live in base.css.
   ========================================================================== */

:root {
  /* Gender accents for badges only */
  --boy-bg: rgb(var(--blue) / 0.14);
  --boy-fg: rgb(var(--navy));
  --girl-bg: #fbe8ec;
  --girl-fg: #a3324c;
  --both-bg: rgb(var(--green) / 0.12);
  --both-fg: rgb(var(--green));

  --rail-h: 62px;
  --card-radius: 16px;

  /* 8-point star lattice (khatam), drawn in gold or white */
  --lattice-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23e2a23a' stroke-width='1'%3E%3Cpath d='M20 20h24v24H20zM32 15l17 17-17 17-17-17z'/%3E%3Cpath d='M32 0v15M32 49v15M0 32h15M49 32h15M0 0l20 20M64 0 44 20M0 64l20-20M64 64 44 44'/%3E%3C/g%3E%3C/svg%3E");
  --lattice-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M20 20h24v24H20zM32 15l17 17-17 17-17-17z'/%3E%3Cpath d='M32 0v15M32 49v15M0 32h15M49 32h15M0 0l20 20M64 0 44 20M0 64l20-20M64 64 44 44'/%3E%3C/g%3E%3C/svg%3E");
}

html { scroll-padding-block-start: calc(var(--header-h) + var(--rail-h) + 12px); }

@media (min-width: 1000px) {
  html { scroll-padding-block-start: calc(var(--header-h) + 20px); }
}

body.has-bar { padding-block-end: 0; }

.Link {
  display: inline;
  padding: 0 2px;
  border-radius: 4px;
  color: rgb(var(--navy));
  font-weight: 600;
  transition: background-color 200ms;
}

.Link:hover { background: rgb(var(--blue) / 0.16); }

.IconBtn--sm { inline-size: 40px; block-size: 40px; }
.IconBtn--sm svg { inline-size: 18px; block-size: 18px; }

.Eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  inline-size: fit-content;
  padding: 6px 14px 6px 10px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.75);
  box-shadow: inset 0 0 0 1px rgb(var(--gold) / 0.45);
  color: rgb(var(--navy));
  font-size: 0.8125rem;
  font-weight: 600;
}

.Eyebrow svg { inline-size: 18px; block-size: 18px; color: rgb(var(--yellow)); }

@media (max-width: 479px) { .Hero .Eyebrow { display: none; } }

.Eyebrow--light { background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); color: #fff; }
.Eyebrow--light svg { color: rgb(var(--gold)); }

/* ---------- Hero: Aqiqah first ---------- */

.Hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(26px, 6vw, 76px) clamp(30px, 6vw, 84px);
  background: rgb(var(--paper));
  overflow: clip;
}

.Hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lattice-gold) center top / 64px;
  opacity: 0.32;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 85% 40%, #000 10%, transparent 70%);
}

.Hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }

@media (min-width: 960px) {
  .Hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas: 'intro card' 'jump card';
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 5vw, 72px);
    row-gap: 26px;
    align-items: start;
  }
  .Hero__intro { grid-area: intro; align-self: end; }
  .AqCard { grid-area: card; align-self: center; }
  .Hero__jump { grid-area: jump; }
}

.Hero__intro { display: grid; gap: 16px; justify-items: start; }

.Hero__title {
  color: rgb(var(--ink));
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.Hero__title span { display: block; color: rgb(var(--green)); font-weight: 600; }

.Hero__lede {
  max-inline-size: 54ch;
  color: rgb(var(--ink-soft));
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.175rem);
  line-height: 1.6;
}

.Hero__lede strong { color: rgb(var(--ink)); font-weight: 700; }

.Hero__jump {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 12px 6px 12px 6px;
  background: rgb(255 255 255 / 0.7);
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.08);
  color: rgb(var(--navy));
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 200ms;
}

.Hero__jump:hover { background: #fff; }
.Hero__jump svg { inline-size: 20px; block-size: 20px; flex: none; fill: currentColor; }

/* The Aqiqah card: a keepsake-style preview of the name, then name, boy/girl and Give */
.AqCard {
  position: relative;
  border-radius: 24px 10px 24px 10px;
  background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(var(--ink) / 0.04);
  overflow: hidden;
}

.AqCard__top {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 16px 18px 10px;
  background: rgb(var(--navy));
  color: #fff;
  text-align: center;
}

.AqCard__top::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lattice-white) center / 56px;
  opacity: 0.09;
}

.AqCard__top::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  block-size: 4px;
  background: linear-gradient(90deg, rgb(var(--gold)), rgb(var(--yellow)));
}

.AqCard__kicker {
  color: rgb(var(--gold));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.AqCard__for { color: rgb(255 255 255 / 0.7); font-family: var(--font-h); font-size: 1rem; font-style: italic; }

.AqCard__name {
  max-inline-size: 100%;
  font-family: var(--font-h);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
  transition: color 300ms;
}

.AqCard__name.is-empty { color: rgb(255 255 255 / 0.42); }

@media (min-width: 480px) { .AqCard__top { gap: 2px; padding: 22px 22px 14px; } }

.AqCard__ar {
  min-block-size: 1.6em;
  color: rgb(var(--gold));
  font-size: 1.5rem;
  line-height: 1.5;
}

.AqCard__body { display: grid; gap: 14px; padding: 20px 20px 18px; }

@media (min-width: 480px) { .AqCard__body { padding: 22px 24px 20px; } }

.AqCard__match {
  margin-block-start: -6px;
  color: rgb(var(--ink-soft));
  font-size: 0.875rem;
  line-height: 1.45;
}

.AqCard__match:empty { display: none; }
.AqCard__match a { color: rgb(var(--navy)); font-weight: 600; text-decoration: none; border-radius: 4px; }
.AqCard__match a:hover { background: rgb(var(--blue) / 0.14); }
.AqCard__match b { color: rgb(var(--ink)); }

.AqCard__note { color: rgb(var(--muted)); font-size: 0.8125rem; text-align: center; }

.Field .Input { font-size: 1.0625rem; }

/* Boy / girl picker on the card */
.Pick { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.Pick__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.Pick__opt { position: relative; display: block; cursor: pointer; }
.Pick__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }

.Pick__opt > span {
  display: grid;
  gap: 1px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / 0.14);
  transition: box-shadow 200ms, background-color 200ms;
}

.Pick__opt b { font-size: 1.0625rem; }
.Pick__opt small { color: rgb(var(--muted)); font-size: 0.8125rem; }
.Pick__opt:hover > span { box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / 0.3); }
.Pick__opt input:checked + span { background: rgb(var(--blue) / 0.1); box-shadow: inset 0 0 0 2px rgb(var(--blue)); }
.Pick__opt input:focus-visible + span { outline: 2px solid rgb(var(--red)); outline-offset: 2px; }

/* Aqiqah at a glance: four points instead of five */
@media (min-width: 1100px) {
  .Points__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Name finder ---------- */

.Finder { padding-block: var(--space) calc(var(--space) * 0.55); }

.Finder__head { display: grid; gap: 10px; max-inline-size: 760px; margin-block-end: clamp(20px, 3vw, 30px); }
.Finder__sub { color: rgb(var(--muted)); font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem); }

.Review {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  inline-size: fit-content;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgb(var(--blue) / 0.1);
  color: rgb(var(--navy));
  font-size: 0.8125rem;
  line-height: 1.4;
}

.Review svg { inline-size: 18px; block-size: 18px; flex: none; }

.Finder__layout { display: grid; grid-template-columns: minmax(0, 1fr); }

@media (max-width: 999px) {
  /* On phones the sidebar dissolves so the A–Z rail can stick over the results */
  .Finder__side { display: contents; }
}

@media (min-width: 1000px) {
  .Finder__layout { grid-template-columns: 324px minmax(0, 1fr); gap: 34px; align-items: start; }

  .Finder__side {
    position: sticky;
    inset-block-start: calc(var(--header-h) + 16px);
    display: grid;
    gap: 18px;
    max-block-size: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-md), 0 0 0 1px rgb(var(--ink) / 0.06);
    scrollbar-width: thin;
    transition: inset-block-start 420ms var(--ease), max-block-size 420ms var(--ease);
  }

  .Header.is-hidden ~ main .Finder__side { inset-block-start: 16px; max-block-size: calc(100vh - 32px); }
}

/* Filters */
.Filters { display: grid; gap: 14px; }

.Search { position: relative; display: block; min-inline-size: 0; }

.Search > svg {
  position: absolute;
  inset: 50% auto auto 15px;
  inline-size: 20px;
  block-size: 20px;
  color: rgb(var(--muted));
  translate: 0 -50%;
  pointer-events: none;
}

.Search input {
  inline-size: 100%;
  min-block-size: 54px;
  padding: 0 46px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / 0.18);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  transition: box-shadow 200ms;
}

.Search input::placeholder { color: rgb(var(--muted)); }
.Search input::-webkit-search-cancel-button { display: none; }
.Search input:focus { outline: none; box-shadow: inset 0 0 0 2px rgb(var(--blue)), 0 0 0 4px rgb(var(--blue) / 0.18); }

.Search__clear {
  position: absolute;
  inset: 50% 7px auto auto;
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  color: rgb(var(--muted));
  translate: 0 -50%;
}

.Search__clear[hidden] { display: none; }
.Search__clear:hover { background: rgb(var(--off)); color: rgb(var(--ink)); }
.Search__clear svg { inline-size: 18px; block-size: 18px; fill: currentColor; }

.SavedBtn {
  display: none;
  align-items: center;
  gap: 7px;
  min-block-size: 40px;
  margin-inline-start: auto;
  padding: 0 14px 0 12px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / 0.14);
  color: rgb(var(--ink));
  font-size: 0.875rem;
  font-weight: 600;
  transition: box-shadow 200ms, background-color 200ms;
}

.SavedBtn svg { inline-size: 18px; block-size: 18px; color: rgb(var(--red)); }
.SavedBtn b { display: grid; place-items: center; min-inline-size: 22px; block-size: 22px; padding-inline: 6px; border-radius: 99px; background: rgb(var(--off)); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.SavedBtn.has-items b { background: rgb(var(--red)); color: #fff; }
.SavedBtn:hover { background: rgb(var(--off)); }
.SavedBtn.has-items { box-shadow: inset 0 0 0 1.5px rgb(var(--red) / 0.45); background: rgb(var(--red) / 0.05); }

@media (min-width: 1000px) { .SavedBtn { display: inline-flex; } }

/* Gender segmented control (real radios) */
.Seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 14px;
  background: rgb(var(--off));
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.07);
}

.Seg label { position: relative; }
.Seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }

.Seg span {
  display: grid;
  place-items: center;
  gap: 1px;
  min-block-size: 46px;
  padding: 4px 2px;
  border-radius: 10px;
  color: rgb(var(--ink-soft));
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  transition: background-color 220ms, color 220ms, box-shadow 220ms;
}

.Seg small { color: rgb(var(--muted)); font-size: 0.6875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.Seg label:hover span { color: rgb(var(--ink)); }
.Seg input:checked + span { background: #fff; color: rgb(var(--ink)); box-shadow: var(--shadow-sm), 0 2px 8px -4px rgb(0 0 0 / 0.25); }
.Seg input:focus-visible + span { outline: 2px solid rgb(var(--red)); outline-offset: -2px; }

.Filters__hint { margin-block-start: -8px; color: rgb(var(--muted)); font-size: 0.75rem; }

.Filters__group { display: grid; gap: 8px; }

.Filters__label {
  color: rgb(var(--muted));
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.Toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.Toggle { position: relative; display: inline-flex; }
.Toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }

.Toggle > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: 38px;
  padding: 0 11px;
  border-radius: 99px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / 0.14);
  color: rgb(var(--ink-soft));
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 200ms, color 200ms, box-shadow 200ms;
}

.Toggle svg { inline-size: 17px; block-size: 17px; color: rgb(var(--navy)); flex: none; }
.Toggle input[value='prophet'] + span svg { color: #8a5a00; }
.Toggle input[value='companion'] + span svg { color: rgb(var(--green)); }
.Toggle input[value]:checked + span svg { color: rgb(255 255 255 / 0.85); }
.Toggle small { color: rgb(var(--muted)); font-size: 0.75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.Toggle:hover > span { box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / 0.3); }
.Toggle input:checked + span { background: rgb(var(--navy)); box-shadow: none; color: #fff; }
.Toggle input:checked + span svg,
.Toggle input:checked + span small { color: rgb(255 255 255 / 0.8); }
.Toggle input:focus-visible + span { outline: 2px solid rgb(var(--red)); outline-offset: 2px; }
.Toggle input:disabled + span { opacity: 0.45; }

.Toggle--select select {
  min-block-size: 38px;
  padding: 0 34px 0 14px;
  border: 0;
  border-radius: 99px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23084274' d='m12 15.5-5-5L8.4 9 12 12.7 15.6 9 17 10.5l-5 5Z'/%3E%3C/svg%3E") right 10px center / 18px no-repeat;
  box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / 0.14);
  color: rgb(var(--ink-soft));
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.Toggle--select select:focus-visible { outline: 2px solid rgb(var(--red)); outline-offset: 2px; }
.Toggle--select.is-set select { background-color: rgb(var(--navy)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='m12 15.5-5-5L8.4 9 12 12.7 15.6 9 17 10.5l-5 5Z'/%3E%3C/svg%3E"); box-shadow: none; color: #fff; }

/* Popular meanings, above the results */
.Ideas__wrap { display: grid; gap: 8px; margin-block-end: 14px; }

.Ideas__label {
  color: rgb(var(--muted));
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 1000px) {
  .Ideas__wrap { display: flex; align-items: center; gap: 12px; margin-block-end: 10px; }
  .Ideas__label { flex: none; }
}

.Ideas { display: flex; gap: 6px; }

.Ideas button {
  flex: none;
  min-block-size: 34px;
  padding: 0 12px;
  border-radius: 99px;
  background: rgb(var(--paper));
  box-shadow: inset 0 0 0 1px rgb(var(--gold) / 0.35);
  color: rgb(var(--ink));
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 200ms, box-shadow 200ms;
}

.Ideas button:hover { background: color-mix(in srgb, rgb(var(--gold)) 22%, #fff); }
.Ideas button[aria-pressed='true'] { background: rgb(var(--gold)); box-shadow: none; font-weight: 600; }

@media (max-width: 999px) {
  /* One sideways row on phones */
  .Ideas {
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .Ideas::-webkit-scrollbar { display: none; }
}

@media (min-width: 1000px) { .Ideas { flex-wrap: wrap; } }

/* ---------- A–Z rail ---------- */

.AZ {
  position: sticky;
  inset-block-start: var(--header-h);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px calc(var(--gutter) * -1) 0;
  padding: 8px 10px;
  background: rgb(255 255 255 / 0.95);
  border-block: 1px solid rgb(var(--ink) / 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: inset-block-start 420ms var(--ease), box-shadow 300ms;
}

.Header.is-hidden ~ main .AZ { inset-block-start: 0; }
.AZ.is-stuck { box-shadow: 0 10px 24px -20px rgb(var(--navy) / 0.9); }

.AZ__label { display: none; }

.AZ__list {
  display: flex;
  flex: 1 1 auto;
  gap: 3px;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.AZ__list::-webkit-scrollbar { display: none; }
.AZ__list li { flex: none; }

.AZ__btn {
  display: grid;
  place-items: center;
  align-content: center;
  inline-size: 38px;
  block-size: 46px;
  border-radius: 10px;
  color: rgb(var(--ink));
  text-decoration: none;
  transition: background-color 180ms, color 180ms, opacity 180ms;
}

.AZ__l { font-family: var(--font-h); font-size: 1.0625rem; font-weight: 700; line-height: 1.1; }
.AZ__n { color: rgb(var(--muted)); font-size: 0.625rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
a.AZ__btn:hover { background: rgb(var(--blue) / 0.14); }
.AZ__btn[aria-current='true'] { background: rgb(var(--navy)); color: #fff; }
.AZ__btn[aria-current='true'] .AZ__n { color: rgb(255 255 255 / 0.75); }
.AZ__btn[aria-disabled='true'] { opacity: 0.28; pointer-events: none; }
.AZ__btn:focus-visible { outline-offset: -2px; }

.AZ__jump,
.AZ__saved {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 42px;
  block-size: 46px;
  border-radius: 12px;
  background: rgb(var(--off));
  color: rgb(var(--navy));
}

.AZ__jump svg,
.AZ__saved svg { inline-size: 22px; block-size: 22px; }
.AZ__jump i { position: absolute; inset: 8px 8px auto auto; inline-size: 9px; block-size: 9px; border-radius: 50%; background: rgb(var(--red)); box-shadow: 0 0 0 2px rgb(var(--off)); }
.AZ__jump i[hidden] { display: none; }
.AZ__saved { gap: 0; grid-template-rows: auto auto; align-content: center; color: rgb(var(--red)); }
.AZ__saved svg { inline-size: 18px; block-size: 18px; }
.AZ__saved b { color: rgb(var(--ink)); font-size: 0.6875rem; line-height: 1.1; font-variant-numeric: tabular-nums; }

@media (min-width: 1000px) {
  .AZ {
    position: static;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .AZ.is-stuck { box-shadow: none; }
  .AZ__label { display: block; color: rgb(var(--muted)); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
  .AZ__list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .AZ__btn { inline-size: auto; block-size: 44px; background: rgb(var(--off)); }
  .AZ__jump,
  .AZ__saved { display: none; }
}

/* ---------- Results ---------- */

.Results { min-inline-size: 0; padding-block-start: 16px; }

@media (min-width: 1000px) { .Results { padding-block-start: 0; } }

.Results__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-block-size: 40px;
  margin-block-end: 4px;
}

.Results__count { color: rgb(var(--ink-soft)); font-size: 0.9375rem; }
.Results__count strong { color: rgb(var(--ink)); font-weight: 700; }
.Results__count span { color: rgb(var(--muted)); }

.Results__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.Results__chips[hidden] { display: none; }

.FilterChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: 34px;
  padding: 4px 8px 4px 13px;
  border: 1px solid rgb(var(--blue) / 0.45);
  border-radius: 99px;
  background: rgb(var(--blue) / 0.12);
  color: rgb(var(--navy));
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  animation: chipIn 320ms var(--ease) both;
  transition: background-color 200ms, border-color 200ms;
}

.FilterChip:hover { background: rgb(var(--blue) / 0.22); border-color: rgb(var(--blue)); }
.FilterChip svg { inline-size: 15px; block-size: 15px; fill: currentColor; flex: none; }

.ClearAll { padding: 6px 8px; border-radius: 8px; color: rgb(var(--muted)); font-size: 0.8125rem; font-weight: 600; }
.ClearAll:hover { background: rgb(var(--off)); color: rgb(var(--ink)); }

@keyframes chipIn { from { opacity: 0; transform: scale(0.92); } }

/* A shared shortlist link (?shortlist=...) */
.Shared {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-block: 12px 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgb(var(--red) / 0.06);
  box-shadow: inset 0 0 0 1px rgb(var(--red) / 0.2);
}

.Shared[hidden] { display: none; }
.Shared > svg { inline-size: 22px; block-size: 22px; color: rgb(var(--red)); fill: currentColor; flex: none; }
.Shared p { flex: 1 1 220px; color: rgb(var(--ink)); font-size: 0.9375rem; }

/* Short result lists drop the letter headings and flow as one grid */
.Groups.is-flat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 12px;
  padding-block-start: 14px;
}

.Groups.is-flat .Letter,
.Groups.is-flat .Names { display: contents; }
.Groups.is-flat .Letter[hidden] { display: none; }
.Groups.is-flat .Letter__head,
.Groups.is-flat .Letter__more { display: none; }

/* Letter sections */
.Letter { padding-block: 22px 6px; content-visibility: auto; contain-intrinsic-size: auto 640px; }
.Letter[hidden] { display: none; }

.Letter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 14px;
}

.Letter__title { display: flex; align-items: center; gap: 12px; font-family: var(--font); font-size: 1rem; font-weight: 600; letter-spacing: 0; }

.Letter__glyph {
  display: grid;
  place-items: center;
  inline-size: 50px;
  block-size: 50px;
  border-radius: 14px 6px 14px 6px;
  background: rgb(var(--paper));
  box-shadow: inset 0 0 0 1.5px rgb(var(--gold) / 0.6);
  color: rgb(var(--navy));
  font-family: var(--font-h);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
}

.Letter__label { color: rgb(var(--ink-soft)); font-size: 0.9375rem; }
.Letter__count { color: rgb(var(--muted)); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.Names {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Name card: the whole card opens the details; the heart sits above the link */
.Name {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 16px 12px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.1);
  transition: box-shadow 220ms, background-color 220ms;
}

.Name[hidden] { display: none; }
.Name:hover { box-shadow: inset 0 0 0 1.5px rgb(var(--blue) / 0.75), 0 12px 26px -20px rgb(var(--navy) / 0.7); }
.Name.is-flash { animation: flash 1600ms var(--ease); }

@keyframes flash { 0%, 40% { background: color-mix(in srgb, rgb(var(--gold)) 22%, #fff); } }

.Name__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.Name__title { color: rgb(var(--ink)); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.005em; }
.Name__title a { color: inherit; text-decoration: none; }
.Name__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.Name__title a:focus-visible { outline: none; }
.Name:has(.Name__title a:focus-visible) { outline: 2px solid rgb(var(--red)); outline-offset: 2px; }

.Name__ar { margin-inline-start: auto; color: rgb(var(--navy)); font-size: 1.375rem; line-height: 1.25; }
.Name__meaning { color: rgb(var(--ink)); font-size: 0.96875rem; line-height: 1.45; }

.Name__sig {
  display: -webkit-box;
  overflow: hidden;
  color: rgb(var(--muted));
  font-size: 0.8125rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.Name__alt { color: rgb(var(--muted)); font-size: 0.75rem; }

.Name__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin-block-start: auto;
  padding-block-start: 8px;
  padding-inline-end: 42px;
  color: rgb(var(--muted));
  font-size: 0.75rem;
  font-weight: 500;
}

.Name__foot .Badge { margin-inline-end: 8px; }
.Name__origin { margin-inline-end: 6px; }

/* Qur'an / Prophet / Companion: the word stays in the HTML, an icon shows it */
.Ico {
  position: relative;
  inline-size: 26px;
  block-size: 26px;
  margin-inline-start: 4px;
  border-radius: 50%;
  background: rgb(var(--blue) / 0.12);
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.Ico::before {
  content: '';
  position: absolute;
  inset: 5px;
  background: rgb(var(--navy));
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}

.Ico[data-tag='quran'] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.6C10.2 5.3 7.7 4.6 4.5 4.6v13.2c3.2 0 5.7.7 7.5 2 1.8-1.3 4.3-2 7.5-2V4.6c-3.2 0-5.7.7-7.5 2Z'/%3E%3Cpath d='M12 6.6v13.2'/%3E%3C/svg%3E"); }
.Ico[data-tag='prophet'] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3.2 14.2 7l4.2-1-1 4.2 3.4 2.2-3.4 2.2 1 4.2-4.2-1L12 20.8 9.8 17l-4.2 1 1-4.2-3.4-2.2 3.4-2.2-1-4.2 4.2 1Z'/%3E%3C/svg%3E"); background: rgb(var(--gold) / 0.22); }
.Ico[data-tag='prophet']::before { background: #8a5a00; }
.Ico[data-tag='companion'] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 19.5c.6-3.3 3-5.2 6-5.2s5.4 1.9 6 5.2'/%3E%3Cpath d='M15.5 4.9a3.2 3.2 0 0 1 0 6.2M17.6 14.6c1.8.6 3 2.3 3.4 4.9'/%3E%3C/svg%3E"); background: rgb(var(--green) / 0.12); }
.Ico[data-tag='companion']::before { background: rgb(var(--green)); }

/* The salawat ligature reads very small at text size */
.saw { font-size: 1.45em; line-height: 0; vertical-align: -0.12em; }

.Badge {
  display: inline-flex;
  align-items: center;
  min-block-size: 22px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.Badge[data-g='boy'] { background: var(--boy-bg); color: var(--boy-fg); }
.Badge[data-g='girl'] { background: var(--girl-bg); color: var(--girl-fg); }
.Badge[data-g='unisex'] { background: var(--both-bg); color: var(--both-fg); }

.Heart {
  position: absolute;
  inset: auto 6px 4px auto;
  z-index: 2;
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 50%;
  color: rgb(var(--muted));
  transition: background-color 200ms, color 200ms;
}

.Heart svg { grid-area: 1 / 1; inline-size: 22px; block-size: 22px; transition: transform 380ms var(--ease), opacity 200ms; }
.Heart__on { color: rgb(var(--red)); fill: currentColor; opacity: 0; transform: scale(0.4); }
.Heart:hover { background: rgb(var(--red) / 0.08); color: rgb(var(--red)); }
.Heart[aria-pressed='true'] .Heart__on { opacity: 1; transform: none; }
.Heart[aria-pressed='true'] .Heart__off { opacity: 0; }

.Letter__more { margin-block-start: 12px; }
.Letter__more[hidden] { display: none; }
.Letter__more svg { inline-size: 18px; block-size: 18px; }

/* Empty state */
.Empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-block-start: 18px;
  padding: clamp(28px, 5vw, 52px) 22px;
  border: 2px dashed rgb(var(--ink) / 0.14);
  border-radius: var(--radius);
  color: rgb(var(--ink-soft));
  text-align: center;
}

.Empty[hidden] { display: none; }
.Empty p { max-inline-size: 46ch; }

.Empty__icon {
  display: grid;
  place-items: center;
  inline-size: 52px;
  block-size: 52px;
  border-radius: 50%;
  background: rgb(var(--blue) / 0.14);
  color: rgb(var(--navy));
}

.Empty__icon svg { inline-size: 24px; block-size: 24px; }
.Empty__title { color: rgb(var(--ink)); font-size: 1.3rem; }
.Empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 6px; }

/* ---------- Names of the Prophets ---------- */

.Prophets { background: rgb(var(--off)); }

.Prophets__list {
  display: grid;
  grid-auto-columns: 132px;
  grid-auto-flow: column;
  gap: 10px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 10px;
  overflow-x: auto;
  list-style: none;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.Prophets__list::-webkit-scrollbar { display: none; }
.Prophet { scroll-snap-align: start; }

@media (min-width: 760px) {
  .Prophets__list { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
}

.Prophet > a,
.Prophet > span {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 1px;
  block-size: 100%;
  padding: 26px 10px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.08);
  color: rgb(var(--ink));
  text-align: center;
  text-decoration: none;
  transition: box-shadow 200ms;
}

.Prophet > a::before,
.Prophet > span::before {
  content: counter(list-item);
  position: absolute;
  inset: 9px auto auto 11px;
  color: rgb(var(--muted));
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

.Prophet > a:hover { box-shadow: inset 0 0 0 1.5px rgb(var(--blue)), 0 12px 26px -20px rgb(var(--navy) / 0.7); }
.Prophet__ar { color: rgb(var(--navy)); font-size: 1.75rem; line-height: 1.45; }
.Prophet__name { font-family: var(--font-h); font-size: 1.0625rem; font-weight: 600; }
.Prophet__en { color: rgb(var(--muted)); font-size: 0.8125rem; }
.Prophet--plain > span { background: rgb(255 255 255 / 0.55); }
.Prophet--plain .Prophet__ar,
.Prophet--plain .Prophet__name { opacity: 0.6; }
.Prophet__note { margin-block-start: 4px; color: rgb(var(--muted)); font-size: 0.6875rem; line-height: 1.3; }

/* ---------- Choosing a name ---------- */

.Choosing__grid { display: grid; gap: 14px; }

@media (min-width: 860px) {
  .Choosing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

.Choosing__lead { display: grid; align-content: start; gap: 8px; padding: clamp(24px, 3vw, 34px); }
.Choosing__lead .Hadith__mark { margin-block-end: 2px; }
.Choosing__kicker { color: rgb(var(--gold)); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.Choosing__lead blockquote p { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); line-height: 1.25; }
.Choosing__links { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 14px; }

.Choosing__links a,
.Choosing__links button {
  display: inline-flex;
  align-items: center;
  min-block-size: 38px;
  padding: 0 14px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.12);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms;
}

.Choosing__links a:hover,
.Choosing__links button:hover { background: rgb(255 255 255 / 0.22); }

.Tip {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-media);
  background: rgb(var(--paper));
}

.Tip__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(var(--navy));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.Tip__kicker svg { inline-size: 20px; block-size: 20px; color: rgb(var(--yellow)); }
.Tip__quote { margin: 0; color: rgb(var(--ink)); font-family: var(--font-h); font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); font-weight: 600; line-height: 1.35; }
.Tip__src { margin-block-start: -4px; color: rgb(var(--muted)); font-size: 0.8125rem; }
.Tip p:not([class]) { color: rgb(var(--ink-soft)); font-size: 0.96875rem; }

.Tip__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  margin: 2px -10px 0;
  padding: 6px 10px;
  border-radius: 8px;
  color: rgb(var(--navy));
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 200ms;
}

.Tip__link:hover { background: rgb(var(--blue) / 0.14); }
.Tip__link svg { inline-size: 18px; block-size: 18px; fill: currentColor; }

/* ---------- Closing Aqiqah options ---------- */

.Give {
  position: relative;
  isolation: isolate;
  padding-block: var(--space);
  background: rgb(var(--navy));
  color: #fff;
  overflow: clip;
}

.Give::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lattice-white) center / 64px;
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent);
  mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent);
}

.Give__head { display: grid; justify-items: center; gap: 12px; max-inline-size: 660px; margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.Give__title { color: #fff; font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.85rem); }
.Give__sub { color: rgb(255 255 255 / 0.78); font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.075rem); }

.Give__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

@media (min-width: 760px) { .Give__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

.Option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 22px;
  border-radius: 22px 10px 22px 10px;
  background: #fff;
  color: rgb(var(--ink));
}

.Option__kicker { color: rgb(var(--navy)); font-size: 0.875rem; font-weight: 700; }
.Option__price { font-family: var(--font-h); font-size: clamp(2.25rem, 2rem + 1vw, 2.75rem); font-weight: 700; line-height: 1; }
.Option__text { margin-block-end: 10px; color: rgb(var(--ink-soft)); font-size: 0.9375rem; }
.Option .Btn { margin-block-start: auto; }
.Option--pack { background: rgb(var(--paper)); box-shadow: inset 0 0 0 2px rgb(var(--gold) / 0.7); }

.Give__call { margin-block-start: 24px; color: rgb(255 255 255 / 0.75); font-size: 0.9375rem; text-align: center; }
.Give__call a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.Give__call a:hover { color: rgb(var(--gold)); }

/* ---------- Sticky Aqiqah bar ---------- */

.Bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 55;
  display: grid;
  justify-items: center;
  padding: 0 10px max(10px, env(safe-area-inset-bottom));
  pointer-events: none;
  transform: translateY(140%);
  transition: transform 600ms var(--ease);
}

.Bar.is-on { transform: none; }

.Bar__btn {
  --btn-bg: rgb(var(--yellow));
  --btn-bg-2: color-mix(in srgb, #fff 22%, rgb(var(--yellow)));
  display: flex;
  align-items: center;
  gap: 12px;
  inline-size: min(100%, 480px);
  min-block-size: 58px;
  padding: 8px 8px 8px 18px;
  border-radius: 16px 8px 16px 8px;
  background: linear-gradient(to right, var(--btn-bg-2) 0%, var(--btn-bg-2) 50%, var(--btn-bg) 50%, var(--btn-bg) 100%);
  background-position: calc(100% + 5px) 50%;
  background-size: calc(200% + 20px) 100%;
  box-shadow: 0 14px 34px -12px rgb(0 0 0 / 0.45);
  color: rgb(var(--ink));
  font-size: 1.0625rem;
  text-decoration: none;
  pointer-events: auto;
  transition: background-position 300ms ease-in-out;
}

.Bar__btn:hover { background-position: -5px 50%; }
.Bar__btn > svg { inline-size: 22px; block-size: 22px; flex: none; }
.Bar__btn > span:first-of-type { flex: 1 1 auto; }
.Bar__btn b { font-weight: 700; }

.Bar__go {
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px -2px rgb(0 0 0 / 0.25);
}

.Bar__go svg { inline-size: 20px; block-size: 20px; fill: rgb(var(--ink)); }

@media (min-width: 900px) {
  .Bar { justify-items: end; padding: 0 24px 24px; }
  .Bar__btn { inline-size: auto; gap: 14px; }
}

/* ---------- Dialogs (name details, Aqiqah, shortlist) ---------- */

dialog {
  max-inline-size: none;
  max-block-size: none;
  padding: 0;
  border: 0;
  background: #fff;
  color: rgb(var(--ink));
}

dialog::backdrop { background: rgb(var(--ink) / 0.55); opacity: 0; transition: opacity 320ms; }
dialog.is-open::backdrop { opacity: 1; }
dialog:focus,
dialog [tabindex='-1']:focus { outline: none; }

/* Phones: both slide up as bottom sheets */
.Detail,
.Sheet {
  inset: auto 0 0;
  inline-size: 100%;
  max-block-size: min(94dvh, 900px);
  margin: 0;
  border-radius: 22px 22px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform 460ms var(--ease);
}

.Detail.is-open,
.Sheet.is-open { transform: none; }

@media (min-width: 760px) {
  .Detail {
    inset: 0;
    inline-size: min(640px, calc(100% - 48px));
    max-block-size: calc(100dvh - 56px);
    margin: auto;
    border-radius: 24px;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: transform 420ms var(--ease), opacity 260ms;
  }

  .Detail.is-open { opacity: 1; transform: none; }

  .Sheet {
    inset: 0 0 0 auto;
    inline-size: min(470px, 100%);
    block-size: 100dvh;
    max-block-size: none;
    margin: 0 0 0 auto;
    border-radius: 22px 0 0 22px;
    transform: translateX(100%);
  }
}

/* Name details */
.Detail__inner { display: grid; gap: 18px; padding: 12px 18px 22px; }

@media (min-width: 760px) { .Detail__inner { padding: 14px 26px 26px; } }

.Detail__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.Detail__step { display: flex; align-items: center; gap: 6px; }
.Detail__pos { min-inline-size: 70px; color: rgb(var(--muted)); font-size: 0.8125rem; font-variant-numeric: tabular-nums; text-align: center; }

.Detail__hero {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 20px 14px 18px;
  border-radius: 20px 8px 20px 8px;
  background: rgb(var(--paper));
  text-align: center;
  overflow: hidden;
}

.Detail__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lattice-gold) center / 56px;
  opacity: 0.22;
  -webkit-mask-image: radial-gradient(closest-side, transparent 40%, #000);
  mask-image: radial-gradient(closest-side, transparent 40%, #000);
}

.Detail__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; color: rgb(var(--muted)); font-size: 0.8125rem; font-weight: 600; }
.Detail__name { color: rgb(var(--ink)); font-size: clamp(2.4rem, 1.9rem + 2.2vw, 3.25rem); font-weight: 700; line-height: 1.05; overflow-wrap: anywhere; }
.Detail__ar { color: rgb(var(--navy)); font-size: clamp(2rem, 1.7rem + 1.4vw, 2.6rem); line-height: 1.45; }
.Detail__ar:empty { display: none; }

.Detail__say {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 4px;
  padding: 6px 14px 6px 10px;
  border-radius: 99px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.08);
  color: rgb(var(--ink-soft));
  font-size: 0.875rem;
}

.Detail__say[hidden] { display: none; }
.Detail__say svg { inline-size: 18px; block-size: 18px; color: rgb(var(--navy)); }
.Detail__say b { margin-inline-start: 4px; color: rgb(var(--ink)); letter-spacing: 0.03em; }

.Detail__facts { display: grid; gap: 14px; margin: 0; }
.Detail__facts > div[hidden] { display: none; }

.Detail__facts dt,
.Detail__similar h3 {
  color: rgb(var(--muted));
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.Detail__facts dd { margin: 4px 0 0; color: rgb(var(--ink-soft)); font-size: 1rem; line-height: 1.55; }
.Detail__facts div:first-child dd { color: rgb(var(--ink)); font-family: var(--font-h); font-size: 1.4rem; font-weight: 600; line-height: 1.3; }

.Detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.Detail__tags:empty { display: none; }

.Detail__tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgb(var(--blue) / 0.1);
  color: rgb(var(--navy));
  font-size: 0.8125rem;
  font-weight: 600;
}

.Detail__tags svg { inline-size: 16px; block-size: 16px; }

.Detail__similar { display: grid; gap: 10px; }
.Detail__similar[hidden] { display: none; }
.Detail__similar ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.Detail__similar button {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-block-size: 40px;
  padding: 7px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / 0.12);
  font-weight: 600;
  transition: box-shadow 200ms, background-color 200ms;
}

.Detail__similar button:hover { background: rgb(var(--off)); box-shadow: inset 0 0 0 1.5px rgb(var(--blue)); }
.Detail__similar small { color: rgb(var(--navy)); font-size: 0.9375rem; font-weight: 400; }

.Detail__actions { display: grid; gap: 10px; }
.Detail__minor { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.Detail__minor .Btn { white-space: nowrap; }
.Detail__minor .Btn[aria-pressed='true'] { --btn-bg: rgb(var(--red) / 0.08); --btn-bg-2: rgb(var(--red) / 0.14); --btn-border: rgb(var(--red) / 0.35); color: rgb(var(--red)); }
.Detail__minor .Btn[aria-pressed='true'] svg { fill: currentColor; }
.Detail__note { color: rgb(var(--muted)); font-size: 0.75rem; line-height: 1.5; }

/* Aqiqah sheet and shortlist */
.Sheet__inner { display: flex; flex-direction: column; min-block-size: 100%; }

.Sheet__head {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px 22px;
  border-block-end: 1px solid rgb(var(--ink) / 0.08);
  background: #fff;
}

.Sheet__kicker { display: flex; align-items: center; gap: 6px; color: rgb(var(--green)); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.Sheet__kicker svg { inline-size: 16px; block-size: 16px; }
.Sheet__title { margin-block-start: 4px; color: rgb(var(--ink)); font-size: 1.65rem; }
.Sheet__body { display: grid; gap: 16px; padding: 18px 22px 26px; }
.Sheet__body[hidden] { display: none; }

.Choice { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }

.Choice__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / 0.14);
  cursor: pointer;
  transition: box-shadow 200ms, background-color 200ms;
}

.Choice__opt:hover { box-shadow: inset 0 0 0 1.5px rgb(var(--ink) / 0.3); }

.Choice__opt input {
  flex: none;
  inline-size: 20px;
  block-size: 20px;
  margin: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgb(var(--ink) / 0.3);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: box-shadow 200ms;
}

.Choice__opt input:checked { box-shadow: inset 0 0 0 6px rgb(var(--blue)); }
.Choice__opt input:focus-visible { outline: 2px solid rgb(var(--red)); outline-offset: 3px; }
.Choice__opt:has(input:checked) { background: rgb(var(--blue) / 0.08); box-shadow: inset 0 0 0 2px rgb(var(--blue)); }
.Choice__text { display: grid; flex: 1 1 auto; gap: 2px; }
.Choice__text b { font-size: 1rem; }
.Choice__text small { color: rgb(var(--muted)); font-size: 0.8125rem; line-height: 1.4; }
.Choice__price { font-family: var(--font-h); font-size: 1.125rem; font-weight: 700; white-space: nowrap; }
.Sheet.has-error [data-aq-gender-set] .Choice__opt { box-shadow: inset 0 0 0 1.5px rgb(var(--red) / 0.65); }

.Sheet__summary { padding: 12px 14px; border-radius: 12px; background: rgb(var(--paper)); color: rgb(var(--ink-soft)); font-size: 0.875rem; line-height: 1.5; }
.Sheet__summary b { color: rgb(var(--ink)); }
.Sheet__error { color: rgb(var(--red)); font-size: 0.875rem; font-weight: 600; }
.Sheet__error[hidden] { display: none; }
.Sheet__demo { color: rgb(var(--muted)); font-size: 0.8125rem; text-align: center; }
.Done[hidden] { display: none; }
.Done { padding: 34px 24px 30px; }

.Saved { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.Saved:empty { display: none; }

.Saved li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.1);
}

.Saved__name { display: grid; flex: 1 1 auto; min-inline-size: 0; padding-block: 6px; text-align: start; }
.Saved__name b { font-family: var(--font-h); font-size: 1.125rem; }
.Saved__name span { overflow: hidden; color: rgb(var(--muted)); font-size: 0.8125rem; text-overflow: ellipsis; white-space: nowrap; }
.Saved__ar { color: rgb(var(--navy)); font-size: 1.25rem; }
.Saved__empty { display: grid; justify-items: center; gap: 8px; padding: 28px 12px; color: rgb(var(--muted)); text-align: center; }
.Saved__empty[hidden] { display: none; }
.Saved__empty svg { display: inline; inline-size: 18px; block-size: 18px; margin-block-end: -3px; color: rgb(var(--red)); }
.Saved__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.Saved__actions[hidden] { display: none; }
.Saved__clear { margin-inline-start: auto; padding: 8px; border-radius: 8px; color: rgb(var(--muted)); font-size: 0.875rem; font-weight: 600; }
.Saved__clear:hover { background: rgb(var(--off)); color: rgb(var(--ink)); }

/* Toast */
.Toast {
  position: fixed;
  inset: auto auto 92px 50%;
  z-index: 200;
  max-inline-size: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 12px;
  background: rgb(var(--ink));
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 260ms, transform 360ms var(--ease);
}

.Toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.Toast:empty { display: none; }

/* ---------- Without JavaScript ---------- */

.no-js .Filters,
.no-js .Ideas__wrap,
.no-js .Results__bar,
.no-js .AZ__jump,
.no-js .AZ__saved,
.no-js .AqCard__body .Btn,
.no-js .Bar { display: none; }

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