.load-status {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body:has(noscript > .portal-load-error) :is(.portal-skeleton, #portal-status) { display: none; }
.portal-load-error {
  display: grid;
  justify-items: center;
  gap: .8rem;
  padding: 4rem 1rem;
  text-align: center;
}
.portal-skeleton {
  display: grid;
  grid-template: 4.12rem 1fr / 14.5rem minmax(0, 1fr);
  min-height: 100svh;
  animation: skeleton-reveal 0s .16s both;
}
.loading-rail {
  grid-area: 1 / 1 / 3 / 2;
  background: #382218;
}
.loading-topbar {
  grid-area: 1 / 2;
  border-bottom: 1px solid #E4D3BF;
  background: #FFFCF7;
}
.loading-content {
  grid-area: 2 / 2;
  min-width: 0;
  width: 100%;
  padding: clamp(1rem, 3.15vw, 3.35rem);
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
}
.student-skeleton .loading-content { max-width: 58rem; margin-inline: auto; }
.loading-title { width: min(42%, 14rem); height: 2.5rem; margin-bottom: 1.25rem; }
.loading-feature { height: clamp(7rem, 14vw, 10rem); margin-bottom: 1.1rem; }
.student-skeleton .loading-feature { height: clamp(12rem, 25vw, 18rem); }
.loading-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.loading-panel { height: 7rem; }
.student-skeleton .loading-panels { grid-template-columns: 1fr; }
.student-skeleton .loading-panel { height: 4rem; }

.skeleton-block {
  border-radius: .8rem;
  background: #E9D9C8;
}
.hero-visual:has(> .hero-photo[data-skeleton-image])::before,
.skeleton-frame:has(> img[data-skeleton-image])::before,
.assessment-photo-thumb:has(> img[data-skeleton-image])::before,
.youtube-player[data-video-loading]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: #E9D9C8;
  pointer-events: none;
  animation: skeleton-reveal 0s .16s both, skeleton-sheen 1.5s .16s linear infinite;
}
.skeleton-block,
.hero-visual:has(> .hero-photo[data-skeleton-image])::before,
.skeleton-frame:has(> img[data-skeleton-image])::before,
.assessment-photo-thumb:has(> img[data-skeleton-image])::before,
.youtube-player[data-video-loading]::before {
  background-image: linear-gradient(105deg, transparent 22%, #FFFCF799 48%, transparent 74%);
  background-size: 240% 100%;
}
.skeleton-block { animation: skeleton-sheen 1.5s .16s linear infinite; }
.skeleton-frame, .assessment-photo-thumb, .youtube-player { position: relative; }
.skeleton-frame:has(> img[data-skeleton-image])::before { inset-block-end: 1.3rem; border-radius: .4rem; }
.youtube-player[data-video-loading]::before { z-index: 1; }
@keyframes skeleton-reveal {
  from { visibility: hidden; }
  to { visibility: visible; }
}
@keyframes skeleton-sheen {
  from { background-position: 140% 0; }
  to { background-position: -140% 0; }
}
@media (max-width: 47.5rem) {
  .portal-skeleton { grid-template: 3.7rem 1fr / minmax(0, 1fr); }
  .loading-rail { display: none; }
  .loading-topbar { grid-area: 1 / 1; background: #382218; }
  .loading-content { grid-area: 2 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-block { animation: none; }
  .hero-visual:has(> .hero-photo[data-skeleton-image])::before,
  .skeleton-frame:has(> img[data-skeleton-image])::before,
  .assessment-photo-thumb:has(> img[data-skeleton-image])::before,
  .youtube-player[data-video-loading]::before { animation: skeleton-reveal 0s .16s both; }
}
