/* 覺悟 · Awareness — design system
   Warm, calm, contemplative. Paper/inspired minimalism with a quiet gold.
   Not a template. Built for a philosophy of understanding. */

:root {
  /* palette — paper, ink, quiet gold, deep banyan green */
  --paper: #f7f4ee;
  --paper-2: #efe9dd;
  --ink: #1f2430;
  --ink-soft: #4a5264;
  --cream: #fbf9f4;
  --gold: #a9853b;
  --gold-strong: #8a6426; /* darker gold for white-text-on-gold CTA contrast (>=4.5:1) */
  --gold-soft: #c9a86a;
  --banyan: #2f4b3a;
  --banyan-deep: #1e3327;
  --line: #dcd5c5;
  --rose: #8c4a4a;

  --shadow: 0 10px 30px rgba(31, 36, 48, 0.08);
  --radius: 14px;
  --maxw: 1080px;

  --serif: "Georgia", "Songti SC", "SimSun", "Noto Serif SC", serif;
  --sans: "Comic Sans MS", "Comic Sans", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background-color: var(--paper);
}

body {
  opacity: 1;
  background: transparent;
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}

/* nature pattern sits BEHIND all content, only the image at 10% */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../img/nature/buddhist-flag.svg');
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 64px 64px;
  opacity: 0.07;
  pointer-events: none;
}

/* ---------- top flourish ---------- */
.flourish {
  height: 6px;
  background: linear-gradient(90deg,
    var(--banyan-deep), var(--banyan), var(--gold-soft), var(--gold), var(--banyan-deep));
}

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgb(251, 249, 244);
}
.head-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--banyan-deep);
}
.brand .han { color: var(--gold); }
.tagline {
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.nav-links a {
  margin-left: 1.3rem;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  /* larger tap target (>=48px) without changing visual rhythm */
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.25rem;
  min-height: 48px;
}
.nav-links a:hover { border-bottom-color: var(--gold); }

/* ---------- site search ---------- */
.search-wrap {
  position: relative;
  margin-left: auto;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  padding: 0.35rem 0.8rem;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--gold); }
