/* NichirenBuddhism.net — one hand-written stylesheet.
   Anthropic editorial typography & warm ivory/slate palette. */

@font-face {
  font-family: "Anthropic Sans";
  src: url("/assets/fonts/anthropic-sans-roman.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Sans";
  src: url("/assets/fonts/anthropic-sans-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Sans Fallback";
  src: local("Arial");
  ascent-override: 92.99%;
  descent-override: 24.13%;
  line-gap-override: 0%;
  size-adjust: 106.73%;
}
@font-face {
  font-family: "Anthropic Serif";
  src: url("/assets/fonts/anthropic-serif-roman.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Serif";
  src: url("/assets/fonts/anthropic-serif-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Serif Fallback";
  src: local("Georgia");
  ascent-override: 96.05%;
  descent-override: 24.92%;
  line-gap-override: 0%;
  size-adjust: 103.33%;
}
@font-face {
  font-family: "Anthropic Mono";
  src: url("/assets/fonts/anthropic-mono-roman.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Mono Fallback";
  src: local("Arial");
  ascent-override: 75.48%;
  descent-override: 19.58%;
  line-gap-override: 0%;
  size-adjust: 131.49%;
}

:root {
  color-scheme: dark;
  --bg: #141413;
  --surface: #1f1e1d;
  --surface-hover: #262624;
  --bg-alt: #1a1918;
  --border: #262624;
  --border-hover: #3d3d3a;
  --border-control: #5e5d59;
  --text: #faf9f5;
  --muted: #b0aea5;
  --accent: #d97757;
  --accent-hover: #e48a6c;
  --on-accent: #141413;
  --btn-primary-bg: #faf9f5;
  --btn-primary-fg: #141413;
  --btn-primary-hover: #e8e6dc;
  --btn-secondary-bg: #262624;
  --btn-secondary-fg: #faf9f5;
  --btn-secondary-border: #3d3d3a;
  --lotus: #d4829b;
  --danger: #e88b8b;
  --success: #8fb896;
  --focus: #d97757;
  --media-bg: #ffffff;
  --radius: 10px;
  --article: 720px;
  --sans: "Anthropic Sans", "Anthropic Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Anthropic Serif", "Anthropic Serif Fallback", Georgia, "Times New Roman", serif;
  --mono: "Anthropic Mono", "Anthropic Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: none;
  --shadow-card: 0 8px 24px -12px rgba(0, 0, 0, .45);
  --shadow-float: 0 16px 40px rgba(0, 0, 0, .42);
  --scrollbar-thumb: #4d4c48;
  --scrollbar-track: #1a1918;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f5;
  --surface: #f5f4ed;
  --surface-hover: #f0eee6;
  --bg-alt: #f0eee6;
  --border: #e8e6dc;
  --border-hover: #d1cfc5;
  --border-control: #b0aea5;
  --text: #141413;
  --muted: #5e5d59;
  --accent: #c6613f;
  --accent-hover: #a84e30;
  --on-accent: #faf9f5;
  --btn-primary-bg: #141413;
  --btn-primary-fg: #faf9f5;
  --btn-primary-hover: #30302e;
  --btn-secondary-bg: #e8e6dc;
  --btn-secondary-fg: #141413;
  --btn-secondary-border: #dedcd1;
  --lotus: #b04b69;
  --danger: #a32626;
  --success: #3b6e45;
  --focus: #c6613f;
  --media-bg: #ffffff;
  --shadow: none;
  --shadow-card: 0 6px 20px -12px rgba(20, 20, 19, .1);
  --shadow-float: 0 14px 36px rgba(20, 20, 19, .1);
  --scrollbar-thumb: #b0aea5;
  --scrollbar-track: #f0eee6;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  accent-color: var(--accent);
}
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: "pnum" on, "lnum" on, "liga" on;
  font-size: 1.0625rem;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { height: auto; }
a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
  text-underline-offset: .18em;
  transition: color .16s ease, text-decoration-color .16s ease;
}
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-feature-settings: "pnum" on, "lnum" on, "liga" on;
  font-variation-settings: "opsz" 48;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.022em;
  margin: 0;
  overflow-wrap: break-word;
}
h1, .section-head h2, .page-head h1, .article-head h1, .try-band h2 { text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(18px, 3.4vw, 48px); }
.wrap--narrow { max-width: 840px; }
.wrap--chant { max-width: 980px; }
.wrap--article { max-width: calc(var(--article) + 48px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: .7rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.nowrap { white-space: nowrap; }
.meta { color: var(--muted); font-size: .84rem; letter-spacing: .01em; }
.small { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.eyebrow {
  margin: 0 0 .3rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--border); border-radius: 6px;
  padding: .22rem .58rem;
  font-family: var(--mono);
  font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.badge--level { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.badge--new { color: var(--accent); }
.badge--answered { color: var(--success); }
.badge--hidden { color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 36px;
  border: 1px solid var(--border-hover); border-radius: 999px;
  background: var(--surface); color: var(--text);
  padding: .36rem .85rem;
  font-size: .84rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease, scale .14s ease;
}
.pill:hover { border-color: var(--border-control); color: var(--text); background: var(--surface-hover); }
.pill.is-active { background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--btn-primary-fg); font-weight: 550; }
.pill.is-active:hover { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); color: var(--btn-primary-fg); }
.pill__count { opacity: .68; font-family: var(--mono); font-size: .72rem; font-variant-numeric: tabular-nums; }
.pill--small { min-height: 0; padding: .22rem .58rem; font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; border-color: var(--border); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 42px;
  border: 1px solid transparent; border-radius: 10px;
  padding: .68rem 1.2rem;
  font-family: var(--sans);
  font-size: .9375rem; font-weight: 500; line-height: 1.15; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, scale .14s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .btn:active, .pill:active, .preset:active, .icon-btn:active { scale: .98; }
}
.btn:disabled { opacity: .55; cursor: not-allowed; scale: none; }
.btn svg { flex: none; }
.btn--primary { background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn--primary:hover { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); color: var(--btn-primary-fg); }
.btn--secondary { background: var(--btn-secondary-bg); border-color: var(--btn-secondary-border); color: var(--btn-secondary-fg); }
.btn--secondary:hover { background: var(--border-hover); border-color: var(--border-control); color: var(--text); }
.btn--secondary.is-copied { border-color: var(--success); color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--text); background: var(--surface-hover); }
.btn--xs { min-height: 32px; padding: .42rem .75rem; font-size: .76rem; border-radius: 8px; }
.btn--sm { min-height: 38px; padding: .52rem .92rem; font-size: .86rem; border-radius: 8px; }
.btn--lg { min-height: 46px; padding: .85rem 1.45rem; font-size: 1rem; border-radius: 12px; }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 28px; padding: .15rem 0;
  color: var(--accent); font-size: .88rem; font-weight: 500; text-decoration: none;
}
.link-arrow svg { flex: none; transition: translate .18s ease; }
.link-arrow:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: .22em; }
.link-arrow:disabled { opacity: .42; cursor: not-allowed; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .link-arrow:hover svg,
  .section-head__more:hover svg,
  .path-card:hover .path-card__link svg,
  .post-card:hover .post-card__go svg,
  .row:hover .row__go svg,
  .gosho-card:hover .link-arrow svg,
  .error-link:hover svg { translate: 3px 0; }
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--muted);
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, scale .14s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface); }
.dot { opacity: .55; margin: 0 .45rem; }

/* Header: a floating bar that turns into a card on scroll */
.theme-icon--sun { display: none; }
.theme-icon--moon { display: inline-flex; }
[data-theme="light"] .theme-icon--sun { display: inline-flex; }
[data-theme="light"] .theme-icon--moon { display: none; }

.site-bar { position: sticky; top: 0; z-index: 90; padding: 8px clamp(8px, 2.5vw, 32px) 0; background: transparent; pointer-events: none; }
.site-bar__in { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 1.8vw, 24px); max-width: 1280px; min-height: 58px; margin: 0 auto; padding: 6px 12px 6px 16px; border: 1px solid transparent; border-radius: 14px; transition: background-color .22s ease, border-color .22s ease, box-shadow .28s ease; }
.site-bar.is-scrolled .site-bar__in {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-color: var(--border);
  box-shadow: var(--shadow-float);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; flex: 0 1 auto; text-decoration: none; color: var(--text); min-width: 0; transition: opacity .16s ease; }
