/* =========================================================
   THE TRUE CHURCH OF JESUS CHRIST
   TRUE CHURCH ACADEMY - SHARED READER V1.7.1
   School page + educational reader modeled after the True Church app reader
   ========================================================= */

#tcjc-academy-v1-root {
  --tcjc-academy-bg: #ece9e2;
  --tcjc-academy-paper: #fbf7ed;
  --tcjc-academy-paper-strong: #fffaf2;
  --tcjc-academy-surface: rgba(255, 255, 255, 0.74);
  --tcjc-academy-surface-strong: rgba(255, 255, 255, 0.91);
  --tcjc-academy-surface-soft: rgba(255, 255, 255, 0.54);
  --tcjc-academy-ink: #302d29;
  --tcjc-academy-heading: #27394e;
  --tcjc-academy-muted: #716b63;
  --tcjc-academy-accent: #94b8cd;
  --tcjc-academy-accent-deep: #4f8fb5;
  --tcjc-academy-border: rgba(72, 76, 78, 0.14);
  --tcjc-academy-border-accent: rgba(79, 143, 181, 0.28);
  --tcjc-academy-shadow: 0 22px 58px rgba(37, 49, 59, 0.12);
  --tcjc-academy-shadow-soft: 0 10px 30px rgba(37, 49, 59, 0.08);
  --tcjc-academy-site-header-offset: 96px;
  --tcjc-academy-reading-size: clamp(1rem, 1.35vw, 1.08rem);

  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tcjc-academy-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#tcjc-academy-v1-root *,
#tcjc-academy-v1-root *::before,
#tcjc-academy-v1-root *::after {
  box-sizing: border-box;
}

#tcjc-academy-v1-root a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

#tcjc-academy-v1-root button,
#tcjc-academy-v1-root input,
#tcjc-academy-v1-root select {
  font: inherit;
}

#tcjc-academy-v1-root button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

#tcjc-academy-v1-root svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
}

#tcjc-academy-v1-root h1,
#tcjc-academy-v1-root h2,
#tcjc-academy-v1-root h3,
#tcjc-academy-v1-root h4,
#tcjc-academy-v1-root p,
#tcjc-academy-v1-root ul,
#tcjc-academy-v1-root ol,
#tcjc-academy-v1-root blockquote {
  margin-top: 0;
}

html.tcjc-academy-overlay-open {
  overflow: hidden;
}

.tcjc-academy-v1-screen {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 100svh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 8px 0 124px;
  overflow-x: clip;
  background: var(--tcjc-academy-bg);
}

.tcjc-academy-v1-shell {
  width: calc(100vw - 24px);
  max-width: 1500px;
  margin: 0 auto;
}

/* ----------------------------- Loading ---------------------------------- */

.tcjc-academy-v1-loading,
.tcjc-academy-v1-error {
  width: min(720px, calc(100vw - 28px));
  margin: 72px auto;
  padding: 28px;
  border: 1px solid var(--tcjc-academy-border);
  border-radius: 20px;
  background: var(--tcjc-academy-surface-strong);
  box-shadow: var(--tcjc-academy-shadow-soft);
  text-align: center;
}

.tcjc-academy-v1-loading h1,
.tcjc-academy-v1-error h1 {
  margin-bottom: 7px;
  color: var(--tcjc-academy-heading);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.tcjc-academy-v1-loading p,
.tcjc-academy-v1-error p {
  margin-bottom: 0;
  color: var(--tcjc-academy-muted);
  line-height: 1.6;
}

/* ----------------------------- School hero ------------------------------- */

.tcjc-academy-v1-school-banner {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 30px;
  background-color: #66757b;
  background-image: var(--tcjc-academy-banner-desktop);
  background-position: center 42%;
  background-size: cover;
  box-shadow: 0 18px 52px rgba(37, 49, 59, 0.12);
  isolation: isolate;
}

.tcjc-academy-v1-school-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(23, 35, 42, 0.34);
}

.tcjc-academy-v1-school-banner-copy {
  position: relative;
  z-index: 1;
  width: min(790px, calc(58% - 32px));
  margin: clamp(28px, 5vw, 70px);
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 28px;
  color: #fff;
  background: rgba(31, 43, 49, 0.56);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  backdrop-filter: blur(18px) saturate(112%);
}

.tcjc-academy-v1-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #c8e7f5;
  font-size: 0.70rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tcjc-academy-v1-school-banner h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(3rem, 5.5vw, 5.4rem);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.tcjc-academy-v1-school-banner p {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  font-weight: 600;
  line-height: 1.55;
}

.tcjc-academy-v1-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tcjc-academy-v1-hero-meta span {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 780;
}

.tcjc-academy-v1-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 22px;
}

.tcjc-academy-v1-hero-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 13px;
  color: #fff !important;
  background: rgba(79, 143, 181, 0.88);
  box-shadow: 0 10px 26px rgba(17, 37, 49, 0.18);
  font-size: 0.86rem;
  font-weight: 820;
  cursor: pointer;
}

.tcjc-academy-v1-hero-button:hover,
.tcjc-academy-v1-hero-button:focus-visible {
  background: rgba(65, 126, 160, 0.96);
  outline: none;
}

.tcjc-academy-v1-hero-button svg {
  width: 18px !important;
  height: 18px !important;
}

.tcjc-academy-v1-hero-current {
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.4;
}

/* ------------------------------ Reader ---------------------------------- */

