:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c2330;
  --muted: #5d6778;
  --border: #dde2ea;
  /* Combee's honey accent: a deep amber on light backgrounds (readable on white). */
  --accent: #c25e00;
  --accent-soft: #fff1d6;
  --on-accent: #fff; /* text and icons over the accent */
  --ca-purple: #7b3fe4; /* Community Ambassador: the star and its label */
  --c-checkins: #2f6fdf; /* check-ins in the charts: a data colour, apart from the accent (the meetups line is orange) */
  --danger: #c0392b;
  --ok: #16835a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11151c; --surface: #1a2029; --text: #e6e9ef; --muted: #9aa4b5;
    --border: #2c3442; --accent: #f5a524; --accent-soft: #3a2a12; --on-accent: #2a1700; --c-checkins: #6b9cf5;
    --danger: #ff7b6b; --ok: #4cc794;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11151c; --surface: #1a2029; --text: #e6e9ef; --muted: #9aa4b5;
  --border: #2c3442; --accent: #f5a524; --accent-soft: #3a2a12; --on-accent: #2a1700; --c-checkins: #6b9cf5;
  --danger: #ff7b6b; --ok: #4cc794;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* `hidden` must win over component display rules (label, .more, …). */
[hidden] { display: none !important; }
/* Nothing (like a hidden tooltip) may make the page scroll sideways. */
html, body { overflow-x: clip; }
/* Always keep room for the vertical scrollbar, so the centred layout (the
   navigation bar and the columns) doesn't shift between a page that scrolls
   and one that doesn't, e.g. a community's page and its admin panel. */
html { scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
h1 { font-size: 1.4rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 .7rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.page { max-width: 1000px; margin: 0 auto; padding: 20px 16px 40px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; margin-bottom: 16px; }
.page-head p { margin: .2rem 0 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 16px; }

/* Summary table above the map */
.summary { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.summary th, .summary td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.summary th { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.summary td.num, .summary th.num { text-align: right; white-space: nowrap; }
.summary td.when { white-space: nowrap; }
.summary tbody tr { cursor: pointer; }
.summary tbody tr:hover, .summary tbody tr:focus-visible { background: var(--accent-soft); outline: none; }
.summary tbody tr:last-child td { border-bottom: 0; }
.summary .name { font-weight: 500; }
.summary .sub { display: block; font-size: .8rem; color: var(--muted); }
.summary .meetup { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .35rem .7rem; }
.summary td { vertical-align: middle; }
.thumb {
  width: 48px; height: 48px; flex: none; border-radius: 10px; object-fit: cover;
  background: var(--border); display: block;
  border: 3px solid var(--type-color, var(--border));
}
/* Cover + optional ambassador star in its top-right corner. */
.thumb-wrap { position: relative; display: block; flex: none; line-height: 0; }
.ca-star { position: absolute; top: -6px; right: -6px; width: 19px; height: 19px; display: block; }
.ca-star svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / .45)); }
.ca-star-bg { fill: var(--ca-purple); stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }
.ca-star-fg { fill: #fff; stroke: #fff; stroke-width: .4; stroke-linejoin: round; }
.thumb-empty { background: color-mix(in srgb, var(--type-color) 25%, var(--surface)); }
.meetup-text { min-width: 0; }
.meetup-text .name { display: block; margin-bottom: 3px; }

/* Meetup type as a pill in the meetup's colour (summary table and popups). */
.type-chip {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: .1rem .55rem; border-radius: 999px; vertical-align: middle;
  font-size: .72rem; font-weight: 600; line-height: 1.4;
  color: color-mix(in srgb, var(--type-color) 78%, var(--text));
  background: color-mix(in srgb, var(--type-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--type-color) 55%, transparent);
}
.show-sm { display: none; }
/* Campfire button: a round icon, like in the map popups. */
.campfire-link {
  justify-self: end; display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  color: var(--on-accent); background: var(--accent); text-decoration: none;
}
.campfire-link:hover, .campfire-link:focus-visible { filter: brightness(1.1); }
.campfire-link .ico { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Expand/collapse control under the summary: a divider with a centred chevron pill. */
.more-wrap { position: relative; display: flex; justify-content: center; margin-top: .5rem; }
.more-wrap::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--border);
}
.more-wrap:has(.more[hidden])::before { display: none; }
/* Honeycomb cells: the site's toggles (.more, "Filtros", the menu's "Cargar
   más", the <details> summaries) are pills with pointed, hexagonal ends. The
   1px border is the element's own background (--hex-line) showing around an
   inner fill (::before, --hex-fill) clipped 1px smaller. */
:where(.more, .filters-toggle, .nav-more, .disclosure > summary) {
  --hex: 11px; --hex-line: var(--border); --hex-fill: var(--surface);
  position: relative; isolation: isolate; border: 0; border-radius: 0; background: var(--hex-line);
  clip-path: polygon(var(--hex) 0, calc(100% - var(--hex)) 0, 100% 50%, calc(100% - var(--hex)) 100%, var(--hex) 100%, 0 50%);
  transition: color .15s, background-color .15s;
}
/* Over the base `button` rule (blue background and border), which :where() alone can't beat. */
.more, .filters-toggle, .nav-more { border: 0; background: var(--hex-line); }
:where(.more, .filters-toggle, .nav-more, .disclosure > summary)::before {
  content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--hex-fill);
  clip-path: polygon(calc(var(--hex) - .5px) 0, calc(100% - var(--hex) + .5px) 0, 100% 50%, calc(100% - var(--hex) + .5px) 100%, calc(var(--hex) - .5px) 100%, 0 50%);
  transition: background-color .15s;
}
.more {
  display: inline-flex; align-items: center; gap: .35rem; padding: .38rem 1.1rem .38rem .95rem;
  font-size: .8rem; font-weight: 500; color: var(--muted);
}
.more:hover, .more:focus-visible { --hex-line: var(--accent); --hex-fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); outline: none; }
.more[hidden] { display: none; }
.more .chevron { transition: transform .2s ease; }
.more[aria-expanded="true"] .chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .more .chevron { transition: none; } }
@media (max-width: 560px) {
  .thumb { width: 40px; height: 40px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
}
@media (max-width: 560px) {
  .summary .hide-sm { display: none; }
  .summary th, .summary td { padding: .45rem .35rem; }
}
.empty { color: var(--muted); padding: .8rem .2rem; margin: 0; }

.map { height: 460px; border-radius: 10px; border: 1px solid var(--border); z-index: 0; }
.map.small-map { height: 340px; }
@media (max-width: 600px) { .map { height: 340px; } }
/* Zoom-dependent cluster: ring in the colours of the meetup types it holds. */
.cluster-ring {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  padding: 4px; box-shadow: 0 2px 6px rgb(0 0 0 / .35); cursor: pointer; transition: transform .15s;
}
.cluster-ring b {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: #1f2733; color: #fff; border: 2px solid #fff; font: 700 13px/1 system-ui, sans-serif;
}
.cluster:hover .cluster-ring { transform: scale(1.08); }
.pin span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .4);
  color: #fff; font: 600 12px/1 system-ui, sans-serif;
}
/* Meetups of today: a pulsing green halo, like the clusters on the home map. */
.pin.is-today span, .cluster.is-today .cluster-ring { position: relative; box-shadow: 0 0 0 3px rgb(22 163 74 / .45), 0 1px 4px rgb(0 0 0 / .4); }
.pin.is-today span::after, .cluster.is-today .cluster-ring::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #16a34a;
  animation: cluster-pulse 2s ease-out infinite; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .pin.is-today span::after, .cluster.is-today .cluster-ring::after { animation: none; opacity: 0; } }
.leaflet-popup-content { font: 13px/1.4 system-ui, sans-serif; }

/* Map credits: an "i" badge that unfolds into a pill. The map tiles are always
   light, so the badge keeps light colours in both themes. */