.brand:hover { color: var(--text); opacity: .82; }
.brand__word { font-family: var(--sans); font-size: 1.16rem; font-weight: 600; letter-spacing: -.018em; line-height: 1; white-space: nowrap; }
.logo-mark { flex: none; }
.logo-sun { fill: var(--accent); }
.logo-rays { color: var(--muted); }
.logo-petals path { fill: var(--lotus); }
.logo-water { color: var(--muted); }
.bar-nav { display: flex; flex: 1 1 auto; justify-content: center; gap: clamp(12px, 1.9vw, 28px); min-width: 0; }
.bar-nav a {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: .3rem .1rem;
  color: var(--text); font-size: clamp(.9rem, .78rem + .2vw, .96rem); font-weight: 450;
  text-decoration: none; text-underline-offset: 8px; text-decoration-thickness: 1.5px;
  white-space: nowrap;
}
.bar-nav a:hover { color: var(--accent); }
.bar-nav a.is-active { font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }
.bar-actions { display: flex; flex: none; align-items: center; gap: 6px; }
.bar-actions .icon-btn { width: 38px; height: 38px; border-radius: 10px; border-color: var(--border-hover); color: var(--text); }
.bar-actions .icon-btn:hover { border-color: var(--border-control); color: var(--text); background: var(--surface-hover); }
.site-bar.is-scrolled .bar-actions .icon-btn { border-color: transparent; color: var(--muted); }
.site-bar.is-scrolled .bar-actions .icon-btn:hover { color: var(--text); background: var(--surface-hover); border-color: var(--border); }
.bar-cta { margin-left: 4px; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.menu-close { display: none; }
.mobile-menu[open] .menu-open { display: none; }
.mobile-menu[open] .menu-close { display: inline-flex; }
.mobile-menu:not([open]) .mobile-panel { display: none; }
.mobile-panel {
  position: fixed; inset: 0; height: 100dvh; z-index: 100;
  background: var(--bg);
  padding: 76px 24px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu[open] .mobile-panel { animation: panel-in .2s ease-out both; }
}
.mobile-menu[open] summary { position: fixed; top: 14px; right: 16px; z-index: 101; background: var(--surface); border-color: var(--border-control); }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--sans); font-size: clamp(1.15rem, 1rem + 1.2vw, 1.4rem); font-weight: 550; letter-spacing: -.015em;
  text-decoration: none;
  padding: .72rem .5rem;
  border-bottom: 1px solid var(--border);
  border-radius: 6px;
  transition: color .16s ease, background-color .16s ease, padding-left .16s ease;
}
.mobile-nav a:hover { background: var(--surface); color: var(--accent); padding-left: .85rem; }
.mobile-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; background: color-mix(in srgb, var(--accent) 8%, transparent); padding-left: .85rem; }
.mobile-panel__foot { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }
.mobile-panel__foot .search-form { margin: 0; }
.mobile-panel__foot .btn--secondary { justify-content: flex-start; min-height: 46px; }

