/* ============================================================
   drroye — design system
   Editorial, warm, trustworthy. Light theme.
   ============================================================ */

:root {
  --paper: #FAF7F1;
  --surface: #FFFFFF;
  --surface-2: #F4EFE6;
  --ink: #17251F;
  --ink-2: #3E4F47;
  --muted: #6F7D76;
  --line: #E5DECF;
  --line-strong: #D2C9B6;

  --pine: #175446;
  --pine-deep: #0D2E27;
  --pine-soft: #E1EDE7;
  --clay: #C05A33;
  --clay-soft: #F8E7DC;
  --gold: #B98A2F;
  --gold-soft: #F5EAD3;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(23, 37, 31, .05), 0 2px 8px -2px rgba(23, 37, 31, .08);
  --shadow-md: 0 1px 2px rgba(23, 37, 31, .05), 0 14px 34px -18px rgba(23, 37, 31, .22);
  --shadow-lg: 0 2px 4px rgba(23, 37, 31, .05), 0 24px 60px -24px rgba(23, 37, 31, .3);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;

  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -100px, rgba(23, 84, 70, .07), transparent 60%),
    var(--paper);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--clay); border-radius: 2px; }

.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--pine); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--pine-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: #A84D2A; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine); background: rgba(23, 84, 70, .04); }
.btn-light { background: #fff; color: var(--pine-deep); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 247, 241, .88);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 30px; height: 72px;
  max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none !important; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--pine-deep);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.brand-name .dot { color: var(--clay); }
.brand-name small { display: block; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 550; color: var(--ink-2);
  text-decoration: none !important; transition: all .15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(23, 37, 31, .05); }
.nav-links a.active { color: var(--pine); background: var(--pine-soft); font-weight: 650; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 9px; width: 42px; height: 42px; cursor: pointer; font-size: 18px; color: var(--ink); }
@media (max-width: 980px) {
  .nav { height: 64px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 14px 20px 20px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 84px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 48px 0 56px; } }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.06; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--pine); }
.hero .lede { font-size: 18.5px; color: var(--ink-2); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.hero-trust .t { padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line); }
.hero-trust .t:last-child { border: none; margin: 0; padding-right: 0; }
.hero-trust b { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.hero-trust span { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; }
.hero-photo {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(23, 37, 31, .12); aspect-ratio: 4 / 3.4;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 14px 16px; font-size: 13px;
}
.float-card.fc-1 { left: -26px; bottom: 46px; width: 240px; }
.float-card.fc-2 { right: -18px; top: 30px; width: 210px; }
@media (max-width: 980px) { .float-card { display: none; } }
.float-card .fc-title { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.float-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.float-row b { font-variant-numeric: tabular-nums; }
.float-row .save { color: var(--clay); font-weight: 700; }

/* ---------- generic blocks ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: all .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.icon-chip {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--pine-soft); color: var(--pine); margin-bottom: 16px;
}
.icon-chip svg { width: 22px; height: 22px; }
.icon-chip.clay { background: var(--clay-soft); color: var(--clay); }
.icon-chip.gold { background: var(--gold-soft); color: var(--gold); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; letter-spacing: .02em;
}
.badge-pine { background: var(--pine-soft); color: var(--pine-deep); }
.badge-clay { background: var(--clay-soft); color: #8f3d1e; }
.badge-gold { background: var(--gold-soft); color: #7c5c14; }
.badge-line { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step .num {
  counter-increment: step; width: 34px; height: 34px; border-radius: 999px; background: var(--pine-deep); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 16px; margin-bottom: 14px;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- hospital cards ---------- */
.hosp-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; text-decoration: none !important; color: inherit; }
.hosp-card .thumb { aspect-ratio: 16 / 9.4; overflow: hidden; position: relative; }
.hosp-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hosp-card:hover .thumb img { transform: scale(1.045); }
.hosp-card .thumb .tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); }
.hosp-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hosp-card .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.hosp-card h3 { font-size: 21px; }
.hosp-card .desc { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.hosp-card .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; font-size: 13.5px; }
.hosp-card .price { font-weight: 700; color: var(--pine-deep); }
.hosp-card .rate { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 700; }

