/* ================================================================
   CCED — Canadian Centre for Epigraphic Documents
   style.css  |  Scholarly Monumentalism
   ================================================================ */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --ink:         #0F1923;
  --ink-mid:     #253545;
  --mid:         #4A5D6E;
  --muted:       #7A8E9C;
  --light:       #9AAEBB;

  --accent:      #8B1A1A;
  --accent-dk:   #6B0F0F;
  --accent-md:   #A52828;
  --accent-lt:   rgba(139,26,26,0.08);

  --gold:        #C4943A;
  --gold-lt:     rgba(196,148,58,0.10);

  --surface:     #F7F3ED;
  --cream:       #EDE8DF;
  --parchment:   #F5F0E8;
  --white:       #FFFFFF;

  --border:      #DDD6CB;
  --border-md:   #C9C0B3;
  --border-dk:   #B5A99A;

  --shadow-sm:   0 2px 8px rgba(15,25,35,0.07);
  --shadow:      0 4px 20px rgba(15,25,35,0.09);
  --shadow-lg:   0 16px 48px rgba(15,25,35,0.14);

  --container:   1360px;
  --gutter:      3.5rem;
  --radius:      6px;
}

@media (max-width: 1024px) { :root { --gutter: 2.5rem; } }
@media (max-width: 640px)  { :root { --gutter: 1.5rem; } }

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
}
h2 + p, h2 + .about-blockquote { margin-top: 1.5rem; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--mid); line-height: 1.8; }

.mono {
  font-family: 'DM Mono', monospace;
  font-size: .72em;
  letter-spacing: .04em;
}

/* ── Eyebrow ────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 18px; height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}
.eyebrow-gold { color: var(--gold); }
.eyebrow-gold::before { background: var(--gold); }
.eyebrow-muted { color: var(--muted); }
.eyebrow-muted::before { background: var(--muted); }
.eyebrow-white { color: rgba(255,255,255,.55); }
.eyebrow-white::before { background: rgba(255,255,255,.35); }

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes ruledIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes countPulse {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.l1 { animation: fadeUp .85s cubic-bezier(.22,1,.36,1) .04s both; }
.l2 { animation: fadeUp .85s cubic-bezier(.22,1,.36,1) .16s both; }
.l3 { animation: fadeUp .85s cubic-bezier(.22,1,.36,1) .28s both; }
.l4 { animation: fadeUp .85s cubic-bezier(.22,1,.36,1) .40s both; }
.l5 { animation: fadeIn 1s ease .55s both; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-fast { transition-duration: .45s; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Layout Helpers ─────────────────────────────────────────────── */
.inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 6.5rem 0; }
.section-sm { padding: 4rem 0; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--radius);
  padding: .8rem 1.6rem;
  transition: all .2s ease;
  cursor: pointer;
  border: none;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dk);
  box-shadow: 0 6px 20px rgba(139,26,26,.3);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-md);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lt);
}
.btn-ghost-white {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.15);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(247,243,237,.9);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
#nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(247,243,237,.97);
  box-shadow: 0 1px 16px rgba(15,25,35,.06);
}
body.has-admin-bar #nav { top: 36px; }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-brand-mark {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Estrangelo Edessa', 'Serto Jerusalem', 'East Syriac Adiabene', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  flex-shrink: 0;
  direction: rtl;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.nav-brand-text {}
.nav-brand-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.nav-brand-sub {
  display: block;
  font-size: .58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  line-height: 1;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

/* ── Nav link: sliding underline from accent colour ── */
.nav-links a {
  position: relative;
  padding: .45rem .85rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--mid);
  border-radius: 0;
  white-space: nowrap;
  transition: color .22s ease;
}
/* thin rule that slides in from left on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: .85rem; right: .85rem;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }

/* ── Search: icon-only pill that opens a small label on hover ── */
/* Pill that teases on hover, then expands into a real search field on click.
   Submits to /entries so the nav search always lands on the collections search. */
.nav-search {
  position: relative;
  margin-left: .6rem;
  display: flex;
  align-items: center;
  background: transparent;
  border: 1.5px solid var(--border-md);
  border-radius: 20px;
  overflow: hidden;
  /* width starts tight, grows on hover, opens wide on click */
  max-width: 38px;
  transition: max-width .35s cubic-bezier(.22,1,.36,1),
              border-color .22s ease,
              background .22s ease;
}
.nav-search:hover {
  max-width: 120px;
  border-color: var(--accent);
  background: var(--accent-lt);
}
.nav-search.open {
  max-width: 290px;
  border-color: var(--accent);
  background: var(--white);
}
.nav-search-btn {
  flex-shrink: 0;
  padding: .48rem .75rem;
  background: transparent;
  border: none;
  border-radius: 20px;
  color: var(--mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  transition: color .22s ease;
}
.nav-search:hover .nav-search-btn,
.nav-search.open .nav-search-btn { color: var(--accent); }
.nav-search-btn svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  stroke: currentColor;
}
.nav-search-btn span {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease .1s, transform .2s ease .1s;
  font-size: .77rem;
  pointer-events: none;
}
.nav-search:hover .nav-search-btn span {
  opacity: 1;
  transform: translateX(0);
}
/* once open, the live field replaces the "Search" label */
.nav-search.open .nav-search-btn span { display: none; }
.nav-search-input {
  flex: 1;
  min-width: 0;
  width: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  color: var(--ink);
  opacity: 0;
  transition: opacity .2s ease;
}
.nav-search.open .nav-search-input {
  width: auto;
  padding: .48rem .95rem .48rem 0;
  opacity: 1;
}
.nav-search-input::placeholder { color: var(--muted); }

/* ── Donate: bordered pill that fills on hover with glow ── */
.nav-cta {
  flex-shrink: 0;
  margin-left: .4rem;
  padding: .48rem 1.15rem !important;
  background: transparent !important;
  color: var(--accent) !important;
  border: 1.5px solid var(--accent) !important;
  border-radius: 20px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  white-space: nowrap;
  transition: background .25s ease,
              color .25s ease,
              box-shadow .25s ease,
              transform .2s ease !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(139,26,26,.3) !important;
  transform: translateY(-1px) !important;
}

