/* EBT Contribute. Same palette and type as the public site; no external fonts (strict CSP). */
:root {
  --black: #0b0b0c; --ink: #17171a; --graphite: #26262b; --white: #fff; --paper: #f4f4f1; --card: #fff;
  --line: #dcdcd6; --neon: #d8ff1f; --neon-dim: #b8dc00; --red: #e5202e; --muted: #6b6b72; --ok: #1f8a3b; --warn: #b26a00; --info: #2457d6;
  --display: "Arial Narrow", Impact, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--body); color: var(--ink); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-style: italic; text-transform: uppercase; margin: 0; letter-spacing: .01em; line-height: 1.05; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
.lead { font-size: 1.05rem; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--neon); color: var(--black); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* top bar */
.topbar { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--neon); }
.bar { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; flex-wrap: wrap; padding-block: .4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-name { font: italic 900 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.brand-name b { color: var(--neon); font-weight: 900; }
.nav { display: flex; gap: .25rem; margin-right: auto; }
.nav a { text-decoration: none; padding: .5rem .9rem; border-radius: 999px; color: #cfcfd4; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--white); background: var(--graphite); }
.nav a.on { background: var(--neon); color: var(--black); }
.who { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: #aaa; }
.who-email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 .95rem/1 var(--body); padding: .8rem 1.15rem; border-radius: 999px; border: 2px solid var(--black); background: var(--white); color: var(--black); cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn.go { background: var(--neon); border-color: var(--black); box-shadow: 3px 3px 0 var(--black); }
.btn.go:hover { background: var(--neon-dim); }
.btn.danger { background: var(--red); border-color: var(--red); color: var(--white); }
.btn.ghost { background: transparent; border-color: var(--line); }
.topbar .btn.ghost { color: var(--white); border-color: #444; }
.topbar .btn.ghost:hover { background: var(--graphite); }
.btn.sm { padding: .5rem .8rem; font-size: .85rem; }
.btn.lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.icon-btn { background: none; border: 0; padding: .4rem; cursor: pointer; border-radius: 8px; color: inherit; }
.icon-btn:hover { background: var(--paper); }

/* hero / login */
.hero { background: var(--black); color: var(--white); position: relative; overflow: hidden; flex: 1; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(216,255,31,.07) 46px 50px); }
.hero::after { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%; background: linear-gradient(115deg, transparent 40%, rgba(216,255,31,.14) 40% 46%, transparent 46%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-block: 3rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.hero h1 em { color: var(--neon); font-style: italic; }
.hero .sub { font-size: 1.15rem; color: #d3d3d8; max-width: 34em; margin-top: 1.1rem; }
.perks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; color: #e6e6ea; }
.perks li { display: flex; gap: .6rem; align-items: center; }
.perks .ico { color: var(--neon); }
.login-card { background: var(--white); color: var(--ink); border-radius: 20px; padding: 2rem; box-shadow: 0 24px 60px rgba(0,0,0,.45); border-top: 6px solid var(--neon); }
.login-card h2 { font-size: 1.7rem; margin-bottom: .4rem; }
.login-card .brandline { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; font-weight: 700; }
.codes { display: flex; gap: .5rem; justify-content: space-between; margin: 1rem 0; }
.codes input { width: 100%; max-width: 3.4rem; height: 4rem; text-align: center; font: 700 1.8rem var(--body); border: 2px solid var(--line); border-radius: 12px; background: var(--paper); padding: 0; }
.codes input:focus { border-color: var(--black); background: var(--white); outline: none; box-shadow: 0 0 0 4px rgba(216,255,31,.6); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--info); font: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn[disabled] { color: var(--muted); text-decoration: none; cursor: default; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }

/* forms */
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; position: relative; }
.field label, .lbl { font-weight: 700; font-size: .92rem; }
.req { color: var(--red); }
input[type=text], input[type=url], input[type=tel], input[type=email], input[type=number], input[type=search], input[type=datetime-local], select, textarea {
  font: inherit; padding: .75rem .85rem; border: 2px solid var(--line); border-radius: 10px; background: var(--white); width: 100%; color: var(--ink); }
textarea { resize: vertical; min-height: 7rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 4px rgba(216,255,31,.55); }
.hint { font-size: .85rem; color: var(--muted); }
.ferr { font-size: .85rem; color: var(--red); font-weight: 600; min-height: 0; }
.ferr:empty { display: none; }
.has-err > input, .has-err > select, .has-err > textarea { border-color: var(--red); }
.sect { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.sect > legend { font: italic 900 1.15rem var(--display); text-transform: uppercase; padding: 0 0 .75rem; width: 100%; border-bottom: 2px solid var(--black); margin-bottom: 1rem; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.cols .wide { grid-column: 1 / -1; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.chk { display: flex; gap: .6rem; align-items: center; padding: .7rem .85rem; border: 2px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; font-weight: 600; }
.chk:has(input:checked) { border-color: var(--black); background: var(--neon); }
.chk input { width: 1.15rem; height: 1.15rem; accent-color: var(--black); }
.field.check { grid-column: auto; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .5rem .9rem; border: 2px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600; font-size: .9rem; }
.chip input:checked + span { background: var(--black); color: var(--neon); border-color: var(--black); }
.chip input:focus-visible + span { outline: 3px solid var(--info); outline-offset: 2px; }
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; margin-bottom: .6rem; }
.day { display: grid; gap: .2rem; font-size: .85rem; font-weight: 700; }
.day input { font-weight: 400; padding: .55rem .7rem; }
.stars { display: flex; gap: .25rem; }
.star { background: none; border: 0; padding: .25rem; cursor: pointer; color: #bbb; }
.star .ico { width: 2rem; height: 2rem; }
.star.on { color: #f5b800; }
.star.on .ico { fill: currentColor; }
.alert { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; font-weight: 600; }
.alert.bad { background: #fde8ea; color: #8f111b; border: 1px solid #f4b6bb; }
.alert.info { background: #eaf0ff; color: #1b3f9e; border: 1px solid #c3d3fa; }
.alert.ok { background: #e6f5ea; color: #14602a; border: 1px solid #b4dfc0; }
.alert.warn { background: #fff4de; color: #7a4800; border: 1px solid #f1d49b; }

/* map + gpx */
.map { height: 340px; border-radius: var(--r); border: 2px solid var(--black); overflow: hidden; background: #e8e8e4; z-index: 0; }
.map.route { margin: .75rem 0 .5rem; height: 380px; }
.map.tall { height: 420px; }
.picker-bar { display: flex; gap: .5rem; margin-bottom: .6rem; flex-wrap: wrap; }
.picker-bar input { flex: 1 1 220px; }
.picker-foot { display: flex; gap: 1rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
.coords { font: 600 .85rem ui-monospace, Menlo, Consolas, monospace; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .25rem .5rem; }
.drop { display: flex; align-items: center; gap: 1rem; padding: 1.4rem; border: 2px dashed #999; border-radius: var(--r); background: var(--white); cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { background: var(--neon); border-color: var(--black); }
.drop .ico { width: 2rem; height: 2rem; }
.drop b { display: block; } .drop small { color: var(--muted); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + * , .drop:focus-within { outline: 3px solid var(--info); }
.stats { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.pill { background: var(--black); color: var(--neon); font-weight: 700; font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; }
.results { list-style: none; margin: 0; padding: .25rem; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border: 2px solid var(--black); border-radius: 10px; z-index: 30; max-height: 260px; overflow: auto; box-shadow: var(--shadow); }
.results li { padding: .6rem .75rem; border-radius: 8px; cursor: pointer; }
.results li:hover, .results li:focus { background: var(--neon); outline: none; }
.results li.none { color: var(--muted); cursor: default; }
.results li.none:hover { background: none; }
.picked { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem .85rem; border: 2px solid var(--black); border-radius: 10px; background: var(--neon); font-weight: 700; }
.picked span { display: flex; gap: .5rem; align-items: center; }
.leaflet-container { font-family: var(--body); }

/* main content */
main.wrap { flex: 1; padding-block: 2rem 3rem; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pagehead p { margin: .4rem 0 0; color: var(--muted); }
.panel { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.5rem; border: 1px solid var(--line); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--black); color: var(--white); border-radius: var(--r); padding: 1rem 1.2rem; position: relative; overflow: hidden; text-align: left; border: 0; cursor: pointer; font: inherit; }
.stat::after { content: ""; position: absolute; right: -20px; top: 0; width: 60px; height: 100%; background: rgba(216,255,31,.12); transform: skewX(-20deg); }
.stat b { display: block; font: italic 900 2.4rem/1 var(--display); color: var(--neon); }
.stat span { font-size: .85rem; color: #cfcfd4; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stat.on { outline: 3px solid var(--neon); outline-offset: 2px; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tab { border: 2px solid var(--line); background: var(--white); padding: .5rem 1rem; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .9rem; }
.tab.on { background: var(--black); color: var(--neon); border-color: var(--black); }
.items { display: grid; gap: .8rem; }
.item { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.item.s-pending { border-left-color: var(--warn); } .item.s-live { border-left-color: var(--ok); }
.item.s-rejected { border-left-color: var(--red); } .item.s-removed, .item.s-withdrawn { border-left-color: #999; }
.item .tico { width: 46px; height: 46px; border-radius: 12px; background: var(--black); color: var(--neon); display: grid; place-items: center; }
.item h3 { text-transform: none; font-style: normal; font-family: var(--body); font-weight: 800; font-size: 1.05rem; margin-bottom: .15rem; overflow-wrap: anywhere; }
.item h3 a { text-decoration: none; } .item h3 a:hover { text-decoration: underline; }
.meta { display: flex; gap: .5rem .9rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .85rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 999px; }
.badge.pending { background: #fff1d6; color: #7a4800; } .badge.live { background: #dcf3e3; color: #14602a; }
.badge.rejected { background: #fde0e3; color: #8f111b; } .badge.removed, .badge.withdrawn { background: #e9e9e6; color: #555; }
.item .acts { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.note { margin-top: .5rem; padding: .6rem .8rem; background: #fff4f4; border-left: 3px solid var(--red); border-radius: 6px; font-size: .9rem; }
.empty { text-align: center; padding: 3.5rem 1.5rem; background: var(--card); border: 2px dashed var(--line); border-radius: var(--r); }
.empty .ico { width: 3rem; height: 3rem; color: var(--muted); margin-bottom: .75rem; }
.empty h2 { margin-bottom: .5rem; }

/* contribute picker */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.type { display: flex; flex-direction: column; gap: .75rem; text-decoration: none; background: var(--card); border: 2px solid var(--black); border-radius: var(--r); padding: 1.3rem; position: relative; overflow: hidden; transition: transform .12s, box-shadow .12s; }
.type:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--neon), 6px 6px 0 2px var(--black); }
.type .tico { width: 52px; height: 52px; border-radius: 14px; background: var(--black); color: var(--neon); display: grid; place-items: center; }
.type .tico .ico { width: 1.6rem; height: 1.6rem; }
.type h2 { font-size: 1.4rem; }
.type p { color: var(--muted); margin: 0; font-size: .95rem; flex: 1; }
.type .go-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; }
.formcard { max-width: 860px; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; padding-top: 1.25rem; border-top: 2px solid var(--black); position: sticky; bottom: 0; background: linear-gradient(transparent, var(--card) 18px); padding-bottom: 1rem; margin-top: 1rem; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; margin: 0 0 1.5rem; }
.kv dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.success { text-align: center; max-width: 560px; margin: 2rem auto; }
.success .ok-ring { width: 84px; height: 84px; border-radius: 50%; background: var(--neon); border: 3px solid var(--black); display: grid; place-items: center; margin: 0 auto 1.25rem; }
.success .ok-ring .ico { width: 2.6rem; height: 2.6rem; }

/* dialogs, toasts, misc */
.dlg { border: 0; border-radius: 18px; padding: 0; width: min(480px, 100% - 2rem); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.dlg.wide { width: min(720px, 100% - 2rem); }
.dlg::backdrop { background: rgba(11,11,12,.6); backdrop-filter: blur(2px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.3rem; background: var(--black); color: var(--white); border-radius: 18px 18px 0 0; border-bottom: 3px solid var(--neon); }
.dlg-body { padding: 1.3rem; } .dlg-foot { display: flex; gap: .6rem; justify-content: flex-end; padding: 0 1.3rem 1.3rem; }
.dlg .icon-btn { color: var(--white); } .dlg .icon-btn:hover { background: var(--graphite); }
.toasts { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); display: grid; gap: .5rem; z-index: 200; width: min(520px, 100% - 2rem); }
.toast { background: var(--black); color: var(--white); padding: .85rem 1.1rem; border-radius: 12px; border-left: 5px solid var(--neon); box-shadow: var(--shadow); font-weight: 600; }
.toast.bad { border-left-color: var(--red); }
.loading { display: flex; gap: .75rem; align-items: center; justify-content: center; padding: 3rem; color: var(--muted); }
.spin { width: 1.2rem; height: 1.2rem; border: 3px solid var(--line); border-top-color: var(--black); border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.foot a { color: inherit; }
.simplefoot { background: var(--black); color: #888; padding: 1rem; text-align: center; font-size: .85rem; }
.simplefoot a { color: #bbb; }

@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; gap: 2rem; padding-block: 2rem; }
  .cols { grid-template-columns: 1fr; }
  .item { grid-template-columns: auto 1fr; }
  .item .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .who-email { display: none; }
  .nav { order: 3; width: 100%; margin: 0; }
  .kv { grid-template-columns: 1fr; gap: .1rem; } .kv dd { margin-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.row.center { justify-content: center; }
.gap { height: 1rem; }
.mt { margin-top: 1rem; }
.nested { border: 2px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem 1.25rem; background: #fafaf8; }
.nested .sub { font: 800 .95rem var(--body); font-style: normal; text-transform: none; margin: 1rem 0 .6rem; }
.nested .sub:first-child { margin-top: 0; }
