/*
 * Root Causes Podcast Wiki — Application Layer on Sectigo Labs Design System (0.1.0, Round 25)
 * Palette: Forest #015258 · Spearmint #06DFC7 · Off White #F3F2EA · Off Black #333132
 * Fonts: Urbanist (Bold 700, Regular 400) · DM Sans (Regular 400, Semibold 600)
 */

:root {
  --rc-paper: #f3f2ea;
  --rc-paper-elevated: #faf9f4;
  --rc-paper-recessed: #e7e5d8;
  --rc-forest: #015258;
  --rc-forest-deep: #013d42;
  --rc-spearmint: #06dfc7;
  --rc-ink-heading: #015258;
  --rc-ink-body: #333132;
  --rc-ink-muted: #335053;
  --rc-link: #015258;
  --rc-link-hover: #01363a;
  --rc-rule: rgba(1, 82, 88, 0.16);
  --rc-rule-strong: rgba(1, 82, 88, 0.34);
  --rc-stage-bg: #015258;
  --rc-stage-elevated: #036168;
  --rc-stage-text: #f3f2ea;
  --rc-stage-muted: #ceeae4;
  --rc-stage-rule: rgba(243, 242, 234, 0.18);
  --rc-focus-ring: #015258;
  --rc-shadow-float: 0 16px 40px rgba(0, 0, 0, 0.2);

  --rc-max-width: 1320px;
  --rc-gutter: 24px;
  --rc-header-h: 76px;
  --rc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  scrollbar-color: rgba(1, 82, 88, 0.42) #f3f2ea;
}

:root.dark {
  --rc-paper: #071d20;
  --rc-paper-elevated: #0c292d;
  --rc-paper-recessed: #11353a;
  --rc-ink-heading: #f3f2ea;
  --rc-ink-body: #e5e7de;
  --rc-ink-muted: #b0d4ce;
  --rc-link: #7ef2e4;
  --rc-link-hover: #06dfc7;
  --rc-rule: rgba(243, 242, 234, 0.14);
  --rc-rule-strong: rgba(6, 223, 199, 0.38);
  --rc-stage-bg: #04282c;
  --rc-stage-elevated: #09363b;
  --rc-stage-text: #f3f2ea;
  --rc-stage-muted: #c6e6df;
  --rc-stage-rule: rgba(243, 242, 234, 0.16);
  --rc-focus-ring: #06dfc7;
  --rc-shadow-float: 0 18px 48px rgba(0, 0, 0, 0.5);

  scrollbar-color: rgba(6, 223, 199, 0.38) #071d20;
}

/* Browser surfaces */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--rc-header-h) + 24px);
  background-color: var(--rc-paper);
  color: var(--rc-ink-body);
}

body {
  margin: 0;
  background-color: var(--rc-paper);
  color: var(--rc-ink-body);
  font-family: var(--font-family-body);
  font-size: 1rem;
  line-height: 1.6;
  caret-color: var(--rc-focus-ring);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--rc-forest);
  color: #f3f2ea;
}

:root.dark ::selection,
.inverted ::selection {
  background-color: var(--rc-spearmint);
  color: #015258;
}

:focus-visible {
  outline: 2px solid var(--rc-focus-ring);
  outline-offset: 3px;
}

.inverted :focus-visible {
  outline-color: var(--rc-spearmint);
}

[hidden] {
  display: none !important;
}

a.btn,
a.btn:hover {
  text-decoration: none;
}

p,
li {
  text-wrap: pretty;
}

.search-field__input {
  color: var(--rc-ink-body);
}

.search-field__input::placeholder {
  color: var(--rc-ink-muted);
  opacity: 1;
}

/* Typography discipline */
h1, h2, h3, h4 {
  font-family: var(--font-family-display);
  font-weight: 700;
  color: var(--rc-ink-heading);
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-top: 0;
}

.inverted h1,
.inverted h2,
.inverted h3,
.inverted h4 {
  color: var(--rc-stage-text);
}

.rc-tabular-count,
.rc-ep-code,
.rc-duration,
time {
  font-variant-numeric: tabular-nums;
}

.ui-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: -0.18em;
}

.btn__icon {
  display: inline-block;
  flex-shrink: 0;
}

.ui-icon--sm {
  width: 16px;
  height: 16px;
}

.ui-icon--xs {
  width: 14px;
  height: 14px;
}

.rc-container {
  width: min(var(--rc-max-width), calc(100% - var(--rc-gutter) * 2));
  margin-inline: auto;
}

