:root {
  --ot-blue: #003767;
  --ot-gold: #ffd24f;
  --ot-cerulean: #41b6e6;
  --ot-sea: #007b5f;
  --ot-peacock: #00677f;
  --ot-orange: #f2a900;
  --ot-ash: #565f5f;
  --ink: #111827;
  --paper: #ffffff;
  --wash: #f4f7f9;
  --line: #d7e0e7;
  --shadow: 0 18px 45px rgba(0, 55, 103, 0.17);
  --heading-font: "Franklin Gothic Demi", "Arial Narrow", Arial, sans-serif;
  --body-font: "Adobe Garamond Pro", Georgia, "Times New Roman", serif;
  --ui-font: Aptos, "Franklin Gothic Book", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--ui-font);
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.visually-hidden,
.skip-link {
  position: absolute;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--ot-blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.25rem);
  color: var(--paper);
  background: var(--ot-blue);
  border-bottom: 5px solid var(--ot-gold);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-lockup strong,
h1,
h2,
h3 {
  font-family: var(--heading-font);
  letter-spacing: 0;
}

.brand-lockup small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.main-nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--paper);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 210, 79, 0.18);
  outline: 2px solid transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  align-items: center;
  min-height: 36vh;
  padding: 0.1rem clamp(1rem, 4vw, 3rem);
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(0, 55, 103, 0.98), rgba(0, 103, 127, 0.92)),
    var(--ot-blue);
}

.hero h1,
.page-hero h1 {
  max-width: 2000px;
  margin: 0.45rem 0 1rem;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 0.98;
}

.hero h1 {
  margin: 0.225rem 0 0.5rem;
  font-size: clamp(1.2rem, 3vw, 2.65rem);
}

.hero p,
.page-hero p {
  max-width: 760px;
  font-family: var(--body-font);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero p {
  font-size: clamp(0.55rem, 1vw, 0.675rem);
  line-height: 1.3;
}

.eyebrow {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--ot-gold);
  font-family: var(--ui-font);
  font-size: 0.702rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-search {
  display: flex;
  max-width: 780px;
  margin-top: 0.6rem;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  padding: 0.5rem 0.55rem;
  border: 0;
  color: var(--ot-blue);
}

.hero-search button,
.button-link {
  border: 0;
  padding: 0.5rem 0.625rem;
  color: var(--ot-blue);
  background: var(--ot-gold);
  font-weight: 800;
  text-decoration: none;
}

.topic-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.325rem;
  margin-top: 0.45rem;
}

.topic-break {
  flex-basis: 100%;
  height: 0;
}

.topic-shortcuts a,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
}

.topic-shortcuts a {
  min-height: 21px;
  padding: 0.325rem 0.425rem;
  font-size: 0.62rem;
}

.text-link {
  color: var(--ot-blue);
  border-color: var(--line);
}

.hero-image {
  margin: 0;
}

.hero-image img {
  width: 100%;
  min-height: 170px;
  object-fit: cover;
  border: 5px solid rgba(255, 210, 79, 0.9);
  border-radius: 8px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
}

