/* ═══════════════════════════════════════════════════════════════
   GnosticWay — components.css
   All reusable UI components
═══════════════════════════════════════════════════════════════ */

/* ─── QUICK ANSWER BOX (featured snippet target) ────────────── */
.gw-quick-answer {
  background:    var(--gw-bg-dark);
  border:        1px solid var(--gw-border-dark);
  border-left:   5px solid var(--gw-gold);
  border-radius: var(--radius);
  padding:       var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-8);
}
.gw-quick-answer__label {
  font-family:    var(--font-ui);
  font-size:      var(--text-xs);
  font-weight:    700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:          var(--gw-gold);
  margin-bottom:  var(--sp-2);
}
.gw-quick-answer__text {
  font-size:   var(--text-base);
  line-height: 1.65;
  color:       var(--gw-text-light);
  margin:      0;
}
.gw-quick-answer__text strong { color: var(--gw-gold-light); }

/* ─── CALLOUT BOXES ──────────────────────────────────────────── */
.gw-callout {
  border-radius: var(--radius);
  padding:       var(--sp-4) var(--sp-6);
  margin:        var(--sp-6) 0;
  border-left:   4px solid;
  font-size:     var(--text-base);
  line-height:   1.65;
}
.gw-callout > *:last-child { margin-bottom: 0; }

.gw-callout--info {
  background:   #f0ecf8;
  border-color: var(--gw-bg-mid);
  color:        #2c1f5e;
}
.gw-callout--info::before { content: "ℹ️  "; }

.gw-callout--gold {
  background:   #fdf8ec;
  border-color: var(--gw-gold);
  color:        #4a3500;
}
.gw-callout--gold::before { content: "✦  "; }

.gw-callout--definition {
  background:  var(--gw-bg-dark);
  border-color: var(--gw-gold);
  color:        var(--gw-text-light);
  font-style:   italic;
  font-size:    1.05rem;
}

.gw-callout--scholar {
  background:   #f0f5f0;
  border-color: #4a7c4a;
  color:        #1f3a1f;
  font-size:    var(--text-sm);
}
.gw-callout--scholar::before { content: "📖  "; }

.gw-callout--warning {
  background:   #fdf1f0;
  border-color: #c0392b;
  color:        #7a1a13;
}
.gw-callout--warning::before { content: "⚠️  "; }

/* ─── GNOSTIC TEXT PASSAGE ───────────────────────────────────── */
.gw-passage {
  background:    var(--gw-bg-dark);
  border-radius: var(--radius-lg);
  padding:       var(--sp-6) var(--sp-8);
  margin:        var(--sp-8) 0;
  position:      relative;
}
.gw-passage::before {
  content:     '"';
  position:    absolute;
  top:         var(--sp-2);
  left:        var(--sp-6);
  font-family: var(--font-heading);
  font-size:   4rem;
  color:       var(--gw-gold);
  opacity:     .35;
  line-height: 1;
}
.gw-passage__number {
  font-family:    var(--font-ui);
  font-size:      var(--text-xs);
  font-weight:    700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color:          var(--gw-gold);
  margin-bottom:  var(--sp-3);
}
.gw-passage__text {
  font-family:  var(--font-heading);
  font-size:    1.15rem;
  font-style:   italic;
  color:        var(--gw-text-light);
  line-height:  1.75;
  border:       none;
  margin:       0 0 var(--sp-4) 0;
  padding:      0;
  background:   transparent;
}
.gw-passage__source {
  font-family: var(--font-ui);
  font-size:   var(--text-xs);
  color:       rgba(240,236,224,.55);
  font-style:  normal;
}

/* ─── TABLES ─────────────────────────────────────────────────── */
.gw-table-wrap { overflow-x: auto; margin: var(--sp-6) 0; }
.gw-table {
  width:           100%;
  border-collapse: collapse;
  font-family:     var(--font-ui);
  font-size:       var(--text-sm);
  min-width:       400px;
}
.gw-table thead tr {
  background: var(--gw-bg-dark);
  color:      var(--gw-text-light);
}
.gw-table th {
  padding:        var(--sp-3) var(--sp-4);
  text-align:     left;
  font-weight:    600;
  font-size:      var(--text-xs);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space:    nowrap;
}
.gw-table td {
  padding:     var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--gw-border);
  vertical-align: top;
  line-height: 1.5;
}
.gw-table tbody tr:nth-child(even) { background: rgba(201,168,76,.05); }
.gw-table tbody tr:hover           { background: rgba(201,168,76,.1); }
.gw-table .badge--easy   { color: var(--gw-green); font-weight: 700; }
.gw-table .badge--medium { color: var(--gw-yellow); font-weight: 700; }
.gw-table .badge--hard   { color: var(--gw-red); font-weight: 700; }

