/* Detail pages: plain, fast pages in the same visual system as the film. */
html:has(body.page) { scroll-snap-type: none; }
body.page { position: relative; background: var(--bg-2); }
body.page > .canopy { top: var(--header); }
.site-header.solid { border-bottom: 1px solid var(--bar-line); }
/* The detail pages' links are not chapters: no numbers (00 / 01 / 02 clashed with the home's 02 시술, 03 의료진). */
.page .chapters a i { display: none; }
.page main { padding: calc(var(--header) + var(--canopy-room)) var(--pad) clamp(80px, 9vw, 140px); max-width: 1440px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero { max-width: 860px; margin-bottom: clamp(40px, 5vw, 72px); }
.page-hero h1 { font-size: clamp(44px, 6vw, 92px); margin-bottom: 22px; }
.page-lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--text-2); max-width: 680px; }
.vat { margin-top: 14px; font-size: 13px; color: var(--text-3); }
.cat-nav { position: sticky; top: var(--header); z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 0; margin: 0 calc(-1 * var(--pad)) 24px; padding-left: var(--pad); padding-right: var(--pad); background: linear-gradient(180deg, var(--bg-2) 70%, rgb(var(--panel-rgb) / 0)); }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.cat-nav a:hover { color: var(--text); border-color: var(--line-4); }
.cat-nav small { font-size: 11px; color: var(--text-3); }
.cat { scroll-margin-top: calc(var(--header) + 80px); padding-top: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); margin-top: clamp(28px, 4vw, 56px); }
.cat-head { display: grid; grid-template-columns: 220px 1fr; column-gap: 40px; align-items: baseline; margin-bottom: 28px; }
.cat-head .caps { font-size: 11px; letter-spacing: .28em; color: var(--label); grid-row: 1 / span 2; }
.cat-head h2 { font-size: clamp(30px, 3vw, 44px); }
.cat-head p:last-child { color: var(--text-2); max-width: 640px; margin-top: 8px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.item { scroll-margin-top: calc(var(--header) + 80px); display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 22px; border-radius: var(--r-xl); border: 1px solid var(--panel-line); background: var(--panel-bg); box-shadow: var(--panel-shadow); }
.item:target { border-color: var(--pick-line); background: var(--feature-bg); box-shadow: var(--feature-shadow); }
.item header { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.i-meta { grid-column: 1 / -1; font-size: 12px; letter-spacing: .04em; color: var(--label); margin-bottom: 6px; }
.item h3 { font-size: 22px; }
.i-from { font-size: 18px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.i-desc { font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.opts { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.opts th, .opts td { padding: 9px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; color: var(--text-2); }
.opts td { text-align: right; color: var(--text); }
.opts s { color: var(--text-3); margin-right: 6px; }
.opts td s { display: block; font-size: 12px; margin: 0 0 1px; }
.opts th { padding-right: 12px; line-height: 1.45; }
.badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: var(--r-pill); border: 1px solid var(--lit-line); font-style: normal; font-size: 10.5px; letter-spacing: .02em; color: var(--label); vertical-align: 1px; white-space: nowrap; }
.opts-more { align-self: flex-start; min-height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: none; font-size: 13px; color: var(--text-2); }
.opts-more:hover { color: var(--text); border-color: var(--line-4); }
.opt-none { font-size: 14px; color: var(--text-3); }
.item .book { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px), (orientation: portrait) and (max-width: 900px) {
  .page main { padding-top: calc(var(--header) + 36px); }
  .cat-head { grid-template-columns: 1fr; }
  .cat-head .caps { grid-row: auto; margin-bottom: 6px; }
  .items { grid-template-columns: 1fr; }
}

/* ---- Doctor list ---- */
.i-docs { font-size: 13px; color: var(--text-2); }
.i-docs a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--text-4); }

/* ---- Personal doctor page: link hub + profile ---- */
.page-doctor main { padding-top: calc(var(--header) + clamp(32px, 4vw, 64px)); }
.doc-profile { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(28px, 4vw, 72px); align-items: start; }
.hub { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 20px; padding: 20px; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, rgb(var(--white-rgb) / .055), rgb(var(--white-rgb) / .015)); }
.hub-head { display: grid; gap: 18px; align-items: start; }
.hub-face { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--face); display: grid; place-items: center; }
.hub-face picture { display: contents; }
.hub-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hub-face i { font-style: normal; font-size: 64px; font-weight: 600; color: var(--text-2); }
.hub-id { display: grid; gap: 6px; align-content: start; }
.hub-role { font-size: 13px; line-height: 1.1; color: var(--text-2); }
.hub h1 { font-size: clamp(30px, 2.5vw, 38px); line-height: 1.1; letter-spacing: -.03em; }
.hub-field { font-size: 14px; line-height: 1.4; color: var(--label); }
.hub-cred { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--text-3); }
.hub-actions { display: grid; gap: 10px; }
/* Both buttons: label on the left, icon in the same spot on the right. */
.hub-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 0 20px 0 22px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-align: left; transition: background .25s, border-color .25s; }
.hub-btn > svg, .hub-btn > .ico { flex: none; width: 20px; height: 20px; transition: transform .3s var(--ease); }
.hub-btn.primary { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.hub-btn.primary:hover { background: var(--lit); }
.hub-btn.primary:hover > svg { transform: translateX(3px); }
.hub-btn:not(.primary):hover { border-color: var(--line-4); background: var(--fill-3); }
.hub-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: -4px; font-size: 13px; color: var(--text-3); }
.hub-more button { border: 0; background: none; padding: 4px 0; font-size: 13px; color: var(--text-2); }
.hub-more button:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--text-4); }
.hub-foot { display: grid; justify-items: start; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.hub-foot button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font-size: 13px; color: var(--text-2); }
.hub-foot button:hover { color: var(--text); }
.hub-foot svg { width: 16px; height: 16px; }
.hub-note { font-size: 11.5px; color: var(--text-3); }
.doc-body { display: grid; gap: clamp(36px, 4vw, 56px); padding-top: 8px; }
.doc-quote { font-size: clamp(28px, 3vw, 46px); font-weight: 600; letter-spacing: -.03em; line-height: 1.25; }
.doc-intro { margin-top: -18px; font-size: clamp(16px, 1.3vw, 19px); color: var(--text-2); max-width: 720px; }
.doc-body section h2 { font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--label); margin-bottom: 16px; }
.doc-treats { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.doc-treats a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; padding: 14px 18px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--fill-1); transition: border-color .25s; }
.doc-treats a:hover { border-color: var(--line-4); }
.doc-treats b { display: block; font-size: 16px; }
.doc-treats small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.doc-treats em { font-style: normal; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-body .dpoints li { font-size: 16px; }
.doc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.doc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px; border-radius: var(--r-xl); background: var(--feature-bg); border: 1px solid var(--feature-line); box-shadow: var(--feature-shadow); }
.doc-cta p { font-size: 16px; color: var(--text); max-width: 460px; }
.others { margin-top: clamp(60px, 7vw, 110px); padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.others h2 { font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--label); }
.others-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.other-doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-l); border: 1px solid var(--line); }
.other-doc:hover { border-color: var(--line-4); }
.other-doc b { display: block; font-size: 16px; } .other-doc b small { font-size: 12px; color: var(--text-2); font-weight: 500; }
.other-doc > span:nth-child(2) { flex: 1; } .other-doc > span small { font-size: 12px; color: var(--text-3); }
.other-doc > i { font-style: normal; }

