/* Hub and delivery presentation only; learning screens own their layouts. */
:is(.week-page, .presentation-page) {
  --course-blue: #0062cc;
  --course-purple: #5856d6;
  --course-tint: #eef4ff;
  --course-hero: #f4f6ff;
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --text-secondary: #3c3c43;
  margin: 0;
  background: var(--background, #f2f2f7);
  color: var(--text, #17171a);
  font: 16px/1.5 var(--font-family, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', system-ui, sans-serif);
  color-scheme: light dark;
}

:is(.week-page, .presentation-page) * { box-sizing: border-box; }
:is(.week-page, .presentation-page) a { color: var(--course-blue); text-underline-offset: 4px; }
:is(.week-page, .presentation-page) a:focus-visible { outline: 3px solid var(--primary, #007aff); outline-offset: 4px; }
:is(.week-page, .presentation-page) :is(h1, h2, h3, h4) { font-family: inherit; color: inherit; text-wrap: pretty; }
:is(.week-page, .presentation-page) h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; letter-spacing: -.7px; }
:is(.week-page, .presentation-page) p { margin: 0 0 16px; }
:is(.week-page, .presentation-page) :is(section, article, #devotionals) { scroll-margin-top: 24px; }
:is(.week-page, .presentation-page) .skip-link { position: absolute; left: 16px; top: -100px; padding: 12px; background: var(--surface, #fff); z-index: 5; }
:is(.week-page, .presentation-page) .skip-link:focus { top: 12px; }

:is(.week-page, .presentation-page) .course-toolbar {
  max-width: 1180px;
  margin: auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-bottom: 1px solid var(--border, #d9d9df);
}
:is(.week-page, .presentation-page) .brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text, #17171a);
  font-family: inherit;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.8px;
  text-decoration: none;
}
:is(.week-page, .presentation-page) .course-toolbar nav { display: flex; flex-wrap: wrap; gap: 4px; }
:is(.week-page, .presentation-page) .course-toolbar nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-secondary, #3c3c43);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
:is(.week-page, .presentation-page) .course-toolbar nav a[aria-current] { color: var(--course-blue); background: var(--course-tint); }
:is(.week-page, .presentation-page) main { max-width: 1180px; margin: auto; padding: 0 24px 48px; }
:is(.week-page, .presentation-page) .eyebrow { margin: 0 0 16px; color: var(--course-blue); font-size: 12px; line-height: 1.5; font-weight: 700; letter-spacing: 1.4px; }
:is(.week-page, .presentation-page) h1 { margin: 0 0 24px; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.06; font-weight: 750; letter-spacing: -2.2px; }
:is(.week-page, .presentation-page) h1 span { color: var(--course-purple); }
:is(.week-page, .presentation-page) .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
:is(.week-page, .presentation-page) .button.primary { background: var(--course-blue); color: #fff; }
:is(.week-page, .presentation-page) .button.secondary { background: var(--surface, #fff); color: var(--course-blue); border-color: var(--border, #d9d9df); }
.week-page .hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 64px 0 56px;
  background: none;
  border: 0;
  border-radius: 0;
}
.week-page .hero-description { max-width: 49ch; color: var(--text-secondary, #3c3c43); font-size: 18px; line-height: 1.65; }
.week-page .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.week-page .hero-caption { color: var(--text-secondary, #3c3c43); font-size: 14px; }
.week-page .course-overview {
  padding: 28px;
  border: 1px solid var(--border, #d9d9df);
  border-radius: 24px;
  background: var(--course-hero);
  box-shadow: 0 8px 32px #00000005;
}
.week-page .course-overview h2 { max-width: 20ch; font-size: 26px; }
.week-page .course-facts { list-style: none; padding: 0; margin: 24px 0; }
.week-page .course-facts li { padding: 12px 0; border-bottom: 1px solid var(--border, #d9d9df); }
.week-page .course-facts strong { display: block; font-size: 15px; }
.week-page .course-facts span { display: block; color: var(--text-secondary, #3c3c43); font-size: 14px; margin-top: 4px; }
.week-page .day-trail { display: flex; flex-wrap: wrap; gap: 6px; }
.week-page .day-trail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  border: 1px solid var(--border, #d9d9df);
  border-radius: 14px;
  background: var(--surface, #fff);
  font-weight: 650;
  text-decoration: none;
}
.week-page .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.week-page .section-heading .eyebrow { margin-bottom: 8px; }
.week-page .section-heading > span { margin-bottom: 14px; color: var(--text-secondary, #3c3c43); font-size: 14px; }
.week-page .week-intro { max-width: 80ch; color: var(--text-secondary, #3c3c43); margin-bottom: 28px; }
.week-page .week-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.week-page .day-card {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, #d9d9df);
  border-radius: 20px;
  background: var(--surface, #fff);
  box-shadow: 0 4px 16px #00000003;
}
.week-page .day-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.week-page .day-number { margin: 0; background: var(--course-tint); color: var(--course-blue); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 750; letter-spacing: 1px; }
.week-page .day-passage { margin: 0; font-size: 14px; color: var(--text-secondary, #3c3c43); }
.week-page .lesson-title { margin: 0 0 24px; font-size: 23px; line-height: 1.3; letter-spacing: -.5px; }
.week-page .day-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; margin-bottom: 24px; }
.week-page .day-links .button { font-size: 14px; padding: 10px 14px; }
.week-page .day-companion { padding-top: 20px; border-top: 1px solid var(--border, #d9d9df); }
.week-page .companion-label { margin: 0 0 6px; color: var(--course-purple); font-size: 13px; font-weight: 600; }
.week-page .day-companion h4 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.week-page .pairing-note { margin: 0; color: var(--text-secondary, #3c3c43); font-size: 14px; line-height: 1.6; }
.week-page .course-extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 40px 0; border-bottom: 1px solid var(--border, #d9d9df); }
.week-page .course-extras:first-of-type { margin-top: 20px; }
.week-page .course-extras p:not(.eyebrow) { max-width: 48ch; color: var(--text-secondary, #3c3c43); }
.week-page .course-extras nav { display: grid; gap: 6px; align-content: start; }
.week-page .course-extras nav a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 12px 16px; border-radius: 12px; background: var(--surface, #fff); font-size: 15px; text-decoration: none; }
.week-page .week-end { padding: 40px 0 0; max-width: 75ch; }
.week-page .week-end p { color: var(--text-secondary, #3c3c43); }
.week-page .reflection-note { font-size: 14px; }
.week-page .week-end > a { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; }
:is(.week-page, .presentation-page) footer { max-width: 1180px; margin: auto; padding: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border, #d9d9df); color: var(--text-secondary, #3c3c43); font-size: 12px; }

.presentation-page .presentation-hero {
  max-width: 1180px;
  padding: 64px 24px 48px;
  margin: auto;
}
.presentation-page .presentation-hero h1 { font-size: clamp(34px, 5vw, 64px); }
.presentation-page .presentation-hero > p:not(.eyebrow) { max-width: 65ch; color: var(--text-secondary, #3c3c43); font-size: 18px; }
.presentation-page .presentation-hero > p:has(strong) { font-size: 14px; }
.presentation-page main { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; align-items: start; }
.presentation-page .section-nav { position: sticky; top: 24px; display: grid; gap: 4px; }
.presentation-page .section-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 12px; color: var(--text-secondary, #3c3c43); font-size: 14px; text-decoration: none; background: var(--surface, #fff); }
.presentation-page main :is(section, article) { padding: 28px; margin-bottom: 20px; border: 1px solid var(--border, #d9d9df); border-radius: 20px; background: var(--surface, #fff); }
.presentation-page main h2 { font-size: 25px; }
.presentation-page .resources { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.presentation-page .resources a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 16px; border: 1px solid var(--border, #d9d9df); border-radius: 12px; color: var(--course-blue); text-decoration: none; font-weight: 600; }
.presentation-page .resources a:first-child { background: var(--course-blue); color: #fff; border-color: transparent; }
.presentation-page .note { background: var(--course-tint); padding: 16px; border-radius: 12px; font-size: 14px; }
.presentation-page .admin-note { border-top: 1px solid var(--border, #d9d9df); margin-top: 24px; padding-top: 20px; color: var(--text-secondary, #3c3c43); font-size: 14px; }
.presentation-page .admin-note a { display: inline-flex; align-items: center; min-height: 44px; }
.presentation-page small { font-size: 13px; }

@media (max-width: 1000px) {
  .week-page .hub-hero { gap: 24px; padding-top: 40px; }
  .week-page .course-overview { padding: 24px; }
  .week-page .section-heading { display: block; margin-bottom: 16px; }
  .week-page .day-links { flex-direction: column; align-items: stretch; }
  .presentation-page main { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 700px) {
  :is(.week-page, .presentation-page) .course-toolbar { padding: 12px 20px; gap: 4px; }
  :is(.week-page, .presentation-page) .course-toolbar nav { width: 100%; justify-content: space-between; }
  :is(.week-page, .presentation-page) .course-toolbar nav a { padding: 10px 8px; font-size: 13px; }
  :is(.week-page, .presentation-page) main { padding: 0 20px 32px; }
  :is(.week-page, .presentation-page) h1 { letter-spacing: -1.3px; }
  :is(.week-page, .presentation-page) h2 { font-size: 25px; }
  .week-page .hub-hero { grid-template-columns: 1fr; padding: 36px 0; gap: 20px; }
  .week-page .hero-description { font-size: 17px; }
  .week-page .course-overview { border-radius: 20px; padding: 20px; }
  .week-page .course-overview h2 { max-width: none; font-size: 22px; }
  .week-page .day-trail { gap: 4px; }
  .week-page .week-grid { grid-template-columns: 1fr; gap: 16px; }
  .week-page .day-card { padding: 20px; border-radius: 16px; }
  .week-page .lesson-title { font-size: 22px; }
  .week-page .course-extras { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .presentation-page .presentation-hero { padding: 36px 20px; }
  .presentation-page main { grid-template-columns: 1fr; }
  .presentation-page .section-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
  .presentation-page .section-nav a { padding: 10px 12px; }
  .presentation-page main :is(section, article) { padding: 20px; border-radius: 16px; }
  .presentation-page .resources { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :is(.week-page, .presentation-page) {
    --course-blue: #69aeff;
    --course-purple: #b3a8ff;
    --course-tint: #172a43;
    --course-hero: #20232e;
    --background: #000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #ebebf5;
    --border: #38383a;
  }
  :is(.week-page, .presentation-page) .button.primary,
  .presentation-page .resources a:first-child { background: #0a84ff; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  :is(.week-page, .presentation-page),
  :is(.week-page, .presentation-page) * { scroll-behavior: auto; animation: none; transition: none; }
}
