/* 후보 9 (원본 유지): styles for the ADDED pages only (/area/, /hospitals/, /care/internal/, partner detail, listing pages).
   Linked only by src/render/hospitals.mjs; main.css is untouched. Uses main.css tokens and the 7.10.2 grammar
   (.phero, .sec, .ctile, .tiles, .sc-five); hospital cards ported from candidate8 (8.4–8.5). */

/* photo hero, a little shorter than the clinic hero (the list starts on the first screen) */
.phero--hosp { min-height: min(62svh, 600px); }
.hx-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: var(--forest-2); line-height: 1.5; }
.phero .hx-eyebrow { color: var(--brass-soft); }
.phero .display span[lang="en"] { display: block; }
.phero .display .hl__ko { display: block; margin-top: 6px; font-size: 0.5em; font-weight: 500; color: rgba(255, 255, 255, 0.78); }

/* section heads */
.hsec__h { margin-bottom: 18px; }
.hsec__lead { margin: -8px 0 22px; }
.hsec .wrap { display: grid; gap: clamp(28px, 4vw, 48px); }

/* hospital groups */
.hgroup { display: grid; gap: 14px; }
.hgroup__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem); font-weight: 700; letter-spacing: -0.01em; }
.hgroup__h--city { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); padding-top: 8px; }
.hgroup--city { gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.hgroup--city:first-child { border-top: 0; padding-top: 0; }
.hgroup__n { font-size: 14px; font-weight: 500; color: var(--muted); }
.hgroup__more { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--forest-2); text-decoration: underline; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* hospital card: image on top (3:2, fixed box), then facts */
.hlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 641px) and (max-width: 1100px) { .hlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hlist { grid-template-columns: 1fr; } }
.hl { display: grid; gap: 6px; align-content: start; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: border-color 0.25s, box-shadow 0.4s var(--ease); }
.hl:hover { border-color: var(--ink); box-shadow: 0 26px 50px -36px rgba(16, 26, 23, 0.55); }
.hl > :not(.hl__fig) { margin-left: 20px; margin-right: 20px; }
.hl > .hl__name { margin-top: 16px; }
.hl > .hl__foot { margin-bottom: 14px; }
.hl__fig { position: relative; margin: 0; aspect-ratio: 3 / 2; background: var(--sand); overflow: hidden; }
.hl__fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hl__fig--big { max-width: 960px; margin-bottom: 8px; }
.hl__name { font-size: 1.08rem; font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; }
.hl__name a { color: inherit; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.hl__en { display: block; }
.hl__name .hl__ko { display: block; margin-top: 2px; font-weight: 500; color: var(--muted); font-size: 0.92em; }
.hl__meta { font-size: 14px; color: var(--forest-2); font-weight: 500; }
.hl__addr { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.hl__addr-en, .hl__addr-ko { display: block; }
.hl__addr-ko { color: var(--muted); font-size: 0.95em; }
.hl__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hl__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.hl__btn:hover { background: var(--ink); color: var(--ivory); }
.hl__btn--detail { background: var(--forest); border-color: var(--forest); color: #fff; }
.hl__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.hl__fix { color: var(--muted); text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; }
.hnote { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 52em; }
.hnote a { color: var(--forest-2); text-decoration: underline; }
.hsoon { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.6; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.hsoon a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--forest-2); text-decoration: underline; font-size: 15px; }

/* region tiles: four in a row on PC, two on tablets, one on phones */
.ctiles--area .ctile__dept { color: var(--forest-2); }
@media (max-width: 900px) { .ctiles--area .ctile { grid-column: span 6; } }
@media (max-width: 560px) { .ctiles--area { gap: 12px; } .ctiles--area .ctile { grid-column: span 12; } }

/* tiles to the care pages: one row on PC */
.tiles--h { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sc-next .tiles--h { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiles--h, .sc-next .tiles--h { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tiles--h, .sc-next .tiles--h { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tiles--h, .sc-next .tiles--h { grid-template-columns: 1fr; } }

/* internal medicine: steps title, questions to take to the clinic */
.sc-five .hsec__h { margin-top: clamp(28px, 4vw, 44px); }
.hask { display: grid; gap: 12px; counter-reset: q; }
.hask li { counter-increment: q; position: relative; padding: 18px 20px 18px 58px; background: #fff; color: var(--ink); border: 1px solid var(--line); font-size: 17px; line-height: 1.6; font-weight: 500; }
.hask li::before { content: counter(q); position: absolute; left: 18px; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brass); color: #1b1408; font-weight: 700; font-size: 14px; }

/* detail and text pages */
.pdet { max-width: 58em; }
.pdet__lead { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.7; }
.pdet__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pdet__list > div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pdet__list dt { font-weight: 700; }
.pdet__list dd { line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 640px) { .pdet__list > div { grid-template-columns: 1fr; gap: 4px; } }
.pdet__contact { display: grid; gap: 10px; }
.pdet__addr, .pdet__mail { font-size: 15px; }

/* 후보 9 (11/12): region and care-area choosers as text buttons (no repeated photo) */
.hbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.hbtn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 16px; transition: border-color 0.25s, box-shadow 0.4s var(--ease); }
.hbtn b { font-weight: 700; }
.hbtn span { font-size: 14px; color: var(--muted); }
.hbtn .ico { color: var(--forest-2); }
.hbtn:hover { border-color: var(--ink); box-shadow: 0 18px 40px -30px rgba(16, 26, 23, 0.55); }
@media (max-width: 560px) { .hbtns li { flex: 1 1 calc(50% - 10px); } .hbtn { width: 100%; justify-content: space-between; } }
