/* TRIE Dermatology: colours and type of the clinic's Korean site (trie.co.kr) over warm-wellness, 2026-11-12.
   Olive #7e8660 is the brand colour; text-sized olive is darkened to #687050 so it passes contrast on cream.
   Loaded only for trie through "css" in site.json. */
@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap');

:root {
  --bg: #f3f1ec;
  --bg-2: #ebe6dc;
  --bg-3: #dacfb9;
  --ink: #212121;
  --muted: #666;
  --line: rgba(33, 33, 33, 0.12);
  --accent: #687050;
  --accent-hover: #575e42;
  --accent-ink: #fff;
  --sage: #d2b38a;
  --sage-soft: #e6dfd0;
  --deep: #4c5238;
  --olive: #7e8660;
  --tan: #d2b38a;
  --sand: #e1c9a9;
  --serif: 'Cormorant Garamond', 'Noto Serif KR', Georgia, serif;
}
html[data-lang='ja'] { --serif: 'Cormorant Garamond', 'Noto Serif JP', serif; }
html[data-lang='zh'] { --serif: 'Cormorant Garamond', 'Noto Serif SC', serif; }
html[data-lang='ko'] { --serif: 'Gowun Batang', 'Noto Serif KR', serif; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.005em; }
h1 em, h2 em { font-weight: 500; }
html[data-lang='ko'] :is(h1, h2, h3), html[data-lang='ko'] .brand { font-weight: 400; }
html[data-lang='ko'] h1 em, html[data-lang='ko'] h2 em { font-style: normal; font-weight: 700; }
html[data-lang='ja'] :is(h1, h2, h3), html[data-lang='zh'] :is(h1, h2, h3) { font-weight: 500; }
.eyebrow::before { background: var(--olive); }

