/* CCVB Teachings, Classic look (Subsplash's web library, 2026-11-20). Scoped to #ccvb-teachings. */
#ccvb-teachings {
  --cct-ink: #111; --cct-muted: #808080; --cct-line: #e6e6e6; --cct-soft: #f2f2f2; --cct-tile: #c1c1c1;
  color: var(--cct-ink); font: inherit; line-height: 1.45; max-width: 1200px; margin: 0 auto;
}
#ccvb-teachings *, #ccvb-teachings *::before, #ccvb-teachings *::after { box-sizing: border-box; }
#ccvb-teachings a { color: inherit; text-decoration: none; }
#ccvb-teachings h2, #ccvb-teachings h3, #ccvb-teachings h4, #ccvb-teachings p { margin: 0; }

/* tabs and search, as Subsplash's bar */
#ccvb-teachings .cct-top { display: flex; align-items: center; gap: 24px; margin: 0 0 22px; flex-wrap: wrap; }
#ccvb-teachings .cct-tabs { display: flex; flex: 1 1 420px; border-bottom: 1px solid var(--cct-line); }
#ccvb-teachings .cct-tabs a {
  flex: 1; text-align: center; padding: 8px 4px 9px; font-size: 13px; color: var(--cct-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
#ccvb-teachings .cct-tabs a.on { color: var(--cct-ink); font-weight: 600; border-bottom-color: var(--cct-ink); }
#ccvb-teachings .cct-search { position: relative; flex: 0 1 300px; }
#ccvb-teachings .cct-search input {
  width: 100%; padding: 8px 12px 8px 34px; border: 0; border-radius: 6px; background: var(--cct-soft); font: inherit; font-size: 14px; color: inherit;
}
#ccvb-teachings .cct-glass {
  position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; margin-top: -7px; border: 2px solid var(--cct-muted); border-radius: 50%;
}
#ccvb-teachings .cct-glass::after {
  content: ''; position: absolute; width: 2px; height: 6px; background: var(--cct-muted); right: -4px; bottom: -5px; transform: rotate(-45deg);
}

/* pictures */
#ccvb-teachings .cct-pic { position: relative; padding-top: 56.25%; background: var(--cct-tile); border-radius: 3px; overflow: hidden; }
#ccvb-teachings .cct-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
#ccvb-teachings .cct-mark { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.35) 0 18%, transparent 19%); }

/* tiles: lists of lists and series */
#ccvb-teachings .cct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
#ccvb-teachings .cct-tile h3 { font-size: 15px; font-weight: 600; margin-top: 8px; }
#ccvb-teachings .cct-sub { color: var(--cct-muted); font-size: 13px; }
#ccvb-teachings .cct-tile:hover h3 { text-decoration: underline; }

/* rows: Teachings */
#ccvb-teachings .cct-rows { display: flex; flex-direction: column; }
#ccvb-teachings .cct-row { display: flex; gap: 22px; padding: 16px 0; border-bottom: 1px solid var(--cct-line); align-items: flex-start; }
#ccvb-teachings .cct-row-pic { position: relative; flex: 0 0 230px; }
#ccvb-teachings .cct-play {
  position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(0,0,0,.75);
}
#ccvb-teachings .cct-play::after {
  content: ''; position: absolute; left: 15px; top: 11px; border-style: solid; border-width: 8px 0 8px 12px; border-color: transparent transparent transparent #fff;
}
#ccvb-teachings .cct-row-text { min-width: 0; padding-top: 4px; }
#ccvb-teachings .cct-row h3 { font-size: 16px; font-weight: 600; }
#ccvb-teachings .cct-row:hover h3 { text-decoration: underline; }
#ccvb-teachings .cct-meta { color: var(--cct-muted); font-size: 12px; margin-top: 3px; }
#ccvb-teachings .cct-meta a { text-decoration: underline; }
#ccvb-teachings .cct-sum {
  font-size: 13px; margin-top: 8px; color: #444; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* headings, series banner, Teaching page */
#ccvb-teachings .cct-h { font-size: 22px; font-weight: 600; margin: 4px 0 18px; }
#ccvb-teachings .cct-banner { margin-bottom: 22px; }
#ccvb-teachings .cct-head { text-align: center; margin: 0 0 18px; }
#ccvb-teachings .cct-head h2 { font-size: 26px; font-weight: 600; }
#ccvb-teachings .cct-head .cct-sub { font-size: 16px; }
#ccvb-teachings .cct-player { position: relative; border-radius: 4px; overflow: hidden; background: #222; }
#ccvb-teachings .cct-player.video { padding-top: 56.25%; }
#ccvb-teachings .cct-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#ccvb-teachings .cct-audio audio { display: block; width: 100%; background: #f1f3f4; }
#ccvb-teachings .cct-audio .cct-pic { border-radius: 0; }
#ccvb-teachings .cct-none { padding: 60px 20px; text-align: center; color: #ddd; }
#ccvb-teachings .cct-item { margin: 18px 0 8px; }
#ccvb-teachings .cct-item h2 { font-size: 26px; font-weight: 600; }
#ccvb-teachings .cct-item .cct-sub { font-size: 17px; }
#ccvb-teachings .cct-item .cct-meta { font-size: 13px; margin-top: 10px; }
#ccvb-teachings .cct-summary { margin-top: 14px; font-size: 15px; white-space: pre-line; }
#ccvb-teachings .cct-related { margin: 34px 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cct-muted); font-weight: 600; }
#ccvb-teachings .cct-related a { color: var(--cct-ink); }

/* Topic, Speaker, Scripture lists */
#ccvb-teachings .cct-tags { display: flex; flex-direction: column; }
#ccvb-teachings .cct-tag { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--cct-line); font-size: 14px; }
#ccvb-teachings .cct-tag:hover .cct-tag-name { text-decoration: underline; }
#ccvb-teachings .cct-tag-name { flex: 1; }
#ccvb-teachings .cct-initials {
  flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--cct-soft); color: #555; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
#ccvb-teachings .cct-count { background: var(--cct-soft); border-radius: 999px; padding: 1px 9px; font-size: 12px; color: #555; }
#ccvb-teachings .cct-chev { width: 8px; height: 8px; border-right: 1.5px solid #999; border-top: 1.5px solid #999; transform: rotate(45deg); margin-right: 4px; }

/* pages */
#ccvb-teachings .cct-pager { display: flex; justify-content: center; gap: 6px; margin: 26px 0 8px; flex-wrap: wrap; }
#ccvb-teachings .cct-page { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--cct-muted); }
#ccvb-teachings .cct-page.on { background: var(--cct-ink); color: #fff; }
#ccvb-teachings a.cct-page:hover { background: var(--cct-soft); color: var(--cct-ink); }
#ccvb-teachings .cct-empty { color: var(--cct-muted); padding: 30px 0; }
#ccvb-teachings .cct-empty a { text-decoration: underline; color: var(--cct-ink); }

@media (max-width: 900px) { #ccvb-teachings .cct-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  #ccvb-teachings .cct-grid { grid-template-columns: 1fr; gap: 20px; }
  #ccvb-teachings .cct-search { flex-basis: 100%; }
  #ccvb-teachings .cct-row { gap: 14px; }
  #ccvb-teachings .cct-row-pic { flex-basis: 130px; }
  #ccvb-teachings .cct-sum { display: none; }
}
