/* ==================================================

   SCIENCE — Page-specific styles

   ================================================== */

/* Hide hamburger when series explorer curtain is open
   (prevents confusion — the CTA pill is the close control) */
body.series-curtain-open .catalyst-nav__hamburger {
  display: none !important;
}

.main {
  display: flex;
  align-items: flex-start;
  margin-top: 56px;
  padding: 28px 80px 20px 100px;
  gap: 48px;
  /* Keep footer pinned to bottom when accordions collapse.
     56px nav + ~200px footer = ~256px chrome. */
  min-height: calc(100vh - 56px - 200px);
}

.col-left {
  flex: 1.3;
  max-width: 580px;
  position: sticky;
  top: 84px;
  align-self: flex-start;
}

.col-right {
  flex: 1;
  max-width: 560px;
}

.page-title {
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--carbon);
  margin-bottom: 20px;
}

.page-title strong {
  font-weight: 700;
}

.page-title .slash {
  font-weight: 200;
  color: var(--catalyst-orange);
  margin: 0 4px;
}

.page-description {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 28px;
  display: none; /* Hide default — replaced by structured description */
}

/* ── Structured description block ── */
.science-intro {
  max-width: 480px;
  margin-bottom: 32px;
}

.science-intro__lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--carbon);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.science-intro__lead strong {
  color: var(--catalyst-orange);
  font-weight: 500;
}

.science-intro__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.science-intro__point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
}

.science-intro__point-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--catalyst-orange);
  margin-top: 6px;
}

.science-intro__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--catalyst-orange);
}

/* ── Show More button inside series ── */
.series-block__show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  margin-top: 4px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--catalyst-orange);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.series-block__show-more:hover {
  border-color: var(--catalyst-orange);
  background: rgb(235, 98, 46, 0.04);
}

.series-block__show-more svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.2s;
}

.series-block__show-more--expanded svg {
  transform: rotate(180deg);
}

.explore-button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  padding: 10px 28px 10px 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--carbon);
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.3s;
  text-decoration: none;
  width: fit-content;
}

.explore-button:hover {
  background: var(--carbon);
  color: var(--bg);
  border-color: var(--carbon);
}

.explore-button:hover .icon-circle {
  border-color: rgb(255, 255, 255, 0.3);
}

.explore-button:focus-visible {
  outline: 2px solid var(--catalyst-orange);
  outline-offset: 2px;
}

.icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.preview {
  border: 1px solid var(--border-solid);
  border-radius: 16px;
  padding: 28px;
  background: rgb(255, 255, 255, 0.45);
}

.preview__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.preview__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.preview__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--carbon);
}

.preview__subtitle {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 12px;
}

.preview__count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.preview__articles {
  display: flex;
  flex-direction: column;
}

.preview__article {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 0 14px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  min-height: 44px;
}

.preview__article:last-child {
  border-bottom: none;
}

a.preview__article {
  cursor: pointer;
}

a.preview__article:hover {
  background: rgb(26, 26, 26, 0.02);
  transform: translateX(3px);
}

a.preview__article:hover .preview__article-title {
  color: var(--carbon);
}

a.preview__article:hover .preview__article-arrow {
  opacity: 1;
  transform: translateX(0);
}

a.preview__article:focus-visible {
  outline: 2px solid var(--catalyst-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.preview__article-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.preview__article-title {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.35;
  color: var(--carbon);
  transition: color 0.2s;
}

.preview__article-arrow {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
  line-height: 1;
}

.preview__footer {
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview__footer-text {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}

.preview__footer-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--catalyst-orange);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
  background: none;
  border: none;
  font-family: var(--font);
}

.preview__footer-link:hover {
  opacity: 0.7;
}

/* ==================================================
   SERIES BROWSER — accordion navigation
   ================================================== */

.series-browser {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.series-block {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.3s;
}

.series-block:hover {
  border-color: var(--border-hover);
}

.series-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: background 0.2s;
}

.series-block__header:hover {
  background: rgb(26, 26, 26, 0.015);
}

.series-block__header--locked {
  cursor: default;
  opacity: 0.55;
}

.series-block__header-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.series-block__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.series-block__name {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--carbon);
  letter-spacing: -0.01em;
}

.series-block__subtitle {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.series-block__header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 16px;
}

.series-block__count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.series-block__count--soon {
  color: var(--catalyst-gold);
  font-weight: 500;
}

.series-block__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.series-block__chevron svg {
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.series-block--expanded .series-block__chevron {
  transform: rotate(180deg);
}

/* Collapsible body */
.series-block__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.series-block--expanded .series-block__body {
  max-height: 2000px;
}

.series-block__articles {
  padding: 0 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Individual article link */
.series-article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}

.series-article:hover {
  background: rgb(26, 26, 26, 0.03);
}

.series-article__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--series-color, var(--catalyst-teal));
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.series-article__content {
  flex: 1;
  min-width: 0;
}