/* ═══════════════════════════════════════════════════════════════
   MEGAMENU
═══════════════════════════════════════════════════════════════ */
.nav-has-mega {
  position: static;
  display: flex;
  align-items: center;
}
.nav-has-mega > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  position: relative;
  padding: .45rem .85rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--mid);
  white-space: nowrap;
  transition: color .22s ease;
}
.nav-has-mega > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: .85rem; right: .85rem;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.nav-has-mega:hover > a,
.nav-has-mega.active > a { color: var(--ink); }
.nav-has-mega:hover > a::after,
.nav-has-mega.active > a::after { transform: scaleX(1); }

.mega-chevron {
  width: 8px; height: 8px;
  stroke: currentColor;
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  flex-shrink: 0;
  margin-top: 1px;
  overflow: visible !important;
}
.nav-has-mega.mega-open .mega-chevron { transform: rotate(180deg); }

/* ── Panel shell ── */
.mega-panel {
  position: fixed;
  top: 70px;
  left: 0; right: 0;
  z-index: 999;
  background: var(--surface);
  border-top: 2px solid var(--accent);
  box-shadow: 0 1px 0 var(--border), 0 20px 60px rgba(15,25,35,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .26s cubic-bezier(.22,1,.36,1),
              transform .26s cubic-bezier(.22,1,.36,1),
              visibility .26s;
  pointer-events: none;
}
.mega-panel.mega-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Three-column layout: browse | collections | featured ── */
.mega-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 190px 1px 1fr 1px 210px;
  gap: 0;
  align-items: stretch;
}

/* ── Vertical rule dividers ── */
.mega-divider {
  background: var(--border);
  margin: 1.75rem 0;
  width: 1px;
  align-self: stretch;
}

/* ── Left: Browse filters ── */
.mega-browse {
  padding: 1.75rem 2rem 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mega-browse-group {}
.mega-col-label {
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .65rem;
  display: block;
}
.mega-browse ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mega-browse ul li {
  opacity: 0;
  transform: translateY(5px);
}
.mega-panel.mega-visible .mega-browse ul li {
  animation: megaFadeUp .32s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(.04s + var(--i, 0) * .04s);
}
.mega-browse ul li a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  color: var(--mid);
  border-radius: 5px;
  text-decoration: none;
  transition: color .16s ease, background .16s ease, padding-left .16s ease;
}
.mega-browse ul li a:hover {
  color: var(--ink);
  background: rgba(15,25,35,.04);
  padding-left: .75rem;
}
.mega-browse ul li a svg {
  width: 10px; height: 10px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: .5;
  transition: opacity .16s ease;
}
.mega-browse ul li a:hover svg { opacity: 1; }
.mega-see-all {
  color: var(--accent) !important;
  font-size: .74rem !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  margin-top: .2rem;
}

/* ── Centre: Collections hero ── */
.mega-collections {
  padding: 1.75rem 2rem;
}
.mega-collections-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.mega-collections-header .mega-col-label { margin-bottom: 0; }
.mega-collections-header a {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  color: var(--mid);
  text-decoration: none;
  transition: color .16s;
}
.mega-collections-header a:hover { color: var(--accent); }

.mega-collection-cards {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.mega-collection-card {
  opacity: 0;
  transform: translateY(8px);
}
.mega-panel.mega-visible .mega-collection-card {
  animation: megaFadeUp .36s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(.08s + var(--i, 0) * .07s);
}
.mega-collection-card a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mega-collection-card a:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(139,26,26,.08);
  transform: translateY(-1px);
}
.mega-cc-arrow {
  margin-left: auto;
  font-size: .8rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
  flex-shrink: 0;
}
.mega-collection-card a:hover .mega-cc-arrow {
  opacity: 1;
  transform: translateX(0);
}
.mega-cc-icon {
  width: 26px; height: 26px;
  background: var(--accent-lt);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-cc-icon svg {
  width: 12px; height: 12px;
  color: var(--accent);
}
.mega-cc-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.mega-cc-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.mega-cc-desc {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: .68rem;
  color: var(--mid);
  line-height: 1.4;
}
.mega-cc-count {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  color: rgba(15,25,35,.35);
  margin-top: .2rem;
  letter-spacing: .02em;
}

/* ── Right: Featured entry ── */
.mega-featured-col {
  padding: 2rem 0 2rem 2rem;
}
.mega-featured-col .mega-col-label { margin-bottom: .85rem; }

.mega-featured {
  opacity: 0;
  transform: translateY(8px);
}
.mega-panel.mega-visible .mega-featured {
  animation: megaFadeUp .38s cubic-bezier(.22,1,.36,1) .1s forwards;
}
.mega-featured-link {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: #fff;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.mega-featured-link:hover {
  border-color: var(--border-dk);
  box-shadow: 0 8px 28px rgba(15,25,35,.10);
  transform: translateY(-3px);
}

/* Image — 16/9 with overflow hidden for zoom */
.mega-featured-visual {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
}
.mega-featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.mega-featured-link:hover .mega-featured-img { transform: scale(1.03); }

/* Code badge — top-left overlay matching entry-card-code */
.mega-featured-code {
  position: absolute;
  top: .6rem; left: .6rem;
  font-family: 'DM Mono', monospace;
  font-size: .65rem;
  font-weight: 600;
  color: #fff;
  background: rgba(15,25,35,.65);
  backdrop-filter: blur(6px);
  padding: .2rem .5rem;
  border-radius: 4px;
  letter-spacing: .04em;
  line-height: 1.4;
}

.mega-featured-body {
  padding: .75rem .9rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.mega-featured-place {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.3;
}
.mega-featured-region {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  color: var(--muted);
}
.mega-featured-cta {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: .5rem;
  transition: letter-spacing .2s ease;
}
.mega-featured-link:hover .mega-featured-cta { letter-spacing: .03em; }

@keyframes megaFadeUp {
  to { opacity: 1; transform: translateY(0); }
}


.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
  border: none;
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: absolute;
  top: 70px; left: 0; right: 0;
  background: var(--parchment);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem var(--gutter) 1.75rem;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: .7rem 0;
  font-size: .92rem;
  font-weight: 500;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  transition: color .18s;
}
.nav-mobile a:last-child { border: none; }
.nav-mobile a:hover { color: var(--ink); }
.nav-mobile-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .25rem .3rem .25rem .9rem;
  background: var(--white);
  border: 1.5px solid var(--border-md);
  border-radius: 24px;
}
.nav-mobile-search input {
  flex: 1;
  min-width: 0;
  padding: .5rem 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: var(--ink);
}
.nav-mobile-search input::placeholder { color: var(--muted); }
.nav-mobile-search button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  transition: background .18s ease;
}
.nav-mobile-search button:hover { background: var(--accent-dk); }
.nav-mobile-search button svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-brand-sub { display: none; }
}

