/**
 * Twice Born Bible School styles
 */

.tbs-app {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 1.5rem 1rem 2rem;
  font-family: Montserrat, system-ui, sans-serif;
  color: #2c2c2c;
}

.tbs-hero {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e8dfd0;
}

.tbs-hero__title {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: #1a2744;
  margin: 0 0 0.5rem;
}

.tbs-hero__tagline {
  color: #5c5348;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
}

.tbs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
}

.tbs-hero__note {
  flex: 0 0 100%;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #6b6358;
}

/* Hub discovery hierarchy (Programs / Courses / Pricing) */
.tbs-hub-band {
  margin: 2rem 0;
  padding: 1.35rem 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #e8dfd0;
  border-radius: 14px;
  border-top: 3px solid #c9a227;
}

.tbs-hub-band h2,
.tbs-hub-band__title {
  font-family: Cinzel, Georgia, serif;
  color: #1a2744;
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.tbs-hub-band p,
.tbs-hub-band__lead {
  color: #5c5348;
  margin: 0 0 1rem;
  line-height: 1.55;
  max-width: 56ch;
}

.tbs-catalog-slice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1.75rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(201, 162, 39, 0.45);
}

.tbs-objectives {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.45rem 1rem;
}

.tbs-objectives li {
  position: relative;
  padding-left: 1.4rem;
  color: #5c5348;
  line-height: 1.5;
  font-size: 0.92rem;
}

.tbs-objectives li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #c9a227;
  box-shadow: inset 0 0 0 2px #1a2744;
}

.tbs-mod {
  background: #fff;
  border: 1px solid #e8dfd0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.65rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tbs-mod:hover {
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 4px 14px rgba(26, 39, 68, 0.06);
}

.tbs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #faf7f2;
  border: 1px solid #e8dfd0;
  border-radius: 12px;
}

.tbs-toolbar__search {
  flex: 1 1 220px;
  min-width: min(100%, 220px);
}

.tbs-course-search {
  margin: 0 0 1.25rem;
}

.tbs-course-search__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b4513;
  margin-bottom: 0.35rem;
}

.tbs-course-search__row {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.tbs-course-search__input {
  flex: 1;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid #d4c4a8;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: #1a2744;
}

.tbs-course-search__input:focus {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
  border-color: #c9a227;
}

.tbs-course-search__clear {
  min-width: 2.25rem;
  padding: 0.35rem 0.55rem;
  line-height: 1;
  font-size: 1.25rem;
}

.tbs-course-search__hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #7a7066;
}

.tbs-course-search__results {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e8dfd0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(44, 44, 44, 0.06);
}

.tbs-course-search__count {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: #5c5348;
}

.tbs-course-search__hits {
  display: grid;
  gap: 0.35rem;
  max-height: 320px;
  overflow-y: auto;
}

.tbs-course-search__hit {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.tbs-course-search__hit:hover,
.tbs-course-search__hit:focus {
  background: #faf7f2;
  border-color: #e8dfd0;
}

.tbs-course-search__hit-title {
  font-weight: 600;
  color: #1a2744;
  font-size: 0.92rem;
}

.tbs-course-search__hit-code {
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  color: #8b4513;
  font-weight: 600;
}

.tbs-course-search__hit-cat {
  font-size: 0.72rem;
  color: #7a7066;
}

.tbs-course-search__empty,
.tbs-course-search__more {
  margin: 0;
  font-size: 0.85rem;
  color: #5c5348;
}

.tbs-course-search__more {
  margin-top: 0.65rem;
}

.tbs-search-count {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #5c5348;
  text-align: center;
}

.tbs-catalog-views {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.tbs-catalog-views__tab {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid #c9a227;
  border-radius: 4px;
  background: #faf7f2;
  color: #1a2744;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.tbs-catalog-views__tab.is-active,
.tbs-catalog-views__tab:hover {
  background: #1a2744;
  color: #fff;
  border-color: #1a2744;
}

.tbs-catalog-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: -0.5rem 0 1.25rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(135deg, #faf7f2 0%, #f5f0e6 100%);
  border: 1px solid #c9a227;
  border-radius: 10px;
}

.tbs-catalog-filter__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a2744;
  white-space: nowrap;
}

.tbs-catalog-filter__select {
  flex: 1 1 180px;
  min-width: min(100%, 180px);
  max-width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid #1a2744;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a2744' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  background-size: 12px 8px;
  appearance: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a2744;
  cursor: pointer;
}

.tbs-catalog-filter__select:focus {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
  border-color: #c9a227;
}

.tbs-catalog-slice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1.75rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(201, 162, 39, 0.45);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.05rem;
  color: #1a2744;
  text-align: left;
}

.tbs-catalog-slice-head span {
  color: #5c5348;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.tbs-catalog-group {
  margin-bottom: 2rem;
}

.tbs-catalog-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #c9a227;
}