/* Language menu */
.lang-menu { position: relative; }
.lang-btn {
  list-style: none; cursor: pointer; gap: .4rem;
  min-height: 40px; padding: .45rem .88rem;
  border-color: var(--border-control);
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn:hover { background: var(--surface-hover); border-color: var(--accent); color: var(--accent); }
.site-bar.is-scrolled .lang-btn { border-color: var(--border); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 120;
  list-style: none; margin: 0; padding: 6px;
  min-width: 196px; max-width: calc(100vw - 24px); max-height: 70dvh;
  overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border-hover); border-radius: 12px;
  box-shadow: var(--shadow-float);
  transform-origin: top right;
}
@media (prefers-reduced-motion: no-preference) {
  .lang-menu[open] .lang-list { animation: pop-in .16s ease-out both; }
}
.lang-list a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px; padding: .46rem .78rem; border-radius: 8px;
  text-decoration: none; font-size: .92rem;
  transition: background-color .14s ease, color .14s ease;
}
.lang-list a:hover { background: var(--bg-alt); color: var(--accent); }
.lang-list a[aria-current] { background: color-mix(in srgb, var(--accent) 12%, var(--bg-alt)); color: var(--accent); font-weight: 600; }
.lang-notice { margin-top: 8px; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.lang-notice p { margin: 0; padding: .7rem 0; }
.lang-notice a { color: var(--accent); font-weight: 500; }

/* Search overlay */
dialog.overlay {
  border: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  background: transparent; color: inherit;
  align-items: flex-start; justify-content: center;
  padding: clamp(56px, 12dvh, 140px) 16px 16px;
}
dialog.overlay[open] { display: flex; }
dialog.overlay:modal { overscroll-behavior: contain; }
dialog.overlay::backdrop {
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  overflow: hidden; overscroll-behavior: contain;
}
[data-theme="light"] dialog.overlay::backdrop { background: rgba(31, 27, 22, .45); }
.overlay__panel {
  position: relative; width: 100%; max-width: 720px;
  background: var(--surface); border: 1px solid var(--border-control); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  dialog.overlay[open] .overlay__panel { animation: dialog-in .18s ease-out both; }
  dialog.overlay[open]::backdrop { animation: panel-in .16s ease-out both; }
}
.overlay__form {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 18px;
  border-bottom: 1px solid transparent;
  transition: border-color .16s ease;
}
.overlay__form:focus-within { border-bottom-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.overlay__icon { color: var(--muted); display: inline-flex; flex: none; }
.overlay__form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .8rem 0; font-size: 1.05rem; outline: none; }
.overlay__results { list-style: none; margin: 0; padding: 0; max-height: min(60dvh, 460px); overflow: auto; overscroll-behavior: contain; }
.overlay__results a {
  display: block; padding: .85rem 1.25rem;
  text-decoration: none; border-top: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: background-color .14s ease, border-color .14s ease;
}
.overlay__results a:hover, .overlay__results a:focus-visible {
  background: var(--bg-alt); border-left-color: var(--accent);
  outline: 2px solid var(--focus); outline-offset: -2px;
}
.overlay__results strong { display: block; font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: var(--text); margin-bottom: .18rem; }
.overlay__results a:hover strong, .overlay__results a:focus-visible strong { color: var(--accent); }
.overlay__results span {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; overflow: hidden;
  color: var(--muted); font-size: .82rem; line-height: 1.45;
}
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; scale: .96; translate: 0 -4px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes dialog-in { from { opacity: 0; scale: .98; translate: 0 -10px; } to { opacity: 1; scale: 1; translate: 0 0; } }

/* Hero and search */
.hero { padding: clamp(22px, 3.6vw, 44px) 0 clamp(20px, 3vw, 34px); }
.hero + .section--tight { padding-top: 8px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 52px); align-items: center; }
.hero h1 { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: clamp(1.85rem, 1.3rem + 2vw, 2.95rem); line-height: 1.16; letter-spacing: -.02em; max-width: 22ch; text-wrap: balance; margin: 0 0 1.05rem; }
.hero__lede { max-width: 34rem; color: var(--muted); font-family: var(--serif); font-size: clamp(1.04rem, .96rem + .35vw, 1.18rem); line-height: 1.62; margin: 0; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 1.45rem; }
.hero__small { margin: .85rem 0 0; color: var(--muted); font-size: .88rem; }
.hero__art { display: flex; justify-content: center; }
.hero-art { width: min(100%, 30rem); border: 0; border-radius: 16px; -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent); mask-image: linear-gradient(180deg, #000 84%, transparent); }
[data-theme="light"] .ha-sky-1 { stop-color: #f0eee6; }
[data-theme="light"] .ha-sky-2 { stop-color: #e8e6dc; }
[data-theme="light"] .ha-sky-3 { stop-color: #f5f4ed; }
[data-theme="light"] .ha-glow-1 { stop-color: #d97757; stop-opacity: .38; }
[data-theme="light"] .ha-glow-2 { stop-color: #d97757; stop-opacity: .12; }
[data-theme="light"] .ha-glow-3 { stop-color: #d97757; stop-opacity: 0; }
[data-theme="light"] .ha-sun { fill: #d97757; opacity: .92; }
[data-theme="light"] .ha-sun-ring { stroke: #c6613f; stroke-opacity: .28; }
[data-theme="light"] .ha-sun-ring--outer { stroke-opacity: .14; }
[data-theme="light"] .ha-mist { stroke: #87867f; stroke-opacity: .22; }
[data-theme="light"] .ha-shadow { fill: #87867f; opacity: .16; }
[data-theme="light"] .ha-water-1 { stop-color: #e3dacc; }
[data-theme="light"] .ha-water-2 { stop-color: #faf9f5; }
[data-theme="light"] .ha-reflect { stroke: #c6613f; opacity: .42; }
[data-theme="light"] .ha-ripple { stroke: #73726c; stroke-opacity: .2; }
[data-theme="light"] .ha-petal-1 { stop-color: #dc869f; }
[data-theme="light"] .ha-petal-2 { stop-color: #b04b69; }
[data-theme="light"] .ha-petal-dark-1 { stop-color: #c46686; }
[data-theme="light"] .ha-petal-dark-2 { stop-color: #823149; }
[data-theme="light"] .ha-lotus-shadow { fill: #823149; opacity: .22; }
[data-theme="light"] .ha-petals-float { fill: #c46686; opacity: .34; }

.search-band { padding: clamp(14px, 2.4vw, 22px); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.search-band__label { margin: 0 0 .65rem; font-family: var(--sans); font-size: .98rem; font-weight: 600; letter-spacing: -.01em; }
.search-band .search-form { max-width: none; margin: 0; background: var(--bg); }
.search-band .search-suggest { max-width: none; margin: 8px 0 0; }
.search-band .popular { justify-content: flex-start; margin-top: .75rem; }
.search-form {
  position: relative; display: flex; align-items: center; gap: 8px;
  max-width: 660px; margin: 0 auto;
  background: var(--bg); border: 1px solid var(--border-control); border-radius: 12px;
  padding: 5px 5px 5px 44px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.search-form:hover { border-color: var(--border-hover); }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.search-form__icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); display: inline-flex; pointer-events: none; transition: color .16s ease; }
.search-form:focus-within .search-form__icon { color: var(--accent); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .66rem 0; font-size: 1rem; outline: none; }
.search-form input::placeholder { color: var(--muted); }
.search-form .btn { flex: none; }
.search-suggest { position: relative; max-width: 660px; margin: 8px auto 0; background: var(--surface); border: 1px solid var(--border-hover); border-radius: 12px; text-align: left; overflow: hidden; box-shadow: var(--shadow-float); }
.search-suggest a { display: block; padding: .75rem 1.05rem; text-decoration: none; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; transition: background-color .14s ease, border-color .14s ease; }
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover, .search-suggest a:focus-visible { background: var(--bg-alt); border-left-color: var(--accent); outline: 2px solid var(--focus); outline-offset: -2px; }
.search-suggest strong { display: block; font-family: var(--sans); font-weight: 550; font-size: .98rem; color: var(--text); margin-bottom: .12rem; }
.search-suggest a:hover strong, .search-suggest a:focus-visible strong { color: var(--accent); }
.search-suggest span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; overflow: hidden; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.popular { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin-top: 1.2rem; }
.popular__label { color: var(--muted); font-size: .86rem; margin-right: .2rem; }
.popular__link {
  display: inline-flex; align-items: center; min-height: 30px;
  padding: .22rem .75rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-alt); color: var(--text); font-size: .86rem; text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.popular__link:hover { background: color-mix(in srgb, var(--accent) 14%, var(--bg-alt)); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); color: var(--accent); }

/* Sections and lists */
.section { padding: clamp(28px, 4vw, 48px) 0; }
.section--tight { padding: clamp(16px, 2.2vw, 28px) 0; }
.section--tight + .section--tight { padding-top: 6px; }
.page-head + .section,
.page-head + .section--tight { padding-top: clamp(8px, 1.2vw, 14px); }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--line { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; margin-bottom: 1.25rem; padding-top: .75rem; border-top: 1px solid var(--text); }
.section-head h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.95rem); letter-spacing: -.022em; }
.section-head__lede { margin: .3rem 0 0; color: var(--muted); font-family: var(--serif); font-size: 1.06rem; }
.section-head__aside { max-width: 38ch; color: var(--muted); font-size: .92rem; margin: 0 0 .25rem; }
.section-head__more, .section-head .link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 30px; padding: .15rem 0;
  color: var(--text); font-size: .95rem; font-weight: 600; text-decoration: none;
}
.section-head__more svg { flex: none; transition: translate .18s ease; }
.section-head__more:hover, .section-head .link-arrow:hover { color: var(--accent); text-decoration: none; }
.section-head--small { align-items: center; margin-bottom: 14px; padding-top: 0; border-top: 0; gap: 8px 14px; }
.section-head--small h2 { font-size: 1.28rem; }
.section-head--small .meta { margin-left: auto; }
.rows { border-bottom: 1px solid var(--border); }
.row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 0; margin: 0;
  border-top: 1px solid var(--border);
}
.row::before {
  content: ""; position: absolute; inset: 3px -14px;
  border-radius: 10px; background: transparent;
  pointer-events: none; transition: background-color .16s ease;
}
.row:hover::before { background: var(--surface); }
.row__main { position: relative; z-index: 1; min-width: 0; }
.row__meta { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.row__title { font-size: 1.2rem; line-height: 1.26; margin: .25rem 0 .22rem; letter-spacing: -.01em; }
.row__title a { text-decoration: none; }
.row__title a::after { content: ""; position: absolute; inset: -12px -14px; border-radius: 10px; }
.row:hover .row__title a, .row__title a:hover { color: var(--accent); }
.row__summary { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; max-width: 72ch; text-wrap: pretty; }
.row__go { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); font-size: .82rem; font-weight: 600; white-space: nowrap; flex: none; }
.row__go svg { flex: none; transition: translate .18s ease; }
.row--guide .row__go { color: var(--muted); }
.row--guide:hover .row__go { color: var(--accent); }
.rows--box { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.rows--box .row { flex-direction: column; align-items: flex-start; gap: .4rem; padding: 15px 20px; margin: 0; transition: background-color .16s ease; }
.rows--box .row::before { content: none; }
.rows--box .row:hover { background: var(--surface-hover); }
.rows--box .row:first-child { border-top: 0; }
.rows--box .row__meta { color: var(--muted); font-size: .82rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.rows--box .row__meta span:first-child { color: var(--accent); }
.rows--box .row__title { margin: .15rem 0 0; font-size: 1.18rem; font-weight: 500; }
.rows--box .row__title a::after { inset: 0; border-radius: 0; }
.rows--box .row__go { display: inline-flex; color: var(--text); font-size: .9rem; font-weight: 500; text-decoration: none; }
.rows--box .row:hover .row__go { color: var(--accent); }
.guide-group { margin-top: 26px; }
.guide-group:first-of-type { margin-top: 0; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.path-card {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.45rem 1.5rem; border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; background: var(--surface); box-shadow: var(--shadow);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, translate .18s ease;
}
.path-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: var(--surface-hover);
  box-shadow: var(--shadow-card);
  color: var(--text);
}
.path-card:hover .path-card__name { color: var(--accent); }
.path-card__num { font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--accent); line-height: 1; letter-spacing: .04em; }
.path-card__body { flex: 1; }
.path-card__name { display: block; font-family: var(--sans); font-size: 1.18rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin-bottom: .35rem; transition: color .16s ease; }
.path-card__line { display: block; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.path-card__link { margin-top: .5rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--text); font-size: .88rem; font-weight: 550; }
.path-card__link svg { flex: none; transition: translate .18s ease; }
.path-card:hover .path-card__link { color: var(--accent); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  min-height: 9.5rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, translate .18s ease;
}
.guide-card:hover {
  border-color: var(--border-control);
  background: var(--surface-hover);
  box-shadow: var(--shadow-card);
}
.guide-card:hover h3 a { color: var(--accent); }
.guide-card__label { margin: 0; color: var(--accent); font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.guide-card h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -.016em; line-height: 1.28; }
.guide-card h3 a { text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.guide-card__meta { display: flex; align-items: center; gap: .4rem; margin: auto 0 0; color: var(--muted); font-size: .86rem; }
.filter-pills--after { margin: 1.75rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.filter-pills .pill { min-height: 38px; padding: .35rem .95rem; background: var(--surface); border-color: var(--border-hover); color: var(--text); font-size: .88rem; }
.filter-pills .pill:hover { border-color: var(--border-control); color: var(--text); background: var(--surface-hover); }
.filter-pills .pill.is-active { background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.filter-pills .pill.is-active:hover { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); color: var(--btn-primary-fg); }
@media (prefers-reduced-motion: no-preference) {
  .path-card:hover, .guide-card:hover, .post-card:hover, .gosho-card:hover, .related-card:hover { translate: 0 -2px; }
}
@supports selector(:has(*)) {
  .guide-card:has(h3 a:focus-visible),
  .post-card:has(h3 a:focus-visible),
  .related-card:has(h3 a:focus-visible),
  .gosho-card:has(h2 a:focus-visible),
  .row:has(.row__title a:focus-visible) {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-color: var(--accent);
  }
  .rows--box .row:has(.row__title a:focus-visible) { outline-offset: -2px; }
  .guide-card h3 a:focus-visible,
  .post-card h3 a:focus-visible,
  .related-card h3 a:focus-visible,
  .gosho-card h2 a:focus-visible,
  .row .row__title a:focus-visible { outline: none; }
}
.path-list { border-top: 1px solid var(--border); }
.path-block { padding: 24px 0; border-bottom: 1px solid var(--border); }
.path-block__head { display: flex; align-items: baseline; gap: 14px; }
.path-block__num { font-family: var(--mono); color: var(--accent); font-size: 1rem; font-weight: 500; }
.path-block h3 { font-size: 1.35rem; }
.path-block h3 a { text-decoration: none; }
.path-block__head p { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; }
.path-block__head .meta { margin-left: auto; white-space: nowrap; }
.path-block__desc { color: var(--muted); font-size: .92rem; margin: .8rem 0; max-width: 70ch; }
.path-preview { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.path-preview li { font-size: .84rem; }
.path-preview li::before { content: "·"; color: var(--accent); margin-right: .5rem; }
.path-preview a { color: var(--muted); text-decoration: none; }
.path-preview a:hover { color: var(--accent); }
.path-preview__more { color: var(--muted); font-style: italic; }
.band { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.try-band { padding: clamp(36px, 5vw, 56px) 0; }
.try-band h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); margin-bottom: .6rem; }
.try-band p { color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.try-band .hero__actions { margin-top: 1.2rem; }

/* Video */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-grid--four { grid-template-columns: repeat(4, 1fr); }
.video-grid--single { grid-template-columns: minmax(0, 560px); }
.video-card { min-width: 0; }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #0c0c0c; padding: 0; transition: border-color .18s ease, box-shadow .18s ease; }
.video-facade:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: var(--shadow-card); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; transition: opacity .18s ease, scale .32s ease; }
.video-facade:hover img { opacity: 1; scale: 1.03; }
.video-facade__play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 999px; background: rgba(18, 18, 18, .88); border: 2px solid rgba(255, 255, 255, .86); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .55); transition: scale .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease; }
.video-facade:hover .video-facade__play, .video-facade:focus-visible .video-facade__play { background: var(--accent); border-color: var(--accent); color: var(--on-accent); scale: 1.07; }
.video-facade iframe { width: 100%; height: 100%; border: 0; }
.video-card__body { padding-top: .75rem; }
.video-card h3 { font-size: 1.04rem; line-height: 1.35; }
.video-card h3 a { text-decoration: none; }
.video-card .meta { margin: .3rem 0 0; }
.playlist-desc { color: var(--muted); margin: -.6rem 0 1.2rem; font-size: .9rem; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { display: flex; flex-direction: column; background: transparent; }
.product-card__media {
  display: block; aspect-ratio: 1 / 1; background: var(--media-bg); padding: 12px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}
html[data-theme="dark"] .product-card__media,
html[data-theme="dark"] .shop-feature__media,
html[data-theme="dark"] .side-product__media { filter: brightness(.94); }
html[data-theme="dark"] .product-card:hover .product-card__media,
html[data-theme="dark"] .shop-feature:hover .shop-feature__media,
html[data-theme="dark"] .side-product:hover .side-product__media { filter: brightness(.98); }
.product-card:hover .product-card__media { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: var(--shadow-card); }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; transition: scale .28s ease; }
@media (prefers-reduced-motion: no-preference) {
  .product-card:hover .product-card__media img { scale: 1.03; }
}
.product-card__price { margin: .1rem 0 0; font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; }
.product-card__options { margin: 0; color: var(--muted); font-size: .85rem; }
.filter-pills--store { margin-bottom: 1.6rem; }
.product-card__body { flex: 1; padding: 14px 0 0; display: flex; flex-direction: column; gap: .32rem; align-items: flex-start; }
.product-card .badge { padding: 0; border: 0; color: var(--accent); font-size: .72rem; letter-spacing: .13em; }
.product-card h2, .product-card h3 { font-size: 1.15rem; font-weight: 500; line-height: 1.28; }
.product-card h2 a, .product-card h3 a { text-decoration: none; }
.product-card:hover h2 a, .product-card:hover h3 a { color: var(--accent); }
.product-card__sub { color: var(--muted); font-size: .88rem; margin: 0; }
.product-card__blurb { color: var(--muted); font-size: .84rem; line-height: 1.48; margin: .15rem 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-clamp: 3; overflow: hidden; }
.product-card .link-arrow { margin-top: auto; padding-top: .35rem; }
.placeholder-note { color: var(--muted); font-size: .68rem; letter-spacing: .03em; opacity: .8; }
.product-grid--store { grid-template-columns: repeat(4, 1fr); }
.store-note { color: var(--muted); font-size: .84rem; max-width: 80ch; margin: 1.6rem 0 0; }

/* Encouragement / about / posts / newsletter */
.encouragement-card {
  display: grid; grid-template-columns: 76px 1fr; gap: 26px; align-items: start;
  border: 1px solid var(--border); border-radius: 16px;
  padding: clamp(22px, 4vw, 38px); background: var(--surface); box-shadow: var(--shadow);
}
.encouragement-card__mark { opacity: .92; padding-top: .25rem; }
.encouragement-card h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); margin-bottom: .75rem; }
.encouragement-card .prose { max-width: 66ch; }
.encouragement-card .prose p { font-size: 1.08rem; line-height: 1.7; }
.today-card { border: 1px solid var(--border); border-radius: 16px; padding: clamp(18px, 2.8vw, 28px); background: var(--surface); box-shadow: var(--shadow); }
.today-card__mark { margin-bottom: .55rem; }
.today-card h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 1.95rem); margin-bottom: .55rem; }
.archive { border-top: 1px solid var(--border); }
.archive__item { border-bottom: 1px solid var(--border); }
.archive__item summary {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 8px; margin: 0 -8px; border-radius: 8px;
  cursor: pointer; list-style: none;
  transition: background-color .14s ease, color .14s ease;
}
.archive__item summary:hover { background: var(--surface); color: var(--accent); }
.archive__item summary::-webkit-details-marker { display: none; }
.archive__item summary svg { margin-left: auto; color: var(--muted); flex: none; transition: rotate .18s ease; }
.archive__item[open] summary svg { rotate: 180deg; color: var(--accent); }
.archive__num { font-family: var(--mono); color: var(--accent); font-size: .84rem; width: 28px; flex: none; font-variant-numeric: tabular-nums; }
.archive__item .prose { padding: 4px 0 20px 42px; max-width: 64ch; }
.about-strip { display: flex; align-items: center; gap: 1.25rem; }
.about-strip__mark { flex: none; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.about-strip h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.about-strip p { margin: 0; color: var(--muted); font-size: 1rem; }
.about-strip a { color: var(--text); text-underline-offset: 3px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  min-height: 11rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, translate .18s ease;
}
.post-card:hover {
  border-color: var(--border-control);
  background: var(--surface-hover);
  box-shadow: var(--shadow-card);
}
.post-card:hover h3 a { color: var(--accent); }
.post-card h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -.016em; line-height: 1.28; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.5; }
.post-card p.guide-card__label { color: var(--accent); font-size: .72rem; }
.post-card .post-card__go { margin-top: auto; color: var(--text); font-size: .92rem; font-weight: 550; }
.post-card:hover .post-card__go { color: var(--accent); }
.newsletter-wrap { margin-top: 32px; }
.newsletter-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--border); border-radius: 16px; padding: clamp(22px, 4vw, 32px); background: var(--surface); box-shadow: var(--shadow); }
.newsletter-band h2 { font-size: clamp(1.32rem, 1.1rem + .85vw, 1.75rem); margin-bottom: .4rem; }
.newsletter-band--footer .eyebrow { display: none; }
.newsletter-band--footer h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
.newsletter-band p { color: var(--muted); font-size: .92rem; max-width: 52ch; margin-bottom: 0; }
.newsletter-band__action { flex: 0 1 430px; min-width: 0; width: 100%; }
.newsletter-band__action .small { margin: .55rem 0 0; }
.subscribe-form__row { display: flex; align-items: stretch; gap: 8px; }
.subscribe-form__row input {
  flex: 1 1 auto; min-width: 0; min-height: 44px;
  background: var(--bg); border: 1px solid var(--border-control); border-radius: 10px;
  padding: .6rem 1rem; font-size: 1rem; line-height: 1.4; color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.subscribe-form__row input::placeholder { color: var(--muted); opacity: .85; }
.subscribe-form__row input:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--accent); }
.subscribe-form__row input:is(:user-invalid, [aria-invalid="true"]) { border-color: var(--danger); }
.subscribe-form__row .btn { flex: none; min-height: 44px; }
.subscribe-status { margin: .65rem 0 0; font-size: .88rem; line-height: 1.45; font-weight: 500; }
.subscribe-status[data-kind="success"] { color: var(--success); }
.subscribe-status[data-kind="warning"] { color: var(--accent); }
.subscribe-status[data-kind="error"] { color: var(--danger); }
.article-newsletter { margin: 3rem 0 1rem; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: clamp(36px, 5vw, 56px) 0 32px; }
.footer-newsletter { margin-bottom: clamp(32px, 4vw, 48px); }
.footer-newsletter .newsletter-band { margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); font-family: var(--serif); font-size: .98rem; max-width: 34ch; margin-top: 1rem; line-height: 1.55; }
.footer-contact { display: flex; align-items: center; gap: .5rem; }
.footer-contact svg { color: var(--accent); flex: none; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 28px; color: var(--text); text-underline-offset: 3px; }
.footer-contact a:hover { color: var(--accent); }
.footer-col h2 { font-size: .78rem; font-family: var(--sans); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: .85rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 28px; padding: .2rem 0; color: var(--text); font-size: .93rem; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--border); margin-top: 40px; padding: 20px 0 8px; color: var(--muted); font-size: .82rem; }
.footer-legal p { margin: 0; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 28px; padding: .15rem 0; color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }
.footer-note { border-top: 1px solid var(--border); padding-top: 22px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.footer-note p { max-width: 110ch; margin: 0; }

/* Page and article headers */
.page-head { padding: clamp(12px, 1.8vw, 22px) 0 8px; }
.page-head h1 { font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem); line-height: 1.13; margin: .05rem 0 .35rem; }
.page-head__summary { color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 64ch; margin-bottom: 0; text-wrap: pretty; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .75rem; }
.breadcrumbs { margin-bottom: 6px; color: var(--muted); font-size: .76rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden] { margin: 0 .2rem; opacity: .5; }
.article-head { padding: clamp(12px, 1.8vw, 22px) 0 4px; }
.article-head h1 { font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.65rem); line-height: 1.12; margin: .08rem 0 .45rem; letter-spacing: -.022em; }
.article-head__summary { color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 64ch; margin-bottom: .55rem; text-wrap: pretty; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .85rem; color: var(--muted); font-size: .8rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.article-parent { margin: .5rem 0 0; color: var(--muted); font-size: .84rem; }
.article-parent a { color: var(--accent); }
.article-video { margin: 1.75rem 0; }
.article-video h2 { font-size: 1.3rem; margin-bottom: .75rem; }

/* Prose */
.prose { font-family: var(--serif); font-feature-settings: "pnum" on, "lnum" on, "liga" on; font-size: 1.0625rem; line-height: 1.68; color: var(--text); overflow-wrap: break-word; }
.article-body { padding: 0 0 8px; }
.article-body--lead { padding-bottom: 0; }
.article-body--cont { padding-top: 0; }
.article-body--cont > h2:first-child { margin-top: 1.1em; }
.prose > p:first-child { font-size: 1.14rem; line-height: 1.62; }
.prose h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; font-size: clamp(1.36rem, 1.2rem + .45vw, 1.56rem); line-height: 1.2; margin: 1.65em 0 .45em; scroll-margin-top: 96px; }
.prose h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.015em; font-size: clamp(1.14rem, 1.06rem + .25vw, 1.24rem); line-height: 1.26; margin: 1.35em 0 .35em; scroll-margin-top: 96px; }
.prose h4 { font-family: var(--sans); font-weight: 600; font-size: 1.04rem; margin: 1.15em 0 .35em; }
.prose p { margin: 0 0 .95em; text-wrap: pretty; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.prose li { margin-bottom: .38em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.prose a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose blockquote {
  margin: 1.25em 0; padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px var(--radius) var(--radius) 4px;
  box-shadow: var(--shadow);
  text-wrap: pretty;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote p:first-child { margin-top: 0; }
.prose .callout--gosho { border-left-color: var(--lotus); }
.prose .callout--note { border-left-color: var(--muted); background: var(--bg-alt); }
.prose .callout--quote { border-left-color: var(--border-hover); }
.prose .callout strong:first-child { display: block; margin-bottom: .35rem; font-family: var(--sans); font-size: .92rem; letter-spacing: -.01em; color: var(--accent); }
.prose .callout--gosho strong:first-child { color: var(--lotus); }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 4px; padding: .1em .35em; }
.prose pre { overflow-x: auto; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.prose pre code { border: 0; padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: .68rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-family: var(--sans); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom-width: 2px; }
.table-wrap { overflow-x: auto; }
.prose--compact { font-size: 1rem; line-height: 1.68; }
.glossary-link { text-decoration-style: dotted; text-underline-offset: .22em; }
.toc { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); margin: 10px 0 18px; overflow: hidden; }
.toc summary {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  cursor: pointer; list-style: none;
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: background-color .14s ease, color .14s ease;
}
.toc summary:hover { background: var(--surface); color: var(--text); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { margin-left: auto; transition: rotate .18s ease; }
.toc[open] summary svg { rotate: 180deg; }
.toc__count { font-weight: 500; letter-spacing: .02em; text-transform: none; }
.toc nav { padding: 4px 16px 12px; border-top: 1px solid var(--border); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc__item { counter-increment: toc; }
.toc__item a {
  display: grid; grid-template-columns: 1.55rem minmax(0, 1fr); gap: .3rem; align-items: baseline;
  min-height: 28px; padding: .24rem 0; color: var(--muted); font-size: .9rem; line-height: 1.38; text-decoration: none;
}
.toc__item a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-size: .72rem; font-variant-numeric: tabular-nums; }
.toc__item a:hover { color: var(--text); }
.toc__item--h3 { padding-left: 1.4rem; }
.toc__item--h3 a { display: block; }
.toc__item--h3 a::before { content: none; }
.faq { margin: 1.9rem 0; border-top: 1px solid var(--border); }
.faq h2 { font-size: 1.4rem; margin: 1.1rem 0 .7rem; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  padding: .85rem 6px; margin: 0 -6px; border-radius: 8px;
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background-color .14s ease, color .14s ease;
}
.faq__item summary:hover { background: var(--surface); color: var(--accent); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; flex: none; }
.faq__item[open] summary::after { content: "–"; }
.faq__item .prose { padding-bottom: .85rem; color: var(--muted); }
.article-product { margin: 2rem 0; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.article-product .product-card { display: grid; grid-template-columns: 140px 1fr; }
.article-product .product-card__media { aspect-ratio: auto; }
.article-product .product-card__media img { height: 100%; }
.related { margin: 2rem 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 12px; padding: 16px;
  background: var(--surface); box-shadow: var(--shadow);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, translate .18s ease;
}
.related-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: var(--surface-hover);
  box-shadow: var(--shadow-card);
}
.related-card:hover h3 a { color: var(--accent); }
.related-card h3 { font-size: 1.06rem; line-height: 1.32; margin: .25rem 0 .4rem; }
.related-card h3 a { text-decoration: none; }
.related-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.related-card p { color: var(--muted); font-size: .84rem; line-height: 1.48; margin: 0; }
.related-terms { margin: 1.8rem 0; }
.related-terms h2 { font-size: 1.3rem; margin-bottom: .75rem; }
.topic-children { margin-top: 32px; }
.topic-children h3 { margin: 18px 0 6px; font-size: 1rem; color: var(--muted); font-family: inherit; font-weight: 600; letter-spacing: .02em; }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list li { padding: 7px 0; border-top: 1px solid var(--border); }
.topic-list a { display: inline-flex; align-items: center; min-height: 28px; text-decoration: none; }
.topic-list a:hover { text-decoration: underline; }
.term-links { display: flex; flex-wrap: wrap; gap: 8px; }
.path-neighbours { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.8rem 0; }
.path-neighbour {
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
  background: var(--surface); box-shadow: var(--shadow);
  text-decoration: none; font-family: var(--serif); font-size: 1.06rem; line-height: 1.3;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, translate .18s ease;
}
.path-neighbour .meta { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--sans); font-size: .8rem; }
.path-neighbour--next { grid-column: 2; align-items: flex-end; text-align: right; }
.path-neighbour:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: var(--surface-hover);
  box-shadow: var(--shadow-card);
  color: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .path-neighbour:hover { translate: 0 -2px; }
}
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--border); padding-top: 1.4rem; margin-top: 2rem; }
.share-url { flex: 1; min-width: 180px; min-height: 38px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-alt); padding: .46rem .95rem; font-size: .84rem; color: var(--muted); }
.share-url:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--accent); color: var(--text); }
.author-box { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 1.5rem; padding: 1.25rem 0; }
.author-box__mark { flex: none; }
.author-box__name { font-weight: 700; margin: 0; }
.author-box__role { color: var(--muted); font-size: .82rem; margin: .12rem 0 .4rem; }
.author-box__role a { color: var(--accent); }
.author-box__text { color: var(--muted); font-size: .82rem; line-height: 1.5; margin: 0; max-width: 62ch; }
.ad-slot { margin: 2rem 0; border: 1px dashed var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.ad-slot__label { opacity: .7; }
.consent-banner { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 120; max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border-hover); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-float); }
.consent-banner p { color: var(--muted); font-size: .84rem; margin: 0 0 .65rem; }
.consent-banner p a { color: var(--accent); }
.consent-banner__actions { display: flex; gap: 8px; }

/* Simple pages / start paths */
.page-body { padding-bottom: 2rem; }
.page-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 2rem 0 1rem; }
.aside-card { border: 1px solid var(--border); border-radius: 12px; padding: 20px; background: var(--bg-alt); }
.aside-card h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.aside-card p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.aside-card--muted { background: transparent; }
.path-progress { border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 2rem 0 1.5rem; background: var(--surface); box-shadow: var(--shadow); }
.path-progress__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .65rem; font-variant-numeric: tabular-nums; }
.progress-track { height: 7px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .28s ease; }
.steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.step { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--border); }
.step__num { font-family: var(--mono); color: var(--accent); font-size: 1rem; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.step__body h2 { font-size: 1.22rem; line-height: 1.3; margin: .25rem 0 .35rem; }
.step__body h2 a { text-decoration: none; }
.step__body h2 a:hover { color: var(--accent); }
.step__note { color: var(--muted); font-size: .9rem; line-height: 1.52; margin: 0; max-width: 64ch; }
.step__mark {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--border-control); background: transparent; color: var(--muted);
  border-radius: 999px; min-height: 36px; padding: .35rem .85rem; font-size: .78rem; font-weight: 550;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease, scale .14s ease;
}
.step__mark:hover { border-color: var(--accent); color: var(--text); background: var(--surface-hover); }
.step__check { display: none; }
.step__mark[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.step__mark[aria-pressed="true"] .step__check { display: inline-flex; }
.step__mark[aria-pressed="true"] [data-mark-label] { text-decoration: line-through; opacity: .85; }
.path-next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 2rem 0; }

