@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

html:has(body#top:target) {
    scroll-behavior: smooth;
}

:root {
    color-scheme: dark;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    --bg: #1a1411;
    --bg-raised: #2b1e17;
    --bg-soft: #3c291d;
    --text: #f5ece3;
    --muted: #c0aa98;
    --accent: #ef853d;
    --accent-dark: #a85820;
    --accent-hover: #f5aa70;
    --accent-text: #2c180d;
    --detail: #a5653c;
    --line: color-mix(in srgb, var(--text) 12%, transparent);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3, .site-brand { font-family: 'Manrope', sans-serif; }

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(16px);
}

.header-inner, .site-brand, .site-nav, .footer-inner { display: flex; align-items: center; }
.header-inner { position: relative; min-height: 82px; justify-content: space-between; gap: 2rem; }

.site-brand { text-decoration: none; }
.brand-name { font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
.brand-name > span { color: var(--accent); }
.brand-name small { display: block; margin-top: .25rem; color: var(--muted); font-size: .57rem; font-weight: 600; letter-spacing: .15em; }

.site-nav { gap: clamp(1rem, 3vw, 2.6rem); }
.site-nav a { color: var(--muted); font-size: .84rem; font-weight: 600; text-decoration: none; transition: color .18s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.site-nav .nav-contact { padding: .65rem 1rem; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px; color: var(--accent); }
.menu-toggle { display: none; }

.hero-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 76% 48%, var(--bg-soft) 0, var(--bg-raised) 29%, transparent 59%), var(--bg);
}
.hero-section::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .17;
    background-image: radial-gradient(var(--accent) 1px, transparent 1px);
    background-size: 35px 35px;
    mask-image: linear-gradient(90deg, transparent 30%, #000);
    pointer-events: none;
}
.hero-inner { position: relative; display: grid; min-height: 640px; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 3rem; padding-top: 4.7rem; padding-bottom: 5rem; }
.hero-copy { position: relative; z-index: 2; align-self: start; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: .65rem; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 13px color-mix(in srgb, var(--accent) 48%, transparent); }
.error-trace { max-height: 60vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
h1:focus { outline: none; }
.hero-copy h1 { margin: 1.55rem 0 1.25rem; font-size: clamp(3.35rem, 6.6vw, 6rem); font-weight: 800; letter-spacing: -.075em; line-height: .98; }
.hero-copy h1 span, .section-heading h2 span, .teaching-intro h2 span, .contact-intro h1 span, .contact-aside h2 span { color: var(--accent); }
.hero-lead { max-width: 520px; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.hero-lead strong { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: .8rem; padding: .85rem 1.25rem; border: 1px solid transparent; border-radius: 4px; font-size: .85rem; font-weight: 700; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-accent { color: var(--accent-text); background: var(--accent); }
.button-accent:hover { color: var(--accent-text); background: var(--accent-hover); }
.button-quiet { color: var(--text); border-color: var(--line); background: rgb(255 255 255 / 2%); }
.button-quiet:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.hero-signoff { display: flex; align-items: center; margin-top: 3rem; color: var(--muted); font-size: .8rem; }

.hero-art { position: relative; width: min(100%, 510px); aspect-ratio: 1; justify-self: end; isolation: isolate; }
.hero-art::before { position: absolute; z-index: -1; inset: 12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, transparent), transparent 68%); content: ""; }
.art-sun { position: absolute; top: 12%; right: 15%; width: 74px; height: 74px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 70px color-mix(in srgb, var(--accent) 23%, transparent); }
.art-ring { position: absolute; top: 50%; left: 50%; width: 86%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--accent) 13%, transparent); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-two { width: 68%; border-color: color-mix(in srgb, var(--accent) 17%, transparent); }
.drum { position: absolute; z-index: 2; border: 2px solid var(--detail); background: linear-gradient(145deg, color-mix(in srgb, var(--detail) 75%, var(--bg-soft)), color-mix(in srgb, var(--detail) 48%, var(--bg)) 62%, var(--bg)); box-shadow: inset -13px -12px 20px rgb(0 0 0 / 28%), 8px 16px 22px rgb(0 0 0 / 35%); }
.drum-back { top: 23%; left: 38%; width: 27%; height: 25%; border-radius: 48% 48% 10% 10%; }
.drum-left { top: 41%; left: 18%; width: 30%; height: 28%; border-radius: 48% 48% 12% 12%; transform: rotate(-9deg); }
.drum-right { top: 39%; right: 14%; width: 30%; height: 29%; border-radius: 48% 48% 12% 12%; transform: rotate(8deg); }
.drum-front { bottom: 9%; left: 34%; width: 43%; height: 36%; border-radius: 50%; background: linear-gradient(135deg, color-mix(in srgb, var(--detail) 70%, var(--bg-soft)), var(--bg) 75%); }
.drum-head { position: absolute; z-index: 3; border: 3px solid #c2c4aa; border-radius: 50%; background: radial-gradient(ellipse at 36% 28%, #e5e2d3, #aaa996 66%, #656758); box-shadow: 0 3px 9px rgb(0 0 0 / 32%); }
.head-back { top: 19%; left: 38%; width: 27%; height: 11%; }
.head-left { top: 37%; left: 17%; width: 31%; height: 13%; transform: rotate(-9deg); }
.head-right { top: 35%; right: 13%; width: 31%; height: 13%; transform: rotate(8deg); }
.head-front { bottom: 25%; left: 34%; width: 43%; height: 14%; background: radial-gradient(ellipse, #eeeadd, #aaa995); }
.cymbal { position: absolute; z-index: 4; height: 8px; border: 1px solid #d5a873; border-radius: 50%; background: linear-gradient(#f1d4a5, #a8784c); box-shadow: 0 3px 9px rgb(0 0 0 / 32%); }
.cymbal-one { top: 27%; left: 5%; width: 34%; transform: rotate(-12deg); }
.cymbal-two { top: 23%; right: 2%; width: 31%; transform: rotate(13deg); }
.stick { position: absolute; z-index: 5; top: 26%; left: 34%; width: 4px; height: 43%; border-radius: 10px; background: #dfd3ad; transform: rotate(42deg); transform-origin: center; box-shadow: 2px 2px 5px rgb(0 0 0 / 25%); }
.stick-two { top: 24%; left: 58%; height: 40%; transform: rotate(-43deg); }
.art-note { position: absolute; z-index: 6; color: var(--accent); font-size: 2.2rem; }
.note-one { top: 13%; left: 20%; transform: rotate(-15deg); }
.note-two { right: 8%; bottom: 18%; font-size: 1.3rem; }
.art-caption { position: absolute; right: 1%; bottom: 4%; color: #a09083; font-size: .61rem; font-weight: 700; letter-spacing: .16em; line-height: 1.65; }
.hero-baseline { position: relative; border-top: 1px solid var(--line); }
.baseline-inner { display: flex; min-height: 60px; align-items: center; justify-content: space-between; color: #9a8a7e; font-size: .61rem; font-weight: 700; letter-spacing: .14em; }
.baseline-center { color: #c2b4a7; }
.baseline-inner a { color: var(--accent); text-decoration: none; }

.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.section-demo { background: var(--bg-raised); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2.5rem; margin-bottom: 2.5rem; }
.section-heading h2, .teaching-intro h2 { margin: .9rem 0 0; font-size: clamp(2.8rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: -.07em; line-height: 1.05; }
.section-heading > p { max-width: 365px; margin: 0 0 .35rem; color: var(--muted); font-size: .96rem; line-height: 1.8; }
.video-frame { position: relative; overflow: hidden; border: 1px solid rgb(255 255 255 / 12%); border-radius: 7px; background: #111; box-shadow: 0 25px 80px rgb(0 0 0 / 25%); }
.video-frame::before { display: block; padding-top: 56.25%; content: ""; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; color: var(--muted); font-size: .78rem; }
.video-meta > span { display: inline-flex; align-items: center; gap: .55rem; }
.video-meta > span i { color: var(--accent); }
.video-meta a { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); font-weight: 700; text-decoration: none; }
.video-meta a:hover { color: var(--accent-hover); }

.section-teaching { background: var(--bg); }
.teaching-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(3rem, 9vw, 8.5rem); align-items: start; }
.teaching-intro h2 { margin: 1rem 0 1.4rem; font-size: clamp(2.7rem, 4.7vw, 4.25rem); }
.teaching-intro > p { max-width: 460px; color: var(--muted); font-size: .98rem; line-height: 1.85; }
.text-link { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.35rem; color: var(--accent); font-size: .87rem; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--accent-hover); }
.teaching-list { border-top: 1px solid var(--line); }
.teaching-item { display: grid; grid-template-columns: 36px 1fr 34px; gap: 1rem; align-items: start; padding: 1.55rem .25rem; border-bottom: 1px solid var(--line); }
.item-number { padding-top: .25rem; color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
.teaching-item h3 { margin: 0 0 .45rem; font-size: 1.1rem; font-weight: 700; letter-spacing: -.025em; }
.teaching-item p { max-width: 440px; margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.7; }
.teaching-item > i { padding-top: .2rem; color: var(--detail); font-size: 1.15rem; text-align: right; }

.quote-strip { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.quote-inner { display: grid; min-height: 230px; grid-template-columns: 70px 1fr auto; gap: 1rem; align-items: center; }
.quote-mark { align-self: start; padding-top: 2.2rem; color: var(--accent); font-family: Georgia, serif; font-size: 6rem; line-height: 1; }
.quote-inner p { margin: 0; color: #d5d5cb; font-family: 'Manrope', sans-serif; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.45; }
.quote-inner p strong { color: var(--accent); font-weight: 700; }
.quote-aside { align-self: end; padding-bottom: 2.4rem; color: #a38f80; font-size: .56rem; font-weight: 700; letter-spacing: .12em; }

.contact-cta { padding: clamp(4rem, 8vw, 7rem) 0; background: color-mix(in srgb, var(--bg-raised) 84%, var(--accent)); color: var(--text); }
.contact-cta .eyebrow { color: var(--accent); }
.contact-cta-inner { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.contact-cta h2 { margin: 1rem 0 0; font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 800; letter-spacing: -.075em; line-height: 1; }
.cta-right { max-width: 370px; }
.cta-right p { margin-bottom: 1.3rem; color: var(--muted); font-size: .98rem; line-height: 1.75; }

.contact-page { min-height: 75vh; }
.contact-intro { padding: 4.7rem 0 4.5rem; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 76% 0, var(--bg-soft), transparent 55%), var(--bg-raised); }
.contact-intro-inner h1 { margin: 1.2rem 0 1rem; font-size: clamp(3.3rem, 7vw, 6rem); font-weight: 800; letter-spacing: -.075em; line-height: 1; }
.contact-intro-inner > p { max-width: 600px; margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.8; }
.contact-content { padding: clamp(4rem, 8vw, 7rem) 0; }
.contact-columns { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(3rem, 8vw, 7.5rem); align-items: start; }
.contact-aside { padding-top: 1.25rem; }
.section-kicker { font-size: .67rem; }
.contact-aside h2 { margin: 1rem 0 1.2rem; font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 800; letter-spacing: -.07em; line-height: 1.05; }
.contact-aside > p { max-width: 410px; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.contact-aside-note { display: flex; align-items: center; gap: .8rem; margin-top: 2.6rem; color: #b7a99d; font-size: .8rem; }
.contact-aside-note i { color: var(--accent); font-size: 1.1rem; }
.contact-form-card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 6px; background: var(--bg-raised); }
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; margin-bottom: .5rem; color: var(--text); font-size: .8rem; font-weight: 600; }
.vat-choice-label { display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; }
.vat-choice-label label { margin: 0; }
.form-control, .form-select { min-height: 49px; border: 1px solid color-mix(in srgb, var(--bg-soft) 80%, var(--text)); border-radius: 3px; color: var(--text); background-color: var(--bg); font: inherit; font-size: .88rem; }
.form-select { --bs-form-select-bg-img: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-control::placeholder { color: var(--muted); }
.form-control:focus, .form-select:focus { border-color: var(--accent); color: var(--text); background-color: var(--bg); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--accent) 14%, transparent); }
.form-select option { color: var(--text); background: var(--bg-raised); }
.searchable-select { position: relative; }
.searchable-select-menu { --bs-dropdown-color: var(--text); --bs-dropdown-bg: var(--bg-raised); --bs-dropdown-border-color: var(--line); --bs-dropdown-link-color: var(--text); --bs-dropdown-link-hover-color: var(--text); --bs-dropdown-link-hover-bg: color-mix(in srgb, var(--bg-soft) 78%, var(--accent)); --bs-dropdown-link-active-color: var(--accent-text); --bs-dropdown-link-active-bg: var(--accent); top: calc(100% + .25rem); right: 0; left: 0; max-height: 18rem; margin: 0; overflow-y: auto; border-color: var(--line); background-color: var(--bg-raised); box-shadow: 0 .6rem 1.4rem color-mix(in srgb, #000 28%, transparent); }
.searchable-select-menu .dropdown-item { color: var(--text); cursor: pointer; white-space: normal; }
.searchable-select-menu .dropdown-item:hover, .searchable-select-menu .dropdown-item:focus-visible { color: var(--text); background: color-mix(in srgb, var(--bg-soft) 78%, var(--accent)); }
.searchable-select-menu .dropdown-item.active { color: var(--accent-text); background: var(--accent); }
.searchable-select-group { padding: .45rem 1rem .25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.searchable-select-no-results { padding: .55rem 1rem; color: var(--muted); font-size: .8rem; }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-field .validation-message { display: block; margin-top: .35rem; color: var(--accent-hover); font-size: .75rem; }
.form-submit { width: 100%; min-height: 52px; margin-top: .4rem; }
.form-submit:disabled { cursor: wait; opacity: .72; }
.form-privacy { display: flex; justify-content: center; gap: .45rem; margin: 1rem 0 0; color: #a09083; font-size: .7rem; }
.form-privacy i { color: var(--accent); }
.form-feedback { display: flex; gap: .8rem; margin-bottom: 1.25rem; padding: 1rem; border: 1px solid; border-radius: 3px; font-size: .85rem; line-height: 1.65; }
.form-feedback > i { margin-top: .1rem; }
.feedback-success { border-color: rgb(217 160 120 / 32%); color: #e6bb98; background: rgb(217 160 120 / 7%); }
.feedback-error { border-color: rgb(242 164 154 / 35%); color: #f2aaa0; background: rgb(242 164 154 / 7%); }
.admin-narrow { max-width: 600px; }
.admin-links { margin: 1.1rem 0 0; font-size: .8rem; text-align: center; }
.admin-links a, .admin-subnav a { color: var(--muted); text-decoration: none; }
.admin-links a:hover, .admin-subnav a:hover, .admin-subnav a.active { color: var(--accent); }
.admin-links a:focus-visible, .admin-subnav a:focus-visible, .admin-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.admin-subnav { border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.admin-subnav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .6rem; padding-bottom: .6rem; }
.admin-subnav-links { display: flex; flex-wrap: wrap; gap: .4rem .25rem; font-size: .84rem; font-weight: 600; }
.admin-subnav-links a { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; padding: 0 .75rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.admin-subnav-links a.active { border-bottom-color: var(--accent); }
.admin-logout { min-height: 44px; padding: .5rem 1rem; }
@media (max-width: 1199.98px) {
    .admin-subnav-inner { flex-wrap: nowrap; gap: .5rem; padding-top: .25rem; padding-bottom: .25rem; }
    .admin-subnav-links { flex: 1; min-width: 0; flex-wrap: nowrap; gap: .25rem; overflow-x: auto; position: relative; scrollbar-width: none; cursor: grab; mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent); }
    .admin-subnav-links::-webkit-scrollbar { display: none; }
    .admin-subnav-links.is-dragging { cursor: grabbing; user-select: none; }
    .admin-subnav-inner form { flex-shrink: 0; }
    .admin-logout { padding: .5rem .75rem; white-space: nowrap; }
}
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.admin-tile { display: block; color: var(--text); text-decoration: none; transition: border-color .18s ease; }
.admin-tile:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--text); }
.admin-tile > i { color: var(--accent); font-size: 1.5rem; }
.admin-tile h2 { margin: .8rem 0 .5rem; font-size: 1.3rem; font-weight: 800; }
.admin-tile p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.validation-summary { flex-direction: column; gap: .35rem; margin-top: 0; list-style: none; }
.validation-summary li { margin: 0; }
.admin-theme-layout { display: grid; gap: 1.5rem; }
.admin-theme-layout form { display: grid; gap: 1.5rem; min-width: 0; }
.admin-theme-card[hidden] { display: none; }
.admin-card-title { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 800; }
.admin-card-note { margin: 0 0 1.25rem; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.admin-preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .75rem; }
.admin-preset-grid .theme-preset { min-height: 76px; }
.admin-preset-grid .theme-preset[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--bg-raised) 84%, var(--accent)); }
.admin-theme-reset { display: block; }
.admin-wide { max-width: 900px; }
.admin-toolbar, .admin-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.admin-list-search { flex: 0 1 19rem; width: min(100%, 19rem); margin-left: auto; }
.admin-list-search .form-control { width: 100%; }
.admin-actions { margin-top: 1.5rem; }
.admin-empty { color: var(--muted); font-size: .9rem; }
.admin-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.admin-list-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-raised); }
.admin-list-item > a { display: flex; flex: 1 1 16rem; flex-direction: column; gap: .2rem; min-width: 0; padding: 1rem 1.25rem; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.admin-list-item > a:hover { color: var(--accent); }
.admin-list-item > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.admin-list-item > a span { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.admin-badge { margin: 0 1.25rem 0 0; padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.admin-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; margin-bottom: 1.5rem; }
.admin-filter .form-field { margin-bottom: 0; }
.admin-filter-check { display: flex; align-items: center; gap: .5rem; min-height: 49px; }
.admin-filter-check label { margin: 0; }
.admin-fieldset { min-width: 0; margin: 0 0 1.2rem; padding: 1rem 1rem .2rem; border: 1px solid var(--line); border-radius: 4px; }
.admin-fieldset legend { float: none; width: auto; padding: 0 .4rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
form:has(#payer-type option[value="Private"]:checked) .admin-org-only { display: none; }
.admin-month-nav { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: 1.4rem 0 .8rem; }
.admin-month-title { margin: 0; color: var(--text); font-size: 1.1rem; font-weight: 600; text-align: center; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0 1rem; }
.admin-history { margin-top: 1.5rem; }
.admin-history ul { display: grid; gap: .6rem; margin: 0; padding-left: 1.1rem; font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.theme-color-field .theme-color-control input:focus-visible, .admin-preset-grid .theme-preset:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: var(--bg); }
.theme-preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: .8rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); background: var(--bg-raised); font-size: .8rem; }
.theme-preview-bar strong span { color: var(--accent); }
.theme-preview-bar > span { color: var(--muted); }
.theme-preview-body { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1.25rem 1rem 1.5rem; }
.theme-preview-body h3 { flex: 1 0 100%; margin: 0; font-size: 1.5rem; font-weight: 800; }
.theme-preview-body p { flex: 1 0 100%; margin: 0; font-size: .9rem; line-height: 1.7; }
.theme-preview-muted { color: var(--muted); }
.theme-preview-surface { padding: .5rem .8rem; border-radius: 3px; background: var(--bg-soft); font-size: .8rem; }
.theme-preview-button { padding: .55rem 1rem; border-radius: 3px; color: var(--accent-text); background: var(--accent); font-size: .85rem; font-weight: 700; }
.theme-preview-detail { width: 2.25rem; height: .5rem; border-radius: 999px; background: var(--detail); }

.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, black); }
.footer-inner { min-height: 76px; justify-content: space-between; gap: 1.5rem; color: var(--muted); font-size: .7rem; }
.footer-inner > span:nth-child(2) i { color: #d58b7d; font-size: .6rem; }
.footer-inner a { color: var(--accent); text-decoration: none; }

.theme-editor { min-height: 80vh; padding-bottom: clamp(4rem, 8vw, 7rem); }
.theme-editor-hero { padding: 4.7rem 0 3.5rem; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 76% 0, var(--bg-soft), transparent 55%), var(--bg-raised); }
.theme-editor-hero h1 { margin: 1rem 0 .8rem; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -.075em; line-height: 1; }
.theme-editor-hero h1 span, .theme-editor-heading h2 span { color: var(--accent); }
.theme-editor-hero p { max-width: 580px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.theme-editor-content { padding-top: clamp(3rem, 6vw, 5rem); }
.theme-editor-heading, .theme-color-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.theme-editor-heading { margin-bottom: 1.6rem; }
.theme-editor-heading h2 { margin: .45rem 0 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.06em; }
.theme-editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }
.theme-reset { flex: 0 0 auto; }
.theme-preset-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.theme-preset-group { display: grid; align-content: start; gap: .75rem; min-width: 0; }
.theme-preset-group-heading { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.theme-preset { position: relative; display: flex; min-height: 92px; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: var(--bg-raised); text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.theme-preset:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.theme-preset.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--bg-raised) 84%, var(--accent)); }
.theme-swatch-row { display: flex; width: 62px; height: 62px; flex: 0 0 62px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.theme-swatch-row span { flex: 1; }
.theme-preset-copy { display: grid; gap: .25rem; }
.theme-preset-copy strong { font-size: .9rem; }
.theme-preset-copy small { color: var(--muted); font-size: .74rem; }
.theme-preset-check { position: absolute; top: .85rem; right: .85rem; color: var(--accent); }
.theme-color-panel { margin-top: 2.5rem; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 6px; background: var(--bg-raised); }
.theme-color-panel-heading { align-items: center; margin-bottom: 1.5rem; }
.theme-color-panel-heading h2 { margin: .4rem 0 0; font-size: 1.5rem; font-weight: 800; }
.theme-panel-actions { display: flex; align-items: center; gap: 1rem; }
.theme-live-indicator { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .75rem; }
.theme-live-indicator > span { width: 7px; height: 7px; border-radius: 50%; background: #83d8a0; box-shadow: 0 0 10px rgb(131 216 160 / 55%); }
.theme-copy { min-height: 40px; padding: .6rem .85rem; font-size: .76rem; }
.theme-color-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.theme-color-field { display: grid; gap: .5rem; min-width: 0; padding: .85rem; border: 1px solid var(--line); border-radius: 4px; background: color-mix(in srgb, var(--bg) 62%, transparent); }
.theme-color-label { color: var(--muted); font-size: .75rem; font-weight: 600; }
.theme-color-control { display: flex; align-items: center; gap: .65rem; }
.theme-color-control input { width: 40px; height: 34px; flex: 0 0 40px; padding: 2px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); cursor: pointer; }
.theme-color-control code { color: var(--text); font-size: .75rem; }

@media (max-width: 991.98px) {
    .hero-inner { min-height: 570px; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .hero-copy h1 { font-size: clamp(3.35rem, 6.6vw, 5.2rem); }
    .hero-art { width: 100%; }
    .teaching-grid, .contact-columns { gap: 3rem; }
    .quote-inner { grid-template-columns: 55px 1fr; }
    .quote-aside { grid-column: 2; justify-self: start; padding: 0 0 1.5rem; }
    .theme-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .header-inner { min-height: 72px; flex-wrap: nowrap; gap: .7rem; padding-top: .7rem; padding-bottom: .7rem; }
    .menu-toggle { display: flex; width: 44px; height: 44px; flex: 0 0 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 50%; color: var(--accent); background: transparent; cursor: pointer; }
    .menu-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
    .site-nav { position: absolute; z-index: 5; top: calc(100% - 1px); right: 0; left: 0; display: none; width: 100%; align-items: stretch; flex-direction: column; gap: 0; padding: .5rem 1rem 1rem; border: 1px solid var(--line); border-top: 0; background: var(--bg-raised); box-shadow: 0 16px 28px rgb(0 0 0 / 25%); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: .9rem .35rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
    .site-nav .nav-contact { align-self: flex-start; margin-top: .75rem; padding: .58rem .9rem; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
    .hero-inner { min-height: 0; grid-template-columns: 1fr; padding-top: 4rem; padding-bottom: 2rem; }
    .contact-intro { padding-top: 4rem; }
    .theme-editor-hero { padding-top: 4rem; }
    .hero-art { width: min(100%, 440px); margin: -.25rem auto 0; justify-self: center; }
    .hero-copy h1 { font-size: clamp(3.15rem, 11vw, 5rem); }
    .hero-baseline .baseline-inner { min-height: 55px; }
    .baseline-center { display: none; }
    .section-heading, .contact-cta-inner { align-items: start; flex-direction: column; }
    .section-heading > p { max-width: 520px; }
    .teaching-grid, .contact-columns { grid-template-columns: 1fr; }
    .teaching-intro { max-width: 570px; }
    .quote-inner { min-height: 200px; }
    .cta-right { max-width: 500px; }
    .theme-preset-columns { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .brand-name { font-size: .68rem; }
    .brand-name small { font-size: .48rem; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .button { justify-content: space-between; }
    .hero-signoff { margin-top: 2rem; }
    .baseline-inner { font-size: .5rem; letter-spacing: .08em; }
    .section { padding: 4.5rem 0; }
    .section-heading h2, .teaching-intro h2 { font-size: 3rem; }
    .video-meta { align-items: flex-start; flex-direction: column; }
    .teaching-item { grid-template-columns: 28px 1fr 24px; gap: .7rem; }
    .quote-inner { grid-template-columns: 38px 1fr; gap: .65rem; }
    .quote-mark { padding-top: 2rem; font-size: 4.7rem; }
    .quote-inner p { font-size: 1.25rem; }
    .footer-inner { min-height: 86px; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding-top: 1rem; padding-bottom: 1rem; }
    .footer-inner > span:nth-child(2) { order: 3; width: 100%; }
    .theme-editor-heading, .theme-color-panel-heading { align-items: flex-start; flex-direction: column; }
    .theme-editor-actions { width: 100%; flex-direction: column; }
    .theme-panel-actions { width: 100%; justify-content: space-between; }
    .theme-color-grid { grid-template-columns: 1fr; }
    .admin-month-nav { gap: .4rem; }
    .admin-month-nav .button { min-height: 44px; gap: .4rem; padding: .5rem .7rem; font-size: .8rem; }
    .admin-month-title { min-width: 0; font-size: 1rem; }
}

@media (max-width: 359.98px) {
    .contact-intro-inner h1 { font-size: 2.6rem; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.admin-section-title { margin: 2rem 0 1rem; }
.admin-payer-summary { margin-bottom: 1.5rem; }
.admin-payer-summary p { margin: 0 0 .5rem; }
.admin-payer-summary p:last-child { margin-bottom: 0; }
.invoice-line-edit { padding: 1rem 1.25rem; }
.invoice-line-fields { display: grid; flex: 1 1 100%; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1fr) 2.75rem; gap: .35rem .75rem; min-width: 0; align-items: end; }
.invoice-line-fields .form-field { margin-bottom: 0; min-width: 0; }
.billing-entry-fieldset { min-width: 0; padding: 0; border: 0; }
.invoice-price-field { position: relative; }
.invoice-price-basis { position: absolute; top: 100%; left: 0; margin-top: .1rem; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.invoice-line-fields > .invoice-discount-fields, .invoice-line-fields > .invoice-line-summary { margin-top: 1.1rem; }
.invoice-discount-toggle { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 49px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 1.1rem; cursor: pointer; }
.invoice-discount-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.invoice-discount-fields { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: end; gap: .35rem .75rem; padding: .75rem 0; border-left: 2px solid var(--accent); background: var(--bg-soft); }
.invoice-discount-fields > .form-field:first-child { grid-column: 1 / 3; padding-left: .75rem; }
.invoice-discount-remove { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.invoice-discount-remove:hover { color: var(--accent); }
.invoice-discount-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.no-spinner { appearance: textfield; -moz-appearance: textfield; }
.no-spinner::-webkit-outer-spin-button, .no-spinner::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.invoice-line-summary { display: flex; grid-column: 1 / -1; align-items: baseline; justify-content: space-between; gap: .75rem; color: var(--muted); font-size: .85rem; }
.invoice-line-summary strong { margin-left: auto; color: var(--text); text-align: right; }
.invoice-line-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.invoice-line-actions .button { min-height: 49px; padding-block: .8rem; }
.invoice-line-readonly { display: flex; flex: 1 1 16rem; flex-direction: column; gap: .2rem; min-width: 0; padding: 1rem 1.25rem; overflow-wrap: anywhere; }
.invoice-line-readonly span { color: var(--muted); font-size: .82rem; }
.admin-list-item > .button { margin: .5rem 1.25rem .5rem 0; }
.invoice-totals { margin-top: 1.5rem; }
.contact-form-card + .admin-list, .contact-form-card + .admin-empty { margin-top: 1.5rem; }
@media (max-width: 760px) {
    .admin-list-search { flex-basis: 100%; width: 100%; margin-left: 0; }
    .invoice-line-fields { grid-template-columns: 1fr; gap: .75rem; align-items: stretch; }
    .invoice-discount-fields { grid-template-columns: 1fr auto; padding-right: .75rem; }
    .invoice-discount-fields > .form-field:first-child { grid-column: 1 / -1; }
    .invoice-line-summary { align-items: flex-start; flex-direction: column; }
    .invoice-line-summary strong { margin-left: 0; align-self: flex-end; }
}
