/* ============================================================================
   explains.css — "Rope Drop Explains" comic explainer pages (detail + hub).
   Loaded via @section Head on /guides/explains and /guides/explains/{slug},
   which render under _Layout (site.css). Tokens come from site.css :root.
   The homepage feature card lives separately in v1.css.
   ========================================================================== */

/* ---- breadcrumb + hero -------------------------------------------------- */
.explain-crumbs {
  font-family: var(--label); font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-md);
}
.explain-crumbs a { color: var(--muted); text-decoration: none; }
.explain-crumbs a:hover { color: var(--gold); }
.explain-crumbs span { margin: 0 6px; opacity: 0.5; }

.explain-hero { text-align: left; }
.explain .guide-standfirst { max-width: 64ch; }

/* ---- the comic, framed and calm ---------------------------------------- */
.explain-comic { margin: var(--space-xl) 0; text-align: center; }
.explain-comic-frame {
  display: inline-block; position: relative; width: 100%; max-width: 560px;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--rule);
  background: var(--paper-2); box-shadow: 0 24px 64px oklch(8% 0.03 278 / 0.5);
  cursor: zoom-in; line-height: 0;
}
.explain-comic-frame img { display: block; width: 100%; height: auto; }
.explain-comic-frame:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.explain-zoom-hint {
  position: absolute; bottom: 12px; right: 12px; line-height: 1;
  font-family: var(--label); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  background: oklch(20% 0.04 278 / 0.74); padding: 6px 10px; border-radius: 999px;
  backdrop-filter: blur(4px); opacity: 0; transition: opacity 160ms ease;
}
.explain-comic-frame:hover .explain-zoom-hint,
.explain-comic-frame:focus-visible .explain-zoom-hint { opacity: 1; }
@media (hover: none) { .explain-zoom-hint { opacity: 1; } }
.explain-comic figcaption {
  margin-top: var(--space-sm); font-family: var(--label); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 12px; font-weight: 700; color: var(--muted);
}

/* ---- the plain-text "short version" (the indexable content) ------------- */
.explain-short {
  background: var(--paper-2); border: 1px solid var(--rule); border-left: 4px solid var(--gold);
  border-radius: 14px; padding: var(--space-lg); margin: var(--space-xl) 0;
}
.explain-short h2 {
  font-family: var(--display); font-size: clamp(22px, 3vw, 28px);
  line-height: 1.1; margin: 0 0 var(--space-md); color: var(--ink);
}
.explain-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.explain-points li {
  position: relative; padding-left: 30px; font-family: var(--text);
  font-size: 17px; line-height: 1.5; color: var(--ink);
}
.explain-points li::before {
  content: "✦"; position: absolute; left: 0; top: 2px; color: var(--gold); font-size: 14px;
}

.explain-back { margin-top: var(--space-xl); }
.explain-back a { font-family: var(--label); font-weight: 700; font-size: 14px; color: var(--gold); text-decoration: none; }
.explain-back a:hover { text-decoration: underline; }

/* ---- lightbox ----------------------------------------------------------- */
.explain-lightbox {
  position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px); background: oklch(12% 0.03 278 / 0.86); backdrop-filter: blur(6px);
}
.explain-lightbox img {
  max-width: min(94vw, 760px); max-height: 92vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 30px 90px oklch(4% 0.03 278 / 0.7);
}
.explain-lightbox-close {
  position: absolute; top: 14px; right: 18px; font-size: 28px; line-height: 1;
  color: var(--ink); background: none; border: none; cursor: pointer; padding: 6px;
}

/* ---- the "Rope Drop Explains" band on the /guides hub ------------------- */
.explains-band { border-top: 1px solid var(--rule); padding-top: var(--space-xl); }
.explains-band-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.explains-band-head h2 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; color: var(--ink); margin: 0; }
.explains-band-head a { font-family: var(--label); font-weight: 700; font-size: 14px; color: var(--gold); text-decoration: none; white-space: nowrap; }
.explains-band-head a:hover { text-decoration: underline; }
.explains-band-sub { font-family: var(--text); font-size: 16px; color: var(--ink-soft); margin: var(--space-2xs) 0 0; }

/* ---- the hub grid ------------------------------------------------------- */
.explains-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg); margin-top: var(--space-lg);
}
.explain-card {
  display: flex; flex-direction: column; background: var(--paper-2);
  border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; color: var(--ink);
  text-decoration: none; transition: transform .16s, box-shadow .16s, border-color .16s;
}
.explain-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 16px 40px oklch(10% 0.03 278 / 0.45); }
.explain-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.explain-card-art { aspect-ratio: 5 / 4; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--paper); }
.explain-card-art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.explain-card-b { padding: var(--space-md); display: flex; flex-direction: column; gap: 5px; }
.explain-card-kicker { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; font-weight: 700; color: var(--gold); }
.explain-card-title { font-family: var(--display); font-size: 20px; line-height: 1.14; color: var(--ink); }
.explain-card-desc { font-family: var(--text); font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
