/* 여덟시반치과(견본) 전용 스타일 — 첫 화면은 시각(낮·저녁·밤)에 따라 사진과 색이 바뀐다. 남색 밤하늘과 불 켜진 창의 호박색 두 가지로 짓고, 상자 대신 사진 면·색면·여백으로 나눈다 — 공통 틀(layout.css) 위에 덮어씀 — 2026.12.05 작성 */
:root {
  --ink: #15233d;
  --ink-2: #4b5669;
  --rule: #e1e4ea;
  --night: #0f1a31;
  --amber: #e8922e;
  --amber-ink: #b8651a;
  --glow: #f3ac55;
}
body {
  font-size: 17px;
  letter-spacing: -0.01em;
  background: var(--bg, #fff);
  color: var(--text, var(--ink));
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 헤더 — 메뉴 7개라 1180px 아래에서는 메뉴 버튼으로 접는다. 첫 화면이 저녁·밤이면 헤더도 밤색 */
.site-header {
  box-shadow: none;
  border-bottom: 1px solid var(--line, var(--rule));
  transition: background 0.4s;
}
.header-inner {
  max-width: none;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 72px);
}
.logo img {
  height: 46px;
}
.gnb {
  gap: 0;
  align-items: center;
}
.gnb a {
  padding: 26px 14px 23px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text, var(--ink));
}
.gnb a:hover {
  color: var(--amber-ink);
}
.gnb a.active {
  border-bottom-color: var(--amber);
  color: var(--text, var(--ink));
}
.gnb a[data-e='nav-quote'] {
  margin-left: 10px;
  padding: 10px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--amber);
  color: var(--ink);
}
.gnb a[data-e='nav-quote']:hover,
.gnb a[data-e='nav-quote'].active {
  background: var(--glow);
  color: var(--ink);
}
.call-pill {
  background: transparent;
  color: var(--text, var(--ink));
  box-shadow: inset 0 0 0 1.5px var(--line-strong, #c9ced8);
  font-size: 15px;
  padding: 9px 16px;
}
.call-pill:hover {
  background: var(--surface-2, #f1f3f6);
}
.page-body {
  padding-top: 76px;
}
.subnav {
  top: 76px;
  background: var(--surface-2, #f1f3f6);
  border-bottom: 1px solid var(--line, var(--rule));
}
.subnav a {
  color: var(--text-2, var(--ink-2));
  font-weight: 700;
}
.subnav a.active,
.subnav a:hover {
  color: var(--text, var(--ink));
  border-bottom-color: var(--amber);
}
html[data-phase='dusk'] .site-header,
html[data-phase='night'] .site-header {
  background: var(--night);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
html[data-phase='dusk'] .logo .logo-l,
html[data-phase='night'] .logo .logo-l {
  display: none;
}
html[data-phase='dusk'] .logo .logo-d,
html[data-phase='night'] .logo .logo-d {
  display: block;
}
html[data-phase='dusk'] .gnb a:not([data-e='nav-quote']),
html[data-phase='night'] .gnb a:not([data-e='nav-quote']),
html[data-phase='dusk'] .call-pill,
html[data-phase='night'] .call-pill {
  color: #fff;
}
html[data-phase='dusk'] .call-pill,
html[data-phase='night'] .call-pill {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
html[data-phase='dusk'] .hamburger span,
html[data-phase='night'] .hamburger span {
  background: #fff;
}
@media (max-width: 1180px) {
  .header-inner {
    height: 64px;
  }
  .logo img {
    height: 40px;
  }
  .hamburger {
    display: block;
  }
  .gnb {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface, #fff);
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--line, var(--rule));
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }
  .gnb.open {
    display: flex;
  }
  .gnb a,
  html[data-phase] .gnb a:not([data-e='nav-quote']) {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line, var(--rule));
    color: var(--text, var(--ink));
  }
  .gnb a[data-e='nav-quote'] {
    margin: 12px 20px 16px;
    text-align: center;
  }
  .page-body {
    padding-top: 64px;
  }
  .subnav {
    top: 64px;
  }
}
@media (max-width: 768px) {
  .call-pill {
    padding: 9px 12px;
  }
}
.site-footer {
  background: var(--night);
}

/* 공통 */
.wrap {
  padding: 0 clamp(20px, 4vw, 72px);
}
.sec {
  padding: clamp(56px, 6vw, 104px) 0;
}
.sec + .sec {
  border-top: 1px solid var(--line, var(--rule));
}
.sec-h {
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.lede {
  margin-top: 14px;
  max-width: 720px;
  font-size: 18px;
  color: var(--text-2, var(--ink-2));
}
.sec-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.more {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, var(--ink));
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.cbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
}
.cbtn:hover {
  background: #22345a;
}
.now-link {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

/* 첫 화면 — 지금 시각 */
.home .page-body {
  padding-top: 76px;
}
.now {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: calc(100svh - 76px - var(--below, 44px));
  background: var(--night);
}
.now-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.now-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
html[data-phase='day'] .ph-day,
html[data-phase='dusk'] .ph-dusk,
html[data-phase='night'] .ph-night {
  opacity: 1;
}
.now-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--veil-a) 0%, var(--veil-b) 34%, rgba(0, 0, 0, 0) 62%);
}
html[data-phase='day'] {
  --veil-a: rgba(244, 248, 252, 0.94);
  --veil-b: rgba(244, 248, 252, 0.7);
  --now-fg: var(--ink);
  --now-sub: #3d4a60;
  --band: #eef3f8;
  --band-fg: var(--ink);
}
html[data-phase='dusk'] {
  --veil-a: rgba(10, 20, 44, 0.9);
  --veil-b: rgba(10, 20, 44, 0.62);
  --now-fg: #fff;
  --now-sub: #c8d3e6;
  --band: #0f1a31;
  --band-fg: #e6ebf4;
}
html[data-phase='night'] {
  --veil-a: rgba(4, 8, 18, 0.92);
  --veil-b: rgba(4, 8, 18, 0.66);
  --now-fg: #eef1f6;
  --now-sub: #a9b3c5;
  --band: #070c17;
  --band-fg: #c9d1df;
}
.now-copy {
  position: relative;
  align-self: center;
  max-width: 640px;
  padding: 48px clamp(20px, 4vw, 72px);
  color: var(--now-fg);
}
.now-say {
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.now-big {
  margin-top: 6px;
  font-size: clamp(84px, 9.4vw, 172px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.now-big b {
  font-weight: inherit;
}
.now-big small {
  margin: 0 0.18em 0 0.04em;
  font-size: 0.26em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.now-big em {
  display: block;
  margin-bottom: 0.08em;
  font-size: 0.3em;
  font-style: normal;
  font-weight: 800;
  color: var(--glow);
}
html[data-phase='day'] .now-big em {
  color: var(--amber-ink);
}
.now-what {
  margin-top: 16px;
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: 600;
  color: var(--now-sub);
}
.now-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 32px;
}
html[data-phase='dusk'] .now .cbtn,
html[data-phase='night'] .now .cbtn {
  background: var(--glow);
  color: var(--ink);
}
html[data-phase='dusk'] .now .cbtn:hover,
html[data-phase='night'] .now .cbtn:hover {
  background: #f7c17e;
}

/* 첫 화면 아래 주간 시간표 띠 — 이 표가 첫 화면 계산의 정본 */
.now-week {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 0 clamp(24px, 3vw, 56px);
  align-items: center;
  padding: 0 clamp(20px, 4vw, 72px);
  background: var(--band);
  color: var(--band-fg);
  transition: background 0.6s;
}
.week {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.week li {
  padding: 18px 12px 20px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.week li + li {
  border-left: 1px solid rgba(127, 140, 160, 0.22);
}
.week b {
  display: block;
  font-size: 17px;
  font-weight: 800;
}
.week li.is-today {
  background: var(--amber);
  color: var(--ink);
}
.week li.is-today b::after {
  content: '오늘';
  margin-left: 6px;
  font-size: 13px;
  font-weight: 700;
}
.week-notes {
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.88;
}
.week-notes .holiday {
  margin-top: 4px;
  font-weight: 800;
  color: var(--glow);
}
html[data-phase='day'] .week-notes .holiday {
  color: var(--amber-ink);
}
@media (max-width: 1180px) {
  .now {
    min-height: calc(100svh - 64px - var(--below, 44px));
  }
  .home .page-body {
    padding-top: 64px;
  }
  .now-week {
    grid-template-columns: 1fr;
  }
  .week-notes {
    padding-top: 0;
  }
}
@media (max-width: 1024px) {
  .now {
    --below: 112px;
  }
}
@media (max-width: 768px) {
  .now-photo img {
    object-position: 70% 40%;
  }
  .now-photo::after {
    background: linear-gradient(
      0deg,
      var(--veil-a) 0%,
      var(--veil-a) 30%,
      var(--veil-b) 52%,
      rgba(0, 0, 0, 0) 74%
    );
  }
  .now-copy {
    align-self: end;
    padding: 160px 20px 28px;
  }
  .now-big {
    font-size: clamp(64px, 19vw, 92px);
  }
  .now-acts {
    gap: 12px 22px;
    margin-top: 22px;
  }
  .now-acts .cbtn {
    flex: 1 1 100%;
  }
  .now-week {
    padding: 0 8px;
  }
  .week li {
    padding: 12px 2px 14px;
    font-size: 12px;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
  }
  .week b {
    font-size: 15px;
  }
  .week li.is-today b::after {
    content: none;
  }
  .week-notes {
    padding: 2px 12px 14px;
    font-size: 13px;
  }
}

/* 저녁 진료 */
.evening {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--night);
  color: #e9edf4;
}
.evening-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.evening-copy {
  padding: clamp(48px, 5vw, 96px) clamp(24px, 4vw, 72px);
  align-self: center;
}
.evening-copy h2 {
  font-size: clamp(30px, 2.7vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.045em;
  color: #fff;
}
.evening-facts {
  margin-top: 36px;
}
.evening-facts dt {
  font-size: 18px;
  font-weight: 800;
  color: var(--glow);
}
.evening-facts dd {
  margin-top: 4px;
  color: #c3cddd;
}
.evening-facts dd + dt {
  margin-top: 22px;
}

/* 진료 과목 */
.cares {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 56px);
  margin-top: 32px;
}
.cares a {
  display: block;
  padding: 24px 0 26px;
  border-top: 1px solid var(--line, var(--rule));
}
.cares b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cares span {
  display: block;
  margin-top: 4px;
  color: var(--text-2, var(--ink-2));
}
.cares i {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  color: var(--amber-ink);
}
.cares a:hover b {
  color: var(--amber-ink);
}

/* 두 원장 — 손 사진 위 */
.shift {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  background: #0b1427;
  color: #fff;
}
.shift-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shift::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(8, 14, 28, 0.94) 0%,
    rgba(8, 14, 28, 0.7) 38%,
    rgba(8, 14, 28, 0) 70%
  );
}
.shift-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 72px) clamp(44px, 5vw, 80px);
}
.shift-copy h2 {
  font-size: clamp(34px, 3.6vw, 60px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.05em;
}
.shift-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 24px clamp(32px, 5vw, 96px);
  margin: 32px 0 28px;
}
.shift-docs .role {
  font-size: 15px;
  font-weight: 700;
  color: var(--glow);
}
.shift-docs h3 {
  margin-top: 2px;
  font-size: 28px;
  font-weight: 800;
}
.shift-docs .hrs {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.shift-docs p:last-child {
  margin-top: 6px;
  color: #c3cddd;
}
.shift .more {
  color: #fff;
}

/* 아이 진료 */
.kids {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
}
.kids-copy {
  padding: clamp(48px, 5vw, 96px) clamp(20px, 4vw, 72px);
}
.kids-copy h2 {
  font-size: clamp(30px, 2.7vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.045em;
}
.kids-copy p {
  margin-top: 16px;
  max-width: 520px;
  color: var(--text-2, var(--ink-2));
}
.kids-copy h2 + p {
  margin-top: 26px;
}
.kids-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* 멸균 */
.clean {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}
.clean img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* 비급여 진료비 표 */
.fee {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
  font-size: 17px;
}
.fee caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 14px;
  font-size: 15px;
  color: var(--text-2, var(--ink-2));
}
.fee th,
.fee td {
  padding: 15px 16px 15px 0;
  text-align: left;
  border-bottom: 1px solid var(--line, var(--rule));
  vertical-align: top;
}
.fee thead th {
  font-size: 15px;
  color: var(--text-2, var(--ink-2));
  border-bottom: 2px solid var(--text, var(--ink));
}
.fee td.won {
  white-space: nowrap;
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.fee thead th.won {
  text-align: right;
}
.fee tbody th {
  font-weight: 700;
}
.fee-group {
  margin-top: 56px;
}
.fee-group:first-of-type {
  margin-top: 24px;
}
.fee-group h2 {
  font-size: 22px;
  font-weight: 800;
}

/* 마지막 — 저녁 진료실 */
.end {
  position: relative;
  min-height: min(80vh, 720px);
  display: flex;
  align-items: center;
  background: var(--night);
  color: #fff;
}
.end img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.end::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 14, 28, 0.9) 0%,
    rgba(8, 14, 28, 0.6) 40%,
    rgba(8, 14, 28, 0) 72%
  );
}
.end-copy {
  position: relative;
  z-index: 1;
  padding: 64px clamp(20px, 4vw, 72px);
}
.end-copy h2 {
  font-size: clamp(32px, 3.2vw, 54px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.05em;
}
.end-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 32px;
}
.end .cbtn {
  background: var(--glow);
  color: var(--ink);
}
.end .cbtn:hover {
  background: #f7c17e;
}

