/* Concept B (娘惹砖) — used only on the homepage and about page (body.theme-nyonya).
   Blog and reader pages keep site.css unchanged. */
.theme-nyonya {
  --ink: #2C2420;
  --ink-soft: #4A403A;
  --muted: #6F645C;
  --paper: #F6EFE4;
  --paper-2: #E8D9C4;
  --line: #D9C9B0;
  --accent: #8B1E1E;
  --accent-2: #C4A056;
  --green: #1B6B63;
  --coral: #C75B4A;
  --cream: #F6EFE4;
  --white: #FFFaf4;
  --shadow: 0 8px 24px rgba(44, 36, 32, 0.08);
  --font: "Noto Sans SC", "Source Sans 3", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  background: var(--paper);
  color: var(--ink);
}

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

/* Header */
.theme-nyonya .site-header {
  background: #8B1E1E;
  border-bottom: 0;
  color: var(--cream);
}
.theme-nyonya .brand,
.theme-nyonya .brand:hover { color: var(--cream); text-decoration: none; }
.theme-nyonya .brand img { border-radius: 50%; background: #fff; }
.theme-nyonya .brand-text span { color: rgba(246, 239, 228, 0.8); }
.theme-nyonya .nav-toggle {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 239, 228, 0.45);
}
.theme-nyonya .site-nav > a {
  color: rgba(246, 239, 228, 0.92);
}
.theme-nyonya .site-nav > a:hover,
.theme-nyonya .site-nav > a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}
.theme-nyonya .site-nav > a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #C4A056;
  border-radius: 0;
  background: transparent;
}
.theme-nyonya .btn-wa { background: #1B6B63; }
.theme-nyonya .btn-wa:hover { filter: brightness(1.08); }
.theme-nyonya .btn { background: #8B1E1E; color: #fff; }

.theme-nyonya .site-nav > a.btn-wa {
  background: #1B6B63;
  color: #fff;
  border-radius: 999px;
  box-shadow: none;
  margin-left: 0.35rem;
}
.theme-nyonya .site-nav > a.btn-wa:hover,
.theme-nyonya .site-nav > a.btn-wa:focus {
  background: #21867c;
  color: #fff;
  text-decoration: none;
  filter: none;
}
.theme-nyonya .btn-wa { background: #1B6B63; color: #fff; }

/* Notice bar */
.notice-bar {
  background: #1B6B63;
  color: #F6EFE4;
  text-align: center;
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
}
.notice-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* Hero */
.theme-nyonya .hero {
  min-height: 420px;
  text-align: left;
  place-items: unset;
  justify-items: stretch;
  align-items: center;
}
.theme-nyonya .hero-overlay {
  background: linear-gradient(90deg, rgba(44, 36, 32, 0.58) 0%, rgba(44, 36, 32, 0.2) 46%, rgba(44, 36, 32, 0.06) 100%);
}
.theme-nyonya .hero-content {
  padding: 3.2rem 0;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  max-width: none;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.theme-nyonya .hero-content h1,
.theme-nyonya .hero-content p { max-width: 20rem; }
.theme-nyonya .hero h1 {
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem);
}
.theme-nyonya .hero .tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  margin: 0 0 0.7rem;
  opacity: 0.95;
}
.theme-nyonya .hero .where {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.theme-nyonya .hero.compact {
  min-height: 240px;
  text-align: center;
  justify-items: center;
  background:
    radial-gradient(ellipse at 20% 120%, rgba(196, 160, 86, 0.28), transparent 50%),
    linear-gradient(180deg, #164f4a, #1B6B63 60%, #123e3a);
}
.theme-nyonya .hero.compact .hero-bg { display: none; }
.theme-nyonya .hero.compact .hero-overlay { background: transparent; }
.theme-nyonya .hero.compact .hero-content {
  max-width: none;
  text-shadow: none;
  text-align: center;
}
.theme-nyonya .hero.compact .hero-arches {
  position: absolute;
  inset: auto 8% 0;
  height: 72px;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  pointer-events: none;
  opacity: 0.45;
}
.theme-nyonya .hero.compact .hero-arches span {
  width: 88px;
  height: 88px;
  border: 2px solid #C4A056;
  border-bottom: 0;
  border-radius: 88px 88px 0 0;
}

/* Sections */
.theme-nyonya .section { padding: 3.6rem 0; }
.theme-nyonya .section.alt { background: #EDE3D2; }
.theme-nyonya .section-head h2 { color: #8B1E1E; }
.theme-nyonya .section-head p { color: var(--muted); }
.theme-nyonya .card {
  background: #FFFaf4;
  border: 1px solid #E6D8C3;
  border-top: 3px solid #1B6B63;
  box-shadow: var(--shadow);
}
.theme-nyonya .card h3,
.theme-nyonya .card h4 { color: #2C2420; }
.theme-nyonya .card.bordered { border-top-color: #C4A056; border-color: #C4A056; }
.theme-nyonya .mark {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  background: #1B6B63;
  margin-right: 0.45rem;
  vertical-align: 0.1rem;
}

/* 驻诊中医师 */
.practitioner-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}
.practitioner-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid #D9C9B0;
  box-shadow: var(--shadow);
  background: #E8D9C4;
}
.practitioner-copy .role {
  margin: 0 0 0.9rem;
  color: #1B6B63;
  font-size: 0.95rem;
}
.practitioner-copy h3 { margin: 0 0 0.35rem; color: #8B1E1E; font-size: 1.45rem; }
.practitioner-copy p { margin: 0 0 1rem; color: var(--ink-soft); }
.theme-nyonya .text-link {
  color: #1B6B63;
  font-weight: 600;
}
.achievements { margin: 0.6rem 0 0; padding-left: 1.15rem; color: var(--ink-soft); }
.achievements li { margin: 0.35rem 0; }
.theme-nyonya h4.subhead {
  margin: 1.3rem 0 0.4rem;
  font-size: 1.02rem;
  color: #8B1E1E;
}

/* Jieqi */
.jieqi {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem 1.4rem;
  align-items: start;
  background: #FFFaf4;
  border: 1px solid #E6D8C3;
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.jieqi-tag {
  background: #1B6B63;
  color: #F6EFE4;
  font-family: var(--font-serif);
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.jieqi-meta { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.82rem; }
.jieqi p { margin: 0; color: var(--ink-soft); }
.jieqi .text-link { display: inline-block; margin-top: 0.7rem; }

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; }
.theme-nyonya .faq-list details {
  background: #FFFaf4;
  border: 1px solid #E6D8C3;
  border-radius: 10px;
  padding: 0;
  box-shadow: none;
}
.theme-nyonya .faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 2.6rem 0.85rem 1.15rem;
  font-family: var(--font-serif);
  font-weight: 600;
  position: relative;
}
.theme-nyonya .faq-list summary::-webkit-details-marker { display: none; }
.theme-nyonya .faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 0.75rem;
  color: #1B6B63;
  font-weight: 600;
  font-family: var(--font);
}
.theme-nyonya .faq-list details[open] summary::after { content: "–"; }
.theme-nyonya .faq-list .faq-body {
  padding: 0 1.15rem 1rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Visit + directions */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.25rem;
}
.map-frame {
  border: 1px dashed #C4A056;
  border-radius: var(--radius);
  overflow: hidden;
  background: #EDE3D2;
  min-height: 220px;
}
.map-frame {
  min-height: 200px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  color: #1B6B63;
}
.map-frame .map-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
}
.map-frame p { margin: 0; color: var(--ink-soft); }
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 0.8rem 0 0;
}
.map-actions a { font-weight: 600; color: #1B6B63; }
.hours-note, .to-confirm { color: var(--muted); font-size: 0.9rem; }
.visit-extra {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.theme-nyonya .visit-cta { margin-top: 1.25rem; }
.theme-nyonya address { font-style: normal; }

/* Knowledge */
.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.knowledge-grid a.card {
  color: inherit;
  text-decoration: none;
  display: block;
}
.knowledge-grid a.card:hover {
  border-color: #1B6B63;
  text-decoration: none;
}
.knowledge-grid h3 { color: #1B6B63; margin-bottom: 0.45rem; }

/* Footer */
.theme-nyonya .site-footer {
  background: #8B1E1E;
  border-top: 0;
  color: #F6EFE4;
  padding: 1.8rem 0 2.2rem;
}
.theme-nyonya .footer-inner p,
.theme-nyonya .footer-inner a,
.theme-nyonya .footer-links a { color: #F6EFE4; }
.theme-nyonya .footer-tag { display: block; margin-top: 0.25rem; font-size: 0.85rem; opacity: 0.85; }

.theme-nyonya .values li {
  background: #F6EFE4;
  border-color: #E6D8C3;
}
.theme-nyonya .mission-grid .card h3 { color: #8B1E1E; }

.prose-wide { max-width: 760px; margin: 0 auto 2rem; }

@media (max-width: 860px) {
  .theme-nyonya .hero { min-height: 340px; text-align: left; }
  .theme-nyonya .hero-content h1,
  .theme-nyonya .hero-content p { max-width: 18rem; }
  .theme-nyonya .hero-overlay {
    background: linear-gradient(180deg, rgba(44, 36, 32, 0.12) 0%, rgba(44, 36, 32, 0.55) 70%);
  }
  .theme-nyonya .site-nav {
    background: #8B1E1E;
    border-bottom-color: rgba(246, 239, 228, 0.2);
  }
  .practitioner-split,
  .visit-grid,
  .visit-extra,
  .knowledge-grid,
  .jieqi { grid-template-columns: 1fr; }
  .practitioner-photo { max-width: 240px; }
  .theme-nyonya .hero.compact { min-height: 200px; }
}

/* ===== Layout A (homepage) — added 28 Nov 2026 ===== */

/* Festive banner slot. Empty and hidden by default; no JS.
   To use: delete the "hidden" attribute on <aside id="festive-slot"> in index.html
   and put one line of text (or a single linked image) inside it. */
.festive-slot {
  background: #8B1E1E;
  color: #F6EFE4;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
}
.festive-slot[hidden] { display: none; }
.festive-slot a { color: #F6EFE4; text-decoration: underline; text-underline-offset: 2px; }
.festive-slot img { margin-inline: auto; max-height: 120px; width: auto; }

/* Intro band under the hero */
.theme-nyonya .intro-band { padding: 2.4rem 0 2rem; }
.intro-band h2 { margin: 0 0 0.4rem; color: #8B1E1E; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.intro-band p { margin: 0; color: var(--ink-soft); }
.chip-row { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-row li {
  background: #E8D9C4;
  color: var(--ink);
  font-size: 0.82rem;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
}

/* Text/image rows. Text sits left in the first row (NN/g), image alternates after. */
.row-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.row-split.media-first .row-media { order: -1; }
.row-copy h2 { margin: 0 0 0.9rem; color: #8B1E1E; font-size: clamp(1.5rem, 3vw, 2rem); }
.row-copy h3 { margin: 1.1rem 0 0.35rem; color: #8B1E1E; font-size: 1.25rem; }
.row-copy p { margin: 0 0 0.9rem; color: var(--ink-soft); }
.row-copy .role { color: #1B6B63; font-size: 0.95rem; }
.row-copy .row-sub { color: var(--muted); margin-top: -0.4rem; }
.row-media { margin: 0; }
.row-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #E8D9C4;
}
.row-media figcaption { margin-top: 0.4rem; font-size: 0.75rem; color: var(--muted); text-align: right; }
.visit-points { margin: 0; }
.visit-points dt { font-family: var(--font-serif); font-weight: 600; color: #8B1E1E; margin-top: 0.9rem; }
.visit-points dd { margin: 0.15rem 0 0; color: var(--ink-soft); }

/* Quiet booking link — one only */
.quiet-link {
  color: #1B6B63;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.theme-nyonya .visit-cta { margin-top: 1rem; }

/* Location */
.map-embed {
  border: 1px solid #D9C9B0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #EDE3D2;
  box-shadow: var(--shadow);
}
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }
.theme-nyonya .map-actions { align-items: center; margin: 1rem 0 0; gap: 0.8rem 1.4rem; }
.theme-nyonya .btn.btn-map {
  background: #1B6B63;
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}
.theme-nyonya .btn.btn-map:hover { background: #21867c; text-decoration: none; }
.map-link { color: #1B6B63; font-weight: 600; }

@media (max-width: 860px) {
  .row-split { grid-template-columns: 1fr; gap: 1.25rem; }
  .row-split .row-media,
  .row-split.media-first .row-media { order: 2; }
  .map-embed iframe { height: 320px; }
}
.jieqi-tag { justify-self: start; }

/* Layout A content expansion — 28 Nov 2026 */
.en-sub {
  display: block;
  margin: 0.15rem 0 0.7rem;
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.section-head .en-sub { margin-top: 0.35rem; }
.intro-band .en-sub { margin-bottom: 0.65rem; }

.service-stack { display: grid; gap: 1.15rem; }
.service-stack .service {
  background: #FFFaf4;
  border: 1px solid #E6D8C3;
  border-top: 3px solid #1B6B63;
  border-radius: var(--radius);
  padding: 1.4rem 1.55rem 1.25rem;
  box-shadow: var(--shadow);
}
.service-stack .service h3 { margin: 0 0 0.7rem; color: #8B1E1E; }
.service-stack .service p { margin: 0 0 0.7rem; color: var(--ink-soft); }
.service-stack .service p:last-child { margin-bottom: 0; }
.service-stack .label {
  font-family: var(--font-serif);
  font-weight: 600;
  color: #2C2420;
  margin-right: 0.2rem;
}

/* Public-education block in 执业范围 — 29 Nov 2026 */
.edu-stack { display: grid; gap: 1.15rem; margin-bottom: 0.4rem; }
.edu-stack .edu {
  background: #FBF7F0;
  border: 1px solid #D9CBB6;
  border-radius: 8px;
  padding: 1.1rem 1.2rem 1.15rem;
}
.edu-stack .edu h3 {
  margin: 0 0 0.55rem;
  color: #8B1E1E;
  font-size: 1.12rem;
}
.edu-stack .edu p { margin: 0; color: var(--ink-soft); }
.edu-stack .edu p + p { margin-top: 0.55rem; }
.doc-source {
  font-size: 0.88rem;
  color: #5C534C;
}
.doc-source a {
  color: #1B6B63;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#scope .section-head h3 {
  margin: 0 0 0.35rem;
  color: #8B1E1E;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: visit-step;
}
.steps li {
  background: #FFFaf4;
  border: 1px solid #E6D8C3;
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem 1.15rem 4.2rem;
  position: relative;
  box-shadow: var(--shadow);
}
.steps li::before {
  counter-increment: visit-step;
  content: counter(visit-step, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: #C4A056;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.steps h3 { margin: 0 0 0.35rem; color: #8B1E1E; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.jieqi-more { margin-top: 0.7rem !important; }
.prose-wide p { margin: 0 0 0.9rem; color: var(--ink-soft); }
.prose-wide p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .steps li { padding-left: 3.6rem; }
}

/* Google Street View embed in 就诊资讯 (replaces street illustration) */
.street-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #EDE3D2;
  border: 1px solid #D9C9B0;
}
.street-embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
