@charset "UTF-8";
/* ==========================================================================
   الشعار الأسقفي — the interactive coat of arms.
   Shared: the section lives on bishop.html, and page-arms.js drives it.
   Tokens only, so dark mode follows. No letter-spacing on Arabic anywhere.
   ========================================================================== */

.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);
}
.apx-list b { font-family: var(--ar-display); font-size: 17.5px; font-weight: var(--ar-display-w); 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-weight: var(--ar-display-w-soft); 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); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .arms { grid-template-columns: 1fr; }
  .arms-read { position: static; }
}
@media (max-width: 620px) {
  /* on small screens the hotspots crowd the artwork: the list below carries it */
  .hot { width: 24px; height: 24px; }
  .hot span { display: none; }
}
