/* /thoughtscape/styles-thoughtscape.css
   Thoughtscape lane overrides — scoped + safe with /styles.css
*/

body.thoughtscape{
  /* Thoughtscape typography lane */
  --ts-sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ts-serif: "Cormorant Garamond", Georgia, serif;

  /* Thoughtscape colors (dark/gold) */
  --ts-ink: rgba(255,255,255,.92);
  --ts-muted: rgba(255,255,255,.70);
  --ts-dim: rgba(255,255,255,.55);

  --ts-line: rgba(255,255,255,.10);
  --ts-panel: rgba(18,20,26,.62);
  --ts-panel-2: rgba(12,14,18,.72);

  --ts-gold: var(--gold);
  --ts-gold-soft: rgba(200,161,43,.16);
  --ts-gold-line: rgba(200,161,43,.55);

  /* small radius token for TS-only pieces */
  --ts-radius: 16px;

  color: var(--ts-ink);
}

.thoughtscape main{
  padding-bottom: 24px;
}

/* Make the page shell darker for TS without rewriting base .page */
.thoughtscape .ts-page{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}

/* Thoughtscape topbar tweaks (works with shared .topbar styles) */
.thoughtscape .ts-topbar{
  background: color-mix(in srgb, rgba(18,20,26,.78) 88%, rgba(255,255,255,.06) 12%);
  border-color: rgba(255,255,255,.12);
}

.thoughtscape .brand-link{
  text-decoration: none;
  color: inherit;
}

.thoughtscape .brand-name{
  font-family: var(--ts-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 850;
  color: rgba(255,255,255,.92);
}

.thoughtscape .ts-breadcrumb{
  margin-left: 10px;
  font-family: var(--ts-sans);
  color: rgba(255,255,255,.60);
  letter-spacing: .02em;
}

/* NAV: keep your gold-outline boxes but ensure TS palette */
.thoughtscape .nav-link{
  font-family: var(--ts-sans);
  color: rgba(255,255,255,.86);
  border-color: rgba(200,161,43,.45);
}
.thoughtscape .nav-link:hover{
  background: rgba(200,161,43,.10);
  border-color: rgba(200,161,43,.90);
  color: rgba(255,255,255,.94);
}
.thoughtscape .nav-link.is-active,
.thoughtscape .nav-link[aria-current="page"]{
  background: rgba(200,161,43,.18);
  border-color: rgba(200,161,43,1);
  color: rgba(255,255,255,.98);
}

/* =========================
   HERO (uses existing image)
   ========================= */
.thoughtscape .ts-hero{
  border-top: 0;
  padding: 0;
  margin-top: 10px;
  border-radius: var(--ts-radius);
  overflow: hidden;
  position: relative;

  min-height: 320px;

  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 12, 0.78),
      rgba(10, 10, 12, 0.60) 45%,
      rgba(10, 10, 12, 0.30)
    ),
    url("/thoughtscape/assets/thoughtscape-cover.png");
  background-size: cover;
  background-position: center;
}

.thoughtscape .ts-hero__inner{
  padding: 52px 28px;
  max-width: 70ch;
}

.thoughtscape .ts-kicker{
  font-family: var(--ts-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(200,161,43,.85);
  margin: 0 0 10px;
}

.thoughtscape .ts-title{
  font-family: var(--ts-serif);
  font-size: 54px;
  line-height: 1.02;
  margin: 0 0 10px;
  color: rgba(255,255,255,.96);
  letter-spacing: -0.02em;
}

.thoughtscape .ts-bridge{
  margin: 0;
  color: rgba(255,255,255,.78);
  max-width: 60ch;
  font-family: var(--ts-sans);
}

.thoughtscape .ts-sub{
  margin: 10px 0 0;
  color: rgba(255,255,255,.72);
  font-family: var(--ts-sans);
}

.thoughtscape .ts-updated{
  margin: 8px 0 0;
  color: rgba(255,255,255,.62);
  font-family: var(--ts-sans);
}

/* =========================
   SECTIONS / HEADERS
   ========================= */
.thoughtscape .ts-section{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 26px 0;
}

.thoughtscape .ts-head{
  margin-bottom: 10px;
}

.thoughtscape .ts-head h2{
  margin: 0 0 6px;
  font-family: var(--ts-sans);
  color: rgba(255,255,255,.92);
}

.thoughtscape .muted{
  color: rgba(255,255,255,.65);
}

/* =========================
   EPISODE GRID + CARDS
   ========================= */
.thoughtscape .ts-grid{
  margin-top: 14px;
}

.thoughtscape .ts-card{
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(0,0,0,.06) 100%);
  border-color: rgba(255,255,255,.10);
}

.thoughtscape .ts-card:hover{
  border-color: rgba(200,161,43,.85);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.thoughtscape .ts-card .kicker{
  color: rgba(200,161,43,.78);
}

.thoughtscape .ts-card .desc{
  color: rgba(255,255,255,.70);
}

.thoughtscape .ts-card .title{
  color: rgba(255,255,255,.92);
}

/* Card meta + chips */
.thoughtscape .ts-cardmeta,
.thoughtscape .ts-meta{
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Chip base */
.thoughtscape .ts-chip{
  font-family: var(--ts-sans);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(200,161,43,.40);
  background: rgba(200,161,43,.10);
  color: rgba(255,255,255,.84);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Chip variants */
.thoughtscape .ts-chip--published{
  border-color: rgba(200,161,43,.85);
  background: rgba(200,161,43,.16);
}
.thoughtscape .ts-chip--draft{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
}
.thoughtscape .ts-chip--locked{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.62);
}

/* Locked cards */
.thoughtscape .is-locked{
  opacity: .72;
  cursor: not-allowed;
  user-select: none;
  filter: saturate(.85);
}
.thoughtscape .is-locked:hover{
  transform: none;
  box-shadow: none;
  border-color: rgba(255,255,255,.10);
}
.thoughtscape .is-locked::after{
  content:"";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.00), rgba(255,255,255,0.14));
  pointer-events: none;
}

/* Optional date */
.thoughtscape .ts-date{
  font-family: var(--ts-sans);
  font-size: 12px;
  color: rgba(255,255,255,.60);
}

/* Episode helper lists */
.thoughtscape .ts-tokens{
  margin: 12px 0 0;
  padding-left: 18px;
}
.thoughtscape .ts-tokens li{
  margin: 8px 0;
  color: rgba(255,255,255,.74);
}
.thoughtscape .ts-tokens strong{
  color: rgba(255,255,255,.92);
}

/* Breadcrumb link (if used elsewhere) */
.thoughtscape .ts-breadcrumb-link{
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.thoughtscape .ts-breadcrumb-link:hover{
  border-bottom-color: rgba(255,255,255,0.55);
}

/* Screen reader only */
.thoughtscape .sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Smaller hero variant for episode pages */
.thoughtscape .ts-hero--small{
  min-height: 220px;
}
.thoughtscape .ts-hero--small .ts-title{
  font-size: 44px;
}

/* Mobile */
@media (max-width: 700px){
  .thoughtscape .ts-hero__inner{ padding: 38px 18px; }
  .thoughtscape .ts-title{ font-size: 42px; }
}
