/* VS LINE Ilsan clinic guides — acne·scar, stem cell, sedation (2026-11-12).
   Everything is scoped to .clinic-guide so the shared site shell keeps its own rules.
   Tokens follow the site palette: ivory paper, ink text, one wine accent. */
@font-face {
  font-family: "VS Clinic Serif";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/clinic-serif-500.woff2") format("woff2");
}

#mainContent.clinic-guide {
  --cg-paper: #fbf9f5;
  --cg-card: #ffffff;
  --cg-tint: #f5f1e9;
  --cg-ink: #23201b;
  --cg-text: #564e44;
  --cg-muted: #6e665b;
  --cg-line: rgba(35, 32, 27, .12);
  --cg-line-strong: rgba(35, 32, 27, .3);
  --cg-accent: #7a1e1e;
  --cg-accent-deep: #5e1616;
  --cg-dark: #302b24;
  --cg-on-dark: #f5f1e9;
  --cg-on-dark-2: #cfc6b8;
  --cg-line-dark: rgba(245, 241, 233, .2);
  --cg-skin-top: #d7a88e;
  --cg-skin-mid: #edcfbb;
  --cg-skin-deep: #f6e6d6;
  --cg-r-s: 8px;
  --cg-r-m: 12px;
  --cg-r-l: 16px;
  --cg-gutter: 28px;
  --cg-ease: cubic-bezier(.22, 1, .36, 1);
  --cg-serif: "VS Clinic Serif", "Noto Serif KR", "Noto Serif CJK KR", AppleMyungjo, Batang, serif;
  --cg-sticky: calc(var(--header-visible-height, 78px) + 52px);
  background: var(--cg-paper);
  color: var(--cg-ink);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.clinic-guide :focus-visible { outline: 2px solid var(--cg-accent); outline-offset: 3px; }
.clinic-guide ul, .clinic-guide ol { list-style: none; }
.clinic-guide p { color: var(--cg-text); }
.clinic-guide [id] { scroll-margin-top: calc(var(--cg-sticky) + 20px); }

.cg-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--cg-gutter); }
.cg-section { padding: 96px 0; }
.cg-section--tint { background: var(--cg-tint); }
.cg-section--tight { padding: 64px 0; }

/* Type: six sizes, serif for the two heading levels only. */
.cg-h1 { font: 500 48px/1.2 var(--cg-serif); letter-spacing: -.02em; color: var(--cg-ink); }
.cg-h2 { font: 500 30px/1.35 var(--cg-serif); letter-spacing: -.015em; color: var(--cg-ink); }
.cg-h3 { font-size: 20px; line-height: 1.45; font-weight: 600; color: var(--cg-ink); }
.cg-h4 { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--cg-ink); }
.cg-sub { margin-top: 12px; max-width: 38em; font-size: 16px; }
.cg-meta { font-size: 13px; line-height: 1.65; color: var(--cg-muted); }
.clinic-guide p.cg-meta { color: var(--cg-muted); }
.cg-head { margin-bottom: 40px; }
.cg-ref { font-size: 12px; line-height: 0; vertical-align: super; }
.cg-ref a { padding: 0 1px; color: var(--cg-accent); }
.cg-ref a:hover { text-decoration: underline; }

.cg-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons and text links */
.cg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--cg-r-s);
  font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
  transition: background-color .15s var(--cg-ease), border-color .15s var(--cg-ease), color .15s var(--cg-ease), transform .15s var(--cg-ease);
}
.cg-btn:active { transform: scale(.98); }
.cg-btn--primary { background: var(--cg-accent); color: #fff; }
.cg-btn--primary:hover { background: var(--cg-accent-deep); }
.cg-btn--secondary { border-color: var(--cg-line-strong); background: var(--cg-card); color: var(--cg-ink); }
.cg-btn--secondary:hover { background: var(--cg-tint); }
.cg-section--tint .cg-btn--secondary:hover { background: var(--cg-paper); }
.cg-btn--light { background: var(--cg-on-dark); color: var(--cg-ink); }
.cg-btn--light:hover { background: #fff; }
.cg-btn--ghost { border-color: var(--cg-line-dark); color: var(--cg-on-dark); }
.cg-btn--ghost:hover { background: rgba(245, 241, 233, .08); }
.cg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cg-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--cg-ink); border-bottom: 1px solid var(--cg-line-strong); padding-bottom: 2px; transition: color .15s var(--cg-ease), border-color .15s var(--cg-ease); }
.cg-link:hover { color: var(--cg-accent); border-color: var(--cg-accent); }

