/* Shared styling for the cleanup signup site.
   Mobile first — nearly everyone arrives by scanning the QR code on a flyer. */

:root {
  --bg: #fbf7f0;
  --panel: #ffffff;
  --ink: #23201c;
  --ink-soft: #5d564c;
  --line: #e3dacb;
  --accent: #a8480f;      /* burnt orange */
  --accent-ink: #ffffff;
  --accent-soft: #fdf0e4;
  --warn-line: #d9b48a;
  --warn-bg: #fdf6ec;
  --ok: #2f6b3f;
  --shadow: 0 1px 2px rgba(35, 32, 28, .06), 0 8px 24px rgba(35, 32, 28, .07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16140f;
    --panel: #201d17;
    --ink: #f0ebe1;
    --ink-soft: #b1a795;
    --line: #383227;
    --accent: #e08a44;
    --accent-ink: #1a1611;
    --accent-soft: #2b2318;
    --warn-line: #5c4728;
    --warn-bg: #262017;
    --ok: #7fc08d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px 64px;
}

/* --- masthead --- */
header.hero {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 30px 18px 26px;
  text-align: center;
}
header.hero .kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}
header.hero h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.15;
  letter-spacing: -.015em;
}
header.hero .when {
  margin: 14px auto 0;
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  header.hero .when { border-color: rgba(0, 0, 0, .3); }
}

/* --- cards --- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 4px;
  font-size: 19px;
  letter-spacing: -.01em;
}
.card p.lead {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* --- form --- */
label { display: block; margin-top: 16px; font-weight: 600; font-size: 15px; }
label .opt { font-weight: 400; color: var(--ink-soft); }
.hint { margin: 3px 0 7px; font-size: 13.5px; color: var(--ink-soft); }

input[type=text], textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
}
input[type=text]:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
textarea { min-height: 108px; resize: vertical; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button.submit {
  margin-top: 22px;
  width: 100%;
  padding: 14px 18px;
  font: 600 17px/1 inherit;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
button.submit:hover { filter: brightness(1.08); }
button.submit:active { transform: translateY(1px); }

/* --- rules --- */
.rules ul { margin: 8px 0 0; padding-left: 0; list-style: none; }
.rules li {
  position: relative;
  padding: 7px 0 7px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.rules li:last-child { border-bottom: 0; }
.rules li::before {
  position: absolute;
  left: 4px;
  top: 7px;
  font-weight: 700;
}
.rules.no li::before { content: "\00d7"; color: var(--accent); font-size: 19px; top: 4px; }
.rules.yes li::before { content: "\2713"; color: var(--ok); }

.callout {
  margin-top: 16px;
  padding: 13px 15px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

footer.foot {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
footer.foot a { color: inherit; }

/* --- tabs (both the public page and /admin) --- */
.tabs {
  display: flex;
  gap: 4px;
  margin-top: 20px;
  border-bottom: 2px solid var(--line);
}
.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  margin-bottom: -2px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--ink); background: var(--accent-soft); }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }

/* --- flyer panel --- */
.flyer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-file {
  flex: 1 1 190px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.35;
}
.btn-file:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-file .ft {
  flex: none;
  padding: 5px 9px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.flyer-shot { display: block; margin-top: 18px; }
.flyer-shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* --- report-a-problem block + the LAN problems tab --- */
.card.problem { border-style: dashed; }
.tab.warn { color: var(--accent); }
.tab .badge {
  display: inline-block; min-width: 20px; padding: 1px 6px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; font-size: 12px; font-weight: 700; text-align: center;
}