/* Gosho / glossary / search / error */
.gosho-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gosho-card {
  position: relative; display: flex; gap: 16px;
  border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  background: var(--surface); box-shadow: var(--shadow);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, translate .18s ease;
}
.gosho-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: var(--surface-hover);
  box-shadow: var(--shadow-card);
}
.gosho-card:hover h2 a { color: var(--accent); }
.gosho-card__num { font-family: var(--mono); color: var(--accent); font-size: .95rem; font-weight: 500; flex: none; font-variant-numeric: tabular-nums; }
.gosho-card__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gosho-card h2 { font-size: 1.14rem; line-height: 1.3; margin: .3rem 0 .45rem; }
.gosho-card h2 a { text-decoration: none; }
.gosho-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.gosho-card p { color: var(--muted); font-size: .86rem; line-height: 1.5; margin-bottom: .65rem; }
.gosho-card .link-arrow { font-size: .82rem; margin-top: auto; }
.az-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 12px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 1.6rem; }
.az-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 36px; padding: .25rem .45rem;
  color: var(--muted); font-size: .88rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; border-radius: 8px;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.az-nav a:hover { color: var(--accent); background: var(--surface); border-color: var(--border-hover); }
.glossary-group { margin-bottom: 2.2rem; scroll-margin-top: 96px; }
.glossary-group h2 { font-size: 1.35rem; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: .4rem; margin-bottom: .45rem; }
.glossary-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.glossary-item {
  display: flex; flex-direction: column; gap: .2rem;
  padding: .75rem 8px; margin: 0 -8px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background-color .14s ease;
}
.glossary-item:hover { background: var(--surface); }
.glossary-item__title { font-family: var(--serif); font-size: 1.04rem; font-weight: 600; color: var(--text); transition: color .14s ease; }
.glossary-item__desc { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.glossary-item:hover .glossary-item__title { color: var(--accent); }
.page-head--search .search-form { margin: 1.25rem 0 0; max-width: 100%; }
.page-head--search .search-suggest { margin: 8px 0 0; max-width: 100%; }
.search-count { color: var(--muted); font-size: .88rem; margin-bottom: 1.2rem; }
.rows--search .row { padding: 18px 0; }
.empty-search { border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: var(--bg-alt); }
.empty-search h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.empty-search p { color: var(--muted); font-size: .92rem; }
.empty-search .popular { justify-content: flex-start; margin: 1.1rem 0 1.2rem; }
.search-start { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.search-start .popular { justify-content: flex-start; }
.search-shortcuts { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 2rem; }
.search-shortcuts a { display: inline-flex; align-items: center; min-height: 32px; color: var(--accent); font-size: .9rem; font-weight: 600; }
.error-page { padding: clamp(48px, 8vw, 90px) 0; text-align: center; }
.error-page__code { font-family: var(--serif); font-size: clamp(3.5rem, 2.2rem + 6vw, 7.5rem); line-height: .9; color: var(--accent); opacity: .35; margin: 0 0 .5rem; }
.error-page h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin-bottom: .7rem; }
.error-page p { color: var(--muted); }
.error-page .search-form { margin: 1.6rem auto; }
.error-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 1.5rem 0; text-align: left; border-top: 1px solid var(--border); }
.error-link { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 44px; padding: .8rem 6px; margin: 0 -6px; border-bottom: 1px solid var(--border); text-decoration: none; font-size: .92rem; transition: background-color .14s ease, color .14s ease; }
.error-link:hover { background: var(--surface); color: var(--accent); }
.error-link svg { color: var(--accent); flex: none; transition: translate .18s ease; }
.error-page .popular { justify-content: center; }