/* Hero and editorial photography */
.cg-hero { padding: 56px 0 64px; border-bottom: 1px solid var(--cg-line); }
.cg-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.cg-hero__eyebrow { margin-bottom: 16px; font-size: 13px; color: var(--cg-muted); }
.cg-hero__eyebrow a:hover { color: var(--cg-ink); text-decoration: underline; }
.cg-hero__statement { margin-top: 20px; font: 500 20px/1.55 var(--cg-serif); letter-spacing: -.01em; }
.clinic-guide p.cg-hero__statement { color: var(--cg-ink); }
.cg-hero__lead { margin-top: 12px; max-width: 34em; }

.cg-photo { overflow: hidden; border-radius: var(--cg-r-m); background: var(--cg-tint); }
.cg-photo img { display: block; width: 100%; height: auto; }
.cg-hero__media { width: 100%; border-radius: var(--cg-r-l); }
.cg-photo--inset { margin-top: 24px; }
.cg-overview, .cg-photo-points {
  display: grid; gap: clamp(32px, 4.5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.cg-overview { margin-bottom: 40px; }
.cg-overview .cg-head { margin-bottom: 0; }
.cg-photo-points { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cg-photo-points .cg-trio { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cg-photo-points .cg-trio > li { padding-top: 16px; }
.cg-photo-points .cg-trio p { margin-top: 4px; }
.cg-photo + .cg-checklist { margin-top: 24px; }

/* Selected editorial photographs retain their full frame alongside the related explanation. */
.cg-story-photo { min-width: 0; margin: 0; }
.cg-story-photo img { display: block; width: 100%; height: auto; border-radius: var(--cg-r-m); background: var(--cg-tint); }
.cg-overview .cg-head .cg-story-photo { margin-top: 24px; }
.cg-illustrated-pair { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(24px, 4.5vw, 64px); margin-top: 32px; }
.cg-illustrated-pair > .cg-note { margin-top: 0; }
.cg-recovery-pair > .cg-six { grid-template-columns: minmax(0, 1fr); }

.cg-plate { padding: 32px; border: 1px solid var(--cg-line); border-radius: var(--cg-r-l); background: var(--cg-card); }
.cg-plate svg { display: block; width: 100%; height: auto; }
.cg-plate__title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; font-size: 13px; color: var(--cg-muted); }
.cg-plate__title strong { font-size: 15px; font-weight: 600; color: var(--cg-ink); }
.cg-plate__labels { display: grid; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--cg-line); }
.cg-plate__labels--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cg-plate__labels--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cg-plate__labels li { display: grid; gap: 4px; align-content: start; }
.cg-plate__labels strong { font-size: 15px; line-height: 1.4; font-weight: 600; }
.cg-plate__labels span { font-size: 13px; line-height: 1.55; color: var(--cg-muted); }
.cg-plate__labels--5 li { text-align: center; }

/* Drawing styles shared by the three plates */
.cg-d-ink { fill: none; stroke: var(--cg-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cg-d-thin { fill: none; stroke: var(--cg-muted); stroke-width: 1; stroke-linecap: round; }
.cg-d-dash { fill: none; stroke: var(--cg-muted); stroke-width: 1; stroke-dasharray: 2 6; stroke-linecap: round; }
.cg-d-accent { fill: none; stroke: var(--cg-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cg-d-accent-fill { fill: var(--cg-accent); }
.cg-d-top { fill: var(--cg-skin-top); }
.cg-d-mid { fill: var(--cg-skin-mid); }
.cg-d-deep { fill: var(--cg-skin-deep); }
.cg-d-paper { fill: var(--cg-paper); }
.cg-d-tint { fill: var(--cg-tint); }
.cg-d-card { fill: var(--cg-card); }
.cg-d-plasma { fill: #ecd9a8; }
.cg-d-buffy { fill: #f6efe0; }
.cg-d-red { fill: #8b2a2a; }
.cg-d-label { font-size: 13px; fill: var(--cg-muted); font-family: inherit; }

/* In-page section navigation, sticky under the site header */
.cg-localnav { position: sticky; top: var(--header-visible-height, 78px); z-index: 20; border-bottom: 1px solid var(--cg-line); background: rgba(251, 249, 245, .97); transition: top .18s ease; }
.cg-localnav__list { display: flex; gap: 32px; height: 52px; overflow-x: auto; scrollbar-width: none; }
.cg-localnav__list::-webkit-scrollbar { display: none; }
.cg-localnav a { display: inline-flex; align-items: center; height: 100%; border-bottom: 2px solid transparent; font-size: 15px; white-space: nowrap; color: var(--cg-muted); transition: color .15s var(--cg-ease), border-color .15s var(--cg-ease); }
.cg-localnav a:hover { color: var(--cg-ink); }
.cg-localnav a[aria-current="true"] { border-bottom-color: var(--cg-accent); color: var(--cg-ink); }

/* Picker: a list of concerns on the left, one answer card on the right */
.cg-picker { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.cg-picker__list { border-top: 1px solid var(--cg-line-strong); }
.cg-picker__tab { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 64px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--cg-line); font-size: 16px; line-height: 1.5; text-align: left; color: var(--cg-text); box-shadow: inset 2px 0 0 transparent; transition: background-color .15s var(--cg-ease), color .15s var(--cg-ease), box-shadow .15s var(--cg-ease); }
.cg-picker__tab .cg-icon { color: var(--cg-muted); }
.cg-picker__tab:hover { background: var(--cg-tint); }
.cg-section--tint .cg-picker__tab:hover { background: var(--cg-paper); }
.cg-picker__tab[aria-selected="true"] { color: var(--cg-ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--cg-accent); }
.cg-picker__tab[aria-selected="true"] .cg-icon { color: var(--cg-accent); }
.cg-panel { padding: 32px; border: 1px solid var(--cg-line); border-radius: var(--cg-r-m); background: var(--cg-card); }
.cg-panel + .cg-panel { margin-top: 16px; }
.cg-panel > p { margin-top: 12px; }
.cg-panel__note { margin-top: 16px; font-size: 15px; }
.cg-panel__more { margin-top: 20px; }

/* Signature: what the doctor checks, attached to each explanation */
.cg-check { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--cg-line); }
.cg-check__label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.clinic-guide p.cg-check__label { color: var(--cg-accent); }
.cg-check__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cg-check__list li { padding: 4px 10px; border-radius: 6px; background: var(--cg-tint); font-size: 15px; line-height: 1.6; color: var(--cg-ink); }
.cg-check--on-tint .cg-check__list li { background: var(--cg-card); }

/* Tab strip (scar shapes, materials, memo stages) */
.cg-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--cg-line-strong); }
.cg-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-bottom: -1px; padding: 0 16px; border-bottom: 2px solid transparent; font-size: 16px; color: var(--cg-text); transition: color .15s var(--cg-ease), border-color .15s var(--cg-ease); }
.cg-tabs button small { font-size: 13px; color: var(--cg-muted); }
.cg-tabs button:hover { color: var(--cg-ink); }
.cg-tabs button[aria-selected="true"] { border-bottom-color: var(--cg-accent); font-weight: 600; color: var(--cg-ink); }
.cg-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.cg-split + .cg-split { margin-top: 32px; }
.cg-split--sheet { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; margin-top: 48px; }
.cg-steps--spaced { margin-top: 32px; }
.cg-figure { padding: 24px; border: 1px solid var(--cg-line); border-radius: var(--cg-r-m); background: var(--cg-card); }
.cg-figure svg { display: block; width: 100%; height: auto; }
.cg-split__copy > p { margin-top: 12px; }
.cg-footnotes { display: grid; gap: 4px; margin-top: 32px; }

/* Roles: problem, what treatment does, what to confirm */
.cg-roles { border-top: 1px solid var(--cg-line-strong); }
.cg-roles__head, .cg-roles__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 32px; }
.cg-roles__head { padding: 12px 0; border-bottom: 1px solid var(--cg-line); font-size: 13px; color: var(--cg-muted); }
.cg-roles__row { padding: 24px 0; border-bottom: 1px solid var(--cg-line); align-items: start; }
.cg-roles__row p { margin-top: 4px; font-size: 15px; }
.cg-roles__row .cg-check { margin-top: 0; padding-top: 0; border-top: 0; }
.cg-roles__row .cg-check__label { display: none; }
.cg-roles__row .cg-check__list { margin-top: 0; }

/* Programmes the clinic actually runs, linked to their own pages */
.cg-care { margin-top: 48px; }
.cg-care__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.cg-care__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 20px 24px; border: 1px solid var(--cg-line); border-radius: var(--cg-r-m); background: var(--cg-card); transition: border-color .15s var(--cg-ease), background-color .15s var(--cg-ease); }
.cg-care__item:hover { border-color: var(--cg-line-strong); background: var(--cg-paper); }
.cg-care__item strong { font-size: 16px; font-weight: 600; }
.cg-care__item span { grid-column: 1; font-size: 15px; line-height: 1.6; color: var(--cg-text); }
.cg-care__item .cg-icon { grid-column: 2; grid-row: 1 / span 2; color: var(--cg-muted); }
.cg-care__item:hover .cg-icon { color: var(--cg-accent); }
.cg-care__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; }

/* Steps and notes */
.cg-two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.cg-steps { border-top: 1px solid var(--cg-line-strong); }
.cg-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 8px; padding: 24px 0; border-bottom: 1px solid var(--cg-line); }
.cg-steps__n { font: 500 30px/1.2 var(--cg-serif); color: var(--cg-muted); }
.cg-steps p { margin-top: 4px; font-size: 15px; }
.cg-note { margin-top: 32px; padding: 24px; border-radius: var(--cg-r-m); background: var(--cg-tint); }
.cg-section--tint .cg-note { background: var(--cg-card); }
.cg-note > p { margin-top: 8px; font-size: 15px; }
.cg-note__defs { display: grid; gap: 8px; margin-top: 12px; }
.cg-note__defs li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; font-size: 15px; line-height: 1.65; color: var(--cg-text); }
.cg-note__defs strong { font-weight: 600; color: var(--cg-ink); }
.cg-note .cg-meta { margin-top: 12px; }
.cg-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cg-trio > li, .cg-trio > article { padding-top: 20px; border-top: 1px solid var(--cg-line-strong); }
.cg-trio p { margin-top: 8px; font-size: 15px; }
.cg-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cg-duo > article { padding: 32px; border: 1px solid var(--cg-line); border-radius: var(--cg-r-m); background: var(--cg-card); }
.cg-duo > article > p { margin-top: 12px; font-size: 15px; }
.cg-six { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--cg-line-strong); }
.cg-six li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 8px; padding: 24px 0; border-bottom: 1px solid var(--cg-line); }
.cg-six p { margin-top: 4px; font-size: 15px; }
.cg-rows { border-top: 1px solid var(--cg-line-strong); }
.cg-rows li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--cg-line); }
.cg-rows p { font-size: 15px; }

