:root {
  --navy: #0D2B5E;
  --blue: #1565C0;
  --gold: #F9A825;
  --bg: #F5F8FC;
  --card: #FFFFFF;
  --text: #1A2233;
  --muted: #5B6B82;
  --line: #DCE5F0;
  --head: Cambria, "Cambria Math", Georgia, "Times New Roman", serif;
  --body: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.5; background: var(--bg); color: var(--text); }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--navy); color: #fff; padding: 48px 0 40px; border-bottom: 6px solid var(--gold); position: relative; overflow: hidden; }
.site-header::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: 0 0 0 60px rgba(255,255,255,.04); }
.site-header .wrap { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 6px; color: rgba(255,255,255,.75); font-size: .95rem; letter-spacing: .04em; }
.site-header h1 { font-family: var(--head); font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; margin: 0 0 10px; border-left: 8px solid var(--gold); padding-left: 16px; }
.tagline { margin: 0 0 18px; font-size: 1.2rem; font-style: italic; color: #CFE0F5; }
.verse { margin: 0; max-width: 620px; color: #E9F0FA; font-size: .98rem; opacity: .9; }

main.wrap { padding-top: 36px; padding-bottom: 56px; }
h2 { font-family: var(--head); color: var(--navy); font-size: 1.6rem; margin: 0 0 16px; }

/* Year timeline */
.year { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 16px; margin-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 0; font-size: .92rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.timeline { display: flex; gap: 3px; height: 46px; border-radius: 8px; overflow: hidden; }
.seg { display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; min-width: 0; transition: filter .15s, transform .15s; }
.seg:hover, .seg:focus-visible { filter: brightness(1.15); outline: none; }
.timeline-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* Unit cards */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.unit-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.unit-card:hover, .unit-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13,43,94,.14); outline: none; }
.card-top { background: var(--cd); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 4px solid var(--gold); }
.unit-num { font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.subject { font-size: .8rem; background: rgba(255,255,255,.16); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-family: var(--head); font-size: 1.3rem; line-height: 1.2; margin: 0 0 4px; color: var(--cd); }
.meta { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.faith { margin: 0 0 14px; font-size: .95rem; font-style: italic; color: #3A475C; background: #FFF8E6; border-left: 4px solid var(--gold); padding: 8px 12px; border-radius: 0 6px 6px 0; }
.faith span { font-style: normal; color: #B57C00; }
.chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .78rem; font-weight: 600; color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: 2px 9px; }
.open { margin-top: auto; font-weight: 700; color: var(--c); }

/* Unit page */
.crumb { display: inline-block; margin-bottom: 14px; color: #CFE0F5; text-decoration: none; font-size: .95rem; }
.crumb:hover { color: #fff; }
.unit-header { background: var(--cd, var(--navy)); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 24px; }
.targets { margin: 0; padding-left: 22px; }
.targets li { margin-bottom: 6px; }
.targets li.faith-target { font-style: italic; }
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.topic-list li { background: var(--bg); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--blue)); border-radius: 8px; padding: 10px 14px; }
.topic-list .n { color: var(--muted); font-size: .85rem; display: block; }
.soon { color: var(--muted); font-style: italic; margin: 0 0 14px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 22px 0 36px; text-align: center; }

@media (max-width: 560px) {
  .site-header { padding: 36px 0 30px; }
  .seg span { font-size: .75rem; }
  .year { padding: 18px 14px 12px; }
}

/* "Today" banner on homepage */
.now-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--blue)); border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; text-decoration: none; transition: box-shadow .15s; }
.now-banner:hover, .now-banner:focus-visible { box-shadow: 0 8px 20px rgba(13,43,94,.12); outline: none; }
.now-tag { background: var(--gold); color: #3A2A00; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; }
.now-text { font-size: 1.05rem; flex: 1; min-width: 200px; }
.now-go { font-weight: 700; color: var(--c, var(--blue)); }
.here { font-family: var(--body); font-size: .75rem; font-weight: 700; color: var(--gold); margin-left: 6px; vertical-align: middle; }

/* Today box on unit page */
.today { background: var(--card); border: 2px solid var(--c); border-radius: 14px; padding: 20px 22px 22px; margin-bottom: 24px; box-shadow: 0 8px 22px rgba(13,43,94,.10); }
.today-label { margin: 0 0 2px; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.today-title { margin: 0 0 4px; font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--cd); }
.today-target { margin: 0 0 16px; color: var(--muted); font-style: italic; }
.today-target:empty { display: none; }
.today .mbtns { gap: 12px; }
.today .mbtn { padding: 14px 20px; font-size: 1.1rem; min-width: 170px; }

/* Material buttons */
.mbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.mbtn { display: inline-grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-decoration: none; border-radius: 10px; padding: 8px 14px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--text); transition: transform .12s, box-shadow .12s; }
.mbtn .ic { grid-row: 1 / span 2; font-size: 1.25em; }
.mbtn .sub { font-size: .72rem; font-weight: 400; color: var(--muted); line-height: 1.1; }
.mbtn:hover, .mbtn:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,43,94,.12); outline: none; }
.mbtn.slides { background: var(--cd); color: #fff; border-color: var(--cd); }
.mbtn.slides .sub { color: rgba(255,255,255,.75); }
.mbtn.assign { border-color: var(--c); color: var(--c); }
.mbtn.guide { background: var(--gold); border-color: var(--gold); color: #3A2A00; }
.mbtn.guide .sub { color: #5C4500; }
.mbtn.guide.off { background: #F1F3F6; border-color: var(--line); color: var(--muted); cursor: default; }
.mbtn.guide.off .sub { color: var(--muted); }
.mbtn.guide.off:hover { transform: none; box-shadow: none; }

/* Topic cards (units with materials) */
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tcard-li { display: flex; }
.tcard { display: flex; flex-direction: column; flex: 1; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 12px; padding: 14px 16px 16px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.tcard:hover, .tcard:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,43,94,.12); outline: none; }
.tgo { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--c); }
.tcard .n { color: var(--muted); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.tcard .tname { font-family: var(--head); font-size: 1.2rem; line-height: 1.25; margin: 0 0 6px; color: var(--cd); }
.tgoal { margin: 0 0 12px; font-size: .92rem; color: #3A475C; line-height: 1.4; }
.tlater { margin: auto 0 0; font-size: .85rem; font-style: italic; color: var(--muted); }
.tcard .pills { margin-top: auto; gap: 6px; }
.tcard .pills .mbtn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: .82rem; white-space: nowrap; }
.tcard .pills .mbtn .ic { font-size: 1em; grid-row: auto; }
.tcard .pills .mbtn .sub { display: none; }
@media (min-width: 1100px) { .topic-grid { grid-template-columns: repeat(4, 1fr); } }

/* Topic page */
.topic-page .about { margin: 0; font-size: 1.05rem; }
.learn { margin: 0; padding-left: 22px; }
.learn li { margin-bottom: 8px; }
.mbtns.big { gap: 12px; }
.mbtns.big .mbtn { padding: 12px 18px; min-width: 190px; }
.extlinks { margin: 0; padding-left: 22px; }
.extlinks li { margin-bottom: 6px; }
.extlinks a { color: var(--blue); font-weight: 700; }
.extlinks span { color: var(--muted); }
.verse-line { margin: 0 0 24px; padding: 12px 16px; background: #FFF8E6; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; font-style: italic; color: #3A475C; }
.topic-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topic-nav a { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; min-width: 200px; }
.topic-nav a:hover { box-shadow: 0 4px 12px rgba(13,43,94,.12); }
.topic-nav .nav-next { margin-left: auto; text-align: right; }
.nav-dir { font-size: .82rem; color: var(--muted); font-weight: 700; }
.nav-name { font-family: var(--head); color: var(--cd); font-weight: 700; }

/* Homepage header (matches the CFDA site) */
header.top { background: #0B1F44; color: #fff; border-bottom: 4px solid var(--gold); }
header.top .in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; min-height: 56px; }
header.top .logo { display: block; flex: 0 0 auto; }
header.top .logo img { height: 40px; width: auto; display: block; }
nav.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-family: var(--head); font-size: 16px; }
nav.crumbs li + li::before { content: "›"; margin: 0 10px; opacity: .6; font-size: 18px; }
nav.crumbs a { color: #fff; text-decoration: none; font-weight: 700; }
nav.crumbs [aria-current] { color: #fff; font-weight: 700; letter-spacing: .02em; }
main.home-main { padding-top: 24px; }
.hero-home { background: linear-gradient(135deg, #0B1F44 0%, #123a7a 60%, #1565C0 100%); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap; border-bottom: 5px solid var(--gold); }
.hero-home img { width: 260px; max-width: 100%; height: auto; }
.hero-home .words { flex: 1; min-width: 240px; }
.hero-eyebrow { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.8); }
.hero-home h1 { font-family: var(--head); font-size: clamp(28px, 4.5vw, 40px); line-height: 1.1; margin: 0 0 8px; color: #fff; }
.hero-home .q { margin: 0 0 10px; font-size: 18px; opacity: .95; }
.hero-verse { margin: 0; font-size: 14px; font-style: italic; color: #F9D9A0; }
@media (max-width: 560px) { header.top .logo img { height: 34px; } .hero-home { padding: 22px; gap: 18px; } .hero-home img { width: 190px; } }

/* Unit and topic page header card (same top bar as the homepage) */
main.sub-main { padding-top: 24px; }
.hero-unit { background: linear-gradient(135deg, var(--cd, #0B1F44) 0%, var(--c, #1565C0) 100%); color: #fff; border-radius: 16px; padding: 24px 28px; margin-bottom: 24px; border-bottom: 5px solid var(--gold); }
.hero-unit h1 { font-family: var(--head); font-size: clamp(26px, 4.5vw, 38px); line-height: 1.12; margin: 0 0 8px; color: #fff; }
.hero-unit .q { margin: 0; font-size: 17px; opacity: .95; }
.hero-unit .q:empty { display: none; }
@media (max-width: 560px) { .hero-unit { padding: 20px; } nav.crumbs ol { font-size: 15px; } }