/* Skip link */
.rc-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--rc-forest);
  color: #f3f2ea;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s var(--rc-ease-out);
}

.rc-skip-link:focus {
  transform: translateY(0);
}

/* Sticky Masthead Header */
.rc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--rc-paper);
  border-bottom: 1px solid var(--rc-rule);
}

.rc-header__inner {
  min-height: var(--rc-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rc-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rc-brand-labs {
  display: inline-flex;
  align-items: center;
  margin-right: -4px;
}

.rc-brand-labs img {
  width: 138px;
  height: auto;
  aspect-ratio: 715 / 245;
  display: block;
}

.rc-brand-labs img.rc-logo--dark {
  display: none;
}

:root.dark .rc-brand-labs img.rc-logo--light {
  display: none;
}

:root.dark .rc-brand-labs img.rc-logo--dark {
  display: block;
}

.rc-brand-divider {
  width: 1.5px;
  height: 30px;
  background-color: var(--rc-ink-heading);
  opacity: 0.85;
}

.rc-brand-lockup--footer .rc-brand-divider {
  background-color: var(--rc-stage-text);
  opacity: 0.7;
}

.rc-brand-product {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--rc-ink-heading);
  text-decoration: none;
  white-space: nowrap;
}

.rc-brand-product:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rc-brand-lockup--footer .rc-brand-product {
  color: var(--rc-stage-text);
}

.rc-brand-sub {
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 999px;
  background-color: var(--rc-paper-recessed);
  color: var(--rc-ink-muted);
  letter-spacing: 0;
}

/* Primary Navigation */
.rc-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rc-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rc-ink-body);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.16s var(--rc-ease-out), color 0.16s var(--rc-ease-out);
}

.rc-nav__link::-webkit-details-marker {
  display: none;
}

.rc-nav__link:hover {
  background-color: var(--rc-paper-recessed);
  color: var(--rc-ink-heading);
}

.rc-nav__link.is-current {
  background-color: var(--rc-paper-recessed);
  color: var(--rc-ink-heading);
}

.rc-nav__chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.18s var(--rc-ease-out);
}

.rc-nav-dropdown {
  position: relative;
}

.rc-nav-dropdown[open] .rc-nav__chevron {
  transform: rotate(180deg);
}

.rc-nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 310px;
  padding: 10px;
  border-radius: 10px;
  background-color: var(--rc-paper-elevated);
  border: 1px solid var(--rc-rule-strong);
  box-shadow: var(--rc-shadow-float);
  z-index: 70;
}

.rc-nav-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.rc-nav-topic-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rc-ink-body);
  text-decoration: none;
}

.rc-nav-topic-link:hover {
  background-color: var(--rc-paper-recessed);
  color: var(--rc-ink-heading);
}

.rc-nav-dropdown__footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--rc-rule);
}

.rc-nav-dropdown__footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rc-link);
  text-decoration: none;
}

.rc-nav-dropdown__footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Header Right Controls */
.rc-header__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rc-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--rc-rule-strong);
  background-color: var(--rc-paper-elevated);
  color: var(--rc-ink-muted);
  font-family: var(--font-family-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.16s var(--rc-ease-out), background-color 0.16s var(--rc-ease-out);
}

.rc-search-trigger:hover {
  border-color: var(--rc-ink-heading);
  color: var(--rc-ink-heading);
}

.rc-kbd {
  font-family: var(--font-family-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: var(--rc-paper-recessed);
  color: var(--rc-ink-muted);
}

.rc-icon-control,
.rc-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--rc-rule-strong);
  background-color: var(--rc-paper-elevated);
  color: var(--rc-ink-heading);
  cursor: pointer;
  transition: background-color 0.16s var(--rc-ease-out), border-color 0.16s var(--rc-ease-out);
}

.rc-icon-control:hover,
.rc-menu-toggle:hover {
  background-color: var(--rc-paper-recessed);
}

.rc-theme-icon--light {
  display: none;
}

:root.dark .rc-theme-icon--dark {
  display: none;
}

:root.dark .rc-theme-icon--light {
  display: inline-flex;
}

.rc-menu-toggle {
  display: none;
}

.rc-menu-toggle__close {
  display: none;
}

.rc-menu-toggle[aria-expanded="true"] .rc-menu-toggle__open {
  display: none;
}

.rc-menu-toggle[aria-expanded="true"] .rc-menu-toggle__close {
  display: inline-flex;
}

