/* Trinidad and Tobago: red, white and black, with clear working surfaces. */
:root {
  --flag-red: #c8102e;
  --flag-black: #161616;
  --navy: #161616;
  --navy-2: #303030;
  --blue: #b5121b;
  --coral: #b5121b;
  --mint: #ffffff;
  --paper: #f4f4f4;
  --cream: #ffffff;
  --ink: #242424;
  --muted: #595959;
  --line: #d8d8d8;
  --shadow: 0 18px 55px rgb(0 0 0 / 12%);
}
body, body.teacher-auth-page {
  background-color: var(--flag-red);
  background-image: linear-gradient(45deg, transparent 0 38%, #fff 38% 40%, var(--flag-black) 40% 54%, #fff 54% 56%, transparent 56% 100%);
  background-size: 100vw 100vh;
  background-repeat: repeat-y;
  background-attachment: fixed;
  border-top: 8px solid var(--flag-black);
}
.hero, .auth-intro, .portal-header, .classroom-header, .screen-bar {
  background: var(--flag-black);
  border-bottom: 5px solid var(--flag-red);
}
.hero::before, .hero::after, .auth-intro::before { display: none; }
.hero { min-height: 570px; }
.hero-copy { padding-top: 70px; }
.hero h1 em, .hero .lede, .hero .student-identity, .auth-intro > div > p:last-child { color: #fff; }
.hero-stamp { border-color: #fff; background: var(--flag-red); }
.auth-shell { border-top: 8px solid var(--flag-red); }
.auth-intro { border-left: 8px solid var(--flag-red); }
.auth-intro li span { color: #e0e0e0; font-size: .875rem; }
.auth-intro .teacher-entry { color: #fff; border-color: #777; }
.auth-intro .eyebrow { color: #fff; }
.brand, .portal-brand, .classroom-brand { gap: 12px; }
img.veritas-mark {
  display: block;
  width: 54px;
  height: 64px;
  flex: 0 0 54px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.portal-header, .classroom-header { min-height: 86px; }
.teacher-auth-card .portal-brand { margin-bottom: 32px; }
.portal-main, .classroom-main, .practice-section {
  width: min(1280px, calc(100% - 48px));
  margin: 28px auto;
  padding: 36px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.progress-section { padding-bottom: 28px; }
.privacy-note { padding: 10px 16px; background: #fff; border-radius: 8px; }
.progress-section .privacy-note { width: min(1170px, 100%); margin: 12px auto 0; }
.progress-card p { color: #e0e0e0; }
.portal-tabs button.active, .portal-tabs button[aria-selected="true"] { border-color: var(--flag-red); }
.account-access-note { border-color: var(--flag-red); background: #f5f5f5; }
.form-heading p { color: var(--blue); }
.auth-form small, .fine-print { color: #595959; }
.auth-form label { font-size: .875rem; }
.fine-print { font-size: .8125rem; line-height: 1.5; }
.auth-form input:focus, .auth-form select:focus { border-color: var(--flag-red); box-shadow: 0 0 0 3px rgb(200 16 46 / 15%); }
footer.site-copyright {
  color: #fff;
  background: var(--flag-black);
  border-top: 5px solid var(--flag-red);
}
footer.site-copyright a { color: #fff; }
.teacher-auth-page footer.site-copyright { border-radius: 0; }
.saints-section {
  flex: none;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto 32px;
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.saints-section > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.saints-section h2 { margin: 0; color: var(--flag-black); font: 700 clamp(1.5rem, 4vw, 2rem)/1.2 Georgia, serif; letter-spacing: -.02em; }
.saints-section .saints-motto { margin: 0; color: var(--blue); font: 700 .875rem/1.4 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.saints-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.saints-grid.saints-carousel { position: relative; display: flex; gap: 16px; padding: 8px; margin: -8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
.saints-carousel.is-swipe-ready { touch-action: pan-y pinch-zoom; }
.saints-carousel > a { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; }
.saints-carousel-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.saints-carousel-controls[hidden] { display: none; }
.saints-carousel-controls button { min-height: 44px; padding: 10px 14px; border: 1px solid #161616; border-radius: 8px; color: #fff; background: #161616; cursor: pointer; font: 700 .8125rem/1.4 Arial, sans-serif; }
.saints-carousel-controls button:disabled { color: #666; background: #eee; border-color: #ddd; cursor: default; }
.saints-carousel-controls button:not(:disabled):hover { background: #a50d26; border-color: #a50d26; }
.saints-carousel-controls p { margin: 0; color: #595959; font: 400 .8125rem/1.5 Arial, sans-serif; }
.saints-selection-note { margin: 0 0 20px; color: #595959; font: 400 .9375rem/1.6 Arial, sans-serif; }
.catholic-learning { width: min(1100px, calc(100% - 48px)); margin: 32px auto; padding: 32px; border: 1px solid #e1e1e1; border-radius: 12px; background: #fff; color: #242424; box-sizing: border-box; }
.faith-main .catholic-learning { width: 100%; margin: 32px 0 0; padding: 28px 0 0; border: 0; border-top: 1px solid #dedede; border-radius: 0; }
.learning-eyebrow { margin: 0 0 10px; color: #a50d26; font: 700 .75rem/1.5 Arial, sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.catholic-learning h2 { margin: 0 0 12px; color: #161616; font: 700 clamp(1.5rem, 4vw, 2rem)/1.2 Georgia, serif; }
.learning-prompt { margin: 0 0 8px; color: #242424; font: 700 1rem/1.6 Arial, sans-serif; }
.learning-intro { margin: 0 0 24px; max-width: 68ch; color: #595959; font: 400 .9375rem/1.6 Arial, sans-serif; }
.faith-video { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: center; gap: 32px; width: min(1100px, calc(100% - 48px)); margin: 32px auto; padding: 32px; box-sizing: border-box; border: 1px solid #e1e1e1; border-radius: 12px; background: #fff; color: #242424; }
.faith-video h2 { margin: 0 0 12px; color: #161616; font: 700 clamp(1.5rem, 4vw, 2rem)/1.2 Georgia, serif; }
.faith-video-copy > p:not(.learning-eyebrow) { margin: 0 0 16px; max-width: 48ch; font: 400 1rem/1.6 Arial, sans-serif; }
.faith-video-copy > .faith-video-hint { color: #595959; font-size: .875rem; }
.faith-video-player { width: 100%; max-width: 320px; margin: 0; justify-self: center; }
.faith-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 12px; background: #161616; }
.faith-video video:focus-visible { outline: 3px solid var(--flag-red); outline-offset: 4px; }
.faith-video figcaption { margin-top: 10px; color: #595959; text-align: center; font: 400 .8125rem/1.5 Arial, sans-serif; }
.faith-main .faith-video { width: 100%; margin: 32px 0 0; padding: 28px 0 0; border: 0; border-top: 1px solid #dedede; border-radius: 0; }
@media (max-width: 760px) {
  .faith-video { grid-template-columns: minmax(0, 1fr); gap: 12px; width: calc(100% - 24px); margin: 20px auto; padding: 24px 16px; }
  .faith-main .faith-video { width: 100%; }
}
@media print { .faith-video { display: none; } }
.catholic-topic-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.catholic-topic-links li { min-width: 0; }
.catholic-topic-links a, .school-song-link > a { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 48px; padding: 14px 16px; box-sizing: border-box; border: 1px solid #d8d8d8; border-radius: 8px; background: #fff; color: #a50d26; text-decoration: none; font: 700 .9375rem/1.5 Arial, sans-serif; overflow-wrap: anywhere; }
.catholic-topic-links a:hover, .school-song-link > a:hover { border-color: #a50d26; background: #fff7f8; text-decoration: underline; text-underline-offset: .2em; }
.school-song-link { margin-top: 20px; }
.school-song-link > a { background: #f7f7f7; }
.school-song-link p { margin: 8px 0 0; color: #595959; font: 400 .8125rem/1.6 Arial, sans-serif; }
@media (max-width: 600px) {
  .catholic-learning { width: calc(100% - 32px); padding: 24px 20px; }
  .catholic-topic-links { grid-template-columns: minmax(0, 1fr); }
  .faith-main .catholic-learning { width: 100%; }
}
.saints-swipe-hint { margin: 16px 0; color: #595959; font: 400 .875rem/1.5 Arial, sans-serif; }
.saint-portrait { min-width: 0; margin: 0; overflow: hidden; border-radius: 10px; background: var(--saint-colour); }
.saint-portrait.therese { --saint-colour: #653b8c; }
.saint-portrait.catherine { --saint-colour: #2454a4; }
.saint-portrait.rose { --saint-colour: #b42a38; }
.saint-portrait.guadalupe { --saint-colour: #21724d; }
.saint-portrait.white { --saint-colour: #fff; border: 1px solid #d8d8d8; color: #242424; }
.saint-portrait.white figcaption { color: #242424; }
.saint-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; }
.saint-portrait figcaption { min-height: 64px; display: grid; align-items: center; padding: 14px 12px; color: #fff; text-align: center; font: 700 .9375rem/1.4 Arial, sans-serif; }
.saint-story-link { display: block; min-width: 0; color: #fff; text-decoration: none; border-radius: 10px; }
.saint-story-link:hover figcaption { text-decoration: underline; text-underline-offset: .2em; }
.saint-story-link:focus-visible { outline: 3px solid var(--flag-black); outline-offset: 4px; }
.saints-section .saints-description { margin: -6px 0 20px; color: #595959; font: 400 .9375rem/1.6 Arial, sans-serif; }
.saints-section .saints-page-link { display: inline-block; min-height: 44px; margin-top: 18px; padding-block: 10px; color: #a50d26; font: 700 .875rem/1.5 Arial, sans-serif; text-underline-offset: .2em; }
:where(a, button, input, select, summary):focus-visible { outline: 3px solid var(--flag-red); outline-offset: 4px; }
@media (max-width: 760px) {
  body, body.teacher-auth-page { background-attachment: scroll; }
  .auth-shell { width: calc(100% - 24px); min-height: auto; margin: 12px auto 20px; border-radius: 14px; }
  .auth-intro { min-height: 280px; }
  .auth-intro > div { margin: 30px 0 20px; }
  .portal-main, .classroom-main, .practice-section { width: calc(100% - 24px); margin: 16px auto; padding: 22px 16px; border-radius: 12px; }
  .saints-section { width: calc(100% - 24px); padding: 20px 16px; margin-bottom: 20px; border-radius: 12px; }
  .saints-section > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .saints-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .saints-carousel > a { flex-basis: calc((100% - 16px) / 2); }
  .saints-grid.saints-carousel[data-saints-per-view="4"] { display: grid; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 2); }
  .saints-carousel[data-saints-per-view="4"] figcaption { min-height: 58px; padding: 10px 8px; font-size: .8125rem; }
  .saints-carousel[data-saints-per-view="4"] .faith-choice-name { min-height: 58px; font-size: .8125rem; }
  .saints-carousel-controls { gap: 8px; }
  .saints-carousel-controls button { padding: 10px; font-size: .75rem; }
  .saints-carousel-controls p { font-size: .75rem; }
  .hero { min-height: auto; padding-bottom: 44px; }
  .hero-copy { padding-top: 48px; }
  .hero-stamp { display: none; }
  img.veritas-mark { width: 44px; height: 54px; flex-basis: 44px; }
  .portal-header > div { gap: 10px; }
}
@media print {
  body, body.teacher-auth-page { background: #fff; border: 0; }
  .saints-section { display: none; }
}