.tcjc-academy-v1-reader {
  min-width: 0;
  scroll-margin-top: calc(var(--tcjc-academy-site-header-offset) + 12px);
}

.tcjc-academy-v1-reader-top {
  position: relative;
  z-index: 2;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 7px 20px rgba(37, 49, 59, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(108%);
  backdrop-filter: blur(14px) saturate(108%);
}

.tcjc-academy-v1-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.tcjc-academy-v1-control {
  min-width: 0;
}

.tcjc-academy-v1-control label {
  display: block;
  margin: 0 0 5px;
  color: #69635c;
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#tcjc-academy-v1-root select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 34px 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(79, 143, 181, 0.22);
  border-radius: 11px;
  color: #342f2b;
  background-color: rgba(255, 252, 245, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tcjc-academy-v1-root select:hover,
#tcjc-academy-v1-root select:focus-visible {
  border-color: rgba(79, 143, 181, 0.42);
  outline: none;
}

.tcjc-academy-v1-reader-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.tcjc-academy-v1-reader-context > div:first-child {
  min-width: 0;
}

.tcjc-academy-v1-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 2px;
  color: #7a746d;
  font-size: 0.66rem;
  line-height: 1.35;
}

.tcjc-academy-v1-reader-context strong {
  display: block;
  overflow: hidden;
  color: var(--tcjc-academy-heading);
  font-size: 0.82rem;
  font-weight: 790;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tcjc-academy-v1-progress-chip {
  min-width: 86px;
  min-height: 40px;
  flex: 0 0 auto;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 6px 9px;
  border: 1px solid var(--tcjc-academy-border);
  border-radius: 10px;
  background: rgba(248, 247, 244, 0.74);
  text-align: right;
  cursor: pointer;
}

.tcjc-academy-v1-progress-chip strong {
  color: var(--tcjc-academy-heading);
  font-size: 0.78rem;
}

.tcjc-academy-v1-progress-chip span {
  color: var(--tcjc-academy-muted);
  font-size: 0.60rem;
}

/* --------------------------- Reading stage ------------------------------- */

.tcjc-academy-v1-reader-stage {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: start;
  gap: 6px;
  margin-top: 10px;
}

.tcjc-academy-v1-edge {
  position: sticky;
  top: 48svh;
  width: 40px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-top: 25svh;
  border: 1px solid rgba(79, 143, 181, 0.22);
  border-radius: 13px;
  color: var(--tcjc-academy-accent-deep);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 8px 22px rgba(37, 49, 59, 0.08);
  cursor: pointer;
  opacity: 0.60;
}

.tcjc-academy-v1-edge:hover,
.tcjc-academy-v1-edge:focus-visible {
  opacity: 1;
  border-color: rgba(79, 143, 181, 0.42);
  background: rgba(255, 255, 255, 0.84);
  outline: none;
}

.tcjc-academy-v1-edge:disabled {
  opacity: 0;
  pointer-events: none;
}

.tcjc-academy-v1-edge svg {
  width: 21px !important;
  height: 21px !important;
}

.tcjc-academy-v1-learning-goal {
  margin: 0 0 22px;
  padding: 15px 17px;
  border: 1px solid rgba(79, 143, 181, 0.22);
  border-radius: 15px;
  background: rgba(148, 184, 205, 0.08);
}

.tcjc-academy-v1-learning-goal span {
  display: block;
  margin-bottom: 4px;
  color: #4f7890;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tcjc-academy-v1-learning-goal p {
  margin: 0;
  color: #3e4c54;
  font-size: 0.96rem;
  font-weight: 680;
  line-height: 1.55;
}

.tcjc-academy-v1-parent-details {
  margin-top: 22px;
  border: 1px solid rgba(72, 76, 78, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.33);
  overflow: hidden;
}

.tcjc-academy-v1-parent-details summary {
  padding: 13px 15px;
  color: #55636b;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.tcjc-academy-v1-parent-details summary::-webkit-details-marker { display: none; }
.tcjc-academy-v1-parent-details summary::after { content: "+"; float: right; }
.tcjc-academy-v1-parent-details[open] summary::after { content: "-"; }
.tcjc-academy-v1-parent-details-body { padding: 0 15px 14px; }
.tcjc-academy-v1-parent-details-body ul { margin: 0; padding-left: 1.2rem; }
.tcjc-academy-v1-parent-details-body li { color: #56646b; font-size: 0.88rem; line-height: 1.55; }

.tcjc-academy-v1-course-guide { display: grid; gap: 14px; }
.tcjc-academy-v1-course-guide p,
.tcjc-academy-v1-course-guide li { color: #4f5b61; line-height: 1.6; }
.tcjc-academy-v1-course-guide ul { margin: 0; padding-left: 1.25rem; }
.tcjc-academy-v1-course-guide h3 { margin: 8px 0 0; color: var(--tcjc-academy-heading); }
.tcjc-academy-v1-guide-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 14px; border: 1px solid rgba(79,143,181,.16); border-radius: 12px; background: rgba(148,184,205,.06); }
.tcjc-academy-v1-guide-row strong { color: var(--tcjc-academy-heading); }
.tcjc-academy-v1-guide-row span { color: #5a686f; text-align: right; }

.tcjc-academy-v1-lesson-panel {
  min-width: 0;
  min-height: 70svh;
  padding: clamp(48px, 6vw, 82px) clamp(30px, 7vw, 100px) clamp(44px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid rgba(115, 91, 54, 0.15);
  border-radius: 24px;
  color: var(--tcjc-academy-ink);
  background: var(--tcjc-academy-paper);
  box-shadow: var(--tcjc-academy-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.tcjc-academy-v1-lesson-panel > * {
  width: min(900px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.tcjc-academy-v1-lesson-header {
  margin-bottom: clamp(32px, 5vw, 50px);
  text-align: center;
}

.tcjc-academy-v1-lesson-kicker {
  margin-bottom: 11px;
  color: var(--tcjc-academy-accent-deep);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tcjc-academy-v1-lesson-panel h1 {
  margin: 0;
  color: #332f2a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.tcjc-academy-v1-lesson-summary {
  max-width: 720px;
  margin: 18px auto 0;
  color: #665f57;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(0.98rem, 1.45vw, 1.10rem);
  line-height: 1.68;
}

.tcjc-academy-v1-lesson-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.tcjc-academy-v1-lesson-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(79, 143, 181, 0.16);
  border-radius: 8px;
  color: #6f675e;
  background: rgba(255, 255, 255, 0.34);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
}

.tcjc-academy-v1-scripture-focus {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  padding: 14px 15px;
  border: 1px solid rgba(79, 143, 181, 0.22);
  border-radius: 14px;
  background: rgba(148, 184, 205, 0.07);
}

.tcjc-academy-v1-scripture-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--tcjc-academy-accent-deep);
  background: rgba(148, 184, 205, 0.12);
}

.tcjc-academy-v1-scripture-focus > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tcjc-academy-v1-scripture-focus > div:nth-child(2) span {
  color: #706961;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.tcjc-academy-v1-scripture-focus > div:nth-child(2) strong {
  color: #3a3732;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.35;
}

.tcjc-academy-v1-scripture-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.tcjc-academy-v1-scripture-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(79, 143, 181, 0.22);
  border-radius: 9px;
  color: #3f708e !important;
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 800;
}

.tcjc-academy-v1-scripture-links svg {
  width: 14px !important;
  height: 14px !important;
}

.tcjc-academy-v1-section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(115, 91, 54, 0.12);
}

.tcjc-academy-v1-section h2 {
  margin: 0 0 13px;
  color: #39352f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.1vw, 1.62rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.tcjc-academy-v1-section p,
.tcjc-academy-v1-section li {
  color: #4e4942;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--tcjc-academy-reading-size);
  line-height: 1.78;
}

.tcjc-academy-v1-section p {
  margin-bottom: 1.05em;
}

.tcjc-academy-v1-section p:last-child,
.tcjc-academy-v1-section ul:last-child,
.tcjc-academy-v1-section ol:last-child {
  margin-bottom: 0;
}

.tcjc-academy-v1-section ul,
.tcjc-academy-v1-section ol {
  padding-left: 1.35rem;
}

.tcjc-academy-v1-section li + li {
  margin-top: 8px;
}

.tcjc-academy-v1-memory {
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid rgba(79, 143, 181, 0.18);
  border-radius: 12px;
  background: rgba(148, 184, 205, 0.05);
}

.tcjc-academy-v1-memory span {
  display: block;
  margin-bottom: 5px;
  color: var(--tcjc-academy-accent-deep);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.tcjc-academy-v1-memory p {
  margin: 0;
  color: #4b4640;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.55;
}

.tcjc-academy-v1-lesson-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(115, 91, 54, 0.12);
}

.tcjc-academy-v1-complete-button,
.tcjc-academy-v1-lesson-footer-nav button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(79, 143, 181, 0.20);
  border-radius: 10px;
  color: #48535a;
  background: rgba(255, 255, 255, 0.38);
  font-size: 0.74rem;
  font-weight: 780;
  cursor: pointer;
}

.tcjc-academy-v1-complete-button.is-complete {
  color: #386348;
  border-color: rgba(56, 99, 72, 0.20);
  background: rgba(76, 132, 94, 0.08);
}

.tcjc-academy-v1-complete-button svg,
.tcjc-academy-v1-lesson-footer-nav svg {
  width: 17px !important;
  height: 17px !important;
}

.tcjc-academy-v1-lesson-footer-nav {
  display: flex;
  gap: 7px;
}

.tcjc-academy-v1-lesson-footer button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* --------------------------- Floating dock ------------------------------- */

.tcjc-academy-v1-dock {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 2147480000;
  width: min(1060px, calc(100vw - 28px));
  min-height: 72px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(35, 55, 70, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(20px) saturate(128%);
  backdrop-filter: blur(20px) saturate(128%);
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  transition: transform 210ms ease, opacity 170ms ease;
  will-change: transform, opacity;
}

#tcjc-academy-v1-root.tcjc-academy-v1-chrome-hidden .tcjc-academy-v1-dock {
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, calc(100% + 24px), 0);
}

.tcjc-academy-v1-dock-item {
  min-width: 0;
  min-height: 54px;
  flex: 1 1 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 5px 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #67737a !important;
  background: transparent;
  cursor: pointer;
}

.tcjc-academy-v1-dock-item svg {
  width: 20px !important;
  height: 20px !important;
}

.tcjc-academy-v1-dock-item span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.64rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tcjc-academy-v1-dock-item:hover,
.tcjc-academy-v1-dock-item:focus-visible,
.tcjc-academy-v1-dock-item.is-current {
  border-color: rgba(79, 143, 181, 0.18);
  color: #3f708e !important;
  background: rgba(148, 184, 205, 0.10);
  outline: none;
}

/* ---------------------------- Search sheet ------------------------------- */

.tcjc-academy-v1-search-backdrop,
.tcjc-academy-v1-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147481000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 27, 31, 0.34);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.tcjc-academy-v1-search-backdrop[hidden],
.tcjc-academy-v1-sheet-backdrop[hidden] {
  display: none !important;
}

.tcjc-academy-v1-search-sheet {
  width: min(900px, calc(100vw - 24px));
  max-height: min(820px, calc(100svh - 28px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  background: rgba(248, 247, 243, 0.95);
  box-shadow: 0 30px 90px rgba(20, 30, 36, 0.24);
}

.tcjc-academy-v1-search-header,
.tcjc-academy-v1-sheet > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
}

.tcjc-academy-v1-search-kicker,
.tcjc-academy-v1-sheet > header span {
  display: block;
  margin-bottom: 4px;
  color: var(--tcjc-academy-accent-deep);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tcjc-academy-v1-search-header h2,
.tcjc-academy-v1-sheet > header h2 {
  margin: 0;
  color: var(--tcjc-academy-heading);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tcjc-academy-v1-square-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tcjc-academy-border);
  border-radius: 10px;
  color: #66747b;
  background: rgba(255, 255, 255, 0.64);
  cursor: pointer;
}

.tcjc-academy-v1-search-form {
  margin: 0 18px;
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(79, 143, 181, 0.26);
  border-radius: 13px;
  background: rgba(255, 252, 245, 0.96);
}

.tcjc-academy-v1-search-form > span {
  color: var(--tcjc-academy-accent-deep);
}

.tcjc-academy-v1-search-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  color: #37332e;
  background: transparent;
  font-size: 0.92rem;
}

.tcjc-academy-v1-search-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 18px 0;
}

.tcjc-academy-v1-search-tabs button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--tcjc-academy-border);
  border-radius: 9px;
  color: #6d7478;
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.70rem;
  font-weight: 800;
  cursor: pointer;
}

.tcjc-academy-v1-search-tabs button.is-active {
  color: #3f708e;
  border-color: rgba(79, 143, 181, 0.26);
  background: rgba(148, 184, 205, 0.10);
}

.tcjc-academy-v1-search-status {
  min-height: 32px;
  padding: 9px 18px 7px;
  color: #817b74;
  font-size: 0.68rem;
  font-weight: 650;
}

.tcjc-academy-v1-search-results {
  min-height: 0;
  overflow: auto;
  padding: 2px 18px 20px;
}

.tcjc-academy-v1-result-section + .tcjc-academy-v1-result-section {
  margin-top: 18px;
}

.tcjc-academy-v1-result-section > h3,
.tcjc-academy-v1-search-welcome > h3 {
  margin: 0 0 8px;
  color: #6c6761;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tcjc-academy-v1-result-section > div {
  display: grid;
  gap: 7px;
}

.tcjc-academy-v1-search-result {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--tcjc-academy-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.tcjc-academy-v1-search-result:hover,
.tcjc-academy-v1-search-result:focus-visible {
  border-color: rgba(79, 143, 181, 0.30);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

.tcjc-academy-v1-result-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 143, 181, 0.16);
  border-radius: 10px;
  color: var(--tcjc-academy-accent-deep);
  background: rgba(148, 184, 205, 0.08);
}

.tcjc-academy-v1-result-copy {
  min-width: 0;
}

.tcjc-academy-v1-result-copy small,
.tcjc-academy-v1-result-copy strong,
.tcjc-academy-v1-result-copy p {
  display: block;
}

.tcjc-academy-v1-result-copy small {
  margin-bottom: 2px;
  overflow: hidden;
  color: #7c766f;
  font-size: 0.62rem;
  font-weight: 720;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tcjc-academy-v1-result-copy strong {
  margin-bottom: 3px;
  color: #3b3935;
  font-size: 0.84rem;
  line-height: 1.3;
}

.tcjc-academy-v1-result-copy p {
  margin: 0;
  overflow: hidden;
  color: #6a645d;
  font-size: 0.72rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tcjc-academy-v1-result-arrow {
  color: #8a989f;
}

.tcjc-academy-v1-result-arrow svg {
  width: 17px !important;
  height: 17px !important;
}

.tcjc-academy-v1-search-empty,
.tcjc-academy-v1-search-wait {
  display: grid;
  gap: 5px;
  padding: 32px 16px;
  color: #77716a;
  text-align: center;
}

.tcjc-academy-v1-search-empty strong {
  color: #45413c;
  font-size: 0.92rem;
}

.tcjc-academy-v1-search-empty span,
.tcjc-academy-v1-search-wait {
  font-size: 0.76rem;
  line-height: 1.5;
}

.tcjc-academy-v1-search-welcome {
  padding: 4px 0 12px;
}

.tcjc-academy-v1-search-welcome > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.tcjc-academy-v1-search-welcome button {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--tcjc-academy-border);
  border-radius: 11px;
  color: #536069;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  text-align: left;
}

.tcjc-academy-v1-search-welcome button svg {
  flex: 0 0 auto;
  color: var(--tcjc-academy-accent-deep);
}

.tcjc-academy-v1-search-welcome button span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 740;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tcjc-academy-v1-search-welcome p {
  margin: 13px 0 0;
  color: #7b756e;
  font-size: 0.72rem;
  line-height: 1.5;
}

.tcjc-academy-v1-picker-number,
.tcjc-academy-v1-row-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 143, 181, 0.16);
  border-radius: 9px;
  color: var(--tcjc-academy-accent-deep);
  background: rgba(148, 184, 205, 0.08);
  font-size: 0.70rem;
  font-weight: 850;
}

