:root {
  --ink: #101f35;
  --muted: #5c6573;
  --paper: #f3efe6;
  --card: #fffdf8;
  --line: #e4dccb;
  --copper: #8c4f29;
  --pigment: #101f35;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 100% -10%, color-mix(in srgb, var(--pigment) 18%, transparent), transparent 60%),
    var(--paper);
  font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
}
h1, h2, h3 { font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; line-height: 1.25; font-weight: 600; margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -40px; background: var(--ink); color: white;
  padding: 8px 12px; z-index: 5;
}
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ribbon {
  margin: 0; padding: 8px 16px; text-align: center; background: #101f35; color: #f3efe6;
  font-size: .85rem; letter-spacing: 0;
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px 0; max-width: 1120px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 10px; }
.top nav { display: flex; gap: 8px; color: var(--muted); font-size: .95rem; }
.top nav a { color: var(--ink); font-weight: 600; }
main { max-width: 1120px; margin: 0 auto; padding: 12px 18px 64px; }
.disclosure {
  margin: 4px 0 0;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}
.disclosure-line { margin: 0; color: var(--muted); font-size: .92rem; }
.disclosure-more { margin-top: 2px; }
.disclosure-more summary {
  cursor: pointer; font-weight: 700; color: var(--pigment); width: fit-content;
}
.disclosure-more p { margin: 8px 0 0; font-size: .95rem; }
.disclosure .short { color: #3d3328; }
.sign { font-weight: 700; margin: 8px 0 0; }
.hero { padding: 22px 0 8px; }
.kicker {
  margin: 0 0 8px; color: var(--pigment); font-weight: 700; font-size: .92rem;
}
.kicker a { color: var(--pigment); }
h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); letter-spacing: -0.03em; }
.lede { max-width: 38rem; font-size: 1.15rem; color: #243044; }
.shelf-row h2, .group h2, .absent h2 { font-size: 1.35rem; margin: 28px 0 12px; }
.spines {
  display: grid; gap: 12px;
}
.spine {
  --i: 0;
  display: grid; gap: 4px; text-decoration: none;
  background: var(--card);
  border-radius: 18px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-inline-start: 8px solid var(--pigment);
  box-shadow: 0 18px 36px -30px color-mix(in srgb, var(--pigment) 70%, #101f35);
  min-height: 112px;
}
.spine strong { font-size: 1.2rem; }
.spine em { font-style: normal; color: var(--muted); font-size: .92rem; }
.spine-brand { color: var(--pigment); font-weight: 700; }
.spine-go { margin-top: 8px; font-weight: 700; color: var(--pigment); }
.spine.is-quiet { background: transparent; }
.guide {
  margin-top: 8px;
  background: color-mix(in srgb, var(--pigment) 8%, white);
  border-radius: 24px;
  padding: 18px 16px 16px;
}
.guide-lead { margin: 8px 0 0; color: #243044; }
.guide-q h3 { font-size: 1.25rem; margin: 14px 0 10px; }
.guide-options, .guide-actions { display: grid; gap: 8px; }
.guide-options button, .guide-back, .out {
  min-height: 48px; border-radius: 14px; text-decoration: none;
}
.guide-options button {
  text-align: start; background: white; border: 1px solid var(--line); color: var(--ink);
  padding: 12px 14px; cursor: pointer;
}
.guide-options button:hover, .guide-options button:focus-visible { border-color: var(--pigment); }
.guide-back {
  background: transparent; border: 0; color: var(--pigment); cursor: pointer; padding: 8px 0; font-weight: 700;
}
.guide-stop, .guide-result {
  margin-top: 12px; background: white; border-radius: 16px; padding: 14px;
  border-inline-start: 4px solid var(--copper);
}
.guide-stop.is-urgent { border-inline-start-color: #8c2727; background: #fff6f4; }
.guide-result a, .backline a { font-weight: 700; }
.cards { display: grid; gap: 22px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 22px 22px 10px 10px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 40px -34px #101f35;
}
.card-top { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.mark {
  width: 3.1rem; height: 3.1rem; border-radius: 16px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--pigment) 14%, white);
  color: var(--pigment); font-weight: 700; font-size: 1.25rem;
}
.why {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ask { margin: 10px 0 0; font-weight: 700; }
.symptom-label { display: block; color: var(--ink); font-weight: 700; }
.centre-name { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; font-weight: 600; text-decoration: none; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
.filters button {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: #f6f1e7;
  border-color: var(--ink);
}
.filter-empty { margin: 0 0 12px; color: var(--muted); }
.filter-count { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.store-grid .card[hidden] { display: none; }
.store-grid .card { animation: none; }
.trust { margin: 4px 0 0; color: #243044; }
.cat { margin: 0; color: var(--pigment); font-weight: 700; font-size: .88rem; }
.card h3 { font-size: 1.45rem; margin-top: 4px; }
.latin, .form { margin: 4px 0; color: var(--muted); }
.why, .detail, .safety, .consult { margin: 10px 0; }
.badge {
  display: inline-block; margin: 8px 0 0; padding: 4px 10px; border-radius: 999px;
  font-size: .85rem; font-weight: 700;
}
.badge-guideline { background: #e5f2ec; color: #174e3b; }
.badge-expert { background: #e7eef8; color: #14284b; }
.badge-conditional { background: #f8efe4; color: #6d3d16; }
.badge-limited { background: #f3eee6; color: #5c5346; }
.badge-deficiency { background: #e7f3f2; color: #0f3d3a; }
.badge-tool { background: #efeaf6; color: #3a2a55; }
.bundle {
  margin: 8px 0 28px;
  padding: 18px 16px 16px;
  border-radius: 28px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--pigment) 14%, white), #fffdf8 46%);
  border: 1px solid color-mix(in srgb, var(--pigment) 30%, var(--line));
}
.bundle h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.bundle-lead { margin: 8px 0 0; }
.routine { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.routine li {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  background: white; border-radius: 16px; padding: 10px 12px; border: 1px solid var(--line); margin: 0;
}
.routine .n {
  width: 1.8rem; height: 1.8rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--pigment); color: white; font-weight: 700; font-size: .9rem;
}
.lesson {
  margin-top: 14px; background: white; border-radius: 18px; padding: 14px 14px 16px;
  border-inline-start: 4px solid var(--copper);
}
.lesson h3 { font-size: 1.35rem; margin-top: 4px; }
.book {
  display: inline-flex; align-items: center; margin-top: 8px; padding: 10px 14px;
  min-height: 48px; border-radius: 14px; text-decoration: none; font-weight: 700;
  color: var(--pigment); border: 1.5px solid var(--pigment); background: transparent;
}
.pending { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.sources { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.sources span, .safety span { font-weight: 700; }
.sources a { text-underline-offset: 3px; }
.facts { margin: 8px 0; padding-inline-start: 1.1rem; color: #3d4654; }
.safety {
  background: #fbf7ef; border-radius: 12px; padding: 10px 12px;
}
.consult { margin: 8px 0 0; color: #3d4654; }
.out {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: auto; min-height: 48px; padding: 10px 16px; border-radius: 14px;
  background: var(--pigment); color: white; font-weight: 700;
}
.store-share {
  margin: 36px 0 0;
  padding: 28px 20px 22px;
  border-radius: 28px;
  background:
    radial-gradient(420px 180px at 100% 0%, color-mix(in srgb, white 18%, transparent), transparent 70%),
    var(--pigment);
  color: #f7f1e6;
}
.store-share .kicker { color: #f0d7bf; }
.store-share h2 { color: white; font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: 16ch; }
.store-share-lead { margin: 10px 0 0; max-width: 36rem; color: #f3efe6; }
.store-share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
}
.share-wa { background: #1f7a4d; color: white; }
.share-native { background: white; color: var(--pigment); }
.share-copy { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,.75); }
.store-share-status { min-height: 1.5rem; margin: 10px 0 0; }
.store-share-status:empty { margin: 0; }
.card.is-lit { outline: 3px solid var(--pigment); outline-offset: 3px; }
.card.is-dim { opacity: .55; }
.callouts, .absent ul, .colophon ul { padding-inline-start: 1.1rem; }
.callouts li, .absent li, .colophon li { margin: 8px 0; }
.absent { margin-top: 12px; }
.empty, .adults, .backline { color: #243044; }
.colophon { margin-top: 28px; color: #243044; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
@media (min-width: 800px) {
  .spines { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .spine { min-height: 160px; }
  .guide-options { grid-template-columns: 1fr 1fr; }
  .routine { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .spine, .card { animation: rise .7s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
  .guide-options button { transition: border-color .18s ease, transform .18s ease; }
  .guide-options button:hover { transform: translateY(-2px); }
  .spine { transition: transform .2s ease; }
  .spine:hover { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spine, .card { animation: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