/* ---- 방문 예약 (book.html; 2026-11-09, 대표님: one step a screen) and 예약 확인 (check.html): one column of parts
   (css/parts.css). On the booking page the steps (.ui-stepper) at the top, each step's question as a title, and a bar
   at the foot that keeps what is booked, the held time and the step's one action in view. ---- */
.page-book .mobile-book { display: none !important; }
/* a task, not a page to browse (2026-11-09): the header keeps the brand (the way home) and the language, and the
   booking's steps take the chapters' place, always in view - between the brand and the language on a desktop, the
   header's second row on a tablet or a phone. The menu and the booking button step aside. No fibers behind. */
/* the booked screen is a page again: the steps go and the chapters come back, the language at the header's end */
.page-book:not([data-bk-step="done"]) .site-header .chapters, .page-book .site-header .book, .page-book .menu-toggle { display: none; }
.page-book .site-header .header-actions { grid-column: -2; }
/* on a desktop as wide as the steps' column below, so their edges line up */
.bk-head-steps { grid-column: 2; width: min(640px, 100vw - 2 * var(--pad) - 400px); min-width: 0; }
/* the band (.ui-band: the dev site, a preview) hangs from the header's foot where the steps hold the header's middle */
@media (min-width: 1081px) { .page-book .ui-band { top: var(--header); } }
@media (max-width: 1080px) {
  .page-book:not([data-bk-step="done"]) { --header: 120px; }
  .bk-head-steps { grid-column: 1 / -1; grid-row: 2; width: auto; align-self: center; }
}
/* a step fills the screen, so the footer starts below it however short the step */
.page .bk-main { max-width: calc(640px + 2 * var(--pad)); min-height: 100svh; padding-top: calc(var(--header) + var(--sp-8)); padding-bottom: calc(var(--bar-h) + var(--sp-24)); }
/* min-width 0 all the way down: a row of chips or a month wraps inside its column instead of widening the page */
.bk-page { display: grid; gap: var(--sp-10); }
.bk-page > *, .bk > *, .bk-step > * { min-width: 0; }
.bk { display: grid; gap: var(--sp-8); }
.bk fieldset { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: var(--sp-2); }
.bk legend { padding: 0; margin-bottom: var(--sp-2); font-size: var(--fs-small); color: var(--text-2); }
/* a step: its question, then its parts; it comes in from the side it is on (on: from the right; back: from the left) */
.bk-step { display: grid; gap: var(--sp-6); }
.bk-step-head { display: grid; gap: var(--sp-2); }
.bk-step-head h1:focus { outline: none; }
/* a preview's notice (js/booking.mjs): the step's action leads here instead of on, brought into view and focused for
   a screen reader; like a step's title, no ring */
