/* Sakura Scriptures
   Layout: a baby-pink header band with a cherry branch that reaches down into a
   cream page; scriptures sit side by side in columns like hanging scrolls. */

@font-face { font-family: "Shippori Mincho"; font-weight: 500; font-display: swap; src: url(/fonts/shippori-mincho-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Shippori Mincho"; font-weight: 500; font-display: swap; src: url(/fonts/shippori-mincho-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Shippori Mincho"; font-weight: 700; font-display: swap; src: url(/fonts/shippori-mincho-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Shippori Mincho"; font-weight: 700; font-display: swap; src: url(/fonts/shippori-mincho-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 400; font-display: swap; src: url(/fonts/zen-kaku-gothic-new-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 400; font-display: swap; src: url(/fonts/zen-kaku-gothic-new-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 500; font-display: swap; src: url(/fonts/zen-kaku-gothic-new-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-display: swap; src: url(/fonts/zen-kaku-gothic-new-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/literata-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/literata-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/fonts/literata-latin-wght-italic.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --cream: #FBF5EC;
  --paper: #FFFCF7;
  --blush: #F7C6D3;
  --blush-soft: #FCE6EC;
  --petal: #EE9BB3;
  --petal-deep: #D9577F;
  --plum: #5B2A43;
  --plum-hover: #74375A;
  --ink: #3B2832;
  --muted: #7B6570;
  --line: #EADBD2;
  --line-strong: #DCC6BB;
  --bark: #6F4A3B;
  --mark: #FBD9E2;

  --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --ui: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --read: "Literata", Georgia, "Times New Roman", serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem);

  --radius: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --col-w: 340px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ui);
  font-size: var(--step-0);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--plum); text-decoration-color: color-mix(in srgb, var(--plum) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--petal-deep); }
:focus-visible { outline: 2px solid var(--petal-deep); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--plum); font-weight: 700; line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--ui); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- header with branch */
.site-header { position: relative; background: var(--blush); }
.site-header .wrap { position: relative; z-index: 3; }
main { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); position: relative; z-index: 2; }
.brand svg { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6)); }
.brand span { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 4px; position: relative; z-index: 2; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 14px; border-radius: 999px; color: var(--plum); background: rgba(255, 252, 247, 0.78); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--paper); color: var(--petal-deep); }
.header-branch { position: absolute; right: 0; top: 0; height: 150px; width: min(480px, 42vw); pointer-events: none; z-index: 1; }
.site-footer { z-index: 0; }
.header-branch svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ---------- hero + search */
.hero { padding-block: clamp(40px, 7vw, 84px) 28px; position: relative; }
.hero > :not(.hero-branch) { position: relative; z-index: 1; }
.hero-branch { position: absolute; right: calc(-1 * var(--gutter)); top: 0; width: min(560px, 46vw); height: 520px; pointer-events: none; z-index: 0; }
.hero-branch svg { width: 100%; height: 100%; display: block; overflow: visible; }
@media (min-width: 761px) { [data-route="home"] .header-branch { display: none; } }
@media (max-width: 760px) { .hero-branch { display: none; } }
.hero h1 { font-size: var(--step-4); max-width: 17ch; letter-spacing: -0.015em; }
.hero p.lead { margin-top: 14px; font-size: var(--step-1); color: var(--muted); max-width: 52ch; }
.search-block { margin-top: 28px; max-width: 860px; }
.search-form { display: flex; gap: 10px; background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 6px 6px 6px 18px; box-shadow: 0 10px 30px -18px rgba(91, 42, 67, 0.35); }
.search-form:focus-within { border-color: var(--petal); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.08rem; color: var(--ink); padding: 10px 0; outline: none; }
.search-form input::placeholder { color: #A7929B; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 11px; padding: 11px 20px; font-weight: 700; font-size: 0.98rem; text-decoration: none; transition: background-color 0.15s ease; }
.btn-primary { background: var(--plum); color: #FFF7FA; }
.btn-primary:hover { background: var(--plum-hover); color: #FFF7FA; }
.btn-soft { background: var(--blush-soft); color: var(--plum); }
.btn-soft:hover { background: var(--blush); color: var(--plum); }
.btn-ghost { background: transparent; color: var(--plum); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--petal); color: var(--plum); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-small { padding: 6px 12px; font-size: 0.88rem; border-radius: 9px; }

.search-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; font-size: 0.93rem; color: var(--muted); }
.picker-toggle { background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--plum); font-weight: 700; text-decoration: underline; text-decoration-color: var(--petal); text-underline-offset: 4px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 0.88rem; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--petal); color: var(--plum); }