/* Chant tool */
.chant-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .95fr); gap: 24px; align-items: start; }
.chant-tool, .chant-aside, .aside-card { min-width: 0; }
.chant-tool { border: 1px solid var(--border); border-radius: 14px; padding: clamp(18px, 3vw, 28px); background: var(--bg); }
[data-theme="light"] .chant-tool { background: var(--bg-alt); }
.chant-setup .eyebrow { margin-bottom: .7rem; }
.preset-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.preset {
  min-width: 0; min-height: 64px;
  border: 1px solid var(--border-control); border-radius: 10px;
  background: var(--surface); color: var(--text);
  padding: .85rem .3rem; font-family: var(--serif); font-size: 1.6rem; line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, scale .14s ease;
}
.preset span { display: block; font-family: var(--sans); font-size: .65rem; color: var(--muted); margin-top: .35rem; letter-spacing: .08em; text-transform: uppercase; }
.preset:hover { border-color: var(--accent); background: var(--surface-hover); }
.preset.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.preset.is-active span { color: var(--accent); }
.custom-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; margin: 16px 0; }
.custom-row label { font-size: .88rem; color: var(--muted); }
.custom-input {
  display: flex; align-items: center; gap: .4rem;
  min-height: 40px; border: 1px solid var(--border-control); border-radius: 999px;
  padding: .25rem .9rem; background: var(--surface);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.custom-input:focus-within { border-color: var(--accent); outline: 2px solid var(--focus); outline-offset: 2px; }
.custom-input input { width: 70px; border: 0; background: transparent; text-align: right; outline: none; padding: .25rem 0; font-variant-numeric: tabular-nums; }
.custom-input span { color: var(--muted); font-size: .8rem; }
.chant-options { display: grid; gap: .25rem; margin-bottom: 1.25rem; }
.check-row {
  display: flex; align-items: center; gap: .65rem;
  min-height: 36px; padding: .2rem 0;
  font-size: .9rem; color: var(--muted); cursor: pointer;
  transition: color .14s ease;
}
.check-row:hover { color: var(--text); }
.check-row input { width: 18px; height: 18px; flex: none; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.chant-setup .btn--lg, .chant-setup [data-start] {
  width: 100%; min-height: 48px; padding: .9rem 1.4rem; font-size: 1rem;
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.chant-setup [data-start]:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.hint { color: var(--muted); font-size: .76rem; text-align: center; margin: .75rem 0 0; }
.chant-stage { text-align: center; padding: .5rem 0 0; }
.timer-ring { position: relative; width: min(290px, 76vw); margin: 0 auto; aspect-ratio: 1; }
.timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 5; }
.ring-progress {
  fill: none; stroke: var(--accent); stroke-width: 5.5; stroke-linecap: round;
  stroke-dasharray: 615.75; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 28%, transparent));
  transition: stroke-dashoffset .4s linear;
}
[data-theme="light"] .ring-progress { filter: none; }
.timer-display { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.timer-time { font-family: var(--serif); font-size: clamp(2.5rem, 1.8rem + 3.2vw, 4.1rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.timer-state { color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-top: .55rem; }
.chant-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1.35rem; }
.chant-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1.25rem; }
.stat { text-align: center; min-width: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; overflow-wrap: break-word; }
.session-log { border-top: 1px solid var(--border); margin-top: 1.25rem; padding-top: 1rem; }
.session-log__head { display: flex; align-items: center; justify-content: space-between; }
.session-log h2 { font-size: 1rem; font-family: var(--sans); font-weight: 600; }
.session-log .link-arrow { border: 0; background: none; min-height: 32px; padding: .25rem 0; font-size: .78rem; }
.session-log ul { list-style: none; padding: 0; margin: .7rem 0 0; display: grid; gap: .3rem; }
.session-log li { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--muted); border-bottom: 1px solid var(--border); padding: .4rem 0; font-variant-numeric: tabular-nums; }
.session-log li strong { color: var(--text); font-weight: 600; }
.chant-aside { display: grid; gap: 14px; }
.simple-steps { padding-left: 1.15rem; margin: .6rem 0 1rem; }
.simple-steps li { color: var(--muted); font-size: .88rem; line-height: 1.55; margin-bottom: .45rem; }
.chant-stage:fullscreen { background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; }
.chant-stage:fullscreen .timer-ring { width: min(60dvh, 70vw); }
.chant-stage:fullscreen .timer-time { font-size: clamp(3.6rem, 2.2rem + 6dvh, 7.5rem); }

