:root {
  --ink: #17272e;
  --ink-soft: #40545d;
  --paper: #eaf1f4;
  --surface: #fbfdfd;
  --white: #ffffff;
  --blue: #173b4d;
  --blue-light: #d7e5eb;
  --leaf: #55745c;
  --leaf-dark: #36533e;
  --marker: #f1c84b;
  --marker-soft: #f8e7a0;
  --coral: #de765f;
  --line: #c9d6da;
  --line-dark: #9fb2b9;
  --danger: #a64135;
  --shadow: 0 22px 70px rgba(30, 58, 68, .12);
  --font-display: Georgia, "Noto Serif KR", "Nanum Myeongjo", serif;
  --font-body: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --font-utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(23, 59, 77, .28);
  outline-offset: 3px;
}

.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(23, 39, 46, .1);
  background: rgba(234, 241, 244, .9);
  backdrop-filter: blur(14px);
}

.header-inner,
.admin-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--blue); }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-family: var(--font-display); font-size: 18px; letter-spacing: -.02em; }
.brand small { margin-top: 5px; color: var(--ink-soft); font-size: 11px; letter-spacing: .04em; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { position: relative; padding: 10px 13px; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.main-nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a.is-active::after { transform: scaleX(1); }
.main-nav .nav-admin { margin-left: 5px; border: 1px solid var(--line-dark); border-radius: 999px; }
.main-nav .nav-admin::after { display: none; }

.hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  padding-block: 72px 58px;
}

.hero-copy { max-width: 750px; }
.eyebrow { margin: 0 0 14px; color: var(--leaf-dark); font-family: var(--font-utility); font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.hero h1, .page-heading h1, .article-header h1, .login-card h1, .admin-title-row h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.12;
}
.hero h1 { font-size: clamp(46px, 7vw, 82px); }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-description { max-width: 590px; margin: 28px 0 0; color: var(--ink-soft); font-size: 17px; }

.date-stamp {
  width: 148px;
  min-height: 168px;
  padding: 22px 18px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 50% 50% 12px 12px;
  background: rgba(255,255,255,.4);
  text-align: center;
  transform: rotate(2deg);
}
.date-stamp span, .date-stamp small { font-family: var(--font-utility); font-size: 11px; letter-spacing: .09em; }
.date-stamp strong { margin: 3px 0 6px; font-family: var(--font-display); font-size: 34px; font-weight: 500; }
.date-stamp small { color: var(--leaf-dark); }

.study-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: stretch; }
.daily-card {
  position: relative;
  min-height: 470px;
  display: grid;
  grid-template-columns: 78px 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.daily-card::after { content: ""; position: absolute; width: 110px; height: 110px; top: -48px; right: -40px; border: 20px solid var(--blue-light); border-radius: 50%; }
.margin-rail { position: relative; display: grid; align-content: space-between; justify-items: center; padding: 32px 0; border-right: 1px solid rgba(222, 118, 95, .58); color: var(--coral); background: #f5f9fa; }
.margin-rail span { font-family: var(--font-utility); font-size: 10px; letter-spacing: .18em; writing-mode: vertical-rl; }
.margin-rail b { font-family: var(--font-display); font-size: 34px; font-weight: 500; }
.daily-content { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 48px 52px 44px; }
.meta-line, .article-meta { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 13px; }
.category-chip { display: inline-flex; align-items: center; min-height: 27px; padding: 3px 10px; border-radius: 999px; color: var(--leaf-dark); background: #e0ebe2; font-size: 12px; font-weight: 750; }
.daily-content h2 { max-width: 680px; margin: 24px 0 18px; font-family: var(--font-display); font-size: clamp(32px, 4vw, 49px); font-weight: 500; line-height: 1.18; letter-spacing: -.035em; }
.highlight-summary { position: relative; z-index: 0; margin: 0; font-size: 18px; font-weight: 650; line-height: 1.75; }
.highlight-summary::before { content: ""; position: absolute; z-index: -1; left: -4px; right: 3%; bottom: .18em; height: .66em; background: var(--marker-soft); transform: rotate(-.7deg) scaleX(.2); transform-origin: left; animation: highlight-in .7s .2s ease-out forwards; }
@keyframes highlight-in { to { transform: rotate(-.7deg) scaleX(1); } }
.scripture-note { margin-top: 30px; padding-left: 17px; border-left: 3px solid var(--blue); display: grid; gap: 3px; }
.scripture-note span { color: var(--ink-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.scripture-note strong { font-size: 14px; }
.primary-link, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 4px; color: white; background: var(--blue); font-weight: 750; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.daily-content .primary-link { align-self: flex-start; margin-top: auto; }
.primary-link svg { width: 20px; height: 20px; transition: transform .18s ease; }
.primary-link:hover, .primary-button:hover { background: #0f3040; transform: translateY(-2px); }
.primary-link:hover svg { transform: translateX(3px); }

.recent-panel { padding: 34px 30px; border-top: 4px solid var(--leaf); background: var(--blue); color: #edf5f5; }
.recent-panel .eyebrow { color: #b8d3c0; }
.panel-heading h2 { margin: 0; font-family: var(--font-display); font-size: 27px; font-weight: 500; }
.recent-list { list-style: none; margin: 26px 0 24px; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.recent-list li { border-bottom: 1px solid rgba(255,255,255,.18); }
.recent-list a { display: grid; grid-template-columns: 45px 1fr; gap: 10px; padding: 15px 0; align-items: start; }
.recent-list time { color: #aac0c9; font-family: var(--font-utility); font-size: 11px; }
.recent-list span { font-size: 14px; line-height: 1.45; }
.recent-list a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.text-link { display: inline-flex; gap: 8px; font-size: 14px; font-weight: 750; text-decoration: underline; text-underline-offset: 5px; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; padding: 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.trust-strip > div { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 26px 24px; }
.trust-strip > div + div { border-left: 1px solid var(--line-dark); }
.trust-number { color: var(--coral); font-family: var(--font-utility); font-size: 12px; }
.trust-strip p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.trust-strip strong { color: var(--ink); }

.site-footer { margin-top: 86px; color: #dce8ea; background: var(--blue); }
.footer-inner { min-height: 150px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-inner p { max-width: 520px; margin: 0; font-size: 13px; }
.footer-inner p:last-child { color: #a9c0c8; text-align: right; }

.page-heading { padding: 78px 0 48px; border-bottom: 1px solid var(--line-dark); }
.page-heading h1 { font-size: clamp(44px, 6vw, 70px); }
.page-heading > p:last-child { max-width: 620px; margin: 18px 0 0; color: var(--ink-soft); }
.page-heading--compact { padding-top: 48px; }
.archive-count { margin: 30px 0 14px; color: var(--ink-soft); font-family: var(--font-utility); font-size: 12px; }
.archive-count strong { color: var(--coral); font-size: 18px; }
.archive-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.archive-list li { border-bottom: 1px solid var(--line); }
.archive-card { display: grid; grid-template-columns: 145px 1fr 44px; gap: 28px; align-items: center; padding: 32px 18px; transition: background .18s ease, padding .18s ease; }
.archive-card:hover { padding-inline: 26px 10px; background: rgba(255,255,255,.5); }
.archive-index { display: grid; gap: 12px; }
.archive-index span { color: var(--coral); font-family: var(--font-display); font-size: 34px; }
.archive-index time { color: var(--ink-soft); font-family: var(--font-utility); font-size: 11px; }
.archive-copy h2 { margin: 11px 0 7px; font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.3; }
.archive-copy p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.archive-arrow { font-size: 24px; }

.detail-page { max-width: 920px; padding-top: 48px; }
.back-link { display: inline-flex; margin-bottom: 30px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.back-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.study-article { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.article-header { position: relative; overflow: hidden; padding: 64px 76px 54px; border-bottom: 1px solid var(--line); }
.article-header::before { content: ""; position: absolute; left: 36px; top: 0; bottom: 0; width: 1px; background: rgba(222, 118, 95, .58); }
.article-header h1 { max-width: 720px; margin: 26px 0 24px; font-size: clamp(38px, 6vw, 62px); }
.reading-box { margin: 52px 76px 0; padding: 24px 26px; display: grid; gap: 4px; color: white; background: var(--blue); }
.reading-box p { margin: 0; color: #bad0d7; font-size: 12px; font-weight: 700; }
.reading-box strong { font-family: var(--font-display); font-size: 23px; font-weight: 500; }
.reading-box small { margin-top: 7px; color: #b8cbd1; }
.article-body { padding: 54px 76px 30px; white-space: pre-line; font-family: var(--font-display); font-size: 19px; line-height: 2; word-break: keep-all; }
.reflection-box { margin: 28px 76px 0; padding: 34px 36px; border: 1px solid #dfc763; background: #fff9df; }
.reflection-box span { color: #79610b; font-family: var(--font-utility); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.reflection-box h2 { margin: 12px 0 8px; font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.5; }
.reflection-box p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.source-box { margin: 46px 76px 64px; padding-top: 26px; border-top: 1px solid var(--line); }
.source-box h2 { margin: 0 0 18px; font-size: 15px; }
.source-box dl { margin: 0; display: grid; gap: 10px; }
.source-box dl div { display: grid; grid-template-columns: 90px 1fr; gap: 18px; font-size: 13px; }
.source-box dt { color: var(--ink-soft); }
.source-box dd { margin: 0; }
.source-box a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-footer-nav { display: flex; justify-content: space-between; gap: 15px; padding: 26px 0 0; }
.article-footer-nav a { padding: 10px 0; color: var(--blue); font-weight: 750; }

.empty-state { margin-block: 54px; padding: 62px; border: 1px dashed var(--line-dark); text-align: center; background: rgba(255,255,255,.35); }
.empty-state h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.empty-state p { margin: 0; color: var(--ink-soft); }
.error-page { min-height: 62vh; display: grid; place-content: center; text-align: center; }
.error-page > span { color: var(--coral); font-family: var(--font-utility); font-size: 14px; }
.error-page h1 { margin: 12px 0; font-family: var(--font-display); font-size: 40px; font-weight: 500; }
.error-page p { margin: 0 0 26px; color: var(--ink-soft); }
.error-page .primary-link { justify-self: center; }

/* Learner start and personal study path */
.main-nav .nav-learner { max-width: 110px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--leaf-dark); text-overflow: ellipsis; white-space: nowrap; }
.main-nav .nav-learner::after { display: none; }
.welcome-page { padding-top: 64px; }
.welcome-hero { min-height: 590px; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 80px; align-items: center; }
.welcome-copy { max-width: 690px; }
.welcome-copy h1 { margin: 0; font-family: var(--font-display); font-size: clamp(52px, 7vw, 78px); font-weight: 500; letter-spacing: -.05em; line-height: 1.13; word-break: keep-all; }
.welcome-copy h1 em { color: var(--blue); font-style: normal; }
.welcome-copy > p:not(.eyebrow) { max-width: 620px; margin: 27px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.8; word-break: keep-all; }
.learner-start-form { max-width: 620px; margin-top: 34px; }
.learner-start-form > label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.learner-start-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.learner-start-form input { min-height: 56px; padding-inline: 17px; border-color: var(--blue); border-radius: 3px 0 0 3px; font-size: 16px; }
.learner-start-form button { min-width: 132px; border: 0; border-radius: 0 3px 3px 0; color: white; background: var(--blue); font-weight: 800; cursor: pointer; }
.learner-start-form button:hover { background: #0f3040; }
.learner-start-form small { display: block; margin-top: 9px; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.learner-start-form .field-error { margin: 8px 0 0; }
.welcome-map { padding: 34px; color: white; background: var(--blue); box-shadow: var(--shadow); }
.welcome-map-line { --path-color: #8eae96; position: relative; padding: 8px 0 31px; }
.welcome-map-line + .welcome-map-line { padding-top: 29px; border-top: 1px solid rgba(255,255,255,.18); }
.welcome-map-line--faith { --path-color: #e69b89; }
.welcome-map-line > span { color: #bcd1d7; font-size: 11px; font-weight: 800; }
.welcome-map-line > strong { float: right; font-family: var(--font-display); font-size: 25px; font-weight: 500; }
.welcome-map-line > p { clear: both; margin: 10px 0 20px; color: #e2ecee; font-family: var(--font-display); font-size: 17px; line-height: 1.65; word-break: keep-all; }
.welcome-map-line ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.welcome-map-line li { position: relative; width: 20px; height: 20px; border: 2px solid var(--path-color); border-radius: 50%; background: var(--blue); }
.welcome-map-line li.is-start { background: var(--path-color); }
.welcome-map-line li + li { margin-left: 42px; }
.welcome-map-line li + li::before { content: ""; position: absolute; top: 7px; right: 17px; width: 46px; height: 2px; background: var(--path-color); }
.welcome-map > small { display: block; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); color: #abc2c9; font-size: 11px; }
.welcome-notes { margin-top: 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.welcome-notes > div { padding: 24px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.welcome-notes > div + div { border-left: 1px solid var(--line-dark); }
.welcome-notes span { color: var(--coral); font-family: var(--font-utility); font-size: 10px; }
.welcome-notes p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.welcome-notes strong { color: var(--ink); }

.study-dashboard { padding-top: 62px; }
.dashboard-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 50px; align-items: end; padding-bottom: 45px; }
.dashboard-heading h1 { margin: 0; font-family: var(--font-display); font-size: clamp(45px, 6vw, 68px); font-weight: 500; letter-spacing: -.045em; line-height: 1.15; }
.dashboard-stats { display: flex; align-items: stretch; border: 1px solid var(--line-dark); background: rgba(255,255,255,.42); }
.dashboard-stats > div { min-width: 126px; padding: 18px 20px; display: grid; grid-template-columns: auto auto; align-content: center; column-gap: 5px; }
.dashboard-stats > div + div { border-left: 1px solid var(--line-dark); }
.dashboard-stats span { grid-column: 1 / -1; color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.dashboard-stats strong { font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1.2; }
.dashboard-stats small { align-self: end; margin-bottom: 4px; color: var(--ink-soft); font-size: 11px; }
.dashboard-stats form { display: grid; border-left: 1px solid var(--line-dark); }
.dashboard-stats button { width: 86px; padding: 10px; border: 0; color: var(--ink-soft); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.dashboard-stats button:hover { color: var(--blue); background: white; }
.dashboard-alert { margin: 0 0 18px; padding: 13px 16px; border-left: 4px solid var(--leaf); color: var(--leaf-dark); background: #e3eee5; font-size: 13px; }
.dashboard-alert--error { border-left-color: var(--coral); color: #8a4435; background: #fbe9e4; }
.study-track-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-dark); background: rgba(255,255,255,.35); }
.study-track-tabs a { position: relative; min-height: 92px; padding: 18px 25px 15px; display: grid; grid-template-columns: 1fr auto; align-items: center; color: var(--ink-soft); }
.study-track-tabs a + a { border-left: 1px solid var(--line-dark); }
.study-track-tabs a.is-active { color: white; background: var(--blue); }
.study-track-tabs span { font-family: var(--font-display); font-size: 25px; }
.study-track-tabs strong { font-family: var(--font-utility); font-size: 11px; }
.study-track-tabs i { grid-column: 1 / -1; height: 3px; overflow: hidden; background: rgba(23,59,77,.14); }
.study-track-tabs a.is-active i { background: rgba(255,255,255,.18); }
.study-track-tabs b { display: block; height: 100%; background: var(--coral); }
.study-track-panel { padding-top: 34px; }
.next-study-card { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 30px; align-items: center; min-height: 190px; padding: 28px 34px 28px 0; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.next-study-number { align-self: stretch; display: grid; align-content: center; justify-items: center; border-right: 1px dashed var(--line-dark); color: white; background: var(--leaf); }
.next-study-card--faith .next-study-number { background: var(--coral); }
.next-study-number span { font-family: var(--font-utility); font-size: 10px; letter-spacing: .08em; }
.next-study-number strong { font-family: var(--font-display); font-size: 47px; font-weight: 500; line-height: 1.1; }
.next-study-card h2, .track-finished h2 { margin: 4px 0 8px; font-family: var(--font-display); font-size: 31px; font-weight: 500; line-height: 1.3; }
.next-study-card > div:nth-child(2) > p:last-child { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.next-study-card .primary-link { white-space: nowrap; }
.track-finished { padding: 38px 42px; border: 1px solid var(--line); background: var(--surface); }
.track-finished > span { color: var(--leaf-dark); font-family: var(--font-utility); font-size: 11px; }
.track-finished p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.learning-path { position: relative; max-width: 850px; list-style: none; margin: 42px auto 0; padding: 0; }
.learning-path::before { content: ""; position: absolute; z-index: 0; top: 34px; bottom: 34px; left: 34px; width: 2px; background: var(--line-dark); }
.learning-path li { position: relative; z-index: 1; margin-bottom: 13px; }
.learning-path li > a, .learning-path li > span { min-height: 78px; display: grid; grid-template-columns: 68px minmax(0, 1fr) 82px; gap: 18px; align-items: center; padding: 8px 17px 8px 0; border: 1px solid var(--line); background: var(--surface); transition: transform .18s ease, box-shadow .18s ease; }
.learning-path li > a:hover { transform: translateX(5px); box-shadow: 0 12px 30px rgba(30,58,68,.09); }
.path-node { width: 68px; height: 68px; display: grid; place-items: center; border: 2px solid var(--line-dark); border-radius: 50%; color: var(--ink-soft); background: var(--paper); font-family: var(--font-utility); font-size: 11px; }
.learning-path li.is-complete .path-node { border-color: var(--leaf); color: white; background: var(--leaf); font-size: 20px; }
.learning-path--faith li.is-complete .path-node { border-color: var(--coral); background: var(--coral); }
.learning-path li.is-current .path-node { border: 4px solid var(--marker); color: var(--blue); background: white; box-shadow: 0 0 0 5px rgba(241,200,75,.22); font-weight: 800; }
.learning-path li.is-current > a { border-color: var(--blue); }
.learning-path li.is-locked > span { color: #73838a; background: rgba(245,248,249,.72); }
.learning-path li.is-locked .path-node { border-style: dashed; color: #87969c; }
.learning-path li > a > span:nth-child(2), .learning-path li > span > span:nth-child(2) { display: grid; gap: 3px; }
.learning-path small { color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.learning-path strong { font-family: var(--font-display); font-size: 19px; font-weight: 500; line-height: 1.35; }
.learning-path em { color: var(--ink-soft); font-size: 10px; font-style: normal; font-weight: 800; text-align: right; }
.learning-path li.is-current em { color: var(--coral); }
.study-finish { margin: 36px 64px 0; border: 1px solid var(--line-dark); background: #eef5ef; }
.study-finish > div, .study-finish > form { min-height: 92px; padding: 17px 20px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.study-finish-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--leaf); font-family: var(--font-utility); font-size: 13px; }
.study-finish p { margin: 0; display: grid; }
.study-finish p strong { font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.study-finish p small { color: var(--ink-soft); font-size: 11px; }
.study-finish a, .study-finish button { min-height: 42px; padding: 10px 14px; border: 1px solid var(--blue); border-radius: 3px; color: white; background: var(--blue); font-size: 12px; font-weight: 800; cursor: pointer; }
.study-finish a { display: inline-grid; place-items: center; }
.study-finish a:hover, .study-finish button:hover { background: #0f3040; }
.study-finish--guest { background: #f4f7f8; }
.study-finish--guest .study-finish-mark { background: var(--blue); }
.lesson-unlock-note { margin: 0; padding: 12px 18px; border-bottom: 1px solid #d9c66c; color: #705c0a; background: #fff6ce; font-size: 12px; font-weight: 750; }

/* One-a-day doctrine and worship */
.faith-meal-callout { margin-top: 72px; display: grid; grid-template-columns: 135px minmax(0, 1fr) auto; gap: 34px; align-items: center; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.faith-meal-callout-label { min-height: 178px; padding: 25px 18px; display: grid; align-content: center; justify-items: center; border-right: 1px dashed var(--line-dark); color: white; background: var(--blue); }
.faith-meal-callout-label span, .faith-meal-callout-label small { font-family: var(--font-utility); font-size: 10px; letter-spacing: .08em; }
.faith-meal-callout-label strong { margin: 3px 0; font-family: var(--font-display); font-size: 38px; font-weight: 500; }
.faith-meal-callout h2 { margin: 5px 0 9px; font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.faith-meal-callout p:last-child { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 14px; }
.faith-meal-callout > .primary-link { margin-right: 34px; white-space: nowrap; }

.faith-meal-page { padding-top: 64px; }
.faith-meal-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; padding-bottom: 62px; }
.faith-meal-copy h1 { margin: 0; font-family: var(--font-display); font-size: clamp(48px, 7vw, 76px); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; word-break: keep-all; }
.faith-meal-copy h1 em { color: var(--blue); font-style: normal; }
.faith-meal-copy > p:last-child { max-width: 480px; margin: 25px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.today-meal { --track-color: var(--leaf); min-height: 330px; display: grid; grid-template-columns: 155px 1fr; border: 1px solid var(--line-dark); background: var(--surface); box-shadow: var(--shadow); }
.today-meal.track--worship, .meal-track.track--worship, .daily-study-header.track--worship { --track-color: var(--coral); }
.today-meal-number { position: relative; padding: 28px 22px; display: grid; align-content: center; justify-items: center; border-right: 1px dashed var(--line-dark); color: white; background: var(--track-color); }
.today-meal-number::before, .today-meal-number::after { content: ""; position: absolute; right: -9px; width: 17px; height: 17px; border: 1px solid var(--line-dark); border-radius: 50%; background: var(--paper); }
.today-meal-number::before { top: -9px; }
.today-meal-number::after { bottom: -9px; }
.today-meal-number span, .today-meal-number small { font-family: var(--font-utility); font-size: 11px; letter-spacing: .1em; }
.today-meal-number strong { margin: 3px 0 5px; font-family: var(--font-display); font-size: 58px; font-weight: 500; line-height: 1; }
.today-meal-copy { padding: 42px 44px; display: flex; flex-direction: column; align-items: flex-start; }
.today-meal-copy > span { color: var(--track-color); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.today-meal-copy h2 { margin: 12px 0 13px; font-family: var(--font-display); font-size: 35px; font-weight: 500; line-height: 1.25; }
.today-meal-copy p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.today-meal-copy .primary-link { margin-top: auto; }
.faith-meal-method { padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.faith-meal-method div { padding: 21px 25px; display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center; }
.faith-meal-method div + div { border-left: 1px solid var(--line-dark); }
.faith-meal-method span { color: var(--coral); font-family: var(--font-utility); font-size: 11px; font-weight: 800; }
.faith-meal-method p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.faith-meal-index { max-width: 1000px; padding-top: 70px; }
.faith-meal-strand { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.faith-meal-strand li { border-bottom: 1px solid var(--line); }
.faith-meal-strand a { min-height: 68px; padding: 10px 16px; display: grid; grid-template-columns: 46px 74px minmax(0, 1fr) 42px 24px; gap: 14px; align-items: center; transition: padding .18s ease, background .18s ease; }
.faith-meal-strand a:hover { padding-inline: 23px 9px; background: rgba(255,255,255,.52); }
.faith-meal-strand .meal-day { color: var(--ink-soft); font-family: var(--font-utility); font-size: 11px; }
.meal-track { --track-color: var(--leaf); display: inline-flex; justify-content: center; padding: 4px 8px; border-left: 3px solid var(--track-color); color: var(--track-color); background: white; font-size: 11px; font-weight: 800; }
.faith-meal-strand strong { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.faith-meal-strand small { color: var(--coral); font-size: 10px; font-weight: 800; }
.faith-meal-strand .meal-arrow { color: var(--blue); }
.faith-meal-strand li.is-today { background: #f8f1de; }
.faith-meal-sources { max-width: 1000px; margin-top: 52px; padding: 28px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.faith-meal-sources h2 { margin: 0 0 8px; font-size: 15px; }
.faith-meal-sources p { max-width: 780px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.faith-meal-sources div { margin-top: 13px; display: flex; gap: 22px; }
.faith-meal-sources a { color: var(--blue); font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }

.daily-study-page { padding-top: 42px; }
.daily-study-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 38px; align-items: start; }
.daily-study-rail { position: sticky; top: 22px; border-top: 4px solid var(--leaf); color: #edf5f5; background: var(--blue); }
.daily-study-rail > p { margin: 0; padding: 19px; display: grid; gap: 2px; border-bottom: 1px solid rgba(255,255,255,.16); }
.daily-study-rail > p strong { font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.daily-study-rail > p span { color: #abc2c9; font-size: 10px; }
.daily-study-rail ol { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; }
.daily-study-rail a { min-height: 35px; padding: 7px 8px; display: grid; grid-template-columns: 24px 1fr; gap: 5px; align-items: center; color: #bcd0d6; border-bottom: 2px solid transparent; }
.daily-study-rail a:hover { color: white; background: rgba(255,255,255,.06); }
.daily-study-rail a.is-active { color: white; border-bottom-color: var(--coral); background: rgba(255,255,255,.11); }
.daily-study-rail a span { font-family: var(--font-utility); font-size: 9px; }
.daily-study-rail a em { font-size: 11px; font-style: normal; font-weight: 750; }
.daily-study-rail li > span.is-locked { min-height: 35px; padding: 7px 8px; display: grid; grid-template-columns: 24px 1fr; gap: 5px; align-items: center; color: #718d96; }
.daily-study-rail li > span.is-locked > span { font-family: var(--font-utility); font-size: 9px; }
.daily-study-rail li > span.is-locked em { font-size: 11px; font-style: normal; font-weight: 750; }
.daily-study-article { min-width: 0; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.daily-study-header { --track-color: var(--leaf); position: relative; overflow: hidden; padding: 48px 64px 46px; border-bottom: 1px solid var(--line); }
.daily-study-header::before { content: ""; position: absolute; top: 0; bottom: 0; left: 28px; width: 3px; background: var(--track-color); opacity: .72; }
.daily-study-progress { margin-bottom: 34px; display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: center; }
.daily-study-progress span { color: var(--ink-soft); font-family: var(--font-utility); font-size: 10px; }
.daily-study-progress i { height: 2px; overflow: hidden; background: var(--line); }
.daily-study-progress b { display: block; height: 100%; background: var(--track-color); }
.daily-study-header .eyebrow { color: var(--track-color); }
.daily-study-header h1 { margin: 11px 0 19px; font-family: var(--font-display); font-size: clamp(40px, 6vw, 60px); font-weight: 500; letter-spacing: -.045em; line-height: 1.15; }
.daily-study-header > p:last-child { max-width: 720px; margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.7; word-break: keep-all; }
.daily-study-reading { margin: 40px 64px 0; }
.daily-study-body { padding-bottom: 2px; }
.daily-key-sentence { margin: 24px 64px 0; padding: 30px 32px; border-left: 4px solid var(--leaf); background: #eef5ef; }
.daily-key-sentence span { color: var(--leaf-dark); font-family: var(--font-utility); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.daily-key-sentence p { margin: 9px 0 0; font-family: var(--font-display); font-size: 22px; line-height: 1.65; }
.daily-check-question { margin-top: 26px; }
.daily-study-source { margin-bottom: 0; }

/* Bible course */
.course-callout {
  margin-top: 72px;
  padding: 38px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 38px;
  align-items: center;
  border-top: 4px solid var(--leaf);
  border-bottom: 1px solid var(--line-dark);
  background: var(--surface);
}
.course-callout h2 { margin: 5px 0 10px; font-family: var(--font-display); font-size: 31px; font-weight: 500; }
.course-callout p:last-child { max-width: 600px; margin: 0; color: var(--ink-soft); font-size: 14px; }
.course-callout ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.course-callout li { position: relative; min-width: 58px; display: grid; gap: 3px; color: var(--ink-soft); font-size: 12px; text-align: center; }
.course-callout li + li::before { content: ""; position: absolute; top: 8px; left: -15px; width: 30px; height: 1px; background: var(--line-dark); }
.course-callout li span { color: var(--coral); font-family: var(--font-utility); font-size: 10px; }
.course-callout .primary-link { white-space: nowrap; }

.course-page { padding-top: 64px; }
.course-hero { display: grid; grid-template-columns: minmax(0, 1fr) 185px; gap: 72px; align-items: center; padding-bottom: 68px; }
.course-hero-copy { max-width: 820px; }
.course-hero h1 { margin: 14px 0 21px; font-size: clamp(48px, 7vw, 78px); }
.course-summary { max-width: 760px; margin: 0; font-family: var(--font-display); font-size: 23px; font-weight: 500; line-height: 1.65; word-break: keep-all; }
.course-introduction { max-width: 760px; margin: 21px 0 30px; color: var(--ink-soft); line-height: 1.8; word-break: keep-all; }
.course-route { min-height: 268px; padding: 26px 22px; display: grid; grid-template-rows: auto auto 1fr auto auto; justify-items: center; align-items: center; border: 1px solid var(--line-dark); background: rgba(255,255,255,.42); }
.course-route span { color: var(--ink-soft); font-family: var(--font-utility); font-size: 10px; letter-spacing: .12em; }
.course-route strong { font-family: var(--font-display); font-size: 25px; font-weight: 500; }
.course-route i { position: relative; width: 1px; height: 100%; min-height: 65px; background: var(--line-dark); }
.course-route i::after { content: ""; position: absolute; left: -3px; bottom: -1px; width: 7px; height: 7px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transform: rotate(45deg); }

.course-index { max-width: 1000px; padding-top: 56px; border-top: 1px solid var(--line-dark); }
.course-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 60px; align-items: end; margin-bottom: 36px; }
.course-section-heading h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: 40px; font-weight: 500; }
.course-section-heading > p { margin: 0 0 5px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.course-timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.course-timeline::before { content: ""; position: absolute; top: 32px; bottom: 32px; left: 31px; width: 1px; background: var(--line-dark); }
.course-timeline li { position: relative; }
.course-lesson-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) 34px; gap: 24px; align-items: center; min-height: 128px; padding: 22px 28px 22px 0; border-bottom: 1px solid var(--line); transition: transform .18s ease, background .18s ease; }
.course-timeline li:first-child .course-lesson-card { border-top: 1px solid var(--line); }
.course-lesson-card:hover { transform: translateX(6px); background: rgba(255,255,255,.55); }
.timeline-number { position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--coral); background: var(--paper); font-family: var(--font-utility); font-size: 12px; }
.course-lesson-copy { display: grid; gap: 5px; }
.course-lesson-copy small { color: var(--leaf-dark); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.course-lesson-copy strong { font-family: var(--font-display); font-size: 27px; font-weight: 500; }
.course-lesson-copy > span { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.course-card-arrow { color: var(--blue); font-size: 23px; }
.course-source { max-width: 1000px; margin-top: 54px; padding: 28px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.course-source h2 { margin: 0 0 18px; font-size: 15px; }
.course-source dl { margin: 0; display: grid; gap: 10px; }
.course-source dl div { display: grid; grid-template-columns: 100px 1fr; gap: 18px; font-size: 13px; }
.course-source dt { color: var(--ink-soft); }
.course-source dd { margin: 0; }
.course-source a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.lesson-page { padding-top: 42px; }
.lesson-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 38px; align-items: start; }
.lesson-spine { position: sticky; top: 22px; border-top: 4px solid var(--leaf); background: var(--blue); color: #edf5f5; }
.lesson-spine > p { margin: 0; padding: 20px 19px 17px; display: grid; gap: 3px; border-bottom: 1px solid rgba(255,255,255,.16); }
.lesson-spine > p strong { font-family: var(--font-display); font-size: 17px; font-weight: 500; line-height: 1.35; }
.lesson-spine > p span { color: #abc2c9; font-size: 11px; }
.lesson-spine ol { list-style: none; margin: 0; padding: 8px 0; }
.lesson-spine a { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; min-height: 38px; padding: 7px 16px; color: #bfd1d6; border-left: 3px solid transparent; }
.lesson-spine a:hover { color: white; background: rgba(255,255,255,.06); }
.lesson-spine a.is-active { color: white; border-left-color: var(--coral); background: rgba(255,255,255,.11); }
.lesson-spine a span { font-family: var(--font-utility); font-size: 10px; }
.lesson-spine a em { overflow: hidden; font-size: 12px; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.lesson-spine li > span.is-locked { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; min-height: 38px; padding: 7px 16px 7px 19px; color: #718d96; }
.lesson-spine li > span.is-locked > span { font-family: var(--font-utility); font-size: 10px; }
.lesson-spine li > span.is-locked em { overflow: hidden; font-size: 12px; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.lesson-article { min-width: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lesson-header { position: relative; overflow: hidden; padding: 48px 64px 45px; border-bottom: 1px solid var(--line); }
.lesson-header::before { content: ""; position: absolute; top: 0; bottom: 0; left: 28px; width: 1px; background: rgba(222,118,95,.58); }
.lesson-progress { margin-bottom: 34px; display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: center; }
.lesson-progress > span { color: var(--ink-soft); font-family: var(--font-utility); font-size: 11px; }
.lesson-progress i { height: 2px; overflow: hidden; background: var(--line); }
.lesson-progress b { display: block; height: 100%; background: var(--leaf); }
.lesson-header h1 { margin: 11px 0 20px; font-size: clamp(40px, 6vw, 62px); }
.lesson-summary { max-width: 720px; margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.7; word-break: keep-all; }
.lesson-reading { margin: 40px 64px 0; }
.lesson-body { padding: 46px 64px 16px; }
.lesson-body h2 { margin: 42px 0 16px; padding-top: 27px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 29px; font-weight: 500; }
.lesson-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lesson-body p { margin: 0 0 21px; font-family: var(--font-display); font-size: 18px; line-height: 1.95; word-break: keep-all; }
.lesson-terms { margin: 20px 64px 0; padding: 26px 28px; border: 1px solid var(--line); background: #f5f8f9; }
.lesson-terms h2 { margin: 0 0 15px; font-size: 13px; }
.lesson-terms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lesson-terms li { padding: 6px 10px; border: 1px solid #cbd8dc; color: var(--blue); background: white; font-size: 12px; font-weight: 750; }
.lesson-connection { margin: 30px 64px 0; padding: 28px 30px; border-left: 4px solid var(--coral); background: #fff7ed; }
.lesson-connection span { color: #8a4a39; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.lesson-connection p { margin: 10px 0 0; font-family: var(--font-display); font-size: 19px; line-height: 1.75; }
.lesson-footer-nav { margin-top: 52px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; border-top: 1px solid var(--line); }
.lesson-nav-link { min-height: 94px; padding: 20px 25px; display: grid; align-content: center; gap: 5px; }
.lesson-nav-link:hover { background: #f4f7f8; }
.lesson-nav-link small { color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.lesson-nav-link strong { font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.lesson-nav-link--next { text-align: right; }
.lesson-nav-center { min-width: 78px; display: grid; place-items: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--blue); font-size: 12px; font-weight: 750; }
.lesson-nav-center:hover { background: #f4f7f8; }
.course-inline { margin: 0 76px 64px; padding: 30px 34px; display: flex; justify-content: space-between; gap: 30px; align-items: center; color: white; background: var(--blue); }
.course-inline span { color: #b7d1bd; font-size: 11px; font-weight: 800; }
.course-inline h2 { margin: 7px 0; font-family: var(--font-display); font-size: 25px; font-weight: 500; }
.course-inline p { max-width: 580px; margin: 0; color: #c6d5d9; font-size: 13px; }
.course-inline > a { flex: 0 0 auto; padding: 11px 14px; border: 1px solid rgba(255,255,255,.35); font-size: 12px; font-weight: 750; }
.course-inline > a:hover { background: rgba(255,255,255,.1); }

/* Admin */
.admin-page { background: #eef2f3; }
.admin-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.admin-actions { display: flex; align-items: center; gap: 16px; }
.admin-actions a, .admin-actions button { color: var(--ink-soft); background: none; border: 0; font-size: 13px; font-weight: 700; cursor: pointer; }
.admin-actions form { margin: 0; }
.admin-main { padding-block: 52px 90px; }
.admin-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.admin-title-row h1 { font-size: 46px; }
.admin-title-row p:last-child { margin: 8px 0 0; color: var(--ink-soft); }
.admin-table-card, .form-section { background: var(--surface); border: 1px solid var(--line); }
.admin-table-heading { min-height: 70px; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.admin-table-heading h2 { margin: 0; font-size: 16px; }
.admin-table-heading span { color: var(--ink-soft); font-family: var(--font-utility); font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 17px 20px; border-bottom: 1px solid #e2e8ea; text-align: left; font-size: 13px; vertical-align: middle; }
th { color: var(--ink-soft); background: #f5f8f9; font-size: 11px; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
.title-cell { max-width: 390px; font-weight: 700; }
.table-action { color: var(--blue); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.status-pill { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: #e1e7e9; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status--published { color: #28513a; background: #d9eadf; }
.status--review { color: #775d0a; background: #f6e8a8; }
.status--archived { color: #60696d; background: #e0e3e4; }
.status--draft { color: #3d5a68; background: #dce9ef; }
.empty-cell { padding: 55px; color: var(--ink-soft); text-align: center; }

.admin-form-main { max-width: 960px; padding-bottom: 100px; }
.content-form { display: grid; gap: 20px; margin-top: 26px; }
.form-section { padding: 30px 34px 36px; }
.section-label { display: flex; align-items: baseline; gap: 13px; margin-bottom: 24px; }
.section-label span { color: var(--coral); font-family: var(--font-utility); font-size: 11px; }
.section-label h2 { margin: 0; font-size: 18px; }
.form-grid { display: grid; gap: 18px; }
.form-grid--three { grid-template-columns: repeat(3, 1fr); }
.form-grid--source { grid-template-columns: .8fr 1.2fr; }
.form-stack { display: grid; gap: 22px; }
.content-form label, .login-form label { display: grid; gap: 7px; }
.content-form label > span, .login-form label > span { font-size: 12px; font-weight: 750; }
input, textarea, select { width: 100%; border: 1px solid var(--line-dark); border-radius: 3px; color: var(--ink); background: white; }
input, select { min-height: 46px; padding: 10px 12px; }
textarea { padding: 12px; resize: vertical; line-height: 1.7; }
input:hover, textarea:hover, select:hover { border-color: var(--blue); }
.field-hint { color: var(--ink-soft); font-size: 11px; }
.field-error { color: var(--danger); font-size: 11px; }
.field-error:empty { display: none; }
.form-submit-bar { position: sticky; bottom: 14px; z-index: 4; display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 16px 18px; border: 1px solid var(--line); background: rgba(251,253,253,.94); box-shadow: 0 12px 32px rgba(23,39,46,.12); backdrop-filter: blur(10px); }
.form-submit-bar > a { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.form-alert { margin: 0 0 20px; padding: 12px 15px; border-left: 3px solid var(--leaf); color: var(--leaf-dark); background: #e2ece4; font-size: 13px; }
.form-alert--error { border-color: var(--danger); color: var(--danger); background: #f8e3df; }

.admin-login-page { min-height: 100vh; background: var(--blue); }
.login-shell { width: min(920px, calc(100% - 40px)); min-height: 100vh; margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; }
.login-brand { color: #eef7f5; }
.login-brand .brand-mark { width: 58px; height: 58px; }
.login-brand strong { font-size: 25px; }
.login-brand small { color: #aec4c9; }
.login-card { padding: 46px; background: var(--surface); box-shadow: 0 25px 90px rgba(0,0,0,.25); }
.login-card h1 { font-size: 38px; }
.login-card > p:not(.eyebrow) { margin: 12px 0 28px; color: var(--ink-soft); }
.login-form { display: grid; gap: 18px; }
.login-form .primary-button { margin-top: 4px; }
.login-card .back-link { margin: 24px 0 0; }

@media (max-width: 900px) {
  .study-layout { grid-template-columns: 1fr; }
  .recent-panel { min-height: auto; }
  .recent-list { display: grid; grid-template-columns: 1fr 1fr; }
  .recent-list li:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.18); }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div + div { border-left: 0; border-top: 1px solid var(--line-dark); }
  .login-shell { grid-template-columns: 1fr; gap: 30px; padding-block: 50px; }
  .login-brand { justify-self: center; }
  .course-callout { grid-template-columns: 1fr auto; }
  .course-callout ol { grid-column: 1 / -1; grid-row: 2; }
  .lesson-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
  .lesson-header { padding-inline: 48px; }
  .lesson-reading, .lesson-terms, .lesson-connection { margin-inline: 48px; }
  .lesson-body { padding-inline: 48px; }
  .faith-meal-callout { grid-template-columns: 120px minmax(0, 1fr); }
  .faith-meal-callout > .primary-link { grid-column: 2; margin: 0 30px 28px 0; justify-self: start; }
  .faith-meal-hero { grid-template-columns: 1fr; gap: 38px; }
  .faith-meal-copy > p:last-child { max-width: 650px; }
  .daily-study-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 22px; }
  .daily-study-header { padding-inline: 48px; }
  .daily-study-reading, .daily-key-sentence { margin-inline: 48px; }
  .welcome-hero { grid-template-columns: 1fr; gap: 48px; padding-block: 35px 55px; }
  .welcome-copy, .learner-start-form { max-width: 760px; }
  .welcome-map { max-width: 620px; }
  .dashboard-heading { grid-template-columns: 1fr; align-items: start; }
  .dashboard-stats { justify-self: stretch; }
  .dashboard-stats > div { flex: 1; }
  .next-study-card { grid-template-columns: 105px minmax(0, 1fr); }
  .next-study-card .primary-link { grid-column: 2; justify-self: start; }
  .study-finish { margin-inline: 48px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1120px); }
  .header-inner, .admin-header-inner { min-height: 72px; }
  .brand small { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: 9px; font-size: 12px; }
  .main-nav .nav-admin { margin-left: 2px; }
  .main-nav .nav-admin { display: none; }
  .main-nav .nav-learner { display: none; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 28px; padding-block: 48px 38px; }
  .hero h1 { font-size: 46px; }
  .hero-description { font-size: 15px; }
  .date-stamp { width: auto; min-height: 0; padding: 13px 18px; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; border-radius: 4px; text-align: left; transform: none; }
  .date-stamp strong { margin: 0; font-size: 21px; }
  .date-stamp small { text-align: right; }
  .daily-card { min-height: 0; grid-template-columns: 1fr; }
  .margin-rail { min-height: 52px; padding: 0 20px; grid-template-columns: 1fr auto; align-content: center; justify-items: start; border-right: 0; border-bottom: 1px solid rgba(222,118,95,.58); }
  .margin-rail span { writing-mode: horizontal-tb; }
  .margin-rail b { justify-self: end; font-size: 24px; }
  .daily-content { padding: 32px 25px 30px; }
  .daily-content h2 { font-size: 34px; }
  .highlight-summary { font-size: 16px; }
  .daily-content .primary-link { width: 100%; margin-top: 35px; }
  .recent-panel { padding: 30px 24px; }
  .recent-list { grid-template-columns: 1fr; }
  .recent-list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .trust-strip { margin-top: 48px; }
  .footer-inner { min-height: 180px; flex-direction: column; justify-content: center; align-items: flex-start; }
  .footer-inner p:last-child { text-align: left; }
  .page-heading { padding-top: 52px; }
  .page-heading h1 { font-size: 46px; }
  .archive-card { grid-template-columns: 60px 1fr; gap: 16px; padding: 25px 5px; }
  .archive-index span { font-size: 27px; }
  .archive-index time { display: none; }
  .archive-copy h2 { font-size: 22px; }
  .archive-copy p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .archive-arrow { display: none; }
  .detail-page { padding-top: 28px; }
  .article-header { padding: 42px 28px 38px; }
  .article-header::before { left: 14px; }
  .article-header h1 { font-size: 38px; }
  .reading-box { margin: 30px 24px 0; padding: 20px; }
  .article-body { padding: 38px 28px 16px; font-size: 17px; line-height: 1.9; }
  .reflection-box { margin: 24px 24px 0; padding: 26px 22px; }
  .reflection-box h2 { font-size: 23px; }
  .source-box { margin: 36px 28px 44px; }
  .source-box dl div { grid-template-columns: 1fr; gap: 3px; }
  .article-footer-nav { flex-direction: column; }
  .admin-actions a { display: none; }
  .admin-title-row { align-items: stretch; flex-direction: column; }
  .admin-title-row h1 { font-size: 38px; }
  .admin-title-row .primary-button { width: 100%; }
  .form-section { padding: 25px 20px 28px; }
  .form-grid--three, .form-grid--source { grid-template-columns: 1fr; }
  .form-submit-bar { bottom: 8px; }
  .login-shell { width: min(100% - 28px, 920px); }
  .login-card { padding: 34px 24px; }
  .login-card h1 { font-size: 32px; }
  .course-callout { margin-top: 48px; padding: 30px 24px; grid-template-columns: 1fr; gap: 26px; }
  .course-callout h2 { font-size: 27px; }
  .course-callout ol { grid-column: auto; grid-row: auto; overflow-x: auto; justify-content: space-between; }
  .course-callout li { min-width: 54px; }
  .course-callout .primary-link { width: 100%; }
  .course-page { padding-top: 42px; }
  .course-hero { grid-template-columns: 1fr; gap: 30px; padding-bottom: 48px; }
  .course-hero h1 { font-size: 46px; }
  .course-summary { font-size: 19px; }
  .course-route { min-height: 0; padding: 15px 18px; grid-template-columns: auto auto 1fr auto auto; grid-template-rows: 1fr; gap: 10px; }
  .course-route i { width: 100%; height: 1px; min-height: 1px; }
  .course-route i::after { left: auto; right: 0; bottom: -3px; }
  .course-route strong { font-size: 19px; }
  .course-index { padding-top: 42px; }
  .course-section-heading { grid-template-columns: 1fr; gap: 13px; margin-bottom: 26px; }
  .course-section-heading h2 { font-size: 32px; }
  .course-timeline::before { left: 23px; }
  .course-lesson-card { grid-template-columns: 48px minmax(0, 1fr) 18px; gap: 14px; min-height: 116px; padding-right: 5px; }
  .timeline-number { width: 48px; height: 48px; }
  .course-lesson-copy strong { font-size: 22px; }
  .course-lesson-copy > span { font-size: 13px; }
  .course-source dl div { grid-template-columns: 1fr; gap: 3px; }
  .lesson-page { padding-top: 27px; }
  .lesson-layout { grid-template-columns: 1fr; gap: 18px; }
  .lesson-spine { position: static; overflow: hidden; }
  .lesson-spine > p { display: flex; justify-content: space-between; align-items: center; }
  .lesson-spine ol { padding: 0 8px 8px; display: flex; overflow-x: auto; }
  .lesson-spine li { flex: 0 0 auto; }
  .lesson-spine a { min-height: 44px; grid-template-columns: auto; padding: 8px 12px; border-left: 0; border-bottom: 3px solid transparent; }
  .lesson-spine a.is-active { border-left-color: transparent; border-bottom-color: var(--coral); }
  .lesson-spine a em { display: none; }
  .lesson-spine li > span.is-locked { min-height: 44px; grid-template-columns: auto; padding: 8px 12px; }
  .lesson-spine li > span.is-locked em { display: none; }
  .lesson-header { padding: 37px 28px 34px; }
  .lesson-header::before { left: 13px; }
  .lesson-header h1 { font-size: 39px; }
  .lesson-summary { font-size: 18px; }
  .lesson-reading { margin: 28px 23px 0; }
  .lesson-body { padding: 35px 27px 8px; }
  .lesson-body h2 { font-size: 26px; }
  .lesson-body p { font-size: 17px; line-height: 1.9; }
  .lesson-terms, .lesson-connection { margin-inline: 23px; }
  .lesson-connection { padding: 24px 22px; }
  .lesson-footer-nav { grid-template-columns: 1fr 58px 1fr; }
  .lesson-nav-link { min-height: 100px; padding: 15px 13px; }
  .lesson-nav-link strong { font-size: 14px; }
  .lesson-nav-center { min-width: 58px; }
  .course-inline { margin: 0 24px 44px; padding: 26px 23px; flex-direction: column; align-items: flex-start; }
  .faith-meal-callout { margin-top: 48px; grid-template-columns: 1fr; gap: 0; }
  .faith-meal-callout-label { min-height: 76px; padding: 12px 20px; grid-template-columns: auto auto 1fr; gap: 10px; justify-items: start; border-right: 0; border-bottom: 1px dashed var(--line-dark); }
  .faith-meal-callout-label strong { margin: 0; font-size: 27px; }
  .faith-meal-callout-label small { justify-self: end; }
  .faith-meal-callout > div:nth-child(2) { padding: 27px 23px 20px; }
  .faith-meal-callout h2 { font-size: 26px; }
  .faith-meal-callout > .primary-link { grid-column: auto; width: calc(100% - 46px); margin: 0 23px 27px; }
  .faith-meal-page { padding-top: 42px; }
  .faith-meal-hero { gap: 28px; padding-bottom: 42px; }
  .faith-meal-copy h1 { font-size: 47px; }
  .today-meal { min-height: 0; grid-template-columns: 1fr; }
  .today-meal-number { min-height: 80px; padding: 13px 20px; grid-template-columns: auto auto 1fr; gap: 12px; justify-items: start; border-right: 0; border-bottom: 1px dashed var(--line-dark); }
  .today-meal-number::before, .today-meal-number::after { top: auto; right: auto; bottom: -9px; }
  .today-meal-number::before { left: -9px; }
  .today-meal-number::after { left: auto; right: -9px; }
  .today-meal-number strong { margin: 0; font-size: 36px; }
  .today-meal-number small { justify-self: end; }
  .today-meal-copy { padding: 30px 24px; }
  .today-meal-copy h2 { font-size: 30px; }
  .today-meal-copy .primary-link { width: 100%; margin-top: 28px; }
  .faith-meal-method { grid-template-columns: 1fr; }
  .faith-meal-method div + div { border-left: 0; border-top: 1px solid var(--line-dark); }
  .faith-meal-index { padding-top: 50px; }
  .faith-meal-strand a { min-height: 74px; grid-template-columns: 32px 58px minmax(0, 1fr) 18px; gap: 9px; padding-inline: 5px; }
  .faith-meal-strand strong { font-size: 17px; }
  .faith-meal-strand small { display: none; }
  .faith-meal-sources div { flex-direction: column; gap: 6px; }
  .daily-study-page { padding-top: 27px; }
  .daily-study-layout { grid-template-columns: 1fr; gap: 18px; }
  .daily-study-rail { position: static; overflow: hidden; }
  .daily-study-rail > p { display: flex; justify-content: space-between; align-items: center; }
  .daily-study-rail ol { display: flex; overflow-x: auto; }
  .daily-study-rail li { flex: 0 0 auto; }
  .daily-study-rail a { min-width: 46px; grid-template-columns: 1fr; justify-items: center; }
  .daily-study-rail a em { display: none; }
  .daily-study-rail li > span.is-locked { min-width: 46px; grid-template-columns: 1fr; justify-items: center; }
  .daily-study-rail li > span.is-locked em { display: none; }
  .daily-study-header { padding: 37px 28px 35px; }
  .daily-study-header::before { left: 13px; }
  .daily-study-header h1 { font-size: 39px; }
  .daily-study-header > p:last-child { font-size: 17px; }
  .daily-study-reading, .daily-key-sentence { margin-inline: 23px; }
  .daily-key-sentence { padding: 25px 22px; }
  .daily-key-sentence p { font-size: 19px; }
  .welcome-page { padding-top: 35px; }
  .welcome-hero { min-height: 0; gap: 38px; padding-block: 0 42px; }
  .welcome-copy h1 { font-size: 48px; }
  .welcome-copy > p:not(.eyebrow) { font-size: 15px; }
  .learner-start-form > div { grid-template-columns: 1fr; gap: 8px; }
  .learner-start-form input, .learner-start-form button { min-height: 52px; border-radius: 3px; }
  .welcome-map { padding: 27px 22px; }
  .welcome-map-line li + li { margin-left: 27px; }
  .welcome-map-line li + li::before { width: 31px; }
  .welcome-notes { grid-template-columns: 1fr; margin-top: 0; }
  .welcome-notes > div + div { border-left: 0; border-top: 1px solid var(--line-dark); }
  .study-dashboard { padding-top: 38px; }
  .dashboard-heading { gap: 28px; padding-bottom: 30px; }
  .dashboard-heading h1 { font-size: 45px; }
  .dashboard-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .dashboard-stats > div { min-width: 0; padding: 15px; }
  .dashboard-stats form { grid-column: 1 / -1; min-height: 42px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .dashboard-stats button { width: 100%; }
  .study-track-tabs a { min-height: 81px; padding: 15px 17px 13px; }
  .study-track-tabs span { font-size: 20px; }
  .study-track-panel { padding-top: 22px; }
  .next-study-card { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; min-height: 0; padding: 20px 18px 20px 0; }
  .next-study-number strong { font-size: 34px; }
  .next-study-card h2 { font-size: 25px; }
  .next-study-card .primary-link { grid-column: 1 / -1; width: calc(100% - 18px); margin-left: 18px; }
  .track-finished { padding: 30px 24px; }
  .track-finished h2 { font-size: 27px; }
  .learning-path { margin-top: 28px; }
  .learning-path::before { left: 26px; }
  .learning-path li > a, .learning-path li > span { min-height: 70px; grid-template-columns: 52px minmax(0, 1fr) 50px; gap: 11px; padding-right: 9px; }
  .path-node { width: 52px; height: 52px; }
  .learning-path strong { font-size: 16px; }
  .learning-path em { font-size: 9px; }
  .study-finish { margin-inline: 23px; }
  .study-finish > div, .study-finish > form { padding: 18px; grid-template-columns: 46px 1fr; }
  .study-finish p strong { font-size: 17px; }
  .study-finish a, .study-finish button { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .highlight-summary::before { transform: rotate(-.7deg) scaleX(1); }
}