.hero-image figcaption {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

.content-band {
  padding: clamp(1.1rem, 3vw, 2.25rem) clamp(1rem, 4vw, 2.25rem);
  background: var(--paper);
}

.content-band.alt {
  background: var(--wash);
}

.module-video-band {
  padding-top: 10px;
  padding-bottom: 2rem;
}

.news-event-band {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.news-event-band .section-heading {
  margin-bottom: 0.35rem;
}

.news-event-band .video-rail {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.news-event-category-band {
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

.future-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.future-category-panel {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.future-category-panel[hidden] {
  display: none;
}

.future-category-heading {
  align-items: start;
  min-height: 0;
  margin-bottom: 0.15rem;
}

.future-category-heading h2 {
  margin-top: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.future-category-heading p {
  font-size: 0.82rem;
  line-height: 1.35;
}

.future-category-panel .video-rail {
  max-width: 100%;
}

.rail-frame {
  position: relative;
  min-width: 0;
}

.rail-arrow {
  position: absolute;
  top: 50%;
  z-index: 12;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 3.85rem;
  border: 1px solid rgba(255, 210, 79, 0.34);
  color: var(--paper);
  background: var(--ot-blue);
  box-shadow: 0 14px 32px rgba(0, 55, 103, 0.28);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.rail-arrow[hidden],
.rail-arrow.is-hidden,
.rail-arrow:disabled {
  display: none;
}

.rail-frame.is-at-start .rail-arrow-left,
.rail-frame.is-at-end .rail-arrow-right {
  display: none;
}

.rail-arrow-left {
  left: -0.75rem;
  border-radius: 0 8px 8px 0;
}

.rail-arrow-right {
  right: -0.75rem;
  border-radius: 8px 0 0 8px;
}

.rail-arrow:hover,
.rail-arrow:focus-visible {
  border-color: var(--ot-gold);
  color: var(--ot-blue);
  background: var(--ot-gold);
  outline: 2px solid transparent;
}

.rail-arrow:disabled {
  cursor: default;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.section-heading.align-end {
  justify-content: flex-end;
}

.section-heading h2,
.content-band h2 {
  margin: 0.2625rem 0;
  color: var(--ot-blue);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--ot-ash);
}

.video-rail {
  display: grid;
  grid-auto-columns: 250px;
  grid-auto-flow: column;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 1.25rem 1.25rem 1.5rem;
  scroll-padding-inline: 1rem;
  scroll-snap-type: x mandatory;
}

.future-rail {
  grid-auto-columns: 250px;
  align-items: stretch;
}

.video-rail[data-gesture-scroll] .preview-host iframe {
  pointer-events: none;
}

.video-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 250px;
  height: 430px;
  min-height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 55, 103, 0.08);
  cursor: pointer;
  scroll-snap-align: start;
  transform-origin: top center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.future-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 250px;
  height: 380px;
  min-height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 55, 103, 0.08);
  cursor: pointer;
  scroll-snap-align: start;
  transform-origin: top center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.future-card:hover,
.future-card:focus-visible {
  z-index: 5;
  transform: scale(1.025) translateY(-3px);
  border-color: var(--ot-gold);
  box-shadow: var(--shadow);
  outline: 0;
}

.future-card-body {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 0.22rem;
  padding: 0 1rem;
  min-height: 0;
}

.future-card h3 {
  display: -webkit-box;
  margin: -0.08rem 0 0;
  overflow: hidden;
  color: var(--ot-blue);
  font-family: var(--heading-font);
  font-size: 1.08rem;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
}

.future-card h3.title-fit-1 {
  font-size: 1rem;
}

.future-card h3.title-fit-2 {
  font-size: 0.94rem;
}

.future-card h3.title-fit-3 {
  font-size: 0.88rem;
}

.future-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ot-ash);
  font-size: 0.88rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.future-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  color: var(--paper);
  background: var(--ot-blue);
}

.future-source-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.future-logo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 2.25rem;
  object-fit: contain;
  background: var(--paper);
}

.future-thumb-hardware {
  background:
    radial-gradient(circle at 70% 25%, rgba(65, 182, 230, 0.9) 0 14%, transparent 15%),
    linear-gradient(135deg, var(--ot-blue), var(--ot-peacock));
}

.future-thumb-software {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, var(--ot-blue), var(--ot-ash));
}

.future-thumb-radiopharma {
  background:
    radial-gradient(circle at 28% 34%, rgba(255, 210, 79, 0.95) 0 10%, transparent 11%),
    radial-gradient(circle at 62% 58%, rgba(65, 182, 230, 0.75) 0 8%, transparent 9%),
    linear-gradient(135deg, var(--ot-blue), var(--ot-sea));
}

.future-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-self: start;
}

.future-tags button {
  display: block;
  max-width: 100%;
  padding: 0.24rem 0.42rem;
  border: 0;
  color: var(--ot-blue);
  background: rgba(65, 182, 230, 0.14);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.future-tags button:hover,
.future-tags button:focus-visible,
.future-tags button.is-active {
  background: var(--ot-gold);
  outline: 2px solid transparent;
}

.future-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.2rem clamp(1rem, 4vw, 3rem);
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.future-filters label {
  display: grid;
  gap: 0.35rem;
  color: var(--ot-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.future-filters select {
  width: 50%;
  min-width: 8.5rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ot-blue);
  background: var(--paper);
  font-size: 0.76rem;
}

.future-page-link {
  margin-left: 1.25rem;
}

.future-category-heading a {
  color: var(--ot-blue);
  font-weight: 900;
  text-decoration: none;
}

.future-category-heading a:hover,
.future-category-heading a:focus-visible {
  color: var(--ot-peacock);
  text-decoration: underline;
}

.future-category-heading span:not(:empty)::before {
  content: " ";
}

.video-card:hover,
.video-card:focus-visible,
.video-card:focus-within {
  z-index: 5;
  transform: scale(1.025) translateY(-3px);
  border-color: var(--ot-gold);
  box-shadow: var(--shadow);
  outline: 0;
}

.thumb {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  color: var(--paper);
  background: var(--ot-blue);
}

.thumb-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.95;
}

.source-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-source-thumb .thumb-pattern {
  display: none;
}

.thumb-radiopharmacy .thumb-pattern {
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 210, 79, 0.95) 0 9%, transparent 10%),
    linear-gradient(135deg, var(--ot-blue), var(--ot-sea));
}

