@charset "UTF-8";
/* ==========================================================================
   الأبرشية — the interactive coat of arms
   Tokens only, so dark mode follows. No letter-spacing on Arabic anywhere.
   ========================================================================== */

/* ---------- page hero ---------- */
.ep-hero {
  position: relative;
  padding: calc(136px + var(--s7)) var(--s5) var(--s7);
  background: var(--hero-sky);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ep-hero > * { position: relative; }
.ep-hero-glow {
  position: absolute; inset-block-start: -58%; inset-inline-start: 50%;
  transform: translateX(50%); width: min(780px, 120vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201,151,26,.16), transparent 66%);
  pointer-events: none;
}
:root[data-theme="dark"] .ep-hero-glow {
  background: radial-gradient(circle, rgba(254,205,7,.12), transparent 68%);
}
.ep-hero h1 {
  font-size: clamp(32px, 6vw, 60px); line-height: 1.45;
  margin-block: var(--s3) var(--s3); max-width: 20ch;
}
.ep-standfirst { font-size: 17.5px; line-height: 1.85; color: var(--ink-2); max-width: 58ch; }

/* ---------- breadcrumb ---------- */
.crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2);
  font-size: 13.5px; color: var(--muted);
}
.crumb a { color: var(--muted); transition: color .25s var(--ease); }
.crumb a:hover { color: var(--gold-ink); }
:root[data-theme="dark"] .crumb a:hover { color: var(--gold); }
.crumb-sep { opacity: .5; }
.crumb [aria-current] { color: var(--ink-2); }

/* ==========================================================================
   the arms
   ========================================================================== */
.arms {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s6), 6vw, var(--s8));
  align-items: start; margin-top: var(--s7);
}

.arms-stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px;
  padding: var(--s6) var(--s5);
  box-shadow: var(--shadow-m);
  display: grid; place-items: center;
}
.arms-stage img { width: min(400px, 100%); height: auto; }

/* Hotspots.
   These use PHYSICAL left/top, not inset-inline-start. The artwork is a fixed
   image whose crosier is on the left and cross on the right regardless of text
   direction — under RTL, inset-inline-start resolves to `right` and mirrors
   every hotspot onto the wrong element. */
.hot {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--gold); border: 2px solid var(--surface);
  box-shadow: 0 2px 8px rgba(16,28,51,.28);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background-color .25s var(--ease);
}
.hot::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px; background: #12203B;
}
.hot span {
  position: absolute; bottom: calc(100% + 9px); left: 50%;
  transform: translateX(-50%);
  background: var(--navy); color: #fff;
  font-size: 12.5px; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.hot:hover, .hot:focus-visible { transform: translate(-50%, -50%) scale(1.22); background: var(--gold-ink); }
.hot:hover span, .hot:focus-visible span { opacity: 1; }
.hot.is-on { background: var(--navy); }
.hot.is-on::before { background: var(--gold); }
:root[data-theme="dark"] .hot { border-color: var(--surface); }
:root[data-theme="dark"] .hot.is-on { background: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .hot::after {
    content: ""; position: absolute; inset: -5px; border-radius: 999px;
    border: 2px solid var(--gold); opacity: 0;
    animation: hot-ping 2.8s var(--ease) infinite;
  }
  .hot.is-on::after, .hot:hover::after { animation: none; opacity: 0; }
  @keyframes hot-ping {
    0%   { opacity: .8; transform: scale(.85); }
    70%  { opacity: 0;   transform: scale(1.5); }
    100% { opacity: 0;   transform: scale(1.5); }
  }
}

/* reading panel */
.arms-read { position: sticky; top: 156px; display: flex; flex-direction: column; gap: var(--s4); }

.arms-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: clamp(var(--s5), 4vw, var(--s6));
  min-height: 260px;
}
.apx h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: var(--s3); line-height: 1.45; }
.apx p { font-size: 16px; line-height: 1.9; color: var(--ink-2); margin-bottom: var(--s3); max-width: 52ch; }
.apx p:last-child { margin-bottom: 0; }
.apx b { color: var(--ink); font-weight: 600; }

