:root {
  color-scheme: dark;
  --bg: #07161d;
  --surface: #10252d;
  --surface-muted: #18343d;
  --surface-soft: #213f48;
  --text-cloud: #edf4f2;
  --text-cloud-soft: #d8e6e3;
  --text-muted: #a9bdb9;
  --text: var(--text-cloud);
  --muted: var(--text-muted);
  --line: #31515a;
  --accent: #68d1c4;
  --accent-strong: #9ee6dc;
  --warning-bg: #ffe8a3;
  --warning-text: #332500;
  --danger: #ffb0a6;
  --border: #31515a;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(104, 209, 196, 0.12), transparent 34rem),
    linear-gradient(180deg, #07161d 0%, #0b1d25 48%, #07161d 100%);
  color: var(--text-cloud);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--warning-bg);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-cloud);
  padding: 0.6rem 0.8rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(16, 37, 45, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1rem;
}

.topline strong {
  color: var(--text-cloud);
  font-size: 1.05rem;
}

.topline span {
  background: rgba(255, 176, 166, 0.14);
  border: 1px solid rgba(255, 176, 166, 0.45);
  border-radius: 999px;
  color: var(--danger);
  font-weight: 700;
  padding: 0.35rem 0.65rem;
}

.scenario-banner {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-block: 1px solid #f2c654;
  font-weight: 700;
  padding: 0.85rem 1rem;
  text-align: center;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1rem 1.05rem;
}

.main-nav a,
.site-footer a {
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-cloud-soft);
  font-weight: 700;
  padding: 0.58rem 0.75rem;
  text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover {
  background: var(--surface-muted);
  border-color: var(--line);
}

