/* The 99 Names of Allah: gallery, name pages, learning hub and practice modes.
   Colours come from the site tokens (layout.css), so light and dark themes follow automatically. */

.anr {
  --anr-gold: #d9b45f;
  --anr-gold-deep: #a47a2c;
  --anr-gold-soft: rgba(217, 180, 95, .16);
  --anr-night: #0b3324;
  --anr-night-2: #10503a;
  --anr-card-bg: var(--ip-surface);
  --anr-ar-font: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;
  color: var(--ip-ink);
  padding-bottom: var(--ip-space-9);
}

/* English content on Arabic and Urdu pages keeps the Latin interface font; specific classes below still win. */
:where(html[lang="ar"], html[lang="ur"]) .anr [dir="auto"] { font-family: var(--ip-font-sans); }

:root[data-theme="dark"] .anr { --anr-card-bg: var(--ip-surface); }

.anr [lang="ar"] { font-family: var(--anr-ar-font); }
.anr .anr-flip{ display: inline-block; }
[dir="rtl"] .anr .anr-flip{ transform: scaleX(-1); }
.anr .anr-small{ font-size: var(--ip-text-sm); }
.anr .anr-muted{ color: var(--ip-muted); }

/* ---------- Eight-pointed star badge ---------- */
.anr .anr-star{
  --size: 2.6rem;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  flex: none;
  color: var(--anr-gold-deep);
  font: 600 calc(var(--size) * .34)/1 var(--ip-font-sans);
}
.anr .anr-star::before,
.anr .anr-star::after{
  content: "";
  position: absolute;
  inset: 14%;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: var(--anr-gold-soft);
}
.anr .anr-star::after{ transform: rotate(45deg); }
.anr .anr-star > span{ position: relative; z-index: 1; }
.anr .anr-star--sm{ --size: 2rem; }
:root[data-theme="dark"] .anr .anr-star{ color: var(--anr-gold); }