.thumb-safety .thumb-pattern {
  background:
    linear-gradient(90deg, rgba(255, 210, 79, 0.18) 25%, transparent 25% 50%, rgba(255, 210, 79, 0.18) 50% 75%, transparent 75%),
    linear-gradient(135deg, var(--ot-blue), var(--ot-peacock));
  background-size: 54px 54px, auto;
}

.thumb-pet .thumb-pattern {
  background:
    radial-gradient(circle at 35% 45%, var(--ot-cerulean) 0 13%, transparent 14%),
    radial-gradient(circle at 60% 45%, var(--ot-gold) 0 9%, transparent 10%),
    linear-gradient(135deg, var(--ot-blue), #121827);
}

.thumb-patient .thumb-pattern {
  background:
    linear-gradient(135deg, rgba(255, 210, 79, 0.22), transparent 44%),
    linear-gradient(135deg, var(--ot-blue), var(--ot-cerulean));
}

.thumb-calculation .thumb-pattern {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 24px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, var(--ot-blue), var(--ot-ash));
}

.thumb-instrumentation .thumb-pattern {
  background:
    radial-gradient(circle at center, transparent 0 24%, rgba(255, 210, 79, 0.75) 25% 28%, transparent 29%),
    linear-gradient(135deg, var(--ot-blue), var(--ot-peacock));
}

.preview-host,
.preview-host iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.preview-badge {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  padding: 0.3rem 0.45rem;
  color: var(--ot-blue);
  background: rgba(255, 210, 79, 0.95);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
}

.video-card-body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.65rem;
  padding: 0.8rem;
  min-height: 0;
}

.card-meta,
.source-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ot-ash);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.future-card .source-row {
  align-self: start;
  margin-top: -0.12rem;
}

.video-card h3,
.resource-card h3,
.collection-card h3,
.news-card h3 {
  margin: 0.65rem 0 0.45rem;
  color: var(--ot-blue);
  font-size: 1rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.video-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.video-card p,
.resource-card p,
.collection-card p,
.news-card p {
  color: var(--ot-ash);
}

.video-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.topic-grid,
.collection-grid,
.resource-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
}

.topic-card,
.collection-card,
.resource-card,
.about-grid article,
.detail-panel {
  display: block;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.topic-card {
  display: flex;
  height: 172px;
  flex-direction: column;
  overflow: hidden;
}

.topic-card.browse-all-card {
  justify-self: end;
  width: auto;
  align-items: center;
  justify-content: center;
  height: 34px;
  max-height: 34px;
  min-height: 0;
  padding: 0.45rem 0.75rem;
  border-color: var(--line);
  color: var(--ot-blue);
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(0, 55, 103, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.topic-grid > .topic-card.browse-all-card {
  grid-column: -2 / -1;
  grid-row: 1;
}

.topic-card.browse-all-card:hover,
.topic-card.browse-all-card:focus-visible {
  border-color: var(--ot-gold);
  background: rgba(255, 210, 79, 0.35);
  box-shadow: 0 12px 28px rgba(0, 55, 103, 0.1);
}

.topic-card p {
  flex: 1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.topic-card small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.topic-card.is-filter-match {
  border-color: var(--ot-gold);
  box-shadow: 0 12px 28px rgba(0, 55, 103, 0.1);
}

.topic-card:hover,
.topic-card:focus-visible,
.collection-card:hover,
.resource-card:hover {
  border-color: var(--ot-gold);
  box-shadow: 0 12px 28px rgba(0, 55, 103, 0.1);
}

.topic-card span,
.collection-card h3,
.resource-card h3 {
  color: var(--ot-blue);
  font-weight: 900;
}

.topic-card p,
.topic-card small,
.resource-card small {
  color: var(--ot-ash);
}

.source-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: -1.25rem -1.25rem 1rem;
  background: var(--wash);
  border-radius: 8px 8px 0 0;
}

.source-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-time,
.resource-card > span,
.news-card span {
  display: inline-flex;
  padding: 0.3rem 0.5rem;
  color: var(--ot-blue);
  background: rgba(255, 210, 79, 0.35);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
}

.news-list {
  display: grid;
  gap: 0.75rem;
}

.news-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.news-card .source-card-image {
  flex: 0 0 150px;
  margin: 0;
  border-radius: 8px;
}

.news-card a {
  flex: 0 0 auto;
  color: var(--ot-blue);
  font-weight: 800;
}

.page-hero {
  padding: clamp(1.1rem, 3vw, 2.25rem) clamp(1rem, 4vw, 2.25rem);
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(0, 55, 103, 0.98), rgba(0, 103, 127, 0.94)),
    var(--ot-blue);
}

.page-hero.compact {
  min-height: 190px;
  padding: 0.4rem clamp(0.75rem, 2vw, 1.25rem);
}

.page-hero.compact h1 {
  max-width: 2000px;
  font-size: clamp(1.125rem, 2.8125vw, 2.484375rem);
}

.page-hero.compact p {
  font-size: clamp(1.03125rem, 1.875vw, 1.265625rem);
}

.category-hero {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 6px solid var(--ot-gold);
}

.objective-list {
  max-width: 820px;
  margin-top: 0.85rem;
  padding: 0.8rem 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-left: 6px solid var(--ot-gold);
  border-radius: 8px;
}

.objective-list span {
  color: var(--ot-blue);
  font-weight: 900;
}

.module-shortcut-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 1100px;
  margin-top: 0.75rem;
}

.module-shortcut-buttons a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.module-shortcut-buttons a:hover,
.module-shortcut-buttons a:focus-visible,
.module-shortcut-buttons a.is-active {
  color: var(--ot-blue);
  background: var(--ot-gold);
  border-color: var(--ot-gold);
  outline: 2px solid transparent;
}

.browse-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.75rem clamp(1rem, 4vw, 2.25rem) 1.5rem;
  background: var(--wash);
}