/* ── Megamenu responsive ── */

/* 1200px: tighten horizontal padding slightly */
@media (max-width: 1200px) {
  .mega-inner {
    grid-template-columns: 170px 1px 1fr 1px 195px;
  }
  .mega-browse { padding: 1.5rem 1.5rem 1.5rem 0; }
  .mega-collections { padding: 1.5rem 1.5rem; }
  .mega-featured-col { padding: 1.5rem 0 1.5rem 1.5rem; }
}

/* 1024px: drop the browse column, collections + featured only */
@media (max-width: 1024px) {
  .mega-inner {
    grid-template-columns: 1fr 1px 230px;
  }
  /* Hide browse col + its divider */
  .mega-browse { display: none; }
  .mega-browse + .mega-divider { display: none; }
  .mega-collections { padding: 1.5rem 2rem 1.5rem 1.5rem; }
  .mega-featured-col { padding: 1.5rem 0 1.5rem 1.5rem; }
}

/* 760px and below: megamenu hidden, hamburger takes over */
@media (max-width: 760px) {
  .mega-panel { display: none !important; }
}


/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
}
body.has-admin-bar #hero { padding-top: calc(70px + 36px); }

/* Layered atmosphere */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 78% 45%, rgba(139,26,26,.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 15% 70%, rgba(196,148,58,.07) 0%, transparent 55%),
    radial-gradient(ellipse 80% 40% at 50% 0%,  rgba(37,53,69,.5) 0%, transparent 70%);
  pointer-events: none;
}

/* Decorative Syriac alap letterform */
#hero::after {
  content: 'ܐ';
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(300px, 38vw, 560px);
  color: rgba(255,255,255,.018);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: 0;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem var(--gutter) 6rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Hero content */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .28rem .75rem .28rem .4rem;
  background: rgba(139,26,26,.22);
  border: 1px solid rgba(139,26,26,.35);
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #FFAAAA;
  margin-bottom: 1.5rem;
}
.hero-kicker-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #FF6B6B;
  animation: kickerPulse 2.5s ease infinite;
}
@keyframes kickerPulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.35); }
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,.55);
  font-weight: 300;
}

.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,.48);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Search bar */
.hero-search {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.hero-search-label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.28);
  margin-bottom: .75rem;
}
.hero-search-bar {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.hero-search-bar:focus-within {
  border-color: rgba(139,26,26,.6);
  background: rgba(255,255,255,.08);
}
.hero-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: .85rem 1.1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  color: rgba(255,255,255,.85);
}
.hero-search-bar input::placeholder { color: rgba(255,255,255,.25); }
.hero-search-bar button {
  padding: .85rem 1.2rem;
  background: var(--accent);
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .2s;
  white-space: nowrap;
}
.hero-search-bar button:hover { background: var(--accent-dk); }
.hero-search-bar button svg { width: 14px; height: 14px; }

/* Hero panel */
.hero-panel {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 1.75rem;
  backdrop-filter: blur(6px);
}
.hero-panel-head {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255,255,255,.25);
  padding-bottom: .9rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-stat-row {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.hero-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.045);
}
.hero-stat-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}
.hero-stat-l {
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  text-align: right;
  line-height: 1.45;
}
.hero-panel-foot {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(139,26,26,.18);
  border: 1px solid rgba(139,26,26,.28);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.hero-panel-foot-label {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #FFAAAA;
}
.hero-panel-foot-label svg { width: 11px; height: 11px; flex-shrink: 0; }
.hero-panel-foot strong {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  line-height: 1.35;
}
.hero-panel-foot p {
  font-size: .73rem;
  color: rgba(255,255,255,.38);
  line-height: 1.6;
  margin: 0;
}
.hero-panel-foot a {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: #FFAAAA;
  border-bottom: 1px solid rgba(255,120,120,.3);
  padding-bottom: .05rem;
  transition: color .18s, border-color .18s;
  margin-top: .1rem;
}
.hero-panel-foot a:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* Scroll pip — anchored to left so it clears the search bar */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 1;
}
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.22));
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%, 100% { opacity: .5; transform: scaleY(.8); transform-origin: top; }
  50%       { opacity: 1; transform: scaleY(1); }
}
.hero-scroll-txt {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
}

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; max-width: 680px; }
  .hero-panel { display: none; }
}
@media (max-width: 640px) {
  .hero-inner { padding: 3rem var(--gutter) 5rem; }
  .hero::after { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   INTRO RIBBON
═══════════════════════════════════════════════════════════════ */
#intro-ribbon {
  background: var(--accent);
  padding: 1.4rem 0;
}
.ribbon-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.ribbon-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,.88);
  flex: 1;
  min-width: 200px;
  line-height: 1.55;
}
.ribbon-link {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: .1rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .18s, border-color .18s;
}
.ribbon-link:hover { color: #fff; border-color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════════════════════════════════
   WHAT IS EPIGRAPHY
═══════════════════════════════════════════════════════════════ */
#what-is {
  background: var(--parchment);
}
.what-is-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: center;
}
.what-is-text h2 { margin-bottom: 1.25rem; }
.what-is-text p  { margin-bottom: 1.2rem; }
.what-is-text p:last-of-type { margin-bottom: 2rem; }