/* Broadcast Stage (Top Viewport — Forest #015258) */
.rc-stage {
  background-color: var(--rc-stage-bg);
  color: var(--rc-stage-text);
  padding-block: 22px 26px;
  border-bottom: 1px solid var(--rc-stage-rule);
}

.rc-stage__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rc-stage-rule);
  margin-bottom: 20px;
}

.rc-stage__intro h1 {
  font-size: 2.125rem;
  line-height: 1.12;
  margin-bottom: 6px;
}

.rc-stage__subtitle {
  margin: 0;
  max-width: 65ch;
  font-size: 0.96875rem;
  line-height: 1.5;
  color: var(--rc-stage-muted);
}

.rc-stage__subtitle strong {
  color: var(--rc-spearmint);
  font-weight: 700;
}

.rc-stage__catalog-callout {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.rc-stage__sub-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--rc-stage-muted);
  text-decoration: none;
}

.rc-stage__sub-cta:hover {
  color: var(--rc-spearmint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rc-stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* Lead Newest Video */
.rc-lead-video {
  min-width: 0;
}

.rc-lead-video__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--rc-forest-deep);
  border: 1px solid var(--rc-stage-rule);
  text-decoration: none;
}

.rc-lead-video__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s var(--rc-ease-out);
}

.rc-lead-video__media:hover img {
  transform: scale(1.02);
}

.rc-lead-video__play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background-color: var(--rc-spearmint);
  color: #015258;
  font-weight: 700;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.rc-lead-video__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: rgba(1, 52, 56, 0.9);
  color: #f3f2ea;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rc-lead-video__content {
  padding-top: 14px;
}

.rc-lead-video__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.rc-lead-video__title-row h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
}

.rc-lead-video__title-row h2 a {
  color: var(--rc-stage-text);
  text-decoration: none;
}

.rc-lead-video__title-row h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rc-lead-video__title-row time {
  font-size: 0.875rem;
  color: var(--rc-stage-muted);
  flex-shrink: 0;
}

.rc-lead-video__desc {
  margin: 0 0 12px;
  max-width: 65ch;
  color: var(--rc-stage-muted);
  font-size: 0.90625rem;
  line-height: 1.5;
}

.rc-lead-video__footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.rc-lead-video__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rc-stage-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--rc-stage-rule);
  background-color: rgba(243, 242, 234, 0.08);
  color: var(--rc-stage-text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.rc-stage-tag:hover {
  border-color: var(--rc-spearmint);
  color: var(--rc-spearmint);
}

.rc-lead-video__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rc-lead-video__actions .btn,
.rc-footer__channels .btn,
.rc-ep-hero__actions .btn {
  text-decoration: none;
}

.rc-stage-wiki-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  color: var(--rc-spearmint);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.rc-stage-wiki-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Right Stack of Recent Videos */
.rc-recent-videos {
  min-width: 0;
  padding-left: 32px;
  border-left: 1px solid var(--rc-stage-rule);
}

.rc-recent-videos__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rc-recent-videos__head h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0;
}

.rc-recent-videos__head a {
  color: var(--rc-spearmint);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.rc-recent-videos__head a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rc-recent-videos__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rc-recent-video-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid var(--rc-stage-rule);
  align-items: start;
}

.rc-recent-video-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.rc-recent-video-row__thumb,
.rc-stage-shelf__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--rc-forest-deep);
  border: 1px solid var(--rc-stage-rule);
}

.rc-recent-video-row__thumb img,
.rc-stage-shelf__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s var(--rc-ease-out);
}

.rc-recent-video-row__thumb:hover img,
.rc-stage-shelf__thumb:hover img {
  transform: scale(1.03);
}

.rc-recent-video-row__dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background-color: rgba(1, 44, 48, 0.92);
  color: #f3f2ea;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rc-recent-video-row__dur svg {
  color: var(--rc-spearmint);
}

.rc-recent-video-row__info h3 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 5px;
}

.rc-recent-video-row__info h3 a {
  color: var(--rc-stage-text);
  text-decoration: none;
}

.rc-recent-video-row__info h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rc-recent-video-row__meta {
  display: flex;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--rc-stage-muted);
  margin-bottom: 6px;
}

.rc-recent-video-row__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.rc-recent-video-row__links a {
  color: var(--rc-spearmint);
  text-decoration: none;
}

.rc-recent-video-row__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 4-up Stage Shelf */
.rc-stage-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rc-stage-rule);
}

.rc-stage-shelf__body {
  padding-top: 10px;
}