.tcjc-academy-v1-picker-number svg,
.tcjc-academy-v1-row-icon svg {
  width: 17px !important;
  height: 17px !important;
}

/* ----------------------------- Generic sheet ----------------------------- */

.tcjc-academy-v1-sheet {
  width: min(720px, calc(100vw - 24px));
  max-height: min(800px, calc(100svh - 28px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  background: rgba(248, 247, 243, 0.96);
  box-shadow: 0 30px 90px rgba(20, 30, 36, 0.24);
}

.tcjc-academy-v1-sheet-body {
  min-height: 0;
  overflow: auto;
  padding: 2px 18px 20px;
}

.tcjc-academy-v1-sheet-list {
  display: grid;
  gap: 7px;
}

.tcjc-academy-v1-sheet-row {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--tcjc-academy-border);
  border-radius: 11px;
  color: #4a5257;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  text-align: left;
}

.tcjc-academy-v1-sheet-row.is-current,
.tcjc-academy-v1-sheet-row:hover,
.tcjc-academy-v1-sheet-row:focus-visible {
  border-color: rgba(79, 143, 181, 0.28);
  background: rgba(148, 184, 205, 0.08);
  outline: none;
}

.tcjc-academy-v1-sheet-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.tcjc-academy-v1-sheet-row strong {
  overflow: hidden;
  color: #45413c;
  font-size: 0.80rem;
  font-weight: 780;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tcjc-academy-v1-sheet-row small {
  color: #7d7770;
  font-size: 0.67rem;
}

.tcjc-academy-v1-sheet-row > svg {
  flex: 0 0 auto;
  color: #8b979d;
}

.tcjc-academy-v1-outline-group + .tcjc-academy-v1-outline-group {
  margin-top: 18px;
}

.tcjc-academy-v1-outline-group h3 {
  margin: 0 0 7px;
  color: #66615b;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.tcjc-academy-v1-outline-group > div {
  display: grid;
  gap: 6px;
}

.tcjc-academy-v1-outline-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.tcjc-academy-v1-outline-row:hover,
.tcjc-academy-v1-outline-row:focus-visible,
.tcjc-academy-v1-outline-row.is-current {
  border-color: rgba(79, 143, 181, 0.20);
  background: rgba(148, 184, 205, 0.07);
  outline: none;
}

.tcjc-academy-v1-outline-number {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tcjc-academy-border);
  border-radius: 8px;
  color: #68757c;
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.66rem;
  font-weight: 800;
}

.tcjc-academy-v1-outline-number svg {
  width: 14px !important;
  height: 14px !important;
  color: #3e7350;
}

.tcjc-academy-v1-outline-row > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tcjc-academy-v1-outline-row strong {
  overflow: hidden;
  color: #4a4641;
  font-size: 0.76rem;
  font-weight: 740;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tcjc-academy-v1-outline-row small {
  color: #847d75;
  font-size: 0.63rem;
}

.tcjc-academy-v1-progress-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 2px 8px;
}

.tcjc-academy-v1-progress-summary strong {
  color: var(--tcjc-academy-heading);
  font-size: 2rem;
  line-height: 1;
}

.tcjc-academy-v1-progress-summary span {
  color: #756f68;
  font-size: 0.74rem;
}

.tcjc-academy-v1-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(75, 86, 92, 0.10);
}

