:root {
  --ink: #10243e;
  --muted: #5f7188;
  --brand: #2563eb;
  --brand-dark: #1746a2;
  --brand-soft: #eaf2ff;
  --accent: #60a5fa;
  --surface: #ffffff;
  --canvas: #f5f8fd;
  --line: #dbe5f2;
  --success: #1d4ed8;
  --shadow: 0 18px 50px rgba(30, 64, 120, 0.11);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 220px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.brand-wordmark {
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.035em;
}

.sidebar {
  background: #f1f5fb;
}

.sidebar-footer {
  background: linear-gradient(180deg, rgba(241,245,251,.86), #f1f5fb 30%);
}

.nav-item {
  color: #405977;
}

.nav-item.active {
  color: var(--brand-dark);
  box-shadow: 0 4px 16px rgba(37, 99, 235, .09);
}

.nav-number {
  background: #dce9fb;
}

.nav-check {
  border-color: #aabbd1;
}

.progress-track {
  background: #d8e3f1;
}

.hero {
  background: linear-gradient(135deg, #153b78 0%, #2563eb 54%, #4b8cf7 100%);
}

.hero::before {
  background: rgba(147, 197, 253, .23);
}

.hero .eyebrow {
  color: #d7e6ff;
}

#course-map .section-heading > .eyebrow {
  display: none;
}

.resource-button:hover {
  background: #dce9ff;
}

.course-card:hover {
  box-shadow: 0 9px 25px rgba(30, 64, 120, .09);
}

.complete-btn {
  border-color: #bfd0e7;
}

.content-card,
.video-card {
  box-shadow: 0 8px 28px rgba(30, 64, 120, .06);
}

.video-wrap {
  background: #102b52;
}

.external-video-visual {
  background: linear-gradient(135deg, #153b78, #3978df);
}

.copy p,
.takeaways li {
  color: #405977;
}

.preview-pill {
  background: #edf4ff;
  color: #315c9e;
  border-color: #cfddf2;
}

.site-footer,
.site-footer-panel {
  border-color: var(--line);
}

.site-footer a,
.site-footer button {
  color: var(--brand-dark);
}

.module-usefulness-slider {
  accent-color: var(--brand);
}

.tourette-resource-section {
  padding-top: 10px;
}

.tourette-resource-collections {
  display: grid;
  gap: 16px;
}

.tourette-resource-collection {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(30, 64, 120, .06);
  overflow: hidden;
}

.tourette-resource-collection summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.tourette-resource-collection summary::-webkit-details-marker {
  display: none;
}

.tourette-resource-summary-copy {
  min-width: 0;
}

.tourette-resource-summary-copy h2 {
  margin: 8px 0 8px;
}

.tourette-resource-summary-copy p {
  margin: 0;
  max-width: 760px;
  color: #526a87;
}

.tourette-resource-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 750;
  white-space: nowrap;
}

.tourette-resource-toggle span {
  transition: transform .18s ease;
}

.tourette-resource-collection[open] .tourette-resource-toggle span {
  transform: rotate(180deg);
}

.tourette-resource-list {
  border-top: 1px solid var(--line);
  padding: 8px 24px 18px;
}

.tourette-resource-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #edf2f8;
}

.tourette-resource-row:last-child {
  border-bottom: 0;
}

.tourette-resource-row:hover strong {
  color: var(--brand-dark);
}

.tourette-resource-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tourette-resource-copy strong {
  font-size: 15px;
}

.tourette-resource-copy small {
  color: #687d97;
  font-size: 13px;
}

.tourette-resource-region {
  color: #315c9e;
  font-weight: 750;
}

.tourette-resource-kind {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #315c9e;
  font-size: 12px;
  font-weight: 750;
}

.tourette-resource-arrow {
  color: var(--brand);
  font-size: 18px;
}

.tourette-owner-link-note {
  margin-top: 18px;
}

@media (max-width: 1030px) {
  .brand-logo {
    width: 200px;
    max-height: 54px;
  }
}

@media (max-width: 860px) {
  .brand-logo {
    width: 180px;
    max-height: 50px;
  }

  .brand-wordmark {
    font-size: 19px;
  }

  .tourette-resource-collection summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .tourette-resource-list {
    padding: 6px 20px 14px;
  }

  .tourette-resource-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tourette-resource-kind {
    grid-column: 1 / 2;
    justify-self: start;
  }

  .tourette-resource-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: 164px;
    max-height: 46px;
  }
}