.picker { margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 24px; }
.picker fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker legend { font-family: var(--display); font-weight: 700; color: var(--plum); font-size: 1.05rem; margin-bottom: 6px; padding: 0; }
.picker label { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; cursor: pointer; font-size: 0.95rem; line-height: 1.35; }
.picker label small { display: block; color: var(--muted); font-size: 0.8rem; }
.picker input[type="checkbox"] { accent-color: var(--petal-deep); width: 18px; height: 18px; margin-top: 1px; flex: none; }
.picker-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.picker-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

/* ---------- sections */
.section { padding-block: clamp(32px, 5vw, 56px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); max-width: 60ch; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--petal); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider svg { width: 22px; height: 22px; }

/* theme of the day */
.today { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(20px, 4vw, 48px); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 36px); position: relative; overflow: hidden; }
.today h2 { font-size: var(--step-3); margin-top: 6px; }
.today .blurb { color: var(--muted); margin-top: 10px; font-size: var(--step-1); }
.today .btn { margin-top: 20px; }
.today-sprig { position: absolute; left: -8px; bottom: -6px; width: 190px; opacity: 0.9; pointer-events: none; }
.today-quotes { display: grid; gap: 14px; position: relative; }
.quote { border-left: 2px solid var(--blush); padding-left: 14px; }
.quote p { font-family: var(--read); font-size: 0.98rem; line-height: 1.6; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.quote cite { display: block; font-style: normal; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.quote cite b { color: var(--plum); font-weight: 700; }

/* themes index */
.theme-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 36px; }
.theme-group h3 { font-size: 1.15rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.theme-group h3 svg { width: 16px; height: 16px; flex: none; }
.theme-group ul { list-style: none; margin: 0; padding: 0; }
.theme-group li a { display: block; padding: 7px 0; text-decoration: none; color: var(--ink); line-height: 1.35; }
.theme-group li a strong { color: var(--plum); font-weight: 700; }
.theme-group li a span { display: block; font-size: 0.85rem; color: var(--muted); }
.theme-group li a:hover strong { color: var(--petal-deep); }

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; }
.how div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.how svg { width: 26px; height: 26px; margin-top: 2px; }
.how p { color: var(--ink); }

/* ---------- results page */
.results-top { padding-block: 26px 10px; }
.results-top .search-form { box-shadow: none; }
.results-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 22px; }
.results-title h1 { font-size: var(--step-3); }
.results-title .eyebrow { width: 100%; }
.results-title p { color: var(--muted); }