.tcjc-academy-v1-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--tcjc-academy-accent-deep);
}

.tcjc-academy-v1-progress-courses {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.tcjc-academy-v1-progress-courses > div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--tcjc-academy-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.52);
}

.tcjc-academy-v1-progress-courses span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tcjc-academy-v1-progress-courses strong {
  overflow: hidden;
  color: #4b4742;
  font-size: 0.74rem;
  font-weight: 760;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tcjc-academy-v1-progress-courses small {
  color: #817a73;
  font-size: 0.63rem;
}

.tcjc-academy-v1-progress-courses b {
  flex: 0 0 auto;
  color: #497893;
  font-size: 0.72rem;
}

/* -------------------------- Little Lambs mode ----------------------------- */

#tcjc-academy-v1-root[data-school="little-lambs"] .tcjc-academy-v1-control label,
#tcjc-academy-v1-root[data-school="little-lambs"] .tcjc-academy-v1-dock-item span {
  letter-spacing: 0;
}

#tcjc-academy-v1-root[data-school="little-lambs"] select {
  min-height: 48px;
  font-size: 0.92rem;
}

#tcjc-academy-v1-root[data-school="little-lambs"] .tcjc-academy-v1-lesson-panel h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}

#tcjc-academy-v1-root[data-school="little-lambs"] .tcjc-academy-v1-section p,
#tcjc-academy-v1-root[data-school="little-lambs"] .tcjc-academy-v1-section li {
  font-size: max(var(--tcjc-academy-reading-size), 1.04rem);
}

