@charset "UTF-8";
/* ==========================================================================
   تاريخ الأبرشية — page-specific styles, loaded after styles.css
   Owns: .pg-hero, .crumb, .hh-* (interactive timeline)
   All colour goes through tokens defined in styles.css :root — no new hex.
   Arabic never receives letter-spacing anywhere in this file.
   ========================================================================== */

/* ---------- compact page hero ---------- */
.pg-hero {
  position: relative;
  padding: 152px var(--s5) var(--s7);
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-sky);
  border-bottom: 1px solid var(--line);
}
.pg-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 82% 0%, rgba(201,151,26,.14) 0%, transparent 55%);
}
:root[data-theme="dark"] .pg-hero-bg {
  background: radial-gradient(circle at 82% 0%, rgba(254,205,7,.12) 0%, transparent 55%);
}
.pg-hero-in { max-width: 780px; }

.crumb {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 13.5px; letter-spacing: normal; color: var(--muted);
  margin-bottom: var(--s5);
}
.crumb a { transition: color .25s var(--ease); }
.crumb a:hover { color: var(--gold-ink); }
.crumb [aria-current] { color: var(--ink-2); font-weight: 500; }
.crumb-sep { opacity: .6; }

.pg-hero h1 { margin-bottom: var(--s3); }
.pg-standfirst {
  font-size: 17px; line-height: 1.75; color: var(--ink-2);
  max-width: 58ch; letter-spacing: normal;
}

/* ---------- intro ---------- */
.hh-intro { padding-bottom: var(--s6); }
.hh-intro .prose { max-width: 68ch; }

/* ---------- timeline section head ---------- */
.hh-tl-sec { padding-top: clamp(var(--s6), 8vw, var(--s8)); }

.hh-jump {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  margin-top: var(--s6); margin-bottom: var(--s2);
}
.hh-jump a {
  font-size: 13.5px; font-weight: 500; letter-spacing: normal;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2);
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.hh-jump a:hover { color: var(--navy); border-color: var(--navy); }
:root[data-theme="dark"] .hh-jump a:hover { color: var(--gold); border-color: var(--gold); }

/* ==========================================================================
   the interactive timeline
   ========================================================================== */
.hh-tl { position: relative; margin-top: var(--s7); }

/* spine: static base line + JS-driven gold fill tracking scroll progress.
   Purely decorative (aria-hidden) — the <ol> beneath is the real structure,
   so the feature is a plain, fully-readable list with or without this. */
.hh-spine {
  position: absolute; inset-inline-start: 5px; inset-block: 6px 6px;
  width: 2px; background: var(--line-2); border-radius: 2px;
}
.hh-spine-fill {
  display: block; width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--gold-a), var(--gold-b));
  border-radius: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .hh-spine-fill { transition: height .18s linear; }
}

.hh-era { padding-inline-start: var(--s6); position: relative; margin-bottom: var(--s8); }
.hh-era:last-child { margin-bottom: 0; }

.hh-era-h {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 26px; margin-bottom: var(--s5);
  letter-spacing: normal;
}
.hh-era-range {
  font-family: var(--ar-body); font-size: 13px; font-weight: 600;
  letter-spacing: normal; color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] .hh-era-range { color: var(--gold); }

.hh-list { list-style: none; }

/* ---------- gap markers ---------- */
.hh-gap {
  position: relative; padding: var(--s3) 0 var(--s3) var(--s5);
  margin-inline-start: -1px;
}
.hh-gap p {
  font-size: 13px; color: var(--muted); font-style: normal;
  letter-spacing: normal; line-height: 1.6;
  border-inline-start: 1px dashed var(--line-2); padding-inline-start: var(--s4);
}

/* ---------- timeline items (native <details>) ---------- */
.hh-item { position: relative; padding: var(--s2) 0 var(--s2) var(--s5); }

.hh-item details { border-radius: 12px; }
.hh-item summary {
  display: flex; align-items: baseline; gap: var(--s3);
  padding: var(--s3) var(--s4) var(--s3) var(--s3);
  margin-inline-start: calc(-1 * var(--s3));
  cursor: pointer; list-style: none;
  border-radius: 12px;
  transition: background-color .25s var(--ease);
}
.hh-item summary::-webkit-details-marker { display: none; }
.hh-item summary:hover { background: var(--bg-2); }
:root[data-theme="dark"] .hh-item summary:hover { background: var(--surface); }
.hh-item summary:focus-visible { outline-offset: 2px; }

.hh-dot {
  position: absolute; inset-inline-start: calc(-1 * var(--s5) + 1px);
  top: 22px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2);
  flex: none;
}
.hh-item.is-now .hh-dot {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent);
}

.hh-date {
  flex: none; font-family: var(--ar-display); font-size: 16.5px;
  color: var(--gold-ink); letter-spacing: normal;
  font-variant-numeric: tabular-nums; min-width: 9ch;
}
:root[data-theme="dark"] .hh-date { color: var(--gold); }

.hh-head {
  flex: 1 1 auto; font-family: var(--ar-body); font-size: 16.5px;
  font-weight: 500; color: var(--ink); letter-spacing: normal; line-height: 1.55;
}

.hh-chev {
  flex: none; width: 18px; height: 18px; color: var(--muted);
  transition: transform .3s var(--ease);
}
.hh-item details[open] .hh-chev { transform: rotate(180deg); }

.hh-body {
  padding: var(--s2) var(--s4) var(--s5) calc(var(--s3) + 9ch + var(--s3) + var(--s3));
}
.hh-body p {
  font-size: 15.5px; line-height: 1.8; color: var(--ink-2);
  max-width: 62ch; letter-spacing: normal;
}
.hh-inline-lnk { display: inline-flex; margin-top: 0; margin-inline-start: var(--s2); }

.hh-fig { margin-top: var(--s4); max-width: 480px; }

.hh-callout {
  margin-top: var(--s4); max-width: 62ch;
  background: var(--bg-2); border-inline-start: 3px solid var(--gold);
  border-radius: 0 10px 10px 0; padding: var(--s4);
}
:root[data-theme="dark"] .hh-callout { background: var(--surface); }
.hh-callout p {
  font-size: 14.5px; line-height: 1.8; color: var(--ink-2); letter-spacing: normal;
}
.hh-callout b { color: var(--ink); font-weight: 600; }
.hh-callout a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .hh-callout a { color: var(--gold); }

/* ---------- closing ---------- */
.hh-close-links { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 768px) {
  .pg-hero { padding-top: 128px; }
  .hh-era { padding-inline-start: var(--s4); }
  .hh-body { padding-inline-start: var(--s3); }
  .hh-item summary { flex-wrap: wrap; }
  .hh-date { min-width: 0; }
}

@media (max-width: 480px) {
  .pg-hero { padding-top: 116px; }
  .hh-jump { gap: var(--s2); }
  .hh-jump a { padding: 8px 14px; font-size: 13px; }
  .hh-fig { max-width: 100%; }
}

/* ==========================================================================
   accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hh-chev { transition: none; }
}