@media (max-width: 960px) {
  .evening,
  .kids,
  .clean {
    grid-template-columns: 1fr;
  }
  .evening-photo,
  .kids-photo {
    min-height: 0;
    aspect-ratio: 3/2;
  }
  .kids-photo {
    order: -1;
  }
  .cares {
    grid-template-columns: 1fr;
  }
  .shift {
    min-height: 0;
    padding-top: 56vw;
  }
  .shift-photo {
    height: 75vw;
  }
  .shift::after {
    background: linear-gradient(
      0deg,
      #0b1427 0%,
      #0b1427 calc(100% - 75vw),
      rgba(11, 20, 39, 0) 100%
    );
  }
  .shift-docs {
    grid-template-columns: 1fr;
  }
  .end {
    align-items: flex-end;
    min-height: 0;
    padding-top: 52vw;
  }
  .end::after {
    background: linear-gradient(
      0deg,
      rgba(8, 14, 28, 0.94) 0%,
      rgba(8, 14, 28, 0.8) 45%,
      rgba(8, 14, 28, 0.1) 100%
    );
  }
  .end-copy {
    padding: 0 20px 44px;
  }
}
@media (max-width: 768px) {
  .fee thead {
    display: none;
  }
  .fee tr {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 12px 0;
    border-bottom: 1px solid var(--line, var(--rule));
  }
  .fee th,
  .fee td {
    padding: 2px 0;
    border: 0;
  }
  .fee td.unit {
    grid-column: 1/-1;
    order: 3;
    font-size: 15px;
    color: var(--text-2, var(--ink-2));
  }
}

