/* Zeltlager 2027 – Jungwacht & Blauring Wohlen
   Einfarbiges Design: Weiss + eine Vereinsfarbe. Die Farbe kommt aus den Einstellungen
   (--brand und Abstufungen werden im <head> gesetzt, siehe theme_style_tag()). */

:root {
  --brand: #2E7D32;
  --brand-ink: #2E7D32;
  --brand-dark: #225E26;
  --brand-tint: #F1F7F1;
  --brand-tint-2: #E0EEE1;
  --brand-line: #C0DAC2;
  --on-brand: #FFFFFF;

  --text: #1F2328;
  --muted: #59636E;
  --line: #E3E6EA;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F8;

  --ok: #1A7F37;
  --ok-bg: #E6F4EA;
  --err: #B42318;
  --err-bg: #FDECEA;
  --warn: #8A5A00;
  --warn-bg: #FFF4DB;

  --radius: 12px;
  --radius-sm: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: .15em; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--bg-soft); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.icon { flex: none; vertical-align: middle; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding-block: 48px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 6px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Kopfzeile ---------- */
.site-header { background: var(--brand); color: var(--on-brand); position: sticky; top: 0; z-index: 30; }
.site-header :focus-visible { outline-color: var(--on-brand); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; position: relative; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 6px 0; }
.brand img { display: block; height: auto; }
.brand .logo-jw { width: 116px; }
.brand .logo-br { width: 70px; }

.nav-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--on-brand); }
.nav-btn span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { color: var(--on-brand); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 8px 13px; border-radius: var(--radius-sm); }
.main-nav a:hover { color: var(--on-brand); background: rgba(255, 255, 255, .14); }
.main-nav a[aria-current="page"] { background: rgba(255, 255, 255, .2); }
.main-nav .nav-cta { background: #fff; color: var(--brand-ink); margin-left: 8px; }
.main-nav .nav-cta:hover { background: var(--brand-tint); color: var(--brand-dark); }

@media (max-width: 900px) {
  .nav-btn { display: block; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: -16px; right: -16px;
    background: var(--brand); padding: 6px 16px 18px; box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
  }
  .main-nav.open a { padding: 12px 14px; font-size: 17px; }
  .main-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .brand .logo-jw { width: 92px; }
  .brand .logo-br { width: 56px; }
  .header-inner { min-height: 68px; }
}

/* ---------- Startseite: Titelbereich ---------- */
.hero { position: relative; background: var(--brand); color: var(--on-brand); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; padding: 64px 0 172px; }
.hero h1 { color: inherit; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.05; margin-bottom: .2em; }
.hero-sub { font-size: clamp(1.1rem, 2.3vw, 1.35rem); max-width: 620px; margin: 0; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.scene { line-height: 0; }
.scene-svg { display: block; width: 100%; height: 150px; }
.scene-hero { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; color: var(--bg); }

.hero-has-photo { background: #1d1d1d; color: #fff; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-has-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .1) 30%, rgba(0, 0, 0, .6) 100%); }
.hero-has-photo .hero-inner { min-height: min(72vh, 600px); display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 56px; }
.hero-has-photo h1, .hero-has-photo .hero-sub { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }

@media (max-width: 640px) {
  .hero-inner { padding: 44px 0 128px; }
  .scene-svg { height: 110px; }
  .hero-has-photo .hero-inner { min-height: 440px; padding-bottom: 40px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius-sm); border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-dark); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--brand-ink); border-color: currentColor; }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-outline-light { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); color: inherit; }
.btn-danger { background: transparent; color: var(--err); border-color: currentColor; }
.btn-danger:hover { background: var(--err-bg); color: var(--err); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .875rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-ink); text-decoration: underline; cursor: pointer; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }

