/* Buddhist Wisdom Library R01. All rules are scoped to the independent page.
   No web fonts, background requests, JavaScript or dependencies are required. */
.bwl-page {
  --bwl-paper: #f8f5ee;
  --bwl-white: #fffdf8;
  --bwl-ink: #302f29;
  --bwl-muted: #68675b;
  --bwl-green: #384e42;
  --bwl-green-soft: #eef0e9;
  --bwl-rule: #d6d3c8;
  --bwl-gold: #8a6b37;
  margin: 0;
  background: var(--bwl-paper);
  color: var(--bwl-ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-wrap: anywhere;
}
.bwl-page *, .bwl-page *::before, .bwl-page *::after { box-sizing: border-box; }
.bwl-page a { color: var(--bwl-green); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.bwl-page a:hover { text-decoration-thickness: 2px; }
.bwl-page a:focus-visible, .bwl-page summary:focus-visible {
  outline: 3px solid #79602d;
  outline-offset: 5px;
  border-radius: 2px;
}
.bwl-page img { max-width: 100%; height: auto; }
.bwl-page p { margin: 0 0 1.35em; }
.bwl-page h1, .bwl-page h2, .bwl-page h3, .bwl-page h4 { font-weight: 500; }
.bwl-page .bwl-skip {
  position: absolute;
  z-index: 10;
  top: 10px;
  left: 16px;
  padding: 10px 18px;
  background: var(--bwl-white);
  transform: translateY(-180%);
}
.bwl-page .bwl-skip:focus { transform: translateY(0); }
.bwl-page .bwl-header { border-bottom: 1px solid var(--bwl-rule); }
.bwl-page .bwl-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bwl-page .bwl-brand { display: block; text-decoration: none; color: var(--bwl-ink); }
.bwl-page .bwl-brand-temple { display: block; font-size: .875rem; letter-spacing: .07em; color: var(--bwl-muted); }
.bwl-page .bwl-brand-library {
  display: block;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", Georgia, serif;
  font-size: 1.13rem;
  letter-spacing: .10em;
}
.bwl-page .bwl-language { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; line-height: 1.4; }
.bwl-page .bwl-language a, .bwl-page .bwl-language span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}
.bwl-page .bwl-language [aria-current] { border-bottom: 1px solid var(--bwl-green); text-decoration: none; color: var(--bwl-ink); }
.bwl-page .bwl-main { max-width: 1200px; margin: 0 auto; padding: 0 40px 76px; }
.bwl-page .bwl-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 22px 0 0; font-size: .875rem; }
.bwl-page .bwl-back { min-height: 44px; display: inline-flex; align-items: center; }
.bwl-page .bwl-draft { color: var(--bwl-muted); font-size: .8125rem; text-align: right; }
.bwl-page .bwl-article-heading { max-width: 810px; margin: 40px auto 34px; text-align: center; }
.bwl-page .bwl-category { color: var(--bwl-gold); font-size: .875rem; letter-spacing: .17em; margin-bottom: 13px; }
.bwl-page .bwl-article-heading h1 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", Georgia, serif;
  font-size: clamp(2rem, 4.1vw, 3rem);
  line-height: 1.35;
  letter-spacing: .10em;
  margin: 0 0 8px;
}
.bwl-page[lang="en"] .bwl-article-heading h1, .bwl-page:lang(en) .bwl-article-heading h1 { letter-spacing: -.025em; }
.bwl-page .bwl-subtitle {
  color: var(--bwl-muted);
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1rem;
  letter-spacing: .035em;
  margin: 0 0 24px;
}
.bwl-page .bwl-dek { max-width: 650px; margin: 0 auto 18px; font-size: 1.04rem; line-height: 1.8; }
.bwl-page .bwl-reading { color: var(--bwl-muted); font-size: .875rem; margin: 0; }
.bwl-page .bwl-hero { margin: 0 auto 54px; }
.bwl-page .bwl-hero figure { margin: 0; }
.bwl-page .bwl-hero picture { display: block; }
.bwl-page .bwl-hero img { display: block; width: 100%; height: auto; border: 1px solid #d0c6b4; }
.bwl-page .bwl-hero figcaption { font-size: .8125rem; color: var(--bwl-muted); line-height: 1.65; margin: 11px 0 0; }
.bwl-page .bwl-prose { max-width: 720px; margin: 0 auto; }
.bwl-page .bwl-prose section { margin-bottom: 44px; }
.bwl-page .bwl-prose h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", Georgia, serif;
  font-size: 1.42rem;
  line-height: 1.65;
  margin: 0 0 24px;
  letter-spacing: .045em;
}
.bwl-page .bwl-prose h3 { font-size: 1.09rem; margin: 30px 0 12px; line-height: 1.7; font-weight: 600; }
.bwl-page .bwl-prose h4 { font-size: 1rem; margin: 24px 0 10px; font-weight: 600; }
.bwl-page .bwl-prose strong { font-weight: 650; }
.bwl-page .bwl-prose ul, .bwl-page .bwl-prose ol { padding-left: 1.4em; margin: 0 0 1.5em; }
.bwl-page .bwl-prose li { margin-bottom: .75em; }
.bwl-page .bwl-prose li p:last-child { margin-bottom: 0; }
.bwl-page .bwl-prose blockquote {
  margin: 30px 0;
  padding: 6px 0 6px 22px;
  border-left: 2px solid var(--bwl-gold);
  color: var(--bwl-green);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", Georgia, serif;
  font-size: 1.15rem;
}
.bwl-page .bwl-prose blockquote p:last-child { margin-bottom: 0; }
.bwl-page .bwl-example {
  background: var(--bwl-green-soft);
  border-top: 2px solid #b9c3b6;
  padding: 30px 32px 8px;
}
.bwl-page .bwl-example h2 { margin-bottom: 18px; }
.bwl-page .bwl-eyebrow, .bwl-page .bwl-kind {
  display: block;
  color: var(--bwl-muted);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .055em;
  margin-bottom: 8px;
}
.bwl-page .bwl-note { color: var(--bwl-muted); font-size: .875rem; line-height: 1.8; }
.bwl-page .bwl-ref { display: inline; white-space: nowrap; font-size: .8125rem; margin-left: .3em; }
.bwl-page .bwl-source-link { font-size: .875rem; }
.bwl-page .bwl-prose details { border-top: 1px solid var(--bwl-rule); margin: 0; }
.bwl-page .bwl-prose details:last-of-type { border-bottom: 1px solid var(--bwl-rule); }
.bwl-page .bwl-prose summary {
  min-height: 72px;
  padding: 20px 36px 20px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  color: var(--bwl-green);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
}
.bwl-page .bwl-prose summary::-webkit-details-marker { display: none; }
.bwl-page .bwl-prose summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 17px;
  font-family: system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.4rem;
}
.bwl-page .bwl-prose details[open] > summary::after { content: "−"; }
.bwl-page .bwl-prose summary:hover { color: #152a20; }
.bwl-page .bwl-prose summary small { display: block; color: var(--bwl-muted); font-size: .875rem; font-weight: 400; }
.bwl-page .bwl-detail-content { padding: 0 0 24px; }
.bwl-page .bwl-detail-content > :first-child { margin-top: 0; }
.bwl-page .bwl-sources { font-size: .875rem; line-height: 1.8; }
.bwl-page .bwl-source { padding: 18px 0; border-bottom: 1px solid var(--bwl-rule); scroll-margin-top: 24px; }
.bwl-page .bwl-source:last-child { border-bottom: 0; }
.bwl-page .bwl-source h3 { margin-top: 0; }
.bwl-page .bwl-source p { margin-bottom: .65em; }
.bwl-page .bwl-source dl { margin: 0; }
.bwl-page .bwl-source dt { color: var(--bwl-muted); font-size: .875rem; }
.bwl-page .bwl-source dd { margin: 0 0 .6em; }
.bwl-page .bwl-prose table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 28px; }
.bwl-page .bwl-prose th, .bwl-page .bwl-prose td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--bwl-rule); padding: 12px 10px; }
.bwl-page .bwl-prose th { background: var(--bwl-green-soft); font-weight: 500; }
.bwl-page .bwl-prose code { font-size: .87em; }
.bwl-page .bwl-editorial { max-width: 720px; margin: 40px auto 0; padding-top: 24px; color: var(--bwl-muted); font-size: .875rem; line-height: 1.85; }
.bwl-page .bwl-editorial h2 { color: var(--bwl-ink); font-size: .9rem; margin: 0 0 12px; }
.bwl-page .bwl-editorial p { margin-bottom: .7em; }
.bwl-page .bwl-editorial dl { display: grid; grid-template-columns: minmax(84px, auto) 1fr; gap: 5px 24px; margin: 0 0 14px; }
.bwl-page .bwl-editorial dd { margin: 0; }
.bwl-page .bwl-footer { background: #eeeee6; border-top: 1px solid var(--bwl-rule); }
.bwl-page .bwl-footer-inner { max-width: 1200px; margin: 0 auto; padding: 35px 40px 32px; }
.bwl-page .bwl-footer-title { font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; font-size: 1rem; letter-spacing: .06em; margin-bottom: 10px; }
.bwl-page .bwl-footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .875rem; }
.bwl-page .bwl-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.bwl-page .bwl-footer-temple { font-size: .8125rem; color: var(--bwl-muted); margin: 14px 0 0; }
.bwl-page .bwl-landing { max-width: 720px; margin: 55px auto 0; }
.bwl-page .bwl-landing h1 { font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; font-size: 2rem; line-height: 1.5; }
.bwl-page .bwl-landing h2 { font-size: 1.25rem; }
.bwl-page .bwl-article-card { border-top: 1px solid var(--bwl-rule); border-bottom: 1px solid var(--bwl-rule); padding: 22px 0; margin-top: 32px; }
.bwl-page .bwl-article-card img { display: block; margin-bottom: 20px; }
.bwl-page .bwl-article-card h2 { margin: 0 0 12px; }
.bwl-page .bwl-article-card p { margin-bottom: 10px; }
@media (max-width: 700px) {
  .bwl-page .bwl-header-inner { padding: 17px 22px; gap: 12px; }
  .bwl-page .bwl-brand-temple { font-size: .8125rem; letter-spacing: 0; }
  .bwl-page .bwl-brand-library { font-size: .97rem; letter-spacing: .055em; }
  .bwl-page .bwl-language { gap: 0; font-size: .8125rem; }
  .bwl-page .bwl-language a, .bwl-page .bwl-language span { padding: 8px; }
  .bwl-page .bwl-main { padding: 0 22px 50px; }
  .bwl-page .bwl-topline { gap: 10px; margin-top: 13px; }
  .bwl-page .bwl-article-heading { margin: 30px auto 26px; }
  .bwl-page .bwl-article-heading h1 { font-size: 2.3rem; }
  .bwl-page:lang(en) .bwl-article-heading h1 { font-size: 2rem; }
  .bwl-page .bwl-dek { font-size: 1rem; }
  .bwl-page .bwl-hero { margin-bottom: 38px; }
  .bwl-page .bwl-hero figcaption { font-size: .8125rem; }
  .bwl-page .bwl-prose h2 { font-size: 1.28rem; }
  .bwl-page .bwl-example { padding: 24px 22px 6px; }
  .bwl-page .bwl-prose section { margin-bottom: 36px; }
  .bwl-page .bwl-footer-inner { padding: 28px 22px; }
  .bwl-page .bwl-editorial dl { gap: 6px 14px; }
}
@media (max-width: 390px) {
  .bwl-page .bwl-header-inner { flex-wrap: wrap; padding: 16px 20px 10px; gap: 2px 20px; }
  .bwl-page .bwl-language { margin-left: -8px; }
  .bwl-page .bwl-main { padding-right: 20px; padding-left: 20px; }
  .bwl-page .bwl-topline { align-items: flex-start; }
  .bwl-page .bwl-draft { max-width: 128px; margin-top: 8px; }
  .bwl-page .bwl-example { padding: 22px 18px 5px; }
}
@media print {
  .bwl-page { background: white; color: black; font-size: 11pt; line-height: 1.7; }
  .bwl-page .bwl-header, .bwl-page .bwl-language, .bwl-page .bwl-topline, .bwl-page .bwl-footer, .bwl-page .bwl-skip { display: none; }
  .bwl-page .bwl-main { max-width: none; padding: 0; }
  .bwl-page .bwl-article-heading { margin-top: 0; }
  .bwl-page .bwl-hero { max-width: 150mm; margin-bottom: 10mm; }
  .bwl-page .bwl-prose, .bwl-page .bwl-editorial { max-width: none; }
  .bwl-page .bwl-prose summary { min-height: 0; padding: 8px 0; }
  .bwl-page .bwl-prose summary::after { display: none; }
  .bwl-page .bwl-example { background: transparent; }
  .bwl-page h1, .bwl-page h2, .bwl-page h3, .bwl-page summary { break-after: avoid; }
  .bwl-page figure { break-inside: avoid; }
}