.rc-stage-shelf__body h3 {
  font-size: 0.96875rem;
  line-height: 1.32;
  margin: 0 0 4px;
}

.rc-stage-shelf__body h3 a {
  color: var(--rc-stage-text);
  text-decoration: none;
}

.rc-stage-shelf__body h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rc-stage-shelf__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--rc-stage-muted);
}

.rc-stage-shelf__meta a {
  color: var(--rc-spearmint);
  text-decoration: none;
  font-weight: 600;
}

.rc-stage-shelf__meta a:hover {
  text-decoration: underline;
}

/* Connected Wiki Workbench */
.rc-workbench {
  padding-block: 44px 72px;
}

.rc-workbench__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rc-rule-strong);
  margin-bottom: 28px;
}

.rc-workbench__heading-group h2 {
  font-size: 1.875rem;
  line-height: 1.18;
  margin-bottom: 6px;
}

.rc-workbench__heading-group p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--rc-ink-muted);
  max-width: 58ch;
}

.rc-workbench__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rc-workbench__search {
  background-color: var(--rc-paper-elevated);
}

.rc-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rc-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--rc-rule-strong);
  background-color: var(--rc-paper-elevated);
  color: var(--rc-ink-body);
  font-family: var(--font-family-body);
  font-size: 0.84375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s var(--rc-ease-out), color 0.16s var(--rc-ease-out), border-color 0.16s var(--rc-ease-out);
}

.rc-filter-pill:hover {
  border-color: var(--rc-ink-heading);
}

.rc-filter-pill.is-active {
  background-color: var(--rc-forest);
  border-color: var(--rc-forest);
  color: #f3f2ea;
}

:root.dark .rc-filter-pill.is-active {
  background-color: var(--rc-spearmint);
  border-color: var(--rc-spearmint);
  color: #015258;
}

/* Three-Zone Workbench Grid */
.rc-workbench__grid {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.rc-rail {
  position: sticky;
  top: calc(var(--rc-header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.rc-stream,
.rc-ep-main,
.rc-ep-sidebar {
  min-width: 0;
}

.rc-rail__section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rc-rule);
}

.rc-rail__section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rc-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.rc-rail__section h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  margin: 0 0 10px;
}

.rc-rail__head h3 {
  margin-bottom: 0;
}

.rc-rail__head a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rc-link);
  text-decoration: none;
}

.rc-rail__head a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rc-rail__note {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: var(--rc-ink-muted);
}

/* Topic Rail */
.rc-topic-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.rc-topic-rail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 2px;
}

.rc-topic-rail-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--rc-ink-body);
  font-family: var(--font-family-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.16s var(--rc-ease-out), color 0.16s var(--rc-ease-out);
}

.rc-topic-rail-btn:hover {
  background-color: var(--rc-paper-recessed);
  color: var(--rc-ink-heading);
}

.rc-topic-rail-btn.is-active {
  background-color: var(--rc-forest);
  color: #f3f2ea;
}

:root.dark .rc-topic-rail-btn.is-active {
  background-color: var(--rc-spearmint);
  color: #015258;
}

.rc-topic-rail-btn__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc-rail-pictogram {
  width: 20px;
  height: 20px;
  flex: none;
}

.rc-topic-rail-btn.is-active .rc-rail-pictogram * {
  stroke: currentColor;
}

.rc-topic-portal-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--rc-ink-muted);
  text-decoration: none;
}

.rc-topic-portal-jump:hover {
  background-color: var(--rc-paper-recessed);
  color: var(--rc-ink-heading);
}

/* Active Filter Banner */
.rc-active-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background-color: var(--rc-paper-recessed);
  border: 1px solid var(--rc-rule-strong);
  font-size: 0.875rem;
  font-weight: 600;
}

.rc-active-filter-banner__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rc-stream__head {
  margin-bottom: 12px;
}

.rc-stream__head h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  margin: 0;
}

@keyframes rcStreamSettle {
  from {
    transform: translateY(6px);
    filter: blur(2px);
  }
  to {
    transform: translateY(0);
    filter: blur(0);
  }
}

.rc-ledger-list.is-settling {
  animation: rcStreamSettle 0.2s var(--rc-ease-out);
}

/* Episode Ledger Entries */
.rc-ledger-list {
  border-top: 1px solid var(--rc-rule);
}

.rc-ledger-item {
  padding-block: 24px;
  border-bottom: 1px solid var(--rc-rule);
  min-width: 0;
}

