/* Learn Hub templates. Scoped so the rest of the marketing site stays as it is.

Hub link switch: learn-hub-pending
The hub home, five category indexes, and the live articles are published.
Categories: How-To, Support, Research, Guides, and News.
Infographics stays hidden: no tab, no card, no index page, and no sitemap row.
Published pages do not use learn-hub-pending.
If that class is present, the rules below hide the tab strip.
*/

.learn-page { background: var(--wash); }
.learn-page > * { min-width: 0; max-width: 100%; }
.learn-page section.learn-section {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 24px 28px;
}

.learn-sheet { background: #fff; }

.learn-tabs-bar {
  position: sticky;
  top: 79px;
  z-index: 40;
  background: var(--wash);
  max-width: 100%;
  min-width: 0;
}

.learn-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1140px;
  min-width: 0;
  margin: 0 auto;
  padding: 16px 24px;
  overflow-x: auto;
  box-sizing: border-box;
}

.learn-tabs a {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--caregiver);
  background: #fff;
  border: 1px solid #E3EAEE;
  border-radius: 6px;
  padding: 8px 14px;
  white-space: nowrap;
}

.learn-tabs a[aria-current="page"] {
  background: var(--caregiver);
  color: #fff;
  border-color: var(--caregiver);
}

.learn-hub-pending .learn-tabs-bar { display: none; }

.learn-hub-pending .learn-tabs span {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--caregiver);
  background: #fff;
  border: 1px solid #E3EAEE;
  border-radius: 6px;
  padding: 8px 14px;
  white-space: nowrap;
}

.learn-hub-pending .learn-tabs span[aria-current="page"] {
  background: var(--caregiver);
  color: #fff;
  border-color: var(--caregiver);
}

.learn-band {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.learn-crumbs-bar { background: #fff; }

.learn-crumbs {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--patient);
}

.learn-crumbs a { color: var(--patient); }
.learn-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.learn-crumbs [aria-current="page"] { color: var(--patient); }

.learn-intro { padding-top: 40px; padding-bottom: 16px; }
.learn-intro h1 { font-size: 40px; line-height: 1.15; }
.learn-intro p,
.learn-dek {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.45;
  color: #16242E;
}

.learn-page h1,
.learn-page h2 { scroll-margin-top: 168px; }

.learn-section h2 { font-size: 28px; line-height: 1.2; margin-bottom: 16px; }

.learn-card-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 960px) {
  .learn-hub .learn-card-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.learn-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  background: #fff;
  border: 1px solid #E3EAEE;
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 16px;
  color: inherit;
}

.learn-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #C9D8E0;
}

.learn-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 14px 0;
}

.learn-meta { font-size: 12px; line-height: 1.3; color: var(--patient); }

.learn-card h2,
.learn-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--caregiver);
}

.learn-card p { font-size: 14px; line-height: 1.45; color: #445C64; }

.learn-more {
  display: block;
  margin-top: 32px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--together);
}

.learn-see-all {
  display: inline-block;
  margin-top: 48px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: #02567E;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.learn-read {
  max-width: 1140px;
  min-width: 0;
  margin: 0 auto;
  padding: 16px 24px 24px;
  box-sizing: border-box;
}

.learn-category .learn-intro { padding-top: 0; padding-bottom: 20px; }
.learn-category .learn-intro h1 { font-size: 40px; }

.learn-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 24px;
}

.learn-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 0 0 32px;
  font-size: 15px;
}

.learn-pager a,
.learn-pager span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  font-weight: 500;
  color: #2A5670;
}

.learn-pager [aria-current="page"] { font-weight: 700; color: #1D465D; }
.learn-pager .is-muted { color: #445C64; }

.learn-article {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 24px;
}

.learn-article > *,
.learn-body > * {
  min-width: 0;
  max-width: 100%;
}

.learn-article h1 { font-size: 36px; line-height: 1.2; }
.learn-article-hero { border-radius: 8px; }

.learn-body { display: flex; flex-direction: column; gap: 16px; }
.learn-body p,
.learn-body li { font-size: 18px; line-height: 1.5; color: #16242E; }
.learn-body h2 { font-size: 28px; line-height: 1.2; margin-top: 8px; }
.learn-body h3 { font-size: 22px; line-height: 1.25; }
.learn-body ul,
.learn-body ol { margin: 0; padding-left: 1.25em; }
.learn-body a { color: var(--together); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.learn-read h1,
.learn-body p,
.learn-body li { overflow-wrap: break-word; }
.learn-infographic { width: 100%; max-width: 100%; height: auto; border-radius: 8px; }
img.learn-hero { display: block; width: 100%; max-width: 100%; object-fit: cover; background: none; height: auto; }

.learn-back-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 12px;
}

.learn-back-row a,
.learn-empty a {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--together);
}

.learn-back-row a:hover,
.learn-empty a:hover,
.learn-see-all:hover { text-decoration: underline; text-underline-offset: 3px; }

.learn-rule {
  width: 480px;
  max-width: 100%;
  height: 2px;
  margin: 10px auto 6px;
  background: #445C64;
}

.learn-related h2 { font-size: 22px; line-height: 1.25; margin-bottom: 16px; }

@media (min-width: 700px) {
  .learn-related .learn-card-row { grid-template-columns: 1fr 1fr; }
}

.learn-empty {
  background: #F4F7F9;
  border-radius: 8px;
  padding: 28px 24px;
  margin: 8px 0 32px;
}

.learn-empty h2 { font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
.learn-empty p { font-size: 18px; line-height: 1.45; color: #16242E; margin-bottom: 16px; }

.learn-skeleton {
  height: 220px;
  margin: 16px 0 32px;
  border-radius: 8px;
  background: #E3EAEE;
}

.learn-pager[hidden],
.learn-empty[hidden],
.learn-skeleton[hidden],
.learn-miss[hidden],
.learn-disclaimer[hidden] { display: none !important; }

.learn-page footer { margin-top: 0; }
.learn-page .wrap {
  max-width: min(1140px, 100%);
  box-sizing: border-box;
}
.learn-page .foot-grid,
.learn-page .foot-bottom,
.learn-page .logo {
  min-width: 0;
  max-width: 100%;
}
.learn-page .foot-grid > * {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.learn-page footer .logo,
.learn-page .foot-brand,
.learn-page .foot-col,
.learn-page .foot-bottom {
  max-width: calc(100vw - 48px);
}
.learn-page .logo {
  display: block;
  overflow-wrap: anywhere;
}
.learn-page .foot-bottom,
.learn-page .foot-brand p,
.learn-page .foot-bottom span {
  overflow-wrap: anywhere;
}

.learn-disclaimer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px 32px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #445C64;
}

@media (min-width: 760px) {
  .learn-tabs,
  .learn-band,
  .learn-read,
  .learn-disclaimer,
  .learn-page section.learn-section {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (max-width: 720px) {
  .learn-intro h1,
  .learn-category .learn-intro h1 { font-size: 32px; }
  .learn-article h1 { font-size: 30px; }
}
