/* Scroll chapters: calm tonal changes and directional entrances. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: linear-gradient(180deg, #f8f7f2 0%, #f4f8f6 48%, #f8f7f2 100%);
}

.header,
.hero {
  position: relative;
}

.hero { isolation: isolate; }

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -84px -100vw 0;
  background:
    radial-gradient(circle at 82% 28%, rgba(19, 168, 137, .12), transparent 28%),
    linear-gradient(135deg, #fbfaf6 0%, #f1f8f5 100%);
}

.intro,
.feature,
.process,
.blog,
.location,
.exam-guide,
.education-news {
  position: relative;
  isolation: isolate;
}

.intro::before,
.process::before,
.blog::before,
.location::before,
.exam-guide::before,
.education-news::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 -100vw;
}

.intro::before { background: #edf6f2; }
.process::before { background: #edf3f6; }
.blog::before { background: #fbf6eb; }
.location::before { background: #eef5f0; }
.exam-guide::before { background: #f8f4ea; }
.education-news::before { background: #f0f5f7; }

@media (min-width: 901px) {
  .hero::before {
    background-attachment: fixed;
    background-position: center top;
  }
}

.feature-stack {
  position: relative;
  z-index: 0;
}

.feature {
  isolation: isolate;
  border-top-color: rgba(18, 36, 49, .1);
}

.feature::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 -100vw;
  background:
    radial-gradient(circle at 88% 16%, rgba(201, 154, 46, .10), transparent 22%),
    linear-gradient(135deg, #fbfaf6 0%, #f7f2e8 100%);
}

.feature:nth-child(2)::before {
  background:
    radial-gradient(circle at 14% 72%, rgba(56, 124, 157, .10), transparent 25%),
    linear-gradient(135deg, #eaf3f7 0%, #f4f8fa 100%);
}
.feature:nth-child(3)::before {
  background:
    repeating-linear-gradient(0deg, rgba(178, 136, 73, .035) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, #fbf5e8 0%, #f8efe0 100%);
}
.feature:nth-child(4)::before {
  background:
    radial-gradient(circle at 84% 76%, rgba(76, 91, 145, .10), transparent 24%),
    linear-gradient(135deg, #eef1f8 0%, #f6f7fb 100%);
}
.feature:nth-child(5)::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(19, 168, 137, .11), transparent 23%),
    linear-gradient(135deg, #e8f5f0 0%, #f2f8f5 100%);
}

.school-calendar {
  background: linear-gradient(145deg, #e9f4ef 0%, #f2f7f5 55%, #eaf2f5 100%);
}

.contact {
  background: linear-gradient(135deg, #122431, #163a41);
  box-shadow: 0 30px 80px rgba(18, 36, 49, .18);
}

/* Exam countdown label and clearer title contrast. */
.exam-guide .section-head h2 { color: #173141; }
.exam-countdown-panel { min-width: 0; }
.countdown-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #173141;
}
.countdown-title span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #13a889;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(19, 168, 137, .22);
}
.countdown-title b { font-size: 15px; }

