.hero-policy-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 18px;
}
.hero-policy-links .hero-policy-link {
  margin-top: 0;
}
.this-week {
  color: #fff;
  background: linear-gradient(135deg, #071426, #0b2a66);
  padding: clamp(44px, 6vw, 86px) 6vw;
  border-top: 1px solid #174a9b;
  border-bottom: 1px solid #174a9b;
}
.this-week-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  max-width: 1500px;
  margin: 0 auto 32px;
}
.this-week h2 {
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 10px 0;
}
.week-updated {
  color: #a9c8f3;
  margin: 0;
}
.date-time-feed {
  min-width: 250px;
  text-align: right;
  border-right: 4px solid #36c5f0;
  padding-right: 18px;
  display: grid;
  gap: 5px;
}
.date-time-feed span {
  color: #a9c8f3;
  font-size: 0.84rem;
}
.date-time-feed strong {
  color: #fff;
  font-size: 1.55rem;
}
.date-time-feed small {
  color: #f3b53f;
  font-weight: 800;
}
.weekly-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.weekly-grid article {
  background: #ffffff0d;
  border: 1px solid #ffffff20;
  border-top: 3px solid #1264e8;
  border-radius: 20px;
  padding: 24px;
  min-height: 210px;
}
.weekly-grid article > span {
  color: #36c5f0;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.weekly-grid h3 {
  font-size: 1.2rem;
  margin: 18px 0 10px;
}
.weekly-grid p {
  color: #c5d4e8;
  line-height: 1.6;
  margin: 0;
}
.weekly-grid a {
  color: #74dcff;
  display: inline-block;
  margin-top: 16px;
  font-weight: 800;
}
.weekly-help {
  border-top-color: #f3b53f !important;
}
.cell-policy {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 480px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: linear-gradient(145deg, #061124, #0b2a66);
  color: #fff;
  border-radius: 34px;
  margin: 44px 0;
  padding: clamp(26px, 5vw, 58px);
  overflow: hidden;
}
.cell-policy h3 {
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  line-height: 1.02;
  margin: 10px 0 14px;
}
.cell-policy-lede {
  color: #36c5f0 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}
.cell-policy-copy > p,
.cell-policy li {
  color: #c5d4e8;
  line-height: 1.65;
}
.cell-policy ul {
  padding-left: 20px;
}
.cell-policy li + li {
  margin-top: 8px;
}
.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.cell-policy-image {
  display: block;
  border: 1px solid #ffffff2e;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 55px #0008;
}
.cell-policy-image img {
  width: 100%;
  height: auto;
  display: block;
}
.google-search-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  background: #ffffff0d;
  border: 1px solid #ffffff26;
  border-radius: 28px;
  margin-top: 36px;
  padding: clamp(24px, 4vw, 46px);
}
.google-search-panel h3 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin: 8px 0 12px;
}
.google-search-panel p {
  color: #b9c6d8;
  line-height: 1.6;
  margin: 0;
}
.google-search-panel form {
  display: grid;
  gap: 10px;
}
.google-search-panel label {
  font-size: 0.8rem;
  font-weight: 800;
}
.search-row {
  display: flex;
  gap: 10px;
}
.search-row input[type="search"] {
  min-width: 0;
  flex: 1;
  background: #fff;
  color: #071426;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 15px 16px;
  font: inherit;
}
.search-row input[type="search"]:focus {
  outline: 3px solid #74dcff;
  outline-offset: 2px;
}
.search-row button {
  color: #fff;
  background: #1264e8;
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.search-row button:hover,
.search-row button:focus {
  background: #2684ff;
  outline: 3px solid #74dcff;
  outline-offset: 2px;
}
.contact-privacy-note {
  color: #a9c8f3;
  border-left: 3px solid #36c5f0;
  max-width: 760px;
  margin: 28px 0;
  padding-left: 14px;
  font-size: 0.82rem;
  line-height: 1.6;
}
@media (max-width: 1100px) {
  .weekly-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cell-policy {
    grid-template-columns: 1fr;
  }
  .cell-policy-image {
    max-width: 560px;
    margin: auto;
  }
  .google-search-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .this-week {
    padding: 42px 22px;
  }
  .this-week-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .date-time-feed {
    text-align: left;
    border-right: 0;
    border-left: 4px solid #36c5f0;
    padding: 0 0 0 16px;
  }
  .weekly-grid {
    grid-template-columns: 1fr;
  }
  .weekly-grid article {
    min-height: 0;
  }
  .cell-policy {
    border-radius: 24px;
    margin: 32px 0;
    padding: 24px 18px;
  }
  .policy-actions {
    display: grid;
  }
  .policy-actions .button {
    width: 100%;
    text-align: center;
  }
  .google-search-panel {
    border-radius: 22px;
    padding: 24px 18px;
  }
  .search-row {
    flex-direction: column;
  }
  .search-row button {
    padding: 15px 20px;
  }
}

/* Gentle, visible hero crest motion. */
.command-art .hero-logo {
  -webkit-animation: hero-crest-float 5.5s ease-in-out infinite !important;
  animation: hero-crest-float 5.5s ease-in-out infinite !important;
  transform-origin: center;
  will-change: transform;
}

@-webkit-keyframes hero-crest-float {
  0%,
  100% {
    -webkit-transform: translate3d(0, 0, 0) rotate(-0.45deg) scale(1);
    transform: translate3d(0, 0, 0) rotate(-0.45deg) scale(1);
  }

  50% {
    -webkit-transform: translate3d(0, -22px, 0) rotate(0.7deg) scale(1.015);
    transform: translate3d(0, -22px, 0) rotate(0.7deg) scale(1.015);
  }
}

@keyframes hero-crest-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.45deg) scale(1);
  }

  50% {
    transform: translate3d(0, -22px, 0) rotate(0.7deg) scale(1.015);
  }
}