.bk-preview:focus { outline: none; }
.bk-in-on { animation: bk-in var(--dur-base) var(--ease); }
.bk-in-back { animation: bk-in-back var(--dur-base) var(--ease); }
@keyframes bk-in { from { opacity: 0; transform: translateX(var(--sp-6)); } }
@keyframes bk-in-back { from { opacity: 0; transform: translateX(calc(-1 * var(--sp-6))); } }
.bk-doc { display: grid; gap: var(--sp-3); }
.bk-doc .ui-head b { font-size: var(--fs-body); }
/* 1 시술: a card a person - who, how many and how much, 빼기; for a guest, whose treatments they have (나와 같게,
   따로 고르기); the treatments; 시술 추가 - and under them 함께 오는 분 추가 */
.bk-people { display: grid; gap: var(--sp-4); }
.bk-person { display: grid; gap: var(--sp-3); }
.bk-person > * + * { margin-top: 0; }
.bk-person > .ui-btn { justify-self: start; }
.bk-person-head { display: flex; align-items: baseline; gap: var(--sp-3); }
.bk-person-head .ui-sub-head { margin: 0; }
.bk-person-head .ui-meta { flex: 1; }
.bk-cart .ui-row { align-items: center; }
.bk-cart-end { display: inline-flex; align-items: center; gap: var(--sp-3); }
/* an option sold by the unit: how many, under its name and sum */
.bk-qty { display: flex; margin-top: var(--sp-2); }
.bk-person-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.bk-add-person { display: grid; gap: var(--sp-2); }
/* 시술 담기 for one person, in step 1's place: whose it is, then the categories as tabs and the treatments, each
   opening onto its options */