.leaflet-container .leaflet-control-attribution.attrib-compact {
  position: relative; box-sizing: border-box;
  margin: 0 8px 8px 0; height: 26px; max-width: 26px; padding: 0 0 0 26px;
  overflow: hidden; white-space: nowrap; cursor: default;
  border-radius: 13px; background: rgb(255 255 255 / .92); box-shadow: 0 1px 4px rgb(0 0 0 / .25);
  font: 11px/26px system-ui, -apple-system, "Segoe UI", sans-serif; color: transparent;
  transition: max-width .25s ease, padding .25s ease, color .15s ease;
}
.leaflet-control-attribution.attrib-compact::before {
  content: "i"; position: absolute; right: 0; top: 0; width: 26px; height: 26px;
  display: grid; place-items: center;
  font: italic 700 14px/1 Georgia, "Times New Roman", serif; color: #3a4556;
}
.leaflet-control-attribution.attrib-compact a { color: transparent; text-decoration: none; transition: color .15s ease; }
.leaflet-control-attribution.attrib-compact .leaflet-attribution-flag { display: none !important; }
.leaflet-control-attribution.attrib-compact:hover,
.leaflet-control-attribution.attrib-compact.is-open,
.leaflet-control-attribution.attrib-compact:focus-visible,
.leaflet-control-attribution.attrib-compact:has(a:focus-visible) {
  max-width: min(420px, calc(100vw - 56px)); padding: 0 30px 0 12px; color: #4a5566; outline: none;
}
.leaflet-control-attribution.attrib-compact:hover a,
.leaflet-control-attribution.attrib-compact.is-open a,
.leaflet-control-attribution.attrib-compact:focus-visible a,
.leaflet-control-attribution.attrib-compact:has(a:focus-visible) a { color: #c25e00; }
.leaflet-control-attribution.attrib-compact:focus-visible { box-shadow: 0 0 0 2px #c25e00, 0 1px 4px rgb(0 0 0 / .25); }
@media (prefers-reduced-motion: reduce) {
  .leaflet-control-attribution.attrib-compact, .leaflet-control-attribution.attrib-compact a { transition: none; }
}
/* In a left corner (the landing's map, whose right corner has the Canary Islands): the "i" on the left, unfolding to the right. */
.leaflet-container .leaflet-left .leaflet-control-attribution.attrib-compact { margin: 0 0 8px 8px; padding: 0 0 0 26px; }
.leaflet-left .leaflet-control-attribution.attrib-compact::before { right: auto; left: 0; }
.leaflet-left .leaflet-control-attribution.attrib-compact:hover,
.leaflet-left .leaflet-control-attribution.attrib-compact.is-open,
.leaflet-left .leaflet-control-attribution.attrib-compact:focus-visible,
.leaflet-left .leaflet-control-attribution.attrib-compact:has(a:focus-visible) { padding: 0 12px 0 30px; }

/* Forms */
form.stack { display: grid; gap: .7rem; max-width: 420px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); }
input, select {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; padding: .45rem .55rem; width: 100%;
}
button {
  font: inherit; cursor: pointer; border-radius: 6px; padding: .45rem .9rem;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
}
button.secondary { background: none; color: var(--accent); }
button.danger { background: none; border-color: var(--border); color: var(--danger); padding: .25rem .6rem; font-size: .85rem; }
button.danger.armed { background: var(--danger); border-color: var(--danger); color: #fff; }
button:disabled { opacity: .6; cursor: progress; }
.msg { margin: 0; font-size: .9rem; min-height: 1.3em; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--ok); }

.zones { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 6px; }
.zones li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; border: 1px solid var(--border); border-radius: 8px; padding: .5rem .7rem; }
.zones .coords { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.zones .zone-text { flex: 1; min-width: 0; }
/* Zone number: a small honeycomb cell, the same as its pin on the map. */
.zone-num {
  flex: none; display: grid; place-items: center; width: 26px; height: 30px;
  font: 800 .8rem/1 system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px rgb(90 40 0 / .45);
  background: linear-gradient(135deg, #f7b500, #f28c00 55%, #e2580b);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
/* Zone pins on the maps: the numbered honeycomb cell with a tip at the centre. */
.zone-pin { background: none; border: 0; }
.zone-pin svg { position: absolute; z-index: 0; inset: 0; /* Leaflet puts map SVGs at 200 */ width: 36px; height: 44px; overflow: visible; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .35)); }
.zone-pin-cell { stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; }
.zone-pin-tip { fill: #fff; }
.zone-pin span {
  position: absolute; z-index: 1; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center;
  font: 800 15px/1 system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px rgb(90 40 0 / .5);
}

/* Meetup popups: themed card with the cover image and the type colour. */
.meetup-popup .leaflet-popup-content-wrapper {
  padding: 0; overflow: hidden; border-radius: 14px;
  background: var(--surface); color: var(--text);
  box-shadow: 0 10px 30px rgb(0 0 0 / .25), 0 2px 6px rgb(0 0 0 / .12);
}
.meetup-popup .leaflet-popup-content { margin: 0; width: auto !important; min-width: 260px; font: 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
.meetup-popup .leaflet-popup-tip { background: var(--surface); box-shadow: none; }
.meetup-popup a.leaflet-popup-close-button {
  top: 10px; right: 8px; width: 26px; height: 26px;
  display: grid; place-items: center; padding: 0; border-radius: 50%;
  font: 18px/1 system-ui, sans-serif; color: var(--muted); transition: background-color .15s, color .15s;
}
.meetup-popup a.leaflet-popup-close-button:hover { color: var(--text); background: var(--bg); }

.mp { --type-color: var(--accent); }
.mp .ico { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mp-button {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  text-decoration: none; color: var(--on-accent) !important; background: var(--accent); transition: filter .15s;
}
.mp-button:hover, .mp-button:focus-visible { filter: brightness(1.1); }

.mp-group-head { padding: 12px 42px 10px 14px; border-bottom: 1px solid var(--border); display: grid; gap: 3px; }
.mp-group-head strong { font-size: .95rem; }
.mp-group-head span { display: flex; gap: 6px; align-items: flex-start; font-size: .78rem; color: var(--muted); }
.mp-list { list-style: none; margin: 0; padding: 6px; max-height: 280px; overflow-y: auto; display: grid; gap: 2px; }
.mp-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.mp-item:hover { background: var(--bg); }
.mp-thumb { display: block; width: 44px; height: 44px; flex: none; border-radius: 9px; object-fit: cover; border: 3px solid var(--type-color); background: var(--border); }
.mp-thumb-empty { background: color-mix(in srgb, var(--type-color) 25%, var(--surface)); }
.mp-item-text { min-width: 0; flex: 1; display: grid; gap: 3px; justify-items: start; }
.mp-item-title { font-weight: 600; line-height: 1.25; }
.mp-item-meta { display: flex; align-items: center; gap: 4px; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.mp-item-meta .ico { width: 13px; height: 13px; }
.mp-sep { width: 8px; }
.mp-item-address { white-space: normal; align-items: flex-start; }

/* Admin panel tabs */
.tabs {
  display: flex; gap: 4px; margin-bottom: 16px; padding: 4px; overflow-x: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.tabs button {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .55rem .9rem; border: 0; border-radius: 9px; white-space: nowrap;
  font-weight: 500; color: var(--muted); background: none; transition: background-color .15s, color .15s;
}
.tabs button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button:hover { color: var(--text); background: var(--bg); }
.tabs button[aria-selected="true"] { color: var(--accent); background: var(--accent-soft); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; }
.panel-head h2 { margin-bottom: .3rem; }
.past-table tbody tr { cursor: default; }
.summary.past-table tbody tr:hover { background: none; }
.past-table .reg { font-weight: 600; font-size: 1rem; }
.placeholder { text-align: center; padding: 40px 16px; }
.placeholder svg { width: 40px; height: 40px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; opacity: .6; }
.placeholder h2 { margin: .6rem 0 .3rem; }
.placeholder p { margin: 0; }

/* "i" help badge with a tooltip on hover/focus. */
.info {
  position: relative; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 4px;
  border-radius: 50%; border: 1px solid var(--border); vertical-align: 1px; cursor: help;
  font: italic 700 11px/1 Georgia, "Times New Roman", serif; color: var(--muted); background: var(--bg);
}
.info:hover, .info:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }
.info .tip {
  position: absolute; z-index: 20; left: -10px; bottom: calc(100% + 8px); transform: translateY(4px);
  width: max-content; max-width: min(280px, 80vw); padding: 8px 10px; border-radius: 8px;
  font: 400 .8rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; white-space: normal;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgb(0 0 0 / .25);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s, visibility .15s;
  translate: var(--shift, 0px) 0; /* set by common.js so it fits on screen */
}
.info .tip::after {
  content: ""; position: absolute; top: 100%; left: calc(13px - var(--shift, 0px));
  border: 5px solid transparent; border-top-color: var(--border);
}
.info:hover .tip, .info:focus .tip, .info:focus-within .tip { opacity: 1; visibility: visible; transform: none; }
#tz-preview { display: block; margin-top: 4px; color: var(--muted); }

/* Config tab: compact cards */
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.card-head h2 { margin: 0; }
/* Landing map: on phones the hint goes under the title instead of beside it. */
@media (max-width: 560px) {
  #comunidades .card-head { flex-direction: column; align-items: flex-start; gap: 2px; }
}
.btn-sm, .icon-btn { display: inline-flex; align-items: center; gap: 6px; }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; border-radius: 999px; }
.btn-sm svg, .icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zones { margin-bottom: .4rem; }
.zones li { padding: .4rem .6rem; }

.disclosure { margin-top: .4rem; }
.disclosure summary {
  --hex-line: color-mix(in srgb, var(--accent) 45%, var(--border));
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; user-select: none;
  font-size: .85rem; font-weight: 500; color: var(--accent); padding: .38rem 1.1rem .38rem .95rem;
}
.disclosure summary:hover, .disclosure summary:focus-visible, .disclosure[open] > summary {
  --hex-line: var(--accent); --hex-fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); outline: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.disclosure[open] summary .chevron { transform: rotate(180deg); }
.disclosure .map { margin-top: .6rem; }
/* Centred disclosures ("Ver mapa de zonas", a meetup's "Resumen"): on a divider,
   like the lists' "N más". The line is the details' background, at the height
   of the summary's middle. */
.disclosure.is-centered { --summary-h: 32px;
  background: linear-gradient(var(--border), var(--border)) 0 calc(var(--summary-h) / 2) / 100% 1px no-repeat; }
.disclosure.is-centered > summary { display: flex; width: fit-content; min-height: var(--summary-h); margin-inline: auto; }
#zones-map { margin-top: .9rem; }

.settings { display: grid; gap: 0; }
.setting {
  display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: .5rem 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--border);
}
.setting > label, .setting > .setting-label { display: flex; align-items: center; font-size: .9rem; color: var(--text); font-weight: 500; }
.club-fixed { gap: .15rem !important; }
.club-fixed code { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; user-select: all; }
.setting .control { display: grid; gap: .4rem; max-width: 420px; }
.settings-actions { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding-top: .8rem; }
@media (max-width: 560px) {
  .setting { grid-template-columns: 1fr; gap: .35rem; }
  .settings-actions { flex-direction: column-reverse; align-items: stretch; }
}

/* Modal (native <dialog>) */
/* While one is open the page behind stays still (the gutter is reserved, so nothing shifts),
   and scrolling to the end of a long modal doesn't carry on to the page. */
html:has(dialog:modal) { overflow: hidden; }
dialog:modal { overscroll-behavior: contain; }
.modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 18px; overflow: auto;
  border: 1px solid var(--border); border-radius: 14px; color: var(--text); background: var(--surface);
  box-shadow: 0 20px 60px rgb(0 0 0 / .45);
}
.modal::backdrop { background: rgb(8 12 18 / .55); backdrop-filter: blur(2px); }
.modal .stack { max-width: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; }
.icon-btn { justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 0; color: var(--muted); background: none; }
.icon-btn:hover { color: var(--text); background: var(--bg); }
.picker-map { height: 240px; cursor: crosshair; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; }

/* Toast notifications (bottom centre, auto-dismiss). */
.toasts {
  position: fixed; z-index: 1000; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none;
}
.toast {
  position: relative; overflow: hidden; pointer-events: auto;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px;
  font-size: .9rem; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgb(0 0 0 / .3); animation: toast-in .25s ease-out;
}
.toast.leaving { animation: toast-out .25s ease-in forwards; }
.toast-icon { flex: none; width: 20px; height: 20px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.toast-ok .toast-icon { stroke: var(--ok); }
.toast-error .toast-icon { stroke: var(--danger); }
.toast-error { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.toast-text { flex: 1; }
.toast-close { flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: none; }
.toast-close:hover { color: var(--text); background: var(--bg); }
.toast-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* Thin bar showing the time left before it disappears. */
.toast-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: toast-timer linear forwards; }
.toast-ok .toast-timer { background: var(--ok); }
.toast-error .toast-timer { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }
@keyframes toast-timer { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.leaving { animation-duration: 1ms; } }

/* Summary figures above the past meetups table. */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: .6rem 0 .9rem; }
.stat { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.stat strong { font-size: 1.25rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: .75rem; color: var(--muted); }
@media (max-width: 560px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* Import dialog */
.modal textarea {
  font: .8rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; padding: .45rem .55rem; width: 100%; resize: vertical;
}
.disclosure.help { margin: 0; }
.steps { margin: .5rem 0; padding-left: 1.3rem; display: grid; gap: .35rem; }
.steps code, .modal p code { font-size: .78rem; overflow-wrap: anywhere; }

/* Progress bar (import dialog) */
.progress { display: grid; gap: 6px; }
.progress-track { position: relative; height: 8px; overflow: hidden; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .3s ease; }
.progress-track.indeterminate .progress-bar { position: absolute; width: 35%; animation: progress-slide 1.2s ease-in-out infinite; }
.progress-label { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes progress-slide { from { left: -35%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .progress-track.indeterminate .progress-bar { animation: none; left: 0; width: 100%; opacity: .5; } }

/* Past meetups: head actions and destructive buttons */
.btn-sm.danger-outline { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); background: none; }
.btn-sm.danger-outline:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.danger-solid:disabled { opacity: .45; cursor: not-allowed; }
.warning { margin: 0; padding: 10px 12px; border-radius: 8px; color: var(--text);
  background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.modal label code { font-size: .85rem; padding: 1px 5px; border-radius: 4px; background: var(--bg); color: var(--text); user-select: all; }

.past-table td.num { white-space: nowrap; }

/* Public page: map inside the upcoming-meetups card, stats and last meetups. */
.map.in-card { margin-top: .8rem; }
.stat .stat-sub { font-size: .72rem; }

/* ---- Landing page ---- */
/* Combee's hero: honey yellow to orange, over a faint honeycomb. */
.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); /* never wider than the page */ gap: 22px;
  margin-bottom: 16px; padding: 28px; border-radius: 18px; color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='1.2' d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7V97'/%3E%3C/svg%3E"),
    radial-gradient(circle var(--hero-r, farthest-corner) at 88% var(--hero-y, 12%), rgb(255 255 255 / .22), transparent var(--hero-glow, 42%)),
    linear-gradient(135deg, #f7b500 0, #f28c00 var(--hero-mid, 48%), #e2580b var(--hero-len, 100%));
  /* --hero-*: set by home.js in px from the folded header, so unfolding "Más"
     extends the gradient (its end colour) instead of stretching it. */
  box-shadow: 0 14px 34px rgb(226 88 11 / .3);
}
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.hero-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 900 clamp(2rem, 5vw, 2.8rem)/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.02em; text-shadow: 0 2px 10px rgb(90 40 0 / .4); }
.hero-brand img { width: 1.15em; height: 1.15em; filter: drop-shadow(0 3px 6px rgb(20 20 60 / .35)); }
.hero-mascot { width: clamp(130px, 22vw, 210px); height: auto; filter: drop-shadow(0 12px 18px rgb(20 20 60 / .35)); animation: mascot-float 5s ease-in-out infinite; }
@keyframes mascot-float { 50% { transform: translateY(-9px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-mascot { animation: none; } }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
/* The landing's tagline under "Combee": the eyebrow's lettering, a size up, in balanced lines. */
.hero-tagline { max-width: 34ch; font-size: clamp(.84rem, 1.7vw, 1.02rem); line-height: 1.45; letter-spacing: .07em; opacity: .95; text-wrap: balance; text-shadow: 0 1px 6px rgb(90 40 0 / .45); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px; padding: .6rem 1.1rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; color: #9a3a00; background: #fff; transition: transform .15s, box-shadow .15s;
}
.btn-hero:hover, .btn-hero:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / .18); }
.btn-hero .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hero-figure {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 12px;
  background: rgb(255 255 255 / .13); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(4px);
}
.hero-figure strong { font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-figure span { opacity: .9; min-width: 0; line-height: 1.25; }
.hero-figures[hidden] { display: none; }
/* "Más cifras": the list's divider and pill, in the header's colours, with room around it. */
.hero-more-wrap { margin: -4px 0; } /* the header's grid gap already spaces it */
.hero-more-wrap[hidden] { display: none; }
.hero-more-wrap::before { border-top-color: rgb(255 255 255 / .3); }
.hero .more { --hex-line: rgb(255 255 255 / .24); color: #fff; backdrop-filter: blur(4px); }
.hero .more::before { display: none; } /* see-through cell over the gradient: no separate line */
.hero .more:hover, .hero .more:focus-visible { --hex-line: #fff; color: #9a3a00; }
.hero-figures .hero-error { grid-column: 1 / -1; margin: 0; }
/* Medium screens: four figures still fit in a row with the number over its label. */
@media (max-width: 960px) {
  .hero-figure { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
  .hero-figure strong { font-size: 1.45rem; }
  .hero-figure span { font-size: .8rem; }
}
@media (max-width: 720px) {
  .hero { padding: 22px 18px; }
  .hero-main { grid-template-columns: minmax(0, 1fr) 96px; }
  .hero-mascot { width: 96px; align-self: start; }
  .hero-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .hero-figure { flex-direction: column; gap: 4px; padding: 10px; }
  .hero-figure strong { font-size: 1.25rem; }
  .hero-figure span { font-size: .72rem; }
}


/* Spain map with a Canary Islands inset in the bottom-right corner (over the sea, so the whole peninsula shows). */
.spain-map-wrap { position: relative; }
.map.spain-map { height: 460px; }
@media (max-width: 600px) { .map.spain-map { height: 360px; } }
.canarias-inset {
  position: absolute; right: 10px; bottom: 10px; z-index: 500; width: min(38%, 240px);
  border-radius: 10px; overflow: hidden; border: 2px solid var(--surface); box-shadow: 0 4px 14px rgb(0 0 0 / .25);
}
.canarias-map { height: 140px; background: var(--bg); }
/* Phones: too small as an inset, so the Canary Islands get their own map under
   the peninsula's, full width. */
@media (max-width: 600px) {
  .canarias-inset { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 10px; border: 1px solid var(--border); box-shadow: none; }
  .canarias-map { height: 190px; }
  .canarias-map .leaflet-control-zoom { margin-top: 30px; } /* under the "Canarias" label */
}
/* The small inset (desktop): zoom buttons at the size of its reset button (24px),
   with its look, under the "Canarias" label. */
.canarias-map:not(.map-controls) .leaflet-control-zoom.leaflet-bar {
  margin: 26px 0 0 4px; border: 0; border-radius: 6px; box-shadow: 0 1px 4px rgb(0 0 0 / .25); overflow: hidden;
}
.canarias-map:not(.map-controls) .leaflet-control-zoom a {
  width: 24px; height: 24px; font: 600 15px/24px system-ui, sans-serif; border-radius: 0;
  color: #1c2330; background: rgb(255 255 255 / .9); border-bottom: 1px solid rgb(0 0 0 / .08);
}
.canarias-map:not(.map-controls) .leaflet-control-zoom a:last-child { border-bottom: 0; }
.canarias-map:not(.map-controls) .leaflet-control-zoom a:hover { background: #fff; color: #000; }
.canarias-map:not(.map-controls) .leaflet-control-zoom a.leaflet-disabled { color: #aab; background: rgb(255 255 255 / .75); }
.inset-reset {
  display: grid; place-items: center; width: 24px; height: 24px; margin: 4px 4px 0 0; padding: 0;
  border: 0; border-radius: 6px; color: #1c2330; background: rgb(255 255 255 / .9); box-shadow: 0 1px 4px rgb(0 0 0 / .25); cursor: pointer;
}
.inset-reset svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Big maps (.map-controls: the landing's Spain map and each community's
   meetups map): the reset button at the zoom buttons' size, and the zoom
   buttons with the reset button's look (white, rounded, soft shadow, no border). */
.map-controls .inset-reset { width: 30px; height: 30px; }
.map-controls .inset-reset svg { width: 16px; height: 16px; }
.map-controls .leaflet-control-zoom.leaflet-bar { border: 0; border-radius: 6px; box-shadow: 0 1px 4px rgb(0 0 0 / .25); overflow: hidden; }
.map-controls .leaflet-control-zoom a {
  width: 30px; height: 30px; line-height: 30px; font: 600 18px/30px system-ui, sans-serif;
  color: #1c2330; background: rgb(255 255 255 / .9); border-bottom: 1px solid rgb(0 0 0 / .08);
}
.map-controls .leaflet-control-zoom a:last-child { border-bottom: 0; }
.map-controls .leaflet-control-zoom a:first-child, .map-controls .leaflet-control-zoom a:last-child { border-radius: 0; }
.map-controls .leaflet-control-zoom a:hover, .map-controls .inset-reset:hover { background: #fff; color: #000; }
.map-controls .leaflet-control-zoom a.leaflet-disabled { color: #aab; background: rgb(255 255 255 / .75); }
.inset-label {
  position: absolute; top: 4px; left: 6px; z-index: 600; padding: 1px 6px; border-radius: 6px;
  font-size: .68rem; font-weight: 600; color: #1c2330; background: rgb(255 255 255 / .85); pointer-events: none;
}
/* Landing map: each community is its logo in a round honey (orange) ring. */
.club-pin { background: none; border: 0; }
.club-pin-ring {
  display: block; width: 46px; height: 46px; padding: 3px; border-radius: 50%;
  background: linear-gradient(135deg, #f7b500, #f28c00 55%, #e2580b); box-shadow: 0 4px 12px rgb(0 0 0 / .35);
  transition: transform .15s;
}
.club-pin:hover .club-pin-ring, .club-pin:focus-visible .club-pin-ring { transform: scale(1.12); }
/* Keyboard focus: a light ring that follows the circle, not a square outline. */
.club-pin:focus, .club-cluster:focus { outline: none; }
.club-pin:focus-visible .club-pin-ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f28c00, 0 4px 12px rgb(0 0 0 / .35); }
.club-cluster:focus-visible .club-cluster-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f28c00, 0 3px 8px rgb(0 0 0 / .35); }
/* Avatars are cropped to a centred square (object-fit: cover) and sit inside
   a white gap, a little smaller than the ring around them. */
.club-pin-img { display: grid; place-items: center; width: 100%; height: 100%; min-width: 0; border-radius: 50%; object-fit: cover; object-position: center; border: 3px solid #fff; background: #fff; }
/* Leaflet sets `width: auto` on marker images, which would keep wide logos wide. */
.leaflet-container .leaflet-marker-pane img.club-pin-img { width: 100%; height: 100%; }

/* Several communities close together: a small orange dot with how many, and
   a soft pulsing halo so it reads as "more here" at a glance. */
.club-cluster { background: none; border: 0; }
.club-cluster-dot {
  position: relative; display: grid; place-items: center; width: var(--size); height: var(--size); border-radius: 50%;
  color: #fff; background: linear-gradient(135deg, #f7b500, #f28c00 55%, #e2580b); border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgb(242 140 0 / .35), 0 3px 8px rgb(0 0 0 / .35);
  transition: transform .15s;
}
.club-cluster-dot b { font: 800 13px/1 system-ui, sans-serif; text-shadow: 0 1px 2px rgb(90 40 0 / .5); }
.club-cluster-dot::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #f28c00;
  animation: cluster-pulse 2s ease-out infinite; pointer-events: none;
}
@keyframes cluster-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .club-cluster-dot::after { animation: none; opacity: 0; } }
.club-cluster:hover .club-cluster-dot, .club-cluster:focus-visible .club-cluster-dot { transform: scale(1.15); }

/* The page behind an open modal doesn't scroll. */
html.modal-open, html.modal-open body { overflow: hidden; }
.chooser { list-style: none; margin: 0; padding: 12px 16px 16px; display: grid; gap: 8px; }

.avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; object-position: center; background: var(--border); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--accent); }
.avatar-lg { width: 64px; height: 64px; border-width: 5px; }
.avatar-empty, .club-pin-img.avatar-empty { font-weight: 700; color: var(--on-accent); background: var(--accent); }

.community-card {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left;
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.community-card:hover, .community-card:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.cc-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cc-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Monthly bars: the check-ins of each month, their number inside the bar. */
.legend { display: flex; gap: 14px; margin: -.3rem 0 .6rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; }
.sw-reg { background: var(--c-checkins); }
.bars { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 200px; }
.bar-col { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; min-width: 0; text-align: center; }
/* The bar, with its check-ins inside at the top (just above it when the bar is too short). */
.bar-track { grid-row: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-height: 0; }
.bar { position: relative; display: block; align-self: stretch; flex: none; min-height: 2px; border-radius: 6px 6px 3px 3px; background: var(--c-checkins); }
.bar-value {
  position: absolute; left: 0; right: 0; top: 4px; font-size: .64rem; font-weight: 700; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 2px rgb(0 0 0 / .35);
}
.bar.is-short .bar-value { top: auto; bottom: calc(100% + 3px); color: var(--muted); text-shadow: none; }
.bar.value-low .bar-value { top: 22px; } /* the meetups ball is where the number would be */
.bar-label { grid-row: 2; font-size: .7rem; color: var(--muted); text-transform: capitalize; }
/* Phones: at least 40px per month, scrolling sideways (like the other charts). */
.activity-wrap { position: relative; }
.bars-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; }
.activity-wrap + .plot-hint { display: none; }
.activity-wrap.is-scrollable + .plot-hint { display: block; }
@media (max-width: 560px) { .bars { min-width: calc(12 * 40px + 11 * 4px); gap: 4px; } }
/* Bars in Combee's colours (the landing's activity, a user's check-ins): honey yellow to orange
   over a faint honeycomb, like the landing's header. */
.honey-bars .bar {
  border-radius: 9px 9px 4px 4px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='38' viewBox='0 0 56 97'%3E%3Cpath fill='none' stroke='%23fff' stroke-opacity='.22' stroke-width='2.4' d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7V97'/%3E%3C/svg%3E") center top / 22px 38px,
    linear-gradient(180deg, #f7b500, #f28c00 55%, #e2580b);
  box-shadow: 0 4px 12px rgb(226 88 11 / .22), inset 0 1px 0 rgb(255 255 255 / .35);
  transition: transform .15s, filter .15s, box-shadow .15s; transform-origin: bottom;
}
.honey-bars .bar-col:hover .bar { filter: brightness(1.08); transform: scaleY(1.02); box-shadow: 0 6px 16px rgb(226 88 11 / .35), inset 0 1px 0 rgb(255 255 255 / .4); }
.honey-bars .bar-value { color: #fff; text-shadow: 0 1px 2px rgb(90 40 0 / .55); }
.honey-bars .bar.is-short .bar-value { color: var(--accent); text-shadow: none; }
/* This month: its label in the accent. */
.honey-bars .bar-col.is-now .bar-label { color: var(--accent); font-weight: 700; }
.sw-reg.is-honey { background: linear-gradient(180deg, #f7b500, #e2580b); }


/* Landing: the three meetups with the most check-ins. Each card: the meetup's
   picture with its medal, name, type, day and community, and its check-ins in
   honey; the first, framed in gold. */
.top-meetups-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.top-meetups-card h2 { margin: 0; }
.top-meetups-card h2, h2.title-ico { display: flex; align-items: center; gap: 8px; }
@media (max-width: 600px) { .top-meetups-head { flex-direction: column; align-items: stretch; } .top-meetups-head .seg { align-self: center; } }
.top-meetups-card h2 .ico, h2.title-ico .ico { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.top-meetups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tm { --medal: #c9793a; position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 12px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--border); }
.tm.is-1 { --medal: #f5b301; border-color: color-mix(in srgb, #f5b301 60%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, #f5b301 12%, var(--bg)), var(--bg) 60%); box-shadow: 0 8px 22px rgb(226 88 11 / .18); }
.tm.is-2 { --medal: #a9b4c2; }
.tm-pic { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; border: 3px solid var(--type-color);
  background: color-mix(in srgb, var(--type-color) 22%, var(--surface)); }
.tm-pic img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 9px; }
.tm-medal { position: absolute; left: -8px; top: -8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-weight: 800; color: #fff; background: var(--medal); border: 3px solid var(--surface); box-shadow: 0 3px 8px rgb(0 0 0 / .3);
  text-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.tm-text { display: grid; align-content: start; gap: 6px; min-width: 0; }
.tm-name { font-weight: 700; line-height: 1.25; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.tm-name:hover, .tm-name:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.tm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .8rem; }
.tm-community { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: .84rem; font-weight: 600; color: var(--text); text-decoration: none; }
.tm-community > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-community:hover > span:last-child { color: var(--accent); text-decoration: underline; }
.tm-community .avatar-wrap, .tm-logo { flex: none; }
.tm-logo { width: 26px; height: 26px; border-width: 2px; box-shadow: 0 0 0 1.5px var(--accent); font-size: .6rem; }
.tm-community .avatar-wrap > .ca-star { top: -4px; right: -5px; width: 13px; height: 13px; }
.tm-figure { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, #f7b500, #f28c00 55%, #e2580b); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3); text-shadow: 0 1px 2px rgb(90 40 0 / .45); }
.tm-figure strong { font-size: 1.45rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tm-figure span { font-size: .8rem; font-weight: 600; }
/* The 4th and 5th: under the three, as rows one above the other (picture, text, check-ins). */
.top-meetups-rest { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } /* desktop: side by side */
.top-meetups-rest[hidden] { display: none; }
.top-meetups-card .more-wrap { margin-top: 12px; }
.tm.is-row { --medal: #6b7686; /* no medal: a plain number */ grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-rows: none; align-items: center; column-gap: 14px; padding: 10px 12px; }
.tm.is-row .tm-pic { border-width: 2px; border-radius: 10px; }
.tm.is-row .tm-pic img { border-radius: 8px; }
.tm.is-row .tm-medal { width: 26px; height: 26px; left: -7px; top: -7px; font-size: .8rem; border-width: 2px; }
.tm.is-row .tm-text { gap: 4px; }
.tm.is-row .tm-meta, .tm.is-row .tm-community { font-size: .8rem; }
.tm.is-row { grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 12px; }
.tm.is-row .tm-figure { flex-direction: column; align-items: center; gap: 1px; padding: 4px 8px; min-width: 0; border-radius: 8px; }
.tm.is-row .tm-figure strong { font-size: .95rem; }
.tm.is-row .tm-figure span { font-size: .55rem; letter-spacing: .02em; }
/* Phones: compact rows, one per meetup: the picture, the name, type, day and
   community, and the check-ins on the right in a small honey badge. */
@media (max-width: 700px) {
  .top-meetups, .top-meetups-rest { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .top-meetups-rest { margin-top: 8px; }
  .tm, .tm.is-row { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: none; align-items: center; column-gap: 10px;
    padding: 8px 10px; border-radius: 12px; }
  .tm.is-1 { box-shadow: 0 4px 12px rgb(226 88 11 / .15); }
  .tm-pic, .tm.is-row .tm-pic { border-width: 2px; border-radius: 10px; }
  .tm-pic img { border-radius: 8px; }
  .tm-medal, .tm.is-row .tm-medal { width: 24px; height: 24px; left: -7px; top: -7px; font-size: .75rem; border-width: 2px; }
  .tm-text, .tm.is-row .tm-text { gap: 3px; }
  .tm-name { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tm-meta, .tm.is-row .tm-meta { font-size: .72rem; gap: 2px 6px; }
  .tm-meta .type-chip { font-size: .66rem; }
  .tm-community, .tm.is-row .tm-community { font-size: .74rem; gap: 6px; }
  .tm-logo { width: 20px; height: 20px; }
  .tm-community .avatar-wrap > .ca-star { width: 11px; height: 11px; }
  .tm-figure { flex-direction: column; align-items: center; gap: 0; padding: 6px 8px; border-radius: 10px; min-width: 56px; }
  .tm-figure strong { font-size: 1.05rem; }
  .tm-figure span { font-size: .62rem; }
  .tm.is-row .tm-figure { padding: 4px 8px; min-width: 0; border-radius: 8px; }
  .tm.is-row .tm-figure strong { font-size: .95rem; }
  .tm.is-row .tm-figure span { font-size: .55rem; }
}

/* Community modal: same look as the meetup popups. */
.community-modal.sheet { width: min(480px, calc(100vw - 32px)); }
.cm-head { align-items: center; }
.mp .sheet-badge .ico { width: 21px; height: 21px; stroke-width: 1.9; }
.cm-head .avatar-wrap, .cm-head > .cm-logo { flex: none; }
.cm-logo { width: 52px; height: 52px; border-width: 3px; }
.cm-head .avatar-wrap > .ca-star { top: -4px; right: -4px; width: 18px; height: 18px; }
.cm-title h2 { margin: 0; font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; }
.cm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.cm-meta > * { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cm-head .admin-link.cm-admin, .cm-head .icon-btn { align-self: flex-start; }
.mm-figures.cm-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cm-figures > div { align-content: start; }
.cm-rows dd { font-size: .86rem; }
.cm-rows .ico { width: 17px; height: 17px; }
.sheet-body > .cm-list { margin: 0 -8px; padding: 0; max-height: none; } /* the rows' own padding lines them up with the heading */
.cm-list .mp-item-title { font-weight: 600; }
@media (max-width: 480px) { .mm-figures.cm-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sheet-label { margin: 0; }
.admin-link.cm-admin { width: 30px; height: 30px; align-self: flex-start; }
.admin-link.cm-admin .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cm-directions { display: inline-flex; align-items: center; gap: 5px; width: fit-content; text-decoration: none; font-weight: 500; }
.cm-directions:hover, .cm-directions:focus-visible { text-decoration: underline; }

/* ---- Site admin panel ---- */
.site-past-table td.club { font-size: .88rem; }
.site-past-table td.club .sub a { color: var(--muted); }
.site-communities { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-communities li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
}
/* The text keeps room (the buttons go under it when both don't fit). */
.sc-text { flex: 1 1 260px; min-width: 0; display: grid; gap: 1px; }
.sc-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: 0 1 auto; margin-left: auto; }
/* A link shown as a small secondary button. */
a.btn-sm.secondary { text-decoration: none; color: var(--accent); border: 1px solid var(--accent); background: none; }
a.btn-sm.secondary:hover, a.btn-sm.secondary:focus-visible { color: var(--on-accent); background: var(--accent); }
@media (max-width: 560px) {
  .site-communities li { flex-wrap: wrap; }
  .sc-actions { width: 100%; justify-content: flex-end; }
}
.sc-id { display: inline-block; max-width: 100%; vertical-align: bottom; font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-preview {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
}
.club-preview.is-error { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); color: var(--text); }
.club-preview .sc-text > span.small { white-space: normal; }
.modal label.check { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; cursor: pointer; }
.modal label.check input { width: auto; margin: 3px 0 0; flex: none; }
/* Generated password with copy / regenerate buttons */
.password-field { display: flex; align-items: center; gap: 4px; }
.password-field input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.password-field code { font-size: .95rem; padding: 2px 8px; border-radius: 6px; background: var(--bg); user-select: all; }
.credentials { display: grid; gap: 4px 0; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.credentials dt { font-size: .78rem; color: var(--muted); }
.credentials dd { margin: 0 0 6px; overflow-wrap: anywhere; font-size: .9rem; }
.credentials dd:last-child { margin-bottom: 0; }

/* Site admin meetup filters: one aligned row of equal-height controls. */
.filters {
  --ctl-h: 36px;
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin: .5rem 0 1rem;
  padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
}
/* Fields share the row and wrap onto a new one when there's no room. */
.f-field { display: grid; gap: 4px; min-width: 0; flex: 1 1 150px; }
.f-club { flex-basis: 170px; }
.f-dates { flex-basis: 190px; }
.f-num { flex: 0 1 104px; }
.f-field > span { font-size: .72rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.filters select, .filters input[type=number], .combo input, .dr-trigger {
  box-sizing: border-box; width: 100%; height: var(--ctl-h); margin: 0; padding: 0 .65rem;
  font: inherit; font-size: .88rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
}
.filters select:focus-visible, .filters input:focus-visible, .dr-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.f-actions { display: flex; align-items: center; gap: 10px; height: var(--ctl-h); white-space: nowrap; }
.f-check { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; cursor: pointer; }
.f-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.f-actions { flex: 0 0 auto; margin-left: auto; }
@media (max-width: 480px) { .f-field, .f-num { flex-basis: 100%; } .f-actions { flex-basis: 100%; justify-content: space-between; } }

/* Combobox (club filter) */
.combo { position: relative; }
.combo input { padding-right: 2rem; }
.combo-pic { position: absolute; left: 8px; top: 50%; z-index: 1; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  object-fit: cover; background: var(--border); pointer-events: none; }
.combo-pic[hidden] { display: none; }
.combo.has-pic input { padding-left: 38px; }
.combo-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer;
}
.combo-clear:hover { color: var(--text); background: var(--border); }
.combo-list {
  position: absolute; z-index: 20; left: 0; top: calc(100% + 4px); width: max(100%, 270px); max-height: 300px; overflow-y: auto;
  margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .25);
}
.combo-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; font-size: .88rem; cursor: pointer; }
.combo-list li.is-active { background: var(--accent-soft); }
.combo-list li[aria-selected="true"] { font-weight: 600; }
.combo-list li img, .combo-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; object-fit: cover; background: var(--border); }
.combo-list .combo-empty { color: var(--muted); cursor: default; }

/* Date range picker */
.daterange { position: relative; }
.dr-trigger { display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; padding-right: 2rem; }
.dr-trigger svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dr-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daterange:not(.has-value) .dr-label { color: var(--muted); }
.dr-pop {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: flex; gap: 14px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgb(0 0 0 / .3);
}
.dr-pop[hidden] { display: none; }
.dr-presets { display: grid; align-content: start; gap: 2px; padding-right: 12px; border-right: 1px solid var(--border); }
.dr-presets button { padding: .4rem .6rem; border: 0; border-radius: 7px; background: none; color: var(--text); font-size: .82rem; text-align: left; white-space: nowrap; }
.dr-presets button:hover { background: var(--accent-soft); color: var(--accent); }
.dr-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dr-nav .icon-btn { font-size: 20px; }
.dr-hint { font-size: .78rem; color: var(--muted); }
.dr-months { display: flex; gap: 18px; }
.dr-month strong { display: block; margin-bottom: 6px; text-align: center; font-size: .88rem; text-transform: capitalize; }
.dr-grid { display: grid; grid-template-columns: repeat(7, 34px); gap: 2px 0; }
.dr-dow { text-align: center; font-size: .7rem; color: var(--muted); padding-bottom: 2px; }
.dr-grid button {
  height: 34px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text); font-size: .82rem; cursor: pointer;
}
.dr-grid button:hover { background: var(--accent-soft); border-radius: 8px; }
.dr-grid button.is-today { font-weight: 700; color: var(--accent); }
.dr-grid button.in-range { background: var(--accent-soft); }
.dr-grid button.is-start, .dr-grid button.is-end { background: var(--accent); color: var(--on-accent); border-radius: 8px; }
.dr-grid button.is-start:not(.is-end) { border-radius: 8px 0 0 8px; }
.dr-grid button.is-end:not(.is-start) { border-radius: 0 8px 8px 0; }
/* Small screens: a bottom sheet across the whole width, one month. */
@media (max-width: 700px) {
  .dr-pop {
    position: fixed; left: 8px !important; right: 8px; top: auto; bottom: 8px; z-index: 1000;
    flex-direction: column; max-height: 85vh; overflow-y: auto;
  }
  .dr-presets { display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; padding: 0 0 10px; border-bottom: 1px solid var(--border); }
  .dr-presets button { border: 1px solid var(--border); border-radius: 999px; padding: .3rem .7rem; }
  .dr-months { justify-content: center; }
  .dr-months .dr-month + .dr-month { display: none; }
  .dr-grid { grid-template-columns: repeat(7, minmax(34px, 1fr)); }
}
.site-past-table td.club a { color: var(--text); text-decoration: none; }
.site-past-table td.club a:hover { text-decoration: underline; }
.state-chip {
  display: inline-block; margin-top: 3px; padding: 0 .5rem; border-radius: 999px; font-size: .7rem; font-weight: 600;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* "Filtros" toggle and folding panel */
.panel-head { align-items: center; }
.filters-toggle {
  --hex: 12px; --hex-fill: var(--bg);
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 1.1rem 0 1rem;
  font-size: .88rem; font-weight: 600; color: var(--text);
}
.filters-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.filters-toggle .chevron { width: 14px; height: 14px; color: var(--muted); transition: transform .25s ease; }
.filters-toggle:hover, .filters-toggle:focus-visible { --hex-line: var(--accent); color: var(--accent); outline: none; }
.filters-toggle[aria-expanded="true"] { --hex-line: var(--accent); --hex-fill: color-mix(in srgb, var(--accent) 12%, var(--bg)); color: var(--accent); }
.filters-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); color: currentColor; }
.filters-count {
  min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px;
  font-size: .72rem; font-weight: 700; color: var(--on-accent); background: var(--accent);
}
.filters-count[hidden] { display: none; }
/* Grid rows 0fr → 1fr animates the height without measuring it. */
.filters-collapse { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s ease, opacity .25s ease; }
.filters-collapse.is-open { grid-template-rows: 1fr; opacity: 1; }
.filters-collapse.no-anim { transition: none; }
.filters-inner { min-height: 0; overflow: hidden; }
.filters-collapse.is-settled .filters-inner { overflow: visible; } /* let dropdowns out once open */
.filters-collapse:not(.is-open) .filters { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .filters-collapse, .filters-toggle .chevron { transition: none; } }

/* Active filters as removable pills (shown when the panel is folded). */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: .5rem 0 .2rem; }
.active-filters:not(.is-folded) { display: none; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 10px; border-radius: 999px;
  font-size: .8rem; background: var(--bg); border: 1px solid var(--border);
}
.filter-pill img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.filter-pill .type-chip { margin-left: -6px; }
.filter-pill button {
  display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
  color: var(--muted); background: none; cursor: pointer;
}
.filter-pill button:hover { color: var(--text); background: var(--border); }
.filter-pill button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Combobox extras: coloured type pills, counts, and a colour dot once chosen. */
.combo-list li .type-chip { flex: 0 1 auto; max-width: none; }
.combo-list .combo-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-count { margin-left: auto; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.combo.has-color::before {
  content: ""; position: absolute; left: 11px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--combo-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--combo-color) 30%, transparent); pointer-events: none;
}
.combo.has-color input { padding-left: 1.9rem; }
/* Multi-select combobox: a checkbox per option. */
.combo-check {
  width: 16px; height: 16px; flex: none; border-radius: 4px; border: 1.5px solid var(--muted);
  display: grid; place-items: center; transition: background-color .12s, border-color .12s;
}
.combo-list li[aria-selected="true"] .combo-check { background: var(--accent); border-color: var(--accent); }
.combo-list li[aria-selected="true"] .combo-check::after {
  content: ""; width: 8px; height: 4px; margin-top: -2px; border: solid var(--on-accent); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.combo.is-multi .combo-list li[aria-selected="true"] { font-weight: 400; }
.combo-list li.combo-all { border-bottom: 1px solid var(--border); border-radius: 7px 7px 0 0; margin-bottom: 2px; }

/* Red bin next to "Filtros": clears them all (only while some are active). */
.filters-tools { display: inline-flex; align-items: center; gap: 6px; }
.filters-clear {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
  transition: background-color .15s, color .15s, transform .15s;
}
.filters-clear[hidden] { display: none; }
.filters-clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.filters-clear:hover, .filters-clear:focus-visible { color: #fff; background: var(--danger); border-color: var(--danger); outline: none; }
.filters-clear:active { transform: scale(.94); }

/* A setting whose control is a button (Gestión de quedadas). */
.setting .control.control-row { display: flex; align-items: center; gap: 10px; }
.settings > .setting:last-child { border-bottom: 0; }

/* ---- Estadísticas (public/meetup-stats.js) ---- */
.st-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; } /* a chart never widens it */
.st-body > .card { margin: 0; }
.st-body:not([hidden]) { margin-bottom: 16px; } /* like any card, before the ones that follow */

.donut-chart { position: relative; width: min(230px, 100%); aspect-ratio: 1; }
.donut-chart svg { width: 100%; height: 100%; display: block; }
.donut-slice { transition: opacity .15s, stroke-width .15s; cursor: default; }
.donut-slice.is-dim { opacity: .28; }
.donut-center { position: absolute; inset: 22%; display: grid; place-content: center; text-align: center; pointer-events: none; gap: 1px; }
.donut-center strong { font-size: 1.35rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.donut-center span { font-size: .72rem; color: var(--muted); line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.donut-legend { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 2px; }
.donut-legend li { padding: 3px 6px; border-radius: 6px; font-size: .84rem; outline: none; }
.donut-legend li.is-on, .donut-legend li:focus-visible { background: var(--accent-soft); }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend .lg-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-legend .lg-value { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Series colours of the monthly chart (and its tooltip). */
.st-body, .line-chart { --c-meetups: #e08a00; --c-avg: #8b5cf6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-body, :root:not([data-theme="light"]) .line-chart { --c-meetups: #f0a52a; --c-avg: #a78bfa; } }
:root[data-theme="dark"] .st-body, :root[data-theme="dark"] .line-chart { --c-meetups: #f0a52a; --c-avg: #a78bfa; }
.line-chart { margin: 0; position: relative; display: grid; gap: 6px; }
.line-plot { position: relative; width: 100%; min-width: 0; overflow: hidden; border-radius: 8px; outline: none; }
/* The months scroll (phones) under a fixed layer with the axes, titles and legend. */
.plot-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; }
.plot-scroll svg { display: block; }
.plot-fixed { position: absolute; left: 0; top: 0; pointer-events: none; display: block; }
.plot-fixed .axis-bg { fill: var(--surface); }
.plot-hint { display: none; margin: 2px 0 0; font-size: .74rem; color: var(--muted); text-align: center; }
.line-chart:has(.line-plot.is-scrollable) .plot-hint { display: block; }
.line-plot:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.line-plot .grid { stroke: var(--border); stroke-width: 1; }
.line-plot .axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.line-plot .line { fill: none; stroke: var(--c-avg); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.line-plot .area { fill: var(--c-avg); opacity: .1; }
.line-plot .pt, .line-plot .meetups-pt { fill: var(--surface); stroke: var(--c-avg); stroke-width: 2; transition: r .1s; }
.line-plot .meetups-pt { stroke: var(--c-meetups); }
.line-plot .pt.is-on { fill: var(--c-avg); r: 5.5px; }
.line-plot .meetups-pt.is-on { fill: var(--c-meetups); r: 5.5px; }
.line-tip { position: absolute; z-index: 2; pointer-events: none; display: grid; gap: 2px; padding: 8px 11px; border-radius: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--border); font-size: .78rem; line-height: 1.35; white-space: nowrap; box-shadow: 0 6px 18px rgb(0 0 0 / .22); }
/* Each figure in the colour of what it refers to in the chart. */
.line-tip .t-row { display: flex; align-items: baseline; gap: 5px; }
.line-tip .t-row i { width: 9px; height: 9px; border-radius: 50%; align-self: center; flex: none; }
.line-tip .t-checkins i { border-radius: 2px; background: var(--c-checkins); }
.line-tip .t-checkins b { color: var(--c-checkins); }
.line-tip .t-meetups i { border: 2px solid var(--c-meetups); background: var(--c-meetups); }
.line-tip .t-meetups b { color: var(--c-meetups); }
.line-tip .t-avg i { border: 2px solid var(--c-avg); background: var(--c-avg); }
.line-tip .t-avg b { color: var(--c-avg); }
.line-tip .t-note { color: var(--muted); font-size: .72rem; margin-top: 2px; }
.line-tip b { font-size: .95rem; }
/* Only dates and "Solo CA": the range doesn't need the whole row. */
.st-filters .f-dates { flex: 0 1 320px; }
@media (max-width: 480px) { .st-filters .f-dates { flex-basis: 100%; } }
/* Monthly chart: bars of check-ins with the meetups line, and the average below. */
.line-plot .panel-title { fill: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.line-plot .legend text { fill: var(--muted); font-size: 11px; }
.line-plot .bar { fill: color-mix(in srgb, var(--c-checkins) 55%, transparent); transition: fill .12s, opacity .12s; }
.line-plot .has-active .bar:not(.is-on) { opacity: .55; }
.line-plot .bar.is-on { fill: var(--accent); }
.line-plot .meetups-line { fill: none; stroke: var(--c-meetups); stroke-width: 1.8; stroke-linejoin: round; }
.line-plot .axis-r { fill: var(--c-meetups); opacity: .9; }
.line-plot .chg { font-size: 9.5px; font-weight: 600; fill: var(--muted); font-variant-numeric: tabular-nums; }
.line-plot .chg.up { fill: var(--ok); }
.line-plot .chg.down { fill: var(--danger); }
.line-plot .hover-col { fill: var(--text); opacity: .06; }
.line-tip em { font-style: normal; font-weight: 700; }
.line-tip em.up { color: var(--ok); }
.line-tip em.down { color: var(--danger); }
/* Donut by type: the ring and, beside it, each type's average and check-ins. */
.donut-wrap { container-type: inline-size; }
.donut { margin: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px 32px; align-items: center; }
.donut-chart { justify-self: center; }
.donut-side { min-width: 0; }
.donut-head, .donut-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) 5.5rem 5.5rem; align-items: center; gap: 8px; }
.donut-head { padding: 0 6px 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.donut-head span:first-child { grid-column: 1 / 3; }
.donut-head span:not(:first-child), .donut-legend .lg-value, .donut-legend .lg-count { text-align: right; }
.donut-legend .lg-count { font-variant-numeric: tabular-nums; color: var(--muted); }
.donut-legend .lg-value { color: var(--text); }
@container (max-width: 620px) {
  .donut { grid-template-columns: 1fr; }
  .donut-head, .donut-legend li { grid-template-columns: 10px minmax(0, 1fr) 4.2rem 4.6rem; }
  .donut-legend .lg-label { white-space: normal; line-height: 1.25; }
}
.donut-side .more-wrap { margin-top: .6rem; }
/* Digital codes panel. */
.codes { --c-a: #0d9488; --c-b: #6366f1; --c-old: #8a94a6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .codes { --c-a: #2dd4bf; --c-b: #818cf8; } }
:root[data-theme="dark"] .codes { --c-a: #2dd4bf; --c-b: #818cf8; }
.codes-cards.stat-row { grid-template-columns: repeat(2, 1fr); margin: 0 0 1rem; }
@media (max-width: 560px) { .codes-cards.stat-row { grid-template-columns: 1fr; } }
.codes-cards .stat { gap: 4px; }
.codes-cards .stat-sub { line-height: 1.35; }
.code-row { display: flex; align-items: baseline; gap: 8px; }
.code-row .code-name { font-size: .78rem; color: var(--muted); min-width: 7.5rem; }
.code-row strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.code-row.code-a strong { color: var(--c-a); }
.code-row.code-b strong { color: var(--c-b); }
.code-single { font-size: 1.5rem; color: var(--c-old); }
.code-capped { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0 .4rem; }
.codes-plot .code-bar { transition: opacity .12s; }
.codes-plot .code-a { fill: var(--c-a); }
.codes-plot .code-b { fill: var(--c-b); }
.codes-plot .code-old { fill: var(--c-old); }
.codes-plot .code-bar.past { opacity: .72; }
.codes-plot .has-active .code-bar[data-i]:not(.is-on) { opacity: .4; }
.codes-plot .has-active .code-bar.is-on { opacity: 1; }
.codes-plot .code-bar.projected { stroke-width: 1.2; stroke-dasharray: 3 2; }
.codes-plot .code-bar.projected.code-a { fill: url(#hatch-a); stroke: var(--c-a); }
.codes-plot .code-bar.projected.code-b { fill: url(#hatch-b); stroke: var(--c-b); }
.codes-plot .hatch-bg-a { fill: color-mix(in srgb, var(--c-a) 12%, transparent); }
.codes-plot .hatch-line-a { stroke: color-mix(in srgb, var(--c-a) 60%, transparent); stroke-width: 2; }
.codes-plot .hatch-bg-b { fill: color-mix(in srgb, var(--c-b) 12%, transparent); }
.codes-plot .hatch-line-b { stroke: color-mix(in srgb, var(--c-b) 60%, transparent); stroke-width: 2; }
.codes-plot .legend-text { fill: var(--muted); font-size: 11px; }
.codes-plot .cap-line { stroke-dasharray: 5 4; stroke-width: 1.2; opacity: .8; }
.codes-plot .cap-line.cap-a { stroke: var(--c-a); }
.codes-plot .cap-line.cap-b { stroke: var(--c-b); }
.codes-plot .cap-label { font-size: 10px; font-weight: 600; }
.codes-plot .cap-label.cap-a { fill: var(--c-a); }
.codes-plot .cap-label.cap-b { fill: var(--c-b); }
.codes-plot .rule-change { stroke: var(--muted); stroke-dasharray: 3 3; opacity: .7; }
.line-tip .t-row small { color: var(--muted); font-size: .72rem; }
.line-tip .t-a i { border-radius: 2px; background: var(--c-a); }
.line-tip .t-a b { color: var(--c-a); }
.line-tip .t-b i { border-radius: 2px; background: var(--c-b); }
.line-tip .t-b b { color: var(--c-b); }
.line-tip .t-old i { border-radius: 2px; background: var(--c-old); }
.codes-plot .code-bar.unlikely { opacity: .28; }
.codes-plot .has-active .code-bar.unlikely.is-on { opacity: .45; }
.codes-plot .event-mark { font-size: 9px; fill: #e0a100; }
.code-row:not(.is-likely) { opacity: .6; }
.code-row:not(.is-likely) strong { font-size: 1.05rem; }
.code-tag { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--surface); background: var(--muted); border-radius: 999px; padding: 0 .45rem; }
.code-a.is-likely .code-tag { background: var(--c-a); }
.code-b.is-likely .code-tag { background: var(--c-b); }
.line-tip .t-unlikely { opacity: .65; }
.codes-cards .stat .code-tag { color: var(--bg); } /* over .stat span's grey */
.codes .panel-head { margin-bottom: .5rem; }
.codes .panel-head h2 { margin-bottom: 0; }
.codes-friendship { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
/* Longer "i" help, in blocks. */
.info .tip.tip-rich { max-width: min(360px, 88vw); padding: 12px 14px; display: grid; gap: 8px; border-radius: 12px; line-height: 1.45; }
.tip-rich .tip-title { font-weight: 700; font-size: .85rem; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.tip-rich .tip-block { display: block; color: var(--muted); }
.tip-rich .tip-block b { color: var(--text); font-weight: 600; }
.tip-rich .tip-list { display: grid; gap: 3px; margin-top: 5px; }
.tip-rich .tip-list > span { display: flex; align-items: center; gap: 7px; color: var(--text); }
.tip-rich .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tip-rich .sw-a { background: var(--c-a); }
.tip-rich .sw-b { background: var(--c-b); }
.tip-rich .sw-checkins { background: var(--c-checkins); }
.tip-rich .sw-meetups { background: var(--c-meetups); border-radius: 50%; }
.tip-rich .sw-avg { background: var(--c-avg); border-radius: 50%; }
.tip-rich .tip-list > span { align-items: flex-start; }
.tip-rich .tip-list .sw { margin-top: 4px; }
/* Phones: each meetup of the admin panels' lists is a card, the meetup on top and its date, attendance and check-ins (labelled)
   under it; the site panel adds the club. */
@media (max-width: 600px) {
  .past-table thead { display: none; }
  .past-table, .past-table tbody { display: block; }
  .summary.past-table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "m m m" "w a c";
    gap: 8px 16px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--border);
  }
  .summary.past-table tbody tr:last-child { border-bottom: 0; }
  .summary.site-past-table tbody tr { grid-template-areas: "m m m" "club club club" "w a c"; }
  .summary.past-table td { display: block; padding: 0; border: 0; }
  .past-table td:first-child { grid-area: m; }
  .past-table td.club { grid-area: club; }
  .past-table td.when { grid-area: w; font-size: .85rem; }
  .past-table td.num:nth-last-child(2) { grid-area: a; }
  .past-table td.num:last-child { grid-area: c; }
  .past-table td[data-label]::before {
    content: attr(data-label); display: block; font-size: .66rem; font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: .03em;
  }
  .past-table .meetup-text { min-width: 0; }
  .past-table .meetup-text .name { overflow-wrap: anywhere; }
}
.codes-cards .stat { min-width: 0; }
.code-row { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 420px) { .code-row .code-name { min-width: 0; flex-basis: 100%; } }
/* Phones: the four tabs as their icons only (the name stays for screen readers). */
@media (max-width: 600px) {
  .tabs { gap: 2px; }
  .tabs button { flex: 1 1 0; gap: 0; padding: .6rem .25rem; font-size: 0; }
  .tabs button svg { width: 21px; height: 21px; }
}
/* Community page statistics: three figures, then the last year's check-ins and its record meetup. */
.stat-row.community-stats { grid-template-columns: repeat(6, 1fr); margin-bottom: 0; }
.community-stats .stat { grid-column: span 2; }
.community-stats .stat.stat-wide { grid-column: span 3; }
.stat-record { display: flex; align-items: center; gap: 12px; }
.stat-record .record-thumb { flex: none; }
.stat-record .record-text { display: grid; gap: 1px; min-width: 0; }
.stat-record .record-text > span:first-child { font-size: .75rem; color: var(--muted); }
.stat-record .record-name { font-size: .82rem; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-record .record-name a { color: inherit; text-decoration: none; }
.stat-record .record-name a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .stat-row.community-stats { grid-template-columns: 1fr; }
  .community-stats .stat, .community-stats .stat.stat-wide { grid-column: auto; }
  .stat-record .record-name { white-space: normal; }
}
/* Community page header: the club's logo, a small kicker, the name and its members. */
.community-head { align-items: center; flex-wrap: nowrap; margin-bottom: 20px; }
.community-head .community-title { flex: 1; }
.community-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.community-avatar {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; overflow: hidden;
  background: var(--accent-soft); color: var(--accent); font: 800 1.6rem/1 system-ui, sans-serif;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent), 0 4px 14px rgb(0 0 0 / .25);
}
.community-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.community-kicker { margin: 0 0 2px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.community-head h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.community-members { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) {
  .community-avatar { width: 52px; height: 52px; border-radius: 13px; }
  .community-head h1 { font-size: 1.35rem; }
}
/* Page footer: when the data was read, small and centred. */
.page-foot { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2px; margin-top: 8px; padding: 12px 0 4px; font-size: .76rem; color: var(--muted); text-align: center; }
.page-foot #status { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
/* A footer time stamp: icon + "hace 5 minutos", with its name in a tooltip. */
.stamp { position: relative; display: inline-flex; align-items: center; gap: 5px; cursor: default; border-radius: 6px; outline: none; }
.stamp .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stamp:hover, .stamp:focus-visible { color: var(--text); }
.stamp-tip {
  position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 8px); translate: -50% 4px;
  display: grid; gap: 2px; width: max-content; padding: 6px 10px; border-radius: 8px; text-align: center;
  font-size: .78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgb(0 0 0 / .25);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, translate .15s, visibility .15s;
}
.stamp-tip b { color: var(--text); font-weight: 600; }
.stamp-tip::after { content: ""; position: absolute; top: 100%; left: calc(50% - 5px); border: 5px solid transparent; border-top-color: var(--border); }
.stamp:hover .stamp-tip, .stamp:focus-visible .stamp-tip { opacity: 1; visibility: visible; translate: -50% 0; }
.page-foot .info .tip { left: 50%; translate: calc(-50% + var(--shift, 0px)) 0; }
.page-foot .info .tip::after { left: calc(50% - 5px - var(--shift, 0px)); }
/* Community page: the pencil to its panel (for site admins), discreet but clearly there. */
.admin-link {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--muted); border: 1px solid var(--border); background: var(--surface);
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.admin-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-link:hover, .admin-link:focus-visible { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--accent-soft); outline: none; }
.admin-link:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
/* A club's logo with the CA star on its top right (Community Ambassador clubs). */
.avatar-wrap { position: relative; display: inline-block; flex: none; line-height: 0; }
.avatar-wrap > .ca-star { top: -6px; right: -6px; z-index: 1; }
.community-head .avatar-wrap > .ca-star { top: -7px; right: -7px; width: 24px; height: 24px; }
.club-pin .avatar-wrap > .ca-star { top: -4px; right: -4px; width: 18px; height: 18px; }

/* ---- Top navigation bar (public/nav.js), on every page ---- */
.login-modal button[type="submit"] { background: linear-gradient(135deg, #f7b500, #f28c00 55%, #e2580b); border-color: #e2780b; color: #fff; text-shadow: 0 1px 2px rgb(90 40 0 / .35); }
.topnav { position: sticky; top: 0; z-index: 1000; min-height: 56px; background: color-mix(in srgb, var(--surface) 88%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.4) blur(10px); }
.topnav-inner { max-width: 1000px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font: 850 1.2rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.01em; }
.brand img { display: block; }
.brand span { background: linear-gradient(90deg, #f7b500, #f28c00 55%, #e2580b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { flex: 1; display: flex; align-items: center; gap: 4px; }
.nav-links > a, .nav-menu-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: .45rem .75rem; border-radius: 9px; border: 0; background: none;
  color: var(--muted); font: 500 .92rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none; cursor: pointer;
}
.nav-links > a:hover, .nav-menu-btn:hover, .nav-links > a:focus-visible, .nav-menu-btn:focus-visible { color: var(--text); background: var(--bg); outline: none; }
.nav-links > a[aria-current="page"], .nav-menu-btn.is-current { color: var(--accent); background: var(--accent-soft); }
.nav-chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nav-menu-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-menu { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; width: 300px; display: flex; flex-direction: column;
  padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgb(0 0 0 / .28);
}
.nav-dropdown[hidden] { display: none; }
/* Search box on top; the list scrolls under it and loads more at its end. */
.nav-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; margin-bottom: 6px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); }
.nav-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.nav-search svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-search input { flex: 1; min-width: 0; height: 36px; border: 0; background: none; color: var(--text); font: inherit; font-size: .9rem; outline: none; }
.nav-list { margin: 0; padding: 0; list-style: none; max-height: min(55vh, 340px); overflow-y: auto; overscroll-behavior: contain; }
.nav-more-li { padding: 4px 2px 2px; }
.nav-more { width: 100%; padding: 7px 14px; color: var(--accent); font: 600 .85rem/1.2 system-ui, sans-serif; cursor: pointer; }
.nav-more:hover, .nav-more:focus-visible { --hex-line: var(--accent); --hex-fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); outline: none; }
.nav-status { margin: 4px 4px 0; font-size: .76rem; color: var(--muted); }
.nav-status:empty { display: none; }
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .9rem; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: var(--bg); outline: none; }
.nav-dropdown a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-avatar { width: 30px; height: 30px; }
.nav-avatar img, .nav-initial { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.nav-avatar > .ca-star { top: -5px; right: -5px; width: 15px; height: 15px; }
.nav-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-empty { padding: 8px 10px; color: var(--muted); font-size: .88rem; }
.nav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; margin-left: auto; width: 38px; height: 38px; padding: 0; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
@media (max-width: 640px) {
  .nav-toggle { display: grid; }
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px 12px 12px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgb(0 0 0 / .25);
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a, .nav-menu-btn { width: 100%; justify-content: flex-start; padding: .65rem .75rem; }
  .nav-dropdown { position: static; width: auto; margin-top: 4px; box-shadow: none; }
  .nav-list { max-height: 45vh; }
}
/* Anchors (the landing's #comunidades) land below the sticky bar. */
html { scroll-padding-top: 68px; }
/* Landing: who owns the images and the data, small and centred at the bottom. */
.legal-foot { max-width: 720px; margin: 28px auto 4px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; font-size: .74rem; line-height: 1.5; color: var(--muted); }
.legal-foot p { margin: 0 0 .45rem; }
.legal-foot strong { color: var(--text); }
/* Landing: meetups per month, a smooth line over the activity bars with each month's number
   (the same look as the communities' statistics). */
.landing { --c-meetups: #7c3aed; } /* violet: it reads over the honey bars */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .landing { --c-meetups: #b794f6; } }
:root[data-theme="dark"] .landing { --c-meetups: #b794f6; }
.meetups-overlay { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.meetups-overlay .meetups-line { fill: none; stroke: var(--c-meetups); stroke-width: 1.8; stroke-linejoin: round; }
.meetups-overlay .meetups-pt { fill: var(--surface); stroke: var(--c-meetups); stroke-width: 2; }
.swatch-line { position: relative; display: inline-block; width: 18px; height: 2px; margin-right: 5px; vertical-align: middle; background: var(--c-meetups); border-radius: 2px; }
.swatch-line::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 2px solid var(--c-meetups); background: var(--surface); }
/* The meetups of each month, next to its ball; outlined so it reads over the bars. */
.meetups-overlay .meetups-value {
  fill: var(--c-meetups); font: 700 10.5px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums;
  paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round;
}
/* Navigation bar: the account on the right ("Iniciar sesión", or the community's logo and its menu). */
.nav-account { position: relative; margin-left: auto; flex: none; }
.nav-login {
  display: inline-flex; align-items: center; gap: 7px; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .88rem/1.2 system-ui, sans-serif; cursor: pointer;
}
.nav-login:hover, .nav-login:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); outline: none; }
.nav-login svg, .nav-account-menu svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-account-btn { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.nav-account-btn:hover, .nav-account-btn:focus-visible, .nav-account-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--text); outline: none; }
.nav-account-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-account-btn .nav-avatar img, .nav-account-btn .nav-initial { border-radius: 50%; }
.nav-site { display: grid; place-items: center; color: var(--accent); }
.nav-site svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.nav-account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1001; width: 300px; max-width: calc(100vw - 24px); padding: 8px;
  display: grid; gap: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 16px 40px rgb(0 0 0 / .32);
}
.nav-account-menu[hidden] { display: none; }
.nav-account-menu svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* 1. The community and its permissions. */
.nav-account-head { display: flex; align-items: center; gap: 12px; padding: 6px 6px 10px; border-bottom: 1px solid var(--border); }
.nav-avatar.is-big { width: 44px; height: 44px; flex: none; }
.nav-avatar.is-big img, .nav-avatar.is-big.nav-initial, .nav-avatar.is-big .nav-initial { width: 44px; height: 44px; border-radius: 50%; }
.nav-avatar.is-big > .ca-star { width: 17px; height: 17px; top: -4px; right: -5px; }
.nav-account-name { display: grid; gap: 5px; min-width: 0; }
.nav-account-name strong { font-size: .95rem; line-height: 1.2; overflow-wrap: anywhere; }
.nav-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-role { padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); }
.nav-role.is-site { color: #fff; border-color: transparent; background: linear-gradient(135deg, #f7b500, #e2580b); }
/* 2. Its page. */
.nav-account-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: var(--text); font: 600 .88rem/1.2 system-ui, sans-serif; text-decoration: none; }
.nav-account-row > span { flex: 1; }
.nav-account-row .nav-go { color: var(--muted); }
.nav-account-row:hover, .nav-account-row:focus-visible { background: var(--bg); outline: none; }
/* 3 and 4. A panel's tabs, as four tiles; the site's on Combee's honey. */
.nav-account-section { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.nav-section-title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.nav-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.nav-tile { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; font: 600 .82rem/1.2 system-ui, sans-serif;
  color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, color .15s, background-color .15s; }
.nav-tile svg { color: var(--accent); }
.nav-tile:hover, .nav-tile:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); outline: none; }
.nav-account-section.is-site { border: 0; color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48.5' viewBox='0 0 56 97'%3E%3Cpath fill='none' stroke='%23fff' stroke-opacity='.14' stroke-width='2' d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7V97'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #f7b500, #f28c00 55%, #e2580b);
  box-shadow: 0 6px 16px rgb(226 88 11 / .3); }
.nav-account-section.is-site .nav-section-title { color: #fff; text-shadow: 0 1px 2px rgb(90 40 0 / .4); }
.is-site .nav-tile { color: #fff; background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .3); text-shadow: 0 1px 2px rgb(90 40 0 / .35); }
.is-site .nav-tile svg { color: #fff; }
.is-site .nav-tile:hover, .is-site .nav-tile:focus-visible { color: #9a3a00; background: #fff; border-color: #fff; text-shadow: none; }
.is-site .nav-tile:hover svg, .is-site .nav-tile:focus-visible svg { color: #e2580b; }
/* 5. Signing out. */
.nav-account-menu .nav-logout { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px; background: none; color: var(--danger); font: 600 .88rem/1.2 system-ui, sans-serif; text-align: left; cursor: pointer; }
.nav-account-menu .nav-logout:hover, .nav-account-menu .nav-logout:focus-visible { background: color-mix(in srgb, var(--danger) 10%, transparent); outline: none; }
@media (max-width: 640px) {
  /* Phones: the menu and the account are twin 38px square buttons, side by side
     and centred on the bar (the signed-in one keeps its logo and chevron). */
  .nav-account { margin-left: 0; order: 3; display: flex; align-items: center; }
  .nav-toggle { order: 2; margin-right: -8px; } /* 8px between the twins, not the bar's 16px */
  .nav-login span { display: none; }
  .nav-login, .nav-account-btn { box-sizing: border-box; height: 38px; border-radius: 10px; }
  .nav-login { display: grid; place-items: center; width: 38px; padding: 0; }
  .nav-login svg { width: 18px; height: 18px; }
  .nav-account-btn { padding: 0 6px 0 3px; }
  /* The account menu fills the screen under the bar, its parts a little roomier. */
  /* (The bar's blur makes it the menu's frame: the height is the screen's under the bar.) */
  .nav-account-menu { position: fixed; top: var(--nav-bottom, 60px); left: 0; right: 0; height: calc(100dvh - var(--nav-bottom, 60px));
    box-sizing: border-box; width: auto; max-width: none;
    align-content: start; gap: 10px; padding: 16px; overflow-y: auto; overscroll-behavior: contain;
    border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; }
  .nav-account-head { padding: 4px 4px 14px; }
  .nav-avatar.is-big, .nav-avatar.is-big img, .nav-avatar.is-big.nav-initial, .nav-avatar.is-big .nav-initial { width: 52px; height: 52px; }
  .nav-account-name strong { font-size: 1.05rem; }
  .nav-account-row { padding: 12px; font-size: .95rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
  .nav-account-section { padding: 12px; gap: 10px; }
  .nav-tile { padding: 12px; font-size: .9rem; }
  .nav-account-menu .nav-logout { margin-top: 4px; padding: 12px; border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--border));
    border-radius: 12px; justify-content: center; }
  html.nav-account-open { overflow: hidden; }
}
/* Sign-in modal: the community (searched by name), then its password. */
.login-modal { width: min(440px, calc(100vw - 32px)); }
.login-field { display: grid; gap: 6px; }
.login-label { font-size: .9rem; }
.login-results { max-height: 220px; }
.login-results:empty { display: none; }
.login-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.login-option:hover, .login-option:focus-visible { background: var(--bg); outline: none; }
.login-chosen { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent-soft); }
.login-chosen[hidden] { display: none; }
.login-chosen-face { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; flex: none; }
.login-chosen-face img { width: 100%; height: 100%; object-fit: cover; }
.login-chosen-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-search[hidden] { display: none; }
/* Site panel: the communities whose admins may use it. */
.site-admin-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; vertical-align: 2px; font-size: .66rem; font-weight: 700; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
/* Site panel sign-in: a centred card (icon, title, why), the sign-in button,
   and the site key folded under a divider like the landing's "Más". */
.site-login { max-width: 460px; margin: 32px auto; padding: 32px 28px 24px; display: grid; justify-items: center; gap: 12px; text-align: center; }
/* The admin sign-in cards (site and community) in Combee's honey colours, like the landing's header. */
:is(.site-login, .access-card) {
  --accent: #f28c00; --accent-soft: color-mix(in srgb, #f7b500 16%, transparent);
  border-color: color-mix(in srgb, #f28c00 45%, var(--border));
}
:is(.site-login, .access-card) button:not(.more):not(.secondary) { background: linear-gradient(135deg, #f7b500, #f28c00 55%, #e2580b); border-color: #e2780b; color: #fff; text-shadow: 0 1px 2px rgb(90 40 0 / .35); }
:is(.site-login, .access-card) input:focus { outline: 2px solid color-mix(in srgb, #f28c00 55%, transparent); outline-offset: 1px; border-color: #f28c00; }
.site-login h1 { margin: 0; font-size: 1.4rem; }
.site-login > p { margin: 0; max-width: 36ch; }
.site-login-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #f7b500, #f28c00 55%, #e2580b); }
.site-login-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-login #open-login { margin-top: 6px; }
.site-key-toggle { justify-self: stretch; margin-top: 26px; }
/* The site-key toggle: an orange-tinted line, and it stays lit while open. */
.site-key-toggle .more { --hex-line: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.site-key-toggle .more[aria-expanded="true"] { --hex-line: var(--accent); --hex-fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.site-login .site-key { justify-self: stretch; text-align: left; margin-top: 4px; }
.site-login .site-key button { justify-self: center; margin-top: 10px; }
.site-login .site-key .msg { text-align: center; }
/* Site panel header: laid out like a community's (badge, kicker, title), in
   Combee's colours so it's plain this is the whole site's administration. */
.site-head .community-kicker { color: #f28c00; }
.site-head-badge {
  display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 16px;
  color: #fff; background: linear-gradient(135deg, #f7b500, #f28c00 55%, #e2580b);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, #f28c00 45%, transparent), 0 4px 14px rgb(0 0 0 / .25); /* the ring of a community's logo */
}
.site-head-badge svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .site-head-badge { width: 52px; height: 52px; border-radius: 13px; } .site-head-badge svg { width: 26px; height: 26px; } }
/* Community admin sign-in (and first password change): the same centred card
   as the site panel's, with the community's logo (or a padlock). */
.access-card { max-width: 460px; margin: 32px auto; padding: 32px 28px 24px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.access-card h1 { margin: 0; font-size: 1.4rem; }
.access-card > p { margin: 0; max-width: 36ch; }
.access-card .access-name { margin-top: -6px; font-weight: 600; color: var(--accent); }
.access-face {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  color: #fff; background: linear-gradient(135deg, #f7b500, #f28c00 55%, #e2580b);
}
.access-face svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.access-face.has-logo { width: 64px; height: 64px; border-radius: 14px; background: none; border: 0; }
.access-face img { width: 100%; height: 100%; object-fit: cover; }
.access-avatar > .ca-star { top: -6px; right: -6px; }
.access-form { justify-self: stretch; max-width: none; margin-top: 6px; text-align: left; }
.access-form button { justify-self: center; margin-top: 10px; }
.access-form .msg { text-align: center; }
.access-link { margin-top: 4px; }
/* Pill buttons, like the rest of the site (the landing's and the sign-in modal's). */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .6rem 1.3rem; border-radius: 999px;
  font-weight: 600; transition: transform .15s, box-shadow .15s, background-color .15s, color .15s;
}
.btn-pill svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-pill:hover, .btn-pill:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / .18); outline: none; }
.btn-pill.secondary:hover, .btn-pill.secondary:focus-visible { color: var(--on-accent); background: var(--accent); }
button.btn-sm.secondary:hover, button.btn-sm.secondary:focus-visible { color: var(--on-accent); background: var(--accent); }
.page-head .btn-sm { align-self: center; }

/* ---- Meetup detail window (meetup-modal.js) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* A meetup's name in the lists: a button that opens its window, looking like the name. */
.meetup-open {
  display: inline; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; color: inherit;
  font: inherit; font-weight: inherit; line-height: inherit; text-align: left; cursor: pointer;
}
.summary .meetup-open { font-weight: 500; }
.meetup-open:hover, .meetup-open:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; outline: none; }
.meetup-modal.sheet { width: min(480px, calc(100vw - 32px)); }
/* Its header: the meetup's picture, name and tags, in its type's colour. */
.mm-sheet-head { align-items: flex-start;
  background: linear-gradient(135deg, color-mix(in srgb, var(--type-color) 16%, var(--surface)), var(--surface) 70%) var(--surface);
  border-bottom: 2px solid var(--type-color); }
.mm-sheet-head + * { border-top: 0 !important; }
.mm-sheet-head .mm-head { flex: 1; min-width: 0; padding: 0; border: 0; margin: 0; }
.mm-sheet-head h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; overflow-wrap: anywhere; }
.mm-loading { font-size: .82rem; color: var(--muted); }
/* Header: the square picture framed in the type's colour, then the name and
   the tags (type, upcoming/finished, CA) one under another. */
.mm-head { display: flex; align-items: flex-start; gap: 14px; padding: 0 34px 14px 0; /* the X */ border-bottom: 2px solid var(--type-color); margin-bottom: 2px; }
.mm-pic {
  flex: none; width: 96px; height: 96px; border-radius: 16px; overflow: hidden;
  border: 3px solid var(--type-color); background: color-mix(in srgb, var(--type-color) 22%, var(--surface));
}
.mm-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-head-text { min-width: 0; display: grid; gap: 8px; align-content: start; }
.mm-head .mm-tags { flex-direction: column; align-items: flex-start; gap: 5px; }
@media (max-width: 420px) { .mm-pic { width: 76px; height: 76px; border-radius: 13px; } }
.mm-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mm-state { padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; border: 1px solid var(--border); color: var(--muted); }
.mm-state.is-next { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.mm-state.is-live { color: #fff; background: var(--ok); border-color: var(--ok); }
/* "Organizado por Embajador…": a pill like the other tags, in the CA star's purple. */
.mm-ca {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: .1rem .55rem .1rem .3rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; line-height: 1.4; color: color-mix(in srgb, var(--ca-purple) 78%, var(--text));
  background: color-mix(in srgb, var(--ca-purple) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ca-purple) 55%, transparent);
}
.mm-ca .ca-star { position: static; flex: none; width: 15px; height: 15px; }
.mm-ca > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .mm-ca-long { display: none; } } /* phones: "Organizado por Embajador" */
.mm-rows { display: grid; gap: 10px; margin: 0; }
.mm-rows > div { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.mm-rows dt { padding-top: 2px; color: var(--accent); }
/* Rows with a small label (Organiza, Comunidad): the icon centred on the label's line. */
.mm-rows > div:has(.mm-label) dt { padding-top: 0; margin-top: -1px; }
.mm-rows dd { margin: 0; display: grid; gap: 2px; font-size: .9rem; justify-items: start; }
.mm-rows dd a { display: inline-flex; align-items: center; gap: 4px; }
.mm-rows .ico, .mm-go .ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mm-rows dd a .ico { width: 14px; height: 14px; }
.mm-label { margin-bottom: 5px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mm-person { display: flex; align-items: center; gap: 12px; }
.mm-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 800; }
/* A ring like the community logos': a thin gap, then the accent. */
.mm-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--accent) 60%, transparent); }
.mm-person { padding-left: 3px; } /* room for the ring */
.mm-rows dd a.mm-person.is-link { display: flex; gap: 12px; color: inherit; text-decoration: none; border-radius: 8px; } /* over the rows' generic link style */
.mm-person.is-link:hover strong, .mm-person.is-link:focus-visible strong { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.mm-avatar.is-square { border-radius: 7px; } /* a club's logo, square like on its page */
.mm-person .avatar-wrap > .ca-star { top: -5px; right: -6px; width: 13px; height: 13px; }
.mm-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; }
.mm-figures > div { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.mm-figures strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mm-figures span { font-size: .72rem; color: var(--muted); }
.mm-summary { margin: 0; }
.mm-summary[open] .mm-details { margin-top: 10px; }
.mm-details { max-height: 180px; overflow-y: auto; padding: 10px 12px; border-radius: 10px; font-size: .86rem; line-height: 1.5; color: var(--muted); background: var(--bg); overflow-wrap: anywhere; }
.mm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 2px; }
.mm-go { text-decoration: none; color: var(--on-accent); background: var(--accent); }
.mm-page { text-decoration: none; color: var(--accent); background: none; border: 1px solid var(--accent); }
.mm-page .ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- A meetup's page (/quedada/<id>): the detail window's pieces, bigger ---- */
.mq-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; font-size: .88rem; font-weight: 600; text-decoration: none; }
.mq-back .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mq-back:hover { text-decoration: underline; }
.mq-card { display: grid; gap: 18px; }
.mq-card .mm-head { padding-right: 0; }
.mq-card .mm-pic { width: 140px; height: 140px; border-width: 4px; border-radius: 20px; }
.mq-card .mm-head h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; overflow-wrap: anywhere; }
.mq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mq-info { display: grid; gap: 16px; }
.mq-map { height: 300px; margin: 0; }
.mq-actions { justify-content: flex-start; }
/* The meetup on its map: its picture in a ring of its type's colour. */
.mq-pin { background: none; border: 0; }
.mq-pin span {
  display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 3px solid var(--type-color);
  background: color-mix(in srgb, var(--type-color) 35%, #fff); box-shadow: 0 4px 12px rgb(0 0 0 / .35);
}
.leaflet-container .leaflet-marker-pane .mq-pin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mq-card .mm-details { max-height: none; } /* the page has room for the whole summary */
@media (max-width: 720px) {
  .mq-grid { grid-template-columns: minmax(0, 1fr); }
  .mq-card .mm-pic { width: 96px; height: 96px; border-width: 3px; border-radius: 16px; }
  .mq-card .mm-head h1 { font-size: 1.3rem; }
  .mq-map { height: 240px; }
  .mq-actions { justify-content: center; }
}
/* A meetup's participants: two columns (one on phones), picture, Campfire name and whether they checked in. */
.mq-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.mq-person { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.mq-person .avatar-wrap { padding-left: 2px; }
.mq-person-pic { width: 34px; height: 34px; }
.mq-person .avatar-wrap > .ca-star { top: -5px; right: -6px; width: 15px; height: 15px; }
.mq-person-text { flex: 1; min-width: 0; display: grid; font-size: .9rem; }
.mq-person-text strong, .mq-person-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-person-text span { font-size: .76rem; }
.mq-person-state { flex: none; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: var(--muted); border: 1px solid var(--border); }
.mq-person.is-in .mq-person-state { color: #fff; background: var(--ok); border-color: var(--ok); }
@media (max-width: 600px) { .mq-people { grid-template-columns: minmax(0, 1fr); } }
/* Segmented filter (e.g. a meetup's participants: all / checked in / not). */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); }
.seg button { padding: .3rem .8rem; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: .8rem; font-weight: 600; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); }
.mq-people-head { flex-wrap: wrap; row-gap: 10px; margin-bottom: 12px; }
.mq-people-tools { display: flex; align-items: center; gap: 8px; }
#people-refresh.is-busy svg, #scan-now.is-busy svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg button { white-space: nowrap; }
/* Phones: the buttons beside the title, and the filter on its own line, centred under it. */
@media (max-width: 600px) {
  .mq-people-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 8px; }
  .mq-people-tools { display: contents; }
  .mq-people-head .seg { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* Modals for adding or editing things (and the raffle): a header with a round
   badge, title and a line under it; then the parts of the form, each split by a
   thin line; and the buttons, rounded, on a slightly darker strip at the foot.
   The header and the buttons stay in view while a long form scrolls. */
.modal.sheet { width: min(560px, calc(100vw - 32px)); padding: 0; border-radius: 18px; }
.modal.sheet.is-wide { width: min(760px, calc(100vw - 32px)); }
.sheet > form, .sheet > .stack { display: grid; grid-template-columns: minmax(0, 1fr); /* never wider than the modal */ gap: 0; max-width: none; }
.sheet > form > *, .sheet > .stack > * { margin: 0; padding: 16px 20px; }
.sheet > form > * + *:not([hidden]), .sheet > .stack > * + *:not([hidden]) { border-top: 1px solid var(--border); }
.sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 70%) var(--surface); }
.sheet-badge { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--on-accent); background: var(--accent); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.sheet-badge svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sheet.is-danger .sheet-head { background: linear-gradient(135deg, color-mix(in srgb, var(--danger) 14%, var(--surface)), var(--surface) 70%) var(--surface); }
.sheet.is-danger .sheet-badge { color: #fff; background: var(--danger); box-shadow: 0 4px 14px color-mix(in srgb, var(--danger) 35%, transparent); }
.sheet-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sheet-title h2 { margin: 0; font-size: 1.15rem; }
.sheet-title p { margin: 0; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.sheet-head .icon-btn { align-self: flex-start; }
.sheet-body { display: grid; gap: 12px; }
.sheet-body > * { margin: 0; }
.sheet-body .msg:empty { display: none; }
.sheet input:not([type=checkbox]):not([type=radio]), .sheet select, .sheet textarea { border-radius: 10px; }
.sheet-foot { position: sticky; bottom: 0; z-index: 3; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px;
  background: color-mix(in srgb, var(--bg) 50%, var(--surface)); }
.sheet-foot button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .55rem 1.2rem;
  border-radius: 999px; font-weight: 600; transition: transform .15s, box-shadow .15s, background-color .15s, color .15s; }
.sheet-foot button svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet-foot button:not(:disabled):hover, .sheet-foot button:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / .18); outline: none; }
.sheet-foot button.secondary:not(:disabled):hover, .sheet-foot button.secondary:focus-visible { color: var(--on-accent); background: var(--accent); }
.sheet-foot a.btn-pill { padding: .55rem 1.2rem; text-decoration: none; }
.sheet-foot a.btn-pill:not(.secondary) { color: var(--on-accent); background: var(--accent); }
.sheet-foot .ico { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet-foot button:disabled { transform: none; box-shadow: none; }
/* A small heading inside a part of the form. */
.sheet-label { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) {
  .sheet > form > *, .sheet > .stack > * { padding: 14px 16px; }
  .sheet-foot { justify-content: stretch; }
  .sheet-foot button, .sheet-foot a.btn-pill { flex: 1 1 auto; }
}

/* Raffle among the registered participants (a sheet): the number, then the
   winners in numbered tandas, the newest one popping in. */
.raffle-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); }
.stepper-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 0;
  color: var(--accent); background: var(--surface); cursor: pointer; transition: color .15s, background-color .15s; }
.stepper-btn:hover, .stepper-btn:focus-visible { color: var(--on-accent); background: var(--accent); outline: none; }
.stepper-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.stepper input { width: 48px; margin: 0; padding: 0; border: 0; background: none; text-align: center; font-size: 1.05rem; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--text); appearance: textfield; -moz-appearance: textfield; box-shadow: none; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.stepper:focus-within { border-color: var(--accent); }
.raffle-rounds { list-style: none; display: grid; gap: 16px; max-height: 50vh; overflow: auto; }
.raffle-round + .raffle-round { padding-top: 16px; border-top: 1px dashed var(--border); }
.raffle-round-name { margin: 0 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.raffle-round.is-new .raffle-round-name { color: var(--accent); }
.raffle-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.raffle-list > li { border-radius: 999px; padding: 6px 14px 6px 6px; }
.raffle-round:not(.is-new) .raffle-list > li { opacity: .7; }
.raffle-round.is-new .raffle-list > li {
  border-color: var(--accent); background: var(--accent-soft);
  animation: raffle-in .45s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i) * 120ms);
}
.raffle-place { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: .8rem; font-weight: 800; color: var(--on-accent); background: var(--accent); }
.raffle-round:not(.is-new) .raffle-place { color: var(--muted); background: var(--bg); border: 1px solid var(--border); }
.raffle-left { font-size: .82rem; color: var(--muted); text-align: center; }
@keyframes raffle-in { from { opacity: 0; transform: scale(.85) translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .raffle-round.is-new .raffle-list > li { animation: none; } }
@media (max-width: 600px) { .raffle-list { grid-template-columns: minmax(0, 1fr); } }

/* Rewards for checking in (a meetup's window and page): the timed research, like Campfire's infographic. */
/* Rewards for checking in: a card of their own on the meetup's page, in the Community Ambassador purple. */
.card.mm-rewards { display: grid; gap: 12px;
  background: color-mix(in srgb, var(--ca-purple) 7%, var(--surface)); border-color: color-mix(in srgb, var(--ca-purple) 45%, var(--border)); }
.card.mm-rewards[hidden] { display: none; }
.mm-rewards h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: color-mix(in srgb, var(--ca-purple) 70%, var(--text)); }
.mm-rewards .rw-body { display: grid; gap: 12px; }
.mm-rewards.is-folded .rw-body { display: none; }
.rw-toggle {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; padding: 0; border-radius: 50%;
  color: inherit; background: none; border: 1px solid color-mix(in srgb, var(--ca-purple) 45%, var(--border)); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.rw-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.rw-toggle:hover, .rw-toggle:focus-visible { color: #fff; background: var(--ca-purple); border-color: var(--ca-purple); outline: none; }
.mm-rewards.is-folded .rw-toggle svg { transform: rotate(180deg); }
.mm-rewards h2 .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mm-rewards > p { margin: 0; }
.rw-step { display: grid; gap: 6px; }
.rw-step-name { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.rw-step-name span { margin-left: 4px; padding: 0 6px; border-radius: 999px; color: #fff; background: var(--ca-purple); letter-spacing: 0; }
.rw-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.rw-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.rw-tasks li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px;
  font-size: .84rem; background: var(--surface); border: 1px solid var(--border); }
.rw-item { flex: none; white-space: nowrap; font-size: .8rem; color: var(--muted); }
.rw-item b { color: var(--text); font-variant-numeric: tabular-nums; }
.rw-final { display: grid; align-content: center; justify-items: center; gap: 4px; min-width: 110px; padding: 8px 10px; border-radius: 9px; text-align: center;
  background: color-mix(in srgb, var(--ca-purple) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ca-purple) 45%, var(--border)); }
.rw-final-label { margin-bottom: 14px; /* well apart from the objects under it */ font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, var(--ca-purple) 70%, var(--text)); }
.rw-final .rw-item { white-space: normal; }
@media (max-width: 560px) { .rw-grid { grid-template-columns: minmax(0, 1fr); } .rw-final { padding: 10px 12px; } } /* stacked under the tasks, still centred */
/* Site panel: the reward sets list and its editor. */
.rewards-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 768px) { .rewards-admin { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* tablet and desktop: two per row */
.reward-admin { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.reward-admin-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.reward-admin-types { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.types-more { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 6px 0 8px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: .72rem; font-weight: 700; cursor: pointer; }
.types-more:hover, .types-more:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.types-more[aria-expanded="true"] { padding: 0 4px; }
.reward-admin-types.is-clipped { flex-wrap: nowrap; }
.reward-admin-types.is-clipped .type-chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reward-admin-types .types-more { flex: none; }
.types-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.types-more[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .types-more svg { transition: none; } }
.reward-types { margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; display: grid; gap: 10px; }
.reward-types legend, .rw-edit-step legend { padding: 0 4px; font-size: .85rem; color: var(--muted); }
.reward-type-list { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.reward-types .disclosure { margin-top: 0; }
#reward-types-rest { margin-top: 10px; }
#reward-types-none { margin: 0; }
.modal label.check.reward-type { align-items: center; gap: 5px; }
.modal label.check.reward-type input { margin: 0; }
.reward-steps { display: grid; gap: 10px; }
.rw-edit-step { position: relative; margin: 0; padding: 10px 12px 12px; border: 1px solid color-mix(in srgb, var(--ca-purple) 40%, var(--border)); border-radius: 10px; display: grid; gap: 6px; justify-items: start; }
.rw-edit-step legend { font-weight: 700; color: color-mix(in srgb, var(--ca-purple) 70%, var(--text)); }
.rw-remove-step { position: absolute; top: 4px; right: 4px; }
.rw-edit-label { margin-top: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rw-rows { display: grid; gap: 6px; justify-self: stretch; }
.rw-row { display: grid; gap: 6px; align-items: center; }
.rw-row-task { grid-template-columns: minmax(0, 1fr) 160px 90px 32px; }
.rw-row-final { grid-template-columns: minmax(0, 1fr) 90px 32px; max-width: 460px; }
.reward-add-step { justify-self: start; }
@media (max-width: 560px) {
  .rw-row-task { grid-template-columns: minmax(0, 1fr) 80px 32px; }
  .rw-row-task [data-f="text"] { grid-column: 1 / -1; }
}
/* Rewards as pictures: the object's icon and its amount (tasks: small, beside the task;
   completion: bigger, amount under it). */
.rw-item.has-img { display: inline-flex; align-items: center; gap: 6px; }
.rw-item.has-img img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
.rw-final-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
.rw-final .rw-item.has-img { flex-direction: column; gap: 2px; }
.rw-final .rw-item.has-img img { width: 46px; height: 46px; }
/* Site panel: reward objects and their pictures. */
.item-add { display: flex; gap: 6px; }
.item-add input { width: 180px; }
.items-admin { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } /* 3 per row: the first row shows */
@media (max-width: 960px) { .items-admin { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* medium screens: two per row */
.item-admin { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; } /* picture, name and its buttons in one row */
.item-admin img, .item-noimg { flex: none; width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.item-noimg { display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--border); }
.item-name { flex: 1; min-width: 0; font-size: .88rem; overflow-wrap: anywhere; }
@media (max-width: 560px) { .item-add input { width: 130px; } }

/* ---- Site panel, Configuración: lists with icon buttons ---- */
/* Small round buttons with just an icon; red for deleting (armed: filled, asks to confirm). */
.acts { display: flex; align-items: center; gap: 6px; flex: none; }
.act {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border); text-decoration: none; cursor: pointer;
  transition: color .15s, border-color .15s, background-color .15s;
}
/* Add buttons in the site panel's cards: just a round "+" in the accent */
.btn-add {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent); cursor: pointer;
}
.btn-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.btn-add:hover, .btn-add:focus-visible { filter: brightness(1.08); }
.btn-add:disabled { opacity: .6; cursor: default; }
.act svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.act:hover, .act:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); outline: none; }
.act.is-on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.act.is-danger:hover, .act.is-danger:focus-visible { color: var(--danger); border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.act.is-danger.armed { color: #fff; background: var(--danger); border-color: var(--danger); }
.act:disabled { opacity: .4; cursor: not-allowed; }
.act:disabled:hover { color: var(--muted); border-color: var(--border); background: var(--surface); }
/* Can't be used now, but still says why when hovered or pressed. */
.act.is-locked { opacity: .4; cursor: not-allowed; }
.act.is-locked:hover, .act.is-locked:focus-visible { color: var(--muted); border-color: var(--border); background: var(--surface); }
.list-search { margin: 0 0 10px; }
/* Communities: logo, name and figures, the buttons on the right (under it on phones). */
.site-communities li { flex-wrap: nowrap; }
.site-communities .sc-text { flex: 1 1 auto; }
.site-communities .sc-text > span { overflow: hidden; text-overflow: ellipsis; }
.reward-admin { align-items: center; }
@media (max-width: 600px) {
  .site-communities li { flex-wrap: wrap; }
  .site-communities .sc-text { flex-basis: calc(100% - 60px); }
  .site-communities .acts { width: 100%; justify-content: flex-end; }
  .reward-admin { flex-wrap: nowrap; }
  .items-admin { grid-template-columns: minmax(0, 1fr); }
  .card-head:has(.item-add) { flex-wrap: wrap; }
  .card-head .item-add { flex: 1 1 100%; }
  .card-head .item-add input { flex: 1; width: auto; min-width: 0; }
}
/* Card headers with a button (Configuración): the button never splits its text, and goes under the title when both don't fit. */
.tab-panel .card-head { flex-wrap: wrap; row-gap: 10px; }
.tab-panel .card-head > .btn-sm, .tab-panel .card-head .item-add .btn-sm { white-space: nowrap; }
/* Picker (widgets.js): a button with the chosen option's picture and name that
   opens a small panel with a search and the list, like the navigation bar's communities menu. */
.picker { position: relative; display: block; min-width: 0; }
.picker-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 10px 0 6px; border-radius: 8px;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); font: inherit; font-size: .9rem; text-align: left; cursor: pointer;
}
.picker-btn:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.picker-btn:focus-visible, .picker-btn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); outline: none; }
.picker-btn img, .picker-list img, .picker-noimg { flex: none; width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.picker-noimg { display: grid; place-items: center; font-size: .75rem; color: var(--muted); border: 1px dashed var(--border); }
.picker-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-chevron { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.picker-btn[aria-expanded="true"] .picker-chevron { transform: rotate(180deg); }
.picker-panel {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: max(100%, 240px); padding: 8px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 12px 30px rgb(0 0 0 / .3);
}
.picker-panel.is-up { top: auto; bottom: calc(100% + 6px); }
.picker-search { margin-bottom: 6px; }
.picker-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; display: grid; gap: 2px; }
.picker-list li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: .88rem; cursor: pointer; }
.picker-list li:hover, .picker-list li.is-active { background: var(--accent-soft); }
.picker-list li[aria-selected="true"] { font-weight: 700; color: var(--accent); }
.picker-empty { color: var(--muted); cursor: default; }

/* Changing a meetup's type (admins): a small pencil next to its pill, and the dialog with the types. */
.type-chip-edit { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: middle; }
.type-chip-edit .type-chip { min-width: 0; }
.type-edit {
  flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%;
  color: var(--muted); background: none; border: 1px solid var(--border); cursor: pointer;
  transition: color .15s, border-color .15s, background-color .15s;
}
.type-edit svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.type-edit:hover, .type-edit:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); outline: none; }
.type-options { display: flex; flex-wrap: wrap; gap: 8px; }
.type-option { position: relative; cursor: pointer; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option .type-chip { padding: .25rem .7rem; font-size: .8rem; transition: background-color .15s, color .15s; }
.type-option:hover .type-chip { background: color-mix(in srgb, var(--type-color) 26%, transparent); }
.type-option input:checked + .type-chip { color: #fff; background: var(--type-color); border-color: var(--type-color); }
.type-option input:focus-visible + .type-chip { outline: 2px solid var(--accent); outline-offset: 2px; }
.type-note { margin: 0; }

/* Who came most (community panel statistics): a podium for the first three and bars for the 4th and 5th. */
.top-people { --gold: #f5b301; --silver: #a9b4c2; --bronze: #c9793a; }
.top-people .panel-head { align-items: center; row-gap: 8px; }
.top-sub { margin: 4px 0 14px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; max-width: 620px; margin: 0 auto; }
.top-place { display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.top-place.is-1 { --medal: var(--gold); }
.top-place.is-2 { --medal: var(--silver); }
.top-place.is-3 { --medal: var(--bronze); }
.top-pic { position: relative; flex: none; display: block; width: 36px; height: 36px; }
.top-pic img, .top-pic-empty { position: absolute; inset: 0; box-sizing: border-box; width: 100%; height: 100%; max-width: none;
  border-radius: 50%; object-fit: cover; background: var(--bg); border: 2px solid var(--border); }
.top-pic-empty { display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.top-pic > .ca-star { top: auto; bottom: -4px; right: -4px; z-index: 1; }
.top-pic.is-big > .ca-star { width: 22px; height: 22px; bottom: -2px; right: -2px; }
.top-pic.is-big { width: 64px; height: 64px; }
.top-place.is-1 .top-pic.is-big { width: 80px; height: 80px; }
.top-pic.is-big img, .top-pic.is-big .top-pic-empty { border: 3px solid var(--medal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--medal) 20%, transparent); }
.top-place.is-1 .top-pic.is-big { margin-top: 16px; }
.top-place.is-1 .top-pic::before { /* a small crown over the first */
  content: ''; position: absolute; left: 50%; top: -17px; width: 26px; height: 16px; transform: translateX(-50%);
  background: var(--gold); clip-path: polygon(0 100%, 0 20%, 25% 60%, 50% 0, 75% 60%, 100% 20%, 100% 100%);
}
.top-who { display: grid; min-width: 0; max-width: 100%; line-height: 1.25; }
.top-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.top-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; color: var(--muted); }
.top-step {
  display: grid; align-content: start; justify-items: center; gap: 2px; width: 100%; padding: 10px 6px 12px; border-radius: 12px 12px 4px 4px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--medal) 30%, var(--surface)), color-mix(in srgb, var(--medal) 8%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--medal) 50%, var(--border)); border-bottom: 0;
}
.top-place.is-1 .top-step { min-height: 128px; }
.top-place.is-2 .top-step { min-height: 100px; }
.top-place.is-3 .top-step { min-height: 80px; }
.top-step .top-rank { font-size: 1.6rem; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--medal) 75%, var(--text)); }
.top-place.is-1 .top-step .top-rank { font-size: 2rem; }
.top-count { font-size: .8rem; color: var(--muted); }
.top-count b { font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; }
.top-share { font-size: .72rem; color: var(--muted); }
.top-rest { list-style: none; display: grid; gap: 6px; max-width: 620px; margin: 12px auto 0; padding: 0; }
.top-rest li { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) minmax(60px, 1.2fr) auto; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.top-rest .top-rank { font-weight: 800; color: var(--muted); text-align: center; }
.top-row-who { display: grid; min-width: 0; line-height: 1.25; }
.top-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); overflow: hidden; }
.top-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.top-row-count { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.top-row-count b { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .top-people .panel-head { flex-direction: column; align-items: stretch; }
  .top-sub { margin-top: 12px; text-align: center; } /* clear of the period buttons above */
  .top-people .seg { align-self: center; }
  .podium { gap: 6px; }
  .top-pic.is-big { width: 52px; height: 52px; }
  .top-place.is-1 .top-pic.is-big { width: 64px; height: 64px; }
  .top-name { font-size: .8rem; }
  .top-rest li { grid-template-columns: 18px 32px minmax(0, 1fr) auto; }
  .top-rest .top-pic { width: 32px; height: 32px; }
  .top-bar { grid-column: 3 / -1; grid-row: 2; }
  .top-row-count span { display: none; }
}

/* ---- A user's page (/user/<id>): admins only ---- */
.us-card { display: grid; gap: 16px; }
.us-head { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 2px solid var(--accent); }
.us-pic { position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%; padding: 4px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #ffd166)); }
.us-pic img, .us-pic-empty { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--surface); background: var(--bg); font-size: 2.2rem; font-weight: 800; color: var(--accent); box-sizing: border-box; }
.us-head-text { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.us-head h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; overflow-wrap: anywhere; }
.us-head .mm-tags { margin-top: 4px; }
.us-figures { grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); }
.us-types { display: grid; gap: 8px; }
.us-type-list { display: flex; flex-wrap: wrap; gap: 6px; }
.us-type-list .type-chip { font-size: .78rem; padding: .2rem .65rem; }
.us-note { margin: 0; }
.us-communities, .us-meetups { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.us-meetups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.us-community, .us-meetup { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: inherit; text-decoration: none; background: var(--bg); border: 1px solid var(--border); transition: border-color .15s, background-color .15s; }
.us-community:hover, .us-community:focus-visible, .us-meetup:hover, .us-meetup:focus-visible {
  border-color: var(--accent); background: var(--accent-soft); outline: none; }
.us-community .avatar-wrap { flex: none; }
.us-community-text, .us-meetup-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.us-community-text strong, .us-meetup-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-go { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.us-meetup { align-items: flex-start; }
.us-thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; border: 2px solid var(--type-color);
  background: color-mix(in srgb, var(--type-color) 22%, var(--surface)); }
.us-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.us-meetup-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; } /* clear of the day and community under them */
.us-meetup .muted { display: flex; align-items: center; gap: 5px; }
.us-meetup .ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.us-state { padding: 0 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.6; color: var(--muted); border: 1px solid var(--border); }
.us-state.is-in { color: #fff; background: var(--ok); border-color: var(--ok); }
.us-state.is-next { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.us-state.is-org { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
@media (max-width: 600px) {
  .us-head { gap: 14px; }
  .us-pic { width: 80px; height: 80px; padding: 3px; }
  .us-head h1 { font-size: 1.3rem; }
  .us-meetups { grid-template-columns: minmax(0, 1fr); }
}

/* A person's name linking to their page (participants, raffle, top). */
.person-link { color: inherit; text-decoration: none; }
.person-link:hover, .person-link:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; outline: none; }

/* A user's check-ins per month: the home page's bars, one column per month (scrolling sideways when many). */
.bars.us-bars { grid-template-columns: repeat(var(--months, 12), minmax(32px, 1fr)); min-width: calc(var(--months, 12) * 36px); height: 230px; }
.us-bars .bar-label { display: grid; line-height: 1.2; }

.us-bars .bar-label b { font-weight: 700; font-size: .62rem; color: var(--text); }
@media (max-width: 560px) { .bars.us-bars { min-width: calc(var(--months, 12) * 36px); } }
#us-monthly .bars-scroll { padding-bottom: 10px; } /* the sideways scrollbar under the years, not over them */

/* Community page: "Próximas quedadas" with the admins' scan button on its right. */
.upcoming-head h2 { margin: 0; }

/* ---- Members tab (community and site panels) ---- */
/* The filters: the same box and fields as the meetups' ones (.filters, .f-field). */
.mb-tools { margin: 4px 0 14px; }
.f-search { flex: 2 1 220px; }
.filters input[type=search] {
  box-sizing: border-box; width: 100%; height: var(--ctl-h); margin: 0; padding: 0 .65rem;
  font: inherit; font-size: .88rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
.mb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mb-row { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.mb-rank { font-size: .8rem; font-weight: 800; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.mb-row .avatar-wrap { flex: none; }
.mb-pic { width: 38px; height: 38px; }
.mb-row .avatar-wrap > .ca-star { top: -5px; right: -6px; width: 15px; height: 15px; }
.mb-who { display: grid; gap: 3px; min-width: 0; }
.mb-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .78rem; }
.mb-tag { padding: 0 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1.6; color: var(--on-accent); background: var(--accent); }
/* Site panel: each community as its logo (its name on hover). */
.mb-community { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  font-size: .62rem; font-weight: 800; color: var(--on-accent); background: var(--accent); text-decoration: none;
  box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); transition: transform .15s; }
.mb-community img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }
.mb-community:hover, .mb-community:focus-visible { transform: scale(1.15); outline: none; }
.mb-figures { display: grid; grid-template-columns: repeat(4, minmax(64px, auto)); gap: 4px 14px; margin: 0; text-align: right; }
.mb-figures > div { display: grid; gap: 1px; }
.mb-figures dt { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mb-figures dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.members .more-wrap { margin-top: 12px; }
/* Phones: the figures under the name, in four short columns. */
@media (max-width: 700px) {
  .mb-row { grid-template-columns: 22px auto minmax(0, 1fr); row-gap: 8px; }
  .mb-figures { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); text-align: center; padding-top: 8px; border-top: 1px solid var(--border); }
  .mb-figures dd { font-size: .86rem; white-space: nowrap; }
  .mb-figures dt { font-size: .6rem; }
}

/* Members list: folded at first, the chevron on the right of its title; the communities filter (site panel) as a combobox. */
.mb-head { align-items: center; flex-wrap: nowrap; }
.mb-toggle { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; padding: 0; border-radius: 50%;
  color: var(--muted); background: none; border: 1px solid var(--border); cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; }
.mb-toggle .chevron { transition: transform .2s; }
.mb-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.mb-toggle:hover, .mb-toggle:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); outline: none; }
.mb-body[hidden] { display: none; }
.mb-body { margin-top: 10px; }

/* A user's monthly chart: the community chosen on the right of the title, its meetups as a violet line (like the landing's). */
#us-monthly { --c-meetups: #7c3aed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #us-monthly { --c-meetups: #b794f6; } }
:root[data-theme="dark"] #us-monthly { --c-meetups: #b794f6; }
.us-monthly-head { align-items: center; row-gap: 8px; }
.us-monthly-head h2 { margin: 0; }
.us-club-pick { --ctl-h: 36px; width: 250px; }
.us-club-pick .combo-list { left: auto; right: 0; } /* it sits on the right edge */
.us-legend { margin: 8px 0 10px; }
@media (max-width: 600px) { .us-club-pick { width: 100%; } }

/* A user's meetups: their community as its logo (its name on hover). */
.us-meetup-club { position: relative; display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; margin-left: 4px; border-radius: 50%;
  font-size: .6rem; font-weight: 800; color: var(--on-accent); background: var(--accent); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.us-meetup-club img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
/* A community logo's name in a small tooltip above it on hover (user page, members list): drawn here, as the
   browser's own title tooltip doesn't show on these links. */
.us-meetup-club::after, .mb-community::after {
  content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5; transform: translateX(-50%);
  padding: 4px 9px; border-radius: 8px; white-space: nowrap; font-size: .72rem; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 16px rgb(0 0 0 / .25);
  opacity: 0; visibility: hidden; transition: opacity .15s; pointer-events: none;
}
.us-meetup-club:hover::after, .mb-community:hover::after, .mb-community:focus-visible::after { opacity: 1; visibility: visible; }

/* Meetup rows and cards that open its window (community page lists, the landing's community window). */
.meetup-row { cursor: pointer; transition: background-color .15s; }
tr.meetup-row:hover td, tr.meetup-row:focus-visible td { background: var(--accent-soft); }
li.meetup-row:hover, li.meetup-row:focus-visible { background: var(--accent-soft); }
.meetup-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.meetup-row:hover .name, .meetup-row:hover .mp-item-title { color: var(--accent); }

/* Site panel, Configuración: the web's version, in a honey banner at the top. */
.version-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 16px; padding: 18px 22px;
  border-radius: 18px; color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='1.2' d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7V97'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #f7b500 0, #f28c00 50%, #e2580b 100%);
  box-shadow: 0 10px 26px rgb(226 88 11 / .25);
}
.version-card > img { width: 64px; height: auto; aspect-ratio: 256 / 188; object-fit: contain; flex: none; filter: drop-shadow(0 4px 8px rgb(20 20 60 / .3)); }
.version-main { display: grid; gap: 4px; margin-right: auto; }
.version-main .eyebrow { opacity: .9; }
.version-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.version-number { margin: 0; font: 900 clamp(1.9rem, 5vw, 2.4rem)/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgb(90 40 0 / .35); }
.version-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgb(255 255 255 / .2); }
.version-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.version-state.is-ok { background: #fff; color: #17803d; }
.version-state.is-new { background: #fff; color: #c25e00; box-shadow: 0 0 0 3px rgb(255 255 255 / .35); }
.version-state.is-new::before { animation: version-pulse 1.4s ease-in-out infinite; }
.version-state.is-error { background: rgb(120 20 0 / .35); }
.version-state.is-off, .version-state.is-checking { opacity: .85; }
@keyframes version-pulse { 50% { transform: scale(1.6); opacity: .5; } }
.version-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.version-facts li { display: grid; gap: 1px; padding: 7px 12px; border-radius: 12px; background: rgb(255 255 255 / .18); font-size: .78rem; line-height: 1.25; }
.version-facts span { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.version-facts strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.version-facts code { font: 700 .82rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.version-check { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgb(255 255 255 / .2); cursor: pointer; }
.version-check:hover:not(:disabled), .version-check:focus-visible { background: rgb(255 255 255 / .32); outline: none; }
.version-check:disabled { cursor: default; opacity: .7; }
.version-check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.version-check.is-spinning svg { animation: version-spin .9s linear infinite; }
@keyframes version-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .version-state.is-new::before, .version-check.is-spinning svg { animation: none; } }
.version-update { flex: 1 1 100%; display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / .95); color: #3a2200; }
.version-update[hidden] { display: none; }
.version-update p { margin: 0; }
.version-update-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.version-update-head span { font-size: .82rem; color: #8a5a20; }
.version-update-head a { margin-left: auto; font-weight: 700; color: #c25e00; }
.version-how { font-size: .84rem; }
.version-how code { padding: 2px 6px; border-radius: 6px; background: #fff4df; font: .8rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.version-changelog { flex: 1 1 100%; border-radius: 14px; background: rgb(255 255 255 / .16); }
.version-changelog[hidden] { display: none; }
.version-changelog summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: .86rem; font-weight: 700; cursor: pointer; list-style: none; border-radius: 14px; }
.version-changelog summary::-webkit-details-marker { display: none; }
.version-changelog summary:hover, .version-changelog summary:focus-visible { background: rgb(255 255 255 / .12); outline: none; }
.version-changelog .chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.version-changelog[open] .chevron { transform: rotate(180deg); }
.version-changelog summary b { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #fff; color: #c25e00; font-size: .74rem; text-align: center; }
.version-changelog-body { display: grid; gap: 10px; max-height: 340px; overflow: auto; padding: 0 12px 12px; }
.vc-entry { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / .95); color: #3a2200; font-size: .85rem; line-height: 1.45; }
.vc-entry header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.vc-entry header span { font-size: .78rem; color: #8a5a20; }
.vc-entry header a { margin-left: auto; font-size: .8rem; font-weight: 700; color: #c25e00; }
.vc-entry.is-next { background: #fff4df; border: 1px dashed #e2a24a; }
.vc-entry ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 4px; }
.vc-entry p { margin: 0; }
.vc-entry code { padding: 1px 5px; border-radius: 5px; background: rgb(194 94 0 / .1); font: .78rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.vc-empty { margin: 0; padding: 4px 4px 0; font-size: .84rem; opacity: .95; }
@media (prefers-reduced-motion: reduce) { .version-changelog .chevron { transition: none; } }
@media (max-width: 560px) {
  .version-card { padding: 16px; }
  .version-facts { width: 100%; }
  .version-facts li { flex: 1 1 0; }
  .version-check { position: absolute; top: 14px; right: 14px; }
  .version-main { padding-right: 46px; } /* the button's room: the state goes under the number instead of under it */
  .version-card { position: relative; }
}

/* Rewards preview (site panel): the meetup page's panel inside a modal. */
.reward-preview { margin: 0; }
.sheet-foot .reward-preview-btn { margin-right: auto; }
@media (max-width: 600px) { .sheet-foot .reward-preview-btn { flex-basis: 100%; margin-right: 0; } }

.reward-preview-types { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
/* Site panel, Comunidades: the whole row opens the community's page. */
.site-communities .sc-row { cursor: pointer; transition: background-color .15s, border-color .15s; }
.site-communities .sc-row:hover, .site-communities .sc-row:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.site-communities .sc-row:hover .sc-text strong { color: var(--accent); }

/* An icon before a card's title (site panel: Comunidades, Recompensas, Objetos). */
.card-head h2 .head-ico { width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Landing map: a community's pin inside a cluster stays on the map, hidden (its picture kept loaded). */
.leaflet-marker-icon.club-pin.is-clustered { visibility: hidden; pointer-events: none; }

/* Community page: its meetups as the user page's cards, with their figures. */
.cm-meetups .us-meetup .thumb-wrap { flex: none; }
.cm-meetups .us-thumb { display: block; } /* in the CA star's wrapper, not straight in the card's row */
.cm-meetups .us-meetup .cm-when { flex-wrap: wrap; gap: 2px 10px; } /* the day and the time, each in one piece */
.cm-when > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cm-meetups .us-meetup-tags { min-width: 0; }
.cm-meetups .us-meetup-tags .type-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-meetups .us-meetup { align-items: center; }
.cm-figures { flex: none; display: flex; gap: 6px; margin-left: auto; }
.cm-figure { display: grid; justify-items: center; align-content: center; min-width: 56px; padding: 6px 8px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.cm-figure strong { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.cm-figure span { font-size: .66rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.cm-figure.is-checkins strong { color: var(--accent); }
/* Narrow cards (phones, and the two columns of tablets): the figures one over the other. */
@media (max-width: 960px) {
  .cm-figures { flex-direction: column; gap: 4px; }
  .cm-figure { min-width: 64px; padding: 3px 6px; }
  .cm-figure strong { font-size: 1.05rem; }
  .cm-figure span { font-size: .6rem; }
}
@media (max-width: 420px) {
  .cm-meetups .us-meetup { gap: 10px; padding: 10px; }
  .cm-meetups .us-thumb { width: 48px; height: 48px; border-radius: 10px; }
}