.ai-panel { margin-top: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 30px); position: relative; overflow: hidden; }
.ai-panel > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ai-panel h2 { font-size: var(--step-2); display: flex; align-items: center; gap: 10px; }
.ai-panel h2 svg { width: 26px; height: 26px; }
.ai-panel .intro { color: var(--muted); max-width: 62ch; margin-top: 6px; }
.ai-quota { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.ai-body { margin-top: 18px; display: grid; gap: 20px; }
.ai-overview { font-family: var(--read); font-size: 1.12rem; line-height: 1.65; color: var(--ink); max-width: 70ch; }
.ai-trads { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ai-trad { background: var(--cream); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.ai-trad h3 { font-size: 1.15rem; }
.ai-trad .texts { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.coverage { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--plum); background: var(--blush-soft); border-radius: 999px; padding: 2px 10px; margin-top: 8px; }
.coverage.none { background: #F1E9E4; color: var(--muted); }
.ai-trad .says { margin-top: 10px; font-family: var(--read); font-size: 0.97rem; line-height: 1.6; }
.ai-trad h4 { font-family: var(--ui); font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.ai-trad ul { margin: 0; padding-left: 18px; font-size: 0.93rem; }
.ai-trad li + li { margin-top: 6px; }
.ai-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 32px; }
.ai-lists h3 { font-size: 1.1rem; margin-bottom: 6px; }
.ai-lists ul { margin: 0; padding-left: 0; list-style: none; }
.ai-lists li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.ai-lists li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 9px; border-radius: 50% 50% 50% 0; background: var(--petal); transform: rotate(-45deg); }
.ai-note { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.care-note { background: var(--blush-soft); border-radius: var(--radius); padding: 12px 16px; color: var(--plum); }
.cite { display: inline-flex; align-items: center; border: 0; background: var(--blush-soft); color: var(--plum); font-family: var(--ui); font-size: 0.72rem; font-weight: 700; padding: 1px 7px; margin: 0 2px; border-radius: 999px; cursor: pointer; vertical-align: 0.1em; white-space: nowrap; }
.cite:hover { background: var(--blush); }
.ai-working { display: flex; gap: 12px; align-items: center; color: var(--muted); margin-top: 16px; }
.ai-working .bud { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, var(--blush), var(--petal)); flex: none; }
.ai-error { color: #8C2F4D; margin-top: 12px; }
.ai-panel-branch { position: absolute; right: -10px; top: -14px; width: 200px; pointer-events: none; opacity: 0.95; }

.columns-wrap { margin-top: 26px; }
.jump { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding: 8px 0; margin-bottom: 6px; scrollbar-width: none; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 4; background: var(--cream); }
.jump::-webkit-scrollbar { display: none; }
.jump > span { font-size: 0.85rem; color: var(--muted); flex: none; }
.jump .chip { flex: none; }
.more-btn { justify-self: start; margin-top: 12px; }
.col { scroll-margin-top: 64px; }
.site-nav .short { display: none; }
.columns-hint { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.columns { display: grid; grid-auto-flow: column; grid-auto-columns: var(--col-w); gap: 16px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x proximity; scrollbar-color: var(--petal) transparent; }
.col { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.col-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); position: relative; }
.col-head h2 { font-size: 1.3rem; }
.col-head .trad { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--petal-deep); }
.col-head .tr { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.col-weak { margin: 12px 18px 0; font-size: 0.82rem; color: var(--muted); background: #F6EEE8; border-radius: 10px; padding: 8px 10px; }
.col-body { padding: 4px 18px 16px; display: grid; }
.passage { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.passage:last-child { border-bottom: 0; }
.passage.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { background: var(--mark); } 100% { background: transparent; } }
.passage-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.passage-ref { font-family: var(--display); font-weight: 700; color: var(--plum); font-size: 1.02rem; line-height: 1.3; }
.passage-book { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }
.match { display: inline-flex; gap: 2px; flex: none; align-items: center; }
.match i { width: 9px; height: 9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--line-strong); display: block; }
.match i.on { background: var(--petal-deep); }
.passage-text { font-family: var(--read); font-size: 1rem; line-height: 1.65; margin-top: 8px; color: var(--ink); overflow-wrap: anywhere; }
.passage-text .ctx { color: var(--muted); }
.passage-text .row { display: block; }
.passage-text .row + .row { margin-top: 6px; }
.passage-text .vno { font-family: var(--ui); font-size: 0.7rem; color: var(--petal-deep); font-weight: 700; margin-right: 4px; vertical-align: 0.15em; }
.passage-text mark { background: var(--mark); color: inherit; padding: 0 1px; border-radius: 3px; }
.passage-text b { font-weight: 650; color: #2F1E27; }
.passage-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 2px 0; color: var(--plum); font-size: 0.84rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--petal); text-underline-offset: 3px; }
.link-btn + .link-btn { margin-left: 12px; }
.author { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

/* ---------- about */
.prose > * { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 34px; margin-bottom: 8px; }
.prose p { margin-bottom: 12px; }
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 720px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; text-align: right; }
.lic { display: inline-block; font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-top: 4px; }
.lic.ok { background: #E7F1E6; color: #2F5B33; }
.lic.noncommercial, .lic.verify { background: #FBEBD9; color: #7A4A12; }

/* ---------- footer */
.site-footer { margin-top: 40px; position: relative; border-top: 1px solid var(--line); background: var(--cream); overflow: hidden; }
.site-footer .wrap { padding-block: 34px 40px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
@media (min-width: 980px) { .site-footer .wrap { padding-left: max(var(--gutter), 240px); } }
.site-footer p { color: var(--muted); font-size: 0.9rem; max-width: 46ch; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; }
.footer-branch { position: absolute; left: -20px; bottom: -10px; width: 260px; opacity: 0.8; pointer-events: none; }
@media (max-width: 979px) { .footer-branch { display: none; } }

.state { padding: 40px 0; color: var(--muted); }
.notice { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); }

/* ---------- small screens: columns stack */
@media (max-width: 760px) {
  .site-nav a { padding: 5px 10px; font-size: 0.85rem; }
  .site-nav .long { display: none; }
  .site-nav .short { display: inline; }
  .brand svg { width: 34px; height: 34px; }
  .brand span { font-size: 1.12rem; }
  .site-header .wrap { min-height: 64px; padding-block: 12px; }
  .header-branch { width: 46vw; height: 96px; opacity: 0.9; }
  .ai-panel-branch { display: none; }
  .search-form { flex-wrap: wrap; padding: 8px; }
  .search-form input { padding: 8px 10px; width: 100%; }
  .search-form .btn { width: 100%; }
  .today { grid-template-columns: 1fr; }
  .today-sprig { display: none; }
  .columns { grid-auto-flow: row; grid-auto-columns: auto; overflow-x: visible; }
  .columns-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