.browse-layout > div .content-band {
  padding-inline: 0;
}

.browse-layout > div > .content-band:first-child {
  padding-inline: 0.75rem;
}

.browse-layout > div > .content-band {
  padding-block: 1rem;
}

.browse-layout > div > .content-band + .content-band {
  padding-top: 0.25rem;
}

.browse-layout > div > .content-band:first-child {
  padding-bottom: 0.5rem;
}

.filter-sidebar {
  position: sticky;
  top: 92px;
  padding: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-sidebar h2 {
  margin: 0 0 1rem;
  color: var(--ot-blue);
}

.filter-sidebar label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: var(--ot-ash);
  font-weight: 800;
}

.filter-sidebar select {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ot-blue);
  background: var(--paper);
}

.video-detail {
  display: grid;
  gap: 1rem;
  padding: 10px clamp(1rem, 4vw, 3rem);
  color: var(--paper);
  background: var(--ot-blue);
}

.lesson-video-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.25fr) minmax(0, 1fr) minmax(120px, 0.25fr);
  gap: 1rem;
  align-items: end;
}

.video-player {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 5px solid var(--ot-gold);
  border-radius: 8px;
  background: #000;
}

.video-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder-player {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--paper);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 12px, transparent 12px 24px),
    var(--ot-peacock);
}

.video-placeholder-player span {
  color: var(--ot-gold);
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.video-placeholder-player p {
  max-width: 420px;
  margin: 0.5rem auto 0;
}

.video-summary {
  display: grid;
  gap: 0;
}

.video-summary h1 {
  margin: 0;
  padding-bottom: 0.5rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  font-size: clamp(0.72rem, 1.1vw, 0.95rem);
  font-weight: 400;
  line-height: 1.25;
}

.video-summary h1 a {
  color: inherit;
  text-decoration: none;
}

.video-summary h1 a:hover,
.video-summary h1 a:focus-visible {
  color: var(--ot-gold);
  text-decoration: underline;
}

.video-summary p {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 1;
}

.source-box {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  color: var(--ink);
  background: var(--paper);
  border-left: 6px solid var(--ot-gold);
  border-radius: 8px;
}

.lesson-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.lesson-nav-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  align-self: end;
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 210, 79, 0.45);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lesson-video-grid .lesson-nav-card {
  width: 100%;
}

.lesson-nav-card:hover,
.lesson-nav-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ot-gold);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  outline: 0;
}

.lesson-nav-card.is-empty {
  padding: 0.75rem;
  opacity: 0.7;
}

.lesson-nav-card > div:last-child {
  display: grid;
  gap: 0.18rem;
  padding: 0.38rem;
}

