/* ─────────────────────────────────────────
   TEACHING (Nov 2026): /watch book index, search, book view, reading plan,
   homepage teaching note, Beliefs "How we teach".
   Sections stay transparent; separation comes from glass plaques.
───────────────────────────────────────── */

/* Book index plaque (/watch) */
.teach-index { padding: 8px 24px 24px; background: transparent; }
.teach-index-plaque {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  box-shadow: var(--glass-highlight), 0 8px 28px rgba(4,9,15,0.25);
  padding: 44px 48px 40px;
}
.teach-index-title,
.teach-plan-title,
.teach-today-title,
.teach-how-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  text-wrap: balance;
}
.teach-index-title em,
.teach-plan-title em,
.teach-today-title em,
.teach-how-title em { font-style: italic; color: var(--teal); }
.teach-index-text {
  color: rgba(245,242,238,0.82);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 560px;
}

.teach-now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-top: 18px;
  color: rgba(245,242,238,0.82);
  font-size: 0.95rem;
  line-height: 1.6;
}
.teach-now a { color: var(--teal); }
.teach-now a:hover { color: var(--gold-light); }
.teach-now-book { color: rgba(245,242,238,0.92); font-weight: 600; }
.teach-sep { color: rgba(245,242,238,0.7); }

.teach-testaments {
  display: grid;
  grid-template-columns: 39fr 27fr;
  gap: 32px 48px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.teach-testament-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(245,242,238,0.92);
  margin-bottom: 14px;
}
.teach-books {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
}
.teach-book { font-size: 0.85rem; line-height: 1; }
.teach-book > .teach-book-name {
  display: inline-block;
  padding: 8px 8px;
  color: var(--muted);
}
.teach-book.has-sermons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(255,255,255,0.05);
  color: rgba(245,242,238,0.92);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.teach-book.has-sermons a:hover { border-color: var(--teal); color: var(--white); }
.teach-book-count { color: var(--teal); font-weight: 600; font-variant-numeric: tabular-nums; }
.teach-book.is-current a {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 16%, transparent);
}
.teach-book-now { color: var(--gold-light); font-size: 0.78rem; font-weight: 500; }
.teach-book.is-current > .teach-book-name { color: var(--teal); }
.teach-topics {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.teach-book.is-more a { border-style: dashed; }
.teach-beta {
  margin-top: 24px;
  color: rgba(245,242,238,0.7);
  font-size: 0.88rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.teach-beta a { color: var(--teal); }
.teach-beta a:hover { color: var(--gold-light); }
.teach-beta-tag {
  /* Yellow warning badge (Brian: "like a yellow warning") */
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
  padding: 3px 10px 3px 8px;
  border-radius: 6px;
  background: #f5c518;
  color: #1b1500;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
  line-height: 1.2;
}
.teach-beta-tag svg { flex: none; }

/* Search + grid (/watch) */
.teach-archive { scroll-margin-top: 90px; }
.teach-search { margin-top: 16px; }
.teach-search-form { display: flex; gap: 10px; max-width: 560px; }
.teach-search-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 13px 20px;
}
.teach-search-input::placeholder { color: rgba(245,242,238,0.7); }
.teach-search-input:focus { border-color: var(--teal); }
.teach-search-input::-webkit-search-cancel-button { filter: invert(1) grayscale(1); opacity: 0.6; }
.teach-search-btn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--teal);
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  cursor: pointer;
  transition: background 0.2s;
}
.teach-search-btn:hover { background: var(--teal-dark); }
.teach-search-count {
  margin-top: 12px;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: rgba(245,242,238,0.7);
}
.teach-search-count a { margin-left: 6px; }
.teach-grid { margin-top: 20px; }
.teach-card { display: block; text-decoration: none; color: inherit; }
.teach-card[hidden] { display: none; }
.teach-card-ref { color: var(--teal); }
.teach-card-passage {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 8px;
}
.teach-empty {
  text-align: center;
  color: rgba(245,242,238,0.82);
  margin: 40px auto 0;
  max-width: 520px;
}
.teach-empty[hidden] { display: none; }