/* Study card (stem cell page) */
.cg-study { margin-top: 48px; padding: 32px; border: 1px solid var(--cg-line); border-radius: var(--cg-r-m); background: var(--cg-card); }
.cg-study dl { margin-top: 20px; border-top: 1px solid var(--cg-line); }
.cg-study dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--cg-line); }
.cg-study dt { font-size: 13px; line-height: 1.9; color: var(--cg-muted); }
.cg-study dd { font-size: 15px; line-height: 1.7; color: var(--cg-ink); }
.cg-study .cg-link { margin-top: 20px; }

/* FAQ */
.cg-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.cg-faq__list { border-top: 1px solid var(--cg-line-strong); }
.cg-faq details { border-bottom: 1px solid var(--cg-line); }
.cg-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 16px 0; list-style: none; font-size: 16px; font-weight: 600; line-height: 1.55; cursor: pointer; }
.cg-faq summary::-webkit-details-marker { display: none; }
.cg-faq summary .cg-icon { color: var(--cg-muted); transition: transform .15s var(--cg-ease); }
.cg-faq details[open] summary .cg-icon { transform: rotate(45deg); color: var(--cg-accent); }
.cg-faq details > p { max-width: 44em; padding: 0 40px 24px 0; }

/* Consultation memo */
.cg-memo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.cg-memo__tips { display: grid; gap: 8px; margin-top: 12px; }
.cg-memo__tips li { position: relative; padding-left: 16px; font-size: 15px; color: var(--cg-text); }
.cg-memo__tips li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 1px; background: var(--cg-muted); }
.cg-form { padding: 32px; border: 1px solid var(--cg-line); border-radius: var(--cg-r-m); background: var(--cg-card); }
.cg-form fieldset { border: 0; }
.cg-form fieldset + fieldset, .cg-form .cg-field { margin-top: 24px; }
.cg-form legend, .cg-form label.cg-label { display: block; font-size: 15px; font-weight: 600; }
.cg-form legend small, .cg-form label.cg-label small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--cg-muted); }
.cg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cg-chips label { position: relative; cursor: pointer; }
.cg-chips input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cg-chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--cg-line-strong); border-radius: var(--cg-r-s); font-size: 15px; transition: background-color .15s var(--cg-ease), border-color .15s var(--cg-ease), color .15s var(--cg-ease); }
.cg-chips span:hover { background: var(--cg-tint); }
.cg-chips input:checked + span { border-color: var(--cg-ink); background: var(--cg-ink); color: #fff; }
.cg-chips input:focus-visible + span { outline: 2px solid var(--cg-accent); outline-offset: 3px; }
.cg-form select, .cg-form textarea { display: block; width: 100%; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--cg-line-strong); border-radius: var(--cg-r-s); background: var(--cg-card); color: var(--cg-ink); font-size: 16px; line-height: 1.6; }
.cg-form select { height: 48px; padding-top: 0; padding-bottom: 0; }
.cg-form textarea { min-height: 96px; resize: vertical; }
.cg-form textarea::placeholder { color: var(--cg-muted); opacity: 1; }
.cg-form .cg-btn { margin-top: 24px; }
.cg-form__full { width: 100%; }
.cg-result { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--cg-line); }
.cg-result textarea { min-height: 232px; font-size: 15px; background: var(--cg-paper); }
.cg-result .cg-actions { margin-top: 16px; }
.cg-result .cg-actions .cg-btn { margin-top: 0; }
.cg-result [role="status"] { margin-top: 12px; }