.what-is-visual { position: relative; }
.what-is-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
/* Ruled-line overlay caption */
.what-is-cap {
  position: absolute;
  left: -2rem;
  bottom: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  max-width: 230px;
  box-shadow: var(--shadow);
}
.what-is-cap-code {
  font-family: 'DM Mono', monospace;
  font-size: .66rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: .35rem;
  letter-spacing: .04em;
}
.what-is-cap-text {
  font-size: .76rem;
  color: var(--mid);
  line-height: 1.5;
}
.what-is-cap-detail {
  font-size: .68rem;
  color: var(--muted);
  margin-top: .3rem;
  font-style: italic;
}

@media (max-width: 880px) {
  .what-is-grid { grid-template-columns: 1fr; gap: 3rem; }
  .what-is-visual { order: -1; max-width: 480px; }
  .what-is-cap { left: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════════════════ */
#stats-bar {
  background: var(--ink-mid);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,.06);
}
.stat-cell {
  padding: 3.75rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.stat-cell::after {
  content: '';
  position: absolute;
  bottom: 0; left: 2.5rem;
  height: 2.5px;
  width: 32px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.stat-cell.in::after { transform: scaleX(1); }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-bottom: .55rem;
  transition: opacity .4s;
}
.stat-lbl {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.3);
  margin-bottom: .3rem;
}
.stat-sub {
  font-size: .76rem;
  color: rgba(255,255,255,.18);
  line-height: 1.45;
}

@media (max-width: 760px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat-cell { padding: 2.5rem var(--gutter); }
}

/* ═══════════════════════════════════════════════════════════════
   RECENT ENTRIES
═══════════════════════════════════════════════════════════════ */
#recent-entries {
  background: var(--white);
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
  overflow: hidden;
}

/* Full-bleed ticker wrapper */
.entries-ticker-wrap {
  position: relative;
  margin-top: 2.5rem;
  overflow: hidden;
}

/* Edge fade masks */
.ticker-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ticker-fade-l {
  left: 0;
  background: linear-gradient(to right, var(--white) 20%, transparent);
}
.ticker-fade-r {
  right: 0;
  background: linear-gradient(to left, var(--white) 20%, transparent);
}

/* Scrolling track */
.entries-ticker {
  display: flex;
  width: max-content;
  animation: ticker-scroll 62s linear infinite;
  will-change: transform;
}
.entries-ticker:hover {
  animation-play-state: paused;
}
.ticker-set {
  display: flex;
  gap: 1.25rem;
  padding: 0.5rem 0 1.5rem; /* vertical breathing for box-shadow */
  flex-shrink: 0;
  padding-right: 1.25rem; /* match gap between sets */
}

/* Card width in ticker — fixed, not grid-dependent */
.entries-ticker .entry-card {
  width: 380px;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Progress tracker */
.ticker-progress-wrap {
  max-width: var(--container);
  margin: 1.75rem auto 0;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ticker-progress-track {
  flex: 1;
  height: 1px;
  background: var(--border);
  position: relative;
  border-radius: 1px;
}
.ticker-progress-bar {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.1s linear;
}
.ticker-progress-label {
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  letter-spacing: .08em;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 32px;
  text-align: right;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .entries-ticker { animation: none; overflow-x: auto; }
}


.section-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.section-hdr-left { flex: 1; }
.section-hdr-left .eyebrow { margin-bottom: .6rem; }
.section-hdr-left h2 { margin: .2rem 0 0; }
.section-hdr-right { flex-shrink: 0; }
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: .15rem;
  transition: opacity .2s;
}
.view-all-link:hover { opacity: .65; }
.view-all-link svg { width: 11px; height: 11px; transition: transform .2s; }
.view-all-link:hover svg { transform: translateX(3px); }

/* Catalog card grid */
/* ═══════════════════════════════════════════════════════════════
   ENTRY CARDS — Catalog Record Style
═══════════════════════════════════════════════════════════════ */
.entries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.entry-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  position: relative;
}
.entry-card:hover {
  border-color: var(--border-dk);
  box-shadow: 0 8px 32px rgba(15,25,35,.10);
  transform: translateY(-3px);
}

/* Image area with entry code badge overlay */
.entry-card-visual {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
}
.entry-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.entry-card:hover .entry-card-img { transform: scale(1.03); }

.entry-card-img-ph {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.entry-card:hover .entry-card-img-ph { transform: scale(1.04); }

/* Entry code — prominent badge in top-left of image */
.entry-card-code {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .3rem .65rem;
  background: var(--ink);
  color: rgba(255,255,255,.9);
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .06em;
  border-radius: 3px;
  z-index: 1;
  /* Subtle transition on hover */
  transition: background .2s ease;
}
.entry-card:hover .entry-card-code {
  background: var(--accent);
}

/* Collection badge — top-right */
.entry-card-collection {
  position: absolute;
  top: .75rem;
  right: .75rem;
  padding: .25rem .6rem;
  background: rgba(249,246,240,.92);
  backdrop-filter: blur(4px);
  color: var(--mid);
  font-family: 'DM Sans', sans-serif;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 3px;
  z-index: 1;
  border: 1px solid rgba(0,0,0,.06);
}

/* Card body */
.entry-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  border-top: 1px solid var(--border);
}

