/* Colors: change these to restyle the site */
:root{--bg:#f7f7fb;--text:#1b1b2f;--accent:#e4572e;--card:#fff;--new:#16a34a;--line:#e3e3ec;--muted:#666}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);line-height:1.4}
header{background:var(--text);color:#fff;padding:2.2rem 1rem;text-align:center}
h1{margin:0;font-size:clamp(1.6rem,5vw,2.8rem);line-height:1.15}
#updated{opacity:.75;font-size:.9rem;margin:.6rem 0 0}
main{max-width:1100px;margin:auto;padding:1rem}
h2{border-bottom:3px solid var(--accent);padding-bottom:.3rem;margin:1.6rem 0 1rem;font-size:1.35rem}
section>h2:first-child{margin-top:0}
main>section{margin-bottom:1.5rem}
a{color:var(--accent)}
.note,.muted{color:var(--muted)}.muted{font-size:.85rem}

/* ---- cards ---- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:1rem;box-shadow:0 2px 8px #0000000d;
  display:flex;flex-direction:column;min-width:0}
.card h3{margin:.55rem 0 .35rem;font-size:1.08rem;line-height:1.25;overflow-wrap:anywhere}
.card p{margin:.15rem 0;font-size:.93rem;overflow-wrap:anywhere}
.card.is-new{border-color:var(--new);box-shadow:0 0 0 1px var(--new),0 2px 8px #0000000d}
.card.flash{box-shadow:0 0 0 4px var(--accent)}
.tag,.new{display:inline-block;border-radius:99px;padding:.15rem .6rem;font-size:.72rem;font-weight:600;color:#fff;vertical-align:middle}
.tag{background:var(--accent)}.new{background:var(--new);font-weight:700;letter-spacing:.03em;margin-left:.35rem}
.few{grid-column:1/-1;font-style:italic;color:var(--muted)}

/* ---- card buttons: Tickets on top, then 2x2 equal buttons, pinned to card bottom ---- */
.actions{margin-top:auto;padding-top:.9rem;display:grid;grid-template-columns:1fr 1fr;gap:.45rem}
.b,.btn,button{font:inherit;font-size:.85rem;font-weight:600;line-height:1.2;min-height:2.3rem;padding:.5rem .75rem;border-radius:8px;
  border:1px solid var(--line);background:#f1f1f6;color:var(--text);cursor:pointer;text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap}
.b:hover,button:hover{background:#e6e6ef}
.b.primary,.btn,button[type=submit]{background:var(--accent);border-color:var(--accent);color:#fff}
.b.primary{grid-column:1/-1;font-size:.95rem}
.b.primary:hover,.btn:hover,button[type=submit]:hover{filter:brightness(.93);background:var(--accent)}
.b.going.on{background:#ffd54a;border-color:#e7b900}
.btn.ghost{background:#fff;color:var(--accent)}
.b:focus-visible,.btn:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #2563eb;outline-offset:2px}

/* ---- Just Announced ---- */
.just{background:var(--card);border:1px solid var(--line);border-left:6px solid var(--new);border-radius:12px;padding:1rem 1.2rem}
.just h2{border-bottom-color:var(--new)}
.just ul{list-style:none;margin:0;padding:0}
.just li{display:flex;flex-wrap:wrap;align-items:center;gap:.15rem .5rem;padding:.5rem 0;border-bottom:1px solid var(--line)}
.just li:last-child{border-bottom:0}
.just li a{font-weight:600;text-decoration:none}.just li a:hover{text-decoration:underline}
.just li .new{margin-left:0;order:-1}

/* ---- filter bar ---- */
.filters{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;background:var(--card);border:1px solid var(--line);
  border-radius:12px;padding:.75rem 1rem}
.filters label{display:flex;align-items:center;gap:.4rem;font-size:.9rem;font-weight:600}
.filters select{font:inherit;font-size:.9rem;padding:.45rem .5rem;border:1px solid #cfcfda;border-radius:8px;background:#fff;min-width:0;max-width:100%}
.filters input[type=checkbox]{width:1.1rem;height:1.1rem;accent-color:var(--accent);margin:0}
.filters #f-clear{margin-left:auto}

/* ---- signup / calendar / submit boxes ---- */
.signup{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:1.2rem;box-shadow:0 2px 8px #0000000d}
.signup p{margin:.5rem 0}
.signup form{display:flex;gap:.5rem;flex-wrap:wrap}
.signup input[type=email]{flex:1 1 220px;min-width:0;font:inherit;padding:.6rem .75rem;border:1px solid #cfcfda;border-radius:8px}
.signup button[type=submit]{padding:.6rem 1.4rem}
.row{display:flex;flex-wrap:wrap;gap:.5rem}
code{background:#f1f1f6;padding:.15rem .35rem;border-radius:4px;font-size:.85rem;word-break:break-all}
#toast{position:fixed;bottom:1rem;left:50%;transform:translateX(-50%);background:var(--text);color:#fff;padding:.6rem 1rem;border-radius:8px;z-index:9}
footer{text-align:center;padding:2rem 1rem;color:var(--muted);font-size:.9rem}

/* ---- phones ---- */
@media (max-width:560px){
  main{padding:.75rem}
  .grid{grid-template-columns:1fr}
  .filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.6rem}
  .filters select{width:100%}
  .filters label:has(select){flex-direction:column;align-items:stretch;gap:.25rem}
  .filters #f-clear{margin-left:0;grid-column:1/-1}
  .just{padding:.9rem}
}
.badges{display:flex;flex-wrap:wrap;gap:.3rem}.badges .new{margin-left:0}
/* footer links + text pages (privacy / terms) */
footer p{margin:.3rem 0}.disclosure{font-size:.82rem}
.footlinks{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.2rem;margin-top:.8rem}
.footlinks a{color:var(--accent);font-weight:600;text-decoration:none}.footlinks a:hover{text-decoration:underline}
.doc{max-width:760px}.doc section{margin-bottom:1rem}.doc p{line-height:1.55}
/* top nav (Concerts / Sports) + sports note cards */
.tag.off{background:#6b7280}.note-card p{color:var(--text)}

/* "Who is this?" button + dialog */
.actions.has-bio .b.primary{grid-column:auto}
.actions.has-bio .b.whois{grid-column:auto}
.bio-overlay{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:1rem}
.bio-overlay[hidden]{display:none}
.bio-box{position:relative;background:#fff;color:#222;max-width:32rem;width:100%;max-height:85vh;overflow:auto;border-radius:12px;padding:1.25rem 1.25rem 1rem;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.bio-box h2{margin:0 2.5rem .6rem 0;font-size:1.15rem;line-height:1.3}
.bio-box p{margin:0 0 .75rem;line-height:1.5}
.bio-box .bio-src{font-size:.8rem;color:#666;margin:0}
.bio-x{position:absolute;top:.5rem;right:.5rem;min-width:2.5rem;font-size:1.4rem;line-height:1;padding:.3rem .6rem}
body.bio-open{overflow:hidden}
.bio-box h3{margin:1rem 0 .4rem;font-size:1rem;padding-top:.75rem;border-top:1px solid #eee}

/* ---- NEW this week: gold pill in the card's top corner, warm tint + glow; older cards stay plain ---- */
.card{position:relative}
.new{background:#facc15;color:#1b1b2f;font-weight:800;letter-spacing:.06em;box-shadow:0 1px 2px #0003}
.card.is-new{background:#fffbea;border-color:#f59e0b;box-shadow:0 0 0 2px #f59e0b,0 4px 14px #f59e0b40}
.card.is-new .badges .new{position:absolute;top:-.55rem;right:.75rem;padding:.2rem .7rem;font-size:.78rem;border:2px solid #fff}
.added-on{font-size:.78rem!important;color:#92400e;font-weight:600}
.newcount{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .6rem;background:#fffbea;border:1px solid #f59e0b;border-radius:12px;padding:.6rem .9rem;margin:0 0 1rem;font-size:.95rem}
.newcount .new{margin-left:0}
.newcount .newtoggle{margin-left:auto;font:inherit;font-size:.85rem;font-weight:700;padding:.4rem .8rem;border-radius:99px;border:1px solid #b45309;background:#fff;color:#92400e;cursor:pointer}
.newcount .newtoggle[aria-pressed="true"]{background:#b45309;color:#fff}
.just{border-left-color:#f59e0b}.just h2{border-bottom-color:#f59e0b}

/* ---- header subtitle + Concerts | Sports toggle ---- */
.subtitle{margin:.45rem 0 0;font-size:clamp(1rem,3.2vw,1.25rem);font-weight:600;color:#ffffffd9}
.segtoggle{display:flex;justify-content:center;margin:1rem auto .25rem;padding:0 1rem}
.segtoggle{max-width:420px}
.segtoggle a{flex:1;text-align:center;text-decoration:none;font-weight:700;font-size:1.05rem;min-height:2.9rem;display:flex;align-items:center;justify-content:center;
  border:2px solid var(--accent);color:var(--accent);background:var(--card)}
.segtoggle a:first-child{border-radius:99px 0 0 99px;border-right-width:1px}
.segtoggle a:not(:first-child):not(:last-child){border-left-width:1px;border-right-width:1px}
@media (max-width:440px){.segtoggle{padding:0 .75rem}.segtoggle a{font-size:.98rem;padding:0 .35rem}}
.segtoggle a:last-child{border-radius:0 99px 99px 0;border-left-width:1px}
.segtoggle a[aria-current=page]{background:var(--accent);color:#fff}
.segtoggle a:not([aria-current]):hover{background:#e4572e14}
/* date range picker */
.range{background:var(--card);border:1px solid #e4e4ec;border-radius:12px;padding:.75rem 1rem;margin:0 0 1rem}
.range-ask{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-weight:600}
.r-dates{display:flex;flex-wrap:wrap;gap:.75rem;margin:.75rem 0 .5rem}
.r-dates label{display:flex;flex-direction:column;font-size:.85rem;gap:.25rem;flex:1 1 9rem}
.r-dates input{font:inherit;min-height:2.4rem;padding:.3rem .5rem;border:1px solid #ccc;border-radius:8px}
.chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:.25rem 0 .5rem}
.chip{border-radius:99px;border:2px solid var(--accent);color:var(--accent);background:var(--card);padding:.35rem .8rem}
.range .b.primary{grid-column:auto}
/* ---- "I'm interested" (♥) next to "I'm going" (★); the two are exclusive (marks.js) ---- */
.b.interested.on{background:#ccfbf1;border-color:#0d9488;color:#115e59}
.b.going.on{color:var(--text)}
/* odd button left over at the end of the 2-column grid spans the full row */
.actions:not(.has-bio)>.b:last-child:nth-child(even),.actions.has-bio>.b:last-child:nth-child(odd){grid-column:1/-1}
/* card accent stripe: violet = going, teal = interested (NEW keeps its gold glow) */
.card.mark-going{border-left:6px solid #7c3aed}
.card.mark-interested{border-left:6px solid #0d9488}