/* Sedation: confirm-memo sheet and preparation checklist */
.cg-sheet { padding: 32px; border: 1px solid var(--cg-line); border-radius: var(--cg-r-m); background: var(--cg-card); }
.cg-sheet .cg-tabs { margin-bottom: 20px; }
.cg-sheet__rows { margin-top: 16px; border-top: 1px solid var(--cg-line); }
.cg-sheet__rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--cg-line); font-size: 15px; }
.cg-sheet__rows dt { color: var(--cg-text); }
.cg-sheet__rows dd { font-weight: 600; text-align: right; }
.cg-sheet > .cg-meta { margin-top: 16px; }
.cg-checklist { padding: 32px; border: 1px solid var(--cg-line); border-radius: var(--cg-r-m); background: var(--cg-card); }
.cg-checklist__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--cg-line-strong); }
.cg-checklist__head output { font-size: 13px; color: var(--cg-muted); font-variant-numeric: tabular-nums; }
.cg-checklist label { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--cg-line); font-size: 15px; line-height: 1.6; cursor: pointer; }
.cg-checklist input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cg-ink); }
.cg-checklist .cg-meta { margin-top: 16px; }

/* Visit band: the one photograph on the page is the real Ilsan clinic */
.cg-visit { padding: 80px 0; background: var(--cg-dark); color: var(--cg-on-dark); }
.cg-visit :focus-visible { outline-color: var(--cg-on-dark); }
.cg-visit__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.cg-visit__photo { overflow: hidden; border-radius: var(--cg-r-m); }
.cg-visit__photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.cg-visit .cg-h2 { color: var(--cg-on-dark); }
.cg-visit dl { margin-top: 24px; border-top: 1px solid var(--cg-line-dark); }
.cg-visit dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--cg-line-dark); }
.cg-visit dt { font-size: 13px; line-height: 2; color: var(--cg-on-dark-2); }
.cg-visit dd { font-size: 16px; line-height: 1.65; }
.cg-visit dd a:hover { text-decoration: underline; }