.nav.solid { background: rgba(243, 241, 236, 0.9); }
.lang div, .menu div { background: #faf9f6; }
.tabs button:hover { border-color: var(--olive); }
.tabs button[aria-selected='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { border-color: rgba(33, 33, 33, 0.3); }
.card .rec { border-top-color: rgba(33, 33, 33, 0.18); }
.ticks li::before { background: var(--olive); }
blockquote { border-left-color: var(--olive); }
.hero-img { box-shadow: 0 0 0 14px var(--bg-2); }
/* hero photo: the doctor at his desk sits left of centre in the landscape original */
.hero-img img { object-position: 30% 50%; }

.contact::after { background: radial-gradient(ellipse at center, rgba(76, 82, 56, 0.55), rgba(58, 62, 42, 0.94) 78%); }
.contact { color: #f6f3ec; }
.contact h2 em { color: var(--sand); }
.contact .lead { color: #e4ded1; }
.contact .small { color: #d6cfbf; }
.contact .btn-ghost:hover { border-color: var(--sand); }
.footer { color: #ece7dc; }
.footer p, .footer .muted { color: #cfc8b7; }

/* Doctor profile (DoctorProfile.astro) */
.dp { background: var(--bg-2); border-radius: clamp(28px, 4vw, 56px); margin: 0 clamp(8px, 1.5vw, 20px); }
.dp-top { display: grid; grid-template-columns: minmax(240px, 0.72fr) 1.28fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.dp-portrait { margin: 0; border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); box-shadow: 0 0 0 12px var(--bg); }
.dp-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.dp-intro h2 { margin-bottom: 16px; }
.dp-roles { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 26px; }
.dp-roles span + span::before { content: ''; display: inline-block; width: 1px; height: 0.95em; background: var(--olive); margin: 0 14px; vertical-align: -0.12em; }
.dp-bio { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.8; color: #444; max-width: 64ch; }
.dp-lists { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.dp-list h3 { font: 600 12px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.dp-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dp-list li { position: relative; padding-left: 22px; color: #444; font-size: 15.5px; line-height: 1.6; }
.dp-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--tan); }
html[data-lang='ko'] .dp-list li, html[data-lang='ko'] .dp-bio { word-break: keep-all; }

.dp-acad { margin-top: clamp(56px, 7vw, 96px); }
.dp-acad-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px clamp(28px, 4vw, 72px); align-items: end; margin-bottom: 28px; }
.dp-acad-head h3 { font-size: clamp(30px, 3.3vw, 48px); line-height: 1.1; }
html[data-lang='ja'] .dp-acad-head h3, html[data-lang='zh'] .dp-acad-head h3, html[data-lang='ko'] .dp-acad-head h3 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.35; }
.dp-acad-head p { color: var(--muted); max-width: 52ch; }
.dp-tile { display: grid; grid-template-columns: 0.85fr 1.15fr; background: var(--deep); color: #f4f1ea; border-radius: 28px; overflow: hidden; text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 1.1s var(--ease); }
.dp-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(33, 33, 33, 0.2); }
.dp-tile:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
.dp-tile figure { margin: 0; min-height: 100%; overflow: hidden; }
.dp-tile figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dp-tile:hover figure img { transform: scale(1.04); }
.dp-tile-body { padding: clamp(26px, 3.2vw, 48px); display: grid; gap: 18px; align-content: center; }
.dp-tile-label { font: 600 12px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); }
.dp-tile ul { list-style: none; margin: 0; padding: 0; display: grid; }
.dp-tile li { display: grid; grid-template-columns: 94px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 15px; line-height: 1.5; }
.dp-tile li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.dp-tile time { color: var(--sand); font-size: 13.5px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.dp-tile-cta { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-top: 8px; padding: 15px 28px; border-radius: 999px; background: var(--sand); color: #212121; font-weight: 600; font-size: 15px; transition: background 0.3s; }
.dp-tile-cta svg { transition: transform 0.3s var(--ease); }
.dp-tile:hover .dp-tile-cta { background: #fff; }
.dp-tile:hover .dp-tile-cta svg { transform: translate(2px, -2px); }
.dp-tile-sub { font-size: 12.5px; color: #cfc8b7; margin-top: -8px; }

@media (max-width: 900px) {
  .hero-img img { object-position: 24% 40%; }
  .dp { margin-left: 0; margin-right: 0; border-radius: 32px; }
  .dp-top, .dp-lists, .dp-acad-head, .dp-tile { grid-template-columns: 1fr; }
  .dp-portrait { width: min(100%, 320px); }
  .dp-tile figure { aspect-ratio: 3 / 2; min-height: 0; }
  .dp-tile li { grid-template-columns: 1fr; gap: 2px; }
  .dp-roles { flex-direction: column; align-items: flex-start; }
  .dp-roles span + span::before { display: none; }
}
html:not([data-lang='en']) :is(.dp-list h3, .dp-tile-label) { letter-spacing: 0.08em; font-size: 13px; }

/* Round 2 (2026-11-12): hero ticks, "What TRIE means" diagram, list tab, WeChat popover, second map link. */
.hero-badges { list-style: none; margin: -14px 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 600; color: var(--ink); }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }

.tm { padding-bottom: clamp(56px, 7vw, 110px); }
.tm .head { margin-left: auto; margin-right: auto; }
.tm .head .lead { margin: 0 auto; }
.tm-venn { --d: clamp(300px, 36vw, 470px); --ov: calc(var(--d) * 0.3); position: relative; display: flex; justify-content: center; }
.tm-c { width: var(--d); height: var(--d); flex: none; border-radius: 50%; display: grid; place-items: center; text-align: center; border: 1px solid rgba(33, 33, 33, 0.38); }
.tm-c1 { background: rgba(126, 134, 96, 0.3); padding-right: calc(var(--ov) * 0.9); padding-left: calc(var(--d) * 0.08); }
.tm-c2 { background: rgba(210, 179, 138, 0.32); margin-left: calc(var(--ov) * -1); padding-left: calc(var(--ov) * 0.9); padding-right: calc(var(--d) * 0.08); }
.tm-in { display: grid; gap: 6px; justify-items: center; }
.tm-word { font: 500 clamp(40px, 4vw, 58px)/1 var(--serif); color: var(--ink); }
.tm-gloss { font-size: 13.5px; color: #555; margin-bottom: 12px; }
.tm-c ul { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.4vw, 18px); }
.tm-c li { font-size: clamp(15px, 1.25vw, 17.5px); line-height: 1.4; color: #2b2b2b; max-width: 15em; }
.tm-join { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(var(--ov) * 0.8); height: calc(var(--ov) * 0.8); min-width: 88px; min-height: 88px; border-radius: 50%; background: #fff; border: 1px solid rgba(33, 33, 33, 0.35); display: grid; place-content: center; text-align: center; font: 500 clamp(19px, 1.9vw, 28px)/1.05 var(--serif); color: var(--ink); box-shadow: 0 8px 24px rgba(33, 33, 33, 0.08); }
.tm-join span { display: block; }
html[data-lang='ko'] .tm-c li, html[data-lang='ko'] .tm-gloss { word-break: keep-all; }
@media (max-width: 760px) {
  .tm-venn { --d: min(86vw, 340px); --ov: calc(var(--d) * 0.24); flex-direction: column; align-items: center; }
  .tm-c1 { padding: 0 calc(var(--d) * 0.12) var(--ov); }
  .tm-c2 { margin-left: 0; margin-top: calc(var(--ov) * -1); padding: var(--ov) calc(var(--d) * 0.12) 0; }
  .tm-word { font-size: 40px; }
  .tm-gloss { margin-bottom: 8px; }
  .tm-c ul { gap: 8px; }
  .tm-c li { font-size: 15px; }
  .tm-join { width: 84px; height: 84px; min-width: 0; min-height: 0; font-size: 18px; }
}

.panel-img figcaption:empty { display: none; }
.tt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.tt-list li { background: var(--bg-2); border-radius: 22px; padding: 22px 28px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.tt-list b { color: var(--ink); font-weight: 600; margin-right: 4px; }

.contact .contact-text2 { font-size: 15px; margin-top: -8px; }
.channels button.btn { font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.qr-id { margin-top: -8px; }
.qr-id b { color: #f6f3ec; font-weight: 600; letter-spacing: 0.02em; user-select: all; }
.qr-pop { border: 0; border-radius: 28px; padding: 28px 28px 24px; width: min(88vw, 360px); background: #faf9f6; color: var(--ink); text-align: center; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); }
.qr-pop::backdrop { background: rgba(33, 33, 33, 0.55); }
.qr-pop img { width: 100%; height: auto; display: block; border-radius: 12px; background: #fff; }
.qr-pop p { margin: 16px 0 0; font-size: 16px; }
.qr-pop p b { user-select: all; }
.qr-pop .qr-note { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.qr-pop .btn { margin-top: 18px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink); border-color: rgba(33, 33, 33, 0.3); }

.visit-grid .link { margin-right: 22px; }
.visit-grid .small { font-size: 14px; line-height: 1.55; color: #555; }
.card .for b { margin-right: 2px; }
.tm-c li, .tm-gloss, .qr-pop .qr-note { text-wrap: balance; }

/* Nav follows the page order (2026-11-12, round 2: the doctor section comes before the treatments). */
details.menu > div { display: flex; flex-direction: column; }
.nav-links a[href="#doctor"], details.menu > div a[href="#doctor"] { order: -1; }

/* Treatment tabs without photos (2026-11-12, round 3: the clinic has no photos of its own and asked to drop the AI ones). */
.panel { grid-template-columns: 1fr; }
.panel-img { display: none; }
@media (min-width: 1000px) { .tt-list { grid-template-columns: 1fr 1fr; } }

/* WeChat ID shows only in the popover (2026-11-13, round 4: the doctor asked to drop the separate line). */
.qr-id { display: none; }