/* 휴대폰 아래 바로가기 — 견본 안내 띠 위에 얹힘(site.js) */
.mbar {
  display: none;
}
@media (max-width: 1024px) {
  .mbar {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 940;
    background: var(--night);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
  }
  .mbar a:nth-child(2) {
    background: var(--glow);
    color: var(--ink);
  }
  body:has(.mbar) .site-footer {
    padding-bottom: 120px;
  }
}

/* 하위 페이지 머리 */
.page-head {
  padding: clamp(48px, 5.5vw, 96px) 0 clamp(28px, 3vw, 48px);
}
.page-head h1 {
  font-size: clamp(32px, 3.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.25;
}
.page-head .lede {
  margin-top: 18px;
}
.wrap.pb {
  padding-bottom: clamp(56px, 6vw, 104px);
}

/* 진료 과목 상세 */
.cdetail {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 72px);
  padding: 44px 0;
  border-top: 1px solid var(--line, var(--rule));
  scroll-margin-top: 96px;
}
.cdetail h2 {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cdetail .who {
  margin-top: 8px;
  color: var(--text-2, var(--ink-2));
  font-size: 16px;
}
.cdetail dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px 20px;
  align-content: start;
}
.cdetail dt {
  font-weight: 800;
  font-size: 16px;
}
.cdetail dd {
  color: var(--text-2, var(--ink-2));
}
.cdetail img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  margin-top: 18px;
}
@media (max-width: 960px) {
  .cdetail {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }
  .cdetail dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .cdetail dd {
    margin-bottom: 12px;
  }
}

