/* Edelweiss Academy — editorial theme based on supplied school assets. */
:root {
  --ink: #193642;
  --ink-2: #244756;
  --paper: #f5f7f3;
  --paper-2: #eaf0ed;
  --white: #fffefa;
  --muted: #60737a;
  --gold: #287e9e;
  --line: rgba(25, 54, 66, 0.22);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

html { scroll-padding-top: 76px; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); }
.site-header {
  position: relative;
  inset: auto;
  height: 76px;
  padding-inline: clamp(22px, 5vw, 76px);
  background: #f8faf7;
  color: var(--ink);
  border-bottom: 1px solid rgba(25, 54, 66, .18);
}
.wordmark-type > span { color: #1c6384; }
.wordmark-type small { color: #496b79; }
.primary-nav > a { color: #274a59; }
.primary-nav > a:hover,
.primary-nav > a:focus-visible { color: #11769b; }
.primary-nav .nav-contact {
  border-color: #4f8192;
  color: #1a536b;
}
.primary-nav .nav-contact:hover,
.primary-nav .nav-contact:focus-visible { background: #e3eef0; }

.hero {
  min-height: 620px;
  height: min(82vh, 830px);
  padding: 44px clamp(24px, 6vw, 92px);
  align-items: center;
  justify-content: flex-start;
  gap: clamp(48px, 10vw, 150px);
  overflow: hidden;
  background: #e7f1f0;
  color: #193642;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(34, 95, 119, .18);
  pointer-events: none;
}
.hero-shade,
.hero-portrait,
.hero-vertical,
.hero-caption,
.hero-bottom { display: none; }
.hero-inner {
  width: min(720px, 64%);
  margin: 0;
  padding: 20px 0 28px;
  z-index: 1;
}
.hero-eyebrow {
  color: #317b98;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
}
.hero-eyebrow span { color: #9d655f; padding-inline: 6px; }
.hero h1 {
  margin: 30px 0 22px;
  color: #193642;
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .04em;
}
.hero h1 em { color: #287e9e; }
.hero-lead {
  color: #435d67;
  font-size: 14px;
  line-height: 2.15;
  letter-spacing: .045em;
}
.round-link {
  min-width: 205px;
  border-color: rgba(25, 54, 66, .48);
  color: #193642;
}
.round-link i { border-color: rgba(25, 54, 66, .5); }
.hero-link { margin-top: 30px; }
.hero-aside {
  position: relative;
  z-index: 1;
  width: min(320px, 28vw);
  min-width: 205px;
  padding: 26px 0 24px 26px;
  border-left: 1px solid rgba(25, 54, 66, .28);
  color: #345765;
}
.hero-school-emblem {
  display: block;
  width: min(100%, 310px);
  height: auto;
  margin: 0 0 16px;
  object-fit: contain;
}
.hero-aside > p {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: 11px;
  line-height: 1.75;
  letter-spacing: .13em;
}
.hero-aside > p span { color: #8b675d; }
.hero-crest-list { display: flex; align-items: center; gap: 12px; }
.hero-crest-list a {
  display: grid;
  width: 76px;
  height: 92px;
  place-items: center;
  border-bottom: 2px solid #6f9bae;
}
.hero-crest-list a:nth-child(2) { border-color: #af9561; }
.hero-crest-list a:nth-child(3) { border-color: #966f81; }
.hero-crest-list img { width: 100%; height: 100%; object-fit: contain; }

.section-pad { padding-block: clamp(76px, 8vw, 122px); }
.story { background: #f8f8f3; }
.story-heading h2,
.section-heading h2,
.encounter h2,
.students h2,
.headmaster h2 {
  color: #193642;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: .045em;
}
.story-heading h2 em,
.section-heading h2 em,
.students h2 em,
.headmaster h2 em { color: #287e9e; }
.story-heading > .eyebrow,
.students-intro > .eyebrow,
.section-heading .eyebrow,
.headmaster-copy .eyebrow { color: #527d89; }
.story-copy { color: #455e65; }
.story-copy .story-lead { color: #193642; }
.flower-stamp { display: none; }
.story-quote { border-color: rgba(25, 54, 66, .25); }
.story-quote p { color: #193642; }
.quote-mark { color: #a87371; }
.quote-en { color: #667b81; }

.dorms { background: #183744; color: #f7f8f4; }
.dorms .section-heading h2,
.dorms .section-heading h2 em { color: #f7f8f4; }
.dorms .section-heading .eyebrow { color: #bdd4d5; }
.section-heading-note { color: #d3dfdd; }
.dorm-list { gap: 10px; }
.dorm-card {
  min-height: 340px;
  padding: 26px clamp(18px, 2.8vw, 34px) 22px;
  border: 1px solid rgba(255, 255, 255, .45);
  color: #193642;
  box-shadow: none;
  transition: border-color .2s ease;
}
.dorm-card:hover { transform: none; filter: none; border-color: rgba(255, 255, 255, .9); }
.dorm-edel { background: #dcecf1; }
.dorm-vireo { background: #f0e9d9; }
.dorm-mira { background: #efe2e5; }
.dorm-card::after { display: none; }
.dorm-card-top { color: #516c75; }
.dorm-symbol { color: #327d98; }
.dorm-vireo .dorm-symbol { color: #9a7944; }
.dorm-mira .dorm-symbol { color: #9b667a; }
.dorm-kana { color: #58717a; }
.dorm-card h3 { color: #193642; }
.dorm-mantra { color: #193642; }
.dorm-card > p.dorm-detail { color: #4c6872; }
.dorm-card-foot { color: #334f5b; border-color: rgba(25, 54, 66, .24); }
.dorm-crest { opacity: .86; filter: none; }
.dorm-note { color: #d2dfde; }
.tiny-star { color: #c69089; }

.encounter {
  background: #f1f4f0;
  color: #193642;
}
.encounter .section-index { color: #64787d; }
.encounter-title .eyebrow { color: #527d89; }
.encounter h2 { color: #193642; }
.encounter h2 em { color: #287e9e; }
.encounter-copy { color: #435d67; }
.encounter-copy .encounter-lead { color: #193642; }
.experience-list { border-color: rgba(25, 54, 66, .3); }
.experience { border-color: rgba(25, 54, 66, .26); }
.experience:hover { background: rgba(40, 126, 158, .05); }
.experience-no { color: #567d8a; }
.experience div p { color: #5e7277; }
.experience h3 { color: #193642; }
.experience-arrow { color: #287e9e; }
.encounter-note { color: #496773; }
.event-guidelines {
  display: grid;
  grid-template-columns: minmax(210px, .68fr) minmax(0, 1.32fr);
  gap: clamp(28px, 6vw, 86px);
  margin-top: 58px;
  padding: clamp(24px, 4vw, 46px) 0 0;
  border-top: 1px solid rgba(25, 54, 66, .34);
}
.guidelines-heading .eyebrow { color: #527d89; }
.guidelines-heading h3 {
  margin: 14px 0 10px;
  color: #193642;
  font-family: var(--serif);
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: .05em;
}
.guidelines-heading > p:last-child {
  max-width: 330px;
  color: #596f74;
  font-size: 12px;
  line-height: 2;
}
.guideline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #405a63;
  font-size: 12px;
  line-height: 1.9;
}
.guideline-list li {
  position: relative;
  padding: 13px 0 13px 18px;
  border-top: 1px solid rgba(25, 54, 66, .16);
}
.guideline-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 13px;
  color: #a45f62;
  font-size: 12px;
}

.students { background: #fbfbf7; }
.students-layout { align-items: start; }
.students-intro h2 { color: #193642; }
.students-intro > p:not(.eyebrow) { color: #53696f; }
.text-link { border-color: #56899a; color: #244d5e; }
.text-link span { color: #287e9e; }
.evaluation-board {
  background: #e7f0ef;
  color: #193642;
  border: 1px solid rgba(25, 54, 66, .2);
}
.evaluation-board::before { inset: 8px; border-color: rgba(25, 54, 66, .16); }
.board-top { color: #4e7480; border-color: rgba(25, 54, 66, .22); }
.board-title { color: #193642; }
.board-subtitle { color: #287e9e; }
.board-foot { color: #536c73; }
.student-grid { align-items: stretch; gap: 18px; }
.student-card {
  --student-accent: #2f7e9b;
  --student-surface: #eaf2f3;
  overflow: hidden;
  border: 1px solid rgba(25, 54, 66, .2);
  border-top: 3px solid var(--student-accent);
  border-radius: 0;
  background: var(--student-surface);
  box-shadow: none;
  transition: border-color .2s ease;
}
.student-card.dorm-edel { --student-accent: #2f7e9b; --student-surface: #e8f1f4; }
.student-card.dorm-vireo { --student-accent: #9a7b43; --student-surface: #f2ecdf; }
.student-card.dorm-mira { --student-accent: #986878; --student-surface: #f1e7e9; }
.student-card:hover {
  transform: none;
  border-color: var(--student-accent);
  box-shadow: none;
}
.student-card-photo {
  display: block;
  aspect-ratio: 4 / 5;
  border-bottom: 1px solid rgba(25, 54, 66, .17);
  background: #dfe8e7;
}
.student-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: none;
}
.student-card:hover .student-card-photo img { transform: none; filter: none; }
.student-dorm-tag {
  top: 12px;
  left: 12px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 0;
  background: rgba(248, 250, 247, .94);
  color: var(--student-accent);
  backdrop-filter: none;
}
.student-card-number {
  right: 12px;
  bottom: 12px;
  border: 0;
  border-radius: 0;
  background: rgba(248, 250, 247, .9);
  color: #274a59;
  backdrop-filter: none;
}
.student-dorm-tag { color: #285f75; }
.student-card.dorm-edel .student-dorm-tag { color: #126f98; border-color: rgba(18, 111, 152, .42); background: #f1faff; }
.dorm-vireo .student-dorm-tag { color: #7c6133; }
.dorm-mira .student-dorm-tag { color: #815365; }
.student-card-body { padding: 18px 18px 21px; background: var(--student-surface); }
.student-lore { margin: 12px 0 15px; padding: 9px 0; border-top: 1px solid rgba(25, 54, 66, .14); border-bottom: 1px solid rgba(25, 54, 66, .14); }
.student-lore-facts { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0; color: #314b56; font-size: 10px; line-height: 1.6; }
.student-lore-facts > span { display: flex; flex-wrap: wrap; gap: 4px; }
.student-lore-facts b { color: var(--student-accent); font-size: 8px; font-weight: 600; letter-spacing: .04em; }
.student-lore-setting { margin: 5px 0 0; color: #53696f; font-size: 10px; line-height: 1.6; }
.student-card-meta { color: #5a7078; }
.student-card-meta span + span::before { color: var(--student-accent); }
.student-card h3 { color: #193642; font-family: var(--serif); font-weight: 500; }
.student-reading { color: #63777c; }
.student-card blockquote {
  border-color: var(--student-accent);
  color: #37555e;
}
.student-evaluation { border-color: rgba(25, 54, 66, .2); }
.student-eval-heading { color: var(--student-accent); }
.student-evaluation > p:not(.student-eval-heading) { color: #38545d; }
.student-evaluation > p > span { color: var(--student-accent); }
.student-source-note { color: #64767a; }

.headmaster { background: #e6f0ef; }
.headmaster-layout {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  gap: clamp(38px, 9vw, 122px);
  align-items: center;
  max-width: 1040px;
  margin: 60px auto 0;
}
.headmaster-portrait { margin: 0; max-width: 390px; }
.headmaster-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(25, 54, 66, .25);
}
.headmaster-portrait figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 12px;
  color: #193642;
  font-family: var(--serif);
  font-size: 18px;
}
.headmaster-portrait figcaption small {
  color: #55747d;
  font-family: var(--sans);
  font-size: 11px;
}
.headmaster-copy h2 {
  margin: 20px 0 24px;
  font-size: clamp(29px, 4vw, 48px);
}
.headmaster-facts { margin: 0 0 25px; border-top: 1px solid rgba(25, 54, 66, .22); }
.headmaster-facts > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(25, 54, 66, .18);
}
.headmaster-facts dt { color: #59747a; font-size: 11px; }
.headmaster-facts dd { margin: 0; color: #193642; font-size: 13px; }
.headmaster-copy blockquote {
  margin: 0;
  padding: 20px 0 18px 20px;
  border-left: 2px solid #287e9e;
  color: #2d4d58;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.1;
}
.headmaster-words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: baseline;
  margin: 21px 0 0;
  color: #193642;
  font-family: var(--serif);
  font-size: 17px;
}
.headmaster-words span { color: #678087; font-family: var(--sans); font-size: 10px; }

.invitation {
  padding: clamp(84px, 10vw, 130px) 24px;
  background: #193744;
  color: #f8f8f3;
}
.invitation::before,
.invitation::after { display: none; }
.invitation-ornament { color: #aac7c9; font-size: 18px; }
.invitation .eyebrow { color: #c0d5d3; }
.invitation h2 { color: #f8f8f3; font-weight: 400; }
.invitation h2 em { color: #cbdedb; }
.invitation-copy { color: #d2dfdd; }
.invitation-link { color: #f8f8f3; border-color: rgba(255,255,255,.6); }
.invitation-link i { border-color: rgba(255,255,255,.6); }
.site-footer { background: #102a35; color: #f5f6f0; }
.footer-label { color: #bdd3d1; }
.footer-contact-note { color: #c2d1d0; }
.footer-x {
  display: inline-block;
  margin-top: 12px;
  color: #d7e8e5;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-x span { margin-left: 6px; color: #aacbd1; }
.footer-motto { color: #f1f3ec; }
.copyright { border-color: rgba(255,255,255,.18); color: #b3c1c0; }
.reveal,
.reveal.is-visible { opacity: 1; transform: none; transition: none; }

@media (max-width: 800px) {
  .hero { min-height: 560px; height: auto; gap: 34px; }
  .hero-inner { width: min(65%, 580px); }
  .hero-aside { width: 230px; min-width: 180px; padding-left: 18px; }
  .hero-crest-list { gap: 5px; }
  .hero-crest-list a { width: 62px; height: 78px; }
  .event-guidelines { grid-template-columns: 1fr; gap: 20px; }
  .headmaster-layout { gap: 40px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 67px; }
  .site-header { height: 66px; background: #f8faf7; }
  .site-header .wordmark-type > span { color: #1c6384; }
  .menu-toggle { border-color: rgba(25, 54, 66, .45); color: #193642; }
  .menu-toggle span { background: currentColor; }
  .primary-nav {
    top: 65px;
    background: #f8faf7;
    border-bottom: 1px solid rgba(25, 54, 66, .18);
  }
  .primary-nav > a { color: #274a59; border-color: rgba(25, 54, 66, .14); }
  .primary-nav .nav-contact { border-color: #4f8192; color: #1a536b; }
  .hero {
    min-height: 0;
    height: auto;
    padding: 70px 28px 48px;
    display: block;
  }
  .hero::after { inset: 9px; }
  .hero-inner { width: 100%; padding: 0; }
  .hero h1 { margin: 22px 0 16px; font-size: clamp(34px, 9vw, 48px); line-height: 1.65; }
  .hero-lead { font-size: 12px; }
  .hero-aside {
    width: 100%;
    min-width: 0;
    margin-top: 36px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(25, 54, 66, .24);
  }
  .hero-school-emblem { width: min(62vw, 230px); margin: 0 auto 12px; }
  .hero-aside > p { margin-bottom: 10px; font-size: 9px; }
  .hero-crest-list { gap: 10px; }
  .hero-crest-list a { width: 54px; height: 66px; }
  .section-pad { padding: 72px 24px; }
  .story-layout { padding-top: 40px; }
  .story-copy { padding-top: 4px; }
  .story-quote { margin-top: 48px; flex-wrap: wrap; gap: 13px; }
  .quote-en { width: 100%; margin-left: 0; }
  .section-heading { display: block; margin-bottom: 35px; }
  .section-heading-note { margin-top: 17px; }
  .dorm-list { grid-template-columns: 1fr; gap: 10px; }
  .dorm-card { min-height: 280px; }
  .encounter-layout { grid-template-columns: 1fr; gap: 25px; padding: 44px 0 38px; }
  .experience { grid-template-columns: .7fr 1.4fr 25px; gap: 12px; padding: 20px 3px; }
  .experience h3 { font-size: 27px; }
  .event-guidelines { margin-top: 43px; padding-top: 24px; }
  .guideline-list { grid-template-columns: 1fr; font-size: 12px; }
  .students-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 42px; }
  .student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
  .student-card-photo { aspect-ratio: 4 / 5; }
  .student-card-body { padding: 13px 12px 16px; }
  .student-card-meta { font-size: 8px; }
  .student-card-meta span + span::before { margin-right: 7px; }
  .student-card h3 { font-size: 16px; line-height: 1.45; }
  .student-reading { font-size: 9px; }
  .student-card blockquote { margin: 12px 0; padding-left: 8px; font-size: 10px; }
  .student-eval-heading { font-size: 9px; }
  .student-evaluation > p:not(.student-eval-heading) { font-size: 9px; line-height: 1.7; }
  .student-evaluation > p > span { display: block; margin-bottom: 2px; }
  .headmaster-layout { grid-template-columns: 1fr; gap: 28px; margin-top: 38px; }
  .headmaster-portrait { width: min(78%, 330px); margin: 0 auto; }
  .headmaster-copy h2 { font-size: 31px; }
  .headmaster-copy blockquote { font-size: 13px; }
  .invitation { padding: 76px 24px; }
  .footer-top { align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 24px; }
  .footer-motto { align-self: flex-start; text-align: left; }
  .copyright { gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .student-grid { grid-template-columns: 1fr; }
  .student-card-body { padding: 17px 18px 20px; }
  .student-card h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Official X entry and public related-link registry */
.hero-x-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
  padding: 8px 12px;
  border: 1px solid rgba(28, 99, 132, .36);
  color: #1c6384;
  font-size: 12px;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.hero-x-link:hover,
.hero-x-link:focus-visible { background: rgba(255, 255, 255, .55); border-color: #1c6384; }
.hero-x-link span,
.related-featured-x span { font-size: 15px; }
.primary-nav > a[href="#related-links"] { color: #476b79; }

.related-links {
  background: #edf2ef;
  color: #193642;
}
.related-links .section-index { color: #64787d; }
.related-links-layout {
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: start;
  margin-top: 38px;
}
.related-links-intro .eyebrow { color: #527d89; }
.related-links-intro h2 {
  margin: 18px 0 16px;
  color: #193642;
  font-family: var(--serif);
  font-size: clamp(29px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: .045em;
}
.related-links-intro h2 em { color: #287e9e; }
.related-links-intro > p:not(.eyebrow) {
  color: #4c6872;
  font-size: 13px;
  line-height: 2;
}
.related-featured-x {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(40, 126, 158, .5);
  color: #1a6787;
  font-size: 13px;
  text-decoration: none;
}
.related-featured-x:hover,
.related-featured-x:focus-visible { color: #16485e; border-color: #16485e; }
.related-links-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(25, 54, 66, .28);
}
.related-link-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(100px, auto) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(25, 54, 66, .2);
}
.related-link-number { color: #71858a; font-family: var(--display); font-size: 11px; }
.related-link-anchor { color: #193642; font-family: var(--serif); font-size: 16px; text-decoration: none; }
.related-link-anchor:hover,
.related-link-anchor:focus-visible { color: #1b6a8a; text-decoration: underline; text-underline-offset: 4px; }
.related-link-address { overflow: hidden; color: #718187; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.related-link-actions { display: inline-flex; gap: 6px; }
.related-action-button,
.related-admin-toolbar button,
.related-admin-toggle,
.related-login-row button,
.related-form-actions button {
  border: 1px solid rgba(25, 54, 66, .35);
  background: transparent;
  color: #284d5c;
  cursor: pointer;
  font: inherit;
}
.related-action-button { padding: 5px 8px; font-size: 11px; }
.related-action-button:hover,
.related-admin-toolbar button:hover,
.related-admin-toggle:hover,
.related-login-row button:hover,
.related-form-actions button:hover { background: rgba(40, 126, 158, .08); }
.related-action-danger { color: #8d4e4c; border-color: rgba(141, 78, 76, .38); }
.related-links-empty,
.related-links-status { color: #61767d; font-size: 12px; line-height: 1.8; }
.related-links-empty { padding: 18px 0; }
.related-admin-entry { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(25, 54, 66, .2); }
.related-admin-toggle { padding: 9px 12px; color: #355b69; font-size: 12px; letter-spacing: .04em; }
.related-admin-toggle span { margin-left: 10px; color: #287e9e; }
.related-admin-login,
.related-admin-workspace { max-width: 700px; margin-top: 18px; padding: clamp(18px, 3vw, 28px); border: 1px solid rgba(25, 54, 66, .22); background: rgba(255, 255, 255, .5); }
.related-admin-form { display: grid; gap: 10px; }
.related-admin-form h3 { margin: 0 0 4px; color: #193642; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.related-admin-form label { color: #48636c; font-size: 12px; }
.related-admin-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(25, 54, 66, .32);
  border-radius: 0;
  background: #fffefa;
  color: #193642;
  font: inherit;
  font-size: 13px;
}
.related-admin-form input:focus-visible { outline: 2px solid #287e9e; outline-offset: 2px; }
.related-login-row { display: flex; gap: 10px; }
.related-login-row button,
.related-form-actions button { flex: none; padding: 9px 16px; font-size: 12px; }
.related-admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.related-admin-toolbar p { margin: 0; color: #294d5a; font-size: 12px; }
.related-admin-toolbar button { padding: 7px 11px; font-size: 11px; }
.admin-indicator { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #51826d; }
.related-form-actions { display: flex; gap: 8px; margin-top: 4px; }
.related-form-actions button[type="submit"] { background: #dbeaf0; border-color: rgba(40, 126, 158, .55); color: #174d67; }
.related-admin-message { min-height: 1.4em; margin: 0; color: #3f6956; font-size: 12px; }
.related-admin-message.is-error { color: #9a4c4c; }
.related-admin-toggle[hidden],
.related-admin-login[hidden],
.related-admin-workspace[hidden],
.related-form-actions [hidden],
.related-links-empty[hidden] { display: none !important; }

@media (max-width: 760px) {
  .related-links-layout { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .related-links-intro h2 { font-size: clamp(27px, 8vw, 38px); }
  .related-link-item { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; }
  .related-link-address { grid-column: 2; grid-row: 2; }
  .related-link-actions { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 480px) {
  .hero-x-link { margin-top: 8px; font-size: 11px; }
  .related-link-item { grid-template-columns: 25px minmax(0, 1fr); }
  .related-link-address { grid-column: 2; grid-row: 2; }
  .related-link-actions { grid-column: 2; grid-row: 3; }
  .related-link-actions .related-action-button { flex: none; }
  .related-login-row { flex-direction: column; align-items: stretch; }
  .related-login-row button { min-height: 42px; }
}

.related-links-visibility { color: #60777f; font-size: 11px !important; line-height: 1.8; }


.academy-film {
  position: relative;
  overflow: hidden;
  background-color: #eff4f0;
}
.academy-film-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px,.62fr) minmax(0,1.38fr);
  gap: clamp(34px,7vw,92px);
  align-items: center;
  max-width: 1180px;
  margin-inline: auto;
}
.academy-film-copy .eyebrow { color: #527d89; }
.academy-film-copy h2 {
  margin: 20px 0 17px;
  color: #193642;
  font-family: var(--serif);
  font-size: clamp(30px,4vw,48px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .045em;
}
.academy-film-copy h2 em { color: #287e9e; }
.academy-film-copy > p:not(.eyebrow) { max-width: 34em; color: #506a71; font-size: 13px; line-height: 2; }
.academy-film-source {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(40,126,158,.48);
  color: #1a6787;
  font-size: 12px;
  text-decoration: none;
}
.academy-film-source:hover,
.academy-film-source:focus-visible { color: #16485e; border-color: #16485e; }
.academy-film-frame {
  min-height: 280px;
  padding: clamp(9px,1.8vw,17px);
  border: 1px solid rgba(25,54,66,.23);
  background: rgba(255,254,250,.82);
  box-shadow: none;
}
.academy-film-frame .twitter-tweet {
  max-width: 560px !important;
  margin: 0 auto !important;
}
.academy-film-fallback { margin: 10px 2px 0; color: #64777d; font-size: 10px; line-height: 1.8; }
.academy-film-fallback a { color: #1a6787; text-underline-offset: 3px; }

.related-link-item {
  grid-template-columns: minmax(122px, 180px) minmax(0,1fr) auto;
  gap: 15px;
  align-items: stretch;
  padding: 15px 0;
}
.related-link-thumb-wrap {
  display: grid;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(25,54,66,.16);
  background: #e2ece9;
}
.related-link-thumb-wrap > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.related-link-thumb-fallback {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  background: #e7efec;
  color: #335f6c;
  text-align: center;
}
.related-link-thumb-fallback .fallback-mark { color: #a36570; font-size: 18px; line-height: 1; }
.related-link-thumb-fallback .fallback-domain { max-width: 100%; overflow: hidden; color: #52727c; font-family: var(--display); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.related-link-copy { display: grid; align-content: center; min-width: 0; gap: 4px; }
.related-link-number { color: #71858a; font-family: var(--display); font-size: 10px; letter-spacing: .08em; }
.related-link-anchor { overflow-wrap: anywhere; font-size: 15px; }
.related-link-address { max-width: 100%; }
.related-link-preview-title { overflow: hidden; color: #5a7178; font-size: 10px; line-height: 1.65; text-overflow: ellipsis; }
.related-link-actions { align-self: center; }
.related-link-actions button { min-height: 32px; }
.related-image-help { margin: -2px 0 4px; color: #61777c; font-size: 10px; line-height: 1.8; }
.related-admin-form input[type="file"] { padding: 6px 8px; font-size: 11px; }
.related-image-preview:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(25,54,66,.18);
  background: #f1f6f2;
}
.related-image-preview img { display: block; width: min(180px,38%); max-height: 110px; aspect-ratio: 16/9; object-fit: cover; border: 1px solid rgba(25,54,66,.18); }
.related-image-preview p { margin: 0; color: #587078; font-size: 10px; line-height: 1.7; }
.related-image-clear { justify-self: start; padding: 7px 10px; border: 1px solid rgba(141,78,76,.38); background: transparent; color: #8d4e4c; cursor: pointer; font: inherit; font-size: 10px; }
.related-image-clear:hover,
.related-image-clear:focus-visible { background: rgba(141,78,76,.06); }
.related-image-preview[hidden],
.related-image-clear[hidden] { display: none !important; }

@media (max-width: 760px) {
  .academy-film-layout { grid-template-columns: 1fr; gap: 25px; }
  .academy-film-copy h2 { margin-block: 12px; font-size: clamp(29px,7vw,40px); }
  .academy-film-frame { min-height: 240px; }
  .related-link-item { grid-template-columns: minmax(96px,31%) minmax(0,1fr); gap: 10px 13px; }
  .related-link-thumb-wrap { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .related-link-copy { grid-column: 2; grid-row: 1; }
  .related-link-actions { grid-column: 2; grid-row: 2; justify-self: start; }
}
@media (max-width: 600px) {
  .academy-film { padding-inline: 24px; }
  .academy-film-frame { min-height: 190px; padding: 8px; }
  .related-link-item { grid-template-columns: minmax(90px,30%) minmax(0,1fr); gap: 8px 10px; }
  .related-link-actions { flex-wrap: wrap; }
  .related-link-actions .related-action-button { padding: 5px 7px; }
  .related-admin-workspace { padding: 16px; }
}
