/* ─────────────────────────────────────────────────────────────
   Traditions — section styles on top of styles.css.
   Two views:
     ☆ Index  — grid OR chronological timeline of all 17
     ☆ Detail — single tradition: hero glyph, lore, teachings,
                dispatches, conceptual neighbors
   The tradition's own color tints the page subtly via
   --trad set on the page wrapper.
   ───────────────────────────────────────────────────────────── */

html, body { min-height: 100%; }
body.trad-body {
  background: var(--bg);
  overflow-x: hidden;
}

/* ───────── shared header (reuses .disp-head from dispatches) ───────── */
.trad-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 36px; min-height: 60px;
  background: color-mix(in srgb, var(--bg), transparent 10%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 50%);
}
.trad-brand {
  font-family: "Cinzel", serif;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: baseline; gap: 10px;
}
.trad-brand .sep { color: var(--muted); }
.trad-brand .sub { color: var(--text3); }
.trad-brand { white-space: nowrap; flex-shrink: 0; }
.trad-nav { display: flex; gap: 16px 18px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 1100px) {
  .trad-brand .sep, .trad-brand .sub { display: none; }
  .trad-nav { gap: 18px; }
}
.trad-nav a {
  font-family: "Jost", sans-serif;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
  position: relative; padding: 4px 0;
}
.trad-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent); transition: right 300ms ease;
}
.trad-nav a:hover, .trad-nav a.active { color: var(--accent-hi); }
.trad-nav a:hover::after, .trad-nav a.active::after { right: 0; }

/* ═══════════════════════════════════════════════════════════════
   INDEX PAGE
   ═══════════════════════════════════════════════════════════════ */

.tx-hero {
  text-align: center;
  padding: 88px 24px 36px;
  max-width: 900px;
  margin: 0 auto;
}
.tx-eyebrow {
  font-family: "Cinzel", serif;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 14px;
}
.tx-eyebrow::before, .tx-eyebrow::after {
  content: ""; width: 36px; height: 1px; background: var(--border2);
}
.tx-title {
  font-family: "Cinzel", serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 22px;
  text-shadow: 0 0 80px color-mix(in srgb, var(--glow), transparent 50%);
}
.tx-title em { color: var(--accent); font-style: normal; }
.tx-lede {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 300;
  color: var(--text3);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 620px;
  text-wrap: pretty;
}

