/* Shared OER Fit site header and footer shell. */
/* Shared OER Fit site shell. Body layouts remain page-specific. */
  .site-header {
    background: #fffdf8 !important;
    color: #20313f !important;
    padding: 0 20px !important;
    border-bottom: 1px solid #d9e1e7 !important;
  }
  .header-inner {
    width: min(100%, 1180px) !important;
    min-height: 82px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 28px !important;
    flex-wrap: wrap !important;
  }
  .brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #002b73 !important;
    text-decoration: none !important;
    font-size: .98rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }
  .brand img {
    width: 52px !important;
    height: 52px !important;
    max-height: 52px !important;
    object-fit: contain !important;
  }
  .brand-edition {
    padding-left: 12px !important;
    border-left: 1px solid #d9e1e7 !important;
    font-size: 1rem !important;
  }
  .site-nav {
    display: flex !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  .site-nav a {
    color: #002b73 !important;
    background: transparent !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    padding: 8px 2px !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
  }
  .site-nav a:hover,
  .site-nav a:focus,
  .site-nav a:focus-visible,
  .site-nav a[aria-current="page"] {
    color: #002b73 !important;
    background: transparent !important;
    border-bottom-color: #ffd000 !important;
  }
  footer {
    background: #002b73 !important;
    color: #dbe6ec !important;
    padding: 34px 20px !important;
  }
  .footer-inner {
    width: min(100%, 1080px) !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .footer-inner p {
    margin: 6px auto !important;
    font-size: .92rem !important;
    max-width: 92ch !important;
  }
  .footer-inner a {
    color: #ffffff !important;
    font-weight: 700 !important;
  }
  @media (max-width: 820px) {
    .header-inner {
      align-items: flex-start !important;
      flex-direction: column !important;
      gap: 8px !important;
      padding: 14px 0 !important;
    }
    .site-nav {
      width: 100% !important;
      justify-content: flex-start !important;
      gap: 10px 18px !important;
    }
  }
  @media (max-width: 560px) {
    .site-header { padding: 0 12px !important; }
    .site-nav {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 2px 14px !important;
    }
    .site-nav a { min-height: 44px; display: flex; align-items: center; }
  }

/* Readings page taxonomy: one consistent color for each filter meaning. */
.toolbar .filter-button[data-course] {
  background: #ffffff;
  border-color: #b8c9df;
  color: #003b7a;
}
.toolbar .filter-button[data-course].active,
.toolbar .filter-button[data-kind="all"].active,
.toolbar .filter-button[data-collection="all"].active {
  background: #003b7a;
  border-color: #003b7a;
  color: #ffffff;
}
.toolbar .filter-button[data-kind="nonfiction"] {
  background: #e8f4ed;
  border-color: #6f9f87;
  color: #255c43;
}
.toolbar .filter-button[data-kind="nonfiction"].active {
  background: #2f6b4f;
  border-color: #2f6b4f;
  color: #ffffff;
}
.toolbar .filter-button[data-kind="literature"] {
  background: #f2edf8;
  border-color: #9d89b8;
  color: #5b3f80;
}
.toolbar .filter-button[data-kind="literature"].active {
  background: #684a92;
  border-color: #684a92;
  color: #ffffff;
}
.toolbar .filter-button[data-kind="primary"] {
  background: #fff4cc;
  border-color: #b99a39;
  color: #6d5100;
}
.toolbar .filter-button[data-kind="primary"].active {
  background: #7a5a00;
  border-color: #7a5a00;
  color: #ffffff;
}
.toolbar .filter-button[data-collection="curated"] {
  background: #e5f5f4;
  border-color: #69a9a6;
  color: #075e5e;
}
.toolbar .filter-button[data-collection="curated"].active {
  background: #006a6a;
  border-color: #006a6a;
  color: #ffffff;
}
.toolbar .filter-button[data-collection="library"] {
  background: #faeaf1;
  border-color: #c28aa5;
  color: #783550;
}
.toolbar .filter-button[data-collection="library"].active {
  background: #8a3d62;
  border-color: #8a3d62;
  color: #ffffff;
}
.toolbar .filter-button[data-collection="archive"] {
  background: #fbede3;
  border-color: #c89069;
  color: #7b421d;
}
.toolbar .filter-button[data-collection="archive"].active {
  background: #8c4b1f;
  border-color: #8c4b1f;
  color: #ffffff;
}
.toolbar .filter-button[data-kind="all"]:not(.active),
.toolbar .filter-button[data-collection="all"]:not(.active) {
  background: #ffffff;
  border-color: #b8c9df;
  color: #003b7a;
}

/* Card badges repeat the filter colors so the meaning carries into results. */
#reader-grid .tag-course {
  background: #eef4fb;
  color: #003b7a;
}
#reader-grid .tag-nonfiction {
  background: #e8f4ed;
  color: #255c43;
}
#reader-grid .tag-literature {
  background: #f2edf8;
  color: #5b3f80;
}
#reader-grid .tag-primary {
  background: #fff4cc;
  color: #6d5100;
}
#reader-grid .tag-use-curated {
  background: #e5f5f4;
  color: #075e5e;
}
#reader-grid .tag-use-library {
  background: #faeaf1;
  color: #783550;
}
#reader-grid .tag-use-archive {
  background: #fbede3;
  color: #7b421d;
}

