/* ============================================================================
   Scholar — a Bible school or seminary.

   Heritage is a confessional parish that happens to have a college attached.
   This is the college: prospectus first, and the questions it answers are a
   prospective student's, in order — what do you teach, who teaches it, what
   does it cost, when does it start.

   Structured rather than atmospheric. A table of courses that is a real
   <table>, because a course list IS tabular and turning it into cards makes it
   harder to compare the one thing a student is comparing. Cool ink and one
   deep blue: this is the only template here that is not warm, and that is
   deliberate — it should read as an institution, not as a congregation.
   ========================================================================== */

.demo-body--scholar {
  --paper: #fdfdfc;
  --paper-2: #f0f2f5;
  --ink: #16202b;
  --ink-mid: #4d5865;
  --line: rgba(22, 32, 43, 0.14);
  --accent: #1f4b7a;

  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.66;
}
.demo-body--scholar h1,
.demo-body--scholar h2,
.demo-body--scholar h3 {
  font-family: "Lora", Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", SimSun, serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--track-label, -0.012em);
}

.sc-shell { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.sc-shell--narrow { width: min(100% - 2.5rem, 44rem); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.sc-header { border-bottom: 2px solid var(--accent); background: var(--paper); }
.sc-header__top { padding-block: 0.5rem; background: var(--accent); color: rgba(255, 255, 255, 0.9); font-size: 0.78rem; }
.sc-header__top .sc-shell { display: flex; gap: 1.2rem; justify-content: space-between; flex-wrap: wrap; }
.sc-header__inner { display: flex; align-items: center; gap: 2rem; padding-block: 1.1rem; flex-wrap: wrap; }
.sc-brand { margin-inline-end: auto; color: var(--ink); text-decoration: none; }
.sc-brand strong { display: block; font-family: "Lora", Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", SimSun, serif; font-size: 1.3rem; font-weight: 500; }
.sc-brand span { font-size: 0.68rem; letter-spacing: var(--track-label, 0.2em); text-transform: uppercase; color: var(--ink-mid); }
.sc-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.sc-nav a { color: var(--ink-mid); font-size: 0.88rem; text-decoration: none; }
.sc-nav a:hover { color: var(--accent); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.sc-hero { position: relative; padding-block: clamp(3rem, 8vw, 5.5rem); }
.sc-hero__inner { position: relative; z-index: 2; max-width: 46rem; color: #fff; }
.sc-kicker {
  margin-bottom: 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--track-label, 0.22em);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.sc-title { margin: 0 0 1.1rem; font-size: clamp(2rem, 5vw, 3.3rem); color: #fff; }
.sc-lede { margin: 0; max-width: 44ch; color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.sc-section { padding-block: clamp(3rem, 7vw, 5rem); }
.sc-section--tint { background: var(--paper-2); }
.sc-head { margin: 0 0 0.7rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.sc-sub { margin: 0 0 2rem; max-width: 48ch; color: var(--ink-mid); }
.sc-eyebrow { margin-bottom: 0.8rem; font-size: 0.7rem; font-weight: 700; letter-spacing: var(--track-label, 0.22em); text-transform: uppercase; color: var(--accent); }
.sc-prose { max-width: 40rem; }
.sc-prose p + p { margin-top: 1.05rem; }
.sc-prose p + h2 { margin-top: 2.2rem; }
.sc-prose h2 { margin-bottom: 0.5rem; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }

/* A course list is tabular data. Cards would make the one comparison a
   student is actually making — length against language against cost — harder
   rather than prettier. */
.sc-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.sc-table caption { margin-bottom: 0.8rem; color: var(--ink-mid); font-size: 0.86rem; text-align: start; }
.sc-table th, .sc-table td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.sc-table thead th { border-bottom: 2px solid var(--accent); font-size: 0.72rem; letter-spacing: var(--track-label, 0.12em); text-transform: uppercase; color: var(--ink-mid); }
.sc-table tbody tr:hover { background: var(--paper-2); }
.sc-table__wrap { overflow-x: auto; }

.sc-grid { display: grid; gap: clamp(1.2rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.sc-card { padding: 1.4rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.sc-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.sc-card p { margin: 0; color: var(--ink-mid); font-size: 0.94rem; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.sc-button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  text-decoration: none;
}
.sc-button:hover { background: #163a60; border-color: #163a60; }
.sc-button--light { border-color: #fff; background: #fff; color: var(--accent); }
.sc-button--ghost { background: transparent; color: var(--accent); }
.sc-button--ghost:hover { background: rgba(31, 75, 122, 0.09); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.sc-footer { padding-block: clamp(2.5rem, 6vw, 3.5rem); background: var(--ink); color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.sc-footer__inner { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: space-between; }
.sc-footer__name { color: #fff; font-family: "Lora", Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", SimSun, serif; font-size: 1.1rem; }
.sc-footer a { color: rgba(255, 255, 255, 0.82); }

/* Same floor as everywhere else: 44px of tappable height on the nav. */
.sc-nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ============================================================================
   Scholar — the blocks a Bible college's prospectus needs.
   Institutional blue, tabular, no ornament. Its extra components answer a
   prospective student's remaining questions: when does it start, who teaches
   it, where is it, and who pays.
   ========================================================================== */

.sc-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .sc-open { grid-template-columns: 1fr; } }
.sc-open__art { margin: 0; overflow: hidden; position: relative; }
.sc-open__art img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sc-open__tag {
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  padding: 0.35rem 0.85rem; background: var(--accent); color: #fff;
  font-size: 0.66rem; font-weight: 700; letter-spacing: var(--track-label, 0.1em); text-transform: uppercase;
}
.sc-open h3 { font-size: clamp(1.4rem, 2.8vw, 1.95rem); margin-bottom: 0.5rem; }
.sc-open p { color: var(--ink-mid); }
.sc-steps { display: grid; gap: 0.9rem; margin-block: 1.2rem; counter-reset: sc; }
.sc-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.sc-step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--accent);
  font-size: 0.85rem; font-weight: 700; color: var(--accent);
}
.sc-step b { display: block; font-size: 1rem; }
.sc-step span { font-size: 0.9rem; color: var(--ink-mid); }

.sc-dates { border-top: 1px solid var(--line); }
.sc-dates li {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  gap: clamp(0.9rem, 3vw, 2rem); align-items: baseline;
  padding-block: 1.15rem; border-bottom: 1px solid var(--line);
}
.sc-dates__when { font-size: 0.75rem; font-weight: 700; letter-spacing: var(--track-label, 0.1em); text-transform: uppercase; color: var(--accent); }
.sc-dates h3 { font-size: 1.08rem; margin-bottom: 0.15rem; }
.sc-dates__note { font-size: 0.88rem; color: var(--ink-mid); }
@media (max-width: 700px) { .sc-dates li { grid-template-columns: 1fr; gap: 0.2rem; } }

.sc-staff { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0; border-block: 1px solid var(--line); }
.sc-staff > li { padding: 1.4rem 1.25rem; }
.sc-staff > li + li { border-inline-start: 1px solid var(--line); }
.sc-staff__i {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin-bottom: 0.75rem;
  background: var(--paper-2); font-size: 1.05rem; font-weight: 700; color: var(--accent);
}
.sc-staff h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.sc-staff__role { font-size: 0.68rem; font-weight: 700; letter-spacing: var(--track-label, 0.12em); text-transform: uppercase; color: var(--ink-mid); margin-bottom: 0.4rem; }
.sc-staff p { font-size: 0.89rem; color: var(--ink-mid); }
@media (max-width: 760px) { .sc-staff > li + li { border-inline-start: 0; border-top: 1px solid var(--line); } }

.sc-find { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .sc-find { grid-template-columns: 1fr; } }
.sc-map { border: 1px solid var(--line); background: var(--paper-2); }
.sc-map svg { display: block; width: 100%; height: auto; }
.sc-find dl { display: grid; gap: 1.1rem; margin: 0; }
.sc-find dt { font-size: 0.7rem; font-weight: 700; letter-spacing: var(--track-label, 0.12em); text-transform: uppercase; color: var(--accent); margin-bottom: 0.2rem; }
.sc-find dd { margin: 0; color: var(--ink-mid); }

.sc-sums { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 1.1rem; }
.sc-sum {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 5rem; padding: 0.4rem 1rem;
  border: 1px solid var(--line); color: var(--ink);
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sc-sum:hover, .sc-sum.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

.sc-signup {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 4vw, 3rem); align-items: center;
  padding-bottom: clamp(2rem, 4vw, 3rem); margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .sc-signup { grid-template-columns: 1fr; } }
.sc-signup h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin-bottom: 0.4rem; }
.sc-signup p { color: var(--ink-mid); font-size: 0.92rem; }
.sc-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sc-form input {
  flex: 1 1 13rem; min-height: 46px; padding: 0.5rem 0.9rem;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 0.94rem;
}
.sc-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sc-form__note { flex: 1 0 100%; font-size: 0.75rem; color: var(--ink-mid); }
.sc-footer__cols {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem; align-items: start; font-size: 0.92rem; color: var(--ink-mid);
}
@media (max-width: 900px) { .sc-footer__cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); } }
.sc-footer__cols h3 { font-size: 0.68rem; font-weight: 700; letter-spacing: var(--track-label, 0.14em); text-transform: uppercase; color: var(--accent); margin-bottom: 0.55rem; }
.sc-footer__cols ul { display: grid; gap: 0.4rem; }
.sc-footer__cols li a { color: inherit; text-decoration: none; }
.sc-footer__cols li a:hover { color: var(--accent); }
.sc-social { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.sc-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); color: var(--ink-mid);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.sc-social a:hover { border-color: var(--accent); color: var(--accent); }
.sc-social svg { width: 17px; height: 17px; }
.sc-footer__base {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem); padding-top: 1.2rem;
  border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--ink-mid);
}
.sc-footer__base a { color: inherit; }
.sc-gate { display: inline-flex; width: 30px; height: 34px; color: var(--accent); flex: none; }

/* The wordmark carries a gate now, so it is a row: mark, then the two lines of
   type stacked beside it. Without this the gate sat above the name and pushed
   the whole masthead down. */
.sc-brand { display: flex; align-items: center; gap: 0.7rem; }
.sc-brand .sc-gate { width: 30px; height: 34px; }
.sc-brand strong, .sc-brand span:not(.sc-gate) { display: block; }
.sc-brand__text { display: flex; flex-direction: column; }
.sc-footer__name { display: flex; align-items: center; gap: 0.55rem; }

/* The footer is ink-dark. The new columns inherited the light-page text
   colours and measured 1.84:1 — caught by visual-check.py, which is the whole
   reason contrast fails the run rather than printing. */
.sc-footer__cols { color: rgba(255, 255, 255, 0.82); }
.sc-footer__cols h3 { color: #cfe0f2; }
.sc-footer__cols li a { color: rgba(255, 255, 255, 0.86); }
.sc-footer__cols li a:hover { color: #fff; }
.sc-signup p, .sc-form__note { color: rgba(255, 255, 255, 0.78); }
.sc-signup { border-bottom-color: rgba(255, 255, 255, 0.2); }
.sc-form input { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; }
.sc-form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.sc-social a { border-color: rgba(255, 255, 255, 0.28); color: rgba(255, 255, 255, 0.86); }
.sc-social a:hover { border-color: #fff; color: #fff; }
.sc-footer__base { border-top-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.78); }
.sc-gate { color: #cfe0f2; }

/* ── Lectures ─────────────────────────────────────────────────────────────
   Scholar is a prospectus, so the series leads and sits in its own column —
   a student subscribes to a lecture series, not to a single talk. */
.sc-lectures { margin: 0; }
.sc-lecture {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0 1.6rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(26, 32, 44, 0.12);
}
@media (max-width: 44rem) { .sc-lecture { grid-template-columns: 1fr; gap: 0.3rem; } }
.sc-lecture__series {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  opacity: 0.6;
  padding-top: 0.3rem;
}
.sc-lecture__body { margin: 0; }
.sc-lecture__body h3 { margin: 0 0 0.3rem; font-size: 1.2rem; line-height: 1.35; }
.sc-lecture__ref { margin: 0; font-size: 0.87rem; opacity: 0.72; }
