:root {
  --duke-blue: #003087;
  --duke-blue-dark: #001f5b;
  --duke-blue-soft: #e8eef8;
  --ink: #172033;
  --muted: #5f6f86;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #eef2f8;
  --line: #d8e0ec;
  --green: #167c70;
  --gold: #a96f1d;
  --shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
}

body {
  color: var(--ink);
  background: var(--paper);
}

.bd-container,
.bd-container__inner,
.bd-page-width,
.bd-main,
.bd-content,
.bd-article-container,
.bd-sidebar-primary,
.bd-sidebar-secondary {
  background: var(--paper);
}

.bd-sidebar-primary {
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.bd-sidebar-primary .sidebar-primary-items__start,
.bd-sidebar-primary .sidebar-primary-items__end {
  background: var(--surface);
}

.bd-sidebar-primary .navbar-brand {
  color: var(--duke-blue-dark);
  font-weight: 800;
}

.bd-sidebar-primary .search-button {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.bd-sidebar-primary .bd-links__title,
.bd-sidebar-secondary .sidebar-secondary-items__title {
  color: var(--duke-blue-dark);
  font-weight: 800;
}

.bd-sidebar-primary .toctree-l1 > a,
.bd-sidebar-secondary a {
  color: #30425f;
}

.bd-sidebar-primary .toctree-l1.current > a,
.bd-sidebar-primary .toctree-l1 > a.current,
.bd-sidebar-primary a.reference.internal:hover,
.bd-sidebar-secondary a:hover {
  color: var(--duke-blue);
}

.bd-sidebar-primary .current > a {
  border-left-color: var(--duke-blue);
  background: var(--duke-blue-soft);
  color: var(--duke-blue);
  font-weight: 800;
}

.bd-header,
.bd-header-article {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.bd-footer-article,
.prev-next-footer,
.prev-next-area,
a.left-prev,
a.right-next,
.footer-article-item:has(.prev-next-area) {
  display: none !important;
}

button.theme-switch-button,
button.btn__theme,
.theme-switch-button,
.btn__theme,
[aria-label="Color mode"],
[data-bs-title="Color mode"],
.pst-navbar-icon[aria-label="Color mode"],
.article-header-buttons [aria-label="Color mode"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.bd-article {
  background: var(--paper);
}

.bd-main .bd-content {
  background: var(--paper);
}

.bd-main .bd-content .bd-article-container {
  max-width: 1000px;
  padding-block: 1.5rem 3rem;
}

.bd-main .bd-content .bd-article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(23, 32, 51, 0.045);
}

.bd-main .bd-content .bd-article section {
  color: var(--ink);
}

.bd-content h1,
.bd-content h2,
.bd-content h3 {
  color: var(--ink);
  letter-spacing: 0;
}

.bd-content a {
  color: var(--duke-blue);
}

.hero {
  min-height: 58vh;
  display: flex;
  align-items: end;
  margin: -1rem -0.75rem 2rem;
  padding: 4rem clamp(1.25rem, 4vw, 4rem);
  background:
    linear-gradient(180deg, rgba(0, 31, 91, 0.16), rgba(0, 31, 91, 0.84)),
    linear-gradient(135deg, #002868 0%, #235fa7 52%, #167c70 100%);
  color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero__content {
  max-width: 760px;
}

.hero__logo {
  display: none;
  width: min(360px, 70vw);
  max-height: 96px;
  margin: 0 0 1.5rem;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.75rem 1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

.hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.hero__lede {
  max-width: 670px;
  margin: 1rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: white;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
}

.quick-grid,
.feature-band,
.component-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.feature-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-grid article,
.feature-band > div,
.component-strip > div,
.outcome-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.055);
}

.quick-grid span {
  color: var(--green);
  font-weight: 900;
}

.quick-grid h2,
.feature-band h2 {
  margin-top: 0.4rem;
  font-size: 1.2rem;
}

.quick-grid p,
.feature-band p,
.component-strip p,
.outcome-panel p {
  color: var(--muted);
}

.component-strip strong {
  color: var(--duke-blue);
  font-size: 1.1rem;
}

.outcome-panel {
  margin-top: 2rem;
  border-left: 6px solid var(--gold);
}

.outcome-panel h2 {
  margin-top: 0;
  color: var(--duke-blue);
  font-size: 2rem;
}

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

.blog-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-top: 5px solid var(--duke-blue);
  border-radius: 8px;
  padding: 1.2rem;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.055);
}

.blog-card h2 {
  margin: 0.35rem 0 0.6rem;
  font-size: 1.1rem;
}

.blog-card p {
  color: var(--muted);
}

.blog-card a {
  font-weight: 800;
}

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

.poster-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.055);
}

.poster-card__kicker {
  width: fit-content;
  margin: 0 0 0.75rem;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: #eef8f5;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.poster-card h2 {
  margin: 0 0 0.55rem;
  color: var(--duke-blue-dark);
  font-size: 1.18rem;
  line-height: 1.25;
}

.poster-card p {
  color: var(--muted);
}

.poster-card__org {
  margin: 0 0 0.85rem;
  color: var(--ink) !important;
  font-weight: 800;
}

.poster-card__meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.poster-card__link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.75rem;
  border: 1px solid var(--duke-blue);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  background: var(--duke-blue);
  color: white !important;
  font-weight: 800;
  text-decoration: none;
}

.poster-card__link:hover {
  background: var(--duke-blue-dark);
  text-decoration: none;
}

.post-meta {
  margin: -0.25rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-callout {
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  background: #eef8f5;
}

table {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

thead {
  background: var(--duke-blue);
  color: white;
}

tbody tr:nth-child(even) {
  background: var(--surface-muted);
}

@media (max-width: 760px) {
  .hero {
    min-height: 72vh;
    margin-inline: -0.75rem;
    padding: 3rem 1rem;
  }

  .quick-grid,
  .feature-band,
  .component-strip,
  .blog-grid,
  .poster-grid {
    grid-template-columns: 1fr;
  }
}
