.armi-header .inner h1 a{display:flex;align-items:center;gap:10px;font-weight:800;line-height:1.15;white-space:nowrap;letter-spacing:.025em}
.armi-header .inner h1 a img{width:44px;height:44px;object-fit:cover;border-radius:50%}
.armi-header .inner h1 small{display:block;font-size:1.25rem;letter-spacing:0;margin-top:4px}
#main-visual .visual-img .swiper-slide img{object-fit:cover;object-position:50% 48%}
#main-visual .visual-img .swiper-slide:first-child img{object-position:50% 62%}
#main-visual .visual-text h2{word-break:keep-all}
#save-teeth .save-img img,.visit-photo{display:block;width:100%;max-height:390px;object-fit:cover;object-position:center 49%;border-radius:16px}
.footer-blog a{white-space:nowrap}
@media(max-width:768px){.armi-header .inner h1 a img{width:34px;height:34px}.armi-header .inner h1 a{font-size:1.4rem;gap:6px}.armi-header .armi-header-row{gap:9px}.armi-header .inner h1 small{font-size:1.1rem}}


/* Keep the experience counter visible in the stacked introduction. */
#clinic-intro .count-num {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1200px) {
  #clinic-intro .inner {
    gap: 40px;
  }

  #clinic-intro .intro-career {
    display: block;
    width: 100%;
    padding-top: 0;
    text-align: center;
  }

  #clinic-intro .career-number {
    justify-content: center;
  }

  #clinic-intro .career-number strong.count-num {
    font-size: clamp(6rem, 12vw, 9rem);
  }
}

/* Keep the header visible without removing it from the hero's scroll layout. */
body {
  overflow-x: clip;
}

.armi-header {
  position: sticky;
  top: 0;
}

main [id] {
  scroll-margin-top: 100px;
}

#location .location-map .naver-map-panel {
  position: relative;
  min-height: clamp(260px, 40vw, 380px);
  background: #edf5ff;
}

#academy-map-canvas {
  width: 100%;
  height: 100%;
  visibility: hidden;
}

#academy-map-canvas[aria-hidden="false"] { visibility: visible; }
#academy-map-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 1rem; text-align: center; }
#academy-map-status[hidden] { display: none; }

@media (max-width: 1200px) {
  main [id] {
    scroll-margin-top: 70px;
  }
}

.armi-header .inner h1 a img.kong-header-logo { width: clamp(125px, 19vw, 230px); height: auto; border-radius: 0; object-fit: contain; }

.footer .footer-logo img.kong-footer-logo { width: clamp(160px, 22vw, 220px); max-width: 100%; height: auto; border-radius: 0; object-fit: contain; }