.tbs-catalog-group__title {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.15rem;
  color: #1a2744;
}

.tbs-catalog-group__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #8b4513;
}

.tbs-card__ribbon {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b4513;
}

@media (max-width: 782px) {
  .tbs-catalog-views__tab {
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
  }

  .tbs-catalog-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .tbs-catalog-filter__select {
    width: 100%;
    font-size: 1rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}

@media (max-width: 782px) {
  .tbs-toolbar__search {
    flex-basis: 100%;
  }

  .tbs-course-search__hits {
    max-height: 240px;
  }
}

.tbs-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.tbs-select {
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #d4c4a8;
}

.tbs-auth__warn,
.tbs-auth__ok {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.tbs-auth__warn {
  background: #fff8e6;
  border: 1px solid #e2c066;
}

.tbs-auth__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.65rem 0 0;
}

.tbs-auth__ok {
  background: #f5f8f4;
  border: 1px solid #7a9b76;
}

.tbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
  overflow: visible;
  align-items: stretch;
}

.tbs-catalog-group,
.tbs-catalog-group__body,
#tbs-app,
.tbs-results {
  overflow: visible;
}

.tbs-card__thumb {
  width: calc(100% + 2.2rem);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  margin: -1.1rem -1.1rem 0.5rem;
  display: block;
  background: linear-gradient(145deg, #1a2744 0%, #2d4268 100%);
}

.tbs-card {
  background: #fff;
  border: 1px solid #e8dfd0;
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1.25rem;
  box-shadow: 0 4px 14px rgba(44, 44, 44, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  /* visible so Open Course CTA is never clipped on narrow cards */
  overflow: visible;
  min-height: 0;
}

.tbs-card:hover {
  box-shadow: 0 10px 28px rgba(26, 39, 68, 0.12);
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.5);
}

.tbs-card__cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a2744;
  font-weight: 600;
  display: inline-block;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}

.tbs-card__title {
  font-family: Cinzel, Georgia, serif;
  font-size: 1.1rem;
  color: #1a2744;
  margin: 0;
  line-height: 1.35;
}

.tbs-card__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #5c5348;
  flex: 1 1 auto;
  margin: 0;
  max-height: none;
  display: block;
  overflow: visible;
  white-space: pre-line;
}

.tbs-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.78rem;
  color: #6b6358;
  align-items: center;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(26, 39, 68, 0.08);
  margin-top: 0.15rem;
}

.tbs-card__grades {
  font-size: 0.78rem;
  color: #7a7066;
  margin: 0;
}