.bk-add { display: grid; gap: var(--sp-2); }
.bk-add .ui-disclosure .ui-rows { padding-left: var(--sp-4); }
.bk-cart-end > span { text-align: right; }
/* 2 날짜·시간: the design system's .ui-calendar and .ui-slots as they are, the times under the month */
.bk-times { display: grid; gap: var(--sp-4); scroll-margin-top: calc(var(--header) + var(--sp-4)); }
.bk-times > .ui-sub-head { margin: 0; }
/* on a desktop the month and its times side by side (the page and its bar wider for this step) */
@media (min-width: 1081px) {
  .page-book[data-bk-step="1"] .bk-main { max-width: calc(960px + 2 * var(--pad)); }
  .page-book[data-bk-step="1"] .bk-bar-in { width: min(100%, 960px); }
  .bk-step[data-step="1"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-10); align-items: start; }
  .bk-step[data-step="1"] > .bk-step-head, .bk-step[data-step="1"] > .bk-items { grid-column: 1 / -1; }
}
/* 3 정보: the phone's country and number side by side; a card for each guest */
.bk-phone-row { display: grid; grid-template-columns: minmax(0, 8em) minmax(0, 1fr); gap: var(--sp-2); }
.bk-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
/* 받고 싶은 시술 under the times (B, 2026-11-26), and the booked page's 더 알려 주실 게 있나요 */
.bk-items { display: grid; gap: var(--sp-6); margin-top: var(--sp-4); padding-top: var(--sp-10); border-top: 1px solid var(--divider); }
/* fields side by side share their rows - title line (.ui-field-head), box, error - so a hint that wraps its title line
   keeps the boxes level (2026-11-26) */
.bk-two, .pt-two { grid-template-rows: auto auto auto; }
.bk-two > .ui-field, .pt-two > .ui-field { grid-row: span 3; grid-template-rows: subgrid; }
.bk-minor { margin-top: var(--sp-1); color: var(--warn-2); }
.bk-comps { display: grid; gap: var(--sp-4); }
.bk-comps:empty { display: none; }
.bk-comp { display: grid; gap: var(--sp-4); }
.bk-comp > * + * { margin-top: 0; }
.bk-comp .ui-sub-head { margin: 0 0 var(--sp-1); }
/* 4 확인: the card, then the consents; the consent's details open in place (no pop-up to be cut on a phone) */
.bk .bk-agree { gap: var(--sp-3); }
.bk-terms { margin: calc(-1 * var(--sp-2)) 0 0 calc(var(--sp-3) + 16px); font-size: var(--fs-small); color: var(--text-2); }
.bk-terms summary { cursor: pointer; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.bk-terms p { margin: var(--sp-2) 0; line-height: var(--lh-body); }
.bk-sum { display: grid; gap: var(--sp-3); }
.bk-sum > * + * { margin-top: 0; }
/* the card's rows come in three lists (the booking, the coupon, the estimate) and read as one */
.bk-sum .bk-rows + .bk-rows > div:first-child { padding-top: var(--sp-3); border-top: 1px solid var(--divider); }
.bk-rows { display: grid; gap: var(--sp-3); margin: 0; }
.bk-rows > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--divider); }
.bk-rows > div:first-child { padding-top: 0; border-top: 0; }
.bk-rows dt { font-size: var(--fs-small); color: var(--text-3); }
.bk-rows dd { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); overflow-wrap: anywhere; }
/* a row that can be changed: 바꾸기 at its end takes the visitor back to its step */
.bk-rows > div:has(> .bk-edit) { grid-template-columns: 7em minmax(0, 1fr) auto; }
.bk-edit { align-self: start; }
/* the total at the card's foot: its name and the amount large on one line, what it leaves out under them */
.bk-total { align-items: baseline; row-gap: var(--sp-1); }
.bk-total > p { flex-basis: 100%; margin: 0; }
.bk-total > .ui-vat { flex-basis: 100%; margin-top: calc(-1 * var(--sp-1)); text-align: right; }
/* the coupon as applied, a row as the booking's are: the code and what it takes off, its words under them */
.bk-coupon { display: grid; gap: var(--sp-1); justify-items: start; }
.bk-coupon:focus { outline: none; }
.bk-coupon-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.bk-coupon-code { text-transform: uppercase; }
.bk-coupon-code::placeholder { text-transform: none; }
/* what 예약 확정 does, by the button: outside the card, after the consents */
.bk-after { display: grid; gap: var(--sp-2); }
.bk-after p { margin: 0; }
/* the bar at the foot */
.bk-bar { position: fixed; z-index: 28; left: 0; right: 0; bottom: 0; padding: var(--sp-3) var(--pad) calc(var(--sp-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--bar-line); background: var(--bar-bg); backdrop-filter: var(--bar-blur); -webkit-backdrop-filter: var(--bar-blur); }
.bk-bar-in { width: min(100%, 640px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; }
.bk-bar-text { display: grid; gap: 2px; min-width: 0; }
.bk-bar p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-snug); color: var(--text-3); }
.bk-bar b { color: var(--text); font-weight: var(--fw-bold); }
.bk-bar [data-bar-hold].on { color: var(--text-2); }
.hold-left { font-variant-numeric: tabular-nums; }
/* done: the booking number large */
.bk-done { display: grid; gap: var(--sp-6); }
.bk-done h1:focus { outline: none; }
.bk-no { display: grid; gap: var(--sp-2); }
.bk-no-line { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.bk-no-line > .ui-btn { flex: none; }
/* the booked page's one card: the number, then the rows under a line (2026-11-26) */
.bk-done-card { display: grid; gap: var(--sp-6); }
.bk-done-card > .bk-no + .bk-rows { padding-top: var(--sp-6); border-top: 1px solid var(--divider); }
.bk-no-big { margin: 0; font-size: var(--fs-title); font-weight: var(--fw-bold); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--text); }
.bk-done-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: 0; }
@media (prefers-reduced-motion: reduce) { .bk-in-on, .bk-in-back { animation: none; } }
/* 예약 확인 */
.ck-form { gap: var(--sp-5); }
.ck-pane { display: grid; gap: var(--sp-5); }
.ck-pane[hidden] { display: none; }
.ck-list { display: grid; gap: var(--sp-4); }
.ck-list > *, .ck-card > * { min-width: 0; }
.ck-list:empty { display: none; }
.ck-card { display: grid; gap: var(--sp-4); }
.ck-card > * + * { margin-top: 0; }
.ck-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.ck-top .ui-sub-head { margin: 0; }
.ck-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; }
.ck-actions .ui-link--quiet { margin-left: var(--sp-2); }
@media (max-width: 760px) {
  .bk-rows > div { grid-template-columns: 1fr; gap: var(--sp-1); }
  .bk-rows > div:has(> .bk-edit) { grid-template-columns: minmax(0, 1fr) auto; }
  .bk-rows > div:has(> .bk-edit) > dd { grid-column: 1 / -1; grid-row: 2; }
  .bk-edit { grid-column: 2; grid-row: 1; }
  .bk-bar-in { gap: var(--sp-2); }
  /* the booked page's two buttons, each the full width on a phone (대표님 2026-11-26) */
  .bk-done-actions { flex-direction: column; }
  .bk-done-actions > .ui-btn { width: 100%; }
}