/* ----------------------- Focus + reading comfort ------------------------- */

#tcjc-academy-v1-root.tcjc-academy-v1-focus-mode .tcjc-academy-v1-school-banner {
  display: none;
}

#tcjc-academy-v1-root.tcjc-academy-v1-focus-mode .tcjc-academy-v1-screen {
  padding-top: 12px;
}

#tcjc-academy-v1-root.tcjc-academy-v1-focus-mode .tcjc-academy-v1-reader-top {
  margin-bottom: 8px;
}

#tcjc-academy-v1-root.tcjc-academy-v1-reading-large {
  --tcjc-academy-reading-size: clamp(1.08rem, 1.5vw, 1.17rem);
}

#tcjc-academy-v1-root.tcjc-academy-v1-reading-extra {
  --tcjc-academy-reading-size: clamp(1.16rem, 1.72vw, 1.28rem);
}

.tcjc-academy-v1-reading-options {
  display: grid;
  gap: 9px;
}

.tcjc-academy-v1-reading-option {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--tcjc-academy-border);
  border-radius: 14px;
  color: #45413c;
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
  cursor: pointer;
}

.tcjc-academy-v1-reading-option.is-current {
  border-color: rgba(79, 143, 181, 0.34);
  background: rgba(148, 184, 205, 0.10);
}

