/* 야간진료 안내(/main/night/) 전용. 다른 페이지와 섞이지 않게 nb-night 접두어만 쓴다. */
.nb-night {
  --nb-ink: #101828;
  --nb-ink-2: #475467;
  --nb-muted: #667085;
  --nb-navy: #0b2a4a;
  --nb-blue: #1f5bd8;
  --nb-blue-d: #1849b4;
  --nb-blue-t: #eaf1ff;
  --nb-soft: #f4f6f9;
  color: var(--nb-ink);
  letter-spacing: -0.02em;
  background: #fff;
}
.nb-night-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.nb-night p,
.nb-night dd,
.nb-night li span {
  text-wrap-style: pretty;
}
.nb-night-hero {
  padding: 164px 0 72px;
}
.nb-night-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--nb-muted);
}
.nb-night-crumb a {
  color: var(--nb-ink-2);
}
.nb-night-eyebrow {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--nb-blue-d);
}
.nb-night h1 {
  font-size: 46px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.nb-night-lead {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.75;
  color: var(--nb-ink-2);
}
.nb-night-lead strong {
  font-weight: 800;
  color: var(--nb-ink);
}
.nb-night-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
  list-style: none;
}
.nb-night-facts li {
  padding: 20px 18px;
  border-radius: 18px;
  background: var(--nb-soft);
}
.nb-night-facts b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--nb-navy);
  white-space: nowrap;
}
.nb-night-facts span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--nb-ink-2);
}
.nb-night-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.nb-night-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--nb-soft);
  font-size: 17px;
  font-weight: 700;
  color: var(--nb-ink);
}
.nb-night-btn:hover,
.nb-night-btn:focus-visible {
  background: #e7ebf2;
}
.nb-night .nb-night-btn-main {
  background: var(--nb-blue);
  color: #fff;
}
.nb-night .nb-night-btn-main:hover,
.nb-night .nb-night-btn-main:focus-visible {
  background: var(--nb-blue-d);
}
.nb-night a:focus-visible {
  outline: 2px solid var(--nb-blue);
  outline-offset: 2px;
}
.nb-night-sec {
  padding: 72px 0;
}
.nb-night-soft {
  background: var(--nb-soft);
}
.nb-night h2 {
  margin-bottom: 24px;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.nb-night h3 {
  font-size: 19px;
  line-height: 1.45;
  font-weight: 800;
}
.nb-night-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 18px;
}
.nb-night-table caption {
  caption-side: bottom;
  padding-top: 6px;
  text-align: left;
  font-size: 15px;
  color: var(--nb-muted);
}
.nb-night-table th,
.nb-night-table td {
  padding: 16px 18px;
  border-bottom: 0;
  text-align: left;
  background: var(--nb-soft);
}
.nb-night-table thead th {
  padding: 0 18px 2px;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--nb-muted);
}
.nb-night-table tbody th {
  border-radius: 14px 0 0 14px;
  font-weight: 800;
  white-space: nowrap;
}
.nb-night-table tbody td:last-child {
  border-radius: 0 14px 14px 0;
}
.nb-night-table tbody tr:hover {
  background: transparent;
}
.nb-night-table .nb-night-row-late th,
.nb-night-table .nb-night-row-late td {
  background: var(--nb-blue-t);
}
.nb-night-row-late strong {
  font-weight: 800;
  color: var(--nb-blue-d);
}
.nb-night-note,
.nb-night-text,
.nb-night-address {
  font-size: 17px;
  line-height: 1.75;
  color: var(--nb-ink-2);
}
.nb-night-note {
  margin-top: 14px;
}
.nb-night-text + .nb-night-text {
  margin-top: 12px;
}
.nb-night-note a,
.nb-night-source a,
.nb-night-way dd a {
  font-weight: 700;
  color: var(--nb-blue-d);
  box-shadow: inset 0 -1px 0 currentColor;
}
.nb-night-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.nb-night-cases > div {
  padding: 24px 22px;
  border-radius: 18px;
  background: #fff;
}
.nb-night-cases p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--nb-ink-2);
}
.nb-night-way {
  display: grid;
  gap: 10px;
}
.nb-night-way > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--nb-soft);
}
.nb-night-soft .nb-night-way > div {
  background: #fff;
}
.nb-night-way dt {
  font-size: 17px;
  font-weight: 800;
}
.nb-night-way dd {
  font-size: 17px;
  line-height: 1.6;
  color: var(--nb-ink-2);
}
.nb-night-address {
  margin-top: 20px;
}
.nb-night-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.nb-night-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--nb-soft);
  font-size: 16px;
  font-weight: 700;
  color: var(--nb-ink);
}
.nb-night-soft .nb-night-links a {
  background: #fff;
}
.nb-night-faq {
  display: grid;
  gap: 12px;
}
.nb-night-qa {
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--nb-soft);
}
.nb-night-qa p {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--nb-ink-2);
}
.nb-night-source,
.nb-night-updated {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--nb-muted);
}

/* 오른쪽 고정 버튼(72px·모바일 58px)에 본문이 가리지 않게 오른쪽 여백을 준다 */
@media screen and (max-width: 1120px) {
  .nb-night-wrap {
    padding: 0 112px 0 24px;
  }
}
@media screen and (max-width: 768px) {
  .nb-night-wrap {
    padding: 0 82px 0 20px;
  }
  .nb-night-hero {
    padding: 128px 0 48px;
  }
  .nb-night-crumb {
    margin-bottom: 20px;
  }
  .nb-night h1 {
    font-size: 28px;
  }
  .nb-night-lead {
    margin-top: 16px;
    font-size: 17px;
  }
  .nb-night-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 26px;
  }
  .nb-night-facts li {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .nb-night-facts b {
    font-size: 22px;
  }
  .nb-night-facts span {
    font-size: 13.5px;
  }
  .nb-night-cta {
    margin-top: 22px;
  }
  .nb-night-btn {
    width: 100%;
  }
  .nb-night-sec {
    padding: 52px 0;
  }
  .nb-night h2 {
    margin-bottom: 18px;
    font-size: 24px;
  }
  .nb-night h3 {
    font-size: 17px;
  }
  /* 좁은 화면에서는 요일마다 한 장씩: 요일 / 진료 시간 / 접수 마감 */
  .nb-night-table,
  .nb-night-table tbody,
  .nb-night-table tr,
  .nb-night-table th,
  .nb-night-table td,
  .nb-night-table caption {
    display: block;
  }
  .nb-night-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .nb-night-table caption {
    padding: 0 0 10px;
  }
  .nb-night-table tr {
    margin-bottom: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--nb-soft);
  }
  .nb-night-table .nb-night-row-late {
    background: var(--nb-blue-t);
  }
  .nb-night-table tbody th,
  .nb-night-table tbody td,
  .nb-night-table .nb-night-row-late th,
  .nb-night-table .nb-night-row-late td {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .nb-night-table tbody th {
    font-size: 17px;
  }
  .nb-night-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    font-size: 16px;
  }
  .nb-night-table tbody td::before {
    content: attr(data-label);
    color: var(--nb-muted);
  }
  .nb-night-cases {
    grid-template-columns: 1fr;
  }
  .nb-night-way > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 16px;
  }
  .nb-night-note,
  .nb-night-text,
  .nb-night-address,
  .nb-night-way dt,
  .nb-night-way dd,
  .nb-night-qa p {
    font-size: 16px;
  }
  .nb-night-qa {
    padding: 18px;
  }
}