/* Sources */
.cg-sources { padding: 48px 0 72px; }
.cg-sources ol { display: grid; gap: 8px; margin-top: 16px; counter-reset: cg-source; }
.cg-sources li { display: grid; grid-template-columns: 24px minmax(0, 1fr); font-size: 15px; line-height: 1.65; color: var(--cg-text); counter-increment: cg-source; }
.cg-sources li::before { content: counter(cg-source); font-size: 13px; line-height: 1.9; color: var(--cg-muted); font-variant-numeric: tabular-nums; }
.cg-sources a { text-decoration: underline; text-decoration-color: var(--cg-line-strong); text-underline-offset: 3px; }
.cg-sources a:hover { color: var(--cg-accent); text-decoration-color: var(--cg-accent); }
.cg-sources__note { max-width: 56em; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--cg-line); }

/* The floating quick menu (106px wide, 33px from the right edge) sits over the page on
   desktop. Widen both gutters just enough to keep the content column clear of it. */
@media (min-width: 901px) {
  #mainContent.clinic-guide { --cg-gutter: max(28px, min(155px, calc((1240px - 100vw) / 2 + 155px))); }
}

@media (max-width: 1100px) {
  .cg-two, .cg-memo, .cg-visit__grid, .cg-faq { gap: 40px; }
  .cg-picker, .cg-split { gap: 32px; }
  .cg-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cg-hero__lead { max-width: 38em; }
  .cg-hero__media { max-width: 640px; }
}