/* Gongyo & Daimoku */
.gongyo-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .7rem; }
.gongyo-langs .pill { background: var(--surface); border-color: var(--border-control); color: var(--text); min-height: 36px; }
.chant-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.chant-toolbar .small { margin: 0; flex: 1 1 320px; }
.fold { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-top: 12px; scroll-margin-top: 96px; overflow: hidden; box-shadow: var(--shadow); }
.fold:first-of-type { margin-top: 0; }
.fold > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; cursor: pointer; list-style: none;
  font-family: var(--sans); font-size: 1.16rem; font-weight: 600; letter-spacing: -.015em;
  transition: background-color .15s ease, color .15s ease;
}
.fold > summary:hover { background: var(--surface-hover); color: var(--accent); }
.fold[open] > summary { border-bottom: 1px solid var(--border); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary svg { color: var(--muted); transition: rotate .18s ease, color .16s ease; flex: none; }
.fold > summary:hover svg { color: var(--accent); }
.fold[open] > summary svg { rotate: 180deg; color: var(--accent); }
.fold__body { padding: 13px 18px 18px; }
.fold__body > :last-child { margin-bottom: 0; }
.fold__body > p.small { margin-bottom: .55rem; }
.fold__body > p:not(.small), .gblock, .prayer-list { max-width: 68ch; }
.fold-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.fold-tools .link-arrow {
  background: var(--surface); border: 1px solid var(--border-control); border-radius: 999px;
  min-height: 32px; padding: .24rem .8rem; font-size: .8rem; color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.fold-tools .link-arrow:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-hover); text-decoration: none; }
