/* ==========================================================
   TABLE OF CONTENTS — Editorial v2 with Najdi integration
   Constraint: 24 entries fit in A4 landscape (297×210mm).
   Layout: centered Sarlawh → headline → 2-col grid w/ Najdi
   vertical divider → bottom Colophon.
   ========================================================== */
.toc-editorial .toc-v2 {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  row-gap: 3mm;
  padding: 0;                /* .content already provides safe area */
  height: 100%;
}
/* Hide standalone TOC sarlawh + colophon — universal header/footer cover it */
.toc-editorial .toc-sarlawh,
.toc-editorial .toc-colophon { display: none; }
.toc-editorial .toc-sarlawh {
  width: 70mm;
  height: 7.5mm;
  display: block;
  margin: 0 auto 1mm auto;
}
.toc-editorial .toc-head-c {
  text-align: center;
  margin-bottom: 2mm;
}
.toc-editorial .toc-head-c .eyebrow {
  display: inline-block;
  margin-bottom: 1.5mm;
}
.toc-editorial .toc-title-c {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22pt;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
}

/* 2-column TOC grid with Najdi divider */
.toc-editorial .toc-grid {
  display: grid;
  grid-template-columns: 1fr 8mm 1fr;
  column-gap: 6mm;
  align-items: stretch;
  min-height: 0;
}
.toc-editorial .toc-c {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.toc-editorial .toc-divider-najdi {
  width: 6mm;
  height: 100%;
  align-self: stretch;
  display: block;
}

/* TOC row */
.toc-editorial .toc-r {
  display: grid;
  grid-template-columns: 11mm 8mm 1fr auto 8mm;
  column-gap: 2.5mm;
  align-items: center;
  padding: 1.6mm 0;
  border-bottom: 0.3pt solid rgba(15,27,60,0.08);
  text-decoration: none;
}
.toc-editorial .toc-r:last-child {
  border-bottom: none;
}
.toc-editorial .toc-n {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14pt;
  color: var(--gold);
  line-height: 1;
  text-align: center;
  letter-spacing: 0.01em;
}
.toc-editorial .toc-i {
  width: 7mm;
  height: 7mm;
  display: block;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
}
.toc-editorial .toc-l {
  display: flex;
  flex-direction: column;
  gap: 0.3mm;
  min-width: 0;
}
.toc-editorial .toc-ar {
  font-family: 'Tajawal', sans-serif;
  font-size: 9pt;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toc-editorial .toc-en {
  font-family: 'Inter', sans-serif;
  font-size: 6pt;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
}
.toc-editorial .toc-d {
  /* leader dots between label and page number */
  flex: 1;
  height: 0.4pt;
  background-image: linear-gradient(to right, rgba(15,27,60,0.25) 1px, transparent 1px);
  background-size: 3px 1px;
  background-repeat: repeat-x;
  background-position: center;
  align-self: center;
  min-width: 6mm;
}
.toc-editorial .toc-p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12pt;
  color: var(--ink);
  line-height: 1;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Colophon at the very bottom */
.toc-editorial .toc-colophon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3mm;
  padding-top: 2.5mm;
  border-top: 0.4pt solid rgba(15,27,60,0.10);
  margin-top: 1mm;
}
.toc-editorial .toc-colophon-svg {
  width: 14mm;
  height: 4mm;
  display: block;
  opacity: 0.7;
}
.toc-editorial .toc-colophon-text {
  font-family: 'Inter', sans-serif;
  font-size: 6.5pt;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-weight: 500;
}

/* Hide legacy TOC components — replaced by v2 */
.toc-editorial .content > .toc-head:not(.toc-head-c),
.toc-editorial .content > .toc-cols { display: none; }