1#fff; }
.academy-news { padding: clamp(56px, 8vw, 104px) 0; background: #f4f8fc; }
.academy-news h2 { margin-bottom: 24px; font-size: clamp(26px, 4vw, 40px); }
.academy-news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.academy-news-card { display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: #fff; border: 1px solid #dce6f0; border-radius: 16px; }
.academy-news-card img { display: block; width: 100%; height: 180px; object-fit: cover; object-position: center 43%; }
.academy-news-card > div { padding: 22px; }
.academy-news-card span, .academy-news-link a { color: #0058b9; font-weight: 700; }
.academy-news-card h3 { margin: 8px 0; font-size: 20px; }
.academy-news-card p { color: #475569; line-height: 1.6; }
.academy-news-card:hover h3, .academy-news-link a { text-decoration: underline; }
.academy-news-link { margin-top: 20px; }

.tuition-section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.tuition-heading h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.tuition-heading p, .tuition-table caption {
  color: #475569;
}

.tuition-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.tuition-table caption {
  padding-bottom: 12px;
  text-align: left;
}

.tuition-table th, .tuition-table td {
  padding: 14px 4px;
  border-bottom: 1px solid #dce6f0;
  text-align: center;
  font-size: clamp(13px, 2.3vw, 17px);
}

.tuition-table thead th {
  color: #fff;
  background: #174a81;
}

.tuition-table tbody th {
  background: #f4f8fc;
  font-weight: 700;
}

.tuition-contact {
  margin-top: 20px;
}

.tuition-contact a {
  color: #0058b9;
  font-weight: 700;
  text-decoration: underline;
}

#treatment .swiper-slide { filter: none; opacity: 1; }
#treatment .treatment-img { background: #fff; }
#treatment .swiper-slide > a { -webkit-tap-highlight-color: transparent; }
#treatment .swiper-slide > a:focus-visible { outline: 2px solid #174a81; outline-offset: 3px; }

@media (min-width: 961px) {
  .armi-nav-items > li {
    position: relative;
    align-self: center;
  }

  .armi-header .armi-nav-items > li > .armi-nav-panel {
    top: calc(100% + 6px);
    inset-inline: 0 auto;
    width: 224px;
    padding: 6px;
  }

  .armi-nav-items > li > .armi-nav-panel > ul {
    display: block;
  }
}

@media (max-width: 960px) {
  .armi-header .armi-nav-items > li > .armi-nav-trigger {
    display: flex;
  }
}

.academy-notices {
  padding: clamp(48px, 6vw, 80px) 0;
  background: #fff;
  scroll-margin-top: 100px;
}

.academy-notices-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.academy-notices-heading h2 { font-size: clamp(28px, 4vw, 42px); }
.academy-notices-heading a, .notice-body a { color: #0058b9; text-decoration: underline; }
.academy-notices-list { border-top: 2px solid #174a81; }
.academy-notices-list > li { border-bottom: 1px solid #dce6f0; }
:is(.academy-notices-list, .notice-archive-list) summary {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto 1em;
  gap: 14px;
  align-items: center;
  padding: 16px 12px;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
}

:is(.academy-notices-list, .notice-archive-list) summary::-webkit-details-marker { display: none; }
:is(.academy-notices-list, .notice-archive-list) summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
:is(.academy-notices-list, .notice-archive-list) details[open] summary::after { transform: rotate(225deg); }
:is(.academy-notices-list, .notice-archive-list) summary:hover, :is(.academy-notices-list, .notice-archive-list) details[open] summary { background: #f4f8fc; }
:is(.academy-notices-list, .notice-archive-list) summary:focus-visible { outline: 2px solid #0058b9; outline-offset: -2px; }
.notice-category { justify-self: start; color: #174a81; background: #eaf3ff; border-radius: 5px; padding: 3px 8px; font-size: 1.3rem; white-space: nowrap; }
.notice-title { font-weight: 700; word-break: keep-all; }
.academy-notices time { color: #475569; font-size: 1.4rem; }
.notice-body { padding: 16px 24px 22px 86px; color: #334155; line-height: 1.7; }
.notice-body p + p, .notice-body a { margin-top: 8px; }
.notice-body a { display: inline-block; }

@media (max-width: 768px) { .academy-notices { scroll-margin-top: 70px; } }

@media (max-width: 600px) {
  :is(.academy-notices-list, .notice-archive-list) summary { grid-template-columns: auto minmax(0, 1fr) 1em; gap: 4px 10px; }
  :is(.academy-notices-list, .notice-archive-list) summary::after { grid-area: 1 / 3 / span 2 / 4; }
  .academy-notices time { grid-column: 2; }
  .notice-body { padding-inline: 12px; }
}

.notice-archive { margin-top: 24px; border: 1px solid #dce6f0; border-radius: 12px; }
.notice-archive > summary { padding: 14px 16px; cursor: pointer; font-weight: 700; }
.notice-archive > summary span { margin-inline-start: 6px; color: #475569; font-weight: 500; }
.notice-archive > summary:focus-visible { outline: 2px solid #0058b9; outline-offset: -2px; }
.notice-archive-list > li { border-top: 1px solid #dce6f0; }

.notice-poster {
  --poster-background: #fff8ee;
  max-width: 768px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e0e6ed;
  border-radius: 14px;
  background: var(--poster-background);
}
.notice-poster--july { --poster-background: #fff4f7; }
.notice-poster--august { --poster-background: #f5f8ff; }
.notice-poster img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.notice-poster figcaption { padding: clamp(16px, 4vw, 32px); }
.notice-poster figcaption > strong { display: block; color: #182436; font-size: clamp(22px, 4vw, 34px); }
.notice-post-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 8px;
  margin-block: 14px;
}
.notice-post-days li { display: grid; gap: 2px; padding: 10px; border-radius: 8px; background: #fff; }
.notice-day--closed b { color: #a1243e; }
.notice-day--regular b { color: #174a81; }

.academy-about {
  --story-gap: 20px;
  --story-width: calc((100% - 3 * var(--story-gap)) / 4);
  padding-block: clamp(48px, 8vw, 108px);
  scroll-margin-top: 100px;
  color: #182436;
  background: #f5f8f7;
}
.academy-about-heading { max-width: 760px; }
.academy-about-heading h2 { font-size: clamp(30px, 5vw, 54px); line-height: 1.2; }
.academy-about-heading > p { margin-top: 16px; font-size: clamp(16px, 2vw, 19px); line-height: 1.7; }
.about-story-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--story-width));
  align-items: start;
  gap: var(--story-gap);
  margin-top: 26px;
}

.about-story-featured > .about-story {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-story-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e9efec;
  cursor: pointer;
}

.about-story > .about-story-image--poster {
  background: #b5e2dc;
}

.about-story > .about-story-image--poster > img {
  padding: 12px;
  object-fit: contain;
}

.about-story-image:focus-visible {
  outline: 2px solid #185240;
  outline-offset: -4px;
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .about-story-featured > .about-story:hover {
    z-index: 1;
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-story-featured > .about-story {
    transition: none;
  }
}

.about-story-carousel {
  margin-top: 10px;
}

.about-story-controls:not([hidden]) {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.about-story-controls button {
  min-width: 44px;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid #bdcbc6;
  border-radius: 10px;
  background: #fff;
  color: #173c51;
  font: inherit;
  cursor: pointer;
}

.about-story-grid {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--story-width);
  align-items: start;
  gap: var(--story-gap);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.about-story-grid::-webkit-scrollbar { display: none; }

.about-story-grid > .about-story {
  min-width: 0;
  scroll-snap-align: start;
}

.academy-about :is(.about-story-grid, .about-story-controls button):focus-visible {
  outline: 2px solid #185240;
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .academy-about {
    --story-gap: 12px;
    --story-width: calc((100% - var(--story-gap)) / 2);
  }
}
@media (max-width: 600px) { .academy-about { --story-width: 100%; } }
.about-story {
  overflow: hidden;
  border: 1px solid #dce7e1;
  border-radius: 14px;
  background: #fff;
}
.about-story > a { display: block; background: #e9efec; }
.about-story > a > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.about-story-content { padding: 16px clamp(16px, 3vw, 24px); }
.about-story-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: #345f54; font-size: 13px; }
.about-story h3 { margin-block: 6px; font-size: 22px; line-height: 1.35; min-block-size: 2.7em; }
.about-story-content > h3 + p { min-block-size: 4.95em; }
.about-story-content p, .about-story-body li { line-height: 1.65; }
.about-story summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 10px;
  margin-top: 6px;
  cursor: pointer;
  color: #185240;
  font-weight: 700;
}
.about-story-body { display: grid; gap: 12px; padding-top: 10px; border-top: 1px solid #dce7e1; }
.about-story-body ul { padding-inline-start: 1.25em; list-style: disc; }
.about-story-body a { color: #185240; text-decoration: underline; text-underline-offset: 3px; }
.about-photo-grid, #save-teeth .study-room-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
}
.about-photo-grid img, #save-teeth .study-room-photos img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 6px;
}
@media (max-width: 768px) { .academy-about { scroll-margin-top: 70px; } }
.academy-about a:focus-visible, .about-story summary:focus-visible { outline: 2px solid #185240; outline-offset: 2px; }
.about-story-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#treatment.exam-reports .treatment-title { margin-bottom: 32px; }
.exam-report-list { width: calc(100% - 32px); max-width: 960px; margin: 0 auto; }
.exam-report-list > li + li { margin-top: 10px; }
.exam-report {
  border: 1px solid #dce7e1;
  border-radius: 12px;
  background: #fff;
  color: #182436;
  scroll-margin-top: 110px;
}
.exam-report summary {
  padding: 15px clamp(13px, 3vw, 24px);
  cursor: pointer;
  line-height: 1.5;
  font-weight: 700;
}
.exam-report summary::marker { color: #185240; }
.exam-report summary time {
  display: inline-block;
  margin-inline-start: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}
.exam-report summary:focus-visible, .exam-report-body a:focus-visible {
  outline: 2px solid #185240;
  outline-offset: -2px;
}
.exam-report-body {
  border-top: 1px solid #dce7e1;
  padding: clamp(14px, 4vw, 32px);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.exam-report-body .report-centered { text-align: center; }
.exam-report-body figure { margin: 16px auto; }
.exam-report-body figure img { display: block; width: 100%; height: auto; }
.exam-report-body .report-sticker { display: inline-block; max-width: 100px; height: auto; }
.exam-report-body a { color: #185240; text-decoration: underline; }
@media (max-width: 768px) {
  .exam-report { scroll-margin-top: 80px; }
  .exam-report summary time { display: block; margin-inline-start: 0; }
}



/* Academy card component: exact closed-card proportions from Armi #treatment */
.academy-about .about-story-featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.academy-about .academy-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 435px;
  min-height: 435px;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.academy-about .academy-card__image {
  display: block;
  flex: 0 0 290px;
  width: 100%;
  height: 290px;
  padding: 0;
  overflow: hidden;
  background: #f8f8f8;
}

.academy-about .academy-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.academy-about .academy-card__body {
  display: flex;
  flex: 0 0 145px;
  flex-direction: column;
  width: 100%;
  height: 145px;
  min-height: 145px;
  max-height: 145px;
  padding: 20px;
  overflow: hidden;
}

.academy-about .academy-card__category {
  display: block;
  flex: 0 0 18px;
  width: 100%;
  height: 18px;
  min-height: 18px;
  margin: 0 0 4px;
  color: #999;
  font-size: 1.2rem;
  line-height: 18px;
  letter-spacing: -0.02em;
}

.academy-about .academy-card__title {
  display: block;
  flex: 0 0 27px;
  width: 100%;
  height: 27px;
  min-height: 27px;
  min-block-size: 27px;
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.academy-about .academy-card__description {
  display: block;
  flex: 0 0 24px;
  width: 100%;
  height: 24px;
  min-height: 24px;
  min-block-size: 24px;
  margin: 0;
  overflow: hidden;
  color: #999;
  font-size: 1.5rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.academy-about .academy-card__body > details {
  flex: 0 0 20px;
  min-height: 20px;
  margin: 4px 0 0;
}

.academy-about .academy-card__link {
  display: block;
  width: fit-content;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  color: #185240;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.02em;
}

.academy-about .academy-card__link:focus-visible {
  outline: 2px solid #185240;
  outline-offset: 2px;
}

/* 상세 본문을 열었을 때만 카드가 자연스럽게 확장됩니다. */
.academy-about .academy-card:has(details[open]) {
  height: auto;
  min-height: 435px;
  overflow: visible;
}

.academy-about .academy-card:has(details[open]) .academy-card__body {
  flex-basis: auto;
  height: auto;
  max-height: none;
  overflow: visible;
}

@media (max-width: 960px) {
  .academy-about .about-story-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .academy-about .academy-card {
    height: 450px;
    min-height: 450px;
  }

  .academy-about .academy-card__image {
    flex-basis: 300px;
    height: 300px;
  }

  .academy-about .academy-card__body {
    flex-basis: 150px;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
  }
}

@media (max-width: 768px) {
  .academy-about .academy-card {
    height: 360px;
    min-height: 360px;
  }

  .academy-about .academy-card__image {
    flex-basis: 220px;
    height: 220px;
  }

  .academy-about .academy-card__body {
    flex-basis: 140px;
    height: 140px;
    min-height: 140px;
    max-height: 140px;
    padding: 15px;
  }

  .academy-about .academy-card__category {
    flex-basis: 16px;
    height: 16px;
    min-height: 16px;
    line-height: 16px;
    font-size: 1.1rem;
  }

  .academy-about .academy-card__title {
    flex-basis: 24px;
    height: 24px;
    min-height: 24px;
    min-block-size: 24px;
    font-size: 1.8rem;
    line-height: 1.35;
  }

  .academy-about .academy-card__description {
    flex-basis: 21px;
    height: 21px;
    min-height: 21px;
    min-block-size: 21px;
    font-size: 1.3rem;
    line-height: 1.6;
  }

  .academy-about .academy-card__link {
    height: 18px;
    min-height: 18px;
    font-size: 1.3rem;
    line-height: 18px;
  }

  .academy-about .academy-card__body > details {
    flex-basis: 18px;
    min-height: 18px;
  }

  .academy-about .academy-card:has(details[open]) {
    min-height: 360px;
  }

  .academy-about .about-story-featured {
    grid-template-columns: minmax(0, 1fr);
  }
}