/* view toggle */
.tx-view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg3);
  margin: 32px auto 0;
}
.tx-view-toggle button {
  background: transparent;
  border: 0;
  padding: 8px 18px;
  font-family: "Jost", sans-serif;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.tx-view-toggle button.active { background: var(--bg4); color: var(--cream); }
.tx-view-toggle button:hover:not(.active) { color: var(--text3); }
.tx-view-toggle-wrap {
  display: flex; justify-content: center;
  margin-top: 28px;
}

/* GRID view */
.tx-grid {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tx-card {
  display: block;
  background: var(--bg);
  padding: 32px 28px 28px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  transition: background .2s;
  min-height: 240px;
}
.tx-card:hover { background: var(--bg2); }
.tx-card::before {
  /* a colored halo behind the glyph that grows on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 30%, color-mix(in srgb, var(--trad) 24%, transparent), transparent 70%);
  opacity: 0.18;
  transition: opacity .35s;
  pointer-events: none;
}
.tx-card:hover::before { opacity: 0.55; }
.tx-card-glyph {
  display: flex; justify-content: center;
  margin-bottom: 18px;
  position: relative; z-index: 1;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 0 10px var(--trad));
}
.tx-card:hover .tx-card-glyph {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 0 20px var(--trad));
}
.tx-card-name {
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--trad);
  margin-bottom: 6px;
  position: relative; z-index: 1;
}
.tx-card-truth {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text2);
  line-height: 1.45;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.tx-card-era {
  text-align: center;
  font-family: "Jost", sans-serif;
  font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted);
  position: relative; z-index: 1;
}
.tx-card-stats {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: "Jost", sans-serif;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}
.tx-card-stats .num { color: var(--trad); font-family: "Cinzel", serif; }

/* TIMELINE view — bucketed eras, central spine */
.tx-timeline-v2 {
  position: relative;
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0 24px 24px;
}
.tlv-spine {
  position: absolute;
  left: 50%;
  top: 0; bottom: 24px;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--border2) 5%,
    var(--border2) 95%,
    transparent 100%);
  transform: translateX(-50%);
  z-index: 0;
}

.tlv-bucket {
  position: relative;
  margin-bottom: 56px;
  z-index: 1;
}
.tlv-bucket:last-child { margin-bottom: 0; }

.tlv-bucket-head {
  position: relative;
  text-align: center;
  margin: 0 auto 36px;
  padding: 16px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  box-shadow: 0 0 0 6px var(--bg);
}
.tlv-bucket-label {
  font-family: "Cinzel", serif;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.tlv-bucket-sub {
  font-family: "Jost", sans-serif;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}

.tlv-bucket-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  position: relative;
}
.tlv-bucket-cards::before {
  /* connector dot on the spine where this bucket attaches */
  content: "";
  position: absolute;
  left: 50%; top: -28px;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 0 4px var(--bg);
}

.tlv-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none; color: inherit;
  transition: all .2s;
  position: relative;
  z-index: 1;
}
.tlv-card:hover {
  border-color: var(--trad);
  background: color-mix(in srgb, var(--trad) 8%, var(--bg2));
  transform: translateY(-2px);
}
.tlv-card-glyph {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  color: var(--trad);
  filter: drop-shadow(0 0 10px var(--trad));
  transition: filter .2s, transform .2s;
}
.tlv-card:hover .tlv-card-glyph {
  filter: drop-shadow(0 0 18px var(--trad));
  transform: rotate(-3deg) scale(1.04);
}
.tlv-card-body { min-width: 0; }
.tlv-card-name {
  font-family: "Cinzel", serif;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--trad);
  margin-bottom: 4px;
}
.tlv-card-era {
  font-family: "Jost", sans-serif;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.tlv-card-truth {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.4;
  margin-bottom: 6px;
}
.tlv-card-stats {
  font-family: "Jost", sans-serif;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 8px; align-items: center;
}

/* index footer */
.tx-foot {
  max-width: 1100px;
  margin: 96px auto 0;
  padding: 36px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 18px;
}
.tx-foot .brand {
  font-family: "Cinzel", serif;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.tx-foot .links {
  display: flex; gap: 18px;
  font-family: "Jost", sans-serif;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.tx-foot .links a { color: var(--text3); }
.tx-foot .links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   DETAIL PAGE
   ═══════════════════════════════════════════════════════════════ */

.td-page {
  /* the tradition's color is bound to --trad on this wrapper */
  position: relative;
  overflow: hidden;
}

.td-hero {
  position: relative;
  padding: 80px 24px 56px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 760px) {
  .td-hero { grid-template-columns: 1fr; gap: 24px; padding: 48px 20px 28px; text-align: center; }
}
.td-hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 110%; max-width: 1400px;
  height: 600px;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, color-mix(in srgb, var(--trad) 30%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.td-back {
  position: relative;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Jost", sans-serif;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
  margin: 24px auto 0;
  max-width: 1100px;
  padding: 0 24px;
  transition: color .15s;
}
.td-back:hover { color: var(--accent); }

.td-hero-glyph {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px var(--trad));
}
.td-hero-glyph svg { transition: transform 18s linear infinite; }
.td-hero-glyph::before {
  content: "";
  position: absolute; inset: -20px;
  border: 1px solid color-mix(in srgb, var(--trad), transparent 70%);
  border-radius: 999px;
  animation: tdRing 14s linear infinite;
}
.td-hero-glyph::after {
  content: "";
  position: absolute; inset: -40px;
  border: 1px dashed color-mix(in srgb, var(--trad), transparent 80%);
  border-radius: 999px;
  animation: tdRing 24s linear infinite reverse;
}
@keyframes tdRing { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.td-hero-body { position: relative; z-index: 1; }
.td-hero-era {
  font-family: "Jost", sans-serif;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.td-hero-era::before {
  content: ""; width: 24px; height: 1px; background: var(--trad);
}
.td-hero-name {
  font-family: "Cinzel", serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 18px;
  text-shadow: 0 0 60px color-mix(in srgb, var(--trad), transparent 60%);
}
.td-hero-truth {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 300;
  color: var(--trad);
  line-height: 1.4;
  margin-bottom: 24px;
  text-wrap: balance;
}
.td-hero-region {
  font-family: "Jost", sans-serif;
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--text3);
  font-style: normal;
}
.td-hero-region .label {
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.26em;
  font-size: 10px; margin-right: 8px;
}

/* about */
.td-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 0;
  position: relative;
}
.td-section.wide {
  max-width: 1100px;
}
.td-section-eye {
  font-family: "Cinzel", serif;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
}
.td-section-eye::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.td-section-eye .count {
  color: var(--trad);
  font-family: "Cinzel", serif;
  letter-spacing: 0.1em;
}

.td-about p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(19px, 2.3vw, 24px);
  font-weight: 300;
  font-style: normal;
  line-height: 1.78;
  color: var(--text2);
  text-wrap: pretty;
  max-width: 64ch;
}
.td-about p em { color: var(--trad); font-style: italic; }
.td-about p + p { margin-top: 22px; }
.td-about p strong { color: var(--cream); font-weight: 400; }

/* tradition facts strip — origin / founder / key texts */
.td-facts { padding-top: 0; }
.td-facts-grid {
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  padding: 24px 28px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}
.td-facts-grid::before {
  content: "";
  position: absolute; left: -1px; top: -1px; bottom: -1px;
  width: 3px; background: var(--trad);
  border-radius: 4px 0 0 4px;
  opacity: 0.6;
}
.td-fact { padding: 8px 4px; }
.td-fact.wide { grid-column: 1 / -1; }
.td-fact-label {
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.td-fact-value {
  font-family: "Jost", sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}
@media (max-width: 720px) {
  .td-facts-grid { grid-template-columns: 1fr; }
}

/* follow chip in the hero */
.td-hero-follow {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
}
.td-hero-follow .lb-bm {
  border-color: color-mix(in srgb, var(--trad), transparent 60%);
  color: var(--trad);
}
.td-hero-follow .lb-bm.on {
  background: color-mix(in srgb, var(--trad), transparent 86%);
  border-color: var(--trad);
}

/* not-found state */
.td-not-found {
  max-width: 560px;
  margin: 120px auto;
  padding: 56px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg2);
}
.td-nf-glyph {
  font-family: "Cinzel", serif;
  font-size: 36px;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 18px;
}
.td-not-found h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 12px;
}
.td-not-found p {
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 32px;
}
.td-nf-back {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* key quote — big pull */
.td-quote {
  max-width: 920px;
  margin: 64px auto 0;
  padding: 56px 32px;
  position: relative;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, color-mix(in srgb, var(--trad) 12%, transparent), transparent 70%);
}
.td-quote-mark {
  font-family: "Cinzel", serif;
  font-size: 56px;
  line-height: 1;
  color: var(--trad);
  opacity: 0.4;
  margin-bottom: 14px;
}
.td-quote-text {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 18px;
  text-wrap: balance;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
.td-quote-source {
  font-family: "Jost", sans-serif;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}

/* figures */
.td-figures {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.td-figure {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text2);
  padding: 6px 14px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: var(--bg2);
}
.td-figure.tradition {
  /* not used right now, but reserved */
  border-color: var(--trad);
}

/* schools — smaller list */
.td-schools {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.td-school {
  font-family: "Jost", sans-serif;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text3);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* teachings list — list of compact cards */
.td-teachings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.td-tcard {
  display: block;
  text-decoration: none; color: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px 24px;
  background: var(--bg2);
  position: relative;
  transition: all .2s;
}
.td-tcard:hover {
  border-color: var(--trad);
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--trad) 6%, var(--bg2));
}
.td-tcard .tc-era {
  font-family: "Jost", sans-serif;
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.td-tcard .tc-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 6px;
  text-wrap: balance;
}
.td-tcard .tc-source {
  font-family: "Jost", sans-serif;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 14px;
}
.td-tcard .tc-themes {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.td-tcard .tc-theme {
  font-family: "Jost", sans-serif;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  padding: 2px 8px;
  border: 1px solid var(--border2);
  border-radius: 999px;
}
.td-tcard:hover .tc-title { color: var(--trad); }
.td-tcard .tc-arrow {
  position: absolute;
  top: 18px; right: 20px;
  color: var(--trad);
  opacity: 0;
  transform: translateX(-4px);
  transition: all .2s;
}
.td-tcard:hover .tc-arrow {
  opacity: 1; transform: none;
}

/* empty state */
.td-empty {
  padding: 32px 24px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 17px;
  color: var(--text3);
  text-align: center;
  line-height: 1.5;
  background: color-mix(in srgb, var(--bg2), transparent 60%);
}

/* dispatches list */
.td-dispatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.td-dcard {
  display: block;
  text-decoration: none; color: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px 24px;
  background: var(--bg2);
  transition: all .2s;
}
.td-dcard:hover {
  border-color: var(--trad);
  transform: translateY(-2px);
}
.td-dcard .dc-meta {
  font-family: "Jost", sans-serif;
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.td-dcard .dc-meta .kind { color: var(--trad); }
.td-dcard .dc-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 8px;
  text-wrap: balance;
}
.td-dcard .dc-sub {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text3);
  line-height: 1.5;
}
.td-dcard:hover .dc-title { color: var(--trad); }

/* neighbors — mini constellation */
.td-neighbors {
  position: relative;
  height: 360px;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, color-mix(in srgb, var(--trad) 10%, transparent), transparent 70%),
    var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.td-neighbors svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.tn-edge {
  fill: none;
  stroke: var(--trad);
  stroke-width: 0.5;
  opacity: 0.35;
}
.tn-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  text-decoration: none; color: inherit;
  transition: transform .25s;
  z-index: 2;
}
.tn-node:hover { transform: translate(-50%, -50%) scale(1.06); }
.tn-node.center {
  width: 80px; height: 80px;
}
.tn-node.outer {
  width: 60px; height: 60px;
}
.tn-node-glyph {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  color: var(--node-color);
  filter: drop-shadow(0 0 8px var(--node-color));
}
.tn-node.center .tn-node-glyph {
  filter: drop-shadow(0 0 16px var(--node-color)) drop-shadow(0 0 32px var(--node-color));
}
.tn-node-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-family: "Cinzel", serif;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--node-color);
  white-space: nowrap;
}
.tn-node.center .tn-node-label {
  font-size: 11px;
  color: var(--cream);
  top: calc(100% + 8px);
}