/* ─── IMAGES ─────────────────────────────────────────────────── */
.gw-img-wrap {
  margin:      var(--sp-8) auto;  /* auto = centered horizontally */
  display:     block;
  max-width:   580px;
  text-align:  center;
}
.gw-img-wrap img {
  max-width:     100%;
  width:         100%;
  border-radius: var(--radius);
  display:       block;
  margin:        0 auto;
  cursor:        zoom-in;
  transition:    opacity var(--transition), box-shadow var(--transition);
}
.gw-img-wrap img:hover {
  opacity:    .92;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
}
.gw-img-caption {
  font-family:  var(--font-ui);
  font-size:    var(--text-xs);
  color:        var(--gw-text-muted);
  margin-top:   var(--sp-2);
  font-style:   italic;
  text-align:   center;
  line-height:  1.5;
}
/* Subtle zoom hint */
.gw-img-wrap .gw-img-zoom-hint {
  display:        block;
  font-family:    var(--font-ui);
  font-size:      0.62rem;
  color:          var(--gw-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top:     3px;
  opacity:        .65;
  text-align:     center;
}

/* Float variants */
.gw-img-wrap--right {
  float:     right;
  max-width: 320px;
  margin:    var(--sp-2) 0 var(--sp-4) var(--sp-6);
}
.gw-img-wrap--left {
  float:     left;
  max-width: 320px;
  margin:    var(--sp-2) var(--sp-6) var(--sp-4) 0;
}
.gw-img-wrap--right img,
.gw-img-wrap--left img { max-width: 100%; }
.gw-img-wrap--right .gw-img-caption,
.gw-img-wrap--left  .gw-img-caption { max-width: 100%; }

.gw-img-wrap--portrait { max-width: 280px; }

@media (max-width: 640px) {
  .gw-img-wrap--right,
  .gw-img-wrap--left  { float: none; max-width: 100%; margin: var(--sp-4) 0; }
  .gw-img-wrap img    { max-width: 100%; }
  .gw-img-caption     { max-width: 100%; }
}

/* ─── LIGHTBOX ───────────────────────────────────────────────── */
.gw-lightbox {
  position:         fixed;
  inset:            0;
  z-index:          9999;
  background:       rgba(10,8,24,.92);
  display:          flex;
  align-items:      center;
  justify-content:  center;
  padding:          var(--sp-6);
  cursor:           zoom-out;
  opacity:          0;
  pointer-events:   none;
  transition:       opacity .2s ease;
  backdrop-filter:  blur(6px);
}
.gw-lightbox.is-open {
  opacity:        1;
  pointer-events: all;
}
.gw-lightbox__img {
  max-width:     92vw;
  max-height:    90vh;
  border-radius: var(--radius);
  box-shadow:    0 24px 80px rgba(0,0,0,.7);
  object-fit:    contain;
  display:       block;
  cursor:        default;
  transform:     scale(.96);
  transition:    transform .2s ease;
}
.gw-lightbox.is-open .gw-lightbox__img { transform: scale(1); }
.gw-lightbox__close {
  position:    absolute;
  top:         var(--sp-5);
  right:       var(--sp-6);
  background:  rgba(255,255,255,.12);
  border:      1px solid rgba(255,255,255,.2);
  color:       #fff;
  font-size:   1.4rem;
  line-height: 1;
  width:       40px;
  height:      40px;
  border-radius: 50%;
  display:     flex;
  align-items: center;
  justify-content: center;
  cursor:      pointer;
  transition:  background var(--transition);
  font-family: var(--font-ui);
}
.gw-lightbox__close:hover { background: rgba(255,255,255,.22); }
.gw-lightbox__caption {
  position:    absolute;
  bottom:      var(--sp-5);
  left:        50%;
  transform:   translateX(-50%);
  color:       rgba(255,255,255,.7);
  font-family: var(--font-ui);
  font-size:   var(--text-xs);
  font-style:  italic;
  text-align:  center;
  max-width:   640px;
  line-height: 1.5;
  padding:     0 var(--sp-6);
}

/* Figure portrait (circular, for person pages) */
.gw-portrait {
  width:         160px;
  height:        160px;
  border-radius: 50%;
  object-fit:    cover;
  border:        4px solid var(--gw-gold);
  float:         left;
  margin:        0 var(--sp-6) var(--sp-4) 0;
  cursor:        zoom-in;
}
@media (max-width: 640px) {
  .gw-portrait { float: none; display: block; margin: 0 auto var(--sp-6); }
}

/* ─── INFOBOX (sidebar / figure / text meta) ─────────────────── */
.gw-infobox {
  background:    var(--gw-bg-card);
  border:        1px solid var(--gw-border);
  border-top:    4px solid var(--gw-gold);
  border-radius: var(--radius);
  overflow:      hidden;
  font-family:   var(--font-ui);
  font-size:     var(--text-sm);
}
.gw-infobox__title {
  background:  var(--gw-bg-dark);
  color:       var(--gw-text-light);
  font-weight: 700;
  font-size:   var(--text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding:     var(--sp-3) var(--sp-4);
}
.gw-infobox__row {
  display:     flex;
  gap:         var(--sp-3);
  padding:     var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--gw-border);
  line-height: 1.5;
}
.gw-infobox__row:last-child { border-bottom: none; }
.gw-infobox__label {
  color:      var(--gw-text-muted);
  min-width:  90px;
  flex-shrink: 0;
  font-size:  var(--text-xs);
  padding-top: 1px;
}
.gw-infobox__value { color: var(--gw-text); font-weight: 500; }

/* ─── FAQ ACCORDION ──────────────────────────────────────────── */
.gw-faq { margin: var(--sp-6) 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.gw-faq details {
  border:        1px solid var(--gw-border);
  border-radius: var(--radius);
  background:    var(--gw-bg-card);
  overflow:      hidden;
  transition:    border-color var(--transition);
}
.gw-faq details[open] { border-color: var(--gw-gold); }
.gw-faq summary {
  padding:         var(--sp-4) var(--sp-5);
  font-family:     var(--font-heading);
  font-weight:     700;
  font-size:       1rem;
  cursor:          pointer;
  color:           var(--gw-bg-dark);
  list-style:      none;
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             var(--sp-4);
  line-height:     1.4;
  user-select:     none;
}
.gw-faq summary::-webkit-details-marker { display: none; }
.gw-faq summary::after {
  content:     '+';
  font-size:   1.5rem;
  color:       var(--gw-gold);
  font-weight: 300;
  flex-shrink: 0;
  transition:  transform var(--transition);
  font-family: var(--font-ui);
  line-height: 1;
}
.gw-faq details[open] summary::after { content: '−'; }
.gw-faq details > div {
  padding:     0 var(--sp-5) var(--sp-5);
  font-size:   var(--text-base);
  line-height: 1.7;
  color:       var(--gw-text);
  border-top:  1px solid var(--gw-border);
  padding-top: var(--sp-4);
}
.gw-faq details > div p:last-child { margin-bottom: 0; }

/* ─── CARDS ──────────────────────────────────────────────────── */

/* Cluster card (homepage) */
.gw-cluster-card {
  background:    var(--gw-bg-card);
  border:        1px solid var(--gw-border);
  border-top:    4px solid var(--gw-gold);
  border-radius: var(--radius);
  padding:       var(--sp-6);
  display:       flex;
  flex-direction: column;
  text-decoration: none;
  transition:    transform var(--transition), box-shadow var(--transition);
}
.gw-cluster-card:hover {
  transform:   translateY(-3px);
  box-shadow:  var(--shadow-md);
  text-decoration: none;
}
.gw-cluster-card__icon  { font-size: 2rem; margin-bottom: var(--sp-3); }
.gw-cluster-card__title {
  font-family:   var(--font-heading);
  font-size:     1.15rem;
  color:         var(--gw-bg-dark);
  font-weight:   700;
  margin-bottom: var(--sp-2);
}
.gw-cluster-card__desc  {
  font-size:     var(--text-sm);
  color:         var(--gw-text-muted);
  line-height:   1.5;
  flex:          1;
  margin-bottom: var(--sp-3);
}
.gw-cluster-card__count {
  font-family:  var(--font-ui);
  font-size:    var(--text-xs);
  color:        var(--gw-gold-dark);
  font-weight:  600;
  margin-top:   auto;
}

/* Child page card (pillar pages) */
.gw-child-card {
  border:        1px solid var(--gw-border);
  border-radius: var(--radius);
  padding:       var(--sp-4) var(--sp-5);
  background:    var(--gw-bg-card);
  display:       flex;
  gap:           var(--sp-4);
  align-items:   flex-start;
  text-decoration: none;
  transition:    border-color var(--transition), box-shadow var(--transition);
}
.gw-child-card:hover {
  border-color: var(--gw-gold);
  box-shadow:   var(--shadow-sm);
  text-decoration: none;
}
.gw-child-card__num {
  font-family:  var(--font-ui);
  font-size:    var(--text-xs);
  font-weight:  700;
  color:        var(--gw-gold);
  background:   rgba(201,168,76,.12);
  border-radius: var(--radius);
  padding:      var(--sp-1) var(--sp-2);
  flex-shrink:  0;
  margin-top:   2px;
  min-width:    32px;
  text-align:   center;
}
.gw-child-card__body   { flex: 1; min-width: 0; }
.gw-child-card__title  { font-weight: 700; color: var(--gw-bg-dark); font-size: var(--text-base); margin-bottom: var(--sp-1); }
.gw-child-card__desc   { font-size: var(--text-sm); color: var(--gw-text-muted); line-height: 1.5; }
.gw-child-card__arrow  { color: var(--gw-gold); flex-shrink: 0; margin-top: 4px; font-size: 1rem; }

/* Related article card */
.gw-related-card {
  border:        1px solid var(--gw-border);
  border-radius: var(--radius);
  background:    var(--gw-bg-card);
  overflow:      hidden;
  text-decoration: none;
  display:       flex;
  flex-direction: column;
  transition:    box-shadow var(--transition);
}
.gw-related-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.gw-related-card__img  { width: 100%; height: 140px; object-fit: cover; }
.gw-related-card__body { padding: var(--sp-4); flex: 1; }
.gw-related-card__cluster {
  font-family:  var(--font-ui);
  font-size:    var(--text-xs);
  font-weight:  700;
  color:        var(--gw-gold-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--sp-2);
}
.gw-related-card__title {
  font-weight:   700;
  font-size:     var(--text-base);
  color:         var(--gw-bg-dark);
  line-height:   1.35;
  font-family:   var(--font-heading);
}

/* ─── TIMELINE ────────────────────────────────────────────────── */
.gw-timeline          { position: relative; padding-left: var(--sp-8); margin: var(--sp-6) 0; }
.gw-timeline::before  {
  content:    '';
  position:   absolute;
  left:       7px; top: 0; bottom: 0;
  width:      2px;
  background: linear-gradient(180deg, var(--gw-gold) 0%, var(--gw-gold-light) 100%);
}
.gw-timeline__item    { position: relative; margin-bottom: var(--sp-6); }
.gw-timeline__item::before {
  content:      '';
  position:     absolute;
  left:         calc(-1 * var(--sp-8) + 1px);
  top:          5px;
  width:        14px;
  height:       14px;
  border-radius: 50%;
  background:   var(--gw-gold);
  border:       3px solid var(--gw-bg);
  box-shadow:   0 0 0 1px var(--gw-gold);
}
.gw-timeline__date {
  font-family:    var(--font-ui);
  font-size:      var(--text-xs);
  font-weight:    700;
  color:          var(--gw-gold-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom:  var(--sp-1);
}
.gw-timeline__text { font-size: var(--text-base); line-height: 1.6; }

/* ─── TEXT META STRIP (for text pages) ───────────────────────── */
.gw-text-meta {
  display:       flex;
  flex-wrap:     wrap;
  gap:           var(--sp-2);
  margin-bottom: var(--sp-6);
}
.gw-text-meta__item {
  display:       flex;
  align-items:   center;
  gap:           var(--sp-2);
  background:    var(--gw-bg-dark);
  border:        1px solid var(--gw-border-dark);
  border-radius: var(--radius);
  padding:       var(--sp-2) var(--sp-3);
  font-family:   var(--font-ui);
  font-size:     var(--text-xs);
}
.gw-text-meta__label { color: var(--gw-gold); font-weight: 700; }
.gw-text-meta__value { color: var(--gw-text-light); }

/* ─── TOC (sidebar table of contents) ───────────────────────── */
.gw-toc {
  background:    var(--gw-bg-card);
  border:        1px solid var(--gw-border);
  border-top:    4px solid var(--gw-gold);
  border-radius: var(--radius);
  overflow:      hidden;
}
.gw-toc__title {
  background:     var(--gw-bg-dark);
  color:          var(--gw-text-light);
  font-family:    var(--font-ui);
  font-size:      var(--text-xs);
  font-weight:    700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding:        var(--sp-3) var(--sp-4);
}
.gw-toc__list {
  padding:   var(--sp-3) var(--sp-4);
  display:   flex;
  flex-direction: column;
  gap:       2px;
  max-height: 380px;
  overflow-y: auto;
}
.gw-toc__list a {
  font-family:     var(--font-ui);
  font-size:       var(--text-xs);
  color:           var(--gw-text);
  text-decoration: none;
  padding:         var(--sp-1) var(--sp-2);
  border-radius:   var(--radius);
  display:         block;
  line-height:     1.45;
  transition:      background var(--transition), color var(--transition);
}
.gw-toc__list a:hover,
.gw-toc__list a.is-active {
  background: rgba(201,168,76,.12);
  color:      var(--gw-gold-dark);
}
.gw-toc__list .toc-h3 { padding-left: var(--sp-5); font-size: 0.7rem; }

/* ─── KEY TERMS SIDEBAR BOX ──────────────────────────────────── */
.gw-key-terms {
  background:    var(--gw-bg-card);
  border:        1px solid var(--gw-border);
  border-top:    4px solid var(--gw-bg-mid);
  border-radius: var(--radius);
  overflow:      hidden;
}
.gw-key-terms__title {
  background:     var(--gw-bg-mid);
  color:          var(--gw-text-light);
  font-family:    var(--font-ui);
  font-size:      var(--text-xs);
  font-weight:    700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding:        var(--sp-3) var(--sp-4);
}
.gw-key-terms__list { padding: var(--sp-3) var(--sp-4); }
.gw-key-terms__item {
  padding:       var(--sp-2) 0;
  border-bottom: 1px solid var(--gw-border);
  font-size:     var(--text-xs);
  font-family:   var(--font-ui);
}
.gw-key-terms__item:last-child { border-bottom: none; }
.gw-key-terms__term  { font-weight: 700; color: var(--gw-bg-dark); margin-bottom: 2px; }
.gw-key-terms__def   { color: var(--gw-text-muted); line-height: 1.4; }

/* ─── IN-THIS-CLUSTER NAV ────────────────────────────────────── */
.gw-cluster-nav {
  background:    var(--gw-bg-card);
  border:        1px solid var(--gw-border);
  border-top:    4px solid var(--gw-bg-mid);
  border-radius: var(--radius);
  overflow:      hidden;
}
.gw-cluster-nav__title {
  background:     var(--gw-bg-mid);
  color:          var(--gw-text-light);
  font-family:    var(--font-ui);
  font-size:      var(--text-xs);
  font-weight:    700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding:        var(--sp-3) var(--sp-4);
}
.gw-cluster-nav__list { padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: 2px; }
.gw-cluster-nav__list a {
  font-family:     var(--font-ui);
  font-size:       var(--text-xs);
  color:           var(--gw-text);
  text-decoration: none;
  padding:         var(--sp-2) var(--sp-2);
  border-radius:   var(--radius);
  display:         block;
  line-height:     1.4;
  transition:      background var(--transition), color var(--transition);
}
.gw-cluster-nav__list a:hover { background: rgba(45,43,85,.07); color: var(--gw-link); }
.gw-cluster-nav__list a.is-current { color: var(--gw-gold-dark); font-weight: 700; background: rgba(201,168,76,.1); }

/* ─── QUICK FACTS STRIP ──────────────────────────────────────── */
.gw-facts-strip {
  display:     grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap:         var(--sp-4);
  background:  var(--gw-bg-alt);
  border:      1px solid var(--gw-border);
  border-radius: var(--radius);
  padding:     var(--sp-5) var(--sp-6);
  margin:      var(--sp-6) 0;
}
.gw-facts-strip__item { text-align: center; }
.gw-facts-strip__value {
  font-family: var(--font-heading);
  font-size:   1.4rem;
  font-weight: 700;
  color:       var(--gw-bg-dark);
  line-height: 1.2;
  display:     block;
}
.gw-facts-strip__label {
  font-family:    var(--font-ui);
  font-size:      var(--text-xs);
  color:          var(--gw-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top:     var(--sp-1);
  display:        block;
}

/* ─── FURTHER READING BLOCK ──────────────────────────────────── */
.gw-further {
  background:    var(--gw-bg-alt);
  border:        1px solid var(--gw-border);
  border-radius: var(--radius);
  padding:       var(--sp-5) var(--sp-6);
  margin-top:    var(--sp-8);
}
.gw-further__title {
  font-family:   var(--font-heading);
  font-size:     1rem;
  font-weight:   700;
  color:         var(--gw-bg-dark);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--gw-border);
}
.gw-further__list { display: flex; flex-direction: column; gap: var(--sp-2); }
.gw-further__list a {
  font-family:    var(--font-ui);
  font-size:      var(--text-sm);
  color:          var(--gw-link);
  text-decoration: none;
  display:        flex;
  align-items:    center;
  gap:            var(--sp-2);
  transition:     color var(--transition);
}
.gw-further__list a::before { content: '→'; color: var(--gw-gold); flex-shrink: 0; }
.gw-further__list a:hover { color: var(--gw-gold-dark); }

/* ─── FREE TEXTS LINK BLOCK ──────────────────────────────────── */
.gw-text-sources {
  background:    var(--gw-bg-dark);
  border-radius: var(--radius);
  padding:       var(--sp-5) var(--sp-6);
  margin:        var(--sp-6) 0;
}
.gw-text-sources__title {
  font-family:  var(--font-ui);
  font-size:    var(--text-xs);
  font-weight:  700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:        var(--gw-gold);
  margin-bottom: var(--sp-4);
}
.gw-text-sources__list { display: flex; flex-direction: column; gap: var(--sp-3); }
.gw-text-sources__item {
  display:    flex;
  align-items: center;
  gap:        var(--sp-3);
}
.gw-text-sources__item a {
  font-family:     var(--font-ui);
  font-size:       var(--text-sm);
  font-weight:     600;
  color:           var(--gw-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition:      color var(--transition);
}
.gw-text-sources__item a:hover { color: var(--gw-gold); }
.gw-text-sources__item span {
  font-size:  var(--text-xs);
  color:      rgba(240,236,224,.5);
  font-family: var(--font-ui);
}

/* ─── RELATED GRID (3-col) ───────────────────────────────────── */
.gw-related {
  padding-top:   var(--sp-10);
  border-top:    1px solid var(--gw-border);
  margin-top:    var(--sp-10);
}
.gw-related__title {
  font-family:   var(--font-heading);
  font-size:     1.2rem;
  margin-bottom: var(--sp-5);
  color:         var(--gw-bg-dark);
}
.gw-related__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   var(--sp-5);
}
@media (max-width: 768px) {
  .gw-related__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .gw-related__grid { grid-template-columns: 1fr; }
}

/* ─── PRIORITY BADGE ─────────────────────────────────────────── */
.gw-badge {
  display:        inline-flex;
  align-items:    center;
  font-family:    var(--font-ui);
  font-size:      var(--text-xs);
  font-weight:    700;
  padding:        2px var(--sp-2);
  border-radius:  100px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gw-badge--gold    { background: rgba(201,168,76,.18); color: var(--gw-gold-dark); }
.gw-badge--purple  { background: rgba(45,43,85,.12);   color: var(--gw-bg-mid); }
.gw-badge--green   { background: rgba(45,122,45,.12);  color: var(--gw-green); }

/* ─── AI GENERATED BADGE ────────────────────────────────────── */
/* Wrap with .gw-img-wrap--ai to show visible label */
.gw-img-wrap--ai {
  position: relative;
}
/* Badge only — no caption prefix */
/* Floating badge on the image corner */
.gw-ai-badge {
  position:      absolute;
  top:           var(--sp-2);
  right:         var(--sp-2);
  background:    rgba(45,43,85,.88);
  color:         var(--gw-gold-light);
  font-family:   var(--font-ui);
  font-size:     0.68rem;
  font-weight:   700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding:       3px var(--sp-2);
  border-radius: var(--radius);
  pointer-events: none;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(201,168,76,.3);
  white-space: nowrap;
}

/* ─── CLEARFIX ───────────────────────────────────────────────── */
.gw-cf::after { content: ''; display: table; clear: both; }