.tbs-card .tbs-btn--primary {
  margin-top: auto;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  width: 100%;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.tbs-btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tbs-btn--primary {
  background: #1a2744;
  color: #fff;
}

.tbs-btn--primary:hover {
  background: #c9a227;
  color: #1a2744;
  transform: translateY(-1px);
}

.tbs-btn--secondary {
  background: #1a2744;
  color: #faf7f2;
  margin: 0.25rem 0.25rem 0.25rem 0;
}

.tbs-btn--ghost {
  background: transparent;
  color: #1a2744;
  border: 1px solid #d4c4a8;
}

.tbs-course-head h2 {
  font-family: Cinzel, Georgia, serif;
  color: #1a2744;
}

.tbs-syllabus ul {
  padding-left: 1.25rem;
  line-height: 1.6;
}

.tbs-mod {
  background: #fff;
  border: 1px solid #e8dfd0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.65rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tbs-mod:hover {
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 4px 14px rgba(26, 39, 68, 0.06);
}

.tbs-mod--locked {
  opacity: 0.75;
}

.tbs-mod h4 {
  margin: 0 0 0.5rem;
  font-family: Cinzel, Georgia, serif;
  color: #1a2744;
}

.tbs-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-family: Montserrat, sans-serif;
  background: #e2c066;
  color: #1a2744;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
}

.tbs-badge--done {
  background: #7a9b76;
  color: #fff;
}

.tbs-badge--tbm-aa {
  background: #1a2744;
  color: #e2c066;
  border: 1px solid #e2c066;
}

.tbs-badge--modality {
  background: #2d4a3e;
  color: #b8e0c8;
  border: 1px solid #6aab8a;
}

.tbs-notice {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #f5f0e8;
  font-size: 0.88rem;
}

.tbs-notice--ok {
  background: #f0f7ef;
  border: 1px solid #7a9b76;
}

.tbs-lock-msg {
  color: #7a7066;
  font-size: 0.88rem;
  margin: 0;
}

.tbs-quiz fieldset {
  border: 1px solid #e8dfd0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.tbs-quiz label {
  display: block;
  margin: 0.35rem 0;
  cursor: pointer;
}

.tbs-chat {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.75rem;
  background: #faf7f2;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.tbs-chat__msg {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.tbs-chat__msg--student {
  background: #fff;
  border: 1px solid #e8dfd0;
  align-self: flex-end;
  max-width: 85%;
}

.tbs-chat__msg--instructor {
  background: #f5f8f4;
  border-left: 3px solid #7a9b76;
  max-width: 92%;
}

.tbs-chat__who {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8b4513;
  margin-bottom: 0.25rem;
}

.tbs-chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tbs-chat-form textarea {
  border: 1px solid #d4c4a8;
  border-radius: 10px;
  padding: 0.65rem;
  font-family: inherit;
}

.tbs-cert {
  text-align: center;
}

.tbs-cert svg {
  max-width: 100%;
  height: auto;
}

.tbs-cert__id {
  font-family: monospace;
  color: #7a7066;
}

.tbs-legal {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: #7a7066;
  text-align: center;
}

.tbs-empty {
  text-align: center;
  color: #7a7066;
  padding: 2rem;
}

/* Embedded AI instructor (Tutor lesson block) */
.tbs-ai-widget {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #e8dfd0;
  border-radius: 8px;
  background: #faf7f2;
}

.tbs-ai-widget__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tbs-ai-widget__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.tbs-instructor-dashboard__roster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tbs-instructor-card {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  background: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid #e8dfd0;
}

.tbs-instructor-card.is-primary {
  border-color: #c9a227;
  box-shadow: 0 0 0 1px #c9a227;
}

.tbs-instructor-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.tbs-instructor-dashboard__badge,
.tbs-alerts-widget__badge {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}

.tbs-alerts-widget {
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e8dfd0;
  border-radius: 8px;
  border-left: 4px solid #c9a227;
}

.tbs-alerts-widget__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tbs-alerts-widget__head h3 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  color: #1a2744;
  font-size: 1.1rem;
}