.tcjc-academy-v1-reading-option span {
  display: grid;
  gap: 4px;
}

.tcjc-academy-v1-reading-option strong {
  font-size: 0.88rem;
}

.tcjc-academy-v1-reading-option small {
  color: #777067;
  font-size: 0.72rem;
  line-height: 1.35;
}

.tcjc-academy-v1-reading-option svg {
  flex: 0 0 auto;
  color: var(--tcjc-academy-accent-deep);
}

/* ----------------------------- Responsive -------------------------------- */

@media (max-width: 1120px) {
  #tcjc-academy-v1-root {
    --tcjc-academy-site-header-offset: 90px;
  }

}

@media (max-width: 860px) {
  #tcjc-academy-v1-root {
    --tcjc-academy-site-header-offset: 78px;
  }

  .tcjc-academy-v1-school-banner {
    min-height: 88svh;
  }

  .tcjc-academy-v1-school-banner-copy {
    width: min(720px, calc(78% - 28px));
    margin: 28px;
    padding: 32px;
  }

  .tcjc-academy-v1-reader-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .tcjc-academy-v1-edge {
    display: none;
  }

  .tcjc-academy-v1-lesson-panel {
    padding-left: clamp(24px, 6vw, 56px);
    padding-right: clamp(24px, 6vw, 56px);
  }
}