.main-nav a[aria-current="page"],
.site-footer a[aria-current="page"] {
  background: rgba(104, 209, 196, 0.16);
  border-color: rgba(104, 209, 196, 0.55);
  color: var(--text-cloud);
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.page-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page-status span {
  background: rgba(16, 37, 45, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-cloud-soft);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.38rem 0.7rem;
}

.route-view {
  background: linear-gradient(180deg, rgba(16, 37, 45, 0.98), rgba(13, 31, 39, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 24rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

h1 {
  color: var(--text-cloud);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1.1rem;
}

h2 {
  color: var(--text-cloud);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

p {
  max-width: 68ch;
  color: var(--text-cloud-soft);
  font-size: 1.02rem;
}

.content-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.25rem;
}

.info-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.info-card strong {
  color: var(--text-cloud);
  display: block;
  margin-bottom: 0.35rem;
}

.info-card span {
  color: var(--text-cloud-soft);
}

.notice {
  background: var(--surface-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text-cloud);
  margin-top: 1.25rem;
  padding: 1rem;
}

.notice.warning {
  background: var(--warning-bg);
  border-left-color: #b98400;
  color: var(--warning-text);
}

.podcast-layout {
  display: grid;
  gap: 1.25rem;
}

.podcast-editorial-page {
  align-items: stretch;
}

.podcast-hero {
  background:
    linear-gradient(135deg, rgba(104, 209, 196, 0.16), transparent 52%),
    rgba(24, 52, 61, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.podcast-hero__subtitle {
  color: var(--text-cloud);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  margin-bottom: 0;
  max-width: 48rem;
}

.podcast-section {
  background: rgba(24, 52, 61, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.4rem);
}

.podcast-editorial {
  background: transparent;
  border-color: transparent;
  padding: 0;
}

.podcast-status,
.podcast-player__controls,
.podcast-distribution__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.podcast-status span,
.podcast-player__active span,
.podcast-player__active small,
.podcast-status-line,
.podcast-distribution article span {
  background: rgba(104, 209, 196, 0.12);
  border: 1px solid rgba(104, 209, 196, 0.36);
  border-radius: 999px;
  color: var(--text-cloud-soft);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.32rem 0.6rem;
}

.podcast-doctrine {
  border-color: rgba(255, 232, 163, 0.5);
}

.podcast-doctrine h2 {
  color: var(--warning-bg);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: 0;
}

.podcast-doctrine__grid,
.podcast-theme-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-top: 1rem;
}

.podcast-doctrine__grid article,
.podcast-theme-card {
  background: rgba(16, 37, 45, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
}

.podcast-doctrine__grid strong,
.podcast-theme-card strong {
  color: var(--text-cloud);
  display: block;
  line-height: 1.35;
}

.podcast-doctrine__grid span,
.podcast-theme-card span {
  color: var(--text-cloud-soft);
}

.podcast-theme-card span {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.podcast-player {
  display: grid;
  gap: 1rem;
}

.podcast-player__active {
  background: rgba(16, 37, 45, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.podcast-player__active strong {
  color: var(--text-cloud);
  font-size: 1.08rem;
}

.podcast-player__controls button {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-cloud);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
}

.podcast-player__controls button:hover,
.podcast-playlist button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.podcast-volume {
  align-items: center;
  background: rgba(16, 37, 45, 0.62);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 0.65rem;
  grid-template-columns: auto minmax(9rem, 1fr) auto;
  max-width: 34rem;
  padding: 0.75rem;
}

.podcast-volume span,
.podcast-volume strong {
  color: var(--text-cloud-soft);
}

.podcast-volume input {
  accent-color: var(--accent);
  width: 100%;
}

.podcast-playlist ol,
.podcast-link-list,
.podcast-source-list,
.podcast-source-category ul {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.podcast-playlist li,
.podcast-link-list li,
.podcast-source-card,
.podcast-distribution article {
  background: rgba(16, 37, 45, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
}

.podcast-playlist li.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(104, 209, 196, 0.32);
}

.podcast-playlist li {
  display: grid;
  gap: 0.75rem;
}

.podcast-playlist li > div:first-child {
  align-items: baseline;
  display: flex;
  gap: 0.65rem;
}

.podcast-playlist li > div:first-child span {
  color: var(--accent-strong);
  font-weight: 700;
}

.podcast-playlist button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-cloud);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.2rem 0.35rem;
  text-align: left;
}

.podcast-playlist strong,
.podcast-link-list span,
.podcast-source-category h3,
.podcast-source-link,
.podcast-distribution strong {
  color: var(--text-cloud);
}

.podcast-playlist dl {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin: 0;
}

.podcast-playlist dt {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.podcast-playlist dd {
  color: var(--text-cloud-soft);
  margin: 0;
}

.podcast-link-list li {
  display: grid;
  gap: 0.35rem;
}

.podcast-link-list a {
  font-weight: 700;
  width: fit-content;
}

.podcast-source-category {
  background: rgba(24, 52, 61, 0.54);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.podcast-source-category h3 {
  margin: 0 0 0.35rem;
}

.podcast-source-card {
  display: grid;
  gap: 0.75rem;
}

.podcast-source-card p {
  margin: 0.35rem 0 0;
}

.podcast-source-link {
  font-weight: 700;
}

.podcast-source-link--hold {
  color: var(--text-muted);
}

.podcast-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.podcast-source-status,
.podcast-source-type {
  background: rgba(104, 209, 196, 0.12);
  border: 1px solid rgba(104, 209, 196, 0.36);
  border-radius: 999px;
  color: var(--text-cloud-soft);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
}

.podcast-distribution__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-top: 1rem;
}

.podcast-distribution article {
  display: grid;
  gap: 0.6rem;
}

.chatbot-layout {
  display: grid;
  gap: 1.25rem;
}

.chatbot-section {
  background: rgba(24, 52, 61, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.4rem);
}

.chatbot-intro {
  background: transparent;
  border-color: transparent;
  padding: 0;
}

.chatbot-prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chatbot-guardrails span,
.chatbot-response__status,
.chatbot-response small {
  background: rgba(104, 209, 196, 0.12);
  border: 1px solid rgba(104, 209, 196, 0.36);
  border-radius: 999px;
  color: var(--text-cloud-soft);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.32rem 0.6rem;
}

.chatbot-console {
  display: grid;
  gap: 0.8rem;
}

.chatbot-prompt-caption {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.chatbot-prompt-list button {
  background: rgba(16, 37, 45, 0.82);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-cloud);
  cursor: pointer;
  display: inline-flex;
  flex: 0 1 auto;
  font: inherit;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.95rem;
  text-align: left;
}

.chatbot-prompt-list button:hover,
.chatbot-prompt-list button.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(104, 209, 196, 0.32);
}

.chatbot-prompt-list button strong {
  color: var(--text-cloud);
  font-size: 0.95rem;
  line-height: 1.3;
}

.chatbot-form {
  background: rgba(16, 37, 45, 0.58);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
}

.chatbot-form label {
  color: var(--text-cloud);
  font-weight: 700;
}

.chatbot-form textarea {
  background: rgba(7, 22, 29, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-cloud);
  font: inherit;
  min-height: 7rem;
  padding: 0.75rem;
  resize: vertical;
  width: 100%;
}

.chatbot-form button {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-cloud);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  justify-self: start;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
}

.chatbot-form button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.chatbot-response {
  background: rgba(16, 37, 45, 0.58);
  border: 1px solid rgba(104, 209, 196, 0.28);
  border-radius: var(--radius);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.chatbot-response__status {
  width: fit-content;
}

.chatbot-response__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.chatbot-response__meta div {
  background: rgba(104, 209, 196, 0.1);
  border: 1px solid rgba(104, 209, 196, 0.28);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
}

.chatbot-response__meta dt,
.chatbot-response__meta dd {
  color: var(--text-cloud-soft);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}

.chatbot-response__meta dt::after {
  content: ":";
}

.chatbot-bubble {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 46rem;
  padding: 0.85rem 1rem;
}

.chatbot-bubble--question {
  background: rgba(104, 209, 196, 0.12);
  justify-self: start;
}

.chatbot-bubble--answer {
  background: rgba(24, 52, 61, 0.92);
  border-left: 4px solid var(--accent);
  justify-self: stretch;
}

.chatbot-bubble span {
  color: var(--accent-strong);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.chatbot-response h3 {
  color: var(--text-cloud);
  font-size: 1.1rem;
  margin: 0;
}

.chatbot-response p {
  margin: 0;
}

.chatbot-compact-footer {
  background: rgba(16, 37, 45, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem;
}

.chatbot-compact-footer span {
  background: rgba(104, 209, 196, 0.1);
  border: 1px solid rgba(104, 209, 196, 0.28);
  border-radius: 999px;
  color: var(--text-cloud-soft);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
}

.site-footer {
  align-items: start;
  background: #0c1c24;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem max(1rem, calc((100vw - 1120px) / 2));
}

.site-footer p {
  color: var(--text-cloud-soft);
  margin: 0.35rem 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

@media (max-width: 720px) {
  .main-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .main-nav a {
    background: rgba(24, 52, 61, 0.88);
    border-color: var(--border);
    min-height: 2.75rem;
  }

  .route-view {
    padding: 1rem;
  }

  .podcast-volume {
    grid-template-columns: 1fr;
  }
}