/* 의료진 */
.docs-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.docs-split > div {
  padding: clamp(40px, 4vw, 72px) clamp(20px, 4vw, 72px) clamp(56px, 6vw, 96px);
}
.docs-split .day-doc {
  background: #eef3f8;
}
.docs-split .eve-doc {
  background: var(--night);
  color: #e9edf4;
}
.docs-split .when {
  font-size: clamp(44px, 4.6vw, 80px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.docs-split .role {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 800;
  color: var(--amber-ink);
}
.docs-split .eve-doc .role {
  color: var(--glow);
}
.docs-split h2 {
  margin-top: 2px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.docs-split .hrs {
  font-weight: 700;
}
.docs-split .say {
  margin-top: 16px;
  max-width: 560px;
}
.docs-split ul {
  margin-top: 18px;
  padding-left: 18px;
  font-size: 16px;
  opacity: 0.85;
}
@media (max-width: 960px) {
  .docs-split {
    grid-template-columns: 1fr;
  }
}

/* 처음 오시는 분 */
.firstday {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 48px);
  margin-top: 36px;
}
.firstday li {
  padding-top: 18px;
  border-top: 1px solid var(--line, var(--rule));
  color: var(--text-2, var(--ink-2));
}
.firstday b {
  display: block;
  font-size: 20px;
  color: var(--text, var(--ink));
}
.firstday .min {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--amber-ink);
}
.firstday li.key {
  border-top: 3px solid var(--ink);
}
.firstday li.key b {
  font-size: 24px;
}
.total {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.total strong {
  font-size: clamp(72px, 8vw, 140px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.05em;
}
.total span {
  font-size: 20px;
  font-weight: 700;
}
.cutoff {
  list-style: none;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  gap: 12px 40px;
}
.cutoff li {
  font-size: 16px;
  color: var(--text-2, var(--ink-2));
}
.cutoff b {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--text, var(--ink));
  font-variant-numeric: tabular-nums;
}
.bring {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin-top: 32px;
}
.bring h3 {
  font-size: 19px;
  font-weight: 800;
}
.bring p {
  margin-top: 6px;
  color: var(--text-2, var(--ink-2));
  font-size: 16px;
}
@media (max-width: 960px) {
  .firstday,
  .bring,
  .cutoff {
    grid-template-columns: 1fr;
  }
  .firstday li {
    padding: 16px 0 20px;
  }
}

/* 오시는 길 */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}
.visit > img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.visit h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--amber-ink);
}
.visit h2 + * {
  margin-top: 10px;
}
.visit-block + .visit-block {
  margin-top: 32px;
}
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
.hours th {
  width: 1%;
  white-space: nowrap;
  text-align: left;
  font-weight: 700;
  padding: 7px 28px 7px 0;
}
.hours td {
  padding: 7px 0;
  font-variant-numeric: tabular-nums;
}
.hours tr + tr th,
.hours tr + tr td {
  border-top: 1px solid var(--line, var(--rule));
}
.hours tr.off td {
  color: var(--muted, #8a8f96);
}
.facts {
  list-style: none;
}
.facts li {
  padding: 8px 0;
  border-top: 1px solid var(--line, var(--rule));
}
.facts li:first-child {
  border-top: 0;
}
.facts b {
  display: block;
  font-size: 15px;
  color: var(--text-2, var(--ink-2));
}
.note {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-2, var(--ink-2));
}
.map-wrap {
  margin-top: 40px;
}
@media (max-width: 960px) {
  .visit {
    grid-template-columns: 1fr;
  }
}
body.typing .mbar {
  display: none;
}