/* footer of detail page */
.td-foot {
  max-width: 1100px;
  margin: 96px auto 0;
  padding: 36px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 18px;
}
.td-foot .links { display: flex; gap: 18px; }
.td-foot .links a {
  font-family: "Jost", sans-serif;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text3);
}
.td-foot .links a:hover { color: var(--accent); }

/* prev/next tradition nav at the bottom */
.td-nav {
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) {
  .td-nav { grid-template-columns: 1fr; }
}
.td-nav a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  background: var(--bg2);
  border-radius: 4px;
  text-decoration: none; color: inherit;
  transition: all .2s;
}
.td-nav a:last-child { flex-direction: row-reverse; text-align: right; }
.td-nav a:hover { border-color: var(--trad-other); background: var(--bg3); }
.td-nav-glyph {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--trad-other);
  filter: drop-shadow(0 0 8px var(--trad-other));
  flex-shrink: 0;
}
.td-nav-body { flex: 1; }
.td-nav-label {
  font-family: "Jost", sans-serif;
  font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.td-nav-name {
  font-family: "Cinzel", serif;
  font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--trad-other);
}

@media (max-width: 720px) {
  .trad-head { padding: 0 16px; }
  .trad-nav { gap: 14px; }
  .tx-hero { padding: 56px 20px 24px; }
  .td-section { padding: 40px 20px 0; }
  .td-hero-glyph { width: 180px; height: 180px; }
}


/* ───────── mobile nav scroll fix ─────────
   Force the nav to be a scrollable horizontal strip so all links remain
   reachable when there's not enough room. Without min-width:0 + flex:1,
   flex layout lets the nav overflow the viewport (which body clips). */
@media (max-width: 800px) {
  .trad-head { gap: 12px; }
  .trad-brand .sep, .trad-brand .sub { display: none; }
  .trad-nav {
    flex: 1 1 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-end;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .trad-nav::-webkit-scrollbar { display: none; }
  .trad-nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}