/* Location — the "headline" of the record */
.entry-card-location {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Breadcrumb: place > region */
.entry-card-geo {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .76rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.entry-card-geo-sep {
  color: var(--border-dk);
  font-size: .6rem;
}
.entry-card-place { color: var(--mid); font-weight: 500; }
.entry-card-region { color: var(--muted); }

/* Ruled divider */
.entry-card-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: .85rem;
}

/* Meta row: language + dimensions */
.entry-card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.entry-card-lang {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .6rem;
  background: var(--gold-lt);
  border: 1px solid rgba(196,148,58,.2);
  border-radius: 3px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold);
}
.entry-card-dim {
  font-family: 'DM Mono', monospace;
  font-size: .66rem;
  color: var(--muted);
  letter-spacing: .03em;
}
.entry-card-arrow {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s;
}
.entry-card-arrow svg { width: 11px; height: 11px; }
.entry-card:hover .entry-card-arrow {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lt);
}

@media (max-width: 760px) {
  .entries-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   ABOUT SYRIAC
═══════════════════════════════════════════════════════════════ */
#about-syriac {
  background: var(--parchment);
  position: relative;
}
#about-syriac::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 6rem;
  align-items: start;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p  { margin-bottom: 1.2rem; }
.about-blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--accent);
  background: rgba(139,26,26,.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.65;
  margin: 0;
}

/* Right column: small archival figure */
.about-figure {
  display: flex;
  flex-direction: column;
}
.about-figure-img-wrap {
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--cream);
  line-height: 0;
}
.about-img-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.04) brightness(.97);
}
/* Archival caption card */
.about-figure-caption {
  background: var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.1rem 1.25rem;
}
.about-figure-caption-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.about-figure-caption-meta {
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
.about-figure-caption-row {
  display: flex;
  gap: .5rem;
  align-items: baseline;
}
.about-figure-caption-label {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.25);
  flex-shrink: 0;
  min-width: 52px;
}
.about-figure-caption-val {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  line-height: 1.4;
}
.about-figure-caption-val em {
  font-style: normal;
  color: #FFAAAA;
}

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-figure { position: static; max-width: 360px; }
}

/* ═══════════════════════════════════════════════════════════════
   COLLECTIONS
═══════════════════════════════════════════════════════════════ */
#collections { background: var(--white); }
/* ═══════════════════════════════════════════════════════════════
   JOURNAL PREVIEW
═══════════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0; }
.btn-sm {
  font-size: .76rem;
  padding: .5rem 1.1rem;
  gap: .4rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-sm svg { width: 11px; height: 11px; }

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.journal-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.journal-card:hover {
  border-color: var(--border-dk);
  box-shadow: 0 8px 32px rgba(15,25,35,.10);
  transform: translateY(-3px);
}

/* Typographic dark header */
.journal-card-head {
  background: var(--ink);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.journal-card-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
}
.journal-card-pdf {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold);
  background: rgba(196,148,58,.12);
  border: 1px solid rgba(196,148,58,.22);
  border-radius: 3px;
  padding: .2rem .5rem;
}
.journal-card-pdf svg { width: 9px; height: 11px; fill: var(--gold); }

/* Card body */
.journal-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.journal-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: .6rem;
}
.journal-card-byline {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.journal-card-author { color: var(--mid); font-weight: 500; }
.journal-card-geo-sep { color: var(--border-dk); font-size: .6rem; }
.journal-card-assoc { color: var(--muted); }

.journal-card-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: .85rem;
}
.journal-card-abstract {
  font-size: .8rem;
  color: var(--mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}
.journal-card-footer {
  display: flex;
  align-items: center;
  margin-top: auto;
}
.journal-card-dl {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase;
}

@media (max-width: 820px) { .journal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .journal-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .section-header { flex-direction: column; align-items: flex-start; } }


/* ═══════════════════════════════════════════════════════════════
   INTERIOR HERO  (shared dark hero for inner pages)
═══════════════════════════════════════════════════════════════ */
.interior-hero {
  position: relative;
  background: var(--ink);
  padding: 8rem 0 0;
  overflow: hidden;
}
.interior-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 90% at 100% 60%, rgba(139,26,26,.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 55% at 0%   75%, rgba(196,148,58,.05) 0%, transparent 52%),
    radial-gradient(ellipse 75% 40% at 50%   0%, rgba(37,53,69,.55)   0%, transparent 65%);
  pointer-events: none;
}
.interior-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: end;
  padding-bottom: 4rem;
}
.interior-hero-text {
  max-width: 620px;
}
.interior-hero-text .eyebrow-white {
  margin-bottom: 1.1rem;
}
.interior-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -.025em;
  margin-bottom: 1.2rem;
}
.interior-hero-title em {
  font-style: italic;
  color: rgba(255,255,255,.35);
  font-weight: 400;
}
.interior-hero-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  color: rgba(255,255,255,.32);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2rem;
}
.interior-hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.5rem;
}
.interior-hero-stat {
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
.interior-hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  font-style: italic;
  color: rgba(255,255,255,.7);
  line-height: 1;
}
.interior-hero-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: .58rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
}
.interior-hero-stat-sep {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.08);
}

/* Decorative right panel */
.interior-hero-decor {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 1rem;
  padding-bottom: .5rem;
  opacity: .18;
  user-select: none;
}
.interior-hero-syriac {
  font-family: 'Estrangelo Edessa', 'Serto Jerusalem', serif;
  font-size: clamp(4rem, 7vw, 7.5rem);
  color: #fff;
  direction: rtl;
  line-height: 1;
  letter-spacing: .04em;
}
.interior-hero-decor-rule {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.5);
  align-self: flex-end;
}

/* Bottom rule that bleeds into page content */
.interior-hero-base-rule {
  height: 1px;
  background: rgba(255,255,255,.06);
}

@media (max-width: 860px) {
  .interior-hero-inner {
    grid-template-columns: 1fr;
  }
  .interior-hero-decor { display: none; }
  .interior-hero-inner { padding-bottom: 3rem; }
}
@media (max-width: 640px) {
  .interior-hero { padding-top: 6rem; }
  .interior-hero-inner { padding-bottom: 2.5rem; }
}


/* ═══════════════════════════════════════════════════════════════
   JOURNAL PAGE  (journal.php)
═══════════════════════════════════════════════════════════════ */