@media (max-width: 1080px) {
  .others-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px), (orientation: portrait) and (max-width: 900px) {
  .page-doctor main { padding-top: calc(var(--header) + 18px); }
  .doc-facts { grid-template-columns: 1fr; }
  .others-list { grid-template-columns: 1fr; }
  .doc-cta { padding: 20px; }
}



/* Doctor page: an explicit way back to the list above the profile, and the path in the header. */
.crumbs { margin-bottom: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); transition: color .25s, border-color .25s; }
.back-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.back-link:hover { color: var(--text); border-color: var(--line-4); }
.back-link:hover svg { transform: translateX(-3px); }
.nav-crumb { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.nav-crumb .sep { color: var(--text-3); font-size: 12px; }
.nav-crumb b { position: relative; padding: 8px 0; font-weight: 500; color: var(--text); }
.nav-crumb b::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lit); }
@media (max-width: 1080px) {
  .doc-profile { grid-template-columns: 1fr; }
  .hub { position: relative; top: 0; }
  .hub-head { grid-template-columns: 96px 1fr; gap: 18px; }
  .hub-face { aspect-ratio: 1; border-radius: var(--r-l); }
  .hub-actions { grid-template-columns: 1fr 1fr; }
  .nav-crumb { gap: 6px; }
  .nav-crumb b { display: inline-flex; align-items: center; min-height: 34px; padding: 0; font-size: 12.5px; }
  .nav-crumb b::after { bottom: 3px; }
}
@media (max-width: 760px), (orientation: portrait) and (max-width: 900px) {
  .crumbs { margin-bottom: 14px; }
  .back-link { min-height: 36px; font-size: 13px; }
  .hub { gap: 18px; padding: 18px; border-radius: var(--r-xl); }
  .hub-head { grid-template-columns: 80px 1fr; gap: 16px; }
  .hub-face { border-radius: var(--r-m); }
  .hub-id { gap: 5px; }
  .hub h1 { font-size: 28px; }
  .hub-actions { grid-template-columns: 1fr; }
  .hub-btn { min-height: 52px; }
}