/* ---------- Bausteine ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 36px; }
.fact { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--brand-tint); border-radius: var(--radius); }
.fact-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.fact small { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; }
.fact strong { display: block; font-size: 1.05rem; line-height: 1.3; }

.lead { font-size: 1.15rem; max-width: 760px; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { color: var(--brand-ink); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose li::marker { color: var(--brand-ink); }

.teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.teaser { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--brand-tint); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: background .15s, transform .15s; }
.teaser:hover { background: var(--brand-tint-2); color: var(--text); transform: translateY(-2px); }
.teaser-icon { color: var(--brand-ink); }
.teaser h2 { margin: 4px 0 0; font-size: 1.25rem; color: var(--brand-ink); }
.teaser p { margin: 0; color: var(--muted); font-size: .97rem; }
.teaser-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .95rem; color: var(--brand-ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.section-title { font-size: 1.6rem; color: var(--brand-ink); }
.subhead { margin: 1.4em 0 .4em; font-size: .9rem; color: var(--muted); }
.card h2 + .subhead, .card h2 + .file-list { margin-top: .2em; }

.events { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.event { display: flex; align-items: center; gap: 14px; }
.date-badge { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--brand); color: var(--on-brand); line-height: 1.05; }
.date-badge strong { font-size: 1.35rem; }
.date-badge span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.event-main { display: flex; flex-direction: column; min-width: 0; }
.event-main small { color: var(--muted); font-size: .9rem; }
.event.past { opacity: .5; }

.post-teaser { padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-teaser:first-of-type { padding-top: 0; }
.post-teaser time, .post time { font-size: .85rem; color: var(--muted); font-weight: 600; }
.post-teaser h3 { margin: .15em 0 .3em; }
.post-teaser h3 a { color: var(--text); text-decoration: none; }
.post-teaser h3 a:hover { color: var(--brand-ink); }
.post-teaser p { margin: 0; color: var(--muted); font-size: .97rem; }

.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li + li { border-top: 1px solid var(--line); }
.file-list a { display: flex; align-items: flex-start; gap: 12px; padding: 11px 6px; color: var(--text); text-decoration: none; border-radius: var(--radius-sm); }
.file-list a:hover { background: var(--brand-tint); }
.file-main { display: flex; flex-direction: column; min-width: 0; }
.file-main small { font-size: .84rem; }
.file-badge { flex: none; min-width: 48px; padding: 4px 6px; border-radius: 4px; background: var(--brand); color: var(--on-brand); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-align: center; }

.notice { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: var(--brand-tint); border-radius: var(--radius); }
.notice .icon { color: var(--brand-ink); margin-top: 2px; }
.notice p { margin: .2em 0 0; }
.notice-private { background: var(--bg-soft); }

/* ---------- Unterseiten ---------- */
.page-head { background: var(--brand-tint); border-bottom: 1px solid var(--brand-line); padding: 44px 0 34px; }
.page-head h1 { color: var(--brand-ink); margin-bottom: .2em; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0; }

.card, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card h2, .panel h2 { font-size: 1.25rem; color: var(--brand-ink); }

.infos-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.infos-grid > .card { padding: 32px; }
@media (max-width: 920px) { .infos-grid { grid-template-columns: 1fr; } .infos-grid > .card { padding: 22px; } }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
@media (max-width: 980px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-group { margin-bottom: 28px; }
.faq-group h2 { font-size: 1.05rem; color: var(--brand-ink); margin-bottom: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.faq-item summary { cursor: pointer; padding: 15px 48px 15px 18px; font-weight: 650; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--brand-ink); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] { border-color: var(--brand-line); }
.faq-item .prose { padding: 0 18px 16px; color: var(--muted); }
.faq-item:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-2); }
.search input { margin-bottom: 20px; }
.ask { background: var(--brand-tint); border-color: var(--brand-line); position: sticky; top: 104px; }
@media (max-width: 980px) { .ask { position: static; } }

/* Formulare */
.form label { display: block; font-weight: 600; margin-bottom: 14px; }
.form label small, .form fieldset > small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=search], input[type=password], input[type=date], input[type=url], input[type=tel], input[type=number], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1.5px solid #CDD2D8; border-radius: 8px;
  background: #fff; font: 400 1rem/1.4 var(--font); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-2); }
