/* Tri-Valley Santo Niño — site styles. Every colour is a custom property; light on :root, dark below. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Fraunces'; src: url('/fonts/fraunces-latin-wght-italic.woff2') format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-latin-wght-italic.woff2') format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fbf7f1;
  --bg-soft: #f4ece1;
  --surface: #ffffff;
  --surface-2: #faf5ee;
  --text: #2a211c;
  --text-soft: #5d5049;
  --muted: #74675e;
  --border: #e6dccd;
  --border-strong: #c9b9a4;
  --primary: #8e1b2c;
  --primary-ink: #ffffff;
  --primary-hover: #74131f;
  --primary-soft: #f6e4e3;
  --gold: #b07d1f;
  --gold-bright: #d9a846;
  --gold-ink: #2a1d05;
  --gold-soft: #f7ecd4;
  --link: #8e1b2c;
  --ok: #1f6b3a; --ok-bg: #e3f2e7;
  --warn: #7a5300; --warn-bg: #fdf1d6;
  --danger: #a3172a; --danger-bg: #fbe3e5;
  --info: #1d4f7a; --info-bg: #e2edf7;
  --focus: #1d4f7a;
  --shadow: 0 1px 2px rgba(60, 35, 20, .06), 0 6px 24px -8px rgba(60, 35, 20, .14);
  --shadow-lg: 0 20px 50px -20px rgba(60, 35, 20, .35);
  --hero-overlay: linear-gradient(100deg, rgba(42, 10, 16, .88) 0%, rgba(90, 18, 30, .70) 45%, rgba(40, 10, 14, .25) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --header-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #17120f; --bg-soft: #1d1714; --surface: #221b17; --surface-2: #2a221d;
    --text: #f2e9df; --text-soft: #d3c5b8; --muted: #ab9d90; --border: #3a302a; --border-strong: #5a4b41;
    --primary: #e2707f; --primary-ink: #1a0b0e; --primary-hover: #ee8c99; --primary-soft: #3a1c21;
    --gold: #e0b45c; --gold-bright: #e9c171; --gold-ink: #1f1504; --gold-soft: #33280f;
    --link: #f08e9b;
    --ok: #7fd39b; --ok-bg: #173323; --warn: #f1c46b; --warn-bg: #3a2c0c; --danger: #ff8d99; --danger-bg: #401a1f; --info: #8cc0ee; --info-bg: #142c40;
    --focus: #8cc0ee;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 26px -10px rgba(0,0,0,.6);
    --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
    --hero-overlay: linear-gradient(100deg, rgba(14, 6, 8, .92) 0%, rgba(50, 12, 20, .78) 45%, rgba(14, 6, 8, .35) 100%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17120f; --bg-soft: #1d1714; --surface: #221b17; --surface-2: #2a221d;
  --text: #f2e9df; --text-soft: #d3c5b8; --muted: #ab9d90; --border: #3a302a; --border-strong: #5a4b41;
  --primary: #e2707f; --primary-ink: #1a0b0e; --primary-hover: #ee8c99; --primary-soft: #3a1c21;
  --gold: #e0b45c; --gold-bright: #e9c171; --gold-ink: #1f1504; --gold-soft: #33280f;
  --link: #f08e9b;
  --ok: #7fd39b; --ok-bg: #173323; --warn: #f1c46b; --warn-bg: #3a2c0c; --danger: #ff8d99; --danger-bg: #401a1f; --info: #8cc0ee; --info-bg: #142c40;
  --focus: #8cc0ee;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 26px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
  --hero-overlay: linear-gradient(100deg, rgba(14, 6, 8, .92) 0%, rgba(50, 12, 20, .78) 45%, rgba(14, 6, 8, .35) 100%);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--text); margin: 0 0 .5em; font-variation-settings: 'SOFT' 50, 'WONK' 0; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 8px; z-index: 100; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.i { width: 1.1em; height: 1.1em; vertical-align: -.17em; flex: none; }
.i.big { width: 2.2rem; height: 2.2rem; color: var(--primary); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow, .narrow { max-width: 780px; }
.section { padding-block: clamp(36px, 6vw, 72px); }
.section + .section { padding-top: 0; }
main[data-page="home"] .section { padding-block: clamp(28px, 3.5vw, 44px); }
main[data-page="home"] .section + .section { padding-top: clamp(8px, 1.5vw, 16px); }
main[data-page="home"] .home-content + .section { padding-top: clamp(28px, 3vw, 40px); }
main[data-page="home"] .subscribe-band { margin-top: clamp(16px, 2vw, 24px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.empty { color: var(--muted); padding: 2rem 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: var(--gold); margin: 0 0 .7em; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow.light { color: var(--gold-bright); }
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 62ch; }
.warn-text { color: var(--warn); font-weight: 600; } .danger-text { color: var(--danger); font-weight: 600; }

/* ---------- buttons ---------- */
.btn { --b: var(--border-strong); display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .62em 1.15em; border-radius: 999px; border: 1.5px solid var(--b); background: var(--surface); color: var(--text); font: 600 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s, color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.btn.gold { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--gold-ink); }
.btn.gold:hover { filter: brightness(1.06); color: var(--gold-ink); }
.btn.light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(4px); }
.btn.light:hover { background: rgba(255,255,255,.22); color: #fff; border-color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--border); }
.btn.danger { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: var(--surface); }
.btn.small { padding: .38em .8em; font-size: .85rem; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { color: var(--link); text-decoration: underline; cursor: pointer; }
.row-buttons { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
form.inline { display: inline; }
.link-arrow { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; text-decoration: none; }
.link-arrow .i { transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.brand img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 650; letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav > a, .nav-group > button { padding: .5em .75em; border-radius: 999px; color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .94rem; background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; gap: .25em; align-items: center; }
.site-nav > a:hover, .nav-group > button:hover { color: var(--primary); background: var(--primary-soft); }
.site-nav > a.active, .nav-group > button.active { color: var(--primary); background: var(--primary-soft); }
.nav-group { position: relative; }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: none; flex-direction: column; }
.nav-group.open .dropdown { display: flex; animation: pop .16s ease-out; }
.dropdown a { padding: .6em .8em; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 500; }
.dropdown a:hover { background: var(--surface-2); color: var(--primary); }
.nav-account { display: flex; gap: 6px; margin-left: 10px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .35em; padding: .45em .85em; border-radius: 999px; border: 1.5px solid var(--border-strong); text-decoration: none; color: var(--text); font-weight: 600; font-size: .88rem; }
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pill.primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.pill.ghost { border-color: transparent; background: var(--surface-2); }
.pill { white-space: nowrap; }
.acct-name { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
@media (max-width: 1440px) and (min-width: 1181px) { body[data-signed-in="1"] .pill-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } body[data-signed-in="1"] .site-nav > a, body[data-signed-in="1"] .nav-group > button { padding-inline: .6em; } }
.nav-theme { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--border-strong); color: var(--text); border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.nav-toggle .i { width: 1.4em; height: 1.4em; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.theme-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); gap: 2px; }
.theme-switch button { border: 0; background: none; color: var(--muted); width: 30px; height: 28px; border-radius: 999px; cursor: pointer; display: grid; place-items: center; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; margin: 0; border-top: 1px solid var(--border); }
  .site-nav.open { transform: none; }
  .site-nav > a, .nav-group > button { font-size: 1.1rem; padding: .8em 1em; width: 100%; justify-content: space-between; }
  .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; display: flex; background: transparent; }
  .nav-group > button .i { display: none; }
  .nav-account { margin: 12px 0 0; flex-wrap: wrap; }
  .nav-theme { margin: 12px 0 0; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand-sub { display: none; } .brand-name { font-size: 1.15rem; } }

/* ---------- banners / alerts ---------- */
.banners:empty { display: none; }
.banner { padding: 12px 20px; text-align: center; font-weight: 600; font-size: .95rem; display: flex; justify-content: center; gap: .5em; align-items: center; }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner.info { background: var(--info-bg); color: var(--info); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.danger { background: var(--danger-bg); color: var(--danger); }
.banner code, .alert code { background: var(--surface); padding: 2px 6px; border-radius: 6px; word-break: break-all; font-weight: 500; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 1rem; border: 1px solid; font-size: .95rem; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.alert.info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.alert.warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.alert.danger { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.alert a { color: inherit; font-weight: 700; }

/* ---------- cards & badges ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow); }
.card h2 { font-size: 1.35rem; }
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .12em .6em; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.badge.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.badge .i { width: .95em; height: .95em; }
.stack > * + * { margin-top: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.row2 > *, .row3 > * { margin-top: 0 !important; }
@media (max-width: 900px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cards-3, .cards-4, .row2, .row3 { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(380px, 52vh, 540px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; z-index: -2; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
.hero::before { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); z-index: -1; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: -1; }
.hero-inner { padding-block: 56px 88px; }
.hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 600; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-tag { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.45rem); max-width: 44ch; color: #f6e7da; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-ornament { position: absolute; right: -60px; top: 50%; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(233, 193, 113, .35); transform: translateY(-50%); z-index: -1; box-shadow: 0 0 0 40px rgba(233,193,113,.05), 0 0 0 90px rgba(233,193,113,.035); }
@keyframes heroZoom { to { transform: scale(1); } }
@media (max-width: 700px) { .hero-inner { padding-block: 44px 72px; } .hero-ornament { display: none; } .hero-bg { background-position: 78% 30%; } }

/* ---------- homepage editable content ---------- */
.home-content { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.home-content > .callout { margin-top: -40px; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(22px, 3vw, 36px) clamp(22px, 4vw, 44px); box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold-bright); max-width: 900px; margin-inline: auto; }
.home-content > .callout h2, .home-content .split-text h2, .home-content .eyebrow + h2 { margin-top: 0; margin-bottom: .4em; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(28px, 3.5vw, 48px); }
.home-content > .callout + .split { padding-top: clamp(24px, 2.5vw, 36px); }
.home-content > .callout > :last-child, .split-text > :last-child, .feature > :last-child { margin-bottom: 0; }
.home-content > .callout .lead { max-width: none; }
.home-content .section-title { margin-top: clamp(12px, 2vw, 24px); }
.feature-grid { margin-bottom: 0; }
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.reverse .split-media { order: 2; }
.prose .split-media, .split-media { margin: 0; position: relative; }
.prose .split-media img { margin: 0; }
.split-media img { border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center 20%; }
.split.reverse .split-media img { aspect-ratio: 4/3; }
.split-media::after { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid var(--gold); border-radius: 22px; z-index: -1; opacity: .6; }
.section-title { margin-top: 1rem; }
.section-title.center::after { content: ''; display: block; width: 64px; height: 3px; margin: 14px auto 0; background: linear-gradient(90deg, var(--primary), var(--gold-bright)); border-radius: 3px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 32px 0 12px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; margin: 0 !important; border-radius: 0 !important; }
.feature h3 { font-size: 1.12rem; margin: 18px 20px 8px; }
.feature p { margin: 0 20px 20px; font-size: .95rem; color: var(--text-soft); }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } .split-media img { aspect-ratio: 4/3; } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { margin-bottom: 32px; }
.page-head h1 { margin-bottom: .2em; }

/* ---------- post cards ---------- */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-media { display: block; aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-media-fallback { display: grid; place-items: center; height: 100%; color: var(--gold); background: radial-gradient(circle at 30% 20%, var(--gold-soft), var(--bg-soft)); }
.post-media-fallback .i { width: 3rem; height: 3rem; }
.post-body { padding: 18px 22px 24px; }
.post-body h3 { font-size: 1.3rem; margin-bottom: .35em; }
.post-body h3 a { color: var(--text); text-decoration: none; }
.post-body h3 a:hover { color: var(--primary); }
.post-body p { color: var(--text-soft); margin: 0; font-size: .97rem; }
.meta { color: var(--muted); font-size: .85rem; margin: 0 0 .5em; display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }

/* ---------- article ---------- */
.article-head { padding-top: clamp(36px, 6vw, 72px); margin-bottom: 28px; }
.article-cover { margin: 0 auto 36px; max-width: 1000px; }
.article-cover img { width: 100%; border-radius: 20px; max-height: 560px; object-fit: cover; box-shadow: var(--shadow-lg); }
.article { padding-bottom: 48px; }
.prose { font-size: 1.07rem; }
.prose > * { max-width: 72ch; }
.prose.wide > *, .home-content > * { max-width: none; }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 14px; margin: 1em 0; display: block; }
.prose figure { margin: 1.4em 0; } .prose figcaption { color: var(--muted); font-size: .9rem; margin-top: .5em; }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--gold-bright); font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--text-soft); }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .3em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 14px; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
.newsletter-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.legal h2 { font-size: 1.3rem; }
.lock-card { padding: 40px 24px; }
.lock-card .i.big { width: 2.6rem; height: 2.6rem; color: var(--gold); }