.visual-gallery .library-image-contain {
  background: #05080d;
}

.visual-gallery .library-image-contain img {
  object-fit: contain;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .command-art .hero-logo {
    -webkit-animation: none !important;
    animation: none;
    transform: none;
  }
}


/* Full-screen classroom crest display. */
.command-art .hero-logo[role="button"] {
  cursor: zoom-in;
  border-radius: 28px;
}

.command-art .hero-logo[role="button"]:focus-visible {
  outline: 4px solid #74dcff;
  outline-offset: 10px;
}

.crest-stage[hidden] {
  display: none !important;
}

.crest-stage {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: clamp(24px, 4vw, 64px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at center, #103b86 0, #071a3b 45%, #020711 100%);
  isolation: isolate;
}

.crest-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(#36c5f012 1px, transparent 1px),
    linear-gradient(90deg, #36c5f012 1px, transparent 1px);
  background-size: 72px 72px;
}

.crest-stage__image {
  display: block;
  width: auto;
  max-width: min(90vw, 1180px);
  height: auto;
  max-height: 84dvh;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px #000a) drop-shadow(0 0 28px #1264e866);
  animation: classroom-crest-float 7s ease-in-out infinite;
}

.crest-stage__exit {
  position: fixed;
  top: clamp(18px, 3vw, 36px);
  right: clamp(18px, 3vw, 36px);
  z-index: 2;
  min-height: 48px;
  padding: 12px 18px;
  color: #fff;
  background: #071426e8;
  border: 2px solid #74dcff;
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 30px #0008;
}

.crest-stage__exit:hover,
.crest-stage__exit:focus-visible {
  background: #1264e8;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.crest-stage__note {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 2.5vw, 30px);
  transform: translateX(-50%);
  margin: 0;
  color: #b9dfff;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

body.crest-stage-open {
  overflow: hidden;
}

@keyframes classroom-crest-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.012);
  }
}

@media (max-width: 700px) {
  .crest-stage__image {
    max-width: 94vw;
    max-height: 76dvh;
  }

  .crest-stage__note {
    white-space: normal;
    width: calc(100% - 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .crest-stage__image {
    animation: none;
  }
}


/* Live date and time for classroom crest display. */
.crest-stage__clock {
  position: fixed;
  top: clamp(18px, 3vw, 36px);
  left: clamp(18px, 3vw, 36px);
  z-index: 2;
  display: grid;
  gap: 3px;
  min-width: min(360px, calc(100vw - 220px));
  padding: 15px 20px;
  color: #fff;
  background: #071426d9;
  border-left: 5px solid #36c5f0;
  border-radius: 6px 18px 18px 6px;
  box-shadow: 0 12px 30px #0008;
  backdrop-filter: blur(10px);
}

.crest-stage__clock span {
  color: #b9dfff;
  font-size: clamp(1.04rem, 1.43vw, 1.3rem);
  font-weight: 750;
}

.crest-stage__clock strong {
  color: #fff;
  font-size: clamp(2.6rem, 5.2vw, 5.525rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.crest-stage__clock small {
  color: #f3b53f;
  font-size: clamp(0.91rem, 1.17vw, 1.105rem);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .crest-stage__clock {
    top: 16px;
    left: 16px;
    min-width: 0;
    max-width: calc(100vw - 150px);
    padding: 11px 14px;
  }

  .crest-stage__clock strong {
    font-size: clamp(2.145rem, 10.4vw, 3.25rem);
  }
}

/* Accessible navigation and focus states */
.mja-menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  border: 2px solid #3f8cff;
  border-radius: 12px;
  background: #0b2b55;
  color: #fff;
  padding: 0 16px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.mja-menu-toggle:hover,
.mja-menu-toggle:focus-visible {
  border-color: #f3b53f;
  color: #f3b53f;
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #f3b53f;
  outline-offset: 3px;
}
section[id],
footer[id] {
  scroll-margin-top: 110px;
}
@media (max-width: 1050px) {
  .site-header {
    position: sticky;
    min-height: 78px;
    height: auto;
  }
  .mja-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-header nav#main-navigation {
    position: absolute;
    z-index: 40;
    top: calc(100% + 1px);
    right: 16px;
    width: min(340px, calc(100vw - 32px));
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    background: #071426;
    box-shadow: 0 18px 42px rgba(0,0,0,.38);
  }
  .js .site-header nav#main-navigation {
    display: none;
  }
  .js .site-header nav#main-navigation.is-open {
    display: grid;
  }
  .site-header nav#main-navigation a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
  }
  .site-header nav#main-navigation a:hover,
  .site-header nav#main-navigation a:focus-visible {
    background: #12345c;
  }
}