/* ---------- Buttons and links ---------- */
.anr .anr-btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .6rem 1.15rem;
  border-radius: var(--ip-radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--ip-text-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ip-ease), background-color .2s, box-shadow .2s, color .2s;
}
.anr .anr-btn small{ font-weight: 500; opacity: .8; }
.anr .anr-btn:hover{ transform: translateY(-1px); }
.anr .anr-btn:focus-visible, .anr .anr-choice:focus-visible, .anr .anr-match__item:focus-visible, .anr .anr-flash:focus-visible,
.anr .anr-card__link:focus-visible, .anr .anr-save:focus-visible, .anr .anr-listen:focus-visible, .anr .anr-rate:focus-visible{
  outline: 3px solid var(--ip-focus);
  outline-offset: 2px;
}
.anr .anr-btn--gold{ background: linear-gradient(135deg, #e8c776, #c39537); color: #2b1d02; box-shadow: 0 8px 22px -10px rgba(195, 149, 55, .8); }
.anr .anr-btn--gold:hover{ color: #2b1d02; box-shadow: 0 12px 26px -10px rgba(195, 149, 55, .9); }
.anr .anr-btn--glass{ background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.anr .anr-btn--glass:hover{ background: rgba(255, 255, 255, .18); color: #fff; }
.anr .anr-btn--glass.is-on{ background: rgba(217, 180, 95, .25); border-color: var(--anr-gold); }
.anr .anr-btn--light{ background: #fff; color: #10503a; }
.anr .anr-btn--light:hover{ color: #0b3324; }
.anr .anr-btn--ghost-light{ background: transparent; color: #f4ead2; border-color: rgba(244, 234, 210, .35); }
.anr .anr-btn--soft{ background: var(--ip-primary-soft); color: var(--ip-primary); border-color: transparent; }
.anr .anr-btn--soft:hover{ color: var(--ip-primary-hover); }
.anr .anr-link{ color: var(--ip-link); font-weight: 600; text-decoration: none; white-space: nowrap; }
.anr .anr-link:hover{ text-decoration: underline; }

.anr .anr-crumbs{ display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: var(--ip-text-sm); margin-bottom: var(--ip-space-4); color: rgba(244, 234, 210, .78); }
.anr .anr-crumbs a{ color: rgba(244, 234, 210, .92); text-decoration: none; }
.anr .anr-crumbs a:hover{ color: #fff; text-decoration: underline; }
.anr .anr-crumbs i{ font-size: .7rem; opacity: .7; }

.anr .anr-kicker{ display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 var(--ip-space-3); font-size: var(--ip-text-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--anr-gold); }
.anr .anr-kicker .anr-star{ color: var(--anr-gold); }
.anr .anr-chip{ display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: var(--ip-text-xs); letter-spacing: 0; text-transform: none; }
.anr .anr-chip--gold{ background: rgba(217, 180, 95, .2); color: #f6e3b3; border: 1px solid rgba(217, 180, 95, .45); }

/* ---------- Hero (gallery) ---------- */
.anr .anr-hero{
  position: relative;
  overflow: hidden;
  color: #f4ead2;
  background:
    var(--ip-pattern-light),
    radial-gradient(1100px 520px at 85% -10%, rgba(217, 180, 95, .22), transparent 60%),
    linear-gradient(160deg, var(--anr-night) 0%, var(--anr-night-2) 55%, #1a6b55 100%);
  padding: var(--ip-space-8) 0 var(--ip-space-9);
}
.anr .anr-hero__glow{ position: absolute; inset: auto -10% -40% auto; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(217, 180, 95, .16), transparent); pointer-events: none; }
.anr .anr-hero__inner{ position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: var(--ip-space-8); align-items: center; }
.anr .anr-hero__title{ font-family: var(--ip-font-display); font-weight: 600; font-size: var(--ip-text-4xl); line-height: 1.08; color: #fff; margin: 0 0 var(--ip-space-4); }
.anr .anr-hero__lead{ font-size: var(--ip-text-lg); line-height: 1.65; color: rgba(244, 234, 210, .88); max-width: 40rem; margin: 0 0 var(--ip-space-5); }
.anr .anr-hero__actions{ display: flex; flex-wrap: wrap; gap: var(--ip-space-3); margin-bottom: var(--ip-space-6); }
.anr .anr-hero__verse{ margin: 0; padding: var(--ip-space-4) var(--ip-space-5); border-inline-start: 3px solid var(--anr-gold); background: rgba(0, 0, 0, .14); border-radius: var(--ip-radius); max-width: 42rem; }
.anr .anr-hero__verse blockquote[lang]{ margin: 0 0 .5rem; font-family: "Amiri Quran", "Amiri", serif; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 2.1; color: #fff; text-align: right; }
.anr .anr-hero__verse figcaption{ display: flex; flex-wrap: wrap; gap: .35rem .75rem; font-size: var(--ip-text-sm); color: rgba(244, 234, 210, .82); }
.anr .anr-hero__verse figcaption a{ color: var(--anr-gold); }

.anr .anr-today{
  position: relative;
  padding: var(--ip-space-6);
  border-radius: var(--ip-radius-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(217, 180, 95, .38);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6), inset 0 0 0 6px rgba(217, 180, 95, .06);
  text-align: center;
}
.anr .anr-today__label{ display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 var(--ip-space-4); font-weight: 600; font-size: var(--ip-text-sm); color: var(--anr-gold); letter-spacing: .06em; text-transform: uppercase; }
.anr .anr-today__frame{ position: relative; padding: var(--ip-space-6) var(--ip-space-4) var(--ip-space-5); border-radius: var(--ip-radius-lg); background: radial-gradient(circle at 50% 35%, rgba(217, 180, 95, .18), transparent 65%); }
.anr .anr-today__num{ --size: 2.8rem; color: var(--anr-gold); position: absolute; top: .4rem; inset-inline-start: .4rem; }
.anr .anr-today__ar[lang]{ margin: 0; font-size: clamp(3.2rem, 2.2rem + 4vw, 5.2rem); line-height: 1.7; color: #fff; text-shadow: 0 6px 30px rgba(217, 180, 95, .35); }
.anr .anr-today__tr{ margin: 0; font-family: var(--ip-font-display); font-size: var(--ip-text-2xl); color: #fff; }
.anr .anr-today__mean{ margin: .25rem 0 0; color: var(--anr-gold); font-weight: 600; }
.anr .anr-today__short{ margin: var(--ip-space-3) auto 0; max-width: 26rem; color: rgba(244, 234, 210, .82); font-size: var(--ip-text-sm); line-height: 1.6; }
.anr .anr-today__actions{ display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ip-space-2); margin-top: var(--ip-space-4); }

/* ---------- Sections ---------- */
.anr .anr-section{ padding-top: var(--ip-space-8); }
.anr .anr-section__head{ display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--ip-space-3); margin-bottom: var(--ip-space-5); }
.anr .anr-section__title{ font-family: var(--ip-font-display); font-weight: 600; font-size: var(--ip-text-2xl); margin: 0 0 .35rem; color: var(--ip-ink); }
.anr .anr-section__lead{ margin: 0; color: var(--ip-muted); max-width: 46rem; line-height: 1.6; }

/* ---------- Journeys ---------- */
.anr .anr-journeys{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ip-space-3); }
.anr .anr-journey a{
  display: flex; flex-direction: column; gap: .45rem; height: 100%;
  padding: var(--ip-space-4); border-radius: var(--ip-radius-lg);
  background: var(--anr-card-bg); border: 1px solid var(--ip-line);
  color: var(--ip-ink); text-decoration: none; box-shadow: var(--ip-shadow-sm);
  transition: transform .25s var(--ip-ease), box-shadow .25s, border-color .25s;
}
.anr .anr-journey a:hover{ transform: translateY(-3px); box-shadow: var(--ip-shadow-md); border-color: var(--anr-gold); }
.anr .anr-journey__icon{ display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--ip-tile-gold-bg); color: var(--ip-tile-gold-fg); font-size: 1.2rem; }
.anr .anr-journey__title{ font-weight: 700; line-height: 1.3; }
.anr .anr-journey__meta, .anr .anr-journey__done{ font-size: var(--ip-text-xs); color: var(--ip-muted); }
.anr .anr-journey__lead{ font-size: var(--ip-text-sm); color: var(--ip-muted); line-height: 1.5; flex: 1; }
.anr .anr-journey.is-complete .anr-journey__icon{ background: var(--ip-tile-emerald-bg); color: var(--ip-tile-emerald-fg); }
.anr .anr-journeys--large{ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.anr .anr-progress{ display: block; height: 6px; border-radius: 999px; background: var(--ip-surface-3); overflow: hidden; }
.anr .anr-progress > span{ display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ip-primary), var(--anr-gold)); transition: width .6s var(--ip-ease); }
.anr .anr-progress--wide{ margin-bottom: var(--ip-space-2); }

/* ---------- Gallery ---------- */
.anr .anr-toolbar{ display: flex; flex-wrap: wrap; align-items: center; gap: var(--ip-space-3); margin-bottom: var(--ip-space-5); }
.anr .anr-search{ position: relative; flex: 1 1 260px; max-width: 420px; margin: 0; }
.anr .anr-search i{ position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); color: var(--ip-muted); }
.anr .anr-search input{ width: 100%; min-height: 46px; padding: .6rem 1rem; padding-inline-start: 2.6rem; border-radius: 999px; border: 1px solid var(--ip-line-strong); background: var(--ip-surface); color: var(--ip-ink); }
.anr .anr-search input:focus{ outline: 3px solid var(--ip-focus); outline-offset: 1px; border-color: transparent; }
.anr .anr-filter{ display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .3rem; border-radius: 999px; background: var(--ip-surface-2); border: 1px solid var(--ip-line); }
.anr .anr-filter button{ display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: .35rem .9rem; border: 0; border-radius: 999px; background: transparent; color: var(--ip-ink-2); font-weight: 600; font-size: var(--ip-text-sm); cursor: pointer; }
.anr .anr-filter button.is-active{ background: var(--ip-surface); color: var(--ip-primary); box-shadow: var(--ip-shadow-sm); }
.anr .anr-count{ margin: 0; margin-inline-start: auto; color: var(--ip-muted); font-size: var(--ip-text-sm); }
.anr .anr-quiz-link{ display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.anr .anr-flip-hint{ display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: calc(var(--ip-space-3) * -1) 0 var(--ip-space-4); color: var(--ip-muted); font-size: var(--ip-text-sm); }
.anr .anr-flip-hint [data-anr-flip-score]{ margin-inline-start: auto; font-weight: 700; color: var(--ip-primary); }

/* Flip & test: compact tiles with the Arabic and the transliteration; a tap turns one over to its meaning. */
.anr .anr-open{ display: none; }
.anr .anr-grid.anr-grid--flip{ grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--ip-space-3); perspective: 1200px; }
.anr .anr-grid.anr-grid--flip .anr-card{ min-height: 212px; cursor: pointer; transform-style: preserve-3d; transition: transform .17s ease-in, box-shadow .3s, border-color .3s; }
.anr .anr-grid.anr-grid--flip .anr-card:hover{ transform: translateY(-3px); }
.anr .anr-grid.anr-grid--flip .anr-card.is-turning{ transform: rotateY(90deg); }
.anr .anr-grid.anr-grid--flip .anr-card.is-landing{ animation: anr-land .2s ease-out; }
@keyframes anr-land{ from{ transform: rotateY(-90deg); } to{ transform: none; } }
.anr .anr-grid.anr-grid--flip .anr-card__link{ justify-content: center; padding: var(--ip-space-5) var(--ip-space-3) var(--ip-space-2); }
.anr .anr-grid.anr-grid--flip .anr-card__ar[lang]{ font-size: 2.5rem; margin-top: .25rem; }
.anr .anr-grid.anr-grid--flip .anr-card__mean, .anr .anr-grid.anr-grid--flip .anr-card__short{ display: none; }
.anr .anr-grid.anr-grid--flip .anr-card__foot{ padding-inline: var(--ip-space-2); }
.anr .anr-grid.anr-grid--flip .anr-learned{ display: none; }
.anr .anr-grid.anr-grid--flip .anr-open{ display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ip-line); color: var(--ip-ink-2); background: var(--ip-surface); }
.anr .anr-grid.anr-grid--flip .anr-open:hover{ color: var(--ip-primary); background: var(--ip-primary-soft); }
.anr .anr-grid.anr-grid--flip .anr-card.is-flipped{
  background: var(--ip-pattern-light), radial-gradient(120% 80% at 50% 0%, rgba(217, 180, 95, .3), transparent 70%), linear-gradient(160deg, var(--anr-night), var(--anr-night-2));
  border-color: rgba(217, 180, 95, .55);
  color: #f4ead2;
}
.anr .anr-grid.anr-grid--flip .anr-card.is-flipped .anr-card__ar{ display: none; }
.anr .anr-grid.anr-grid--flip .anr-card.is-flipped .anr-card__link{ justify-content: flex-start; padding-top: 2.9rem; }
.anr .anr-grid.anr-grid--flip .anr-card.is-flipped .anr-card__tr{ color: rgba(244, 234, 210, .85); font-size: .95rem; }
.anr .anr-grid.anr-grid--flip .anr-card.is-flipped .anr-card__mean{ display: block; margin-top: .35rem; font-size: 1.15rem; line-height: 1.3; color: var(--anr-gold); }
.anr .anr-grid.anr-grid--flip .anr-card.is-flipped .anr-card__short{ display: -webkit-box; -webkit-line-clamp: 4; color: rgba(244, 234, 210, .82); font-size: .82rem; }
.anr .anr-grid.anr-grid--flip .anr-card.is-flipped .anr-card__num{ color: var(--anr-gold); }
.anr .anr-grid.anr-grid--flip .anr-card.is-flipped .anr-listen, .anr .anr-grid.anr-grid--flip .anr-card.is-flipped .anr-save, .anr .anr-grid.anr-grid--flip .anr-card.is-flipped .anr-open{ background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }

/* The learner's progress in the gallery hero. */
.anr a.anr-overall--hero{ display: inline-flex; margin: 0 0 var(--ip-space-5); padding-inline-end: var(--ip-space-4); color: inherit; text-decoration: none; transition: background-color .2s, transform .2s var(--ip-ease); }
.anr a.anr-overall--hero:hover{ background: rgba(0, 0, 0, .28); transform: translateY(-1px); color: inherit; }
.anr a.anr-overall--hero:focus-visible{ outline: 3px solid var(--anr-gold); outline-offset: 3px; }
.anr .anr-overall__body{ display: grid; gap: .1rem; }
.anr .anr-overall--hero .anr-overall__title, .anr .anr-overall--hero .anr-overall__text{ display: block; }
.anr .anr-overall__go{ display: inline-flex; align-items: center; gap: .35rem; margin-inline-start: var(--ip-space-3); padding: .45rem .9rem; border-radius: 999px; background: var(--anr-gold); color: #241a05; font-weight: 700; font-size: var(--ip-text-sm); }
@media (max-width: 575.98px){ .anr .anr-overall__go{ display: none; } .anr .anr-grid.anr-grid--flip{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce){ .anr .anr-grid.anr-grid--flip .anr-card, .anr a.anr-overall--hero{ transition: none; } .anr .anr-grid.anr-grid--flip .anr-card.is-landing{ animation: none; } }

.anr .anr-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--ip-space-4); }
.anr .anr-card{
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--ip-radius-lg);
  background:
    radial-gradient(120% 70% at 50% 0%, var(--anr-gold-soft), transparent 70%),
    var(--anr-card-bg);
  border: 1px solid var(--ip-line);
  box-shadow: var(--ip-shadow-sm);
  transition: transform .3s var(--ip-ease), box-shadow .3s, border-color .3s;
}
.anr .anr-card::before{ content: ""; position: absolute; inset: 6px; border-radius: calc(var(--ip-radius-lg) - 5px); border: 1px solid transparent; pointer-events: none; transition: border-color .3s; }
.anr .anr-card:hover{ transform: translateY(-4px); box-shadow: var(--ip-shadow-lg); border-color: rgba(217, 180, 95, .6); }
.anr .anr-card:hover::before{ border-color: rgba(217, 180, 95, .35); }
.anr .anr-card__link{ display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: var(--ip-space-5) var(--ip-space-4) var(--ip-space-2); color: inherit; text-decoration: none; text-align: center; flex: 1; border-radius: inherit; }
.anr .anr-card__num{ position: absolute; top: .65rem; inset-inline-start: .65rem; }
.anr .anr-card__ar[lang]{ display: block; margin: .5rem 0 .15rem; font-size: 2.9rem; line-height: 1.75; color: var(--ip-tile-lapis-fg); font-weight: 700; }
:root[data-theme="dark"] .anr .anr-card__ar[lang]{ color: #f1dfb0; }
.anr .anr-card__tr{ font-family: var(--ip-font-display); font-size: 1.15rem; font-weight: 600; color: var(--ip-ink); }
.anr .anr-card__mean{ font-size: var(--ip-text-sm); font-weight: 600; color: var(--anr-gold-deep); }
:root[data-theme="dark"] .anr .anr-card__mean{ color: var(--anr-gold); }
.anr .anr-card__short{ margin-top: .5rem; font-size: var(--ip-text-sm); line-height: 1.5; color: var(--ip-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.anr .anr-card__foot{ display: flex; align-items: center; gap: .35rem; padding: 0 var(--ip-space-3) var(--ip-space-3); min-height: 44px; }
.anr .anr-listen, .anr .anr-save{ display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ip-line); background: var(--ip-surface); color: var(--ip-ink-2); cursor: pointer; transition: background-color .2s, color .2s; }
.anr .anr-listen:hover, .anr .anr-save:hover{ background: var(--ip-primary-soft); color: var(--ip-primary); }
.anr .anr-save{ margin-inline-start: auto; }
.anr .anr-save.is-on{ color: var(--anr-gold-deep); border-color: var(--anr-gold); background: var(--anr-gold-soft); }
.anr .anr-learned{ display: inline-flex; align-items: center; gap: .25rem; font-size: var(--ip-text-xs); font-weight: 600; color: var(--ip-tile-emerald-fg); }
.anr .anr-reveal{ opacity: 0; transform: translateY(14px); }
.anr .anr-reveal.is-in{ opacity: 1; transform: none; transition: opacity .6s var(--ip-ease), transform .6s var(--ip-ease); }
.anr .anr-empty{ padding: var(--ip-space-8) var(--ip-space-4); text-align: center; color: var(--ip-muted); border: 1px dashed var(--ip-line-strong); border-radius: var(--ip-radius-lg); }
.anr .anr-empty i{ font-size: 2rem; color: var(--anr-gold); }
.anr .anr-voice-note, .anr .anr-note{ display: flex; gap: .5rem; align-items: baseline; margin: var(--ip-space-4) 0 0; font-size: var(--ip-text-sm); color: var(--ip-muted); }
.anr .anr-voice-note--hero{ color: rgba(244, 234, 210, .78); }
.anr .anr-voice-note--clips{ margin: 0 0 var(--ip-space-4); padding: .6rem .9rem; border-radius: var(--ip-radius); background: var(--ip-tile-sky-bg); color: var(--ip-tile-sky-fg); }

/* ---------- Where the list comes from ---------- */
.anr .anr-source{ margin-top: var(--ip-space-9); padding: var(--ip-space-8) 0; background: var(--ip-pattern), var(--ip-surface-2); border-top: 1px solid var(--ip-line); border-bottom: 1px solid var(--ip-line); }
.anr .anr-source__inner{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--ip-space-7); align-items: start; }
.anr .anr-source__text p{ line-height: 1.75; color: var(--ip-ink-2); }
.anr .anr-source__label{ font-size: var(--ip-text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--anr-gold-deep); margin: 0 0 .25rem; }
:root[data-theme="dark"] .anr .anr-source__label{ color: var(--anr-gold); }
.anr .anr-details{ margin-top: .5rem; border: 1px solid var(--ip-line); border-radius: var(--ip-radius); background: var(--ip-surface); padding: .25rem 1rem; }
.anr .anr-details summary{ cursor: pointer; padding: .6rem 0; font-weight: 600; color: var(--ip-link); min-height: 44px; display: flex; align-items: center; }

/* ---------- A name's page ---------- */
.anr .anr-name-hero{
  position: relative;
  color: #f4ead2;
  background:
    var(--ip-pattern-light),
    radial-gradient(900px 480px at 20% 0%, rgba(217, 180, 95, .22), transparent 60%),
    linear-gradient(160deg, var(--anr-night) 0%, var(--anr-night-2) 70%);
  padding: var(--ip-space-7) 0 var(--ip-space-8);
}
.anr .anr-name-hero__grid{ display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: var(--ip-space-7); align-items: center; }
.anr .anr-medallion{ position: relative; aspect-ratio: 1; max-width: 360px; width: 100%; }
.anr .anr-medallion__art{ width: 100%; height: 100%; animation: anr-turn 120s linear infinite; }
.anr .anr-medallion__num{ position: absolute; inset: 0; display: grid; place-items: center; }
.anr .anr-medallion__num .anr-star{ --size: 5.5rem; color: var(--anr-gold); font-family: var(--ip-font-display); }
@keyframes anr-turn { to { transform: rotate(360deg); } }
.anr .anr-name-hero__ar[lang]{ margin: .2em 0 0; font-family: var(--anr-ar-font); font-weight: 700; font-size: clamp(3.4rem, 2.4rem + 4.5vw, 6.2rem); line-height: 1.55; color: #fff; text-shadow: 0 10px 40px rgba(217, 180, 95, .35); text-align: left; }
[dir="rtl"] .anr .anr-name-hero__ar[lang]{ text-align: right; }
.anr .anr-name-hero__tr{ margin: 0; font-family: var(--ip-font-display); font-size: var(--ip-text-3xl); color: #fff; }
.anr .anr-name-hero__mean{ margin: .2rem 0 var(--ip-space-5); font-size: var(--ip-text-xl); font-weight: 600; color: var(--anr-gold); }
.anr .anr-name-hero__actions{ display: flex; flex-wrap: wrap; gap: var(--ip-space-2); }

.anr .anr-detail{ display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--ip-space-7); padding-top: var(--ip-space-6); align-items: start; }
.anr .anr-facts{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ip-space-3); margin-top: calc(-1 * var(--ip-space-8)); position: relative; z-index: 2; }
.anr .anr-fact{ padding: var(--ip-space-4); border-radius: var(--ip-radius-lg); background: var(--ip-surface); border: 1px solid var(--ip-line); box-shadow: var(--ip-shadow-md); }
.anr .anr-fact__label{ display: block; font-size: var(--ip-text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ip-muted); margin-bottom: .3rem; }
.anr .anr-fact__value{ font-weight: 600; line-height: 1.4; }
.anr .anr-root[lang]{ font-size: 1.5rem; letter-spacing: .25em; color: var(--anr-gold-deep); }
:root[data-theme="dark"] .anr .anr-root[lang]{ color: var(--anr-gold); }
.anr .anr-block{ margin-top: var(--ip-space-6); padding: var(--ip-space-6); border-radius: var(--ip-radius-xl); background: var(--ip-surface); border: 1px solid var(--ip-line); box-shadow: var(--ip-shadow-sm); }
.anr .anr-block__head{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: var(--ip-space-3); }
.anr .anr-block__head h2{ margin: 0; font-family: var(--ip-font-display); font-size: var(--ip-text-xl); font-weight: 600; }
.anr .anr-lede{ font-size: var(--ip-text-lg); line-height: 1.6; font-weight: 500; color: var(--ip-ink); }
.anr .anr-prose p{ font-size: 1.05rem; line-height: 1.8; color: var(--ip-ink-2); }
.anr .anr-prose .anr-reflection{ position: relative; margin-top: var(--ip-space-5); padding: var(--ip-space-4) var(--ip-space-5); border-radius: var(--ip-radius); border-inline-start: 4px solid var(--anr-gold); background: var(--anr-gold-soft); color: var(--ip-ink); font-style: italic; }
.anr .anr-check .anr-choices{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ip-space-2); }
.anr .anr-check__more{ display: flex; flex-wrap: wrap; gap: var(--ip-space-2); margin-top: var(--ip-space-4); }

.anr .anr-detail__side{ position: sticky; top: calc(var(--ip-header-h) + 1rem); display: grid; gap: var(--ip-space-4); margin-top: var(--ip-space-6); }
.anr .anr-panel{ padding: var(--ip-space-5); border-radius: var(--ip-radius-lg); background: var(--ip-surface); border: 1px solid var(--ip-line); }
.anr .anr-panel__title{ display: flex; align-items: center; gap: .5rem; font-size: var(--ip-text-base); font-weight: 700; margin: 0 0 .5rem; }
.anr .anr-panel__status{ font-weight: 600; color: var(--ip-primary); margin: 0 0 .25rem; }
.anr .anr-panel--source p{ color: var(--ip-muted); line-height: 1.6; margin: 0; }
.anr .anr-related{ list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.anr .anr-related a{ display: flex; align-items: center; gap: .75rem; padding: .5rem .65rem; border-radius: var(--ip-radius); text-decoration: none; color: var(--ip-ink); transition: background-color .2s; }
.anr .anr-related a:hover{ background: var(--ip-surface-2); }
.anr .anr-related__ar[lang]{ font-size: 1.5rem; line-height: 1.6; min-width: 5.5rem; text-align: center; color: var(--ip-tile-lapis-fg); font-weight: 700; }
:root[data-theme="dark"] .anr .anr-related__ar[lang]{ color: #f1dfb0; }
.anr .anr-related__text{ display: flex; flex-direction: column; line-height: 1.3; }
.anr .anr-related__text small{ color: var(--ip-muted); }

.anr .anr-pager{ display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--ip-space-3); align-items: center; margin-top: var(--ip-space-8); }
.anr .anr-pager__link{ display: flex; align-items: center; gap: .75rem; padding: var(--ip-space-3) var(--ip-space-4); border-radius: var(--ip-radius-lg); border: 1px solid var(--ip-line); background: var(--ip-surface); color: var(--ip-ink); text-decoration: none; }
.anr .anr-pager__link:hover{ border-color: var(--anr-gold); }
.anr .anr-pager__link span{ display: flex; flex-direction: column; line-height: 1.3; }
.anr .anr-pager__link small{ color: var(--ip-muted); }
.anr .anr-pager__link--next{ justify-content: flex-end; text-align: end; }
.anr .anr-pager__ar[lang]{ font-size: 1.4rem; color: var(--ip-tile-lapis-fg); font-weight: 700; }
:root[data-theme="dark"] .anr .anr-pager__ar[lang]{ color: #f1dfb0; }
.anr .anr-pager__all{ display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ip-link); text-decoration: none; }

/* ---------- Learning hub, journeys and practice ---------- */
.anr .anr-page-hero{
  color: #f4ead2;
  background: var(--ip-pattern-light), linear-gradient(160deg, var(--anr-night), var(--anr-night-2));
  padding: var(--ip-space-6) 0 var(--ip-space-7);
}
.anr .anr-page-hero--tight{ padding-bottom: var(--ip-space-5); }
.anr .anr-page-hero__title{ font-family: var(--ip-font-display); font-weight: 600; font-size: var(--ip-text-3xl); color: #fff; margin: 0 0 .5rem; }
.anr .anr-page-hero__lead{ max-width: 44rem; color: rgba(244, 234, 210, .86); line-height: 1.6; margin: 0 0 var(--ip-space-4); }
.anr .anr-overall{ display: inline-flex; align-items: center; gap: var(--ip-space-4); margin: var(--ip-space-2) 0 var(--ip-space-4); padding: var(--ip-space-3) var(--ip-space-5) var(--ip-space-3) var(--ip-space-3); border-radius: 999px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(217, 180, 95, .3); }
.anr .anr-overall p{ margin: 0; }
.anr .anr-overall__title{ font-weight: 700; color: #fff; }
.anr .anr-overall__text{ font-size: var(--ip-text-sm); color: rgba(244, 234, 210, .8); }
.anr .anr-ring{ position: relative; width: 64px; height: 64px; flex: none; }
.anr .anr-ring svg{ width: 100%; height: 100%; transform: rotate(-90deg); }
.anr .anr-ring circle{ fill: none; stroke-width: 10; }
.anr .anr-ring__track{ stroke: rgba(255, 255, 255, .14); }
.anr .anr-ring__value{ stroke: var(--anr-gold); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset .8s var(--ip-ease); }
.anr .anr-ring span{ position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: #fff; }
.anr .anr-modes{ display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--ip-space-3); margin-top: var(--ip-space-4); }
.anr .anr-mode{ display: flex; flex-direction: column; gap: .35rem; padding: var(--ip-space-5); border-radius: var(--ip-radius-lg); border: 1px solid var(--ip-line); background: var(--ip-surface); color: var(--ip-ink); text-decoration: none; box-shadow: var(--ip-shadow-sm); transition: transform .25s var(--ip-ease), box-shadow .25s, border-color .25s; }
.anr .anr-mode:hover{ transform: translateY(-3px); box-shadow: var(--ip-shadow-md); border-color: var(--anr-gold); color: var(--ip-ink); }
.anr .anr-mode__icon{ display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 14px; background: var(--ip-tile-emerald-bg); color: var(--ip-tile-emerald-fg); font-size: 1.3rem; margin-bottom: .35rem; }
.anr .anr-mode__title{ font-weight: 700; }
.anr .anr-mode__lead{ font-size: var(--ip-text-sm); color: var(--ip-muted); line-height: 1.5; }
.anr .anr-intro{ display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--ip-space-7); }
.anr .anr-intro__text p{ line-height: 1.75; color: var(--ip-ink-2); }
.anr .anr-intro__sub{ font-size: var(--ip-text-lg); font-weight: 700; margin: var(--ip-space-5) 0 var(--ip-space-3); }
.anr .anr-steps{ padding-inline-start: 1.25rem; display: grid; gap: .6rem; line-height: 1.6; color: var(--ip-ink-2); }
.anr .anr-list{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--ip-space-2); }
.anr .anr-list__item a{ display: flex; align-items: center; gap: .75rem; padding: .65rem .85rem; border-radius: var(--ip-radius); border: 1px solid var(--ip-line); background: var(--ip-surface); color: var(--ip-ink); text-decoration: none; }
.anr .anr-list__item a:hover{ border-color: var(--anr-gold); }
.anr .anr-list__text{ display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.anr .anr-list__text small{ color: var(--ip-muted); }
.anr .anr-list__ar[lang]{ font-size: 1.55rem; line-height: 1.6; color: var(--ip-tile-lapis-fg); font-weight: 700; }
:root[data-theme="dark"] .anr .anr-list__ar[lang]{ color: #f1dfb0; }
.anr .anr-list__state{ color: var(--ip-tile-emerald-fg); font-size: 1.2rem; }

.anr .anr-options{ display: flex; flex-wrap: wrap; gap: var(--ip-space-3); align-items: flex-end; }
.anr .anr-option{ display: flex; flex-direction: column; gap: .3rem; font-size: var(--ip-text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: rgba(244, 234, 210, .8); }
.anr .anr-option select{ min-width: 190px; min-height: 40px; }

.anr .anr-practice{ max-width: 860px; padding-top: var(--ip-space-6); }
.anr .anr-loading{ display: flex; align-items: center; gap: .5rem; color: var(--ip-muted); }
/* The placeholder holds about the room the exercise will take, so the links under it do not jump when it appears. */
.anr .anr-practice .anr-loading{ justify-content: center; min-height: 400px; }
.anr .anr-practice--match .anr-loading, .anr .anr-practice--order .anr-loading{ min-height: 520px; }
.anr .anr-error{ color: #b03f59; }
.anr .anr-counter{ margin: 0 0 var(--ip-space-3); color: var(--ip-muted); font-size: var(--ip-text-sm); }
.anr .anr-practice__more{ display: flex; flex-wrap: wrap; gap: var(--ip-space-2); margin-top: var(--ip-space-7); padding-top: var(--ip-space-5); border-top: 1px solid var(--ip-line); }

.anr .anr-flash{ position: relative; min-height: 340px; perspective: 1400px; cursor: pointer; border-radius: var(--ip-radius-xl); }
.anr .anr-flash__face{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  padding: var(--ip-space-6); text-align: center;
  border-radius: var(--ip-radius-xl);
  backface-visibility: hidden;
  transition: transform .6s var(--ip-ease);
  border: 1px solid var(--ip-line);
  box-shadow: var(--ip-shadow-md);
}
.anr .anr-flash__front{ background: radial-gradient(120% 80% at 50% 0%, var(--anr-gold-soft), transparent 70%), var(--ip-surface); }
.anr .anr-flash__back{ background: linear-gradient(160deg, var(--anr-night), var(--anr-night-2)); color: #f4ead2; transform: rotateY(180deg); }
.anr .anr-flash.is-flipped .anr-flash__front{ transform: rotateY(-180deg); }
.anr .anr-flash.is-flipped .anr-flash__back{ transform: rotateY(0); }
.anr .anr-flash__ar[lang]{ font-size: clamp(3rem, 2rem + 4vw, 4.6rem); line-height: 1.7; font-weight: 700; color: var(--ip-tile-lapis-fg); }
:root[data-theme="dark"] .anr .anr-flash__front .anr-flash__ar[lang]{ color: #f1dfb0; }
.anr .anr-flash__ar--sm[lang]{ font-size: 2.6rem; color: #fff; }
.anr .anr-flash__tr{ font-family: var(--ip-font-display); font-size: var(--ip-text-2xl); margin: 0; color: #fff; }
.anr .anr-flash__meaning{ font-size: var(--ip-text-xl); font-weight: 600; margin: 0; color: var(--anr-gold); }
.anr .anr-flash__front .anr-flash__meaning{ color: var(--ip-ink); }
.anr .anr-flash__short{ max-width: 34rem; font-size: var(--ip-text-sm); line-height: 1.6; color: rgba(244, 234, 210, .82); margin: .4rem 0; }
.anr .anr-flash__back .anr-link{ color: var(--anr-gold); }
.anr .anr-flash__hint{ margin: var(--ip-space-3) 0 0; color: var(--ip-muted); font-size: var(--ip-text-sm); }
.anr .anr-flash__controls{ display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ip-space-2); margin-top: var(--ip-space-4); }

.anr .anr-rates{ display: flex; flex-wrap: wrap; gap: .4rem; }
.anr .anr-rate{ display: inline-flex; flex-direction: column; align-items: center; min-width: 84px; min-height: 48px; padding: .45rem .8rem; border-radius: var(--ip-radius); border: 1px solid var(--ip-line); background: var(--ip-surface); color: var(--ip-ink); font-weight: 600; cursor: pointer; }
.anr .anr-rate kbd{ font-size: .65rem; padding: 0 .35rem; margin-top: .15rem; background: var(--ip-surface-3); color: var(--ip-muted); }
.anr .anr-rate.is-again{ border-color: #e8a1b0; }
.anr .anr-rate.is-hard{ border-color: #efcf8c; }
.anr .anr-rate.is-good{ border-color: #8fd3b9; }
.anr .anr-rate.is-easy{ border-color: #9ec2ee; }
.anr .anr-rate:hover{ background: var(--ip-surface-2); }

.anr .anr-choices{ display: grid; gap: var(--ip-space-2); }
.anr .anr-choices--grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.anr .anr-choice{ min-height: 52px; padding: .7rem 1rem; border-radius: var(--ip-radius); border: 1px solid var(--ip-line-strong); background: var(--ip-surface); color: var(--ip-ink); font-weight: 600; text-align: start; cursor: pointer; transition: background-color .2s, border-color .2s, transform .15s; }
.anr .anr-choice:hover:not(:disabled){ border-color: var(--anr-gold); background: var(--ip-surface-2); }
.anr .anr-choice--ar .anr-ar[lang]{ font-size: 1em; line-height: 1.5; font-weight: 700; }
.anr .anr-choice--ar{ text-align: center; font-size: 1.8rem; line-height: 1.6; font-weight: 700; }
.anr .anr-choice.is-right{ border-color: #2b9479; background: rgba(43, 148, 121, .14); }
.anr .anr-choice.is-wrong{ border-color: #d0647c; background: rgba(208, 100, 124, .12); }
.anr .anr-choice:disabled{ cursor: default; opacity: .75; }
.anr .anr-feedback{ min-height: 1.5em; margin: var(--ip-space-3) 0; font-weight: 600; }
.anr .anr-feedback.is-right{ color: var(--ip-tile-emerald-fg); }
.anr .anr-feedback.is-wrong{ color: var(--ip-tile-rose-fg); }
.anr .anr-question{ text-align: center; padding: var(--ip-space-5); margin-bottom: var(--ip-space-4); border-radius: var(--ip-radius-xl); background: radial-gradient(120% 80% at 50% 0%, var(--anr-gold-soft), transparent 70%), var(--ip-surface); border: 1px solid var(--ip-line); }
.anr .anr-question__prompt{ color: var(--ip-muted); font-weight: 600; margin: 0 0 .5rem; }
.anr .anr-question__ar[lang]{ display: block; font-size: clamp(2.8rem, 2rem + 3vw, 4rem); line-height: 1.7; font-weight: 700; color: var(--ip-tile-lapis-fg); }
:root[data-theme="dark"] .anr .anr-question__ar[lang]{ color: #f1dfb0; }
.anr .anr-question__big{ font-family: var(--ip-font-display); font-size: var(--ip-text-2xl); margin: 0; }

.anr .anr-match{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ip-space-3); margin-bottom: var(--ip-space-4); }
.anr .anr-match__col{ display: grid; gap: var(--ip-space-2); align-content: start; }
.anr .anr-match__item{ display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: .5rem .9rem; border-radius: var(--ip-radius); border: 1px solid var(--ip-line-strong); background: var(--ip-surface); color: var(--ip-ink); font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
.anr .anr-match__item--ar .anr-ar[lang]{ font-size: 1.75rem; line-height: 1.5; font-weight: 700; }
.anr .anr-match__item small{ color: var(--ip-muted); font-weight: 500; }
.anr .anr-match__item.is-picked{ border-color: var(--anr-gold); background: var(--anr-gold-soft); transform: scale(1.02); }
.anr .anr-match__item.is-done{ border-color: #2b9479; background: rgba(43, 148, 121, .12); opacity: .7; }
.anr .anr-match__item.is-wrong{ border-color: #d0647c; animation: anr-shake .4s; }
@keyframes anr-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.anr .anr-order{ list-style: none; counter-reset: anr; margin: 0 0 var(--ip-space-4); padding: 0; display: grid; gap: var(--ip-space-2); }
.anr .anr-order__item{ counter-increment: anr; display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border-radius: var(--ip-radius); border: 1px solid var(--ip-line); background: var(--ip-surface); }
.anr .anr-order__item::before{ content: counter(anr); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ip-surface-2); font-weight: 700; color: var(--ip-muted); flex: none; }
.anr .anr-order__label{ display: flex; flex-direction: column; flex: 1; min-width: 0; }
.anr .anr-order__label .anr-ar[lang]{ font-size: 1.6rem; line-height: 1.5; font-weight: 700; }
.anr .anr-order__label small{ color: var(--ip-muted); }
.anr .anr-order__tools{ display: flex; gap: .3rem; }
.anr .anr-order__move{ width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ip-line); background: var(--ip-surface); color: var(--ip-ink); cursor: pointer; }
.anr .anr-order__move:disabled{ opacity: .35; cursor: default; }

.anr .anr-done{ text-align: center; padding: var(--ip-space-7) var(--ip-space-4); border-radius: var(--ip-radius-xl); border: 1px solid var(--ip-line); background: radial-gradient(120% 80% at 50% 0%, var(--anr-gold-soft), transparent 70%), var(--ip-surface); }
.anr .anr-done__icon{ font-size: 2.4rem; color: var(--anr-gold); }
.anr .anr-done h2{ font-family: var(--ip-font-display); outline: none; }

.anr-toast { position: fixed; inset-inline-start: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 1080; padding: .7rem 1.2rem; border-radius: 999px; background: #1b1f2e; color: #fff; box-shadow: var(--ip-shadow-lg); font-weight: 600; transition: opacity .4s; }
[dir="rtl"] .anr-toast { transform: translateX(50%); }
.anr-toast.is-out { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .anr .anr-journeys{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .anr .anr-detail{ grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 991.98px) {
  .anr .anr-hero__inner, .anr .anr-source__inner, .anr .anr-intro{ grid-template-columns: minmax(0, 1fr); }
  .anr .anr-name-hero__grid{ grid-template-columns: minmax(0, 1fr); text-align: center; }
  .anr .anr-name-hero__ar[lang], [dir="rtl"] .anr .anr-name-hero__ar[lang]{ text-align: center; }
  .anr .anr-name-hero__actions{ justify-content: center; }
  .anr .anr-medallion{ max-width: 220px; margin: 0 auto; }
  .anr .anr-detail{ grid-template-columns: minmax(0, 1fr); }
  .anr .anr-detail__side{ position: static; margin-top: 0; }
  .anr .anr-facts{ margin-top: calc(-1 * var(--ip-space-6)); }
}
@media (max-width: 767.98px) {
  .anr .anr-hero{ padding: var(--ip-space-6) 0 var(--ip-space-7); }
  .anr .anr-journeys{ display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; margin-inline: calc(-.5 * var(--bs-gutter-x, 1.5rem)); padding-inline: calc(.5 * var(--bs-gutter-x, 1.5rem)); scroll-padding-inline: calc(.5 * var(--bs-gutter-x, 1.5rem)); }
  .anr .anr-journeys > li{ flex: 0 0 72%; scroll-snap-align: start; }
  .anr .anr-journeys--large{ display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; margin: 0; padding: 0; }
  .anr .anr-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ip-space-2); }
  .anr .anr-card__ar[lang]{ font-size: 2rem; }
  .anr .anr-card__short{ display: none; }
  .anr .anr-card__link{ padding: var(--ip-space-5) var(--ip-space-2) var(--ip-space-1); }
  .anr .anr-card__num{ --size: 1.7rem; top: .4rem; inset-inline-start: .4rem; }
  .anr .anr-facts{ grid-template-columns: minmax(0, 1fr); }
  .anr .anr-block{ padding: var(--ip-space-4); }
  .anr .anr-check .anr-choices, .anr .anr-choices--grid{ grid-template-columns: minmax(0, 1fr); }
  .anr .anr-pager{ grid-template-columns: 1fr 1fr; }
  .anr .anr-pager__all{ grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .anr .anr-pager__ar[lang]{ display: none; }
  .anr .anr-count{ margin-inline-start: 0; width: 100%; }
  .anr .anr-filter{ width: 100%; justify-content: space-between; }
  .anr .anr-overall{ border-radius: var(--ip-radius-lg); }
  .anr .anr-match{ grid-template-columns: 1fr 1fr; gap: var(--ip-space-2); }
  .anr .anr-match__item--ar .anr-ar[lang]{ font-size: 1.4rem; }
  .anr .anr-flash{ min-height: 300px; }
}
@media (max-width: 380px) {
  .anr .anr-grid{ grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .anr *, .anr *::before, .anr *::after { animation: none !important; transition: none !important; }
  .anr .anr-reveal{ opacity: 1; transform: none; }
}
.anr .anr-flash__front .anr-star { position: absolute; top: 1.1rem; inset-inline-start: 1.1rem; }
.anr .anr-journeys--large { margin-top: var(--ip-space-4); }

/* ==========================================================================
   The learning experience around the names (names-experience.js): the live
   card beside the hub and journey titles, the strip of all ninety-nine on a
   name's page, the chapter rail, the road of journeys, name tiles, the
   practice tabs and session bar, and "what next". Transform and opacity only.
   ========================================================================== */
.anr .anr-page-hero{ position: relative; overflow: hidden; isolation: isolate; }
.anr .anr-page-hero::after{
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--anr-gold), transparent); opacity: .7;
}
.anr .anr-page-hero__grid{ display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ip-space-6); align-items: center; }
.anr .anr-page-hero__copy{ min-width: 0; }
@media (min-width: 992px){
  .anr .anr-page-hero--live .anr-page-hero__grid{ grid-template-columns: minmax(0, 1.4fr) minmax(300px, .75fr); }
}
.anr .anr-page-hero--live{ padding-bottom: var(--ip-space-8); }
.anr .anr-page-hero--live::before{
  content: ""; position: absolute; z-index: -1; inset-inline-end: -120px; top: 50%; width: clamp(280px, 34vw, 520px); aspect-ratio: 1; translate: 0 -50%;
  border: 1px solid rgba(217, 180, 95, .25); border-radius: 18%; transform: rotate(45deg); opacity: .6;
  box-shadow: inset 0 0 0 40px rgba(217, 180, 95, .04), 0 0 0 60px rgba(217, 180, 95, .03);
  animation: anr-turn 160s linear infinite;
}

/* The live card */
.anr .anr-live{
  display: grid; gap: var(--ip-space-3); padding: var(--ip-space-5); border-radius: var(--ip-radius-xl); color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.anr .anr-live p{ margin: 0; }
.anr .anr-live__label{ display: inline-flex; gap: .4rem; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--anr-gold); }
html[lang="ar"] .anr .anr-live__label, html[lang="ur"] .anr .anr-live__label{ letter-spacing: 0; font-size: .9rem; }
.anr .anr-live .anr-overall{ margin: 0; padding: 0; border: 0; background: none; display: flex; }
.anr .anr-live .anr-overall__text{ color: rgba(255, 255, 255, .86); font-size: .95rem; }
.anr .anr-live .anr-overall__text:first-child{ font-weight: 700; font-size: 1.05rem; color: #fff; }
.anr .anr-live .anr-ring{ width: 72px; height: 72px; }
.anr .anr-live__go{
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .75rem 1rem; border-radius: 16px;
  background: linear-gradient(135deg, #f2d77a, #c9a227); color: #241a05; font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 26px -14px rgba(201, 162, 39, .9); transition: transform .25s var(--ip-ease);
}
.anr .anr-live__go:hover{ transform: translateY(-2px); color: #241a05; }
.anr .anr-live__go span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anr .anr-live__note{ font-size: .8rem; color: rgba(255, 255, 255, .7); display: inline-flex; gap: .35rem; align-items: center; }
:root[data-theme="dark"] .anr .anr-live__note, body.dark .anr .anr-live__note{ color: rgba(255, 255, 255, .7); }
body.dark .anr .anr-live__label{ color: var(--anr-gold); }
body.dark .anr .anr-page-hero__lead{ color: rgba(244, 234, 210, .86); }
body.dark .anr .anr-live .anr-overall__text{ color: rgba(255, 255, 255, .86); }

/* The road of all the journeys, this one lit */
.anr .anr-road{ list-style: none; margin: 0; padding: .4rem 0 0; display: flex; align-items: center; justify-content: space-between; position: relative; }
.anr .anr-road::before{ content: ""; position: absolute; inset-inline: 14px; top: calc(.4rem + 15px); height: 2px; background: rgba(255, 255, 255, .2); }
.anr .anr-road li{ position: relative; z-index: 1; }
.anr .anr-road a{
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; text-decoration: none; font-size: .72rem; font-weight: 800;
  background: #0d3b29; color: rgba(255, 255, 255, .8); border: 2px solid rgba(255, 255, 255, .3); transition: transform .2s var(--ip-ease);
}
.anr .anr-road a:hover{ transform: scale(1.12); color: #fff; }
.anr .anr-road .is-before a{ border-color: var(--anr-gold); color: var(--anr-gold); }
.anr .anr-road .is-current a{ background: var(--anr-gold); border-color: var(--anr-gold); color: #241a05; transform: scale(1.18); box-shadow: 0 0 0 5px rgba(217, 180, 95, .25); }

/* The strip of all ninety-nine (in a name's hero) */
.anr .anr-strip{ display: flex; align-items: center; gap: var(--ip-space-3); margin-top: var(--ip-space-6); padding-block: .45rem .45rem; padding-inline: .9rem .5rem; border-radius: 999px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .12); }
.anr .anr-strip__count{ flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--anr-gold); white-space: nowrap; }
html[lang="ar"] .anr .anr-strip__count, html[lang="ur"] .anr .anr-strip__count{ letter-spacing: 0; font-size: .85rem; }
.anr .anr-strip__list{
  flex: 1; min-width: 0; display: flex; gap: .3rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.anr .anr-strip__list::-webkit-scrollbar{ display: none; }
.anr .anr-strip__item{
  position: relative; display: grid; justify-items: center; gap: 0; min-width: 3.4rem; padding: .25rem .5rem .3rem; border-radius: 14px;
  color: rgba(244, 234, 210, .78); text-decoration: none; transition: background-color .2s, color .2s, transform .2s var(--ip-ease);
}
.anr .anr-strip__item small{ font-size: .62rem; font-weight: 700; opacity: .7; }
.anr .anr-strip__item [lang="ar"]{ font-size: 1.15rem; line-height: 1.5; white-space: nowrap; }
.anr .anr-strip__item:hover{ background: rgba(255, 255, 255, .1); color: #fff; transform: translateY(-2px); }
.anr .anr-strip__item.is-current{ background: var(--anr-gold); color: #241a05; }
.anr .anr-strip__item.is-learned::after{ content: ""; position: absolute; top: 4px; inset-inline-end: 6px; width: 6px; height: 6px; border-radius: 50%; background: #7fe0a8; }

/* The chapter rail under a name's hero; the facts no longer tuck under the hero when it is there. */
.anr .anr-rail + .anr-detail .anr-facts{ margin-top: 0; }
.anr .anr-rail + .anr-detail{ padding-top: var(--ip-space-5); }
.anr .anr-rail .lx-rail__link.is-active{ background: var(--anr-night-2); color: #fff; }
.anr .anr-btn--sm{ min-height: 36px; padding: .35rem .8rem; }
.anr .anr-block{ scroll-margin-top: calc(var(--ip-header-h, 76px) + 70px); }

/* The journeys as one road */
.anr .anr-journeys--path{ position: relative; counter-reset: anr-step; }
@media (min-width: 992px){
  .anr .anr-journeys--path{ grid-template-columns: repeat(5, minmax(0, 1fr)); padding-top: 1.4rem; }
  .anr .anr-journeys--path::before{
    content: ""; position: absolute; inset-inline: 10%; top: 1.4rem; height: 3px; border-radius: 3px;
    background: repeating-linear-gradient(90deg, var(--anr-gold) 0 10px, transparent 10px 18px); opacity: .6;
  }
  .anr .anr-journeys--path .anr-journey a{ padding-top: 2rem; }
}
.anr .anr-journey{ position: relative; }
.anr .anr-journey__step{
  position: absolute; z-index: 2; top: -1.05rem; inset-inline-start: 50%; translate: -50% 0; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--ip-surface); border: 2px solid var(--anr-gold); color: var(--anr-gold-deep); font-weight: 800; font-size: .85rem; box-shadow: var(--ip-shadow-sm);
}
[dir="rtl"] .anr .anr-journey__step{ translate: 50% 0; }
.anr .anr-journey.is-complete .anr-journey__step{ background: var(--anr-gold); color: #241a05; }
.anr .anr-journey.is-next a{ border-color: var(--anr-gold); box-shadow: 0 0 0 4px var(--anr-gold-soft), var(--ip-shadow-md); }
.anr .anr-journey .anr-progress span{ transition: width .8s var(--ip-ease); }
@media (max-width: 991.98px){
  .anr .anr-journeys--path .anr-journey__step{ position: static; translate: none; }
  .anr .anr-journeys--path .anr-journey a{ display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "step icon title" "lead lead lead" "bar bar bar" "done done done"; align-items: center; column-gap: .7rem; }
  .anr .anr-journeys--path .anr-journey__step{ grid-area: step; }
  .anr .anr-journeys--path .anr-journey__icon{ grid-area: icon; }
  .anr .anr-journeys--path .anr-journey__title{ grid-area: title; }
  .anr .anr-journeys--path .anr-journey__lead{ grid-area: lead; }
  .anr .anr-journeys--path .anr-progress{ grid-area: bar; }
  .anr .anr-journeys--path .anr-journey__done{ grid-area: done; }
}

/* Practice modes in pastel tones */
.anr .anr-mode[class*="lx-tone-"]{ background: linear-gradient(140deg, var(--lx-tone-bg), var(--ip-surface) 72%); }
.anr .anr-mode[class*="lx-tone-"] .anr-mode__icon{ background: var(--ip-surface); color: var(--lx-tone-fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lx-tone-fg) 18%, transparent); }

/* Name tiles on a journey */
.anr .anr-tiles{ list-style: none; margin: var(--ip-space-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--ip-space-3); }
.anr .anr-tile a{
  position: relative; display: grid; gap: .15rem; height: 100%; padding: var(--ip-space-4); border-radius: var(--ip-radius-lg); overflow: hidden;
  background: radial-gradient(140% 90% at 50% 0%, var(--anr-gold-soft), transparent 60%), var(--anr-card-bg);
  border: 1px solid var(--ip-line); color: var(--ip-ink); text-decoration: none; box-shadow: var(--ip-shadow-sm); text-align: center;
  transition: box-shadow .3s var(--ip-ease), border-color .3s;
}
.anr .anr-tile a:hover{ border-color: var(--anr-gold); box-shadow: var(--ip-shadow-md); color: var(--ip-ink); }
.anr .anr-tile__top{ display: flex; align-items: center; justify-content: space-between; min-height: 2rem; }
.anr .anr-tile__state{ display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border-radius: 999px; background: var(--ip-tile-emerald-bg); color: var(--ip-tile-emerald-fg); font-size: .72rem; font-weight: 700; }
.anr .anr-tile__state[hidden]{ display: none; }
.anr .anr-tile__ar[lang]{ font-size: 2.3rem; line-height: 1.6; color: var(--ip-tile-lapis-fg); font-weight: 700; }
:root[data-theme="dark"] .anr .anr-tile__ar[lang], body.dark .anr .anr-tile__ar[lang]{ color: #f1dfb0; }
.anr .anr-tile__tr{ font-weight: 700; }
.anr .anr-tile__m{ font-size: var(--ip-text-sm); color: var(--ip-muted); line-height: 1.4; }
.anr .anr-journey-pager{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--ip-space-3); margin-top: var(--ip-space-6); }

/* Practice: the four modes as tabs and the session bar */
.anr .anr-modetabs{ display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 var(--ip-space-4); }
.anr .anr-modetab{
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; text-decoration: none;
  color: rgba(255, 255, 255, .88); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07); transition: background-color .2s, color .2s;
}
.anr .anr-modetab:hover{ background: rgba(255, 255, 255, .15); color: #fff; }
.anr .anr-modetab.is-active{ background: var(--anr-gold); color: #241a05; border-color: var(--anr-gold); }
.anr .anr-hud{
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 auto var(--ip-space-4); max-width: 52rem; padding: .5rem; border-radius: 999px;
  background: var(--ip-surface); border: 1px solid var(--ip-line); box-shadow: var(--ip-shadow-sm);
}
.anr .anr-hud__item{ display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; background: var(--ip-surface-2); font-variant-numeric: tabular-nums; }
.anr .anr-hud__item i{ color: var(--anr-gold-deep); }
.anr .anr-hud__item small{ color: var(--ip-muted); font-size: .78rem; }
.anr .anr-hud__item.is-pop{ animation: anr-pop .45s var(--ip-spring, cubic-bezier(.3, 1.6, .5, 1)); }
@keyframes anr-pop{ 40%{ transform: scale(1.12); } }
.anr .anr-hud.is-hot .anr-hud__streak{ background: linear-gradient(135deg, #f2d77a, #c9a227); color: #241a05; }
.anr .anr-hud.is-hot .anr-hud__streak i, .anr .anr-hud.is-hot .anr-hud__streak small{ color: #241a05; }
.anr .anr-hud__keys{ margin-inline-start: auto; padding-inline-end: .6rem; font-size: .78rem; color: var(--ip-muted); }
.anr .anr-hud__keys kbd{ padding: .1rem .4rem; border-radius: 6px; background: var(--ip-surface-2); color: var(--ip-ink-2); border: 1px solid var(--ip-line); box-shadow: none; font-size: .72rem; }
.anr .anr-done__best{ display: inline-flex; align-items: center; gap: .4rem; margin: var(--ip-space-3) 0 0; padding: .3rem .8rem; border-radius: 999px; background: var(--anr-gold-soft); color: var(--anr-gold-deep); font-weight: 700; }
:root[data-theme="dark"] .anr .anr-done__best, body.dark .anr .anr-done__best{ color: var(--anr-gold); }

/* What next */
.anr .anr-next{ margin-top: var(--ip-space-6); }
.anr .anr-next .lx-kicker{ margin-bottom: .2rem; }

@media (max-width: 767.98px){
  .anr .anr-strip{ border-radius: var(--ip-radius-lg); flex-wrap: wrap; padding: .5rem; }
  .anr .anr-strip__count{ width: 100%; padding-inline-start: .4rem; }
  .anr .anr-hud{ border-radius: var(--ip-radius-lg); }
  .anr .anr-hud__keys{ display: none; }
  .anr .anr-hud__item small{ display: none; }
  .anr .anr-tiles{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anr .anr-tile__ar[lang]{ font-size: 1.9rem; }
  .anr .anr-modetabs{ flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -.75rem; padding-inline: .75rem; }
  .anr .anr-modetab{ white-space: nowrap; }
  .anr .anr-live .anr-ring{ width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce){
  .anr .anr-page-hero--live::before{ animation: none; }
  .anr .anr-hud__item.is-pop{ animation: none; }
}