/* ---------- structured page blocks ---------- */
.wrap.medium { max-width: 1040px; }
.prose .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 1.6em 0 .6em; max-width: none; }
.facts > div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.facts strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); line-height: 1.15; }
.facts span { font-size: .85rem; color: var(--muted); }
.prose .coord-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; margin: 1.2em 0 2em; max-width: none; }
.coord { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px 6px; box-shadow: var(--shadow); }
.prose .coord h3 { margin: 0 0 .5em; font-size: 1.08rem; color: var(--gold); font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.prose .coord ul { list-style: none; padding: 0; margin: 0; }
.prose .coord li { margin: 0; padding: 10px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.prose .coord li:first-child { border-top: 0; padding-top: 2px; }
.coord li strong { font-weight: 650; }
.coord li a, .coord .tel-locked { font-variant-numeric: tabular-nums; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; width: fit-content; }
.coord li a::before { content: ''; width: .95em; height: .95em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.coord .tel-locked { color: var(--muted); font-size: .9rem; text-decoration: underline; }
.coord .role { color: var(--muted); font-size: .92rem; font-style: italic; }
.coord.advisor { background: linear-gradient(135deg, var(--primary-soft), var(--gold-soft)); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.locked-note { background: var(--gold-soft); border-radius: 12px; padding: 12px 16px; }
.inline-details { display: inline-block; } .inline-details summary { list-style: none; display: inline-flex; } .inline-details summary::-webkit-details-marker { display: none; }
.inline-details[open] summary { margin-bottom: 6px; } .inline-details input { padding: .35em .5em; font-size: .85rem; width: 190px; }
@media (max-width: 700px) { .prose .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* by-laws / formal documents */
.bylaws > * { max-width: 78ch; }
.bylaws > .callout { max-width: none; margin: .4em 0 1.8em; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold-bright); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); }
.bylaws > .callout h2 { margin-top: 0; font-size: 1.3rem; }
.bylaws > .callout .lead { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; max-width: none; }
.bylaws ol { list-style: upper-roman; padding-left: 2.2em; }
.bylaws ol li { padding-left: .4em; margin: .55em 0; }
.bylaws ol li::marker { color: var(--gold); font-weight: 700; font-family: var(--font-display); }
.prose .kv-list { list-style: none; padding: 0; margin: 1em 0 1.4em; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.prose .kv-list li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 18px; margin: 0; border-top: 1px solid var(--border); }
.prose .kv-list li:first-child { border-top: 0; }
.kv-list li strong { color: var(--primary); }
.prose .note { font-size: .95rem; color: var(--text-soft); background: var(--surface-2); border-radius: 12px; padding: 12px 16px; margin-top: 1.6em; }
@media (max-width: 600px) { .prose .kv-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- galleries ---------- */
.album-card { padding: 0; overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.album-media { aspect-ratio: 4/3; display: block; overflow: hidden; background: var(--bg-soft); }
.album-media img { width: 100%; height: 100%; object-fit: cover; }
.album-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.album-body strong { font-family: var(--font-display); font-size: 1.15rem; }
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry-item { display: block; margin-bottom: 14px; break-inside: avoid; border-radius: 12px; overflow: hidden; position: relative; cursor: zoom-in; }
.masonry-item img { display: block; width: 100%; transition: transform .5s, filter .3s; }
.masonry-item:hover img { transform: scale(1.03); filter: brightness(1.05); }
.photo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 23%, 270px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.photo-strip a { scroll-snap-align: start; border-radius: 14px; overflow: hidden; aspect-ratio: 1; display: block; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-strip a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 6, 6, .94); display: grid; grid-template-rows: 1fr auto; place-items: center; animation: fade .2s; touch-action: pan-y; }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); user-select: none; transition: opacity .2s; }
.lightbox .lb-cap { color: #eee; padding: 10px 20px 24px; text-align: center; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 16px; right: 16px; } .lightbox .lb-prev { left: 16px; top: 50%; } .lightbox .lb-next { right: 16px; top: 50%; }
.lightbox .lb-count { position: absolute; top: 24px; left: 24px; color: #ccc; font-size: .9rem; }
@keyframes fade { from { opacity: 0; } }

/* ---------- music ---------- */
.playlist { padding: 0; overflow: hidden; }
.playlist-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); background: linear-gradient(120deg, var(--primary-soft), var(--gold-soft)); }
.tracks { list-style: none; margin: 0; padding: 6px; }
.track { display: grid; grid-template-columns: 44px 28px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; }
.track:hover { background: var(--surface-2); }
.track.playing { background: var(--primary-soft); }
.track.playing .track-meta strong { color: var(--primary); }
.track-num { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.track-meta { display: flex; flex-direction: column; min-width: 0; }
.track-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-meta span { color: var(--muted); font-size: .88rem; }
.track-dur { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.track-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; cursor: pointer; }
.track-play .i-pause, .playing .track-play .i-play, .is-playing .i-play { display: none; }
.playing .track-play .i-pause, .is-playing .i-pause { display: inline; }
.music-teaser { display: flex; gap: 24px; align-items: center; background: linear-gradient(120deg, var(--primary-soft), var(--gold-soft)); }
.music-teaser h2 { margin: 0 0 .2em; } .music-teaser p { margin: 0; color: var(--text-soft); } .music-teaser > div { flex: 1; }
.big-icon .i { width: 3rem; height: 3rem; color: var(--primary); }
.empty-state { padding: 56px 24px; }
@media (max-width: 640px) { .music-teaser { flex-direction: column; text-align: center; } .track { grid-template-columns: 40px 1fr auto; } .track-num, .track .badge { display: none; } }

.player { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); animation: slideUp .3s ease-out; }
.player[hidden] { display: none; }
@keyframes slideUp { from { transform: translateY(120%); } }
.player-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 2fr) auto auto; gap: 16px; align-items: center; padding: 10px 16px; max-width: var(--wrap); }
.player-meta { display: flex; gap: 10px; align-items: center; min-width: 0; }
.player-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--gold)); color: #fff; display: grid; place-items: center; flex: none; }
.player-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta > div { min-width: 0; }
.player-controls { display: flex; gap: 4px; align-items: center; }
.player-controls button, .player-close { background: none; border: 0; color: var(--text); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.player-controls button:hover, .player-close:hover { background: var(--surface-2); }
.player-controls .play { background: var(--primary); color: var(--primary-ink); width: 44px; height: 44px; }
.player-controls .play:hover { background: var(--primary-hover); }
.player .i-pause { display: none; } .player.is-playing .i-pause { display: inline; } .player.is-playing .play .i-play { display: none; }
.player-progress { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-progress input { flex: 1; }
.player-vol { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.player-vol input { width: 90px; }
input[type=range] { accent-color: var(--primary); }
body:has(.player:not([hidden])) .site-footer { padding-bottom: 110px; }
@media (max-width: 820px) { .player-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; } .player-progress { grid-column: 1 / -1; order: 3; } .player-vol { display: none; } }

/* ---------- newsletters ---------- */
.year { font-size: 1.3rem; margin-top: 1.6em; color: var(--muted); }
.issue-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.issue-list a { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; padding: 14px 8px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); transition: background .15s, padding .15s; }
.issue-list a:hover { background: var(--surface); padding-left: 14px; }
.issue-date { color: var(--gold); font-weight: 700; font-size: .9rem; }
.issue-title { font-weight: 600; }
.callout-row { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.callout-row > div { flex: 1; } .callout-row p { margin: 0; }
@media (max-width: 600px) { .callout-row { flex-direction: column; text-align: center; } .issue-list a { grid-template-columns: 70px 1fr; } .issue-list a .i { display: none; } }
.subscribe-band { background: linear-gradient(120deg, #6b1020, #8e1b2c 50%, #7a4a12); color: #fff; padding-block: clamp(40px, 6vw, 64px); margin-top: 32px; position: relative; overflow: hidden; }
.subscribe-band::before { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 0 0 50px rgba(255,255,255,.03); }
.subscribe-band h2 { color: #fff; margin-bottom: .2em; } .subscribe-band p { margin: 0; color: #f3dfd6; }
.subscribe-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; position: relative; }
.subscribe-form { display: flex; gap: 8px; background: rgba(255,255,255,.12); padding: 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.subscribe-form input[type=email] { flex: 1; background: transparent; border: 0; color: #fff; padding: 10px 16px; font: inherit; min-width: 0; }
.subscribe-form input::placeholder { color: rgba(255,255,255,.7); }
.subscribe-form input:focus { outline: none; }
.subscribe-form:focus-within { box-shadow: 0 0 0 3px var(--gold-bright); }
@media (max-width: 800px) { .subscribe-inner { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 600; font-size: .92rem; color: var(--text); }
.help { font-size: .84rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input[type=time], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; padding: .7em .9em; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { resize: vertical; min-height: 90px; }
.check { display: flex; gap: .6em; align-items: flex-start; cursor: pointer; }
.check input { margin-top: .3em; width: 1.05em; height: 1.05em; accent-color: var(--primary); flex: none; }
.check.small { font-size: .9rem; align-items: center; } .check.small input { margin-top: 0; }
fieldset { border: 0; padding: 0; margin: 0; } legend { padding: 0; margin-bottom: 6px; }
details summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
details[open] summary { margin-bottom: 10px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 18px 0 !important; text-align: center; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(1200px 500px at 50% -10%, var(--primary-soft), transparent 70%); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.8rem; text-align: center; }
.auth-logo { display: block; width: 64px; margin: 0 auto 12px; }
.auth-logo img { filter: drop-shadow(0 3px 8px rgba(0,0,0,.25)); }
.sso-btn { padding: .85em 1.2em; font-size: 1.02rem; }
.sso-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--primary-ink); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.identity { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.identity img, .identity .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.identity .avatar { background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 700; }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); font-size: .9rem; }
.qr { width: 220px; height: 220px; margin: 12px auto; background: #ffffff; padding: 14px; border-radius: 12px; border: 1px solid var(--border); }
.qr svg { width: 100%; height: 100%; display: block; }
code.secret { display: block; padding: 10px; background: var(--surface-2); border-radius: 8px; word-break: break-all; margin-top: 8px; font-size: .95rem; }
.codes { columns: 2; list-style: none; padding: 0; font-size: 1.05rem; }
.codes li { margin: 4px 0; } .codes code { background: var(--surface-2); padding: 3px 8px; border-radius: 6px; }
.steps { padding-left: 1.2em; }

/* ---------- account ---------- */
.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; } .plain-list li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.callout { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: var(--radius-sm); padding: 14px 16px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tr.row-alert td { background: var(--danger-bg); }
.kv td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.kv th { text-align: right; } .kv th:first-child { text-align: left; }
.danger-zone { margin-top: 32px; padding-top: 16px; border-top: 1px dashed var(--border-strong); }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; background: var(--bg-soft); border-top: 1px solid var(--border); padding: 40px 0 24px; font-size: .92rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { filter: drop-shadow(0 2px 5px rgba(0,0,0,.2)); }
.footer-brand span { color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a, .footer-legal a { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover, .footer-legal a:hover { color: var(--primary); text-decoration: underline; }
.footer-legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; }

/* ---------- manage / admin ---------- */
body.manage { --wrap: 1320px; }
.manage-nav { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: var(--header-h); z-index: 30; }
.manage-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.manage-tabs a { padding: 14px 14px; color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .92rem; border-bottom: 2.5px solid transparent; white-space: nowrap; display: inline-flex; gap: .4em; align-items: center; }
.manage-tabs a:hover { color: var(--primary); }
.manage-tabs a.active { color: var(--primary); border-color: var(--primary); }
.manage-tabs .admin-link { margin-left: auto; }
.wrap-banner { border-radius: 0; }
.manage-body { padding-block: 28px 64px; }
.manage-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; }
.manage-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.manage-head p { margin: .3em 0 0; }
.subtabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.subtabs a { padding: .45em .9em; border-radius: 999px; text-decoration: none; color: var(--text-soft); font-weight: 600; font-size: .9rem; border: 1px solid var(--border); }
.subtabs a.active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 28px; }
.tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile strong { font-family: var(--font-display); font-size: 1.2rem; }
.list td a strong { color: var(--text); } .list td a:hover strong { color: var(--primary); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; align-items: center; }
.filters input, .filters select { width: auto; min-width: 160px; padding: .5em .7em; font-size: .92rem; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.edit-side { position: sticky; top: calc(var(--header-h) + 64px); }
.title-input input, input.title-input { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
@media (max-width: 960px) { .edit-grid { grid-template-columns: 1fr; } .edit-side { position: static; } }
.editor { border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.editor-bar { display: flex; justify-content: flex-end; padding: 4px 6px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.editor .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.editor .ql-container.ql-snow { border: 0; font: inherit; font-size: 1.02rem; }
.editor .ql-editor { min-height: 360px; line-height: 1.65; color: var(--text); }
.editor .ql-editor img { max-width: 100%; border-radius: 8px; }
.editor .ql-snow .ql-stroke { stroke: var(--text-soft); } .editor .ql-snow .ql-fill { fill: var(--text-soft); }
.editor .ql-snow .ql-picker { color: var(--text-soft); } .editor .ql-snow .ql-picker-options { background: var(--surface); }
.editor .ql-snow.ql-toolbar button:hover .ql-stroke, .editor .ql-snow .ql-active .ql-stroke { stroke: var(--primary); }
.editor .ql-editor.ql-blank::before { color: var(--muted); }
.editor-source { width: 100%; min-height: 420px; border: 0 !important; border-radius: 0 !important; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace !important; padding: 14px !important; box-shadow: none !important; }
.editor[data-minimal="1"] .ql-editor { min-height: 160px; }
.cover-picker img { width: 100%; border-radius: 10px; margin-bottom: 8px; aspect-ratio: 16/10; object-fit: cover; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 28px; text-align: center; background: var(--surface-2); transition: background .15s, border-color .15s; margin-bottom: 18px; }
.dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone p { margin: .4em 0; }
.upload-progress { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 10px; }
.upload-progress progress { width: min(320px, 70%); accent-color: var(--primary); }
.photo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.photo-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: grab; position: relative; }
.photo-item.dragging, .track-admin li.dragging { opacity: .4; }
.photo-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-caption { display: flex; gap: 4px; padding: 6px; }
.photo-caption input { padding: .35em .5em; font-size: .85rem; }
.photo-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.photo-actions .btn { background: color-mix(in srgb, var(--surface) 85%, transparent); }
.track-admin { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.track-admin li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; flex-wrap: wrap; cursor: grab; }
.track-admin .drag { color: var(--muted); cursor: grab; letter-spacing: -2px; }
.track-form { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; align-items: center; min-width: 260px; }
.track-form input:not([type=checkbox]) { flex: 1; min-width: 140px; padding: .45em .6em; }
.track-form select { width: auto; padding: .45em .6em; }
.inline-form { display: flex; gap: 4px; } .inline-form input { padding: .35em .5em; font-size: .85rem; min-width: 140px; }
.role-form { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.role-picks { display: grid; gap: 8px; }
.tag-choices, .weekday-picks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-left: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.stat-sub { font-size: .85rem; color: var(--muted); word-break: break-all; }
.stat.bad .stat-value { color: var(--danger); }
.chart { width: 100%; height: 240px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.log .details { max-width: 380px; word-break: break-word; font-family: ui-monospace, Menlo, monospace; font-size: .78rem; color: var(--text-soft); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.settings-save { grid-column: 1 / -1; position: sticky; bottom: 12px; display: flex; justify-content: flex-end; }
.settings-save .btn { box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }
main.leaving { opacity: .35; transition: opacity .15s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@view-transition { navigation: auto; }
@media print { .site-header, .site-footer, .player, .subscribe-band, .manage-nav { display: none !important; } body { background: #fff; color: #000; } }
