/* Approved reader: keep the canonical media/rich-text renderer, replace only its shell. */
body.board-page #studentBoardSpotlight {
  inset: 0; width: 100%; height: 100dvh; max-height: none; margin: 0;
  padding: 24px; box-sizing: border-box; border-radius: 0; overflow: hidden;
  background: #30264b66; backdrop-filter: blur(3px); box-shadow: none;
}
body.board-page #studentBoardSpotlight .student-board-reader-sheet {
  display: flex; flex-direction: column; width: min(1296px, 100%);
  height: min(720px, calc(100dvh - 48px)); min-height: 0; overflow: hidden;
  border: 1px solid #e3dfed; border-radius: 22px; background: #fff;
  color: #242032; box-shadow: 0 24px 80px #24134333;
}
body.board-page #studentBoardSpotlight .student-board-reader-header {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 32px; border-bottom: 1px solid #e8e3f0;
}
body.board-page #studentBoardSpotlight .author-info { display: flex; min-width: 0; align-items: center; gap: 12px; }
body.board-page #studentBoardSpotlight .author-avatar { background: #7651d9; color: #fff; }
body.board-page #studentBoardSpotlight #studentBoardSpotlightMeta { margin: 0; color: #44384f; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
body.board-page #studentBoardSpotlight .spotlight-content {
  position: relative; display: grid; flex: 1 1 0; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  grid-template-rows: minmax(0, 1fr); gap: 0; width: 100%; max-width: none; height: auto;
  min-height: 0; max-height: none; border: 0; border-radius: 0; background: #fff; box-shadow: none;
}
body.board-page #studentBoardSpotlight .spotlight-media-shell { display: block; min-height: 0; padding: 28px 20px 28px 28px; background: #fff; }
body.board-page #studentBoardSpotlight .student-board-spotlight-body { position: static; display: flex; height: 100%; min-height: 0; padding: 0; overflow: hidden; }
body.board-page #studentBoardSpotlight .student-board-spotlight-body img { max-height: 100%; border-radius: 14px; background: #f7f5fb; object-fit: contain; }
body.board-page #studentBoardSpotlight .spotlight-info {
  display: flex; flex-direction: column; justify-content: flex-start; min-height: 0; height: auto;
  padding: 30px 28px 28px 18px; overflow: hidden; border: 0; background: #fff; color: #242032;
}
body.board-page #studentBoardSpotlight #studentBoardSpotlightTitle { flex: 0 0 auto; margin: 4px 0 20px; font-size: clamp(24px, 2vw, 32px); line-height: 1.35; overflow-wrap: anywhere; }
body.board-page #studentBoardSpotlight .spotlight-text-scroll {
  flex: 1 1 0; min-height: 0; max-height: none; margin: 0; padding: 0 8px 0 0;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
  border: 0; border-radius: 0; background: #fff;
}
body.board-page #studentBoardSpotlight .spotlight-text-content { color: #302939; font-size: clamp(17px, 1.3vw, 20px); font-weight: 400; line-height: 1.85; overflow-wrap: anywhere; }
body.board-page #studentBoardSpotlight .student-board-reader-footer {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 18px; padding: 22px 32px 20px; border-top: 1px solid #e8e3f0;
}
body.board-page #studentBoardSpotlight .student-board-reader-pagination,
body.board-page #studentBoardSpotlight .student-board-reader-actions { display: flex; align-items: center; gap: 12px; }
body.board-page #studentBoardSpotlight button { min-width: 44px; min-height: 44px; padding: 9px 16px; border: 1px solid #ded7eb; border-radius: 10px; background: #fff; color: #51475e; font: inherit; font-weight: 700; cursor: pointer; }
body.board-page #studentBoardSpotlight button:disabled { opacity: .4; cursor: default; }
body.board-page #studentBoardSpotlight button:focus-visible,
body.board-page #studentBoardSpotlight .spotlight-text-scroll:focus-visible { outline: 3px solid #a58ee8; outline-offset: 2px; }
body.board-page #studentBoardSpotlight #studentBoardSpotlightClose { flex: 0 0 auto; border: 0; padding: 8px; font-size: 23px; }
body.board-page #studentBoardSpotlight #studentBoardSpotlightNext { background: #7149d6; border-color: #7149d6; color: #fff; }
body.board-page #studentBoardSpotlight #studentBoardSpotlightPrev,
body.board-page #studentBoardSpotlight #studentBoardSpotlightComments { color: #7149d6; border-color: #b9a5ee; }
body.board-page #studentBoardSpotlight output { min-width: 58px; text-align: center; color: #655575; font-size: 18px; }
body.board-page #studentBoardSpotlight .student-board-reader-footer p { flex-basis: 100%; margin: 0; text-align: center; color: #7b7185; font-size: 12px; }
body.board-page #studentBoardSpotlight[data-spotlight-layout="text"] .student-board-reader-sheet { width: min(1120px, 100%); }
body.board-page #studentBoardSpotlight[data-spotlight-layout="text"] .spotlight-content { width: 100%; height: auto; grid-template-columns: minmax(0, 1fr); }
body.board-page #studentBoardSpotlight[data-spotlight-layout="text"] .spotlight-media-shell { display: none; }
body.board-page #studentBoardSpotlight[data-spotlight-layout="text"] .spotlight-info { padding: 28px clamp(24px, 4vw, 64px); }
body.board-page #studentBoardSpotlight[data-spotlight-layout="text"] .spotlight-text-content { font-size: clamp(18px, 1.6vw, 22px); }
@media (max-width: 900px) {
  body.board-page #studentBoardSpotlight { padding: 16px; }
  body.board-page #studentBoardSpotlight .student-board-reader-sheet { height: calc(100dvh - 32px); }
  body.board-page #studentBoardSpotlight[data-spotlight-layout="media"] .spotlight-content { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(160px, 48%) minmax(0, 1fr); }
  body.board-page #studentBoardSpotlight .spotlight-media-shell { padding: 18px 24px 10px; }
  body.board-page #studentBoardSpotlight .spotlight-info { padding: 16px 24px; }
  body.board-page #studentBoardSpotlight #studentBoardSpotlightTitle { margin-bottom: 12px; font-size: 25px; }
}
@media (max-width: 560px) {
  body.board-page #studentBoardSpotlight .student-board-reader-header { padding: 12px 16px; }
  body.board-page #studentBoardSpotlight .student-board-reader-footer { padding: 12px 16px; }
  body.board-page #studentBoardSpotlight .student-board-reader-actions { gap: 6px; }
  body.board-page #studentBoardSpotlight button { padding-inline: 11px; font-size: 13px; }
}