@media (max-width: 900px) {
  #mainContent.clinic-guide { --cg-gutter: 20px; --cg-sticky: calc(var(--header-visible-height, 64px) + 48px); }
  .cg-section { padding: 64px 0; }
  .cg-section--tight { padding: 48px 0; }
  .cg-h1 { font-size: 34px; line-height: 1.25; }
  .cg-h2 { font-size: 26px; }
  .cg-head { margin-bottom: 32px; }
  .cg-hero { padding: 32px 0 48px; }
  .cg-hero__grid, .cg-two, .cg-memo, .cg-visit__grid, .cg-faq, .cg-picker, .cg-split { grid-template-columns: minmax(0, 1fr); }
  .cg-hero__grid { gap: 32px; }
  .cg-overview, .cg-photo-points { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cg-overview { margin-bottom: 28px; }
  .cg-illustrated-pair { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; }
  .cg-recovery-pair { margin-top: 0; }
  .cg-recovery-pair > .cg-six { border-top: 0; }
  .cg-two, .cg-memo, .cg-faq { gap: 32px; }
  .cg-picker, .cg-split { gap: 24px; }
  .cg-visit__grid { gap: 32px; }
  .cg-actions { margin-top: 24px; }
  .cg-plate, .cg-panel, .cg-form, .cg-sheet, .cg-checklist, .cg-study { padding: 24px 20px; }
  .cg-plate__title { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cg-duo > article { padding: 24px 20px; }
  .cg-figure { padding: 16px; }
  .cg-localnav__list { gap: 24px; height: 48px; }
  .cg-picker__tab { min-height: 56px; }
  .cg-tabs { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .cg-tabs::-webkit-scrollbar { display: none; }
  .cg-tabs button { flex: 1 0 auto; justify-content: center; padding: 0 12px; }
  .cg-tabs button small { display: none; }
  .cg-roles__head { display: none; }
  .cg-roles__row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cg-roles__row .cg-check__label { display: flex; }
  .cg-roles__row .cg-check__list { margin-top: 8px; }
  .cg-care__list, .cg-trio, .cg-duo, .cg-six { grid-template-columns: minmax(0, 1fr); }
  .cg-trio { gap: 24px; }
  .cg-duo { gap: 16px; }
  .cg-rows li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cg-note__defs li, .cg-study dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cg-study dt { line-height: 1.6; }
  .cg-faq details > p { padding-right: 0; }
  .cg-visit { padding: 64px 0; }
  .cg-visit dl > div { grid-template-columns: 80px minmax(0, 1fr); }
  .cg-plate__labels--5 { gap: 4px; }
  .cg-plate__labels--5 strong { font-size: 13px; }
  .cg-plate__labels--5 span { display: none; }
  .cg-actions .cg-btn { flex: 1 1 auto; }
  .cg-sources { padding: 40px 0 56px; }
}

@media (max-width: 380px) {
  .cg-plate__labels--3 { gap: 8px; }
  .cg-plate__labels--3 strong { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .clinic-guide *, .cg-localnav { transition: none !important; }
}

@media print {
  .cg-localnav, .cg-actions, .cg-form .cg-btn { display: none; }
  .cg-visit { background: none; color: inherit; }
}