.series-article__title {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--carbon);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.series-article__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.series-article__arrow {
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.series-article:hover .series-article__arrow {
  opacity: 1;
  transform: translateX(0);
}

.curtain-backdrop {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(0, 0, 0, 0.25);
  z-index: 149;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.curtain-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.catalyst-curtain {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  z-index: 150;
  overflow-y: auto;
  border-radius: 0 0 20px 20px;
  padding: 0;
  transform: translateY(-100%);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
  pointer-events: none;
  max-height: 90vh;
}

.catalyst-curtain.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.catalyst-curtain__close {
  display: none; /* Hidden — nav "Close Series" pill is the close trigger */
}

.catalyst-curtain::-webkit-scrollbar {
  width: 6px;
}

.catalyst-curtain::-webkit-scrollbar-track {
  background: transparent;
}

.catalyst-curtain::-webkit-scrollbar-thumb {
  background: rgb(255, 255, 255, 0.1);
  border-radius: 3px;
}

.catalyst-curtain::-webkit-scrollbar-thumb:hover {
  background: rgb(255, 255, 255, 0.18);
}

.accordion {
  padding: 20px 48px 80px;
}

.section {
  border-bottom: 1px solid rgb(255, 255, 255, 0.08);
}

.section:last-child {
  border-bottom: none;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.section__header:hover {
  opacity: 0.85;
}

.section__header-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section__name {
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.015em;
}

.section__subtitle {
  font-size: 13px;
  font-weight: 300;
  color: rgb(255, 255, 255, 0.35);
}

.section__header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section__count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgb(255, 255, 255, 0.3);
}

.section__chevron {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.section__chevron svg {
  width: 14px;
  height: 14px;
  stroke: rgb(255, 255, 255, 0.4);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section.expanded .section__chevron {
  transform: rotate(180deg);
}

.section__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.expanded .section__content {
  max-height: 800px;
}

.section__list {
  padding-bottom: 28px;
}

.section__row {
  display: grid;
  grid-template-columns: 3px 1fr auto;
  gap: 0 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgb(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.section__row:last-child {
  border-bottom: none;
}

a.section__row {
  cursor: pointer;
}

a.section__row:hover {
  transform: translateX(6px);
}

a.section__row:hover .section__row-title {
  color: rgb(255, 255, 255, 1);
}

a.section__row:hover .section__row-arrow {
  opacity: 1;
  transform: translateX(0);
}

a.section__row:focus-visible {
  outline: 2px solid var(--catalyst-orange);
  outline-offset: 4px;
  border-radius: 4px;
}

.section__row-accent {
  width: 3px;
  border-radius: 2px;
  align-self: stretch;
  min-height: 40px;
}

.section__row-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.section__row-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section__row-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: rgb(255, 255, 255, 0.85);
  transition: color 0.25s;
}

.section__row-sub {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: rgb(255, 255, 255, 0.35);
}

.section__row-arrow {
  align-self: center;
  font-size: 15px;
  color: rgb(255, 255, 255, 0.3);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
  line-height: 1;
}

.section__row--soon {
  cursor: default;
  opacity: 0.45;
}

.section__row--soon .section__row-accent {
  opacity: 0.3;
}

.section__row-badge {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255, 255, 255, 0.25);
}

@media (width <= 1024px) {
  .main {
    padding: 24px 48px 16px;
    gap: 36px;
  }

  .col-right {
    max-width: 440px;
  }

  .page-title {
    font-size: clamp(42px, 5vw, 56px);
  }

  .accordion {
    padding: 20px 32px 60px;
  }
}

@media (width <= 768px) {
  .main {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 40px;
    min-height: auto;
  }

  .explore-button {
    width: 100%;
    justify-content: center;
    align-self: stretch;
  }

  .col-left {
    max-width: 100%;
    position: static;
    top: auto;
  }

  .col-right {
    max-width: 100%;
    width: 100%;
  }

  .series-block__header {
    padding: 16px 18px;
  }

  .series-block__articles {
    padding: 0 18px 16px;
  }

  .series-block__subtitle {
    display: none;
  }

  .accordion {
    padding: 20px 24px 60px;
  }
}

@media (width <= 480px) {
  .main {
    padding: 32px 20px;
    gap: 32px;
  }

  .preview {
    padding: 20px;
  }

  .preview__article {
    padding: 12px 0;
    gap: 0 10px;
  }

  .preview__article-title {
    font-size: 13px;
  }

  .section__row {
    grid-template-columns: 3px 1fr;
  }

  .section__row-arrow,
  .section__row-badge {
    display: none;
  }
}
