/* Lake Lights & Holiday Nights — site styles. Mobile first, WCAG 2.1 AA. */
:root {
  --navy: #14213D; --red: #DA2A2A; --berry: #C2185F; --teal: #12A9B8; --teal-text: #0A7480;
  --lime: #9BD13A; --gold: #F4C430; --frost: #F4F8FA; --charcoal: #333333; --line: #d7e0e6;
  --radius: 16px; --shadow: 0 2px 10px rgba(20, 33, 61, .08);
  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.5; color: var(--navy); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--teal-text); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-weight: 800; font-size: clamp(32px, 8vw, 52px); }
h2 { font-weight: 700; font-size: clamp(24px, 5vw, 32px); }
h3 { font-weight: 700; font-size: 21px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: 8px 12px; z-index: 1000; font-weight: 800; }
.skip:focus { left: 8px; top: 8px; }
.small { font-size: 14px; }
.center { text-align: center; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
main { min-height: 60vh; }
main > section:first-child { padding-top: 24px; }
.section { padding: 40px 0; }
.section.light { background: var(--frost); }

/* Bulb string */
.bulbs { height: 24px; background:
  radial-gradient(circle at 12px 15px, var(--red) 5px, transparent 6px) 0 0 / 96px 24px,
  radial-gradient(circle at 36px 15px, var(--lime) 5px, transparent 6px) 0 0 / 96px 24px,
  radial-gradient(circle at 60px 15px, var(--teal) 5px, transparent 6px) 0 0 / 96px 24px,
  radial-gradient(circle at 84px 15px, var(--gold) 5px, transparent 6px) 0 0 / 96px 24px,
  linear-gradient(var(--charcoal), var(--charcoal)) 0 8px / 100% 2px no-repeat,
  var(--navy); }

/* Wordmark: exact logo colors, always on navy (lime/teal aren't readable on white). It has an
   aria-label, and logos are exempt from WCAG contrast. */
.wm { font-family: var(--font-head); font-weight: 800; line-height: .95; letter-spacing: .01em; display: inline-block; }
.wm-sm { font-size: 17px; }
.wm-lg { font-size: clamp(34px, 10vw, 60px); }
.c-teal { color: var(--teal); } .c-lime { color: var(--lime); } .c-red { color: var(--red); } .c-berry { color: var(--berry); }

/* Header */
.site-header { background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px; position: relative; z-index: 900; }
@media (min-width: 860px) { .site-header { position: sticky; top: 0; } }
.brand { text-decoration: none; margin-right: auto; }
.site-nav { order: 3; width: 100%; display: flex; gap: 4px 14px; flex-wrap: wrap; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 700; padding: 6px 2px; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: #fff; }
.btn-cta { padding: 8px 14px; font-size: 14px; }
@media (min-width: 860px) { .site-nav { order: 0; width: auto; } .brand { margin-right: 8px; } .site-nav { margin-right: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 800; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { background: #b81f1f; color: #fff; }
.btn-teal { background: var(--teal-text); color: #fff; } .btn-teal:hover { background: #075a63; color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--navy); } .btn-ghost:hover { background: var(--frost); color: var(--navy); }
.btn-lg { font-size: 18px; padding: 14px 26px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.btn-row.center { justify-content: center; }

/* Hero */
.hero { background: var(--navy); color: #fff; text-align: center; padding: 28px 16px 36px !important; }
.hero-card { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.sailboat { display: block; }
.tagline { font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: clamp(24px, 6vw, 34px); margin: 8px 0; }
.hero .lead { max-width: 640px; margin: 0 auto 8px; font-size: 18px; }
.hero .btn-row { justify-content: center; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.counter { font-size: 18px; margin: 16px 0 0; } .counter strong { color: var(--gold); font-size: 22px; }

.deadlines { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 640px; margin: 18px auto 0; }
.d { border-radius: 14px; padding: 10px 12px; font-weight: 800; color: #fff; text-align: center; }
.d small { display: block; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.d-biz { background: var(--teal-text); } .d-home { background: var(--berry); } .d-vote { background: #2c3a5c; grid-column: 1 / -1; }

.lead { font-size: 19px; }
.intro { font-size: 19px; max-width: 760px; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); counter-increment: s; }
.steps h2 { color: var(--red); font-size: 26px; }
.steps h2::before { content: counter(s) ". "; color: var(--navy); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.two-col { display: grid; gap: 20px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-home { border-top: 6px solid var(--berry); } .card-home h2 { color: var(--berry); }
.card-biz { border-top: 6px solid var(--teal); } .card-biz h2 { color: var(--teal-text); }
.due { font-weight: 800; color: var(--red); margin: 0 0 8px; }
.prize { font-weight: 700; }
.awards { list-style: none; padding: 0; margin: 0 0 12px; }
.awards li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; }
.awards li span { font-size: 15px; color: var(--charcoal); }
.awards-card { margin: 16px 0 24px; }

.dates { display: grid; gap: 8px; margin: 12px 0 16px; }
.dates div { display: grid; grid-template-columns: minmax(150px, 40%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dates dt { font-weight: 800; } .dates dd { margin: 0; }

/* Prose */
.prose h2 { margin-top: 1.4em; }
.prose li { margin: .35em 0; }
.winners { list-style: none; padding: 0; }
.winners li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.winners .award { font-weight: 800; color: var(--berry); }

/* Forms */
.form { margin: 8px 0 32px; }
.field { margin: 0 0 16px; border: 0; padding: 0; }
.field label, .field legend, .admin-card label { display: block; font-weight: 800; margin-bottom: 4px; }
input, textarea, select { width: 100%; font: inherit; color: var(--navy); padding: 12px; border: 2px solid #8a9bb0; border-radius: 10px; background: #fff; min-height: 48px; }
textarea { min-height: 72px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--navy); outline: 3px solid var(--gold); outline-offset: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-weight: 700; font-size: 15px; margin: 4px 0 0; }
.hint { font-size: 14px; color: var(--charcoal); margin: 4px 0 0; }
.req { color: var(--red); } .opt { font-weight: 400; color: var(--charcoal); }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 520px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check, .radio { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-weight: 400 !important; cursor: pointer; }
.check input, .radio input { width: 24px; height: 24px; min-height: 0; flex: 0 0 24px; margin: 2px 0 0; accent-color: var(--red); }
.consent { background: var(--frost); padding: 12px; border-radius: 10px; font-size: 15px; }
.cf-turnstile { margin: 8px 0 16px; min-height: 65px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdeaea; color: #8f1414; border-left: 4px solid var(--red); padding: 10px 12px; border-radius: 8px; font-weight: 700; }
.form-error.ok { background: #eaf7e0; color: #2d5a0e; border-left-color: #4f8a1c; }
.done { text-align: center; border-top: 6px solid var(--lime); margin: 24px 0; }
.done h2 { color: var(--red); }

.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.choice { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 72px; border-radius: var(--radius); border: 3px solid var(--line);
  text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--navy); background: #fff; }
.choice small { font-family: var(--font-body); font-weight: 700; font-size: 13px; }
.choice-home[aria-selected="true"] { border-color: var(--berry); background: var(--berry); color: #fff; }
.choice-biz[aria-selected="true"] { border-color: var(--teal-text); background: var(--teal-text); color: #fff; }

/* Map */
.map-head { padding-bottom: 8px; }
.map { height: 62vh; min-height: 360px; width: 100%; background: var(--frost); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--navy); background: #fff; font: inherit; font-weight: 800; color: var(--navy); cursor: pointer; }
.chip input { width: 20px; height: 20px; min-height: 0; margin: 0; }
.chip-home { border-color: var(--berry); } .chip-home input { accent-color: var(--berry); }
.chip-biz { border-color: var(--teal-text); } .chip-biz input { accent-color: var(--teal-text); }
.list-title { margin-top: 24px; }
.entry-list { list-style: none; padding: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .entry-list { grid-template-columns: 1fr 1fr; } }
.entry-list li { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--berry); border-radius: 12px; padding: 12px 14px; }
.entry-list li.business { border-left-color: var(--teal); }
.entry-list li:target { outline: 3px solid var(--gold); }
.entry-list h3 { margin: 0; font-size: 19px; }
.entry-list p { margin: 4px 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--berry); }
.tag.business { background: var(--teal-text); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--teal-text); text-decoration: underline; cursor: pointer; min-height: 32px; }
.pin-icon { background: none; border: 0; }
.pin-icon svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.leaflet-popup-content { font-family: var(--font-body); font-size: 15px; }
.leaflet-popup-content h3 { font-size: 18px; margin: 0 0 4px; }
.leaflet-popup-content p { margin: 4px 0; }

/* Admin */
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.summary .stat { background: var(--frost); border-radius: 12px; padding: 10px 14px; min-width: 120px; }
.summary .stat strong { display: block; font-size: 24px; font-family: var(--font-head); }
.summary .warn { background: #fff4d6; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 16px; }
.tabs [role="tab"] { font: inherit; font-weight: 800; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; min-height: 40px; cursor: pointer; color: var(--navy); }
.tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs .btn { margin-left: auto; }
.admin-list { display: grid; gap: 16px; }
.admin-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; box-shadow: var(--shadow); }
.admin-card header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.admin-card h2 { font-size: 22px; margin: 0; }
.admin-card label { font-size: 14px; margin-bottom: 10px; }
.admin-card input, .admin-card textarea, .admin-card select { min-height: 40px; padding: 8px; font-size: 15px; font-weight: 400; }
.admin-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1.3fr 1fr; } }
.mini-map { height: 260px; border-radius: 12px; border: 1px solid var(--line); }
.pill { font-size: 12px; font-weight: 800; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--berry); color: #fff; }
.pill.business { background: var(--teal-text); }
.flag { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: #fff4d6; color: #6b4e00; border: 1px solid #e8c45a; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.msg { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.msg.handled { opacity: .6; }
.msg pre { white-space: pre-wrap; font-family: inherit; margin: 8px 0; }
.empty { color: var(--charcoal); font-style: italic; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; padding: 24px 16px 32px; text-align: center; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 6px auto; max-width: 720px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