.rc-ledger-item--with-media {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.rc-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--rc-forest-deep);
  border: 1px solid var(--rc-rule);
}

.rc-video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s var(--rc-ease-out);
}

.rc-video-thumb:hover img {
  transform: scale(1.03);
}

.rc-video-thumb__pill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background-color: rgba(1, 44, 48, 0.92);
  color: #f3f2ea;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rc-video-thumb__pill svg {
  color: var(--rc-spearmint);
}

.rc-ledger-item__body {
  min-width: 0;
}

.rc-ledger-item__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.rc-ledger-item__title {
  font-size: 1.3125rem;
  line-height: 1.26;
  margin: 0;
}

.rc-ledger-item__title a {
  color: var(--rc-ink-heading);
  text-decoration: none;
}

.rc-ledger-item__title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rc-ledger-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.84375rem;
  color: var(--rc-ink-muted);
}

.rc-ep-code {
  font-weight: 700;
  color: var(--rc-ink-heading);
  text-decoration: none;
}

a.rc-ep-code:hover {
  text-decoration: underline;
}

.rc-ledger-item__desc {
  max-width: 66ch;
  color: var(--rc-ink-body);
  font-size: 0.96875rem;
  line-height: 1.62;
  margin-bottom: 14px;
}

.rc-ledger-item__desc p {
  margin: 0 0 10px;
}

.rc-ledger-item__desc p:last-child {
  margin-bottom: 0;
}

.rc-inline-link {
  color: var(--rc-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.rc-inline-link:hover {
  color: var(--rc-link-hover);
}

.rc-ledger-item__taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.rc-tag,
.rc-guest-pill,
.rc-ep-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--rc-paper-recessed);
  border: 1px solid var(--rc-rule);
  color: var(--rc-ink-heading);
  font-size: 0.78125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rc-tag:hover,
.rc-guest-pill:hover,
.rc-ep-chip:hover {
  border-color: var(--rc-ink-heading);
}

.rc-ledger-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.rc-media-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rc-link);
  text-decoration: none;
}

.rc-media-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rc-stream__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
}

.rc-stream__footer .btn {
  text-decoration: none;
}

/* Right Rail Lists */
.rc-compact-links,
.rc-guest-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rc-compact-links li a {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--rc-ink-body);
  text-decoration: none;
}

.rc-compact-links li a:hover {
  color: var(--rc-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rc-backlink-count {
  display: block;
  font-size: 0.75rem;
  color: var(--rc-ink-muted);
  margin-top: 2px;
}

.rc-guest-rail-list li a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--rc-ink-body);
}

.rc-guest-rail-list li a strong {
  font-size: 0.90625rem;
  color: var(--rc-ink-heading);
}

.rc-guest-rail-list li a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rc-guest-rail-list li a span {
  font-size: 0.78125rem;
  color: var(--rc-ink-muted);
  line-height: 1.35;
}

/* Subpage Heroes & Breadcrumbs */
.rc-page-hero,
.rc-ep-hero {
  background-color: var(--rc-stage-bg);
  color: var(--rc-stage-text);
  padding-block: 32px 40px;
  border-bottom: 1px solid var(--rc-stage-rule);
}

.rc-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84375rem;
  color: var(--rc-stage-muted);
  margin-bottom: 18px;
}

.rc-breadcrumbs a {
  color: var(--rc-stage-muted);
  text-decoration: none;
}

.rc-breadcrumbs a:hover {
  color: var(--rc-spearmint);
  text-decoration: underline;
}

.rc-page-hero h1,
.rc-ep-hero h1 {
  font-size: 2.375rem;
  line-height: 1.14;
  margin-bottom: 12px;
  max-width: 28ch;
}

.rc-page-hero__lead {
  margin: 0 0 18px;
  max-width: 66ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--rc-stage-muted);
}

.rc-section {
  padding-block: 44px 72px;
}

/* Episode Detail Page */
.rc-ep-hero__grid--video {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.rc-ep-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.90625rem;
  color: var(--rc-stage-muted);
  margin-bottom: 22px;
}

.rc-ep-badge-strong {
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--rc-spearmint);
  color: #015258;
  font-weight: 700;
  font-size: 0.8125rem;
}

.rc-ep-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.rc-audio-player-box {
  max-width: 520px;
  padding-top: 14px;
  border-top: 1px solid var(--rc-stage-rule);
}

.rc-audio-player-box__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rc-stage-muted);
  margin-bottom: 8px;
}

.rc-audio-element {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  background-color: var(--rc-paper);
  accent-color: var(--rc-forest);
}