/* Major-page opening system: keep the same calm visual rhythm across the site. */
body:has(#reader-grid) .hero {
  background: #eef3fb !important;
  color: #20313f !important;
  border: 1px solid #dde6f2 !important;
  border-radius: 22px !important;
  padding: clamp(28px, 5vw, 52px) !important;
  margin-bottom: 20px !important;
}
body:has(#reader-grid) .hero .eyebrow {
  color: #755400 !important;
  margin: 0 0 5px !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
}
body:has(#reader-grid) .hero h1 {
  color: #013997 !important;
  margin: 0 0 8px !important;
  font-size: clamp(3rem, 8vw, 5.4rem) !important;
  letter-spacing: -.04em !important;
  line-height: .96 !important;
}
body:has(#reader-grid) .hero p:not(.eyebrow) {
  color: #20313f !important;
  margin-bottom: 0 !important;
  font-size: 1.04rem !important;
  max-width: 760px !important;
}

/* Make the Readings decision panel echo the course-page browse bar. */
body:has(#reader-grid) .toolbar {
  background: #ffffff !important;
  border: 1px solid #d9e1e7 !important;
  border-top: 5px solid #ffd000 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

/* Informational pages use the same card-like opening as the course and Readings pages. */
body > .hero {
  width: min(calc(100% - 32px), 1180px) !important;
  margin: 28px auto 20px !important;
  padding: 0 !important;
  background: #eef3fb !important;
  color: #20313f !important;
  border: 1px solid #dde6f2 !important;
  border-radius: 22px !important;
}
body > .hero .hero-inner {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(28px, 5vw, 52px) !important;
}
body > .hero .eyebrow {
  color: #755400 !important;
  margin: 0 0 6px !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
body > .hero h1 {
  color: #013997 !important;
  margin: 0 0 10px !important;
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.035em !important;
}
body > .hero p:not(.eyebrow) {
  color: #20313f !important;
  margin: 14px 0 0 !important;
  max-width: 780px !important;
  font-size: 1.04rem !important;
}
body > .hero .hero-brand {
  display: block !important;
}
body > .hero .hero-brand > img {
  display: none !important;
}
body > .hero + main {
  padding-top: 28px !important;
}

/* Privacy previously used a dark full-width banner and overlapping content card. */
body:has(.hero-wrap) .hero-wrap {
  background: transparent !important;
  padding: 0 !important;
}
body:has(.hero-wrap) .hero-wrap .hero {
  width: min(calc(100% - 32px), 1180px) !important;
  margin: 28px auto 20px !important;
  padding: clamp(28px, 5vw, 52px) !important;
  background: #eef3fb !important;
  color: #20313f !important;
  border: 1px solid #dde6f2 !important;
  border-radius: 22px !important;
}
body:has(.hero-wrap) .hero-wrap .eyebrow {
  color: #755400 !important;
  margin: 0 0 6px !important;
  font-size: .82rem !important;
  letter-spacing: .08em !important;
}
body:has(.hero-wrap) .hero-wrap h1 {
  color: #013997 !important;
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  letter-spacing: -.035em !important;
}
body:has(.hero-wrap) .hero-wrap .hero p:last-child {
  color: #20313f !important;
  max-width: 780px !important;
  margin: 14px 0 0 !important;
  font-size: 1.04rem !important;
}
body:has(.hero-wrap) main {
  padding-top: 28px !important;
}
body:has(.hero-wrap) .lead-card {
  margin-top: 0 !important;
}

@media (max-width: 560px) {
  body > .hero,
  body:has(.hero-wrap) .hero-wrap .hero {
    width: min(calc(100% - 24px), 1180px) !important;
    margin-top: 18px !important;
  }
}