textarea { resize: vertical; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.form .choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid #CDD2D8; border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-weight: 400; background: #fff; }
.form .choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.form .choice input { margin-top: 5px; accent-color: var(--brand); }
.form .choice span { display: flex; flex-direction: column; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 5px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
form.inline { display: inline; }

.flashes { padding-top: 20px; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 12px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.flash-error { background: var(--err-bg); color: var(--err); }
.flash ul { margin: 0; padding-left: 1.2em; }

/* Status */
.status-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; font-size: .9rem; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-wait { background: var(--warn-bg); color: var(--warn); }
.pill-private { background: #E8ECF4; color: #364152; }
.pill-live { background: var(--brand); color: var(--on-brand); }
.q-title { font-size: .95rem; color: var(--brand-ink); margin-top: 18px; }
.answer { background: var(--brand-tint); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }

/* Packliste */
.progress-bar { height: 12px; background: var(--brand-tint-2); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.progress-text { margin: 10px 0 20px; color: var(--muted); }
.check-sections { columns: 3 300px; column-gap: 20px; }
.check-section { break-inside: avoid; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist label { display: flex; gap: 10px; padding: 7px 0; cursor: pointer; align-items: flex-start; }
.checklist input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin-top: 2px; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }

/* Fusszeile */
.scene-footer { color: var(--brand); margin-top: 64px; }
.site-footer { background: var(--brand); color: var(--on-brand); padding: 12px 0 40px; margin-top: -1px; }
.site-footer a { color: var(--on-brand); }
.site-footer h2 { font-size: .95rem; color: var(--on-brand); margin-bottom: .5em; }
.site-footer p { font-size: .95rem; margin: 0; opacity: .92; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logos { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.footer-logos img { display: block; height: auto; }
.footer-logos .logo-jw { width: 112px; }
.footer-logos .logo-br { width: 72px; }
.footer-links { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.footer-links li { margin-bottom: 4px; }

@media print {
  .site-header, .site-footer, .scene, .progress-bar, .progress-text { display: none; }
  .page-head { background: none; border: 0; padding: 0; }
  .card, .panel { border: 1px solid #ccc; }
}

/* =================== ADMIN =================== */
body.admin { background: var(--bg-soft); }
.admin-bar { background: var(--brand-dark); color: #fff; position: sticky; top: 0; z-index: 20; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; max-width: 1280px; margin: 0 auto; min-height: 58px; position: relative; }
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.admin-brand img { display: block; height: auto; }
.admin-brand strong { font-size: 1.05rem; margin-left: 4px; }
.admin-brand:hover { color: #fff; }
.admin-bar .nav-btn { color: #fff; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.admin-nav a, .admin-nav .link-btn { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .88); text-decoration: none; padding: 7px 10px; border-radius: 6px; font-size: .92rem; font-weight: 600; }
.admin-nav a:hover, .admin-nav .link-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-nav a[aria-current="page"] { background: rgba(255, 255, 255, .18); color: #fff; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--brand-dark); font-size: .75rem; font-weight: 800; text-align: center; }
@media (max-width: 1080px) {
  .admin-bar .nav-btn { display: block; }
  .admin-nav { display: none; }
  .admin-nav.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%; background: var(--brand-dark); padding: 8px 16px 16px; }
}
.admin-main { max-width: 1280px; margin: 0 auto; padding: 28px 16px 64px; }
.admin-main h1 { font-size: 1.9rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-head h1 { margin: 0; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.admin-grid.wide-left { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 920px) { .admin-grid, .admin-grid.wide-left { grid-template-columns: 1fr; } }
.narrow-form { max-width: 780px; }
.panel h2 { margin-top: .2em; }
.form h2 { margin-top: 1.4em; }
.form h2:first-of-type { margin-top: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--text); text-decoration: none; }
.stat strong { display: block; font-size: 2.2rem; line-height: 1; color: var(--brand-ink); }
.stat span { color: var(--muted); font-size: .9rem; }
.stat:hover { border-color: var(--brand-line); color: var(--text); }
.stat-hot { border: 2px solid var(--brand); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; background: #fff; border: 1px solid var(--line); }
.tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tabs .count { opacity: .7; font-weight: 500; }

.q-list { list-style: none; margin: 0 0 20px; padding: 0; }
.panel.q-list { padding: 4px 0; }
.q-list li + li { border-top: 1px solid var(--line); }
.q-list a { display: flex; flex-direction: column; gap: 4px; padding: 14px 20px; color: var(--text); text-decoration: none; }
.panel:not(.q-list) .q-list a { padding: 12px 0; }
.q-list a:hover { background: var(--brand-tint); }
.q-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); }
.quick { list-style: none; padding: 0; margin: 0; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }

.original-q { background: var(--bg-soft); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.original-q .label { font-size: .78rem; font-weight: 700; color: var(--muted); }
.original-q p { margin: 4px 0 0; font-size: 1.05rem; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: .9rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .8rem; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dim { opacity: .55; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.row-actions form { display: flex; gap: 6px; }

.dropzone { position: relative; display: flex !important; flex-direction: column; align-items: center; gap: 4px; padding: 26px; border: 2px dashed #CDD2D8; border-radius: 12px; text-align: center; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.dropzone-sm { padding: 18px; }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dropzone.drag, .dropzone:hover { border-color: var(--brand); background: var(--brand-tint); }
.dropzone.has-file { border-style: solid; border-color: var(--brand); }
.dropzone small { font-weight: 400; color: var(--muted); }

.hero-preview { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 14px; background: var(--bg-soft); }
.hero-preview[hidden] { display: none; }

.colors { display: flex; flex-direction: column; gap: 8px; }
.form .color-choice { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; border: 1.5px solid #CDD2D8; border-radius: 10px; font-weight: 600; cursor: pointer; background: #fff; }
.form .color-choice:has(input[type=radio]:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.color-choice input[type=radio] { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.swatch { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.color-choice input[type=color] { width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; }

.event-row { display: grid; grid-template-columns: 170px 1fr 1.3fr auto; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.event-row label { margin: 0; }
.event-row:last-child { border-bottom: 0; }
.event-add { padding: 18px 24px; }
@media (max-width: 800px) { .event-row { grid-template-columns: 1fr; } }

.user-list { list-style: none; padding: 0; margin: 0; }
.user-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.md-help { width: 100%; font-size: .9rem; border-collapse: collapse; }
.md-help td { padding: 6px 4px; border-bottom: 1px solid var(--line); }

.admin-bare { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.auth-box { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.auth-logos { display: flex; align-items: center; gap: 16px; }
.auth-logos img { display: block; height: auto; }
.auth-sub { margin: 10px 0 20px; color: var(--muted); font-size: .92rem; }
.auth-box h1 { font-size: 1.5rem; color: var(--brand-ink); }
.auth-box form .btn-block { margin-bottom: 16px; }