.rc-ep-video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-color: #012b2e;
  border: 1px solid var(--rc-stage-rule);
}

.rc-ep-video-poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rc-ep-video-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rc-ep-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.rc-ep-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  align-items: start;
}

.rc-ep-sidebar {
  position: sticky;
  top: calc(var(--rc-header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rc-ep-block {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rc-rule);
}

.rc-ep-block h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 16px;
}

.rc-ep-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.rc-prose {
  max-width: 66ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.rc-prose p {
  margin: 0 0 16px;
}

.rc-prose p:last-child {
  margin-bottom: 0;
}

.rc-prose-muted {
  color: var(--rc-ink-muted);
}

.rc-ep-topics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

#show-notes,
#citations {
  scroll-margin-top: calc(var(--rc-header-h) + 24px);
}

.rc-show-notes__subsection,
.rc-show-notes__chapters {
  margin-top: 24px;
}

.rc-show-notes__subsection h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.35;
}

.rc-show-notes__subsection .rc-ep-block__head h3 {
  margin: 0;
}

.rc-show-notes__links {
  margin: 0;
  padding-inline-start: 1.25em;
}

.rc-show-notes__chapters {
  max-width: 66ch;
  border-block: 1px solid var(--rc-rule);
}

.rc-show-notes__chapters summary {
  padding: 10px 0;
  color: var(--rc-link);
  font-weight: 600;
  cursor: pointer;
}

.rc-show-notes__chapters ol {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
}

.rc-show-notes__chapters li,
.rc-show-notes__chapters li a {
  display: grid;
  grid-template-columns: 7ch minmax(0, 1fr);
  align-items: baseline;
  padding: 4px 0;
}

.rc-show-notes__chapters li:has(a) {
  display: block;
  padding: 0;
}

.rc-show-notes__chapters li span {
  color: var(--rc-ink-muted);
  font-variant-numeric: tabular-nums;
}

/* Citations List */
.rc-citation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rc-rule);
}

.rc-citation-item {
  padding-block: 18px;
  border-bottom: 1px solid var(--rc-rule);
}

.rc-citation-item__title {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0 0 6px;
}

.rc-citation-item__title a {
  color: var(--rc-ink-heading);
  text-decoration: none;
}

.rc-citation-item__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rc-citation-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 8px;
  font-size: 0.8125rem;
  max-width: 68ch;
}

.rc-citation-type {
  font-weight: 700;
  color: var(--rc-ink-heading);
  background-color: var(--rc-paper-recessed);
  padding: 2px 8px;
  border-radius: 4px;
}

.rc-citation-date {
  color: var(--rc-ink-muted);
  font-variant-numeric: tabular-nums;
}

.rc-citation-authors {
  font-weight: 600;
  color: var(--rc-ink-muted);
}

/* Guest Items & Directories */
.rc-ep-guest-list,
.rc-shorts-inline-list,
.rc-shorts-directory {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rc-ep-guest-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--rc-rule);
}

.rc-ep-guest-item h4 {
  font-size: 1.125rem;
  margin: 0 0 4px;
}

.rc-ep-guest-item h4 a {
  color: var(--rc-ink-heading);
  text-decoration: none;
}

.rc-ep-guest-item p {
  margin: 0;
  font-size: 0.90625rem;
  color: var(--rc-ink-muted);
  max-width: 60ch;
}

.rc-shorts-inline-list li + li {
  margin-top: 10px;
}

.rc-shorts-inline-list a {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--rc-link);
  text-decoration: none;
}

.rc-shorts-inline-list a:hover {
  text-decoration: underline;
}

/* Prev / Next Episode Pager */
.rc-ep-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 8px;
}

.rc-ep-pager__slot {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rc-ep-pager__slot--next {
  text-align: right;
  align-items: flex-end;
}

.rc-ep-pager__dir {
  font-size: 0.8125rem;
  color: var(--rc-ink-muted);
}

.rc-ep-pager__slot a {
  font-weight: 700;
  color: var(--rc-ink-heading);
  text-decoration: none;
}

.rc-ep-pager__slot a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Topic Directory, Era Sections & Guest Directory */
.rc-topic-directory,
.rc-guest-directory {
  border-top: 1px solid var(--rc-rule-strong);
}

.rc-topic-row,
.rc-guest-row,
.rc-shorts-directory__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  padding-block: 24px;
  border-bottom: 1px solid var(--rc-rule);
  align-items: start;
}