/* ── Shared badge ─────────────────────────────────────────────── */
.journal-pdf-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: 'DM Mono', monospace;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(196,148,58,.10);
  border: 1px solid rgba(196,148,58,.22);
  border-radius: 3px;
  padding: .22rem .55rem;
}
.journal-pdf-badge svg { width: 8px; height: 10px; }
.journal-pdf-badge-sm {
  font-size: .54rem;
  padding: .15rem .4rem;
}
.journal-byline-sep {
  color: rgba(15,25,35,.2);
  font-size: .7rem;
}

/* ── Featured article card ────────────────────────────────────── */
.journal-featured-section { padding-top: 4rem; }

.journal-featured-card {
  display: grid;
  grid-template-columns: 1fr 260px;
  min-height: 320px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}
.journal-featured-card:hover {
  border-color: var(--border-dk);
  box-shadow: 0 12px 44px rgba(15,25,35,.11);
  transform: translateY(-4px);
}

/* Left: content */
.journal-featured-left {
  padding: 2.75rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
}
.journal-featured-mark-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.4rem;
}
.journal-featured-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .1em;
  color: rgba(15,25,35,.28);
}
.journal-featured-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: .9rem;
}
.journal-featured-byline {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.journal-featured-author {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--mid);
}
.journal-featured-assoc {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  color: var(--muted);
}
.journal-featured-abstract {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  color: var(--mid);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.75rem;
}
.journal-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: auto;
}
.journal-featured-date {
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  letter-spacing: .1em;
  color: rgba(15,25,35,.3);
}
.journal-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap .2s ease;
}
.journal-featured-cta svg { width: 11px; height: 11px; }
.journal-featured-card:hover .journal-featured-cta { gap: .65rem; }

/* Right: dark accent panel */
.journal-featured-right {
  background: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2rem 1.75rem;
  overflow: hidden;
}
.journal-featured-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 110% 20%, rgba(139,26,26,.2) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at -20% 90%, rgba(196,148,58,.07) 0%, transparent 55%);
  pointer-events: none;
}
.journal-featured-syriac {
  font-family: 'Estrangelo Edessa', 'Serto Jerusalem', serif;
  font-size: 4.5rem;
  color: rgba(255,255,255,.08);
  direction: rtl;
  line-height: 1;
  user-select: none;
  position: relative;
  z-index: 1;
}
.journal-featured-issue {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
  position: relative;
  z-index: 1;
}
.journal-featured-issue-label {
  font-family: 'DM Mono', monospace;
  font-size: .55rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
}
.journal-featured-issue-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(255,255,255,.18);
  line-height: 1;
}

/* ── Further articles list ────────────────────────────────────── */
.journal-rest-section { padding-top: 0; padding-bottom: 5rem; }
.journal-rest-header { margin-bottom: 1.5rem; }
.journal-rest-list {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--border);
}
.journal-rest-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background .18s ease;
}
.journal-rest-item:hover { background: transparent; }

.journal-rest-num {
  font-family: 'DM Mono', monospace;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(15,25,35,.18);
  padding-top: .1rem;
}
.journal-rest-body { min-width: 0; }
.journal-rest-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: .35rem;
  transition: color .18s ease;
}
.journal-rest-item:hover .journal-rest-title { color: var(--accent); }
.journal-rest-byline {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.journal-rest-author {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 500;
  color: var(--mid);
}
.journal-rest-assoc {
  font-family: 'DM Sans', sans-serif;
  font-size: .73rem;
  color: var(--muted);
}

.journal-rest-right {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-shrink: 0;
}
.journal-rest-year {
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  letter-spacing: .1em;
  color: rgba(15,25,35,.25);
}
.journal-rest-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.journal-rest-arrow svg { width: 10px; height: 10px; }
.journal-rest-item:hover .journal-rest-arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateX(2px);
}

/* ── Empty state ──────────────────────────────────────────────── */
.journal-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 0;
  gap: 1rem;
}
.journal-empty-icon {
  width: 48px; height: 48px;
  color: var(--light);
}
.journal-empty-icon svg { width: 100%; height: 100%; }
.journal-empty-hed {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.journal-empty-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.6;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .journal-featured-card {
    grid-template-columns: 1fr;
  }
  .journal-featured-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    min-height: 80px;
  }
  .journal-featured-syriac { font-size: 2.5rem; }
  .journal-featured-issue { flex-direction: row; gap: .75rem; align-items: baseline; }
}
@media (max-width: 640px) {
  .journal-featured-left { padding: 2rem 1.75rem; }
  .journal-rest-item {
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
  }
  .journal-rest-right {
    grid-column: 2;
    gap: .6rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   JOURNAL ARTICLE DETAIL  (journal-post.php)
═══════════════════════════════════════════════════════════════ */

/* ── Page layout: main col + sidebar ─────────────────────────── */
.jart-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem var(--gutter) 6rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* ── PDF download CTA ─────────────────────────────────────────── */
.jart-pdf-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.25rem;
  position: relative;
  overflow: hidden;
}
.jart-pdf-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 110% 50%, rgba(139,26,26,.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at -10% 50%, rgba(196,148,58,.07) 0%, transparent 55%);
  pointer-events: none;
}
.jart-pdf-cta-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}
.jart-pdf-icon {
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,.5);
  flex-shrink: 0;
}
.jart-pdf-icon svg { width: 100%; height: 100%; }
.jart-pdf-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.jart-pdf-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.jart-pdf-note {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}
.jart-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border-radius: 6px;
  padding: .7rem 1.3rem;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.jart-pdf-btn svg { width: 14px; height: 14px; }
.jart-pdf-btn:hover {
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* ── Meta strip ───────────────────────────────────────────────── */
.jart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.jart-meta-left {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.jart-meta-author {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--mid);
}
.jart-meta-sep { color: rgba(15,25,35,.2); font-size: .75rem; }
.jart-meta-assoc {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  color: var(--muted);
}
.jart-meta-right {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.jart-meta-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: .88rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .08em;
  color: rgba(15,25,35,.22);
}
.jart-meta-year {
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  letter-spacing: .1em;
  color: rgba(15,25,35,.22);
}

/* ── Rule ─────────────────────────────────────────────────────── */
.jart-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 2.25rem;
}