.daimoku-kanji { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.95rem); line-height: 1.22; margin: .1rem 0 .25rem; letter-spacing: .08em; }
.daimoku-latin { font-family: var(--serif); font-size: clamp(1.25rem, 1.02rem + 1vw, 1.8rem); margin: 0 0 .55rem; color: var(--accent); }
.daimoku-latin + .daimoku-latin { margin-top: -.3rem; font-family: var(--sans); font-size: clamp(1.1rem, .95rem + .75vw, 1.48rem); opacity: .92; }
.gblock { margin-top: 1.35rem; padding-top: 1.05rem; border-top: 1px solid var(--border); }
.gblock:first-of-type { border-top: 0; margin-top: .35rem; padding-top: .15rem; }
.gist { font-family: var(--serif); font-size: 1.04rem; line-height: 1.52; color: var(--muted); margin: 0 0 .85rem; text-wrap: pretty; }
.gline {
  display: flex; flex-direction: column; gap: .18rem;
  margin: 0 0 .95rem; padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 26%, var(--border));
}
.gk { font-size: 1.22rem; line-height: 1.56; letter-spacing: .04em; overflow-wrap: anywhere; }
.gr { color: var(--accent); font-size: .92rem; font-weight: 600; letter-spacing: .035em; line-height: 1.48; }
.gr--deva { font-weight: 500; font-size: .95rem; line-height: 1.56; letter-spacing: 0; color: color-mix(in srgb, var(--accent) 82%, var(--text)); }
.gnote { margin-top: .5rem; font-style: italic; }
.prayer-list { list-style: none; padding: 0; margin: .85rem 0 0; counter-reset: prayer; display: grid; gap: .75rem; }
.prayer-item {
  counter-increment: prayer;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, var(--border));
  border-radius: 4px 12px 12px 4px;
  background: var(--bg);
}
[data-theme="light"] .prayer-item { background: var(--bg-alt); }
.prayer-item__title {
  display: flex; align-items: baseline; gap: .55rem;
  font-family: var(--sans); font-size: 1.04rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.3;
  color: var(--text); margin: 0 0 .45rem;
}
.prayer-item__title::before {
  content: counter(prayer, decimal-leading-zero);
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.prayer-item__body { margin: 0 0 .55rem; font-family: var(--serif); line-height: 1.65; color: var(--text); text-wrap: pretty; }
.prayer-item__community { color: var(--accent); font-weight: 550; }
.prayer-item__close { margin: 0; font-family: var(--serif); font-size: .92rem; font-style: italic; color: var(--accent); }

/* Forms */
.form { display: grid; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .38rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--border-control); border-radius: var(--radius);
  padding: .75rem .92rem; font-size: 1rem; line-height: 1.5; color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:not([type="checkbox"]):not([type="radio"]):hover, .field textarea:hover, .field select:hover { border-color: var(--border-hover); }
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--accent); }
.field :is(input, textarea, select):is(:user-invalid, [aria-invalid="true"]) { border-color: var(--danger); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field__hint { color: var(--muted); font-size: .8rem; line-height: 1.45; margin: 0 0 .15rem; }
.field__error { color: var(--danger); font-size: .82rem; font-weight: 500; margin: .12rem 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field__hint { flex: 1; }
.req { color: var(--accent); }
.optional { color: var(--muted); font-weight: 400; }
.check-row--consent {
  align-items: flex-start;
  font-size: .86rem; line-height: 1.5; color: var(--text);
  border: 1px solid var(--border-control); border-radius: var(--radius);
  padding: .85rem .95rem; background: var(--bg-alt);
  transition: border-color .16s ease, background-color .16s ease;
}
.check-row--consent:hover { border-color: var(--accent); background: var(--surface); }
.check-row--consent input { margin-top: .16rem; }
.check-row--consent:has(input:is(:user-invalid, [aria-invalid="true"])) { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions .small { margin: 0; max-width: 46ch; }
.notice {
  border: 1px solid var(--border); border-left-width: 3px;
  border-radius: 4px var(--radius) var(--radius) 4px;
  padding: 1.05rem 1.25rem; background: var(--bg-alt);
}
.notice h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.notice p:last-child { margin-bottom: 0; }
.notice ul { margin: .4rem 0 0; }
.notice--error { border-left-color: var(--danger); }
.notice--success { border-left-color: var(--success); }
.notice--warning { border-left-color: var(--accent); }
.empty-state { color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); padding: 1.2rem; }
.empty-state a { color: var(--accent); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin: 2.2rem 0; }
.pagination__link {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 36px; padding: .35rem .85rem;
  border: 1px solid var(--border-control); border-radius: 999px;
  color: var(--text); font-size: .86rem; font-weight: 550; text-decoration: none;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.pagination__link:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.pagination__status { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }

/* Newsletter page */
.subscribe-card { border: 1px solid var(--border); border-radius: 16px; padding: clamp(22px, 4vw, 34px); background: var(--surface); box-shadow: var(--shadow); }
.subscribe-card h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.subscribe-card > p { color: var(--muted); font-size: .95rem; }
.subscribe-card .subscribe-page-form { margin: 1.1rem 0 .8rem; }
.subscribe-card .small { margin: 0; }
.subscribe-card .small a { color: var(--accent); }
#subscribe-status .notice { margin-bottom: 1.2rem; }

/* Admin */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 60px; }
.admin-wrap--login { max-width: 440px; padding-top: 12vh; }
.admin-card { border: 1px solid var(--border); border-radius: 12px; padding: 28px; background: var(--surface); }
.admin-card h1 { font-size: 1.9rem; margin-bottom: .4rem; }
.admin-card .small { margin-bottom: 1.2rem; }
.admin-note { margin-top: 1rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 1.5rem; }
.admin-head h1 { font-size: 2rem; }
.admin-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.admin-tabs a { padding: .6rem .9rem; color: var(--muted); text-decoration: none; font-size: .88rem; border-bottom: 2px solid transparent; }
.admin-tabs a.is-active { color: var(--text); border-bottom-color: var(--accent); }
.admin-tabs span { color: var(--muted); font-size: .72rem; margin-left: .3rem; }
.admin-list { display: grid; gap: 12px; }
.admin-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px; }
.admin-item__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: .6rem; }
.admin-item__text { margin: 0 0 .5rem; white-space: pre-line; }
.admin-item__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .8rem; }
.admin-item__actions form { margin: 0; }

/* ---- Store, support and guest blocks ---------------------------------- */
.support-box {
  margin: 2.6rem 0 1.4rem; padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 4px 12px 12px 4px; background: var(--surface); box-shadow: var(--shadow);
}
.support-box h2 { font-size: 1.35rem; margin: .2rem 0 .7rem; }
.support-box p { color: var(--text); text-wrap: pretty; }
.support-box .small { color: var(--muted); }
.support-box .btn { margin-top: .4rem; }
.author-box__initial { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-alt); color: var(--accent); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.chant-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.chant-jump .pill { background: var(--surface); border-color: var(--border-control); color: var(--text); min-height: 36px; }
.chant-jump .pill:hover { border-color: var(--accent); }

