:root {
  --green: #04cd00;
  --green-dark: #03ae00;
  --green-soft: #eaffea;
  --ink: #111827;
  --muted: #627066;
  --paper: #f7f9f6;
  --white: #ffffff;
  --line: #dfe6df;
  --danger: #c43232;
  --shadow: 0 18px 48px rgba(14, 37, 22, .09);
  --radius: 22px;
  --container: 1180px;
  --header: 86px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "Helvetica Neue", Arial, sans-serif; line-height: 1.55; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 100px 0; }
.section-muted { width: 100%; max-width: none; background: #eef2ed; }
.page-main { padding-top: var(--header); min-height: 70vh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-inline: max(24px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; width: max-content; align-items: center; gap: 10px; color: var(--green-dark); font-size: 20px; font-weight: 900; letter-spacing: -.045em; line-height: .87; text-decoration: none; text-transform: uppercase; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand small { font-size: 10px; letter-spacing: .22em; }
.brand-symbol { position: relative; width: 39px; height: 42px; display: block; border: 3px solid currentColor; border-radius: 50% 50% 12px 12px; transform: rotate(45deg); }
.brand-symbol span { position: absolute; inset: 9px; border: 2px solid currentColor; border-radius: 50%; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { position: relative; padding: 8px 0; color: #4c5950; font-size: 14px; font-weight: 700; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover, .main-nav a.is-active { color: var(--green-dark); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.cart-link { color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.cart-link span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; padding: 0 6px; border-radius: 20px; background: var(--green); color: var(--white); }
.user-chip { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.admin-link { color: var(--green-dark); font-size: 13px; font-weight: 800; }
.link-button { padding: 6px; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; }
.menu-toggle > span { display: block; height: 2px; margin: 5px 0; background: var(--ink); transition: .2s ease; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--green); border-radius: 10px; background: var(--green); color: var(--white); font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 10px 26px rgba(4, 205, 0, .2); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.button-small { min-height: 38px; padding-inline: 14px; font-size: 12px; }
.button-outline { background: transparent; color: var(--green-dark); }
.button-outline:hover { color: var(--white); }
.button-light { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }
.button-light:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.button-dark { border-color: var(--ink); background: var(--ink); }
.button-dark:hover { border-color: #273326; background: #273326; }
.text-link { color: var(--green-dark); font-weight: 800; text-underline-offset: 5px; }

.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--green-dark); font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.kicker span { width: 34px; height: 2px; background: currentColor; }
.section-heading { margin-bottom: 48px; }
.section-heading h2 { margin: 0; font-size: clamp(37px, 5vw, 62px); letter-spacing: -.055em; line-height: 1; }
.section-heading.centered { text-align: center; }
.section-heading.centered .kicker { justify-content: center; }
.row-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }

.home-hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(125deg, rgba(3,28,11,.94), rgba(5,87,20,.78)), linear-gradient(45deg, #101c12, #04cd00); color: var(--white); }
.home-hero-grid { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, black, transparent 85%); }
.hero-content { position: relative; z-index: 1; padding: calc(var(--header) + 70px) 0 90px; }
.home-hero .kicker { color: #8dff8a; }
.home-hero h1 { max-width: 800px; margin: 0; font-size: clamp(72px, 12vw, 152px); font-weight: 900; letter-spacing: -.085em; line-height: .77; text-transform: uppercase; }
.home-hero h1 em { color: var(--green); font-style: normal; }
.home-hero .hero-content > p:not(.kicker) { max-width: 680px; margin: 40px 0 0; color: rgba(255,255,255,.8); font-size: clamp(18px, 2.2vw, 25px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-badge { position: absolute; right: max(24px, calc((100vw - var(--container)) / 2)); bottom: 70px; z-index: 1; width: 170px; height: 170px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.5); border-radius: 50%; color: var(--white); text-align: center; text-transform: uppercase; }
.hero-badge span { font-size: 10px; letter-spacing: .18em; }
.hero-badge b { color: var(--green); font-size: 56px; line-height: .7; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { min-height: 350px; display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 0 rgba(17,24,39,.02); transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.feature-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--green-soft); color: var(--green-dark); font-size: 34px; }
.feature-card h3 { margin: 62px 0 10px; font-size: 25px; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-card a { margin-top: auto; padding-top: 25px; color: var(--green-dark); font-size: 13px; font-weight: 800; }

.community-banner { padding: 100px 0; background: #0f1812; color: var(--white); }
.split-layout { display: grid; grid-template-columns: .75fr 1fr; gap: clamp(55px, 9vw, 120px); align-items: center; }
.poster-frame { position: relative; }
.poster-frame::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--green); }
.poster-frame img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-layout h2 { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: .95; letter-spacing: -.06em; }
.split-layout > div:last-child > p:not(.kicker) { color: #bcc8bf; font-size: 19px; }
.check-list { display: grid; gap: 13px; margin: 30px 0 38px; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 12px; }
.check-list li::before { content: "✓"; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 900; }

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card a { height: 100%; display: block; overflow: hidden; border-radius: var(--radius); background: var(--white); text-decoration: none; box-shadow: 0 1px 0 rgba(17,24,39,.06); transition: transform .2s ease, box-shadow .2s ease; }
.event-card a:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.event-card-visual { height: 210px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #062b0d, var(--green)); color: var(--white); font-size: 54px; }
.event-card-visual img { width: 100%; height: 100%; object-fit: cover; }
.event-card-content { padding: 26px; }
.event-card-content p { margin: 0 0 7px; color: var(--green-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.event-card-content h3 { margin: 0 0 10px; font-size: 25px; }
.event-card-content span { color: var(--muted); }

.cta-section { padding: 110px 0; background: var(--green); }
.cta-section .kicker { color: var(--ink); }
.cta-section h2 { margin: 0; font-size: clamp(52px, 8vw, 100px); line-height: .88; letter-spacing: -.075em; }
.cta-section p:not(.kicker) { max-width: 620px; margin: 30px 0; font-size: 20px; }

.page-hero { padding: 100px 0 90px; background: var(--white); overflow: hidden; }
.page-hero h1 { margin: 0; font-size: clamp(72px, 12vw, 150px); letter-spacing: -.085em; line-height: .78; text-transform: uppercase; }
.page-hero p:not(.kicker) { max-width: 680px; margin: 34px 0 0; color: var(--muted); font-size: 21px; }
.page-hero-community { background: linear-gradient(135deg, var(--white) 60%, var(--green-soft)); }
.page-hero-shop { background: linear-gradient(135deg, #101a12 58%, #075912); color: var(--white); }
.page-hero-shop .kicker { color: #8dff8a; }
.page-hero-shop p:not(.kicker) { color: #c5d1c7; }
.page-hero-events { background: var(--green); }
.page-hero-events .kicker { color: var(--ink); }
.page-hero-events p:not(.kicker) { color: #163718; }
.page-hero-admin { padding-block: 70px; background: #172119; color: var(--white); }
.page-hero-admin .kicker { color: #8dff8a; }
.page-hero-admin h1 { font-size: clamp(58px, 9vw, 110px); }
.page-hero-admin p:not(.kicker) { color: #c5d1c7; }

.community-layout { display: grid; grid-template-columns: 310px 1fr; gap: 56px; align-items: start; }
.community-layout aside { position: sticky; top: calc(var(--header) + 30px); }
.sidebar-heading, .list-heading, .admin-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.sidebar-heading h2, .list-heading h2 { margin: 0; font-size: 28px; }
.sidebar-heading a { color: var(--green-dark); font-size: 13px; font-weight: 800; }
.category-list { display: grid; gap: 10px; }
.category-card { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); text-decoration: none; }
.category-card:hover, .category-card.is-active { border-color: var(--green); background: var(--green-soft); }
.category-card > span { color: var(--green-dark); font: 800 11px/1.5 monospace; }
.category-card h3 { margin: 0 0 3px; font-size: 16px; }
.category-card p { margin: 0; color: var(--muted); font-size: 12px; }
.category-card b { color: var(--muted); font-size: 10px; white-space: nowrap; }
.auth-callout { margin-top: 20px; padding: 20px; border-radius: 13px; background: #172119; color: var(--white); }
.auth-callout p { margin-top: 0; color: #c5d1c7; }
.topic-list { display: grid; border-top: 1px solid var(--line); }
.topic-row { display: grid; grid-template-columns: 1fr auto; gap: 25px; padding: 27px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.topic-row:hover h3 { color: var(--green-dark); }
.topic-row > div > span { color: var(--green-dark); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.topic-row h3 { margin: 6px 0; font-size: 24px; transition: color .2s ease; }
.topic-row p { max-width: 650px; margin: 0; color: var(--muted); }
.topic-meta { min-width: 140px; display: flex; align-items: flex-end; flex-direction: column; justify-content: center; gap: 6px; color: var(--muted); font-size: 11px; text-align: right; }
.topic-meta b { color: var(--ink); }
.form-panel { margin-top: 45px; }
.topic-detail { max-width: 880px; margin-top: 35px; }
.topic-detail h1 { margin: 5px 0 15px; font-size: clamp(42px, 7vw, 82px); line-height: .96; letter-spacing: -.06em; }
.topic-author { color: var(--muted); }
.topic-body { margin-top: 35px; padding: 35px; border-radius: var(--radius); background: var(--white); font-size: 19px; box-shadow: var(--shadow); }
.back-link { color: var(--green-dark); font-weight: 800; text-underline-offset: 4px; }
.replies { max-width: 880px; margin: 70px 0 40px; }
.replies h2 { font-size: 32px; }
.reply { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 25px 0; border-top: 1px solid var(--line); }
.reply .avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 900; }
.reply header { display: flex; justify-content: space-between; gap: 20px; }
.reply time { color: var(--muted); font-size: 12px; }
.reply p { margin-bottom: 0; }

.panel { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.panel h2, .panel h3 { margin-top: 0; }
.form-stack { display: grid; gap: 18px; }
.form-stack label { display: grid; gap: 7px; color: #34413a; font-size: 13px; font-weight: 800; }
.form-stack input, .form-stack select, .form-stack textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cdd7ce; border-radius: 9px; background: var(--white); color: var(--ink); font-weight: 500; outline: none; }
.form-stack textarea { resize: vertical; }
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(4,205,0,.13); }
.form-stack small { color: var(--muted); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-separator { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.form-separator::before, .form-separator::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.form-message { display: none; margin: 0; padding: 11px 13px; border-radius: 8px; background: #fff0f0; color: #a12828; font-size: 13px; }
.form-message.is-visible { display: block; }
.form-message.is-success { background: var(--green-soft); color: #096b08; }
.check-field { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.check-field input { width: 20px; min-height: 20px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.product-card { overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 0 rgba(17,24,39,.06); }
.product-image { height: 310px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg, #e4ffe4, #b9f5b8); color: var(--green-dark); font-size: 64px; font-weight: 900; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-copy { padding: 25px; }
.product-copy > p { margin: 0 0 5px; color: var(--green-dark); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.product-copy h2 { margin: 0 0 10px; font-size: 25px; }
.product-copy > div { min-height: 50px; color: var(--muted); }
.product-copy footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 25px; }
.product-copy footer strong { font-size: 22px; }
.cart-section { padding: 100px 0; background: #172119; color: var(--white); scroll-margin-top: var(--header); }
.cart-layout { display: grid; grid-template-columns: 1fr .75fr; gap: 70px; align-items: start; }
.cart-layout > div > h2 { margin: 0 0 30px; font-size: 58px; }
.cart-items { display: grid; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.cart-row > div { display: flex; flex-direction: column; }
.cart-row > div:last-child { align-items: center; flex-direction: row; gap: 8px; }
.cart-row span { color: #b7c5ba; font-size: 13px; }
.cart-row button { min-width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; background: transparent; color: var(--white); }
.cart-row button.remove { width: auto; margin-left: 8px; border: 0; color: #ff9999; font-size: 11px; text-decoration: underline; }
.cart-summary { display: flex; justify-content: space-between; padding: 27px 0; font-size: 22px; }
.cart-layout .panel { color: var(--ink); }

.event-list { display: grid; border-top: 1px solid var(--line); }
.event-list-card a { display: grid; grid-template-columns: 120px 1fr 50px; gap: 35px; align-items: center; padding: 34px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .2s ease, background .2s ease; }
.event-list-card a:hover { padding-inline: 20px; background: var(--white); }
.event-date { display: flex; align-items: center; flex-direction: column; color: var(--green-dark); text-align: center; }
.event-date b { font-size: 46px; line-height: 1; }
.event-date span { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.event-info > p:first-child { margin: 0; color: var(--green-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.event-info h2 { margin: 5px 0; font-size: 31px; }
.event-info > span, .event-info > p:last-child { color: var(--muted); }
.event-info > p:last-child { margin-bottom: 0; }
.event-arrow { color: var(--green-dark); font-size: 32px; }

.event-detail-root { padding-top: 65px; }
.event-hero-detail { display: grid; grid-template-columns: 1fr 360px; gap: 70px; align-items: start; margin-top: 45px; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.event-hero-detail h1 { margin: 0 0 28px; font-size: clamp(52px, 9vw, 112px); line-height: .84; letter-spacing: -.075em; }
.event-hero-detail > div > p:last-child { max-width: 720px; color: var(--muted); font-size: 19px; }
.event-hero-detail aside { display: grid; overflow: hidden; border-radius: var(--radius); background: #172119; color: var(--white); }
.event-hero-detail aside div { padding: 25px; border-bottom: 1px solid rgba(255,255,255,.13); }
.event-hero-detail aside div:last-child { border-bottom: 0; }
.event-hero-detail aside small { display: block; margin-bottom: 5px; color: #8dff8a; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.event-media { padding: 80px 0; }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.media-card { overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.media-card iframe, .media-card video { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; background: #000; }
.media-card:has(iframe[src*="instagram"]) iframe { aspect-ratio: 4 / 5; }
.media-card p, .media-card > a { display: block; margin: 0; padding: 16px 20px; }
.media-card > a { color: var(--green-dark); font-size: 13px; font-weight: 800; }
.booking-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 60px; border-radius: var(--radius); background: var(--green-soft); }
.booking-panel h2 { margin: 0; font-size: 50px; letter-spacing: -.05em; }

.auth-page { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header) + 65px) 24px 80px; background: linear-gradient(135deg, #f8fbf7, #dffbdf); }
.auth-card { width: min(480px, 100%); padding: 42px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.auth-card-wide { width: min(620px, 100%); }
.auth-card h1 { margin: 0; font-size: 54px; letter-spacing: -.065em; }
.auth-card > p:not(.kicker):not(.auth-switch) { color: var(--muted); }
.auth-switch { margin: 24px 0 0; text-align: center; }
.auth-switch a { color: var(--green-dark); font-weight: 800; }

.admin-page { background: #f1f4f0; }
.admin-gate-card { max-width: 650px; margin: 0 auto; padding: 40px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.admin-gate-card h2 { margin: 0; font-size: 42px; letter-spacing: -.05em; }
.admin-tabs { position: sticky; top: calc(var(--header) + 10px); z-index: 5; display: flex; gap: 8px; margin-bottom: 60px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.93); backdrop-filter: blur(10px); }
.admin-tabs a { padding: 10px 15px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; }
.admin-tabs a:hover { background: var(--green-soft); color: var(--green-dark); }
.admin-section { padding: 30px 0 100px; scroll-margin-top: 145px; border-bottom: 1px solid var(--line); }
.admin-section:last-child { border-bottom: 0; }
.admin-section-heading h2 { margin: 0; font-size: 48px; letter-spacing: -.055em; }
.admin-two-columns { display: grid; grid-template-columns: 420px 1fr; gap: 35px; align-items: start; }
.admin-list { display: grid; gap: 12px; }
.admin-list-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.admin-list-row h3 { margin: 7px 0 2px; font-size: 21px; }
.admin-list-row p, .admin-list-row small { display: block; margin: 0; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.status { display: inline-block; padding: 4px 8px; border-radius: 20px; background: #eef1ed; color: #647067; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.status-published { background: var(--green-soft); color: #087506; }
.status-draft { background: #fff4d7; color: #8a5a00; }
.danger-button { padding: 8px; border: 0; background: transparent; color: var(--danger); font-size: 11px; font-weight: 800; text-decoration: underline; }
.media-manager { margin: 20px 0 80px; padding: 40px; border: 2px solid var(--green); border-radius: var(--radius); background: var(--green-soft); }
.media-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border-radius: 12px; background: var(--white); }
.media-admin-row div { display: grid; gap: 4px; overflow: hidden; }
.media-admin-row strong { color: var(--green-dark); font-size: 10px; text-transform: uppercase; }
.media-admin-row a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.order-status { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.order-status select { min-width: 145px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }

.empty-state, .loading-state { grid-column: 1 / -1; padding: 55px 25px; border: 1px dashed #bfcac0; border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state > span { color: var(--green); font-size: 48px; }
.empty-state h3 { margin: 8px 0; color: var(--ink); font-size: 25px; }
.empty-state p { margin: 0 auto 20px; max-width: 520px; }
.loading-state { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .48; } }

.legal { max-width: 790px; padding: 90px 0 120px; }
.legal h1 { margin: 0 0 40px; font-size: clamp(58px, 10vw, 100px); letter-spacing: -.07em; }
.legal h2 { margin: 42px 0 8px; font-size: 24px; }
.legal p { color: var(--muted); font-size: 18px; }
.legal a { color: var(--green-dark); font-weight: 700; }
.not-found { min-height: 82svh; display: grid; place-items: center; padding: calc(var(--header) + 50px) 24px 80px; background: var(--green); text-align: center; }
.not-found span { color: rgba(17,24,39,.3); font-size: 22px; font-weight: 900; letter-spacing: .2em; }
.not-found h1 { margin: 12px 0; font-size: clamp(52px, 10vw, 108px); line-height: .86; letter-spacing: -.075em; }

.site-footer { padding: 75px max(24px, calc((100vw - var(--container)) / 2)) 30px; background: #101812; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 70px; padding-bottom: 55px; }
.brand-footer { color: var(--white); }
.footer-grid > div { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
.footer-grid p, .footer-grid span { max-width: 340px; color: #9eaba1; }
.footer-grid strong { color: #8dff8a; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a:not(.brand) { color: #c8d2ca; text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); color: #829086; font-size: 11px; text-transform: uppercase; }
.footer-bottom a { color: inherit; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; z-index: 2; }
  .main-nav { position: fixed; inset: var(--header) 0 auto; display: flex; align-items: stretch; flex-direction: column; gap: 0; padding: 20px 24px 30px; background: var(--white); border-bottom: 1px solid var(--line); transform: translateY(-130%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav a { padding: 14px 0; font-size: 22px; }
  .header-actions { grid-column: 1 / -1; position: fixed; inset: auto 0 0; justify-content: center; padding: 12px; background: var(--white); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
  body.menu-open .header-actions { transform: none; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .feature-grid, .event-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .community-layout { grid-template-columns: 260px 1fr; gap: 32px; }
  .admin-two-columns { grid-template-columns: 1fr; }
  .admin-two-columns > form { max-width: 680px; }
}

@media (max-width: 760px) {
  :root { --header: 74px; }
  .container { width: min(100% - 32px, var(--container)); }
  .section { padding: 75px 0; }
  .site-header { padding-inline: 16px; }
  .brand { font-size: 17px; }
  .brand-symbol { width: 32px; height: 34px; }
  .home-hero { min-height: 700px; }
  .home-hero h1 { font-size: clamp(68px, 21vw, 105px); }
  .home-hero .hero-content { padding-top: 140px; }
  .hero-badge { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .feature-grid, .event-grid, .product-grid, .split-layout, .community-layout, .cart-layout, .event-hero-detail, .booking-panel, .media-grid, .footer-grid { grid-template-columns: 1fr; }
  .community-layout aside { position: static; }
  .feature-card { min-height: 300px; }
  .poster-frame { max-width: 440px; }
  .row-heading { align-items: flex-start; flex-direction: column; }
  .page-hero { padding: 75px 0 65px; }
  .page-hero h1 { font-size: clamp(64px, 20vw, 100px); }
  .topic-row { grid-template-columns: 1fr; }
  .topic-meta { align-items: flex-start; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-layout { gap: 40px; }
  .event-list-card a { grid-template-columns: 76px 1fr; gap: 18px; padding-inline: 0; }
  .event-arrow { display: none; }
  .event-date b { font-size: 35px; }
  .event-info h2 { font-size: 24px; }
  .event-hero-detail { gap: 35px; }
  .booking-panel { gap: 35px; padding: 30px 22px; }
  .auth-card { padding: 30px 22px; }
  .admin-tabs { overflow-x: auto; }
  .admin-list-row { align-items: stretch; flex-direction: column; }
  .row-actions { justify-content: flex-start; }
  .media-manager { padding: 24px 16px; }
  .footer-grid { gap: 35px; }
  .footer-bottom { justify-content: flex-start; }
}

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

/* 2026 experience layer: original identity, richer imagery, themes and preferences */
.brand-logo { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 1px rgba(4,205,0,.32); }
.brand-footer .brand-logo { width: 62px; height: 62px; }
.site-header { grid-template-columns: minmax(220px, 1fr) auto minmax(390px, 1fr); }
.header-actions { gap: 8px; }
.preference-controls { display: inline-flex; align-items: center; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--white) 82%, transparent); }
.utility-button { min-width: 34px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.utility-button:hover { background: var(--green-soft); color: var(--green-dark); }
.theme-button { font-size: 16px; }

.preference-welcome { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(3, 10, 6, .72); backdrop-filter: blur(18px); }
.preference-card { width: min(560px, 100%); max-height: calc(100svh - 48px); overflow-y: auto; padding: clamp(28px, 5vw, 48px); border: 1px solid color-mix(in srgb, var(--line) 75%, var(--green)); border-radius: 30px; background: var(--white); color: var(--ink); box-shadow: 0 40px 120px rgba(0,0,0,.35); }
.preference-card > img { float: right; margin: -12px -8px 12px 20px; border-radius: 20px; }
.preference-card h2 { max-width: 420px; margin: 0; font-size: clamp(35px, 7vw, 54px); line-height: .94; letter-spacing: -.06em; }
.preference-card > p:not(.kicker) { margin: 20px 0 30px; color: var(--muted); }
.preference-group { display: grid; gap: 10px; margin-top: 18px; }
.preference-group > strong { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.segmented button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 800; }
.segmented button:hover, .segmented button.is-selected { background: var(--white); color: var(--green-dark); box-shadow: 0 5px 18px rgba(0,0,0,.08); }
.preference-continue { width: 100%; margin-top: 28px; }

.home-hero { min-height: 850px; background: #07110b; }
.home-hero-grid { opacity: .18; background-size: 72px 72px; mask-image: linear-gradient(90deg, #000 5%, transparent 76%); }
.hero-glow { position: absolute; width: 700px; height: 700px; right: -180px; top: 40px; border-radius: 50%; background: radial-gradient(circle, rgba(4,205,0,.33), transparent 65%); filter: blur(20px); }
.hero-layout { position: relative; z-index: 2; min-height: 850px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding-top: var(--header); }
.home-hero .hero-content { padding: 80px 0; }
.home-hero h1 { max-width: 760px; font-size: clamp(72px, 9vw, 132px); }
.home-hero .hero-content > p:not(.kicker) { max-width: 590px; }
.hero-visual { position: relative; min-height: 630px; }
.hero-photo { position: absolute; margin: 0; overflow: hidden; border-radius: 28px; background: #102116; box-shadow: 0 35px 90px rgba(0,0,0,.4); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { inset: 24px 0 20px 70px; transform: rotate(2.4deg); }
.hero-photo-main img { object-position: center 35%; }
.hero-photo-main figcaption { position: absolute; left: 18px; bottom: 18px; padding: 9px 12px; border-radius: 9px; background: rgba(4, 16, 8, .76); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; backdrop-filter: blur(10px); }
.hero-photo-float { width: 46%; height: 31%; left: 0; bottom: 0; border: 8px solid #07110b; transform: rotate(-6deg); animation: hover-card 7s ease-in-out infinite; }
.hero-logo { position: absolute; width: 128px; height: 128px; right: -22px; top: 0; padding: 8px; border: 1px solid rgba(141,255,138,.46); border-radius: 36px; background: rgba(4,16,8,.75); box-shadow: 0 20px 50px rgba(0,0,0,.35); transform: rotate(8deg); backdrop-filter: blur(14px); }
.hero-logo img { width: 100%; height: 100%; border-radius: 27px; }
@keyframes hover-card { 50% { transform: translateY(-12px) rotate(-4deg); } }

.manifesto-strip { position: relative; z-index: 3; margin-top: -1px; padding: 36px 0; background: var(--green); color: #07110b; }
.manifesto-strip .container { display: grid; grid-template-columns: .55fr 1fr 1.1fr; gap: 38px; align-items: center; }
.manifesto-strip p { margin: 0; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.manifesto-strip h2 { margin: 0; font-size: clamp(25px, 3.5vw, 42px); line-height: .95; letter-spacing: -.05em; }
.manifesto-strip span { font-size: 15px; }

.participation-section .section-heading { max-width: 850px; }
.feature-card { position: relative; overflow: hidden; isolation: isolate; }
.feature-card::before { content: ""; position: absolute; z-index: -1; width: 190px; height: 190px; right: -90px; top: -90px; border-radius: 50%; background: var(--green-soft); transition: transform .35s ease; }
.feature-card:hover::before { transform: scale(1.5); }
.feature-number { position: absolute; right: 28px; top: 25px; color: var(--line); font-size: 46px; font-weight: 900; letter-spacing: -.08em; }
.feature-events { background: var(--green); border-color: var(--green); color: #08130a; }
.feature-events .feature-icon { background: #07110b; color: var(--green); }
.feature-events p, .feature-events a { color: #123516; }
.feature-events::before { background: rgba(255,255,255,.2); }
.feature-events .feature-number { color: rgba(7,17,11,.18); }
.feature-shop { background: linear-gradient(145deg, var(--white), color-mix(in srgb, var(--green-soft) 52%, var(--white))); }

.community-banner { background: #07110b; }
.community-photo img:first-child { aspect-ratio: 4 / 5; object-position: 58% center; }
.community-photo .photo-logo { position: absolute; width: 120px; height: 120px; right: 24px; bottom: 24px; padding: 5px; border-radius: 28px; background: rgba(4,16,8,.84); box-shadow: 0 20px 50px rgba(0,0,0,.35); }

.event-card-visual { position: relative; height: 255px; }
.event-card-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(4,16,8,.26)); pointer-events: none; }
.event-card-visual img { transition: transform .5s ease; }
.event-card a:hover .event-card-visual img { transform: scale(1.045); }
.event-list-card a { grid-template-columns: 190px 92px 1fr 50px; }
.event-list-media { height: 132px; overflow: hidden; border-radius: 17px; background: linear-gradient(145deg, #062b0d, var(--green)); }
.event-list-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.event-list-card a:hover .event-list-media img { transform: scale(1.06); }
.event-cover { height: min(56vw, 620px); margin: 38px 0 0; overflow: hidden; border-radius: 30px; background: #102116; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-cover + .event-hero-detail { margin-top: 58px; }

.page-hero { position: relative; }
.page-hero::after { content: ""; position: absolute; width: 440px; height: 440px; right: -140px; top: -170px; border: 1px solid color-mix(in srgb, var(--green) 55%, transparent); border-radius: 50%; box-shadow: 0 0 0 70px color-mix(in srgb, var(--green) 6%, transparent), 0 0 0 140px color-mix(in srgb, var(--green) 4%, transparent); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }

[data-theme="dark"] { color-scheme: dark; --ink: #f1f7f2; --muted: #a5b5aa; --paper: #07110b; --white: #0d1a12; --line: #283a2d; --green-soft: #123a1a; --green-dark: #36e333; --shadow: 0 20px 60px rgba(0,0,0,.28); }
[data-theme="dark"] body { background: var(--paper); }
[data-theme="dark"] .site-header { background: rgba(7,17,11,.92); border-bottom-color: rgba(255,255,255,.09); }
[data-theme="dark"] .main-nav a { color: #b7c6bb; }
[data-theme="dark"] .section-muted, [data-theme="dark"] .admin-page { background: #09150d; }
[data-theme="dark"] .page-hero, [data-theme="dark"] .page-hero-community { background: linear-gradient(135deg, #0d1a12 60%, #123a1a); }
[data-theme="dark"] .page-hero-events { background: var(--green); color: #07110b; }
[data-theme="dark"] .page-hero-shop, [data-theme="dark"] .page-hero-admin { background: linear-gradient(135deg, #07110b, #0d3415); }
[data-theme="dark"] .form-stack label { color: #c5d2c8; }
[data-theme="dark"] .form-stack input, [data-theme="dark"] .form-stack select, [data-theme="dark"] .form-stack textarea { border-color: #33483a; background: #09140d; color: var(--ink); }
[data-theme="dark"] .auth-page { background: radial-gradient(circle at 85% 12%, #173f20, #07110b 55%); }
[data-theme="dark"] .auth-callout, [data-theme="dark"] .cart-section, [data-theme="dark"] .event-hero-detail aside { background: #020804; }
[data-theme="dark"] .event-list-card a:hover { background: #0d1a12; }
[data-theme="dark"] .admin-tabs { background: rgba(13,26,18,.94); }
[data-theme="dark"] .status { background: #16241a; }
[data-theme="dark"] .media-manager { background: #0d2613; }
[data-theme="dark"] .empty-state, [data-theme="dark"] .loading-state { border-color: #354a3a; }
[data-theme="dark"] .button-dark { border-color: #07110b; background: #07110b; color: #fff; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 210px auto 1fr; gap: 15px; }
  .main-nav { gap: 20px; }
  .header-actions .button-outline { display: none; }
}

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  [data-theme="dark"] .main-nav, [data-theme="dark"] .header-actions { background: #07110b; }
  .hero-layout { grid-template-columns: 1fr .78fr; gap: 30px; }
  .hero-photo-main { left: 35px; }
  .manifesto-strip .container { grid-template-columns: .55fr 1fr; }
  .manifesto-strip span { grid-column: 1 / -1; }
  .event-list-card a { grid-template-columns: 150px 80px 1fr 36px; gap: 22px; }
}

@media (max-width: 760px) {
  .brand-logo { width: 42px; height: 42px; border-radius: 11px; }
  .home-hero, .hero-layout { min-height: auto; }
  .hero-layout { grid-template-columns: 1fr; padding-top: calc(var(--header) + 30px); padding-bottom: 65px; }
  .home-hero .hero-content { padding: 40px 0 10px; }
  .home-hero h1 { font-size: clamp(62px, 19vw, 92px); }
  .hero-visual { min-height: 475px; }
  .hero-photo-main { inset: 20px 10px 30px 46px; }
  .hero-photo-float { width: 49%; height: 32%; }
  .hero-logo { width: 92px; height: 92px; right: 0; border-radius: 25px; }
  .hero-logo img { border-radius: 19px; }
  .manifesto-strip .container { grid-template-columns: 1fr; gap: 12px; }
  .manifesto-strip span { grid-column: auto; }
  .feature-card { min-height: 330px; }
  .community-photo .photo-logo { width: 94px; height: 94px; }
  .event-list-card a { grid-template-columns: 92px 1fr; gap: 18px; }
  .event-list-media { height: 92px; }
  .event-date { display: none; }
  .event-cover { height: 64vw; min-height: 280px; border-radius: 20px; }
  .preference-welcome { padding: 14px; }
  .preference-card { max-height: calc(100svh - 28px); padding: 27px 22px; border-radius: 23px; }
  .preference-card > img { width: 58px; height: 58px; }
  .header-actions .preference-controls { flex-shrink: 0; }
}

/* Stability pass: collision-free hero and genuinely distinct light theme */
:root[data-theme="light"] .home-hero {
  background: linear-gradient(135deg, #f8fff7 0%, #e8fce6 58%, #c9f7c6 100%);
  color: var(--ink);
}
:root[data-theme="light"] .home-hero-grid {
  opacity: .36;
  background-image: linear-gradient(rgba(3, 88, 16, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(3, 88, 16, .10) 1px, transparent 1px);
}
:root[data-theme="light"] .hero-glow { background: radial-gradient(circle, rgba(4,205,0,.26), transparent 67%); }
:root[data-theme="light"] .home-hero .kicker { color: var(--green-dark); }
:root[data-theme="light"] .home-hero .hero-content > p:not(.kicker) { color: var(--muted); }
:root[data-theme="light"] .home-hero .button-light { border-color: var(--ink); background: transparent; color: var(--ink); }
:root[data-theme="light"] .home-hero .button-light:hover { background: var(--ink); color: #fff; }
:root[data-theme="light"] .hero-logo { border-color: rgba(4,205,0,.45); background: #fff; }
:root[data-theme="light"] .community-banner { background: #edf6ed; color: var(--ink); }
:root[data-theme="light"] .community-banner .split-layout > div:last-child > p:not(.kicker) { color: var(--muted); }
:root[data-theme="light"] .cart-section { background: #e8f2e9; color: var(--ink); }
:root[data-theme="light"] .cart-row { border-color: var(--line); }
:root[data-theme="light"] .cart-row span { color: var(--muted); }
:root[data-theme="light"] .cart-row button { border-color: var(--line); color: var(--ink); }
:root[data-theme="light"] .page-hero-shop, :root[data-theme="light"] .page-hero-admin { background: linear-gradient(135deg, #f8fff7 55%, #d9f7d7); color: var(--ink); }
:root[data-theme="light"] .page-hero-shop .kicker, :root[data-theme="light"] .page-hero-admin .kicker { color: var(--green-dark); }
:root[data-theme="light"] .page-hero-shop p:not(.kicker), :root[data-theme="light"] .page-hero-admin p:not(.kicker) { color: var(--muted); }
:root[data-theme="light"] .auth-callout { background: var(--green-soft); color: var(--ink); }
:root[data-theme="light"] .auth-callout p { color: var(--muted); }
:root[data-theme="light"] .event-hero-detail aside { background: var(--green-soft); color: var(--ink); }
:root[data-theme="light"] .event-hero-detail aside div { border-color: var(--line); }
:root[data-theme="light"] .event-hero-detail aside small { color: var(--green-dark); }
:root[data-theme="light"] .site-footer { background: #e7f0e8; color: var(--ink); }
:root[data-theme="light"] .brand-footer { color: var(--ink); }
:root[data-theme="light"] .footer-grid p, :root[data-theme="light"] .footer-grid span, :root[data-theme="light"] .footer-grid a:not(.brand) { color: var(--muted); }
:root[data-theme="light"] .footer-grid strong { color: var(--green-dark); }
:root[data-theme="light"] .footer-grid a:hover { color: var(--ink); }
:root[data-theme="light"] .footer-bottom { border-color: var(--line); color: var(--muted); }

:root[data-theme="dark"] .home-hero, :root[data-theme="dark"] .community-banner, :root[data-theme="dark"] .cart-section, :root[data-theme="dark"] .site-footer { background: #07110b; color: #f1f7f2; }
:root[data-theme="dark"] .home-hero .hero-content > p:not(.kicker) { color: rgba(255,255,255,.78); }
:root[data-theme="dark"] .hero-logo { background: rgba(4,16,8,.88); }
:root[data-theme="dark"] .page-hero-shop, :root[data-theme="dark"] .page-hero-admin { color: #f1f7f2; }
:root[data-theme="dark"] .footer-grid p, :root[data-theme="dark"] .footer-grid span { color: #9eaba1; }
:root[data-theme="dark"] .footer-grid a:not(.brand) { color: #c8d2ca; }

.hero-visual {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}
.hero-photo { position: relative; inset: auto; width: auto; height: auto; margin: 0; transform: none; animation: none; }
.hero-photo-main { grid-row: 1 / 3; aspect-ratio: 4 / 5; }
.hero-photo-float { grid-column: 2; grid-row: 1; align-self: end; aspect-ratio: 1 / 1; border: 0; }
.hero-logo { position: relative; inset: auto; grid-column: 2; grid-row: 2; width: 118px; height: 118px; justify-self: center; padding: 7px; transform: none; }
.hero-layout > *, .split-layout > *, .community-layout > *, .cart-layout > *, .booking-panel > * { min-width: 0; }
.community-photo .photo-logo { display: none; }
.home-hero h1, .page-hero h1, .event-hero-detail h1, .cta-section h2 { overflow-wrap: anywhere; }

@media (max-width: 1050px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); }
  .hero-visual { grid-template-columns: minmax(0, 1fr) 105px; gap: 12px; }
  .hero-logo { width: 92px; height: 92px; border-radius: 24px; }
  .hero-logo img { border-radius: 18px; }
}

@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .container { width: calc(100% - 32px); max-width: var(--container); }
  .site-header { height: var(--header); }
  .header-actions { max-width: 100vw; overflow-x: auto; justify-content: flex-start; padding-inline: 16px; }
  .header-actions > * { flex: 0 0 auto; }
  .main-nav { max-height: calc(100svh - var(--header)); overflow-y: auto; }
  .home-hero { min-height: 0; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: calc(var(--header) + 22px); padding-bottom: 48px; }
  .home-hero .hero-content { padding: 28px 0 0; }
  .home-hero h1 { max-width: 100%; font-size: clamp(52px, 16vw, 78px); line-height: .82; letter-spacing: -.075em; }
  .home-hero .hero-content > p:not(.kicker) { margin-top: 26px; font-size: 17px; }
  .hero-visual { min-height: 0; grid-template-columns: minmax(0, 1fr) 92px; grid-template-rows: auto auto; gap: 10px; }
  .hero-photo-main { grid-row: 1 / 3; min-height: 0; aspect-ratio: 4 / 5; border-radius: 20px; }
  .hero-photo-float { aspect-ratio: 1 / 1; border-radius: 16px; }
  .hero-logo { width: 82px; height: 82px; padding: 5px; border-radius: 20px; }
  .hero-logo img { border-radius: 15px; }
  .hero-photo-main figcaption { left: 10px; right: 10px; bottom: 10px; padding: 7px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .manifesto-strip { padding: 28px 0; }
  .manifesto-strip h2 { font-size: 30px; }
  .section-heading h2 { font-size: clamp(35px, 11vw, 52px); overflow-wrap: anywhere; }
  .page-hero h1 { max-width: 100%; font-size: clamp(52px, 16vw, 78px); line-height: .86; overflow-wrap: anywhere; }
  .page-hero p:not(.kicker) { font-size: 18px; }
  .feature-card { min-height: 0; padding: 28px; }
  .feature-card h3 { margin-top: 46px; }
  .split-layout { gap: 42px; }
  .community-photo .photo-logo { width: 76px; height: 76px; right: 14px; bottom: 14px; border-radius: 20px; }
  .cta-section h2 { font-size: clamp(46px, 14vw, 70px); }
  .event-info { min-width: 0; }
  .event-info h2, .event-info p, .event-info span { overflow-wrap: anywhere; }
  .topic-row, .category-card, .cart-row, .reply header { min-width: 0; }
  .cart-row { align-items: flex-start; flex-direction: column; }
  .cart-row > div:last-child { width: 100%; flex-wrap: wrap; }
  .booking-panel h2 { font-size: 40px; }
  .admin-section-heading { align-items: flex-start; flex-direction: column; }
  .preference-card h2 { font-size: clamp(34px, 10vw, 48px); overflow-wrap: anywhere; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 24px); }
  .site-header { padding-inline: 12px; }
  .brand > span:last-child { display: none; }
  .home-hero h1, .page-hero h1 { font-size: clamp(48px, 15vw, 62px); }
  .hero-visual { grid-template-columns: minmax(0, 1fr) 76px; }
  .hero-logo { width: 68px; height: 68px; border-radius: 17px; }
  .hero-photo-float { border-radius: 13px; }
  .page-hero { padding-block: 58px; }
  .auth-card { padding-inline: 18px; }
  .panel { padding: 22px 18px; }
  .segmented { grid-template-columns: 1fr; }
}

/* Layout safety pass: readable typography and a complete mobile navigation drawer */
.header-drawer { display: contents; }
.home-hero h1, .page-hero h1, .event-hero-detail h1, .cta-section h2, .split-layout h2,
.section-heading h2, .topic-detail h1, .booking-panel h2 {
  max-width: 100%;
  line-height: .98;
  letter-spacing: -.055em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}
.home-hero h1 { line-height: .92; }
.event-card-content, .event-info, .topic-row > div, .category-card > div,
.feature-card, .feature-card h3, .feature-card p, .feature-card a { min-width: 0; }
.event-card-content h3, .event-info h2, .topic-row h3, .category-card h3,
.feature-card h3, .reply p, .topic-body, .admin-list-row, .media-admin-row {
  overflow-wrap: anywhere;
  word-break: normal;
}
.feature-card h3, .feature-card p, .feature-card a { position: relative; z-index: 1; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .menu-toggle { position: relative; z-index: 102; }
  .header-drawer {
    position: fixed;
    top: var(--header);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 101;
    display: flex;
    height: calc(100vh - var(--header));
    height: calc(100dvh - var(--header));
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 22px max(20px, calc((100vw - 640px) / 2)) 32px;
    background: var(--white);
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: transform .24s ease, opacity .2s ease, visibility .24s;
  }
  .header-drawer.is-open { visibility: visible; opacity: 1; transform: translateX(0); }
  .main-nav {
    position: static;
    inset: auto;
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    visibility: visible;
    transform: none;
  }
  .main-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: clamp(22px, 6vw, 30px); line-height: 1.1; }
  .main-nav a::after { display: none; }
  .header-actions {
    position: static;
    inset: auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    margin-top: 24px;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    background: transparent;
    visibility: visible;
    transform: none;
  }
  body.menu-open .header-actions { transform: none; }
  .header-actions .preference-controls, .header-actions .cart-link,
  .header-actions .user-chip { grid-column: 1 / -1; }
  .header-actions .preference-controls { display: flex; justify-content: space-between; padding: 7px; }
  .header-actions .utility-button { min-height: 40px; flex: 1 1 50%; }
  .header-actions .cart-link { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; }
  .header-actions .button, .header-actions .button-outline { width: 100%; min-width: 0; display: inline-flex; }
  .header-actions .admin-link, .header-actions .link-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  [data-theme="dark"] .header-drawer { background: #07110b; }
  [data-theme="dark"] .main-nav, [data-theme="dark"] .header-actions { background: transparent; }
}

@media (max-width: 760px) {
  html, body { overflow-x: hidden; overflow-x: clip; }
  .home-hero h1 { font-size: clamp(48px, 14vw, 68px); line-height: .94; letter-spacing: -.055em; }
  .page-hero h1 { font-size: clamp(46px, 13.5vw, 66px); line-height: .96; }
  .section-heading h2, .split-layout h2 { font-size: clamp(34px, 10vw, 50px); line-height: 1; }
  .cta-section h2 { font-size: clamp(42px, 12vw, 60px); line-height: .98; }
  .event-hero-detail h1, .topic-detail h1 { font-size: clamp(39px, 11vw, 56px); line-height: 1; }
  .feature-number { top: 20px; right: 22px; font-size: 38px; }
  .feature-card h3 { margin-top: 42px; padding-right: 0; line-height: 1.15; }
  .row-heading, .sidebar-heading, .list-heading { align-items: flex-start; flex-direction: column; }
  .header-drawer { padding-inline: 16px; }
}

@media (max-width: 390px) {
  .header-actions { grid-template-columns: 1fr; }
  .header-actions .preference-controls, .header-actions .cart-link,
  .header-actions .user-chip { grid-column: 1; }
}