/* Distinct news categories. */
.news-group-admission,
.news-group-high,
.news-group-middle,
.news-group-elementary {
  padding: 22px 20px 20px;
  border: 1px solid;
  border-radius: 20px;
}
.news-group-admission { border-color: #e2c98d; background: #fbf5e7; }
.news-group-high { border-color: #bde2d8; background: #f0f9f6; }
.news-group-middle { border-color: #bfd8e7; background: #eef6fa; }
.news-group-elementary { border-color: #d5dfad; background: #f6f8ea; }
.news-group .education-news-grid:has(> :only-child) {
  grid-template-columns: minmax(240px, 420px);
  justify-content: center;
}

/* Illustration fills the intentional breathing room beside the learning flow. */
.process-illustration {
  overflow: hidden;
  margin: 34px 0 0;
  max-width: 380px;
  border: 1px solid rgba(18, 36, 49, .12);
  border-radius: 26px;
  background: #f8f6ef;
  box-shadow: 0 22px 54px rgba(18, 36, 49, .12);
}
.process-illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 901px) {
  .process { align-items: stretch; }
  .process > .section-head {
    display: flex;
    flex-direction: column;
  }
  .process-illustration {
    position: relative;
    flex: 1 1 0;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin-bottom: 0;
  }
  .process-illustration img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

/* Blog cards keep matching title, image and action baselines. */
.blog-category {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid rgba(18, 36, 49, .16);
}
.blog-category-management {
  padding-top: 0;
  border-top: 0;
}
.blog-category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.blog-category-head p {
  margin: 0 0 5px;
  color: #08745f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}
.blog-category-head h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}
.blog-category-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #0b2c38;
  color: #fff;
  font-size: 14px;
}
.blog-category-analysis .blog-category-head strong { background: #c89122; }
.blog-category .blog-grid { margin-top: 26px; }
.blog-grid { grid-auto-rows: 1fr; }
.blog-category .blog-grid .post.reveal {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.blog-category .blog-grid .post.reveal:hover {
  transform: translateY(-8px);
}
.post {
  height: 100%;
  min-height: 390px;
}
.post h3 {
  display: -webkit-box;
  overflow: hidden;
  height: 4.2em;
  margin-bottom: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.post-thumb {
  display: block;
  width: 100%;
  height: 150px;
  margin: 0 0 16px;
  border: 1px solid rgba(18, 36, 49, .1);
  border-radius: 13px;
  background: #eef3f1;
  object-fit: cover;
}
.post-thumb-placeholder {
  background:
    linear-gradient(135deg, rgba(19, 168, 137, .16), transparent 58%),
    #eef3f1;
}

/* Keep Kakao directions inside the academy page. */
.directions-trigger {
  border: 0;
  cursor: pointer;
}
.directions-panel {
  position: fixed;
  z-index: 2147483000;
  inset: 20px max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 26px;
  overflow: hidden;
  border: 1px solid #cbded8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 56px rgba(18, 36, 49, .11);
}
.directions-panel[hidden] { display: none; }
.directions-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.directions-head .eyebrow { margin-bottom: 6px; }
.directions-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
}
.directions-head p:last-child {
  margin: 5px 0 0;
  color: #60707b;
  font-size: 13px;
}
.directions-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
.directions-app-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: #fee500;
  color: #281f1f;
  font-size: 12px;
  font-weight: 800;
}
.directions-mode {
  display: none;
}
.directions-head .directions-location-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 9px;
  border-radius: 9px;
  background: #e9f7f2;
  color: #08745f;
  font-size: 11px;
  font-weight: 700;
}
.directions-location-status::before { content: '⌖'; font-size: 14px; }
.directions-close {
  flex: 0 0 auto;
  border: 1px solid #d6e1dd;
  border-radius: 999px;
  padding: 8px 13px;
  background: #f4f8f6;
  color: #122431;
  font-weight: 800;
  cursor: pointer;
}
.directions-close > span[aria-hidden] { font-size: 18px; vertical-align: -1px; }
.directions-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0 0 10px;
}
.directions-search label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid #cfdbd7;
  border-radius: 11px;
  background: #fff;
}
.directions-search label span {
  flex: 0 0 auto;
  color: #08745f;
  font-size: 11px;
  font-weight: 800;
}
.directions-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #122431;
  font-size: 13px;
  font-weight: 700;
}
.directions-swap,
.directions-submit {
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
}
.directions-swap { background: #e9f7f2; color: #08745f; font-size: 20px; }
.directions-submit { padding: 0 17px; background: #122431; color: #fff; font-size: 12px; }
.directions-frame-wrap {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d6dfdc;
  border-radius: 18px;
  background: #f3f6f5;
}
.directions-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.directions-help {
  margin: 11px 2px 0;
  color: #778680;
  font-size: 11px;
  text-align: right;
}
.directions-help a { color: #08745f; font-weight: 800; }
body.directions-open { overflow: hidden; }
body.directions-open .side-dock,
body.directions-open .mobile-bar {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Compact live weather above the chapter rail. */
.side-dock {
  position: fixed;
  z-index: 45;
  top: 16px;
  right: 12px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}
.side-dock > * { pointer-events: auto; }
.side-dock .rail-weather,
.side-dock .page-rail {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  transform: none;
}
.side-dock .rail-weather { flex: 0 0 auto; }
.side-dock .page-rail {
  flex: 0 0 310px;
  height: 310px;
  min-height: 0;
}
.side-dock .page-rail .rail-progress {
  height: 100%;
  min-height: 0;
}
.side-dock .page-rail nav { flex: 1 1 auto; }

.rail-weather {
  position: fixed;
  z-index: 45;
  top: 16px;
  right: 12px;
  width: 94px;
  padding: 11px 9px;
  border: 1px solid rgba(18, 36, 49, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 28px rgba(18, 36, 49, .12);
  color: #0b2c38;
  text-align: center;
  backdrop-filter: blur(10px);
}
.weather-day + .weather-day {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(18, 36, 49, .12);
}
.weather-location {
  display: block;
  margin: -2px 0 9px;
  padding: 5px 4px;
  border-radius: 9px;
  background: #dff3ed;
  color: #08745f;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.weather-day-title {
  display: block;
  margin-bottom: 6px;
  color: #0b2c38;
  font-size: 13px;
  line-height: 1;
}
.weather-icon {
  display: block;
  font-size: 28px;
  line-height: 1;
}
.weather-now {
  display: grid;
  justify-items: center;
  margin-top: 7px;
}
.weather-now small {
  color: #66766f;
  font-size: 8px;
  font-weight: 700;
}
.weather-now b {
  margin-top: 2px;
  font-size: 10px;
}
.weather-now strong {
  margin-top: 1px;
  color: #08745f;
  font-size: 20px;
  line-height: 1.2;
}
.weather-range {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 7px;
  font-size: 9px;
}
.weather-range span {
  padding: 4px 2px;
  border-radius: 8px;
  background: #edf6f2;
  white-space: nowrap;
}
.weather-range span:first-child { color: #d65a2b; }
.weather-range span:last-child { color: #3976b7; }
.weekly-weather-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(18, 36, 49, .12);
  color: #08745f;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}
.weekly-weather-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #13a889;
  cursor: pointer;
}
.weekly-weather-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #122431;
}
.weekly-weather-dialog::backdrop {
  background: rgba(8, 25, 34, .58);
  backdrop-filter: blur(3px);
}
.weekly-weather-panel {
  padding: 22px;
  overflow: auto;
  max-height: calc(100dvh - 32px);
  border: 1px solid #cbded8;
  border-radius: 22px;
  background: #f7fbf9;
  box-shadow: 0 24px 70px rgba(18, 36, 49, .24);
}
.weekly-weather-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.weekly-region-toggle span {
  display: block;
  color: #08745f;
  font-size: 12px;
  font-weight: 800;
}
.weekly-region-toggle {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  margin: 0 0 5px;
  padding: 5px 9px;
  border: 1px solid #a9d8cb;
  border-radius: 9px;
  background: #e4f5f0;
  color: #08745f;
  cursor: pointer;
}
.weekly-region-toggle b { font-size: 10px; transition: transform .2s; }
.weekly-region-toggle[aria-expanded="true"] b { transform: rotate(180deg); }
.weekly-weather-panel h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
}
.weekly-weather-panel header > button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #cfdbd7;
  border-radius: 999px;
  background: #fff;
  color: #122431;
  font-weight: 800;
  cursor: pointer;
}
.weekly-region-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: -2px 0 14px;
  padding: 12px;
  border: 1px solid #cfe2dc;
  border-radius: 13px;
  background: #edf7f4;
}
.weekly-region-picker[hidden] { display: none; }
.weekly-region-picker label { display: grid; gap: 4px; min-width: 0; }
.weekly-region-picker label span { color: #52635d; font-size: 10px; font-weight: 800; }
.weekly-region-picker select {
  width: 100%;
  min-height: 38px;
  padding: 6px 24px 6px 8px;
  border: 1px solid #bed4cd;
  border-radius: 9px;
  background: #fff;
  color: #122431;
  font-size: 12px;
  font-weight: 700;
}
.weekly-region-picker select:disabled { opacity: .58; }
.weekly-region-picker p {
  grid-column: 1 / -1;
  margin: 1px 0 0;
  color: #08745f;
  font-size: 10px;
  font-weight: 700;
}
.weekly-region-source {
  grid-column: 1 / -1;
  color: #71807a;
  font-size: 8px;
}
.weekly-region-source a { color: inherit; text-decoration: underline; }
.weekly-weather-list {
  display: block;
}
.weekly-chart {
  padding: 13px 8px 2px;
  border-bottom: 1px solid #d9e5e0;
}
.weekly-chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: 0 8px 4px;
  font-size: 11px;
  font-weight: 800;
}
.weekly-chart-legend .high { color: #e35d30; }
.weekly-chart-legend .low { color: #3976b7; }
.weekly-chart-canvas {
  position: relative;
  height: 174px;
  margin: 0 14px;
}
.weekly-chart-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.weekly-chart-canvas line,
.weekly-chart-canvas polyline {
  vector-effect: non-scaling-stroke;
  fill: none;
}
.weekly-chart-grid line { stroke: #dce7e3; stroke-width: 1; stroke-dasharray: 3 5; }
.weekly-line-high { stroke: #e35d30; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.weekly-line-low { stroke: #3976b7; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.weekly-chart-values { position: absolute; inset: 0; }
.weekly-value {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  min-width: 28px;
  padding: 2px 3px;
  border-radius: 6px;
  background: #f7fbf9;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}
.weekly-value::after {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid #f7fbf9;
  border-radius: 50%;
  content: '';
}
.weekly-value.high { color: #e35d30; transform: translate(-50%, -145%); }
.weekly-value.high::after { bottom: -7px; background: #e35d30; transform: translateX(-50%); }
.weekly-value.low { color: #3976b7; transform: translate(-50%, 42%); }
.weekly-value.low::after { top: -7px; background: #3976b7; transform: translateX(-50%); }
.weekly-outlook {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding-top: 12px;
}
.weekly-outlook-day {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 7px 3px;
  text-align: center;
}
.weekly-outlook-day.today { color: #08745f; }
.weekly-outlook-day .weekly-date { font-size: 12px; line-height: 1.2; }
.weekly-outlook-day .weekly-date span { display: block; margin-top: 2px; color: #65756f; font-size: 10px; font-weight: 700; }
.weekly-outlook-day .weekly-icon { font-size: 28px; line-height: 1; }
.weekly-outlook-day .weekly-summary { font-size: 11px; line-height: 1.25; word-break: keep-all; }
.weekly-weather-loading { grid-column: 1 / -1; margin: 24px 0; text-align: center; }

@media (max-width: 1280px) {
  .side-dock { right: 7px; }

  .rail-weather {
    right: 7px;
    width: 78px;
    padding-inline: 6px;
  }
}

/* A clear editorial call-to-action rather than another list item. */
.feature a.feature-focus-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 13px 18px;
  border: 1px solid #08745f;
  border-radius: 12px;
  background: #08745f;
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 116, 95, .2);
  transition: transform .22s, box-shadow .22s, background .22s;
}
.feature a.feature-focus-link::before {
  content: '↗';
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #08745f;
  font-size: 14px;
}
.feature a.feature-focus-link:hover,
.feature a.feature-focus-link:focus-visible {
  background: #13a889;
  box-shadow: 0 14px 30px rgba(8, 116, 95, .28);
  transform: translateY(-3px);
}

.reveal {
  will-change: opacity, transform;
  transition-duration: .85s;
  transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}

.hero-copy.reveal,
.intro.reveal,
.section-head.reveal,
.location-copy.reveal {
  transform: translate3d(-54px, 0, 0);
}

.hero-aside.reveal,
.map-wrap.reveal,
.school-tool.reveal {
  transform: translate3d(54px, 0, 0);
}

.feature.reveal { transform: translate3d(-58px, 0, 0); }
.feature.reverse.reveal { transform: translate3d(58px, 0, 0); }
.manifesto.reveal { transform: translate3d(0, 38px, 0) scale(.975); }
.exam-tabs.reveal,
.exam-schedule-grid.reveal { transform: translate3d(0, 32px, 0); }
.post.reveal:nth-child(odd),
.education-news-card.reveal:nth-child(odd) { transform: translate3d(-30px, 0, 0); }
.post.reveal:nth-child(even),
.education-news-card.reveal:nth-child(even) { transform: translate3d(30px, 0, 0); }
.flow li.reveal { transform: translate3d(34px, 0, 0); }
.flow li.reveal:nth-child(2) { transition-delay: .04s; }
.flow li.reveal:nth-child(3) { transition-delay: .08s; }
.flow li.reveal:nth-child(4) { transition-delay: .12s; }
.flow li.reveal:nth-child(5) { transition-delay: .16s; }
.flow li.reveal:nth-child(6) { transition-delay: .2s; }
.flow li.reveal:nth-child(7) { transition-delay: .24s; }

.reveal.visible { transform: none; }

@media (max-width: 600px), (max-aspect-ratio: 21/20) {
  .side-dock {
    top: 12px;
    right: 4px;
    bottom: 76px;
    gap: 10px;
  }
  .side-dock .page-rail {
    flex: 1 1 auto;
    height: auto;
  }

  .header {
    height: auto;
    min-height: 146px;
    padding: 12px 84px 14px 18px;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
  }
  .header .brand { width: 100%; }
  .header .mobile-account {
    width: 100%;
    margin-top: 2px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px 10px;
  }
  .header .member-area {
    min-width: 0;
    justify-content: flex-start;
  }
  .header .member-session {
    align-items: flex-start;
    white-space: normal;
  }
  .header nav { top: 146px; }

  .news-group .education-news-card {
    height: auto;
    min-height: 132px;
    padding: 11px 13px;
  }
  .news-group .education-news-card h3 {
    min-height: calc(3 * 1.4em);
    margin: 6px 0 8px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .news-group .education-news-card > span { font-size: 9px; }
  .news-group .education-news-card .news-full-link {
    padding: 5px 8px;
    font-size: 10px;
  }

  .directions-panel {
    position: fixed !important;
    z-index: 2147483000;
    inset: 0;
    display: flex;
    width: auto;
    height: 100dvh;
    min-height: 100dvh;
    max-width: none;
    margin: 0;
    padding: 6px;
    overflow: hidden;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    background: #f4f8f6;
    box-shadow: none;
  }
  .directions-panel[hidden] { display: none; }
  .directions-head {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 5px;
    row-gap: 3px;
    margin-bottom: 4px;
  }
  .directions-head > div:first-child { display: contents; }
  .directions-head .eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 1px;
    font-size: 10px;
    letter-spacing: .12em;
  }
  .directions-head h3 { display: none; }
  .directions-head > div:first-child > p:not(.eyebrow):not(.directions-location-status) { display: none; }
  .directions-head .directions-location-status {
    grid-column: 1 / 4;
    grid-row: 2;
    display: block;
    margin: 0;
    padding: 3px 5px;
    font-size: 10px;
    line-height: 1.35;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .directions-location-status::before { font-size: 10px; }
  .directions-actions {
    display: contents;
  }
  .directions-app-link {
    grid-column: 2;
    grid-row: 1;
    min-height: 20px;
    padding: 2px 6px;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
  }
  .directions-close {
    grid-column: 4;
    grid-row: 1 / 3;
    align-self: start;
    min-width: 102px;
    min-height: 44px;
    padding: 6px 9px;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .directions-close .directions-close-label { display: inline; }
  .directions-close > span[aria-hidden] { margin-left: 2px; font-size: 13px; }
  .directions-search {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 3px;
    margin-bottom: 4px;
  }
  .directions-search label { min-height: 30px; padding: 3px 7px; border-radius: 8px; }
  .directions-search label:first-child { grid-column: 1; grid-row: 1; }
  .directions-search label:nth-of-type(2) { grid-column: 1; grid-row: 2; }
  .directions-search label span { font-size: 10px; }
  .directions-search input { font-size: 12px; }
  .directions-swap { grid-column: 2; grid-row: 1 / 3; }
  .directions-submit { grid-column: 1 / -1; min-height: 29px; border-radius: 8px; }
  .directions-mode {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    flex: 0 0 auto;
    margin: 0 0 4px;
  }
  .directions-mode button {
    min-width: 0;
    min-height: 31px;
    padding: 3px 2px;
    border: 1px solid #cfdbd7;
    border-radius: 9px;
    background: #fff;
    color: #52635d;
    font-size: 10px;
    font-weight: 800;
  }
  .directions-mode button.active {
    border-color: #13a889;
    background: #13a889;
    color: #fff;
  }
  .directions-mode button:disabled { opacity: .45; }
  .directions-frame-wrap {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    border-radius: 8px;
  }
  .directions-help { display: none; }
  body.directions-open { overflow: hidden; }
  body.directions-open .side-dock {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  body.directions-open .mobile-bar { visibility: hidden; }
  body.directions-open main { padding-right: 0; }

  main {
    width: 100%;
    padding-right: 76px;
  }

  .page-rail {
    right: 4px;
    width: 68px;
    gap: 4px;
    padding: 9px 5px;
    border-radius: 12px;
  }
  .page-rail .rail-progress {
    flex: 0 0 2px;
    width: 2px;
    min-height: 258px;
  }
  .page-rail nav {
    width: 52px;
    align-items: stretch;
  }
  .page-rail nav a {
    display: flex !important;
    align-items: center;
    width: 52px !important;
    height: 24px !important;
    padding: 2px 3px 2px 13px !important;
    background: transparent !important;
    color: #66766f;
    font-size: 8px !important;
    line-height: 1.15;
    letter-spacing: -.03em;
    white-space: nowrap;
  }
  .page-rail nav a.active {
    background: #0b2c38 !important;
    color: #fff;
    font-weight: 800;
  }
  .page-rail nav a:before,
  .page-rail nav a.active:before {
    left: 4px;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
  }

  .rail-weather {
    top: 12px;
    right: 4px;
    width: 68px;
    padding: 8px 4px;
    border-radius: 12px;
  }
  .rail-weather .weather-icon { font-size: 22px; }
  .rail-weather .weather-now { margin-top: 5px; }
  .rail-weather .weather-now small { font-size: 7px; }
  .rail-weather .weather-now b { font-size: 8px; }
  .rail-weather .weather-now strong { font-size: 17px; }
  .rail-weather .weather-range {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 5px;
    font-size: 9px;
  }
  .rail-weather .weather-day-title {
    margin-bottom: 5px;
    font-size: 13px;
  }
  .rail-weather .weather-day + .weather-day {
    margin-top: 8px;
    padding-top: 8px;
  }
  .rail-weather .weather-range span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 5px;
  }
  .rail-weather .weather-range b {
    font-size: 14px;
    line-height: 1;
  }
  .rail-weather .weekly-weather-toggle {
    gap: 3px;
    margin-top: 8px;
    padding-top: 7px;
    font-size: 8px;
  }
  .rail-weather .weekly-weather-toggle input {
    width: 13px;
    height: 13px;
  }
  .weekly-weather-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
  .weekly-weather-panel {
    max-height: calc(100dvh - 20px);
    padding: 16px;
    border-radius: 17px;
  }
  .weekly-weather-panel header { margin-bottom: 12px; }
  .weekly-weather-panel h2 { font-size: 22px; }
  .weekly-weather-panel header > button { min-height: 40px; padding: 7px 11px; }
  .weekly-region-toggle { min-height: 27px; padding: 4px 7px; }
  .weekly-region-toggle span { font-size: 10px; }
  .weekly-region-picker {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 10px;
    padding: 9px;
  }
  .weekly-region-picker label { grid-template-columns: 56px minmax(0, 1fr); align-items: center; }
  .weekly-region-picker select { min-height: 34px; font-size: 11px; }
  .weekly-chart { padding: 8px 0 0; }
  .weekly-chart-legend { gap: 10px; margin-right: 4px; font-size: 9px; }
  .weekly-chart-canvas { height: 150px; margin: 0 8px; }
  .weekly-value { min-width: 24px; padding-inline: 2px; font-size: 9px; }
  .weekly-value::after { width: 6px; height: 6px; }
  .weekly-outlook { padding-top: 8px; }
  .weekly-outlook-day { gap: 4px; padding: 6px 1px; }
  .weekly-outlook-day .weekly-date { font-size: 10px; }
  .weekly-outlook-day .weekly-date span { font-size: 8px; }
  .weekly-outlook-day .weekly-icon { font-size: 22px; }
  .weekly-outlook-day .weekly-summary { font-size: 9px; }

  .blog-grid { counter-reset: mobile-blog-card; }
  .blog-grid .post {
    position: relative;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 3px 11px;
    min-height: 122px;
    padding: 11px;
    counter-increment: mobile-blog-card;
  }
  .blog-grid .post > span {
    grid-column: 2;
    grid-row: 1;
    padding-right: 43px;
    font-size: 9px;
  }
  .blog-grid .post h3 {
    display: -webkit-box;
    grid-column: 2;
    grid-row: 2;
    height: auto;
    min-height: 0;
    margin: 2px 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .blog-grid .post .post-thumb {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 86px;
    height: 96px;
    margin: 0;
    border-radius: 10px;
  }
  .blog-grid .post > b {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    font-size: 10px;
  }
  #blog-management-list .post::after,
  #blog-analysis-list .post::after {
    position: absolute;
    top: 9px;
    right: 9px;
    min-width: 39px;
    padding: 4px 6px;
    border-radius: 999px;
    background: #0b2c38;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
  }
  #blog-management-list .post::after { content: counter(mobile-blog-card) "/9"; }
  #blog-analysis-list .post::after { content: counter(mobile-blog-card) "/6"; }

  .hero-copy.reveal,
  .intro.reveal,
  .section-head.reveal,
  .location-copy.reveal,
  .feature.reveal,
  .post.reveal:nth-child(odd),
  .education-news-card.reveal:nth-child(odd) {
    transform: translate3d(-22px, 0, 0);
  }

  .hero-aside.reveal,
  .map-wrap.reveal,
  .school-tool.reveal,
  .feature.reverse.reveal,
  .post.reveal:nth-child(even),
  .education-news-card.reveal:nth-child(even),
  .flow li.reveal {
    transform: translate3d(22px, 0, 0);
  }

  .reveal.visible { transform: none; }
  .process-illustration { max-width: 320px; margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-copy.reveal,
  .hero-aside.reveal,
  .intro.reveal,
  .section-head.reveal,
  .location-copy.reveal,
  .map-wrap.reveal,
  .school-tool.reveal,
  .feature.reveal,
  .feature.reverse.reveal,
  .manifesto.reveal,
  .exam-tabs.reveal,
  .exam-schedule-grid.reveal,
  .post.reveal,
  .education-news-card.reveal,
  .flow li.reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}