/* ---- Shop blocks: feature panel and cards on articles ----------------- */
.shop-feature {
  display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 22px; align-items: center;
  margin: 0 0 2.2rem; padding: 20px;
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 4px 12px 12px 4px; background: var(--surface); box-shadow: var(--shadow);
}
.shop-feature__media { display: block; aspect-ratio: 1 / 1; background: var(--media-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; padding: 8px; }
.shop-feature__media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: scale .28s ease; }
@media (prefers-reduced-motion: no-preference) {
  .shop-feature:hover .shop-feature__media img { scale: 1.03; }
}
.shop-feature__label { margin: 0 0 .35rem; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.shop-feature__intro { margin: 0 0 .55rem; color: var(--muted); font-size: .96rem; line-height: 1.5; }
.shop-feature__name { display: block; font-family: var(--serif); font-size: 1.38rem; line-height: 1.25; color: var(--text); text-decoration: none; }
.shop-feature__name:hover { color: var(--accent); }
.shop-feature .link-arrow { display: inline-flex; align-items: center; gap: .3rem; margin-top: .65rem; }
.shop-end { margin: 3rem 0 1.6rem; }
.shop-end__head h2 { font-size: 1.65rem; margin: .2rem 0 .45rem; }
.shop-end__intro { color: var(--muted); margin: 0 0 1.3rem; max-width: 62ch; }
.shop-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shop-cards .product-card { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); transition: border-color .18s ease, box-shadow .18s ease; }
.shop-cards .product-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: var(--shadow-card); }
.shop-cards .product-card__media { aspect-ratio: 1 / 1; }
.shop-cards .product-card__body { padding: 14px 4px 4px; gap: .4rem; }
.shop-cards .product-card h2, .shop-cards .product-card h3 { font-size: 1.24rem; }
.shop-cards .product-card__sub { font-size: .95rem; }
.shop-cards--one { grid-template-columns: minmax(0, 1fr); }
.shop-cards--one .product-card { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 24px; align-items: center; }
.shop-cards--one .product-card__body { padding: 0; }
.shop-end__note { color: var(--muted); font-size: .88rem; margin: 1.1rem 0 0; }
.shop-links { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.shop-links a { display: inline-flex; align-items: center; min-height: 30px; color: var(--accent); font-size: 1.02rem; }

/* ---- Gongyo page: side column, quiet timer ----------------------------- */
.chant-page { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: start; }
.chant-main { min-width: 0; }
.chant-side {
  position: sticky; top: 84px; align-self: start;
  max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; padding-right: 6px; padding-bottom: 18px;
}
.chant-side__title { margin: 0 0 .4rem; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chant-side__links, .chant-side__langs { list-style: none; margin: 0 0 1.15rem; padding: 0; display: grid; gap: .12rem; }
.chant-side__links a, .chant-side__langs a {
  display: flex; align-items: center; min-height: 28px;
  padding: .18rem .55rem; margin: 0 -.55rem; border-radius: 7px; border-left: 2px solid transparent;
  color: var(--text); text-decoration: none; font-size: .9rem; line-height: 1.32;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.chant-side__links a:hover, .chant-side__langs a:hover { background: var(--surface); color: var(--accent); }
.chant-side__links a.is-active,
.chant-side__langs a.is-active { color: var(--accent); font-weight: 600; background: color-mix(in srgb, var(--accent) 10%, transparent); border-left-color: var(--accent); }
.chant-side__muted a { color: var(--muted); font-size: .86rem; }
.chant-side__fold { display: none; }

/* ---- Articles: full-width layout with a left sidebar ------------------ */
.article-head .wrap { max-width: 1280px; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 1rem; }
.article-main { min-width: 0; }
.article-main .prose { max-width: 68ch; }
.article-main .article-video, .article-main .faq, .article-main .topic-children, .article-main .related, .article-main .shop-end, .article-main .path-neighbours, .article-main .author-box, .article-main .support-box, .article-main .article-newsletter { max-width: 78ch; }
.article-side {
  position: sticky; top: 84px; align-self: start;
  max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; padding-right: 6px; padding-bottom: 18px;
}
.side-title { margin: 0 0 .6rem; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.side-toc { margin-bottom: 2rem; }
.side-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: sidetoc; }
.side-toc__item { counter-increment: sidetoc; }
.side-toc__item a {
  display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .35rem; align-items: baseline;
  min-height: 30px; padding: .32rem .55rem .32rem .55rem; margin: 0 -.55rem;
  border-left: 2px solid transparent; border-radius: 0 6px 6px 0;
  color: var(--muted); font-size: .88rem; line-height: 1.38; text-decoration: none;
  transition: color .14s ease, background-color .14s ease, border-color .14s ease;
}
.side-toc__item a::before { content: counter(sidetoc, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-size: .7rem; font-variant-numeric: tabular-nums; }
.side-toc__item a:hover { color: var(--text); background: var(--surface); }
.side-toc__item a.is-active { color: var(--text); font-weight: 600; border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.side-toc__item--h3 { padding-left: 1rem; }
.side-toc__item--h3 a { display: block; }
.side-toc__item--h3 a::before { content: none; }
.side-shop { display: grid; gap: 14px; }
.side-product {
  display: grid; gap: 8px; padding: 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.side-product:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: var(--shadow-card); }
.side-product__media { display: block; aspect-ratio: 1 / 1; background: var(--media-bg); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); padding: 8px; }
.side-product__media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: scale .28s ease; }
@media (prefers-reduced-motion: no-preference) {
  .side-product:hover .side-product__media img { scale: 1.03; }
}
.side-product__name { font-family: var(--serif); font-size: 1rem; line-height: 1.32; color: var(--text); text-decoration: none; }
.side-product:hover .side-product__name, .side-product__name:hover { color: var(--accent); }
.side-product .link-arrow { font-size: .84rem; }

.community-field { display: grid; gap: .4rem; max-width: 420px; margin: 1rem 0 .4rem; }
.community-field span { font-family: var(--sans); font-size: .86rem; color: var(--muted); }
.community-field input { min-height: 44px; padding: .55rem .85rem; border: 1px solid var(--border-control); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; transition: border-color .16s ease; }
.community-field input:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--accent); }

/* Media queries */
@media (max-width: 1360px) {
  .brand__word { font-size: 1.08rem; letter-spacing: -.016em; }
  .bar-nav { gap: clamp(10px, 1.4vw, 20px); }
  .bar-nav a { font-size: .92rem; }
  .bar-yt { display: none; }
}
@media (max-width: 1120px) {
  html[lang="hi"] .bar-nav { display: none; }
  html[lang="hi"] .mobile-menu { display: block; }
}
@media (max-width: 980px) {
  .bar-nav, .bar-yt { display: none; }
  .mobile-menu { display: block; }
}
@media (max-width: 1040px) {
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid--four { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid--store { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr repeat(2, 1fr); row-gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .chant-layout { grid-template-columns: minmax(0, 1fr); }
  .chant-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .article-layout { display: block; margin-top: .75rem; }
  .article-side { display: none; }
  .article-toc-mobile .toc { margin: 0 0 1rem; }
  .shop-feature--inline { display: grid; margin: 1.25rem 0 1.4rem; }
}
@media (min-width: 1024px) {
  .article-toc-mobile { display: none; }
  .shop-feature--inline { display: none; }
}
@media (max-width: 900px) {
  .shop-cards--one .product-card { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 18px; }
  .hero__art { order: 2; max-width: 320px; margin: 0 auto; }
  .hero__copy { max-width: 640px; }
  .section-head__aside { margin: 0; }
  .newsletter-band { align-items: stretch; flex-direction: column; }
  .newsletter-band__action { flex: 1 1 auto; text-align: left; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .chant-page { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chant-side { position: static; max-height: none; overflow: visible; padding: 0; margin-bottom: 1.2rem; }
  .chant-side__static { display: none; }
  .chant-side__fold { display: block; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
  .chant-side__fold > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 16px; cursor: pointer; list-style: none;
    font-family: var(--sans); font-size: .95rem; font-weight: 600;
    transition: background-color .14s ease, color .14s ease;
  }
  .chant-side__fold > summary:hover { background: var(--surface-hover); color: var(--accent); }
  .chant-side__fold > summary::-webkit-details-marker { display: none; }
  .chant-side__fold > summary::after {
    content: "";
    width: 8px; height: 8px; flex: none;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    rotate: 45deg; translate: 0 -2px;
    transition: rotate .18s ease, border-color .14s ease;
  }
  .chant-side__fold[open] > summary { border-bottom: 1px solid var(--border); }
  .chant-side__fold[open] > summary::after { rotate: 225deg; translate: 0 2px; border-color: var(--accent); }
  .chant-side__body { padding: 14px 16px 16px; }
  .chant-side__body .chant-side__langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 1.05rem; }
  .nowrap { white-space: normal; }
  .wrap { padding: 0 18px; }
  .hero { padding: 18px 0 20px; }
  .hero h1 { font-size: clamp(1.65rem, 1.15rem + 2.5vw, 2.15rem); line-height: 1.18; margin-bottom: .9rem; }
  .hero__lede { font-size: 1rem; line-height: 1.6; }
  .hero__actions { margin-top: 1.25rem; gap: 10px; }
  .hero__actions .btn { width: auto; min-height: 38px; padding: .52rem 1rem; font-size: .86rem; border-radius: 8px; }
  .path-grid, .card-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; }
  .row { align-items: flex-start; gap: 12px; padding: 13px 0; margin: 0; }
  .row::before { inset: 3px -8px; }
  .row__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; overflow: hidden; }
  .row__go { display: none; }
  .rows--box .row { padding: 14px 16px; margin: 0; }
  .rows--box .row__go { display: inline-flex; }
  .row__title { font-size: 1.12rem; }
  .video-grid, .video-grid--four { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-grid, .product-grid--store { grid-template-columns: repeat(2, 1fr); }
  .encouragement-card { grid-template-columns: 1fr; gap: 14px; }
  .about-strip { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .article-head { padding-top: 10px; }
  .article-head h1 { font-size: clamp(1.85rem, 1.15rem + 3.2vw, 2.6rem); }
  .article-product .product-card { grid-template-columns: 100px 1fr; }
  .path-neighbours { grid-template-columns: 1fr; }
  .path-neighbour--next { grid-column: auto; align-items: flex-start; text-align: left; }
  .gosho-grid { grid-template-columns: 1fr; }
  .glossary-list { grid-template-columns: 1fr; }
  .page-aside { grid-template-columns: 1fr; }
  .chant-aside { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 34px minmax(0, 1fr); }
  .step__mark { grid-column: 2; justify-self: start; }
  .related-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .error-links { grid-template-columns: 1fr; }
  .toc { margin-top: 0; }
}
@media (max-width: 639px) {
  .bar-cta, .bar-actions .theme-toggle { display: none; }
  .site-bar { padding: 6px 8px 0; }
  .site-bar__in { padding: 6px 8px 6px 10px; gap: 8px; min-height: 52px; }
  .brand { gap: .45rem; }
  .brand .logo-mark { width: 28px; height: 28px; }
  .brand__word { font-size: clamp(.88rem, .65rem + 1.1vw, 1.04rem); letter-spacing: -.015em; }
  .bar-actions { gap: 6px; }
  .bar-actions .icon-btn { width: 38px; height: 38px; }
  .lang-btn { min-height: 38px; padding: .38rem .7rem; font-size: .78rem; }
  .mobile-menu[open] summary { top: 12px; right: 16px; }
}
@media (max-width: 359px) {
  .brand__word { white-space: normal; font-size: .82rem; line-height: 1.08; letter-spacing: -.01em; }
}
@media (max-width: 600px) {
  .hero__art { max-width: 170px; }
  .article-meta { display: grid; grid-template-columns: 1fr auto; gap: .4rem .8rem; align-items: center; }
  .article-meta > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .article-meta .badge { justify-self: start; }
  .shop-feature { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .shop-feature__name { font-size: 1.12rem; }
  .shop-feature__intro { font-size: .88rem; }
  .shop-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .shop-cards .product-card__media { max-width: 320px; margin: 0 auto; width: 100%; }
  .shop-cards--one .product-card { grid-template-columns: minmax(0, 1fr); }
  .shop-cards--one .product-card__media { max-width: 280px; margin: 0 auto; width: 100%; }
  .footer-grid { gap: 22px 16px; }
}
@media (max-width: 520px) {
  .video-grid, .video-grid--four { grid-template-columns: 1fr; }
  .product-grid, .product-grid--store { grid-template-columns: 1fr; }
  .fold > summary { padding: 13px 14px; font-size: 1.08rem; }
  .fold__body { padding: 12px 14px 16px; }
  .archive__item .prose { padding-left: 0; }
  .chant-tool { padding: 14px; }
  .preset-row { gap: 5px; }
  .preset { font-size: 1.25rem; min-height: 54px; padding: .6rem .15rem; }
  .custom-input input { width: 58px; }
  .field-row { grid-template-columns: 1fr; }
  .search-form { padding-left: 38px; }
  .search-form__icon { left: 13px; }
  .search-form .btn { padding: .52rem .85rem; font-size: .86rem; min-height: 36px; }
  .newsletter-band__action { width: 100%; }
  .subscribe-form__row { flex-direction: column; }
  .subscribe-form__row .btn { width: 100%; }
  .article-meta { gap: .4rem .7rem; }
  .share-url { width: 100%; flex-basis: 100%; }
}
@media (max-width: 349px) {
  .shop-feature { grid-template-columns: 80px minmax(0, 1fr); gap: 10px; padding: 12px; }
}
@media (pointer: coarse) {
  .bar-actions .icon-btn { width: 42px; height: 42px; }
  .lang-btn { min-height: 42px; }
  .pill, .filter-pills .pill { min-height: 42px; }
  .az-nav a { min-width: 40px; min-height: 40px; }
  .footer-col a, .footer-legal a, .breadcrumbs a { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .path-card:hover, .guide-card:hover, .post-card:hover, .gosho-card:hover, .related-card:hover, .path-neighbour:hover { translate: none; }
  .video-facade:hover img, .video-facade:hover .video-facade__play, .video-facade:focus-visible .video-facade__play, .product-card:hover .product-card__media img, .shop-feature:hover .shop-feature__media img, .side-product:hover .side-product__media img { scale: none; }
  .btn:active, .pill:active, .preset:active, .icon-btn:active { scale: none; }
  .progress-fill, .ring-progress, .archive__item summary svg, .toc summary svg, .fold > summary svg, .chant-side__fold > summary::after { transition: none; }
  .mobile-menu[open] .mobile-panel, .lang-menu[open] .lang-list, dialog.overlay[open] .overlay__panel, dialog.overlay[open]::backdrop { animation: none; }
}
@media (forced-colors: active) {
  :focus-visible, .search-form:focus-within, .overlay__form:focus-within, .custom-input:focus-within { outline: 2px solid CanvasText; outline-offset: 2px; }
  .pill.is-active, .btn--primary, .chant-setup [data-start] { border: 2px solid Highlight; }
  .progress-fill { background: Highlight; }
  .prose blockquote, .support-box, .shop-feature, .notice { border-left: 4px solid Highlight; }
}
@media print {
  .site-bar, .overlay, .site-footer, .share-row, .newsletter-band, .article-newsletter, .product-card, .related, .path-neighbours, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article-body { max-width: none; }
}