.rc-topic-row__identity {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.rc-directory-pictogram {
  width: 44px;
  height: 44px;
  flex: none;
}

.rc-topic-row h2,
.rc-guest-row h2 {
  font-size: 1.375rem;
  line-height: 1.24;
  margin: 0 0 8px;
}

.rc-topic-row h2 a,
.rc-guest-row h2 a {
  color: var(--rc-ink-heading);
  text-decoration: none;
}

.rc-topic-row h2 a:hover,
.rc-guest-row h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rc-topic-row__summary,
.rc-guest-row__bio p {
  margin: 0;
  max-width: 66ch;
  color: var(--rc-ink-body);
  font-size: 0.96875rem;
}

.rc-topic-row__counts {
  display: flex;
  gap: 18px;
  font-size: 0.90625rem;
  color: var(--rc-ink-muted);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.rc-topic-row__counts strong {
  color: var(--rc-ink-heading);
}

.rc-topic-row__latest {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--rc-ink-muted);
}

.rc-topic-row__latest a {
  color: var(--rc-link);
  text-decoration: none;
  font-weight: 600;
}

.rc-topic-row__latest a:hover {
  text-decoration: underline;
}

.rc-topic-hero-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.rc-topic-hero-pictogram {
  width: 56px;
  height: 56px;
  flex: none;
}

.rc-topic-hero-counts {
  margin: 0;
  font-size: 0.90625rem;
  color: var(--rc-stage-muted);
  font-variant-numeric: tabular-nums;
}

.rc-topic-video-strip {
  margin-top: 28px;
}

.rc-topic-video-strip__head h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.rc-topic-video-strip .rc-stage-shelf {
  margin-top: 16px;
  padding-top: 16px;
}

.rc-guest-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

/* Era Jump & Master Ledger */
.rc-era-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.rc-era-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rc-stage-rule);
  background-color: rgba(243, 242, 234, 0.08);
  color: var(--rc-stage-text);
  font-size: 0.84375rem;
  font-weight: 600;
  text-decoration: none;
}

.rc-era-pill:hover {
  border-color: var(--rc-spearmint);
  color: var(--rc-spearmint);
}

.rc-archival-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 0 32px;
  border-radius: 8px;
  background-color: var(--rc-paper-recessed);
  border: 1px solid var(--rc-rule);
  font-size: 0.90625rem;
  color: var(--rc-ink-muted);
}

.rc-era-section + .rc-era-section {
  margin-top: 56px;
}

.rc-era-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.rc-era-section__head h2 {
  font-size: 1.625rem;
  margin: 0;
}

.rc-era-section__head span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rc-ink-muted);
  font-variant-numeric: tabular-nums;
}

.rc-shorts-directory__row h3 {
  font-size: 1.125rem;
  margin: 0 0 4px;
}

.rc-shorts-directory__row h3 a {
  color: var(--rc-ink-heading);
  text-decoration: none;
}

.rc-shorts-directory__row p {
  margin: 0;
  font-size: 0.90625rem;
  color: var(--rc-ink-muted);
}

/* Search Modal (<dialog>) */
.rc-search-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: min(80vh, 680px);
  margin: 8vh auto auto;
  padding: 0;
  border: 1px solid var(--rc-rule-strong);
  border-radius: 12px;
  background-color: var(--rc-paper-elevated);
  color: var(--rc-ink-body);
  box-shadow: var(--rc-shadow-float);
  transition: transform 0.2s var(--rc-ease-out), opacity 0.2s var(--rc-ease-out);
}

@starting-style {
  .rc-search-dialog[open] {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

.rc-search-dialog::backdrop {
  background-color: rgba(1, 32, 35, 0.62);
  backdrop-filter: blur(5px);
}

.rc-search-dialog__surface {
  display: flex;
  flex-direction: column;
  max-height: min(80vh, 680px);
}

.rc-search-dialog__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rc-rule);
}

.rc-search-dialog__field {
  flex: 1;
}

.rc-search-dialog__meta {
  padding: 8px 18px;
  font-size: 0.8125rem;
  color: var(--rc-ink-muted);
  border-bottom: 1px solid var(--rc-rule);
}

.rc-search-dialog__results {
  overflow-y: auto;
  padding: 8px;
  max-height: 500px;
}

.rc-search-hit {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--rc-ink-body);
  transition: background-color 0.14s ease;
}

.rc-search-hit:hover,
.rc-search-hit.is-active {
  background-color: var(--rc-paper-recessed);
}

.rc-search-hit__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 3px;
}