/* Doctor list: cards wrap two per row when there is room. */
.doc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; }

/* v5: promotions on the treatments page and the fee list */
.promotions { margin-bottom: clamp(48px, 6vw, 88px); display: grid; gap: clamp(32px, 4vw, 56px); scroll-margin-top: calc(var(--header) + 20px); }
.promo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.promo-card { scroll-margin-top: calc(var(--header) + 80px); display: grid; gap: 8px; align-content: start; padding: 24px 22px 20px; border-radius: var(--r-l); border: 1px solid var(--feature-line); background: var(--feature-bg); box-shadow: var(--feature-shadow); }
.promo-card:target { border-color: var(--lit); }
.promo-card h3 { font-size: 20px; }
.promo-items { color: var(--text-2); font-size: 14px; }
.promo-price { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.promo-price s { color: var(--text-3); font-size: 13px; }
.promo-price b { font-size: 20px; }
.promo-terms { display: block; font-size: 12.5px; color: var(--label); line-height: 1.5; }
.promo-note { font-size: 13px; color: var(--text-3); line-height: 1.6; }
.opts tr.has-promo th .promo-terms { margin-top: 4px; font-weight: 400; }
.opts tr.has-promo td b { color: var(--label); }
.i-bundles { display: grid; gap: 8px; }
.i-bundle { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-m); border: 1px dashed var(--lit-line); }
.i-bundle em { display: block; font-style: normal; font-size: 11.5px; letter-spacing: .04em; color: var(--label); }
.i-bundle b { display: block; font-size: 14.5px; }
.i-bundle small { display: block; font-size: 12px; color: var(--text-3); }
.i-bundle .promo-price b { font-size: 16px; }
.fee-notes { margin: 18px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); font-size: 14px; }
.fees { display: grid; gap: clamp(36px, 5vw, 64px); }
.fee-cat { scroll-margin-top: calc(var(--header) + 80px); }
.fee-cat h2 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 14px; }
.fee-legend { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: var(--text-3); max-width: 68ch; }
/* 고지 지침 별표 2 columns. One tbody per treatment; its name, materials · drugs, remarks and a shared date span its
   option rows. */
