:root {
  color-scheme: dark;
  --white: #fff;
  --ink: #382c27;
  --muted: rgba(255, 255, 255, .68);
  --line: rgba(255, 255, 255, .24);
  --glass: rgba(66, 43, 17, .38);
  --international: #ffb347;
  --sagamihara: #ff8300;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body { width: 100%; margin: 0; min-height: 100%; overflow-x: hidden; background: #10191c; }

body { color: var(--white); }

a { color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

button, a { -webkit-tap-highlight-color: transparent; }

.site-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.slideshow, .slide, .photo-shade {
  position: absolute;
  inset: 0;
}

.slideshow { z-index: 0; background: #162127; }

.slide {
  background-image: var(--desktop-image);
  background-position: var(--position);
  background-size: cover;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 1.5s ease, transform 8s linear;
}

.slide.is-active { opacity: 1; transform: scale(1); }

.photo-shade {
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(24, 20, 24, .67) 0%, rgba(74, 42, 13, .34) 53%, rgba(255, 151, 33, .16) 100%),
    linear-gradient(180deg, rgba(15, 18, 23, .34) 0%, transparent 30%, transparent 68%, rgba(20, 18, 20, .60) 100%);
}

.site-header,
.main-content,
.site-footer { position: relative; z-index: 2; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(24px, 4.2vw, 72px);
}

.site-header { padding-top: clamp(22px, 3vw, 42px); }

.header-note {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
}

.main-content {
  align-self: center;
  width: min(1380px, calc(100% - clamp(48px, 8.4vw, 144px)));
  margin: clamp(22px, 3vh, 42px) auto;
}

.intro { margin-bottom: clamp(22px, 3.2vh, 42px); }

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  color: #fff;
  text-decoration: none;
}

.hero-brand > img {
  width: clamp(82px, 7vw, 112px);
  height: auto;
  filter: drop-shadow(0 5px 18px rgba(0,0,0,.16));
}

.hero-brand-copy { display: block; }

.hero-brand h1 {
  margin: 0;
  font-family: "Kiwi Maru", serif;
  font-size: clamp(2.25rem, 4.2vw, 4.5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: .055em;
  text-shadow: 0 4px 22px rgba(0,0,0,.22);
}

.hero-title-ja {
  display: block;
  margin-top: 9px;
  color: #e9c99e;
  font-size: clamp(.84rem, 1.15vw, 1.08rem);
  font-weight: 700;
  letter-spacing: .22em;
}

.tagline {
  margin: 18px 0 0 calc(clamp(82px, 7vw, 112px) + clamp(18px, 2vw, 30px));
  font-family: "Kiwi Maru", serif;
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .1em;
  text-shadow: 0 3px 18px rgba(0,0,0,.3);
}

.tagline-note {
  margin: 5px 0 0 calc(clamp(82px, 7vw, 112px) + clamp(18px, 2vw, 30px));
  color: rgba(255,255,255,.72);
  font-size: .75rem;
  letter-spacing: .1em;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.school-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, .9fr) minmax(200px, 1.15fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(18px, 2vw, 34px);
  min-height: 230px;
  padding: clamp(22px, 2.3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--glass);
  color: #fff;
  box-shadow: 0 22px 70px rgba(0,0,0,.20), inset 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  overflow: hidden;
}

.school-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.school-card--international { --accent: var(--international); --accent-ink: #a85b00; }
.school-card--sagamihara { --accent: var(--sagamihara); --accent-ink: #a64f00; }

.school-heading { align-self: start; }

.school-type {
  margin: 0 0 5px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.school-heading h2 {
  margin: 0;
  font-family: "Kiwi Maru", serif;
  font-size: clamp(1.45rem, 1.8vw, 1.62rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .055em;
}

.school-name-prefix,
.school-name-main { display: block; }

.school-name-prefix {
  margin-bottom: .18em;
  font-size: .68em;
  letter-spacing: .11em;
}

.school-name-main { white-space: nowrap; }

.latest-news {
  align-self: start;
  min-width: 0;
  padding-left: clamp(18px, 2vw, 30px);
  border-left: 1px solid var(--line);
}

.news-label {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.news-link { text-decoration: none; }

.news-link time {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
}

.news-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(.88rem, 1vw, 1.03rem);
  font-weight: 650;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-link:hover .news-title,
.news-link:focus-visible .news-title { text-decoration: underline; text-underline-offset: .25em; }

.news-list-button {
  grid-column: 2;
  justify-self: stretch;
  width: auto;
  align-self: end;
  margin: 13px 0 0 clamp(18px, 2vw, 30px);
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 4px;
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  color: #fff;
  font: inherit;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  cursor: pointer;
  text-align: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s ease;
}

.news-list-button:hover,
.news-list-button:focus-visible {
  border-color: var(--accent);
  background: rgba(255,255,255,.17);
  color: var(--accent);
}

.news-list-button:active { transform: translateY(1px) scale(.98); }

.school-link {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 4px;
  background: rgba(255,255,255,.07);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .12s ease;
}

.school-link > span:last-child {
  flex: 0 0 auto;
  line-height: 1;
}

.school-link-mobile-label { display: none; }

.school-instagram-link { margin-top: 10px; padding-block: 10px; }
.school-instagram-content { display: flex; align-items: center; gap: 11px; min-width: 0; }
.school-instagram-content > span { display: flex; flex-direction: column; justify-content: center; gap: 3px; line-height: 1.12; }
.school-instagram-content br { display: none; }
.school-instagram-icon { width: 27px; height: 27px; flex: 0 0 auto; transition: transform .2s ease, filter .2s ease; }
.school-instagram-name { font-size: .72em; color: rgba(255,255,255,.72); line-height: 1.1; transition: color .2s ease; }

.school-link:hover, .school-link:focus-visible {
  border-color: var(--accent);
  background: rgba(255,255,255,.13);
  color: var(--accent);
}

.school-instagram-link:hover,
.school-instagram-link:focus-visible {
  border-color: #ff6f9f;
  background: rgba(255,111,159,.11);
  color: #ff91b7;
}

.school-instagram-link:hover .school-instagram-name,
.school-instagram-link:focus-visible .school-instagram-name { color: #ff91b7; }

.school-instagram-link:hover .school-instagram-icon,
.school-instagram-link:focus-visible .school-instagram-icon {
  transform: scale(1.07);
  filter: drop-shadow(0 3px 8px rgba(255,56,126,.24));
}

.school-instagram-link:active { transform: translateY(1px) scale(.99); }

.site-footer {
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  color: rgba(255,255,255,.72);
  font-size: .68rem;
  letter-spacing: .055em;
}

.site-footer p { margin: 0; }

.instagram-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.instagram-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 7px;
  width: 168px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 6px;
  background: rgba(22,18,20,.24);
  color: rgba(255,255,255,.9);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color .2s ease, border-color .2s ease, transform .12s ease, box-shadow .2s ease;
}

.instagram-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.instagram-link > span { text-align: center; }
.instagram-link > span:last-child { justify-self: end; }
.instagram-link:hover,
.instagram-link:focus-visible { border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.13); box-shadow: 0 7px 20px rgba(0,0,0,.16); }
.instagram-link:active { transform: translateY(1px) scale(.98); box-shadow: none; }

@media (min-width: 821px) {
  .site-footer .instagram-links { display: none; }
}

.slide-controls { display: flex; align-items: center; gap: 16px; }

.pause-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.75);
  font: inherit;
  cursor: pointer;
}

.pause-label { font-size: .62rem; font-weight: 800; letter-spacing: .14em; }

.slide-dots { display: flex; gap: 7px; }

.slide-dot {
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.28);
  transition: background .3s, width .3s;
}

.slide-dot.is-active { width: 38px; background: #fff; }

:focus-visible { outline: 2px solid var(--sagamihara); outline-offset: 4px; }

.drawer-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(55, 39, 30, .28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.news-drawer {
  position: fixed;
  z-index: 21;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  padding: clamp(28px, 4vw, 54px);
  background: #fffaf3;
  color: var(--ink);
  box-shadow: -18px 0 70px rgba(68, 42, 25, .18);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .42s cubic-bezier(.22,.75,.2,1), visibility .42s;
}

.news-drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-backdrop[hidden] { display: none; }

.drawer-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.drawer-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; color: var(--sagamihara); font-size: .68rem; font-weight: 850; letter-spacing: .24em; }
.drawer-kicker::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .65; }
.drawer-header h2 { margin: 0; max-width: none; overflow-wrap: normal; word-break: keep-all; font-family: "Kiwi Maru", serif; font-size: clamp(1.35rem, 2.35vw, 1.85rem); font-weight: 500; letter-spacing: .018em; line-height: 1.25; }
.drawer-title-prefix,
.drawer-title-school { display: block; white-space: nowrap; }
.drawer-close { position: relative; flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid rgba(96,64,11,.22); border-radius: 4px; background: rgba(255,255,255,.58); color: var(--ink); font-size: 0; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .15s ease; }
.drawer-close::before,
.drawer-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 21px; height: 2px; border-radius: 1px; background: currentColor; }
.drawer-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.drawer-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.drawer-close:hover,
.drawer-close:focus-visible { border-color: var(--tab-accent, var(--sagamihara)); background: #fff; }
.drawer-close:active { transform: scale(.94); }

.drawer-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 28px; padding: 4px; border: 1px solid rgba(96,64,11,.12); border-radius: 7px; background: rgba(96,64,11,.07); }
.drawer-title-row { display: block; }
.drawer-limit-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 0; border: 0; color: #705c4f; font-size: .65rem; font-weight: 800; letter-spacing: .08em; line-height: 1.2; }
.drawer-limit-note::before { content: ""; width: 18px; height: 2px; background: var(--tab-accent, var(--sagamihara)); }
.drawer-tabs button { position: relative; padding: 12px 5px; border: 0; border-radius: 4px; background: transparent; color: #796a61; font-size: .7rem; font-weight: 800; letter-spacing: .06em; cursor: pointer; transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .12s ease; }
.drawer-tabs button:hover { color: var(--ink); background: rgba(255,255,255,.48); }
.drawer-tabs button:active { transform: scale(.98); }
.drawer-tabs button[aria-selected="true"] { color: var(--ink); background: #fffaf3; box-shadow: inset 0 -3px var(--tab-accent, var(--international)), 0 3px 12px rgba(70,47,30,.10); }

.drawer-list { flex: 1; overflow-y: auto; padding: 8px 4px 10px 0; }
.drawer-load-state { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 180px; text-align: center; }
.drawer-empty { margin: 0; color: #806f65; font-size: .82rem; line-height: 1.6; }
.drawer-retry-button { min-height: 42px; padding: 9px 16px; border: 1px solid rgba(96,64,11,.28); border-radius: 4px; background: #fffaf3; color: var(--ink); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .12s ease; }
.drawer-retry-button:hover,
.drawer-retry-button:focus-visible { border-color: var(--tab-accent, var(--sagamihara)); background: var(--tab-accent, var(--sagamihara)); color: #2e2118; }
.drawer-retry-button:active { transform: translateY(1px) scale(.98); }
.drawer-news-item { display: block; padding: 19px 4px; border-bottom: 1px solid var(--line); border-bottom-color: rgba(96, 64, 11, 0.2); text-decoration: none; }
.drawer-news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.drawer-news-item time { display: block; color: #806f65; font-size: .72rem; letter-spacing: .07em; }
.drawer-news-categories { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.drawer-news-category { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: #75665d; font-size: .6rem; font-weight: 700; line-height: 1.2; }
.drawer-news-category::before { content: "#"; margin-right: 2px; color: var(--tab-accent, var(--international)); font-weight: 800; }
.drawer-news-title { display: -webkit-box; overflow: hidden; font-size: .94rem; font-weight: 650; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.drawer-news-item:hover .drawer-news-title { text-decoration: underline; text-underline-offset: .25em; }
.drawer-site-link { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; margin-top: 20px; padding: 10px 10px 10px 19px; overflow: hidden; border: 1px solid rgba(56,44,39,.88); border-radius: 4px; background: linear-gradient(135deg, #382c27 0%, #584138 100%); color: #fff; font-size: .78rem; font-weight: 750; letter-spacing: .025em; text-decoration: none; box-shadow: 0 10px 24px rgba(56,44,39,.14); transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease; }
.drawer-site-link::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tab-accent, var(--sagamihara)); }
.drawer-site-arrow { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; margin-left: auto; border: 1px solid rgba(255,255,255,.18); border-radius: 3px; background: rgba(255,255,255,.09); font-size: 1rem; line-height: 1; transition: background-color .2s ease, transform .2s ease; }
.drawer-site-link:hover,
.drawer-site-link:focus-visible { background: #59443a; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(56,44,39,.22); }
.drawer-site-link:hover .drawer-site-arrow,
.drawer-site-link:focus-visible .drawer-site-arrow { background: var(--tab-accent, var(--sagamihara)); transform: translate(1px, -1px); }
.drawer-site-link:active { transform: translateY(1px) scale(.985); background: #241c19; box-shadow: none; }
body.drawer-open { overflow: hidden; }

/* Compact desktop: bridge the gap between tablet and wide desktop. */
@media (min-width: 1181px) and (max-width: 1450px) {
  .main-content {
    width: calc(100% - 72px);
  }

  .school-card {
    grid-template-columns: minmax(215px, 1.12fr) minmax(180px, .88fr);
    column-gap: clamp(16px, 1.5vw, 24px);
    padding: clamp(20px, 2vw, 28px);
  }

  .school-type { font-size: .92rem; }
  .school-heading h2 {
    font-size: clamp(1.4rem, calc(.74rem + .89vw), 1.55rem);
    letter-spacing: .035em;
  }

  .latest-news { padding-left: clamp(16px, 1.6vw, 22px); }
  .news-list-button { margin-left: clamp(16px, 1.6vw, 22px); }
  .school-link { font-size: .72rem; }
}

/* Tablet landscape: keep the two schools side by side, but give long names
   their own row so they never collide with the news column. */
@media (min-width: 821px) and (max-width: 1180px) {
  .main-content {
    width: calc(100% - 48px);
    margin-block: 20px;
  }

  .hero-brand > img { width: 76px; }
  .hero-brand h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
  .tagline { font-size: 1.1rem; }

  .school-card {
    --mobile-action-width: clamp(104px, 25vw, 168px);
    grid-template-columns: minmax(0, 1fr) var(--mobile-action-width);
    grid-template-rows: auto auto auto;
    min-height: 0;
    padding: 22px 24px 20px;
    column-gap: 18px;
  }

  .school-heading {
    grid-column: 1 / -1;
    min-width: 0;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
  }

  .school-type { margin-bottom: 4px; font-size: .78rem; }
  .school-heading h2 {
    font-size: clamp(1.28rem, 2.45vw, 1.5rem);
    line-height: 1.16;
    letter-spacing: .035em;
  }

  .school-name-prefix { font-size: .6em; }

  .latest-news {
    grid-column: 1;
    align-self: center;
    margin-top: 13px;
    padding: 0;
    border-left: 0;
  }

  .news-label { margin-bottom: 6px; }
  .news-link time { margin-bottom: 3px; }
  .news-title { font-size: .78rem; line-height: 1.45; }

  .news-list-button {
    grid-column: 2;
    align-self: center;
    justify-self: end;
    width: auto;
    margin: 13px 0 0 14px;
    padding: 7px 14px;
    white-space: nowrap;
  }

  .school-link {
    margin-top: 13px;
    padding-top: 11px;
    font-size: .68rem;
    line-height: 1.35;
  }
}

@media (max-width: 820px) {
  .site-shell { min-height: 100svh; overflow-x: hidden; overflow-y: auto; }

  .slide {
    background-image: var(--mobile-image);
    background-position: var(--mobile-position);
  }

  .photo-shade {
    background:
      linear-gradient(180deg, rgba(22,21,27,.56) 0%, rgba(74,42,13,.20) 31%, rgba(58,34,16,.38) 62%, rgba(20,18,22,.78) 100%);
  }

  .site-header { justify-content: center; padding: 12px 20px 0; }
  .header-note { display: none; }

  .main-content {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin: 10px auto 12px;
  }

  .intro { margin-bottom: 20px; text-align: center; }
  .hero-brand { flex-direction: column; gap: 0; width: 100%; max-width: 100%; }
  .hero-brand-copy { width: 100%; min-width: 0; }
  .hero-brand > img { width: 80px; margin-bottom: 15px; }
  .hero-brand h1 {
    white-space: nowrap;
    max-width: 100%;
    font-size: clamp(.92rem, 4.3vw, 1.12rem);
    letter-spacing: 0;
  }
  .desktop-title-break { display: none; }
  .hero-title-ja { margin-top: 3px; font-size: .68rem; letter-spacing: .14em; }
  .tagline { margin: 8px 0 0; font-size: .9rem; line-height: 1.4; }
  .tagline-note { display: none; }

  .school-grid { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 100%; gap: 10px; }

  .school-card {
    --mobile-action-width: clamp(104px, 25vw, 168px);
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    padding: 14px 18px 12px;
    column-gap: 15px;
    background: rgba(69, 43, 14, .46);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .school-heading,
  .latest-news { min-width: 0; }

  .school-heading {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    padding-right: calc(var(--mobile-action-width) + 14px);
    border-bottom: 1px solid var(--line);
  }

  .school-type { margin-bottom: 3px; font-size: .58rem; }
  .school-heading h2 {
    font-size: clamp(1rem, 4.7vw, 1.22rem);
    line-height: 1.2;
    letter-spacing: .03em;
  }
  .school-name-prefix {
    margin-bottom: .12em;
    font-size: .62em;
  }
  .latest-news {
    grid-column: 1;
    align-self: center;
    margin-top: 8px;
    padding: 0;
    border-top: 0;
    border-left: 0;
  }
  .news-label { margin-bottom: 4px; font-size: .53rem; }
  .news-link time { margin-bottom: 2px; font-size: .57rem; }
  .news-title { font-size: .53rem; line-height: 1.35; }
  .news-list-button {
    grid-column: 2;
    justify-self: stretch;
    width: var(--mobile-action-width);
    align-self: center;
    margin: 8px 0 0 12px;
    min-height: 40px;
    padding: 6px 13px;
    border-radius: 4px;
    background: rgba(255,255,255,.11);
    box-shadow: inset 0 1px rgba(255,255,255,.08);
    font-size: .58rem;
    text-align: center;
    white-space: nowrap;
  }

  .school-link {
    position: absolute;
    z-index: 1;
    top: 14px;
    right: 18px;
    grid-column: auto;
    width: var(--mobile-action-width);
    min-height: 54px;
    margin: 0;
    padding: 8px 9px;
    border-color: transparent;
    border-radius: 4px;
    justify-content: center;
    background: color-mix(in srgb, var(--accent) 68%, transparent);
    color: #fff;
    font-size: .62rem;
    line-height: 1.35;
    letter-spacing: .04em;
  }
  .school-link-name,
  .school-link-label,
  .school-link-prefix,
  .school-link .link-break { display: none; }
  .school-link-mobile-label { display: inline; }
  .school-instagram-link { display: none; }

  .school-link > span:last-child {
    position: absolute;
    top: 7px;
    right: 7px;
    font-size: .78em;
    opacity: .68;
    transition: opacity .2s ease, transform .2s ease;
  }

  .school-link:hover,
  .school-link:focus-visible {
    border-color: rgba(255,255,255,.72);
    background: var(--accent);
    color: #2e2118;
  }

  .school-link:hover > span:last-child,
  .school-link:focus-visible > span:last-child {
    opacity: 1;
    transform: translate(1px, -1px);
  }

  .school-link:active {
    transform: translateY(1px) scale(.98);
    background: color-mix(in srgb, var(--accent) 86%, black);
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    padding: 0 16px max(14px, env(safe-area-inset-bottom));
    text-align: center;
  }

  .slide-controls { order: 2; }
  .instagram-links { order: 0; width: 100%; max-width: 350px; flex-wrap: wrap; gap: 6px; }
  .instagram-link { flex: 1 1 0; width: auto; min-width: 0; min-height: 44px; padding: 9px 11px; font-size: .52rem; }
  .instagram-icon { width: 17px; height: 17px; }
  .site-footer p { order: 1; font-size: .59rem; }
  .news-drawer {
    width: calc(100% - 28px);
    padding: 24px 20px max(24px, env(safe-area-inset-bottom));
  }
  .drawer-news-item { padding-block: 15px; }
  .drawer-news-title { font-size: .8rem; line-height: 1.45; }
}

@media (max-width: 360px) {
  .hero-brand h1 { font-size: 1rem; }

  .school-card {
    --mobile-action-width: 92px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 14px;
    column-gap: 10px;
  }

  .news-list-button {
    margin-left: 8px;
    padding-inline: 11px;
  }

  .school-heading { padding-right: calc(var(--mobile-action-width) + 10px); }

  .school-link {
    right: 14px;
    width: var(--mobile-action-width);
    padding-inline: 7px;
    font-size: .56rem;
  }
}

@media (max-height: 690px) and (max-width: 820px) {
  .site-header { padding-top: 12px; }
  .brand img { width: 38px; }
  .main-content { margin-block: 8px 12px; }
  .intro { margin-bottom: 11px; }
  .intro-kicker { display: none; }
  .hero-brand h1 { font-size: clamp(.9rem, 4.2vw, 1.05rem); }
  .tagline { font-size: .75rem; line-height: 1.45; }
  .school-card { padding-block: 12px 10px; }
  .school-link { margin: 0; padding: 8px 9px; }
  .site-footer { gap: 7px; padding-bottom: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: opacity .2s linear; transform: none; }
}