.tbs-alerts-widget__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tbs-alerts-widget__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.35rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.tbs-alerts-widget__item--info { background: #f0f4f8; }
.tbs-alerts-widget__item--warning { background: #fff8e6; }
.tbs-alerts-widget__item--success { background: #f0f7ef; }

.tbs-alerts-widget__dismiss button {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #7a7066;
}

.tbs-alerts-widget__note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #7a7066;
}

.tbs-daily-guide {
  position: fixed;
  inset: 0;
  background: rgba(26, 39, 68, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.tbs-daily-guide__modal {
  background: #faf7f2;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.tbs-daily-guide__title {
  font-family: Cinzel, Georgia, serif;
  color: #1a2744;
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.tbs-daily-guide__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.tbs-daily-guide__item {
  margin-bottom: 0.5rem;
}

.tbs-daily-guide__item a {
  display: block;
  text-align: center;
}

.tbs-daily-guide__actions {
  text-align: center;
}


.tbs-ai-widget__sub {
  display: block;
  font-size: 0.85rem;
  color: #7a7066;
}

.tbs-ai-widget__log {
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #e8dfd0;
  border-radius: 6px;
}

.tbs-ai-widget__msg {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.tbs-ai-widget__msg--user {
  color: #1a2744;
  font-weight: 600;
}

.tbs-ai-widget__msg--bot {
  color: #2c2c2c;
}

.tbs-ai-widget__form {
  display: flex;
  gap: 0.5rem;
}

.tbs-ai-widget__input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #c9b99a;
  border-radius: 6px;
}

.tbs-ai-widget__note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #7a7066;
}

@media print {
  .tbs-toolbar,
  .tbs-auth,
  .tbs-legal,
  .tbs-btn {
    display: none !important;
  }
}

/* Post-course survey */
.tbs-survey {
  max-width: 640px;
  margin: 1.5rem auto;
  padding: 1.25rem;
  background: #faf7f2;
  border: 1px solid #e8dfd0;
  border-radius: 12px;
}

.tbs-survey__title {
  font-family: Cinzel, Georgia, serif;
  color: #1a2744;
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.tbs-survey__subtitle {
  color: #5c5348;
  margin: 0 0 1rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.tbs-survey__row {
  margin-bottom: 1rem;
}

.tbs-survey__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #1a2744;
}

.tbs-survey__stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tbs-survey__star {
  min-width: 2.25rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid #c9b99a;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}

.tbs-survey__star.is-on {
  background: #1a2744;
  color: #fff;
  border-color: #1a2744;
}

.tbs-survey__textarea,
.tbs-survey__select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #c9b99a;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}

.tbs-survey__nps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tbs-survey__nps-btn {
  min-width: 2rem;
  padding: 0.35rem;
  border: 1px solid #c9b99a;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
}

.tbs-survey__nps-btn.is-on {
  background: #8b4513;
  color: #fff;
  border-color: #8b4513;
}

.tbs-survey__hint {
  font-size: 0.78rem;
  color: #7a7066;
  margin: 0.35rem 0 0;
}

.tbs-survey__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tbs-survey__thanks {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.tbs-survey__thanks h2 {
  color: #1a2744;
  font-family: Cinzel, Georgia, serif;
}

.tbs-survey__muted {
  color: #5c5348;
  text-align: center;
  padding: 1rem;
}

.tbs-agent-tabs {
  margin: 1rem 0;
  border-bottom: 1px solid #ccd0d4;
}

.tbs-agent-tabs a {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tbs-agent-tabs a.is-active {
  border-bottom-color: #2271b1;
  font-weight: 600;
}

.tbs-survey-insights table {
  margin-top: 0.5rem;
}

.tbs-flagged {
  color: #b32d2e;
  font-weight: 600;
}

/* Mobile: drop duplicate WP hero when SPA shell is present (tb-mobile-blank-viewport-2026-06-30) */
@media (max-width: 782px) {
	body.tbs-bible-school-shell main > .ext-hero-section,
	body.tbs-bible-school-shell main > .wp-block-group.ext-hero-section {
		display: none !important;
	}

	body.tbs-bible-school-shell #tbs-app {
		margin-top: 0;
		padding-top: 0.75rem;
	}

	body.tbs-bible-school-shell .wp-block-post-content,
	body.tbs-bible-school-shell .entry-content {
		min-height: 0 !important;
		padding-top: 0 !important;
	}
}

/* Mobile course layout helpers (tb-mobile-blank-viewport-2026-06-30) */
@media (max-width: 782px) {
	body.single-courses .tutor-course-details-title {
		margin-top: 0.5rem !important;
	}

	body.single-courses .tbs-course-textbook {
		margin-top: 0.75rem;
	}
}

/* Worship Hymnal */
.tbs-hymnal-app {
	max-width: 960px;
	margin: 0 auto 3rem;
	padding: 1.5rem 1rem 2rem;
}

.tbs-worship-link {
	text-align: center;
	margin: -0.5rem 0 1.25rem;
}

.tbs-hymnal-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
	margin-bottom: 1.25rem;
	padding: 0.75rem 1rem;
	background: #faf7f2;
	border: 1px solid #e8dfd0;
	border-radius: 12px;
}

.tbs-hymnal-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

.tbs-hymnal-card {
	padding: 1rem 1.1rem;
	background: #fff;
	border: 1px solid #e8dfd0;
	border-radius: 12px;
	cursor: pointer;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tbs-hymnal-card:hover {
	border-color: #c4a574;
	box-shadow: 0 4px 16px rgba(26, 39, 68, 0.08);
}

.tbs-hymnal-card__title {
	font-family: Cinzel, Georgia, serif;
	font-size: 1.05rem;
	margin: 0 0 0.35rem;
	color: #1a2744;
}

.tbs-hymnal-card__meta,
.tbs-hymnal-card__scripture {
	font-size: 0.88rem;
	color: #5c5348;
	margin: 0 0 0.35rem;
	line-height: 1.5;
}

.tbs-hymnal-card__cat {
	display: inline-block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8b4513;
	background: #faf7f2;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
}

.tbs-hymnal-detail {
	margin-top: 1rem;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid #e8dfd0;
	border-radius: 12px;
}

.tbs-hymnal-detail__title {
	font-family: Cinzel, Georgia, serif;
	color: #1a2744;
	margin: 0.75rem 0 0.35rem;
}

.tbs-hymnal-detail__meta,
.tbs-hymnal-detail__scripture {
	color: #5c5348;
	font-size: 0.92rem;
	line-height: 1.55;
}

.tbs-hymnal-audio {
	width: 100%;
	margin: 1rem 0 0.35rem;
}

.tbs-hymnal-audio-src {
	font-size: 0.82rem;
	color: #5c5348;
}

.tbs-hymnal-lyrics {
	margin-top: 1.25rem;
	line-height: 1.75;
	font-size: 1rem;
	color: #2c2c2c;
	white-space: pre-wrap;
}

.tbs-hymnal-disputed {
	margin: 0.75rem 0;
	padding: 0.65rem 0.85rem;
	background: #fff8e6;
	border-left: 3px solid #c4a574;
	font-size: 0.88rem;
}

.tbs-hymnal-back {
	margin-bottom: 0.5rem;
}

.tbs-worship-styles,
.tbs-worship-radio {
	margin: 0 0 1.75rem;
	padding: 1.25rem 1rem;
	background: #f7f4ef;
	border: 1px solid #e5ddd0;
	border-radius: 8px;
}

.tbs-section-title {
	font-family: Cinzel, Georgia, serif;
	color: #1a2744;
	margin: 0 0 0.4rem;
	font-size: 1.35rem;
}

.tbs-section-lead {
	margin: 0 0 1rem;
	color: #5c5348;
	font-size: 0.95rem;
	line-height: 1.5;
}

.tbs-worship-styles__grid,
.tbs-worship-radio__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.85rem;
}

.tbs-worship-styles__card,
.tbs-worship-radio__card {
	background: #fff;
	border: 1px solid #e0d6c8;
	border-radius: 8px;
	padding: 0.9rem 1rem;
}

.tbs-worship-styles__card h3,
.tbs-worship-radio__card h3 {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	color: #1a2744;
}

.tbs-worship-styles__card p,
.tbs-worship-radio__card p {
	margin: 0 0 0.75rem;
	font-size: 0.88rem;
	color: #5c5348;
	line-height: 1.45;
}

.tbs-worship-styles__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

/* Placement & Aptitude Assessments */
.tbs-assess {
	max-width: 960px;
	margin: 0 auto 2rem;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	color: #2c2c2c;
}

.tbs-assess__hero h2,
.tbs-assess__intro h2,
.tbs-assess__results h2 {
	font-family: Cinzel, Georgia, serif;
	color: #1a2744;
	margin: 0 0 0.5rem;
}

.tbs-assess__lead,
.tbs-assess__subtitle {
	color: #5c5348;
	line-height: 1.6;
}

.tbs-assess__section {
	margin: 2rem 0;
}

.tbs-assess__section h3 {
	font-family: Cinzel, Georgia, serif;
	color: #8b4513;
	border-bottom: 1px solid #e8dfd0;
	padding-bottom: 0.35rem;
}

.tbs-assess__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

.tbs-assess__card {
	background: #fff;
	border: 1px solid #e8dfd0;
	border-radius: 12px;
	padding: 1.1rem;
	box-shadow: 0 2px 8px rgba(26, 39, 68, 0.06);
}

.tbs-assess__type {
	display: inline-block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8b4513;
	margin-bottom: 0.35rem;
}

.tbs-assess__meta {
	font-size: 0.88rem;
	color: #5c5348;
}

.tbs-assess__disclaimer,
.tbs-assess__legal {
	margin-top: 1.25rem;
	padding: 0.85rem 1rem;
	background: #fff8e6;
	border-left: 3px solid #c4a574;
	font-size: 0.9rem;
	line-height: 1.55;
}

.tbs-assess__instructions {
	background: #faf7f2;
	padding: 1rem;
	border-radius: 8px;
	margin: 1rem 0;
}

.tbs-assess__auth-hint {
	font-size: 0.92rem;
	color: #5c5348;
}

.tbs-assess__progress {
	font-size: 0.9rem;
	color: #5c5348;
	margin-bottom: 0.75rem;
}

.tbs-assess__question {
	border: none;
	margin: 0;
	padding: 0;
}

.tbs-assess__question legend {
	font-weight: 600;
	font-size: 1.05rem;
	margin-bottom: 0.75rem;
	color: #1a2744;
}

.tbs-assess__option {
	display: block;
	margin: 0.45rem 0;
	padding: 0.55rem 0.75rem;
	background: #faf7f2;
	border-radius: 8px;
	cursor: pointer;
}

.tbs-assess__option:hover {
	background: #f0e8dc;
}

.tbs-assess__nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.25rem;
}

.tbs-assess__overall,
.tbs-assess__sec-result {
	padding: 1rem;
	border-radius: 10px;
	margin: 0.75rem 0;
	border: 1px solid #e8dfd0;
}

.tbs-assess__band--below {
	background: #fff5f5;
	border-color: #e8b4b4;
}

.tbs-assess__band--ready {
	background: #f5faf5;
	border-color: #b4d8b4;
}

.tbs-assess__band--advanced {
	background: #f0f4ff;
	border-color: #b4c8e8;
}

.tbs-assess__courses {
	margin: 0.35rem 0 0;
	padding-left: 1.25rem;
}

.tbs-assess__courses a {
	color: #8b4513;
	font-weight: 600;
}

.tbs-assess__loading,
.tbs-assess__error {
	color: #5c5348;
}

.tbs-assess__back a {
	color: #8b4513;
	text-decoration: none;
	font-size: 0.92rem;
}

.tbs-assess__rec {
	background: #fff;
	border: 1px solid #e8dfd0;
	border-radius: 10px;
	padding: 0.85rem 1rem;
	margin: 0.5rem 0;
}