.lesson-nav-card span {
  color: var(--ot-blue);
  font-size: 0.52rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-nav-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ot-blue);
  font-size: 0.66rem;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.lesson-nav-card small {
  color: var(--ot-ash);
  font-size: 0.52rem;
  font-weight: 800;
}

.lesson-nav-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ot-blue);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(0.85rem, 3vw, 2rem);
  background: var(--wash);
}

.detail-panel h2 {
  margin-top: 0;
  color: var(--ot-blue);
}

.detail-panel.wide {
  grid-column: 1 / -1;
}

.chapter-list {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.2rem;
}

.chapter-list span {
  display: inline-flex;
  min-width: 4.2rem;
  color: var(--ot-peacock);
  font-weight: 900;
}

.transcript-body {
  white-space: pre-wrap;
  line-height: 1.55;
}

.key-concept-list {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.2rem;
}

.source-note-band {
  color: var(--paper);
  background: var(--ot-peacock);
}

.source-note-band h2 {
  color: var(--ot-gold);
}

.registry-wrap {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: var(--wash);
}

.registry-section {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.registry-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.registry-heading p {
  max-width: 1000px;
  margin: 0;
  color: var(--ot-ash);
}

.registry-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.registry-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.registry-list li:first-child {
  border-top: 0;
}

.registry-list strong {
  color: var(--ot-blue);
  font-family: var(--heading-font);
}

.registry-list span {
  color: var(--ink);
}

.registry-list small {
  color: var(--ot-ash);
}

.registry-list a {
  color: var(--ot-peacock);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(1rem, 4vw, 2.25rem);
  color: var(--paper);
  background: #001d36;
}

.site-footer p {
  max-width: 760px;
  margin: 0.5rem 0 0;
  font-family: var(--body-font);
}

.footer-note {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  color: rgba(255, 255, 255, 0.75);
}

.footer-note a {
  color: var(--ot-gold);
  font-weight: 800;
  text-decoration: none;
}

.footer-note a:hover,
.footer-note a:focus-visible {
  text-decoration: underline;
}

.admin-band {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.admin-login-band {
  display: grid;
  min-height: calc(100vh - 5.5rem);
  place-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.admin-login-card {
  width: min(22rem, 100%);
  margin: 0 auto;
  padding: 1rem;
}

.admin-login-card h2 {
  margin-bottom: 0.6rem;
  text-align: center;
  font-size: 50%;
  white-space: nowrap;
}

.admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form,
.admin-playlist-grid {
  display: grid;
  gap: 0.85rem;
}

.admin-form label,
.admin-playlist-grid label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.admin-form input,
.admin-playlist-grid input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-form button,
.admin-playlist-grid button,
.admin-button-row button {
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 0.95rem;
  color: var(--ot-blue);
  background: var(--ot-gold);
  font-weight: 800;
}

.admin-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-status-log,
.admin-status-list {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-status-list {
  display: grid;
  gap: 0.45rem;
}

.admin-status-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.admin-playlist-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.admin-playlist-grid button {
  justify-self: start;
}

@media (max-width: 980px) {
  .site-header,
  .section-heading,
  .news-card,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero,
  .lesson-video-grid,
  .video-detail,
  .browse-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .topic-grid,
  .collection-grid,
  .resource-grid,
  .about-grid,
  .detail-grid,
  .admin-grid,
  .admin-playlist-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-sidebar {
    position: static;
  }

  .video-rail {
    grid-auto-columns: min(250px, 76vw);
  }

  .video-card,
  .future-card {
    width: min(250px, 76vw);
  }

  .future-filters {
    grid-template-columns: 1fr 1fr;
  }

  .future-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav {
    justify-content: flex-start;
  }

  .hero-search {
    flex-direction: column;
  }

  .topic-shortcuts {
    display: flex;
    flex-wrap: wrap;
  }

  .topic-break {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .page-hero.compact h1 {
    font-size: 1.46875rem;
  }

  .topic-grid,
  .collection-grid,
  .resource-grid,
  .about-grid,
  .lesson-nav-grid,
  .detail-grid,
  .admin-grid,
  .admin-playlist-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel.wide {
    grid-column: auto;
  }

  .future-filters {
    grid-template-columns: 1fr;
  }

  .rail-arrow {
    width: 2rem;
    height: 3.25rem;
  }

  .rail-arrow-left {
    left: -0.35rem;
  }

  .rail-arrow-right {
    right: -0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .video-card:hover,
  .video-card:focus-visible,
  .video-card:focus-within,
  .future-card:hover,
  .future-card:focus-visible {
    transform: none;
  }
}