.rc-search-hit__title {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 1.03125rem;
  color: var(--rc-ink-heading);
}

.rc-search-hit__kind {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rc-ink-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.rc-search-hit__snippet {
  margin: 0;
  font-size: 0.84375rem;
  color: var(--rc-ink-muted);
  line-height: 1.45;
}

.rc-empty-results {
  padding: 36px 20px;
  text-align: center;
  color: var(--rc-ink-muted);
}

.rc-empty-results strong {
  display: block;
  font-family: var(--font-family-display);
  font-size: 1.1875rem;
  color: var(--rc-ink-heading);
  margin-bottom: 6px;
}

/* Footer */
.rc-footer {
  background-color: var(--rc-stage-bg);
  color: var(--rc-stage-text);
  padding-top: 52px;
  border-top: 1px solid var(--rc-stage-rule);
}

.rc-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.rc-footer__summary {
  margin: 16px 0 20px;
  max-width: 54ch;
  font-size: 0.9375rem;
  color: var(--rc-stage-muted);
  line-height: 1.6;
}

.rc-footer__summary a {
  color: inherit;
  text-decoration: underline;
}

.rc-footer__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rc-footer__col h2 {
  font-size: 1.0625rem;
  margin-bottom: 14px;
}

.rc-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.rc-footer__col a {
  color: var(--rc-stage-muted);
  font-size: 0.90625rem;
  text-decoration: none;
}

.rc-footer__col a:hover {
  color: var(--rc-spearmint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rc-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid var(--rc-stage-rule);
  font-size: 0.8125rem;
  color: var(--rc-stage-muted);
}

.rc-footer__bottom p {
  margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .rc-stage__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .rc-recent-videos {
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--rc-stage-rule);
  }

  .rc-recent-videos__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }

  .rc-recent-video-row {
    border-top: 0;
    padding-block: 0;
  }

  .rc-stage-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rc-workbench__toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .rc-workbench__grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .rc-rail--graph {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--rc-rule-strong);
  }

  .rc-rail--graph .rc-rail__section {
    border-bottom: 0;
  }

  .rc-ep-hero__grid--video,
  .rc-ep-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .rc-ep-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  :root {
    --rc-gutter: 18px;
    --rc-header-h: 68px;
  }

  .rc-menu-toggle {
    display: inline-flex;
  }

  .rc-search-trigger__label,
  .rc-kbd {
    display: none;
  }

  .rc-search-trigger {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .js .rc-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 14px var(--rc-gutter) 20px;
    background-color: var(--rc-paper-elevated);
    border-bottom: 1px solid var(--rc-rule-strong);
    box-shadow: var(--rc-shadow-float);
  }

  .js .rc-nav.is-open {
    display: flex;
  }

  .rc-nav-dropdown__panel {
    position: static;
    width: auto;
    box-shadow: none;
    margin-top: 4px;
  }

  .rc-stage__intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .rc-stage__catalog-callout {
    align-items: flex-start;
  }

  .rc-stage__intro h1,
  .rc-page-hero h1,
  .rc-ep-hero h1 {
    font-size: 1.875rem;
  }

  .rc-recent-videos__list,
  .rc-workbench__grid,
  .rc-rail--graph,
  .rc-topic-row,
  .rc-guest-row,
  .rc-shorts-directory__row,
  .rc-footer__grid,
  .rc-ep-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .rc-rail {
    position: static;
  }

  .rc-topic-rail-list {
    display: flex;
    overflow-x: auto;
    max-width: 100%;
    gap: 6px;
    padding-bottom: 6px;
  }

  .rc-topic-rail-item {
    display: inline-flex;
    flex-shrink: 0;
  }

  .rc-topic-portal-jump {
    display: none;
  }

  .rc-topic-rail-btn {
    white-space: nowrap;
    border: 1px solid var(--rc-rule-strong);
    background-color: var(--rc-paper-elevated);
  }

  .rc-ledger-item--with-media {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .rc-ep-pager__slot--next {
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .rc-header__inner {
    gap: 8px;
  }

  .rc-brand-lockup {
    gap: 6px;
    min-width: 0;
  }

  .rc-brand-labs img {
    width: 98px;
  }

  .rc-brand-divider {
    height: 22px;
  }

  .rc-brand-product {
    font-size: 0.90625rem;
  }

  .rc-header__controls {
    gap: 6px;
  }

  .rc-stage-shelf {
    grid-template-columns: minmax(0, 1fr);
  }

  .rc-recent-video-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