.apx-list { list-style: none; display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s3); }
.apx-list li {
  font-size: 15.5px; color: var(--ink-2); line-height: 1.65;
  padding-inline-start: var(--s3); border-inline-start: 2px solid var(--gold);
}
.apx-list b { font-family: var(--ar-display); font-size: 17.5px; font-weight: 400; color: var(--ink); }

.apx-note {
  font-size: 13.5px; color: var(--muted); padding-top: var(--s3);
  border-top: 1px dashed var(--line-2);
}

.arms-motto {
  padding: var(--s5); border-radius: 16px;
  background: var(--navy); color: #fff; text-align: center;
}
:root[data-theme="dark"] .arms-motto { background: var(--surface); border: 1px solid var(--line-2); }
.arms-motto blockquote {
  font-family: var(--ar-display); font-size: clamp(24px, 3.2vw, 33px);
  line-height: 1.6; color: var(--gold);
}
.arms-motto figcaption { margin-top: var(--s2); font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.6; }
:root[data-theme="dark"] .arms-motto figcaption { color: var(--muted); }

/* ==========================================================================
   canonical status
   ========================================================================== */
.facts-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface);
}
.facts-list > div {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s3);
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line);
}
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { font-size: 13.5px; color: var(--muted); }
.facts-list dd { font-family: var(--ar-display); font-size: 17.5px; line-height: 1.5; color: var(--ink); }

/* ==========================================================================
   the four churches
   ========================================================================== */
.epch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: var(--s7); }
.epch {
  padding: var(--s5) var(--s4); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  transition: transform .4s var(--ease-o), box-shadow .4s var(--ease-o), border-color .4s var(--ease-o);
}
.epch:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.epch-ico { width: 30px; height: 40px; fill: var(--navy); margin-bottom: var(--s4); transition: fill .4s var(--ease); }
:root[data-theme="dark"] .epch-ico { fill: var(--gold); }
.epch:hover .epch-ico { fill: var(--gold); }
.epch h3 { font-size: 20px; line-height: 1.45; margin-bottom: 2px; }
.epch-town { font-size: 13px; font-weight: 600; color: var(--gold-ink); margin-bottom: var(--s3); }
:root[data-theme="dark"] .epch-town { color: var(--gold); }
.epch-x { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

.epch-more {
  margin-top: var(--s5); font-size: 15.5px; color: var(--ink-2); line-height: 1.8;
  padding-inline-start: var(--s4); border-inline-start: 3px solid var(--gold);
}
.epch-more b { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   statistics
   ========================================================================== */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  margin-top: var(--s6);
}
.stat { background: var(--surface); padding: var(--s5) var(--s4); text-align: center; }
.stat b {
  display: block; font-family: var(--ar-display);
  font-size: clamp(28px, 3.6vw, 42px); font-weight: 400; line-height: 1.25;
  color: var(--gold-ink); font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] .stat b { color: var(--gold); }
.stat span { display: block; margin-top: var(--s2); font-size: 13.5px; color: var(--muted); }

.stat-note {
  display: flex; gap: var(--s4); align-items: flex-start;
  margin-top: var(--s5); padding: var(--s5);
  background: var(--bg); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--gold); border-radius: 14px;
}
.stat-ico { flex: none; width: 24px; height: 32px; fill: var(--gold); }
.stat-note h3 { font-size: 20px; margin-bottom: var(--s2); }
.stat-note p { font-size: 15.5px; line-height: 1.85; color: var(--ink-2); max-width: 68ch; }
.stat-note b { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .ep-hero { padding-top: calc(84px + var(--s6)); }
  .arms { grid-template-columns: 1fr; }
  .arms-read { position: static; }
  .epch-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .ep-hero { padding-inline: var(--s4); }
  .epch-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .facts-list > div { grid-template-columns: 1fr; gap: 2px; }
  .stat-note { flex-direction: column; gap: var(--s3); }
  /* on small screens the hotspots crowd the artwork: the list below carries it */
  .hot { width: 24px; height: 24px; }
  .hot span { display: none; }
}