/* ---------- tables ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 15px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--pine-deep); color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: .03em; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(23, 84, 70, .035); }
.compare-table .save { color: var(--clay); font-weight: 700; }
.compare-table .num { font-variant-numeric: tabular-nums; }
.table-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---------- community preview / thread rows ---------- */
.thread-row {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: all .16s; margin-bottom: 10px;
}
.thread-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.avatar {
  width: 42px; height: 42px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--pine), #2E7A65);
}
.avatar.clay { background: linear-gradient(135deg, var(--clay), #D98A5B); }
.avatar.gold { background: linear-gradient(135deg, #8A6A1E, #C7A24E); }
.avatar.ink { background: linear-gradient(135deg, #2A3B33, #51665B); }
.thread-row h4 { font-size: 16px; font-weight: 650; line-height: 1.35; }
.thread-row h4 .pin { color: var(--gold); margin-right: 5px; }
.thread-row .sub { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.verified { color: var(--pine); font-weight: 700; }
.thread-stats { margin-left: auto; text-align: right; flex-shrink: 0; }
.thread-stats b { display: block; font-size: 15px; }
.thread-stats span { font-size: 12px; color: var(--muted); }

/* ---------- community page layout ---------- */
.page-head { padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; margin-bottom: 14px; }
.page-head p { font-size: 18px; color: var(--ink-2); max-width: 640px; }
.layout-side { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
@media (max-width: 980px) { .layout-side { grid-template-columns: 1fr; } }
.side-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.side-panel h3 { font-size: 16px; margin-bottom: 12px; }
.side-panel ul { list-style: none; }
.side-panel li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.side-panel li:last-child { border: none; }
.side-panel li a { color: var(--ink); font-weight: 550; text-decoration: none !important; }
.side-panel li a:hover { color: var(--pine); }
.side-panel li b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

.cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: all .15s; font-family: var(--sans);
}
.chip:hover { border-color: var(--pine); color: var(--pine); }
.chip.on { background: var(--pine-deep); border-color: var(--pine-deep); color: #fff; }

.composer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.composer h3 { font-size: 17px; margin-bottom: 12px; }
.composer .row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.composer input[type="text"], .composer textarea, .input, .field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  outline: none; transition: border .15s, box-shadow .15s;
}
.composer input:focus, .composer textarea:focus, .field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--pine); box-shadow: 0 0 0 3px rgba(23, 84, 70, .13);
}
.composer textarea { min-height: 88px; resize: vertical; }
.composer .grow { flex: 1; min-width: 220px; }
select.chip { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%233E4F47' fill='none' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* thread detail */
.thread-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 22px; }
.thread-detail .post { padding: 24px 26px; border-bottom: 1px solid var(--line); }
.thread-detail .post:last-child { border-bottom: none; }
.post-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.post-head .who b { display: block; font-size: 15px; }
.post-head .who span { font-size: 12.5px; color: var(--muted); }
.post-body { font-size: 15.5px; color: var(--ink-2); white-space: pre-line; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; margin-bottom: 16px; text-decoration: none !important; }

/* ---------- article / guide ---------- */
.article-layout { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 96px; }
.toc .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.toc h4 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0; font-size: 14px; color: var(--ink-2); text-decoration: none !important; border-left: 2px solid transparent; padding-left: 12px; }
.toc a:hover, .toc a.active { color: var(--pine); border-left-color: var(--clay); }

.article { max-width: 720px; }
.article > img.heroimg { border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.article h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; margin-bottom: 16px; }
.article .standfirst { font-size: 18.5px; color: var(--ink-2); margin-bottom: 26px; }
.article .byline { display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 2px; margin-bottom: 34px; flex-wrap: wrap; }
.article h2 { font-size: 25px; margin: 42px 0 14px; scroll-margin-top: 96px; }
.article h3 { font-size: 19px; margin: 28px 0 10px; }
.article p { margin-bottom: 16px; color: var(--ink-2); }
.article ul, .article ol { margin: 0 0 18px 22px; color: var(--ink-2); }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink); }
.callout {
  background: var(--pine-soft); border: 1px solid #C4DAD1; border-radius: var(--radius);
  padding: 18px 20px; margin: 24px 0; font-size: 15px; color: var(--pine-deep);
}
.callout.warn { background: var(--clay-soft); border-color: #EAC6B0; color: #7C3316; }
.callout b { display: block; margin-bottom: 4px; }
.checklist { list-style: none; margin-left: 0 !important; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  background: var(--pine-soft); color: var(--pine-deep); border-radius: 6px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 650; font-size: 15.5px; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 18px 16px; color: var(--ink-2); font-size: 15px; }

/* ---------- interview Q&A ---------- */
.qa { margin: 26px 0; }
.qa .q {
  font-family: var(--serif); font-size: 20px; color: var(--pine-deep); margin-bottom: 10px;
  padding-left: 18px; border-left: 3px solid var(--clay); line-height: 1.35;
}
.qa .a { color: var(--ink-2); padding-left: 21px; margin-bottom: 34px; max-width: 700px; }

.interview-hero { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: end; }
@media (max-width: 980px) { .interview-hero { grid-template-columns: 1fr; } }
.interview-hero img { border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); aspect-ratio: 4/4.4; object-fit: cover; width: 100%; }

.facts { background: var(--pine-deep); color: #EAF2EE; border-radius: var(--radius); padding: 26px; }
.facts h3 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.facts dt { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #9DBBAF; margin-bottom: 2px; }
.facts dd { font-size: 15px; font-weight: 600; color: #fff; }
@media (max-width: 560px) { .facts dl { grid-template-columns: 1fr; } }

/* rating */
.ratebox { display: flex; align-items: center; gap: 14px; }
.stars { display: inline-flex; gap: 2px; }
.stars button { background: none; border: none; cursor: pointer; font-size: 26px; color: #D8D2C2; padding: 0 2px; transition: color .12s, transform .12s; }
.stars button.on { color: var(--gold); }
.stars button:hover { transform: scale(1.15); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--pine-deep); border-radius: 22px; color: #fff; padding: 56px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 999px; background: radial-gradient(closest-side, rgba(23, 84, 70, .9), transparent); }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin-bottom: 12px; }
.cta-band p { color: #B9CFC6; font-size: 16.5px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 2; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 90px; padding: 60px 0 34px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid a { display: block; padding: 5px 0; color: var(--ink-2); font-size: 14.5px; text-decoration: none !important; }
.footer-grid a:hover { color: var(--pine); }
.footer-note { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.disclaimer { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px 16px; font-size: 13px; color: var(--muted); margin-top: 26px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--pine-deep); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0;
  transition: all .3s cubic-bezier(.2, .9, .3, 1.2); z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.demo-banner {
  background: var(--gold-soft); border-bottom: 1px solid #E4D2A6; color: #6E5210;
  font-size: 13px; padding: 8px 20px; text-align: center;
}
.demo-banner b { font-weight: 700; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-list .badge { margin: 0; }
.mark { background: linear-gradient(180deg, transparent 58%, rgba(192, 90, 51, .22) 58%); }

/* ---------- admin ---------- */
.admin-body { background: #F1EDE4; min-height: 100vh; }
.admin-top { background: var(--pine-deep); color: #fff; padding: 0 26px; height: 60px; display: flex; align-items: center; gap: 16px; }
.admin-top .brand-name { color: #fff; font-size: 18px; }
.admin-top .spacer { flex: 1; }
.admin-top a, .admin-top button.linkish { color: #B9CFC6; font-size: 14px; background: none; border: none; cursor: pointer; font-family: var(--sans); }
.admin-top a:hover, .admin-top button.linkish:hover { color: #fff; text-decoration: none; }
.admin-layout { display: grid; grid-template-columns: 210px 1fr; gap: 26px; max-width: 1220px; margin: 26px auto 60px; padding: 0 24px; }
.admin-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 20px; align-self: start; }
.admin-nav button { text-align: left; padding: 11px 16px; border-radius: 10px; border: none; background: transparent; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; font-family: var(--sans); }
.admin-nav button:hover { background: rgba(23, 37, 31, .06); }
.admin-nav button.on { background: var(--pine-deep); color: #fff; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.admin-card h2 { font-family: var(--serif); font-size: 21px; margin-bottom: 6px; }
.admin-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.admin-table th, .admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.admin-table input[type="text"], .admin-table input[type="number"] { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 14px; font-family: var(--sans); }
.admin-table input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(23, 84, 70, .12); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); }
.stat b { font-family: var(--serif); font-size: 30px; display: block; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13.5px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.login-wrap { min-height: 72vh; display: grid; place-items: center; }
.login-box { width: 390px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: var(--shadow-md); }
.mini { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.rowbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.rowbtns button { font-size: 12.5px; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-family: var(--sans); white-space: nowrap; }
.rowbtns button:hover { border-color: var(--pine); color: var(--pine); }
.rowbtns button.danger { color: #A33327; border-color: #E0C3B6; }
.rowbtns button.danger:hover { border-color: #A33327; }
textarea.ta { width: 100%; min-height: 130px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; font-family: var(--sans); font-size: 14px; resize: vertical; }
textarea.ta:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(23, 84, 70, .12); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
@media (max-width: 860px) { .admin-layout { grid-template-columns: 1fr; } .stat-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- admin auth ---------- */
.login-box { width: 400px; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 12px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; font-weight: 500; }
.check input { width: 14px; height: 14px; accent-color: var(--pine); }
.login-error { background: #FBEAE5; border: 1px solid #E7C0B2; color: #8F2E1F; font-size: 13px; line-height: 1.5; padding: 9px 12px; border-radius: 9px; margin: 0 0 10px; }
.login-hint { margin-top: 16px; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #FBF8F1; }
.login-hint b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.login-hint span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.login-hint button { margin-left: auto; border: 1px solid var(--line-strong); background: #fff; border-radius: 7px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: var(--sans); color: var(--ink); }
.login-hint button:hover { border-color: var(--pine); color: var(--pine); }
.notice-warn { background: #FDF3E3; border: 1px solid #EBD5A9; color: #7C5C14; font-size: 13px; padding: 10px 13px; border-radius: 9px; margin-bottom: 16px; }
.admin-who { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #B9CFC6; }
.admin-who .dot-ok { width: 7px; height: 7px; border-radius: 50%; background: #7FC5A9; display: inline-block; }
@media (max-width: 520px) { .login-box { width: 100%; padding: 26px; } }

/* ---------- i18n / language switch ---------- */
.lang-slot { display: inline-flex; align-items: center; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line-strong); background-color: transparent;
  border-radius: 999px; padding: 6px 26px 6px 12px; font-size: 13px; font-weight: 600;
  font-family: var(--sans); color: var(--ink-2); cursor: pointer; line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235C665F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 10px;
}
.lang-select:hover, .lang-select:focus-visible { border-color: var(--pine); color: var(--pine); outline: none; }

/* 文字系统适配 */
:lang(zh) { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", var(--sans), sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .serif, :lang(zh) .brand-name {
  font-family: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "PingFang SC", serif;
  letter-spacing: .01em;
}
:lang(zh) .eyebrow, :lang(zh) .badge { letter-spacing: .08em; }
:lang(ar) { font-family: "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", var(--sans), sans-serif; }
:lang(ar) .serif, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-family: "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", serif; }
:lang(ru) { font-family: "SF Pro Text", "Helvetica Neue", "PT Sans", var(--sans), sans-serif; }

/* RTL 基础修正 */
[dir="rtl"] .field label, [dir="rtl"] .section-head, [dir="rtl"] .standfirst,
[dir="rtl"] .post-body, [dir="rtl"] .thread-row, [dir="rtl"] .float-row,
[dir="rtl"] .footer-grid, [dir="rtl"] .disclaimer { text-align: right; }
[dir="rtl"] .back-link { display: inline-flex; }
[dir="rtl"] .lang-select { padding: 6px 12px 6px 26px; background-position: left 9px center; }

/* 导航 CTA：恢复白字（.nav-links a 颜色覆盖修复） */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-primary:hover { background: var(--pine-deep); }

/* 语言切换器：桌面与移动端布局 */
.lang-slot { margin-left: 6px; }
[dir="rtl"] .lang-slot { margin-left: 0; margin-right: 6px; }
@media (max-width: 980px) {
  .nav-links .lang-slot { margin: 8px 0 2px; }
  .nav-links .lang-slot .lang-select { width: 100%; padding: 10px 30px 10px 14px; font-size: 14px; background-position: right 12px center; }
  [dir="rtl"] .nav-links .lang-slot .lang-select { padding: 10px 14px 10px 30px; background-position: left 12px center; }
  .nav-links .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
}