/* ── Article body ─────────────────────────────────────────────── */
.jart-body { margin-bottom: 2.5rem; }
.jart-abstract-label {
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.jart-abstract-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  color: var(--mid);
  line-height: 1.85;
  max-width: 68ch;
}
.jart-abstract-text p { margin-bottom: 1.2em; }
.jart-abstract-text p:last-child { margin-bottom: 0; }

/* ── Back link ────────────────────────────────────────────────── */
.jart-back { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.jart-back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  transition: color .18s ease, gap .18s ease;
}
.jart-back-link svg { width: 11px; height: 11px; }
.jart-back-link:hover { color: var(--ink); gap: .65rem; }

/* ── Sidebar ──────────────────────────────────────────────────── */
.jart-sidebar {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Article info card */
.jart-info-card,
.jart-further {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
}
.jart-info-card-label {
  font-family: 'DM Mono', monospace;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  display: block;
}
.jart-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.jart-info-row:last-of-type { border-bottom: none; }
.jart-info-key {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  color: var(--muted);
  flex-shrink: 0;
}
.jart-info-val {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

/* Sidebar PDF button */
.jart-sidebar-pdf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: .75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.jart-sidebar-pdf-btn svg { width: 13px; height: 13px; }
.jart-sidebar-pdf-btn:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
}

/* Further articles */
.jart-further-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.jart-further-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: padding-left .18s ease;
}
.jart-further-item:last-child { border-bottom: none; }
.jart-further-item:hover { padding-left: .3rem; }
.jart-further-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  transition: color .18s ease;
}
.jart-further-item:hover .jart-further-title { color: var(--accent); }
.jart-further-author {
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem;
  color: var(--muted);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .jart-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3rem;
  }
  .jart-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .jart-pdf-cta {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .jart-pdf-btn { width: 100%; justify-content: center; }
  .jart-sidebar { grid-template-columns: 1fr; }
  .jart-abstract-text { font-size: 1.05rem; }
}


/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE  (about.php)
═══════════════════════════════════════════════════════════════ */

/* ── Mission band ─────────────────────────────────────────────── */
.about-mission-band {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}
.about-mission-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 90% at 100% 50%, rgba(139,26,26,.15) 0%, transparent 58%),
    radial-gradient(ellipse 40% 60% at 0%   50%, rgba(196,148,58,.05) 0%, transparent 52%);
  pointer-events: none;
}
.about-mission-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.about-mission-text .eyebrow-white { margin-bottom: 1.25rem; }
.about-mission-statement {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  max-width: 700px;
}
.about-mission-mark {
  font-family: 'Estrangelo Edessa', 'Serto Jerusalem', serif;
  font-size: clamp(4rem, 7vw, 7rem);
  color: rgba(255,255,255,.05);
  direction: rtl;
  user-select: none;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Team section ─────────────────────────────────────────────── */
.about-team-section { padding-bottom: 3rem; }
.about-team-header { margin-bottom: 2.5rem; }
.about-team-header h2 { margin-top: .4rem; }

/* Director featured card */
.about-director-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  background: #fff;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.about-director-role {
  font-family: 'DM Mono', monospace;
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 130px;
}
.about-director-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.about-director-credentials {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .06em;
}
.about-director-inst {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  color: var(--muted);
  margin-left: auto;
  text-align: right;
}

/* Staff groups */
.about-staff-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.about-staff-group {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
}
.about-staff-group-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: .58rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.about-staff-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.about-staff-member {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.about-staff-name {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}
.about-staff-credentials {
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  color: var(--accent);
  letter-spacing: .06em;
}
.about-staff-inst {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  color: var(--muted);
}

/* Academic contributors header */
.about-academics-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.about-section-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  display: block;
}

/* Academic grid */
.about-academics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0;
}
.about-academic {
  padding: 1.4rem 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.about-academic:hover {
  border-color: var(--border-dk);
  transform: translateY(-2px);
}
.about-academic-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .3rem;
  line-height: 1.2;
}
.about-academic-title {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 500;
  color: var(--mid);
  margin-bottom: .2rem;
}
.about-academic-dept {
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: .2rem;
}
.about-academic-inst {
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  letter-spacing: .06em;
  color: var(--accent);
  margin-top: .4rem;
}

/* ── Acknowledgements ──────────────────────────────────────────── */
.about-acknowledgements {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 5rem 0 4rem;
}
.about-ack-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.about-ack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 3rem;
}
.about-ack-item {
  padding: 1.5rem 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.about-ack-item:nth-child(3n) { border-right: none; }
.about-ack-item:nth-last-child(-n+3) { border-bottom: none; }
.about-ack-name {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.about-ack-inst {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  color: var(--muted);
}
.about-ack-uoft {
  display: flex;
  justify-content: center;
}
.about-ack-uoft img {
  height: 36px;
  width: auto;
  opacity: .45;
  filter: grayscale(1);
  transition: opacity .2s ease;
}
.about-ack-uoft img:hover { opacity: .7; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-mission-inner { grid-template-columns: 1fr; }
  .about-mission-mark { display: none; }
  .about-staff-groups { grid-template-columns: 1fr 1fr; }
  .about-academics-grid { grid-template-columns: 1fr 1fr; }
  .about-ack-grid { grid-template-columns: 1fr 1fr; }
  .about-ack-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .about-ack-item:nth-child(2n) { border-right: none; }
  .about-ack-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .about-ack-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 640px) {
  .about-director-card { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .about-director-inst { margin-left: 0; text-align: left; }
  .about-staff-groups { grid-template-columns: 1fr; }
  .about-academics-grid { grid-template-columns: 1fr; }
  .about-ack-grid { grid-template-columns: 1fr; }
  .about-ack-item { border-right: none; }
  .about-ack-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .about-ack-item:last-child { border-bottom: none; }
}


/* ═══════════════════════════════════════════════════════════════
   DONATE PAGE  (donate.php)
═══════════════════════════════════════════════════════════════ */

/* ── Layout ───────────────────────────────────────────────────── */
.donate-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

/* ── Form card ────────────────────────────────────────────────── */
.donate-form-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.donate-form-card-head {
  background: var(--ink);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.donate-form-card-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 110% 50%, rgba(139,26,26,.2) 0%, transparent 60%);
  pointer-events: none;
}
.donate-form-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  position: relative;
  z-index: 1;
}
.donate-form-head-text {
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  position: relative;
  z-index: 1;
}

/* ── Form body ────────────────────────────────────────────────── */
.donate-form {
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.donate-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.donate-field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.donate-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: .01em;
}
.donate-req { color: var(--accent); }

.donate-input {
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: .7rem .9rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  width: 100%;
  appearance: none;
}
.donate-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139,26,26,.08);
}
.donate-input--invalid {
  border-color: #c0392b;
  background: rgba(192,57,43,.04);
}
.donate-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}
.donate-select-wrap {
  position: relative;
}
.donate-select {
  padding-right: 2.25rem;
  cursor: pointer;
}
.donate-select-chevron {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 8px;
  color: var(--muted);
  pointer-events: none;
}