.search-box svg { width: 14px; height: 14px; stroke: var(--ink-soft); flex: none; }
.search-box input {
  border: none; outline: none; background: transparent;
  font: inherit; font-size: 0.88rem; color: var(--ink);
  width: 150px; padding: 0;
}
.search-box input::placeholder { color: var(--ink-soft); }
.search-results {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: min(340px, 86vw); max-height: 320px; overflow: auto;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  z-index: 60;
}
.search-results a {
  display: block; padding: 0.6rem 0.85rem; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid #ece3d2;
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: #f5efe4; }
.search-results .sr-t {
  font-weight: 600; font-size: 0.9rem; color: var(--banyan-deep); margin-bottom: 0.1rem;
}
.search-results .sr-d {
  font-size: 0.78rem; color: var(--ink-soft); line-height: 1.35;
}
.search-results .sr-empty {
  padding: 0.7rem 0.85rem; font-size: 0.85rem; color: var(--ink-soft);
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5.5rem 1.4rem 3.5rem;
  text-align: center;
}
.hero .lotus { font-size: 2.6rem; color: var(--gold-soft); display: block; margin-bottom: 1.2rem; }
.hero .hero-lotus {
  display: block; width: 128px; height: 128px; margin: 0 auto 1.4rem;
  opacity: 0.95; filter: drop-shadow(0 6px 18px rgba(201,168,106,0.25));
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--banyan-deep);
  margin-bottom: 1.2rem;
}
.hero h1 .han { color: var(--gold); }
.hero .lede {
  max-width: 640px;
  margin: 0 auto 2.2rem;
  font-size: 1.18rem;
  color: var(--ink-soft);
}
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.why-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper, #f6f2e9) 100%);
  border-top: 1px solid rgba(201,168,106,0.22);
}
.guiding-thread {
  max-width: 720px;
  margin: 2.2rem auto;
  padding: 1.6rem 1.8rem 1.4rem;
  text-align: left;
  background: var(--cream);
  color: var(--banyan-deep);
  border-radius: 18px;
  border: 1px solid rgba(201,168,106,0.4);
  box-shadow: 0 14px 36px rgba(0,0,0,0.25);
}
.guiding-thread .gt-kicker {
  color: #8a6d3b;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}
.guiding-thread blockquote {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: #2c4033;
  border-left: 4px solid var(--gold);
  padding-left: 1.3rem;
  margin: 0 0 1rem;
}
.guiding-thread .gt-foot {
  font-size: 0.92rem;
  color: #5b6b5f;
  margin: 0;
}
/* keystone = one banner holding BOTH the opener and the guiding thread */
.hero-center { text-align: center; }
.keystone .hero-lotus {
  display: block; width: 128px; height: 128px; margin: 0 auto 1.4rem;
  opacity: 0.95; filter: drop-shadow(0 6px 18px rgba(201,168,106,0.35));
}
.keystone-h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--cream);
  margin: 0 0 1.1rem;
}
.keystone-h1 .han { color: var(--gold-soft); }
.keystone-lede {
  max-width: 640px;
  margin: 0 auto 0.4rem;
  font-size: 1.15rem;
  color: #efe7d6;
}
.keystone .pixacredit { color: rgba(243,234,217,0.6); }
.keystone .cta-row { margin-top: 1.6rem; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-gold { background: var(--gold-strong); color: #fff; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(138,100,38,0.35); }
.btn-ghost { border: 1px solid var(--gold-strong); color: var(--gold-strong); }
.btn-ghost:hover { background: var(--cream); transform: translateY(-2px); }

/* ---------- section shells ---------- */
section { padding: 3.5rem 1.4rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.sec-kicker {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
h2.sec-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--banyan-deep);
  margin-bottom: 1rem;
}
.sec-sub { color: var(--ink-soft); max-width: 700px; margin-bottom: 2.2rem; }

/* ---------- the keystone callout ---------- */
.keystone {
  background: linear-gradient(160deg, var(--banyan-deep), var(--banyan));
  color: var(--cream);
  padding-top: 2.4rem;
  /* pull visually under the hero so the two read as one opening statement */
  margin-top: -1px;
}
.keystone.inline-hero { position: relative; }
.keystone .sec-kicker {
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.keystone .sec-title {
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1.25;
}
.keystone blockquote {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: #f3ead9;
  border-left: 4px solid var(--gold-soft);
  padding-left: 1.5rem;
  max-width: 760px;
  margin: 0 0 1.2rem;
}
/* CRITICAL FIX (2026-08-16): the guiding-thread card sits INSIDE .keystone (dark
   banner), but the card itself is CREAM. The rule above forces light text onto it,
   making the words unreadable. Higher-specificity override so the cream card keeps
   dark, legible text. */
.keystone .guiding-thread blockquote {
  color: #2c4033;
  border-left-color: var(--gold);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  padding-left: 1.3rem;
  max-width: none;
  margin: 0 0 1rem;
}
.keystone .sec-sub {
  font-size: 0.92rem;
  color: #d9d2c0;
  margin: 0;
}

/* ---------- chapter cards ---------- */
.chap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.chap {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.chap:hover { transform: translateY(-4px); }
.chap .num { font-family: var(--serif); color: var(--gold); font-size: 0.95rem; letter-spacing: 0.1em; }
.chap h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0.4rem 0 0.7rem; color: var(--banyan-deep); }
.chap p { font-size: 0.97rem; color: var(--ink-soft); }
.chap .meta { margin-top: 1rem; font-size: 0.8rem; color: var(--gold); }
.chap-img {
  display: block;
  width: calc(100% + 3rem);
  margin: -1.6rem -1.5rem 1.25rem;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--line);
}
.chap-img::after { content: ""; }
.art-photo {
  margin: 0 0 1.8rem;
  text-align: center;
}
.art-photo img {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.art-photo figcaption {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.art-photo figcaption a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- "not a religion" banner ---------- */
.phil-banner {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  margin-top: 2.4rem;
}
.phil-banner .sym { font-size: 1.8rem; color: var(--gold); }
.phil-banner .phil-wheel {
  flex: 0 0 auto; width: 64px; height: 64px; opacity: 0.9;
  filter: drop-shadow(0 4px 10px rgba(201,168,106,0.18));
}
.phil-banner h4 { font-family: var(--serif); font-size: 1.2rem; color: var(--banyan-deep); margin-bottom: 0.3rem; }
.phil-banner p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- principles / how it guides ---------- */
.prin-grid { display: grid; gap: 1.2rem; }
.prin {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1.3rem 1.5rem;
  border-radius: 6px;
}
.prin h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--banyan-deep); margin-bottom: 0.4rem; }
.prin p { font-size: 0.98rem; color: var(--ink-soft); }
.prin .ref {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--gold);
  font-style: italic;
}

/* principles as a plain, non-interactive list (not clickable cards) */
.prin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 62ch;
}
.prin-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.prin-list li:last-child { border-bottom: none; }
.prin-list strong { font-family: var(--serif); font-size: 1.05rem; color: var(--banyan-deep); }
.prin-list .ref {
  display: inline;
  font-size: 0.82rem;
  color: var(--gold);
  font-style: italic;
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 2.5rem 1.4rem 3rem;
  text-align: center;
}
.site-foot .han { font-family: var(--serif); color: var(--gold); font-size: 1.3rem; }
.site-foot .sourced-note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.site-foot .copyright {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.site-foot .copyright .han-sm {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold-soft);
}
.site-foot .copyright .han-sm::after { content: " ·"; color: var(--gold); }
.site-foot .copyright .mail-line {
  flex-basis: 100%;
  text-align: center;
  margin-top: 0.6rem;
  color: var(--ink-soft);
}
.site-foot .copyright .mail-line a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
}
.site-foot .copyright .mail-line a:hover { color: var(--banyan-deep); }