.teach-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.teach-pager[hidden] { display: none; }
.teach-pager a,
.teach-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  color: rgba(245,242,238,0.92);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.teach-pager a:hover { border-color: var(--teal); color: var(--teal); }
.teach-pager .is-current { background: var(--teal); border-color: var(--teal); color: var(--white); font-weight: 600; }

/* Book view (/watch/?book=luke) */
.teach-book-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.teach-book-links a,
.teach-how-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-line);
  color: rgba(245,242,238,0.92);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.teach-book-links a:hover,
.teach-how-links a:hover { border-color: var(--teal); color: var(--teal); }

/* Reading plan page */
.teach-plan { padding: 56px 24px 96px; background: transparent; }
.teach-today {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  box-shadow: var(--glass-highlight), 0 8px 28px rgba(4,9,15,0.25);
  padding: 40px 44px 36px;
  max-width: 820px;
}
.teach-today-when { margin-top: 10px; color: rgba(245,242,238,0.82); }
.teach-today-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.teach-today-study { margin-top: 22px; font-size: 0.92rem; color: rgba(245,242,238,0.7); line-height: 1.6; }
.teach-plan-title { margin-top: 72px; }
.teach-plan-text { margin-top: 10px; color: rgba(245,242,238,0.7); font-size: 0.92rem; }
.teach-days {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.teach-day {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px 14px;
  background: rgba(255,255,255,0.03);
}
.teach-day-date { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.teach-day-reads a { color: rgba(245,242,238,0.92); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.teach-day-reads a:hover { color: var(--teal); }
.teach-day-reads span { color: rgba(245,242,238,0.7); }
.teach-day.is-past .teach-day-reads a { color: rgba(245,242,238,0.7); font-weight: 500; }
.teach-day.is-today {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 14%, transparent);
}
.teach-day.is-today .teach-day-date { color: var(--teal); font-weight: 600; }

/* Homepage: one line under the Latest Sermon card */
.teach-note { padding: 0 24px 16px; text-align: center; }
.teach-note p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(245,242,238,0.82);
  font-size: 0.98rem;
  line-height: 1.7;
  text-wrap: balance;
}
.teach-note a { color: var(--teal); }
.teach-note a:hover { color: var(--gold-light); }
.teach-note-more { white-space: nowrap; margin-left: 4px; }
.teach-note-more::after { content: ' \2192'; }

/* Beliefs: How we teach */
.teach-how { padding: 16px 24px 72px; background: transparent; scroll-margin-top: 90px; }
.teach-how-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.teach-how-inner p { color: rgba(245,242,238,0.82); line-height: 1.75; margin-top: 16px; text-wrap: pretty; }
.teach-how-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px !important; }

@media (max-width: 900px) {
  .teach-testaments { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .teach-index { padding: 0 16px 16px; }
  .teach-index-plaque { padding: 30px 20px 28px; }
  .teach-now { font-size: 0.9rem; }
  .teach-sep { display: none; }
  .teach-now > * { flex-basis: 100%; }
  .teach-search-btn { padding: 0 18px; }
  .teach-today { padding: 28px 20px 26px; }
  .teach-plan { padding: 40px 16px 72px; }
  .teach-plan-title { margin-top: 56px; }
  .teach-days { grid-template-columns: repeat(2, 1fr); }
  .teach-note { padding: 0 20px 44px; }
}

/* /watch: daily reading card beside the live panel (feature-online.css) */
.watch-reading {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-highlight), 0 8px 28px rgba(4,9,15,0.25);
}
.watch-reading-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.watch-reading-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  text-wrap: balance;
}
.watch-reading-title em { font-style: italic; color: var(--teal); }
.watch-reading-when { margin-top: 10px; color: rgba(245,242,238,0.82); }
.watch-reading-text { margin-top: 14px; color: rgba(245,242,238,0.7); font-size: 0.92rem; line-height: 1.65; text-wrap: pretty; }
.watch-reading-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 24px; }
@media (max-width: 640px) {
  .watch-reading { padding: 24px 20px; }
}