/* ── Status + submit ──────────────────────────────────────────── */
.donate-status {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  line-height: 1.5;
  padding: .85rem 1rem;
  border-radius: 6px;
  border: 1.5px solid;
}
.donate-status--ok {
  color: #166534;
  background: #f0fdf4;
  border-color: #86efac;
}
.donate-status--error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}

.donate-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: .9rem 1.75rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
  align-self: flex-start;
}
.donate-submit:hover:not(:disabled) {
  background: var(--accent-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139,26,26,.25);
}
.donate-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.donate-submit-arrow { width: 14px; height: 14px; transition: transform .18s ease; }
.donate-submit:hover:not(:disabled) .donate-submit-arrow { transform: translateX(3px); }

.donate-submit-spinner {
  width: 16px; height: 16px;
  display: none;
  animation: spinRotate .8s linear infinite;
}
@keyframes spinRotate { to { transform: rotate(360deg); } }

.donate-submit.is-loading .donate-submit-label { opacity: .6; }
.donate-submit.is-loading .donate-submit-arrow  { display: none; }
.donate-submit.is-loading .donate-submit-spinner { display: block; }

/* ── Sidebar ──────────────────────────────────────────────────── */
.donate-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 6rem;
}

/* Why give */
.donate-why { }
.donate-why .eyebrow { margin-bottom: .5rem; }
.donate-why-hed {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.donate-why-body {
  font-family: 'DM Sans', sans-serif;
  font-size: .83rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: .85rem;
}
.donate-why-body:last-child { margin-bottom: 0; }

/* Contact card */
.donate-contact-card {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  background: #fff;
}
.donate-contact-label {
  font-family: 'DM Mono', monospace;
  font-size: .58rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
  display: block;
}
.donate-contact-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: .5rem;
  transition: color .18s ease;
}
.donate-contact-link svg { width: 14px; height: 12px; flex-shrink: 0; }
.donate-contact-link:hover { color: var(--accent-dk); }
.donate-contact-note {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Impact list */
.donate-impact {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.donate-impact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.donate-impact-icon {
  width: 28px; height: 28px;
  background: rgba(139,26,26,.07);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.donate-impact-icon svg { width: 14px; height: 14px; }
.donate-impact-text {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  color: var(--mid);
  line-height: 1.5;
  padding-top: .25rem;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .donate-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .donate-sidebar { position: static; }
}
@media (max-width: 540px) {
  .donate-field-row { grid-template-columns: 1fr; }
  .donate-form { padding: 1.75rem 1.25rem; }
}


/* ═══════════════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════════════ */
#cta-banner {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
#cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 90% at 0% 50%, rgba(139,26,26,.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 70% at 100% 50%, rgba(196,148,58,.07) 0%, transparent 55%);
  pointer-events: none;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-text h2 { color: #fff; margin-bottom: 1rem; }
.cta-text p { color: rgba(255,255,255,.42); max-width: 480px; }
.cta-btns { display: flex; flex-direction: column; gap: .7rem; flex-shrink: 0; }
@media (max-width: 800px) {
  .cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-btns { flex-direction: row; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
#footer {
  background: #0A0D12;
  border-top: 1px solid rgba(255,255,255,.09);
}
.footer-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem var(--gutter) 3.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  margin-bottom: .2rem;
}
.footer-brand-full {
  font-size: .62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.2rem;
}
.footer-brand-desc {
  font-size: .8rem;
  color: rgba(255,255,255,.62);
  line-height: 1.75;
  max-width: 270px;
  margin-bottom: 1.5rem;
}
.footer-affil {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .9rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
}
.footer-affil-txt {
  font-size: .64rem;
  color: rgba(255,255,255,.55);
  line-height: 1.45;
  font-weight: 500;
}
.footer-col-ttl {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.2rem;
}
.footer-col a {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.68);
  padding: .3rem 0;
  transition: color .18s;
}
.footer-col a:hover { color: #fff; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .75rem;
}
.footer-contact-item svg { width: 13px; height: 13px; stroke: rgba(255,255,255,.45); fill: none; stroke-width: 1.5; margin-top: .15rem; flex-shrink: 0; }
.footer-contact-item a, .footer-contact-item span {
  font-size: .78rem;
  color: rgba(255,255,255,.68);
  line-height: 1.5;
  transition: color .18s;
}
.footer-contact-item a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  transition: color .18s;
}
.footer-bottom-links a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION: SURFACE ALTERNATES
═══════════════════════════════════════════════════════════════ */
.section-parchment { background: var(--parchment); }
.section-surface    { background: var(--surface); }
.section-dark       { background: var(--ink); }

/* ── Your project styles below ──────────────────────────────────── */