.fee-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.fee-table th, .fee-table td { padding: 10px 16px 10px 0; text-align: left; vertical-align: top; font-weight: 400; color: var(--text-2); }
.fee-table thead th { font-size: 12px; line-height: 1.35; color: var(--text-3); padding-bottom: 10px; vertical-align: bottom; }
.fee-group { border-top: 1px solid var(--line-2); }
.fee-group tr + tr td { border-top: 1px solid var(--line); }
.fee-table .fg-name { width: 21%; font-weight: 600; color: var(--text); }
.fee-table .fg-name small { display: block; margin-top: 3px; font-weight: 400; font-size: 12px; color: var(--text-3); }
.fee-table .fg-price { text-align: right; white-space: nowrap; color: var(--text); padding-right: 28px; }
.fee-table .fg-inc { width: 68px; text-align: center; padding-right: 0; padding-left: 0; }
.fee-table thead .fg-inc { width: 76px; padding: 0 4px 10px; white-space: pre-line; }
.fee-table td.fg-inc { color: var(--text); }
.fee-table .fg-remark { width: 19%; padding-left: 20px; }
.fee-table td.fg-remark { font-size: 13px; line-height: 1.5; color: var(--text-3); }
.fee-table .fg-date { width: 84px; text-align: right; white-space: nowrap; padding-right: 0; color: var(--text-3); font-size: 13px; }
.fee-table .fg-meta { display: none; }
.fee-table:not(.full) .fg-name { width: 34%; }
@media (max-width: 760px) {
  .fee-table, .fee-table tbody { display: block; font-size: 14px; }
  .fee-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fee-group { padding: 14px 0 8px; }
  .fee-group tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
  .fee-group tr + tr td { border-top: 0; }
  .fee-table th, .fee-table td { padding: 5px 0; }
  .fee-table .fg-name, .fee-table:not(.full) .fg-name { grid-column: 1 / -1; order: -2; width: auto; padding-bottom: 2px; }
  .fee-table .fg-meta { display: block; grid-column: 1 / -1; order: -1; padding: 0 0 8px; font-size: 12px; line-height: 1.5; color: var(--text-3); }
  .fee-table .fg-meta span { display: block; margin-top: 2px; color: var(--text-3); }
  .fee-table .fg-price { padding-right: 0; }
  .fee-table .fg-inc, .fee-table .fg-remark, .fee-table .fg-date.one { display: none; }
  .fee-table .fg-date { grid-column: 1 / -1; width: auto; text-align: left; padding: 0 0 4px; font-size: 11.5px; }
  .fee-group.solo .fg-name, .fee-table:not(.full) .fee-group.solo .fg-name { grid-column: 1; }
  .fee-group.solo .fg-price { grid-column: 2; grid-row: 1; }
  .fee-group.solo .fg-opt { display: none; }
}

@media (max-width: 760px) {
  .i-bundle { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .i-bundle .promo-price { justify-content: flex-start; }
}

/* 함께하는 곳 (partners.html, js/partners.mjs; 2026-11-25): the groups' cards, then the request form */
.page-partners .page-hero { margin-bottom: clamp(32px, 4vw, 56px); }
.pt-hero-go { margin-top: var(--sp-4); }
.pt-group { margin-top: clamp(40px, 5vw, 64px); }
.pt-group-lead { margin: calc(-1 * var(--sp-2)) 0 var(--sp-4); }
.pt-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.pt-card { display: grid; grid-template-rows: auto 1fr auto; gap: var(--sp-3); align-content: start; min-height: 196px; scroll-margin-top: calc(var(--header) + 24px); }
.pt-card .ui-plate { justify-self: start; }
.pt-plate-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--fw-bold) 15px/1 var(--sans); letter-spacing: -.02em; color: var(--on-solid); }
.pt-who { display: grid; gap: var(--sp-1); align-content: start; }
.pt-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: center; }
.pt-links .ui-link { font-size: var(--fs-small); }
.pt-links svg { width: 14px; height: 14px; }
.pt-card:target { border-color: var(--lit-line); }
.pt-apply { margin-top: clamp(64px, 8vw, 120px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; scroll-margin-top: var(--header); }
.pt-apply-head { position: sticky; top: calc(var(--header) + 24px); }
.pt-form { display: grid; gap: var(--sp-5); max-width: 640px; }
.pt-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.pt-file { position: relative; }
.pt-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-form [data-file-off] { justify-self: start; font-size: var(--fs-small); }
.pt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pt-send-note { margin-top: calc(-1 * var(--sp-2)); }
.pt-sent { display: grid; gap: var(--sp-4); max-width: 640px; }
.pt-sent:focus { outline: none; }
.pt-sent dl { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); margin: var(--sp-2) 0 0; font-size: var(--fs-small); }
.pt-sent dt { color: var(--text-3); }
.pt-sent dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.pt-no { margin: 0; font: var(--fw-regular) var(--fs-title-s)/1.2 var(--caps); letter-spacing: .08em; color: var(--text); }
@media (max-width: 1100px) { .pt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pt-cards { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .pt-card { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto; align-items: center; min-height: 0; column-gap: var(--sp-4); }
  .pt-card .ui-plate { height: 40px; max-width: 120px; }
  .pt-plate-name { font-size: 13px; }
  .pt-card .pt-links { grid-column: 2; }
  .pt-apply { grid-template-columns: minmax(0, 1fr); }
  .pt-apply-head { position: static; }
  .pt-two { grid-template-columns: minmax(0, 1fr); }
}