/* "We are based out of Singapore." note added to footers (2026-08-16) */
.based-sg {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92em;
}

/* ---------- chapter / article pages ---------- */
.site-head .site-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--banyan-deep);
}
.site-head .site-title a {
  color: var(--banyan-deep);
  text-decoration: none;
}
.site-head .site-title a .han,
.site-title .han { color: var(--gold); }
.site-tag {
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.6rem 1.4rem 3.4rem;
}
.article-body .han-sm {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  font-family: var(--serif);
}
.article-body h1 {
  font-family: var(--serif);
  font-size: 2.05rem;
  line-height: 1.2;
  color: var(--banyan-deep);
  margin: 0 0 1.1rem;
}
.article-body .lede {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1.8rem;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.42rem;
  color: var(--banyan-deep);
  margin: 2.4rem 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.article-body p { margin: 0 0 1.15rem; }
.article-body ul { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.5rem; line-height: 1.65; }
.article-body blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
  border-radius: 0 8px 8px 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--banyan-deep);
}
.article-body .chapter-fig {
  margin: 1.6rem auto; text-align: center;
}
.article-body .chapter-fig img {
  width: 132px; height: 132px;
  opacity: 0.92; filter: drop-shadow(0 6px 16px rgba(201,168,106,0.22));
}
.article-body .chapter-fig figcaption {
  margin-top: 0.5rem; font-size: 0.82rem; color: var(--ink-soft);
  font-style: italic; letter-spacing: 0.02em;
}
.article-body .ref {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: rgba(177, 146, 89, 0.07);
  border-left: 2px solid rgba(177, 146, 89, 0.4);
  padding: 0.5rem 0.85rem;
  border-radius: 0 6px 6px 0;
  margin: 0.2rem 0 1.4rem;
  line-height: 1.55;
}
.article-body .note {
  font-size: 0.97rem;
  color: var(--ink-soft);
  background: rgba(90, 120, 90, 0.07);
  border-left: 3px solid var(--banyan);
  padding: 0.85rem 1.1rem;
  border-radius: 0 8px 8px 0;
  margin: 1.3rem 0;
  line-height: 1.6;
}
.article-body .alison-note {
  font-size: 0.98rem;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(210, 176, 150, 0.10), rgba(177, 146, 89, 0.06));
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem 1rem 1.25rem;
  margin: 1.5rem 0 1.6rem;
  line-height: 1.68;
}
.article-body .alison-note h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.article-body .alison-note p { margin: 0.4rem 0; }
.article-body .alison-note p:last-child { margin-bottom: 0; }
.article-body .alison-note .note-avatar {
  float: left;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0.15rem 0.8rem 0.35rem 0;
  box-shadow: 0 2px 8px rgba(90, 60, 30, 0.16);
  border: 2px solid rgba(177, 146, 89, 0.45);
  background: #fdf9f2;
}
.article-body .alison-note .note-avatar + h3 { margin-top: 0.1rem; }
.alison-note { overflow: hidden; }
.eric-avatar {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin: 0 0.4rem 0.15rem 0;
  box-shadow: 0 2px 8px rgba(90, 60, 30, 0.16);
  border: 2px solid rgba(177, 146, 89, 0.45);
  background: #fdf9f2;
}
.site-foot .foot-selfie {
  display: inline-block;
  width: 92px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(90, 60, 30, 0.18);
  margin: 0 0 0.4rem 0.6rem;
  vertical-align: middle;
  border: 2px solid rgba(177, 146, 89, 0.40);
  background: #fdf9f2;
}
@media (max-width: 520px) {
  .article-body .alison-note .note-avatar { width: 38px; height: 38px; }
  .site-foot .foot-selfie { width: 76px; }
}
.article-body .weekly-entry {
  border-bottom: 1px solid rgba(177, 146, 89, 0.20);
  padding: 0.5rem 0 2.2rem;
  margin: 0 0 2.2rem;
}
.article-body .weekly-entry:last-of-type { border-bottom: none; }
.article-body .weekly-entry h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.article-body .entry-date {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.article-body .ponder {
  background: rgba(177, 146, 89, 0.07);
  border: 1px solid rgba(177, 146, 89, 0.20);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0 1.6rem;
}
.article-body .ponder h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.article-body .ponder ul { margin: 0 0 0.2rem; }
.article-body .ponder li { margin-bottom: 0.55rem; line-height: 1.68; }
.weekly-banner {
  background: linear-gradient(135deg, rgba(177, 146, 89, 0.10), rgba(210, 176, 150, 0.05));
  border-top: 1px solid rgba(177, 146, 89, 0.18);
  border-bottom: 1px solid rgba(177, 146, 89, 0.18);
  padding: 2.6rem 0;
}
.weekly-banner .sec-kicker { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.4rem; }
.weekly-banner .sec-title { font-family: var(--serif); font-size: 1.8rem; line-height: 1.3; margin: 0 0 0.6rem; }
.chant-block {
  display: block;
  background: rgba(255, 251, 243, 0.8);
  border: 1px solid rgba(177, 146, 89, 0.25);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.3rem;
  margin: 1.2rem 0 0.4rem;
  font-size: 1.02rem;
  line-height: 1.9;
}
.chant-block .chant-cn {
  display: block;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.chant-block .chant-en {
  display: block;
  color: var(--banyan);
  font-style: italic;
  margin-bottom: 0.7rem;
  font-size: 0.96rem;
  line-height: 1.6;
}
.article-body .ref { margin-top: 0.3rem; color: var(--banyan); font-size: 0.85rem; }
.article-body .fin {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-align: center;
}
.article-body strong { color: var(--banyan-deep); }
.article-body em { font-style: italic; }

/* ---------- photos ---------- */
.photo {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 1.8rem auto 0.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.photo-caption {
  display: block;
  max-width: 740px;
  margin: 0 auto 1.8rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
  letter-spacing: 0.02em;
}
.hero-photo {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.pixacredit {
  display: block;
  margin: 0.25rem auto 2rem;
  max-width: 740px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
}
.pixacredit a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .head-inner { flex-direction: column; text-align: center; gap: 0.4rem; }
  .nav-links a { margin: 0 0.6rem; }
  .hero { padding-top: 3.5rem; }
  .phil-banner { flex-direction: column; }
}

/* ---------- language toggle ---------- */
.lang-toggle {
  margin-left: auto;
}
.lang-toggle a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--banyan-deep);
  background: var(--cream);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.lang-toggle a:hover {
  border-color: var(--gold);
  background: var(--paper-2);
}
.lang-toggle .sep { color: var(--ink-soft); }
.lang-toggle .cur { font-weight: 700; color: var(--gold); }

/* ---------- Chinese article body ---------- */
body.zh .article-body,
body.zh main,
body.zh .chapter-body {
  font-family: var(--sans);
  line-height: 1.95;
  letter-spacing: 0.01em;
}
body.zh h1, body.zh h2, body.zh .han-title {
  font-family: var(--serif);
  line-height: 1.5;
}
body.zh p, body.zh li {
  text-align: justify;
}
.zh .ref { font-size: 0.85rem; color: var(--ink-soft); }
.zh .ref::before { content: "参考 · "; color: var(--gold); }

/* ---------- Still Guiding Us (tenets) ---------- */
.tenets-page { background: #faf6ef; }
.tenets { max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.tenets-kicker { letter-spacing: .35em; text-transform: uppercase; font-size: .8rem; color: #9a7b3c; margin: 0 0 .4rem; }
.tenets-title { font-size: 2.2rem; line-height: 1.15; font-family: Georgia, 'Songti SC', 'STSong', 'Noto Serif SC', serif; margin: 0 0 .6rem; }
.tenets-title .han { color: #8a6d3b; }
.tenets-lede { font-size: 1.02rem; color: #4a4237; max-width: 38rem; margin: 0 0 2.5rem; line-height: 1.65; }
.tenet-row { display: flex; gap: 1.4rem; padding: 1.6rem 0; border-top: 1px solid #e4dccb; }
.tenet-row:last-of-type { border-bottom: 1px solid #e4dccb; }
.tenet-num { font-size: 1.6rem; color: #b9a26a; font-family: 'Songti SC','STSong','Noto Serif SC',Georgia,serif; min-width: 2.2rem; line-height: 1.4; }
.tenet-body { flex: 1; }
.tenet-row h2 { font-size: 1.3rem; font-family: Georgia,'Songti SC','STSong','Noto Serif SC',serif; margin: 0 0 .5rem; font-weight: 600; }
.tenet-row h2 .han { font-size: 1.1rem; color: #8a6d3b; }
.tenet-row h2 .en-term { font-size: .95rem; color: #9a7b3c; font-style: italic; font-weight: 400; }
.tenet-row p { margin: 0 0 .6rem; line-height: 1.7; color: #2f2a22; }
.tenet-row .ref { font-size: .86rem; color: #7a6f5c; line-height: 1.6; }
.tenet-row .deep { font-size: .97rem; color: #3a342b; line-height: 1.72; }
.tenet-row .how { font-size: .94rem; color: #4a4237; line-height: 1.68; background: #f4ecdb; border-left: 3px solid #b9a26a; padding: .6rem .9rem; border-radius: 6px; margin: .7rem 0 .7rem; }
.tenet-row .how strong { color: #6a4f1e; }
body.zh .tenet-row .deep { line-height: 1.9; }
body.zh .tenet-row .how { line-height: 1.85; }
.tenets-fin { text-align: center; margin-top: 3rem; color: #6a5f4d; line-height: 1.9; }
.tenets-fin .han { font-size: 1.15rem; color: #8a6d3b; letter-spacing: .1em; }
body.zh .tenet-row h2 .en { font-size: .92rem; color: #9a7b3c; font-style: italic; font-weight: 400; }
body.zh .tenet-row h2 span.en { margin-left: .3rem; }

/* ---------- Still Guiding Us (index strip) ---------- */
.guiding-strip { background: #f4ecdb; border-top: 1px solid #e0d4ba; border-bottom: 1px solid #e0d4ba; }
.guiding-strip .sec-title .han { color: #8a6d3b; }
.tenet-chips { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 .4rem; }
.chip { display: inline-flex; align-items: baseline; gap: .5rem; background: #fffcf5; border: 1px solid #e0d4ba; border-radius: 999px; padding: .5rem 1rem; font-size: .95rem; color: #3a3327; line-height: 1.4; }
.chip b { color: #8a6d3b; font-family: 'Songti SC','STSong','Noto Serif SC',Georgia,serif; font-weight: 600; }
.guiding-more { margin: 1.8rem 0 0; }
.guiding-more .btn .han { margin-left: .3rem; }
/* Strip comic images - keep modest size consistent with other page images */
/* Strip comic images in illustrated-teachings section - keep modest size */
.illustrated-teachings .strip-img {
  max-width: 180px !important;
  width: 100% !important;
  width: 100%;
  height: auto;
  margin: 0 auto 0.5rem;
  border-radius: 8px;
  background: #fbf6ea;
  padding: 0.4rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

  background-color: var(--paper);
  
  background-position: 0 0, 120px 100px;
}

  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.10;
  
  background-position: 0 0, 120px 100px;
}


/* Proper Buddhist flag strip pinned to the very top of the viewport */
.buddhist-flag {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  z-index: 60;
  background: linear-gradient(90deg,
    #0052A5 0%, #0052A5 20%,
    #FADB00 20%, #FADB00 40%,
    #E2001A 40%, #E2001A 60%,
    #FFFFFF 60%, #FFFFFF 80%,
    #FF6600 80%, #FF6600 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* nudge the existing top flourish down so the flag sits above it */
.flourish { margin-top: 6px; }

/* keep main reading column clean: ensure sections/cards have solid backing */
.article-body, .weekly-entry, .org-card, .alison-note, .deco-grid figure {
  background: var(--paper);
}

/* ===== Weekly-topic sidebar nav + back-to-top (Alison, 2026-08-26) ===== */
/* Fixed left rail: sits OUTSIDE the 760px centered column, stays put while you scroll */
.weekly-sidebar {
  position: fixed;
  left: 1.2rem;
  top: 84px;
  width: 236px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 16px 16px 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line, #e4dccb);
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow, 0 10px 30px rgba(31,36,48,0.08));
  backdrop-filter: blur(3px);
  z-index: 50;
}
.sidebar-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.02rem;
  color: var(--banyan-deep, #2f5d3a);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-soft, #e6c98a);
}
.sidebar-list { list-style: none; }
.sidebar-list li { margin: 0 0 4px; }
.sidebar-list a {
  display: block;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink, #2a2a2a);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sidebar-list a:hover {
  background: var(--cream, #f3ecdd);
  color: var(--banyan, #3a7a4a);
}
/* push the centered column right so it doesn't sit under the rail */
.article-body { margin-left: 268px; }
@media (min-width: 1200px) { .article-body { margin-left: 268px; } }

/* back-to-top button, bottom-right, fixed */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft, #e6c98a);
  background: var(--banyan, #3a7a4a);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31,36,48,0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.15s;
  z-index: 55;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--banyan-deep, #2f5d3a); }

/* on narrow screens, sidebar drops above content */
@media (max-width: 860px) {
  .weekly-sidebar {
    position: static;
    float: none;
    width: auto;
    margin: 0 0 18px;
  }
}

/* On narrow screens: drop the fixed rail above content, undo the left margin */
@media (max-width: 1099px) {
  .weekly-sidebar {
    position: static;
    left: auto; top: auto;
    width: auto;
    max-height: none;
    overflow-y: visible;
    margin: 0 0 18px;
  }
  .article-body { margin-left: auto; }
}