@media (max-width: 640px) {
  #tcjc-academy-v1-root {
    --tcjc-academy-site-header-offset: 68px;
  }

  .tcjc-academy-v1-screen {
    padding-top: 6px;
    padding-bottom: 100px;
  }

  .tcjc-academy-v1-school-banner {
    min-height: 82svh;
    align-items: flex-end;
    margin-bottom: 9px;
    border-radius: 22px;
    background-image: var(--tcjc-academy-banner-mobile, var(--tcjc-academy-banner-desktop));
    background-position: center;
  }

  .tcjc-academy-v1-school-banner-copy {
    width: calc(100% - 24px);
    margin: 12px;
    padding: 26px 22px 27px;
    border-radius: 20px;
  }

  .tcjc-academy-v1-school-banner h1 {
    font-size: clamp(2.55rem, 12vw, 4.1rem);
  }

  .tcjc-academy-v1-school-banner p {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .tcjc-academy-v1-hero-meta {
    margin-top: 16px;
  }

  .tcjc-academy-v1-hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 18px;
  }

  .tcjc-academy-v1-hero-button {
    width: 100%;
  }

  .tcjc-academy-v1-hero-current {
    max-width: none;
  }

  .tcjc-academy-v1-reader-top {
    position: relative;
    top: auto;
    padding: 9px;
    border-radius: 14px;
  }

  .tcjc-academy-v1-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .tcjc-academy-v1-control label {
    margin-bottom: 4px;
    font-size: 0.58rem;
  }

  #tcjc-academy-v1-root select {
    min-height: 42px;
    padding: 7px 28px 7px 8px;
    border-radius: 9px;
    font-size: 0.77rem;
  }

  .tcjc-academy-v1-reader-context {
    margin-top: 7px;
    padding-top: 7px;
  }

  .tcjc-academy-v1-breadcrumbs {
    display: none;
  }

  .tcjc-academy-v1-reader-context strong {
    font-size: 0.76rem;
  }

  .tcjc-academy-v1-progress-chip {
    min-width: 74px;
    min-height: 36px;
  }

  .tcjc-academy-v1-reader-stage {
    margin-top: 7px;
  }

  .tcjc-academy-v1-lesson-panel {
    min-height: 62svh;
    padding: 34px 20px 34px;
    border-radius: 17px;
  }

  .tcjc-academy-v1-lesson-header {
    margin-bottom: 28px;
  }

  .tcjc-academy-v1-lesson-kicker {
    margin-bottom: 8px;
    font-size: 0.60rem;
  }

  .tcjc-academy-v1-lesson-panel h1 {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .tcjc-academy-v1-lesson-summary {
    margin-top: 13px;
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .tcjc-academy-v1-lesson-meta {
    margin-top: 12px;
  }

  .tcjc-academy-v1-scripture-focus {
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 25px;
    padding: 12px;
  }

  .tcjc-academy-v1-scripture-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 48px;
  }

  .tcjc-academy-v1-section {
    margin-top: 26px;
    padding-top: 24px;
  }

  .tcjc-academy-v1-section h2 {
    font-size: 1.24rem;
  }

  .tcjc-academy-v1-section p,
  .tcjc-academy-v1-section li {
    font-size: var(--tcjc-academy-reading-size);
    line-height: 1.70;
  }

  .tcjc-academy-v1-lesson-footer {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .tcjc-academy-v1-complete-button {
    width: 100%;
  }

  .tcjc-academy-v1-lesson-footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tcjc-academy-v1-lesson-footer-nav button {
    width: 100%;
  }

  .tcjc-academy-v1-dock {
    width: calc(100vw - 14px);
    min-height: 64px;
    bottom: max(7px, env(safe-area-inset-bottom));
    gap: 1px;
    padding: 5px;
    border-radius: 15px;
  }

  .tcjc-academy-v1-dock-secondary {
    display: none !important;
  }

  .tcjc-academy-v1-dock-item {
    min-height: 52px;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 10px;
  }

  .tcjc-academy-v1-dock-item svg {
    width: 19px !important;
    height: 19px !important;
  }

  .tcjc-academy-v1-dock-item span {
    font-size: 0.56rem;
  }

  .tcjc-academy-v1-search-backdrop,
  .tcjc-academy-v1-sheet-backdrop {
    align-items: end;
    padding: 8px;
  }

  .tcjc-academy-v1-search-sheet,
  .tcjc-academy-v1-sheet {
    width: 100%;
    max-height: calc(100svh - 16px);
    border-radius: 18px;
  }

  .tcjc-academy-v1-search-header,
  .tcjc-academy-v1-sheet > header {
    padding: 15px 14px 12px;
  }

  .tcjc-academy-v1-search-form {
    margin: 0 14px;
  }

  .tcjc-academy-v1-search-tabs {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tcjc-academy-v1-search-status {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tcjc-academy-v1-search-results,
  .tcjc-academy-v1-sheet-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tcjc-academy-v1-search-welcome > div {
    grid-template-columns: 1fr;
  }

  .tcjc-academy-v1-search-result {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tcjc-academy-v1-result-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .tcjc-academy-v1-controls {
    display: none !important;
  }

  .tcjc-academy-v1-reader-top {
    padding: 8px 10px;
  }
}

@media (max-width: 420px) {
  .tcjc-academy-v1-controls {
    gap: 6px;
  }

  #tcjc-academy-v1-root select {
    font-size: 0.72rem;
  }

  .tcjc-academy-v1-dock-item span {
    font-size: 0.50rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #tcjc-academy-v1-root *,
  #tcjc-academy-v1-root *::before,
  #tcjc-academy-v1-root *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  #tcjc-academy-v1-root,
  #tcjc-academy-v1-root * {
    visibility: visible !important;
  }

  #tcjc-academy-v1-root {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 100% !important;
  }

  .tcjc-academy-v1-topbar,
  .tcjc-academy-v1-school-banner,
  .tcjc-academy-v1-reader-top,
  .tcjc-academy-v1-edge,
  .tcjc-academy-v1-dock,
  .tcjc-academy-v1-search-backdrop,
  .tcjc-academy-v1-sheet-backdrop,
  .tcjc-academy-v1-lesson-footer {
    display: none !important;
  }

  .tcjc-academy-v1-screen,
  .tcjc-academy-v1-shell,
  .tcjc-academy-v1-reader-stage,
  .tcjc-academy-v1-lesson-panel {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .tcjc-academy-v1-reader-stage {
    display: block !important;
  }
}

/* --------------------------- More tile grid ------------------------------ */
.tcjc-academy-v1-more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tcjc-academy-v1-more-tile {
  min-width: 0;
  min-height: 132px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 16px 12px;
  border: 1px solid var(--tcjc-academy-border);
  border-radius: 16px;
  color: #4a5257;
  background: rgba(255,255,255,0.62);
  text-align: center;
  cursor: pointer;
}

.tcjc-academy-v1-more-tile:hover,
.tcjc-academy-v1-more-tile:focus-visible {
  border-color: rgba(79,143,181,0.32);
  background: rgba(148,184,205,0.10);
  outline: none;
}

.tcjc-academy-v1-more-tile > svg {
  width: 28px !important;
  height: 28px !important;
  color: var(--tcjc-academy-accent-deep);
}

.tcjc-academy-v1-more-tile span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.tcjc-academy-v1-more-tile strong {
  color: #45413c;
  font-size: 0.84rem;
}

.tcjc-academy-v1-more-tile small {
  color: #7d7770;
  font-size: 0.68rem;
  line-height: 1.35;
}

.tcjc-academy-v1-more-mobile {
  display: none;
}

@media (max-width: 640px) {
  .tcjc-academy-v1-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tcjc-academy-v1-more-mobile {
    display: grid;
  }
}


/* ------------------------------ Night mode ------------------------------- */

#tcjc-academy-v1-root.tcjc-academy-v1-night {
  --tcjc-academy-bg: #11171c;
  --tcjc-academy-paper: #182126;
  --tcjc-academy-paper-strong: #1d282f;
  --tcjc-academy-surface: rgba(27, 37, 43, 0.78);
  --tcjc-academy-surface-strong: rgba(24, 33, 38, 0.94);
  --tcjc-academy-surface-soft: rgba(31, 42, 48, 0.68);
  --tcjc-academy-ink: #e8e3da;
  --tcjc-academy-heading: #edf5f8;
  --tcjc-academy-muted: #aeb8bc;
  --tcjc-academy-accent: #94b8cd;
  --tcjc-academy-accent-deep: #91c4df;
  --tcjc-academy-border: rgba(219, 231, 237, 0.14);
  --tcjc-academy-border-accent: rgba(145, 196, 223, 0.34);
  --tcjc-academy-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
  --tcjc-academy-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-reader-top {
  border-color: rgba(219, 231, 237, 0.10);
  background: rgba(24, 33, 38, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-breadcrumbs,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-progress-chip span,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-status,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-result-copy small,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-result-copy p,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-welcome p,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-sheet-row small,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-outline-row small,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-progress-summary span,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-progress-courses small,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-reading-option small,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-more-tile small {
  color: #9eaaaf;
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-progress-chip,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-edge,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-parent-details,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-lesson-meta span,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-scripture-links a,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-complete-button,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-lesson-footer-nav button,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-square-button,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-tabs button,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-result,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-welcome button,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-sheet-row,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-outline-number,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-progress-courses > div,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-reading-option,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-more-tile {
  color: #d8e1e5;
  background: rgba(35, 47, 54, 0.72);
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-edge:hover,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-edge:focus-visible,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-result:hover,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-result:focus-visible {
  background: rgba(48, 64, 73, 0.90);
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-lesson-panel {
  border-color: rgba(219, 231, 237, 0.10);
  color: var(--tcjc-academy-ink);
  background: var(--tcjc-academy-paper);
  box-shadow: var(--tcjc-academy-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-lesson-panel h1,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-section h2,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-scripture-focus > div:nth-child(2) strong,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-memory p,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-empty strong,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-result-copy strong,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-sheet-row strong,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-outline-row strong,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-progress-courses strong,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-reading-option,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-more-tile strong {
  color: #f1eee8;
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-lesson-summary,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-section p,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-section li,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-learning-goal p,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-parent-details summary,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-parent-details-body li,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-course-guide p,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-course-guide li,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-guide-row span {
  color: #c7d0d3;
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-learning-goal,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-scripture-focus,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-memory,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-guide-row {
  background: rgba(148, 184, 205, 0.09);
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-lesson-meta span,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-scripture-focus > div:nth-child(2) span {
  color: #aeb8bc;
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-dock {
  border-color: rgba(219, 231, 237, 0.12);
  background: rgba(22, 31, 36, 0.90);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-dock-item {
  color: #aeb9be !important;
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-dock-item:hover,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-dock-item:focus-visible,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-dock-item.is-current {
  color: #a8d4ec !important;
  background: rgba(148, 184, 205, 0.12);
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-backdrop,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-sheet-backdrop {
  background: rgba(4, 8, 10, 0.62);
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-sheet,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-sheet {
  border-color: rgba(219, 231, 237, 0.11);
  background: rgba(20, 29, 34, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-form {
  border-color: rgba(145, 196, 223, 0.26);
  background: rgba(31, 42, 48, 0.94);
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-form input {
  color: #eef3f5;
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-form input::placeholder {
  color: #87949a;
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-search-tabs button.is-active,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-sheet-row.is-current,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-sheet-row:hover,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-sheet-row:focus-visible,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-outline-row:hover,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-outline-row:focus-visible,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-outline-row.is-current,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-reading-option.is-current,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-more-tile:hover,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-more-tile:focus-visible {
  background: rgba(148, 184, 205, 0.13);
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-section,
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-lesson-footer {
  border-top-color: rgba(219, 231, 237, 0.10);
}

#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-theme-tile {
  border-color: rgba(145, 196, 223, 0.30);
}


/* V1.8 — persistent review responses for Little Lambs Grades 1-3 */
#tcjc-academy-v1-root .tcjc-academy-v1-review-response { display: grid; gap: 14px; }
#tcjc-academy-v1-root .tcjc-academy-v1-review-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
#tcjc-academy-v1-root .tcjc-academy-v1-review-heading h2 { margin:0; }
#tcjc-academy-v1-root .tcjc-academy-v1-review-heading button {
  appearance:none; border:1px solid rgba(42,67,82,.16); background:rgba(255,255,255,.72); color:#506570;
  border-radius:12px; padding:8px 11px; font:inherit; font-size:.78rem; font-weight:750; cursor:pointer;
}
#tcjc-academy-v1-root .tcjc-academy-v1-review-note { margin:-6px 0 2px; color:#6f7e86; font-size:.86rem; }
#tcjc-academy-v1-root .tcjc-academy-v1-review-response label { display:grid; gap:7px; }
#tcjc-academy-v1-root .tcjc-academy-v1-review-response label > span { font-weight:760; color:#314856; line-height:1.45; }
#tcjc-academy-v1-root .tcjc-academy-v1-review-response textarea {
  width:100%; box-sizing:border-box; resize:vertical; min-height:84px; border:1px solid rgba(42,67,82,.16);
  border-radius:15px; padding:12px 13px; background:rgba(255,255,255,.8); color:#263e4c; font:inherit; line-height:1.55;
  outline:none; box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
#tcjc-academy-v1-root .tcjc-academy-v1-review-response textarea:focus { border-color:rgba(66,139,177,.5); box-shadow:0 0 0 3px rgba(148,184,205,.18); }
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-review-heading button { background:rgba(255,255,255,.06); color:#d5e0e5; border-color:rgba(255,255,255,.12); }
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-review-note { color:#aebcc3; }
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-review-response label > span { color:#e2eaee; }
#tcjc-academy-v1-root.tcjc-academy-v1-night .tcjc-academy-v1-review-response textarea { background:rgba(6,19,27,.72); color:#edf4f7; border-color:rgba(255,255,255,.12); box-shadow:none; }
@media (max-width:640px) {
  #tcjc-academy-v1-root .tcjc-academy-v1-review-heading { align-items:flex-start; }
  #tcjc-academy-v1-root .tcjc-academy-v1-review-heading button { flex:0 0 auto; }
}
