/* Inter (SIL Open Font License, public/fonts/Inter-OFL-LICENSE.txt), hosted here: the free font
   Meetup's pages fall back to. One variable file per alphabet covers every weight. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  /* Light: white cards on a very light grey page, near-black text (like Meetup). */
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #1d1d20;
  --muted: #5c5c62;
  --line: #e4e4e8;
  --brand: #1f6b43;
  --brand-text: #ffffff;
  --ball: #d4e83a;
  --yes: #1f8a4c;
  --yes-soft: #e3f4e9;
  --no: #b3413b;
  --no-soft: #f9e6e4;
  --wait: #a36a00;
  --wait-soft: #fbf0d9;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.06), 0 2px 8px rgba(20, 20, 30, 0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }

header.top {
  background: var(--brand);
  color: var(--brand-text);
  padding: 14px 16px;
}
header.top .inner { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
header.top a { color: inherit; text-decoration: none; font-weight: 700; font-size: 19px; }
.ball {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ball);
  box-shadow: inset 3px 0 0 -1px #fff8, inset -3px 0 0 -1px #fff8;
  flex: none;
}
header.top .spacer { flex: 1; }
header.top .small { font-size: 14px; font-weight: 500; opacity: 0.9; }

main { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
h1 { font-size: 28px; margin: 0 0 4px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
h3 { font-size: 16px; margin: 18px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.event-when { font-size: 18px; margin: 6px 0 2px; }
.event-where { color: var(--muted); margin: 0 0 14px; }
.note { background: var(--wait-soft); color: var(--text); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.owner-notice {
  background: var(--wait-soft); color: var(--text);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
  font-size: 15px; overflow-wrap: anywhere;
}
.cancel-banner { background: var(--no-soft); color: var(--no); border-radius: 10px; padding: 12px; font-weight: 600; margin: 10px 0; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.choices button { padding: 10px 6px; white-space: nowrap; }
button, .button {
  font: inherit; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--card); color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 48px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
button:disabled { opacity: 0.55; cursor: default; }
.primary { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.choice-yes.on { background: var(--yes); border-color: var(--yes); color: #fff; }
.choice-yes.on.waiting { background: var(--wait); border-color: var(--wait); color: #fff; }
.choice-maybe.on { background: var(--wait); border-color: var(--wait); color: #fff; }
.choice-no.on { background: var(--no); border-color: var(--no); color: #fff; }
.link-btn { background: none; border: none; color: var(--brand); padding: 6px 0; min-height: 0; font-weight: 600; }
.danger { color: var(--no); }
.full { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.status { border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; font-weight: 600; }
.status.going { background: var(--yes-soft); color: var(--yes); }
.status.waitlist { background: var(--wait-soft); color: var(--wait); }
.status.maybe { background: var(--wait-soft); color: var(--wait); }
.status.no { background: var(--no-soft); color: var(--no); }

.count-line { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 15px; margin: 0 0 4px; }
.count-line b { color: var(--text); }

ul.people { list-style: none; padding: 0; margin: 0; }
ul.people li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
ul.people li:last-child { border-bottom: none; }
.num { width: 24px; color: var(--muted); font-size: 14px; text-align: right; flex: none; }
.pname { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.badge {
  font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap;
}
.badge.Beginner { background: #e8f1fb; color: #2a5d8f; border-color: #cfe0f3; }
.badge.Intermediate { background: var(--wait-soft); color: var(--wait); border-color: transparent; }
.badge.Advanced { background: var(--no-soft); color: var(--no); border-color: transparent; }
.empty { color: var(--muted); font-style: italic; padding: 6px 0; }

label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 15px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=time], input[type=date], select, textarea {
  font: inherit; width: 100%;
  padding: 11px 12px; min-height: 48px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--text);
}
textarea { min-height: 80px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 14px 0; }
.check input { width: 22px; height: 22px; flex: none; }
.form-actions { margin-top: 18px; }

.error { background: var(--no-soft); color: var(--no); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
.ok { background: var(--yes-soft); color: var(--yes); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
.hidden { display: none !important; }

details > summary { cursor: pointer; font-weight: 600; padding: 4px 0; list-style-position: inside; }

.copybox { display: flex; gap: 8px; margin-top: 8px; }

/* account pages */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-wrap .show-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 4px 10px; font-size: 14px; }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 15px; }
ul.my-groups { list-style: none; padding: 0; margin: 0; }
ul.my-groups li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.my-groups li:last-child { border-bottom: none; }
ul.my-groups li > a { margin-left: auto; }
ul.my-groups .gname { flex: 1 1 12em; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.copybox input { flex: 1; min-width: 0; font-size: 14px; }

/* organizer page */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.tabs button { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: 15px; }
.tabs button.on { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.member { border-bottom: 1px solid var(--line); padding: 12px 0; }
.member:last-child { border-bottom: none; }
.member .top-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.member .details { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; margin-top: 2px; }
.member .row { margin-top: 8px; }
.member .row button { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.week { border-bottom: 1px solid var(--line); padding: 12px 0; }
.week:last-child { border-bottom: none; }
.week .top-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tag { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.tag.cancelled { background: var(--no-soft); color: var(--no); }
.tag.changed { background: var(--wait-soft); color: var(--wait); }
select.mini { min-height: 38px; padding: 6px 8px; width: auto; font-size: 14px; }

/* top-bar member menu */
header.top .inner { flex-wrap: wrap; }
header.top { letter-spacing: 0; }   /* Inter runs a little wide: keep the menu on one line */
nav#nav { display: flex; gap: 2px; flex-wrap: wrap; }
nav#nav a {
  font-size: 15px; font-weight: 600; padding: 6px 9px; border-radius: 999px;
  color: inherit; opacity: 0.85;
}
nav#nav a.on { background: rgba(255,255,255,0.18); opacity: 1; }
@media (max-width: 480px) {
  nav#nav { width: 100%; order: 3; margin-top: 8px; }
}

/* game cards */
.game-title { font-size: 14px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 2px; }
.game h2 { margin-bottom: 2px; }
.game .meta { color: var(--muted); margin: 0 0 12px; }
.game details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.section-label { color: var(--muted); font-size: 14px; font-weight: 600; margin: 4px 0 10px; }

/* board */
.post { border-bottom: 1px solid var(--line); padding: 12px 0; }
.post:last-child { border-bottom: none; }
.post .who { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.post .when { color: var(--muted); font-size: 13px; }
.post .text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }
.post .link-btn { font-size: 13px; }

/* email-writing box */
dialog.composer {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  background: var(--card); color: var(--text);
}
dialog.composer::backdrop { background: rgba(0, 0, 0, 0.45); }

/* board topics */
a.topic-row {
  display: block; color: inherit; text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
a.topic-row:last-child { border-bottom: none; }
a.topic-row:hover .topic-title { color: var(--brand); }
.topic-title { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.topic-meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.post.first { padding-top: 4px; }
.post.first .text { font-size: 17px; }

/* alert switch */
.alert-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 15px; margin-top: 10px; }
.follow-box { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 6px 0 12px; }
button.switch {
  position: relative; width: 50px; min-height: 30px; height: 30px; padding: 0;
  border-radius: 999px; background: var(--line); border: none; flex: none;
}
button.switch .knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s;
}
button.switch.on { background: var(--yes); }
button.switch.on .knob { left: 23px; }

/* big greeting on the home page */
h1.greeting { font-size: 32px; margin: 4px 0 2px; }

.meet-alert { margin-top: 12px; flex-wrap: nowrap; }
.meet-alert .small { color: var(--muted); }

.bell { display: inline-flex; vertical-align: -4px; flex: none; }
.topic-title .bell svg { width: 18px; height: 18px; }

/* ⭐ home-screen help */
.star-btn {
  background: none; border: none; min-height: 40px; padding: 4px 6px;
  font-size: 24px; line-height: 1; cursor: pointer; margin-left: 4px;
}
header.top .inner { position: relative; }
@media (max-width: 480px) {
  .top-icons { position: absolute; top: 0; right: 0; }
  header.top .inner { --icons-w: 88px; padding-right: var(--icons-w); }
  header.top .inner.three-icons { --icons-w: 128px; }
  /* The icons sit on the top row only, so the menu row can use the full width. */
  nav#nav { width: calc(100% + var(--icons-w)); margin-right: calc(-1 * var(--icons-w)); }
}
.top-icons { display: inline-flex; align-items: center; gap: 2px; }
.share-btn, .theme-btn {
  background: none; border: none; min-height: 40px; padding: 4px 6px; cursor: pointer;
  display: inline-flex; align-items: center;
}
ol.steps { padding-left: 22px; margin: 4px 0 8px; }
ol.steps li { margin: 6px 0; }
.howto-pic { margin: 8px 0 4px; max-width: 320px; }
.howto-pic svg { width: 100%; height: auto; display: block; }

.game details.comments { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.game details.comments textarea { min-height: 70px; }

/* Organizer: sign-ups waiting for approval, blocked people */
.count-dot {
  display: inline-block; margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 999px;
  background: #d62d20; color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.pending-card { border: 2px solid var(--wait); }
.warn-line { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--no-soft); color: var(--no); font-size: 14px; }

/* "Might be late" */
.late-line { margin-top: 8px; gap: 10px; align-items: center; }
.late-line label.check { margin: 0; }
.late-line select { width: auto; min-height: 38px; padding: 4px 10px; }
.late-tag { font-size: 12px; font-weight: 600; color: var(--wait); white-space: nowrap; }
.game-desc { margin: 8px 0 0; white-space: pre-line; overflow-wrap: anywhere; }

/* Join page: "Email the organizer" for the group code */
.code-request { margin-top: 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.code-request p.small { margin: 0 0 10px; }
.request-btn { width: 100%; background: var(--line); color: var(--muted); border-color: var(--line); }
.request-btn:disabled { opacity: 1; cursor: not-allowed; }
.request-btn.ready { background: var(--yes); border-color: var(--yes); color: #fff; cursor: pointer; }
.request-btn.ready:disabled { opacity: .7; }

/* Organizer: flyer preview */
.flyer-preview-box { margin-top: 6px; }
.flyer-preview { width: 100%; aspect-ratio: 8.5 / 11; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.flyer-preview.landscape { aspect-ratio: 11 / 8.5; }
.layout-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.layout-option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0; cursor: pointer; font-weight: 400; }
.layout-option:has(input:checked) { border-color: var(--brand); background: var(--yes-soft); }
.layout-option input { margin-top: 3px; }
.layout-option span { display: flex; flex-direction: column; }
.layout-option small { color: var(--muted); font-size: 13px; }
.flyer-tips { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.flyer-tips summary { font-weight: 700; cursor: pointer; }
.flyer-tips h3 { margin: 14px 0 6px; font-size: 16px; }
.flyer-tips ol, .flyer-tips ul { margin: 0; padding-left: 22px; }
.flyer-tips li { margin: 6px 0; }

/* ---------- Ladder ---------- */
ol.ladder { list-style: none; margin: 8px 0 0; padding: 0; }
ol.ladder li { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
ol.ladder li:last-child { border-bottom: none; }
ol.ladder li.me { background: var(--yes-soft); border-radius: 10px; }
ol.ladder .rank { width: 30px; flex: none; text-align: center; font-weight: 800; font-size: 18px; color: var(--brand); }
.you-tag { margin-left: 6px; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 7px; }
.busy-tag { font-size: 15px; }
.challenge-btn { min-height: 36px; padding: 4px 12px; font-size: 14px; background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.challenge-card.alert { border: 2px solid var(--wait); }
.decline-btn { color: var(--no); }
.chat { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; max-height: 360px; overflow-y: auto; }
.bubble { max-width: 85%; align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.bubble.mine { align-self: flex-end; background: var(--yes-soft); border-color: transparent; }
.bubble .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .when { font-size: 12px; color: var(--muted); margin-top: 2px; }
.won-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.score-form { margin-top: 8px; }
ul.results { list-style: none; margin: 0; padding: 0; }
ul.results li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.results li:last-child { border-bottom: none; }
ul.results .when { display: block; font-size: 13px; color: var(--muted); }
.mini-btn { min-height: 34px; min-width: 34px; padding: 2px 8px; font-size: 16px; }

/* Multiple ladders */
.ladder-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 6px 0 12px; padding-bottom: 2px; }
.ladder-tabs button { flex: none; min-height: 42px; padding: 8px 14px; border-radius: 999px; font-size: 15px; }
.ladder-tabs button.on { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.tab-rank { margin-left: 6px; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.25); border-radius: 999px; padding: 1px 7px; }
.ladder-tabs button:not(.on) .tab-rank { background: var(--yes-soft); color: var(--brand); }
.kind-tag { margin-left: 8px; vertical-align: middle; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--wait-soft); color: var(--wait); }
.ladder-tag { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--wait); }
.join-ladder { background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; }
.join-ladder p { margin: 0 0 10px; }
.join-ladder select { flex: 1; min-width: 160px; }

/* Link back to playlocalcourts.com at the bottom of every page */
.plc-footer { max-width: 680px; margin: 10px auto 28px; padding: 0 16px; display: flex; justify-content: center; }
.plc-home { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); text-decoration: none; }
.plc-home:hover { border-color: var(--brand); }
.plc-home img { width: 46px; height: 35px; flex: none; }
.plc-home span { display: flex; flex-direction: column; line-height: 1.2; }
.plc-home b { color: var(--brand); font-size: 15px; }
.plc-home small { color: var(--muted); font-size: 12.5px; }

/* start a group */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-weight: 600; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.search-row { flex-wrap: nowrap; }
.search-row input { flex: 1; min-width: 0; }
.search-results { list-style: none; padding: 0; margin: 8px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.search-results li { border-bottom: 1px solid var(--line); padding: 0; }
.search-results li:last-child { border-bottom: none; }
.search-results li.muted, .search-results li.error { padding: 10px 12px; margin: 0; border-radius: 0; }
.search-results .result { display: block; width: 100%; text-align: left; border: none; border-radius: 0; background: var(--card); padding: 10px 12px; min-height: 0; font-weight: 400; }
.start-map { height: 300px; border-radius: 12px; margin-top: 12px; border: 1px solid var(--line); z-index: 0; }
.report-link { display: block; margin: 10px auto 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.new-group { border: 2px solid var(--brand); }

/* legal pages and footers */
.legal h2 { margin: 26px 0 8px; }
.legal h3 { margin: 16px 0 6px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal li { margin: 4px 0; }
.legal-links { text-align: center; font-size: 13px; margin: 10px 0 0; color: var(--muted); }
.legal-links a { color: var(--muted); margin: 0 6px; }
.agree { align-items: flex-start; font-weight: 400; font-size: 15px; }
.agree input { margin-top: 2px; }

.rb-links { margin-left: auto; display: inline-flex; gap: 10px; }
.rb-links .link-btn { font-size: 13px; font-weight: 400; color: var(--muted); padding: 0; }

/* Sign-in page: what the app is for */
.hero { margin: 4px 0 18px; }
.hero-title { font-size: 28px; line-height: 1.15; margin: 4px 0 8px; }
.hero-kicker { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: var(--brand); }
.hero-title { margin-bottom: 4px; }
.hero-sub { margin: 0 0 12px; color: var(--muted); }
.hero-sub b { color: var(--text); }
.hero-art { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 12px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 16px; }
.hero-points li { display: flex; gap: 10px; align-items: baseline; }
.hero-points span { flex: none; width: 22px; text-align: center; }
body[data-page="signin"] .links { font-size: 17px; font-weight: 700; margin-top: 18px; }

/* Small "Directions" button after a meet's location. */
a.dir-btn {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600;
  color: var(--brand); background: var(--card); text-decoration: none; white-space: nowrap; vertical-align: 1px;
}

/* ----- One meet's page (/g/<slug>/m/<id>, meet.js) ----- */
/* The date on a meet card opens the meet's page. */
a.meet-link { color: inherit; text-decoration: none; }
a.meet-link:hover { text-decoration: underline; }

/* Wider than the other group pages, so the when/where card can sit beside the details. */
body[data-page="meet"] main, body[data-page="meet"] header.top .inner { max-width: 960px; }
body.has-meet-bar main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.back { margin: 0 0 10px; font-size: 15px; }
.back a { text-decoration: none; font-weight: 600; }
.meet-head h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: -0.025em; line-height: 1.15; }
.meet-head p { margin: 0 0 14px; }

.meet-grid { display: grid; gap: 0 20px; }
.meet-side { order: -1; }   /* phones: when and where first */
@media (min-width: 820px) {
  .meet-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .meet-side { order: 0; position: sticky; top: 16px; }
}
.when-where .ww-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.when-where .ww-row:first-child { padding-top: 0; }
.when-where .ww-row:last-child { border-bottom: none; padding-bottom: 0; }
.when-where .ww-row > div { min-width: 0; overflow-wrap: anywhere; }
.when-where .ww-icon { font-size: 20px; line-height: 1.3; flex: none; }
.when-where a.dir-btn { margin: 6px 6px 0 0; }
.when-where .count-line { margin: 0; align-self: center; }

/* Other dates of the same weekly meet. */
.series { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 4px; scrollbar-width: none; }
.series::-webkit-scrollbar { display: none; }
.series .chip {
  flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.series .chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-text); }
.series .chip.cancelled { text-decoration: line-through; color: var(--muted); }

/* The bar along the bottom: date, title, where you stand, RSVP, share. */
.meet-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(20, 40, 30, 0.10);
}
.meet-bar .inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.meet-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.meet-bar-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-bar .button, .meet-bar button.primary { white-space: nowrap; padding: 10px 14px; }
.meet-bar .meet-share { flex: none; width: 48px; padding: 0; border-radius: 50%; }
.pill { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--bg); color: var(--muted); white-space: nowrap; }
.pill.going { background: var(--yes-soft); color: var(--yes); }
.pill.waitlist, .pill.maybe { background: var(--wait-soft); color: var(--wait); }
.pill.no { background: var(--no-soft); color: var(--no); }
.pill.narrow { display: none; align-self: flex-start; margin-top: 3px; padding: 2px 8px; font-size: 12px; }
@media (max-width: 480px) {
  .meet-bar-text .small { display: none; }   /* phones: title, and where you stand under it */
  .meet-bar .pill.wide { display: none; }
  .meet-bar .pill.narrow { display: inline-block; }
  .meet-bar .inner { gap: 8px; }
}
#rsvp.flash { box-shadow: 0 0 0 3px var(--brand); transition: box-shadow 0.3s; }

/* The meet page's map (Leaflet + OpenStreetMap). */
.map-card { padding: 0; overflow: hidden; }
#meet-map { height: 260px; z-index: 0; }
.map-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; }
.map-caption > div { min-width: 0; overflow-wrap: anywhere; }
.type-pin { background: none; border: 0; }
.type-pin svg { filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
@media (max-width: 480px) { #meet-map { height: 220px; } }

/* ----- Shared group page: about card and short meet cards (app.js aboutCard, compactCard) ----- */
.about-card .about-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 10px; }
.about-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.about-facts b { color: var(--text); }
.share-group { min-height: 40px; padding: 8px 16px; }

.game.compact { cursor: pointer; }
.game.compact:hover { border-color: var(--brand); }
.compact-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.compact-top .pill { margin-top: 2px; }
.game.compact .meta { margin-bottom: 8px; }
.desc-snippet { color: var(--muted); font-size: 15px; margin: 0 0 10px; overflow-wrap: anywhere; }
.coming-line { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.coming-line b { color: var(--text); }
.details-link { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 600; text-decoration: none; }
.game.compact.is-cancelled h2 { text-decoration: line-through; color: var(--muted); }

/* Cover picture (common.js coverBox): the organizer's photo or the group's painted cover, 3:1. */
.cover { aspect-ratio: 3 / 1; border-radius: 10px; overflow: hidden; background: var(--line); }
.cover img, .cover svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-card .cover { margin: -6px -6px 14px; }

/* ----- Shared group page laid out like Meetup's (app.js groupPage) ----- */
body.group-wide main, body.group-wide header.top .inner { max-width: 1120px; }
.ic { display: inline-flex; flex: none; color: var(--muted); }
.group-head { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; margin: 4px 0 0; }
.gh-cover { flex: 1 1 460px; min-width: 0; }
.gh-cover .cover { aspect-ratio: 2 / 1; border-radius: 16px; }
.gh-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gh-info h1 { font-size: 36px; line-height: 1.15; margin: 0; }
.gh-facts { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.gh-facts > div { display: flex; gap: 10px; align-items: center; }
.gh-facts b { color: var(--text); }
.gh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gh-actions .share-group { min-height: 48px; padding: 10px 18px; }

.sec-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 28px 0 24px; overflow-x: auto; scrollbar-width: none; }
.sec-tabs::-webkit-scrollbar { display: none; }
.sec-tabs a { padding: 12px 0; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.sec-tabs a.on, .sec-tabs a:hover { color: var(--text); border-bottom-color: var(--brand); }

.group-layout { display: flex; flex-wrap: wrap; gap: 0 40px; align-items: flex-start; }
.group-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.group-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.sec-title { font-size: 24px; margin: 0 0 12px; }
.sec-title .muted, .side-card h2 .muted { font-size: 16px; font-weight: 500; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
.events-grid .card { margin: 0; }
.past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.past-card { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 14px 18px; }
.past-card:hover { border-color: var(--brand); }

.side-card h2 { font-size: 18px; margin: 0 0 14px; }
.side-head { display: flex; justify-content: space-between; align-items: baseline; }
.org-row { display: flex; align-items: center; gap: 12px; }
.org-row + .org-row { margin-top: 10px; }
.org-name { font-weight: 600; }
.face-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.face { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; font-size: 14px; color: #1d1d20; aspect-ratio: 1; }
.face-grid .face { width: 100%; }
.face.big { width: 44px; height: 44px; font-size: 17px; }
.face.blank { background: var(--line); }
.face-stack { display: inline-flex; margin-right: 4px; }
.face-stack .face { width: 28px; height: 28px; font-size: 12px; border: 2px solid var(--card); margin-right: -8px; }
.coming-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .gh-info h1 { font-size: 28px; }
  .gh-cover .cover { aspect-ratio: 5 / 2; }
}
#about .about-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; color: var(--muted); line-height: 1.6; }
.coming-line { flex-wrap: nowrap; align-items: center; }
.coming-line > span:last-child { min-width: 0; }
/* Phones: the footer (site link, report link, privacy/terms) wraps instead of running off the screen. */
.plc-footer, .plc-footer > * { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.legal-links { overflow-wrap: anywhere; }

/* ----- My listing (Practice Partner / Coach): /my-listing ----- */
.level-range { flex-wrap: nowrap; }
.level-range select { flex: 1; min-width: 0; }
.level-range span { color: var(--muted); }
.wants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.wants .check { margin: 8px 0; }
.free-grid { display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; text-align: center; font-size: 13px; }
.free-grid b { color: var(--muted); font-weight: 700; }
.free-grid .slot { margin: 0; display: block; cursor: pointer; }
.free-grid .slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.free-grid .slot span { display: block; border-radius: 8px; padding: 10px 0; background: var(--bg); border: 1px solid var(--line); font-weight: 600; color: var(--muted); }
.free-grid .slot input:checked + span { background: #2563a8; border-color: #2563a8; color: #fff; }
.free-grid .slot input:focus-visible + span { outline: 3px solid #9cc0ea; }
.rates-in { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
.rates-in label { margin: 0; font-weight: 500; }
.listing-tools { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.link-btn.danger { color: #b3261e; }

/* Ladder page: Print Flyer and Invite Friends buttons, and the flyer printing tips */
.ladder-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.ladder-actions button { min-height: 44px; }
.flyer-steps { margin: 0; padding-left: 22px; }
.flyer-steps li { margin: 6px 0; }
.flyer-pics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 14px 0; }
.flyer-pics figure { margin: 0; }
.flyer-pics svg { width: 100%; height: auto; display: block; }
.flyer-pics figcaption { font-size: 14px; color: var(--muted, #5b6b61); margin-top: 4px; }
.visitor-ladder h3 { margin: 16px 0 6px; }
