/* 추석 문 여는 병원 칼럼 — 연휴 날짜 띠와 한 주 진료시간 막대 */
.co-page {
  --co-deep: #173f37;
  --co-green: #247860;
  --co-teal: #3c605a;
  --co-soft: #eef3f0;
  --co-paper: #f8f8f6;
  --co-warm: #e8e4e2;
  --co-ink: #242824;
  --co-muted: #555550;
  --co-line: #d7dfdb;
  overflow: clip;
  background: #fff;
  color: var(--co-ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}

.co-page * { box-sizing: border-box; }

/* 머리말 */
.co-header { max-width: 1080px; margin: auto; padding: 92px 28px 40px; text-align: center; }
.co-header .column-breadcrumb { justify-content: center; margin-bottom: 26px; }
.co-eyebrow { margin: 0 0 18px; color: var(--co-green); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.co-header h1 { max-width: 900px; margin: 0 auto; color: var(--co-deep); font-size: clamp(2.1rem, 4.8vw, 4.1rem); font-weight: 650; line-height: 1.2; letter-spacing: -.055em; word-break: keep-all; }
.co-lead { max-width: 720px; margin: 26px auto 22px; color: var(--co-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.9; word-break: keep-all; }
.co-byline { display: flex; justify-content: center; gap: 18px; color: #718078; font-size: .78rem; }
.co-byline a { color: var(--co-green); }

/* 첫 화면 — 연휴 날짜 띠 */
.co-hero {
  position: relative;
  isolation: isolate;
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto 78px;
  padding: clamp(2rem, 4.5vw, 3.4rem);
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--co-deep) 0%, #1f5a4c 60%, var(--co-green) 100%);
  color: #fff;
}

.co-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8rem;
  top: -10rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, .03), 0 0 0 8rem rgba(255, 255, 255, .02);
}

.co-hero__head small { color: #c9e7da; font-size: .66rem; font-weight: 800; letter-spacing: .18em; }
.co-hero__head h2 { margin: .7rem 0 .4rem; color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 680; letter-spacing: -.045em; }
.co-hero__head p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .92rem; }
.co-hero__head a { color: #fff; font-weight: 700; text-decoration: none; }

.co-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }

.co-days li {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
  padding: 1.1rem 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
}

.co-days__date { display: flex; align-items: baseline; gap: .35rem; color: rgba(255, 255, 255, .78); font-size: .85rem; font-weight: 650; }
.co-days__date b { color: #fff; font-size: 2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.co-days__time { color: #fff; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.co-days__note { color: #c9e7da; font-size: .76rem; font-weight: 600; }

.co-days li.is-key { border-color: #fff; background: #fff; box-shadow: 0 .9rem 2rem rgba(4, 37, 29, .25); }
.co-days li.is-key .co-days__date { color: var(--co-green); }
.co-days li.is-key .co-days__date b,
.co-days li.is-key .co-days__time { color: var(--co-deep); }
.co-days li.is-key .co-days__note { color: var(--co-green); font-weight: 800; }

.co-days li.is-off { border-style: dashed; background: transparent; }
.co-days li.is-off .co-days__time,
.co-days li.is-off .co-days__date b { color: rgba(255, 255, 255, .55); }
.co-days li.is-back { background: rgba(5, 45, 35, .2); }

.co-hero__foot { margin: 1.3rem 0 0; color: rgba(255, 255, 255, .7); font-size: .78rem; line-height: 1.6; word-break: keep-all; }

/* 본문 배치 */
.co-layout { display: grid; grid-template-columns: 190px minmax(0, 720px); gap: clamp(2rem, 5vw, 5rem); justify-content: center; max-width: 1120px; margin: 0 auto; padding: 0 28px 96px; }
.co-toc { position: sticky; top: 108px; align-self: start; }
.co-toc small { display: block; margin-bottom: 1rem; color: var(--co-green); font-size: .66rem; font-weight: 800; letter-spacing: .16em; }
.co-toc ol { margin: 0; padding: 0 0 0 1rem; border-left: 1px solid var(--co-line); list-style: none; }
.co-toc li + li { margin-top: .85rem; }
.co-toc a { color: #6b746f; font-size: .8rem; line-height: 1.5; text-decoration: none; word-break: keep-all; }
.co-toc a:hover { color: var(--co-green); }

.co-article { min-width: 0; }
/* style.css가 모든 section에 위아래 여백을 준다. 본문 절 사이 간격은 소제목 여백만으로 잡는다. */
.co-article > section { padding: 0; }
.co-article section[id] { scroll-margin-top: 110px; }
.co-article h2 { margin: 3.6rem 0 1.3rem; color: var(--co-deep); font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 680; line-height: 1.4; letter-spacing: -.045em; word-break: keep-all; }
.co-article p { margin: 0 0 1.35rem; color: #3a403c; font-size: 1.04rem; line-height: 1.95; word-break: keep-all; }
.co-article strong { color: var(--co-deep); }
.co-article a { color: var(--co-green); text-underline-offset: 3px; }

.co-quote { margin: 2rem 0 !important; padding: 1.5rem 1.8rem; border-left: 3px solid var(--co-green); background: var(--co-soft); color: var(--co-deep) !important; font-size: clamp(1.2rem, 2.3vw, 1.5rem) !important; font-weight: 650; line-height: 1.6 !important; letter-spacing: -.03em; }

/* 도판 — 한 주 진료시간 막대 */
.co-figure { margin: 2.6rem 0; padding: clamp(1.4rem, 3.5vw, 2.2rem); border: 1px solid var(--co-line); border-radius: 20px; background: var(--co-paper); }
.co-figure figcaption { margin-bottom: 1.5rem; }
.co-figure figcaption span { display: block; margin-bottom: .45rem; color: var(--co-green); font-size: .66rem; font-weight: 800; letter-spacing: .16em; }
.co-figure figcaption strong { display: block; color: var(--co-deep); font-size: 1.15rem; line-height: 1.45; letter-spacing: -.03em; word-break: keep-all; }
.co-figure > small { display: block; margin-top: 1.2rem; color: #6b746f; font-size: .76rem; line-height: 1.7; word-break: keep-all; }

.co-week { display: grid; gap: .7rem; }
.co-week__row,
.co-week__scale { display: grid; grid-template-columns: 104px minmax(0, 1fr) 64px; align-items: center; gap: .9rem; }
.co-week__row > span:first-child { color: var(--co-muted); font-size: .84rem; font-weight: 650; white-space: nowrap; }
.co-week__row > span:last-child { color: var(--co-deep); font-size: .84rem; font-weight: 700; text-align: right; white-space: nowrap; }

.co-week__bar {
  position: relative;
  height: 34px;
  border-radius: 9px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), rgba(36, 120, 96, .1) calc(20% - 1px) 20%), #fff;
  box-shadow: inset 0 0 0 1px var(--co-line);
}

.co-week__bar i { position: absolute; top: 4px; bottom: 4px; left: calc(var(--from) * 10%); width: calc((var(--to) - var(--from)) * 10%); border-radius: 6px; background: var(--co-teal); }
.co-week__row.is-key > span:first-child { color: var(--co-green); font-weight: 800; }
.co-week__row.is-key .co-week__bar i { background: var(--co-green); box-shadow: 0 0 0 3px rgba(36, 120, 96, .2); }
.co-week__row.is-key > span:last-child { color: var(--co-green); }
.co-week__row.is-off .co-week__bar { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(85, 85, 80, .08) 8px 10px), #fff; }
.co-week__row.is-off > span { color: #8a938e !important; }
.co-week__row.is-back .co-week__bar i { background: #9fb9b1; }

.co-week__ticks { display: flex; justify-content: space-between; color: #8a938e; font-size: .7rem; }
.co-week__ticks b { font-weight: 600; }

/* 연휴에 봐 드리는 불편 */
.co-cases { display: grid; gap: .9rem; margin: 2rem 0; }
.co-case { display: flex; flex-direction: column; padding: 1.5rem 1.6rem; border: 1px solid var(--co-line); border-radius: 18px; background: #fff; }
.co-case small { color: var(--co-green); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.co-case h3 { margin: .5rem 0 .8rem; color: var(--co-deep); font-size: 1.15rem; font-weight: 700; line-height: 1.45; letter-spacing: -.035em; word-break: keep-all; }
.co-case p { margin: 0 0 .9rem !important; font-size: .96rem !important; line-height: 1.85 !important; }
.co-case > a { align-self: flex-start; font-size: .86rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

.co-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 2.2rem 0 0; }
.co-gallery figure { margin: 0; }
.co-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }
.co-gallery figcaption { margin-top: .5rem; color: #5d6661; font-size: .8rem; line-height: 1.5; word-break: keep-all; }

/* 요약 목록 */
.co-recap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1.8rem 0 2rem; padding: 0; list-style: none; }
.co-recap li { padding: 1rem 1.05rem; border-radius: 14px; background: var(--co-soft); color: var(--co-deep); font-size: .88rem; line-height: 1.6; word-break: keep-all; }
.co-recap b { display: block; margin-bottom: .25rem; color: var(--co-green); font-size: .98rem; }

/* FAQ */
.co-faq { margin-top: 3.6rem; }
.co-faq details { border-top: 1px solid var(--co-line); }
.co-faq details:last-child { border-bottom: 1px solid var(--co-line); }
.co-faq summary { position: relative; padding: 1.2rem 2.2rem 1.2rem 0; color: var(--co-deep); font-size: 1rem; font-weight: 680; line-height: 1.55; cursor: pointer; list-style: none; word-break: keep-all; }
.co-faq summary::-webkit-details-marker { display: none; }
.co-faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1.05rem; color: var(--co-green); font-size: 1.3rem; font-weight: 400; }
.co-faq details[open] summary::after { content: "−"; }
.co-faq details p { margin: 0 0 1.3rem; font-size: .96rem; }

@media (max-width: 900px) {
  .co-hero { width: calc(100% - 40px); }
  .co-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .co-layout { grid-template-columns: 1fr; padding-inline: 20px; }
  .co-toc { position: static; padding: 1.2rem 1.3rem; border-radius: 16px; background: var(--co-paper); }
  .co-toc ol { border-left: 0; padding-left: 0; }
}

@media (max-width: 600px) {
  .co-header { padding: 64px 20px 28px; }
  .co-hero { width: calc(100% - 24px); margin-bottom: 54px; padding: 1.6rem 1.2rem; border-radius: 22px; }
  /* 휴대폰에서는 날짜를 한 줄씩 쌓는다. 날짜 · 시간 · 설명 순서로 읽힌다. */
  .co-days { grid-template-columns: 1fr; gap: .5rem; }
  .co-days li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .85rem 1rem; border-radius: 14px; }
  .co-days__date b { font-size: 1.5rem; }
  .co-days__note { text-align: right; }
  .co-week__row,
  .co-week__scale { grid-template-columns: 78px minmax(0, 1fr) 48px; gap: .55rem; }
  .co-week__row > span:first-child,
  .co-week__row > span:last-child { font-size: .74rem; }
  .co-week__row > span:first-child { white-space: normal; line-height: 1.35; }
  .co-case { padding: 1.25rem 1.2rem; }
  .co-recap { grid-template-columns: 1fr; }
}
