/* Tango Kalender – public site
   Concept: a dance card in the colours of the original site (white, #444,
   dark bars #1d1d1d, accent #d81608) with its tango-shoes header image; dates set
   large in Bodoni Moda like a milonga poster, everything else in Source Sans 3.
   Fonts are self-hosted (no requests to third parties). */

@font-face { font-family: "Bodoni Moda"; font-weight: 500; font-display: swap; src: url("../fonts/bodoni-moda-latin-500-normal.a5507679418a.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 600; font-display: swap; src: url("../fonts/bodoni-moda-latin-600-normal.d6fece8e8922.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 700; font-display: swap; src: url("../fonts/bodoni-moda-latin-700-normal.cf1d4f251751.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.bab398e040a4.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-400-normal.f99ace5e0f83.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.8befd6f435e5.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-600-normal.161f4b983da6.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.05e0be8feb8a.woff2") format("woff2"); }

/* hidden must win over any display rule (toggled blocks, dialog buttons) */
[hidden] { display: none !important; }

:root {
  /* Colours taken from the WordPress site (Hemingway theme, accent #d81608) */
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #333333;
  --text: #444444;
  --muted: #767676;
  --line: #e5e5e5;
  --accent: #d81608;
  --accent-deep: #a8110a;
  --dark: #1d1d1d;
  --dark-2: #262626;
  --soft: #f2f2f2;
  --cancel: #d81608;
  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 3px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.55 var(--sans); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0 0 .4em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Development banner */
.devbar { background: #fff3cd; color: #5c4400; font-size: .8rem; text-align: center; padding: 4px 16px; letter-spacing: .02em; }

/* Header: tango shoes cover image with a dark title box, as on the old site */
.site-header { background: var(--dark); }
.header-cover {
  background: var(--dark) url("../img/header-tango.3f790f011a4e.jpg") no-repeat center / cover;
  background-image: image-set(url("../img/header-tango.442dea7c4db9.webp") type("image/webp"), url("../img/header-tango.3f790f011a4e.jpg") type("image/jpeg"));
  padding-block: clamp(40px, 8vw, 100px);
  padding-inline: var(--gutter);
  text-align: center;
}
.brand { display: inline-block; background: var(--dark); padding: 28px 34px; text-decoration: none; max-width: 100%; }
.brand-name { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2rem); color: #fff; text-transform: uppercase; letter-spacing: .14em; line-height: 1.1; }
.brand:hover .brand-name { color: var(--accent); }
.brand-tag { display: block; color: rgba(255, 255, 255, .55); font-size: .95rem; }
.brand-tag::before { content: ""; display: block; width: 100px; height: 2px; background: rgba(255, 255, 255, .12); margin: 18px auto; }
.brand-claim { display: block; margin-top: 8px; color: rgba(255, 255, 255, .42); font-size: .78rem; font-weight: 600;
               letter-spacing: .12em; text-transform: uppercase; }
.navbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.main-nav { display: flex; flex-wrap: wrap; flex: 1; align-items: center; }
.main-nav a { color: rgba(255, 255, 255, .55); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 600; padding: 22px 16px; position: relative; }
.main-nav a + a::before { content: "/"; position: absolute; left: -4px; color: #555; }
.main-nav a:first-child { padding-left: 0; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: #fff; }
.header-actions { display: flex; gap: 12px; align-items: center; padding-block: 10px; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { font: 600 .76rem var(--sans); letter-spacing: .08em; text-decoration: none; border: 1px solid transparent; color: rgba(255, 255, 255, .55); padding: 3px 6px; border-radius: var(--radius); }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { color: #fff; border-color: #555; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: 600 .95rem var(--sans); text-decoration: none; padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.secondary:hover { background: var(--soft); color: var(--accent-deep); }

main { padding-block: 28px 64px; }

/* Filter bar */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; margin-bottom: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label, .chip-group legend { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field select { font: inherit; font-size: .95rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); min-width: 0; }
.field.grow { flex: 1 1 220px; }
.field.place { flex: 1 1 180px; }
.chip-group { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-group legend { margin-right: 6px; float: left; padding-top: 5px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; background: var(--paper); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; }
.locate { background: none; border: 0; color: var(--accent); font: inherit; font-size: .85rem; cursor: pointer; padding: 0; text-decoration: underline; }
.filter-note { font-size: .9rem; color: var(--cancel); }

/* View tabs */
.view-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 18px; }
.found-events { border: 1px solid var(--accent); border-radius: var(--radius); padding: 10px 16px 14px; margin: 0 0 22px; }
.found-events .dash-table { margin-bottom: 0; }
.found-events h2 { margin: 4px 0 2px; font-size: 1.15rem; }
.tabs { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tabs a { padding: 6px 16px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; background: var(--surface); }
.tabs a + a { border-left: 1px solid var(--line); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* Event list: dance card */
.month-heading { font-family: var(--display); font-size: 1.35rem; font-weight: 600; margin: 30px 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.date-block { text-align: center; line-height: 1; padding-top: 2px; }
.date-block .dow { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.date-block .day { display: block; font-family: var(--display); font-weight: 700; font-size: 2.5rem; color: var(--accent); margin: 3px 0 2px; font-variant-numeric: lining-nums; }
.date-block .mon { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.event-main { min-width: 0; }
.event-title { font-family: var(--display); font-size: 1.28rem; font-weight: 600; margin: 0 0 4px; line-height: 1.2; overflow-wrap: anywhere; }
.event-main { min-width: 0; }
.event-title a { color: var(--ink); text-decoration: none; }
.event-title a:hover { color: var(--accent); }
.event-meta { font-size: .94rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 14px; }
.event-meta strong { color: var(--ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.tag.status { background: var(--cancel); color: #fff; }
.tag.series { background: transparent; border: 1px solid var(--line); }
.thumb { width: 112px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.event-row.is-cancelled .event-title a { text-decoration: line-through; text-decoration-color: var(--cancel); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; }

/* Trust levels (research pipeline): confirmed = full card, corroborated =
   compact card, hint = quiet grey line collapsed per day */
.trust { display: inline-block; vertical-align: middle; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .04em; padding: 1px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; margin-left: 4px; }
.trust-3 { color: #2f6b3a; border-color: #2f6b3a; }
.trust-2 { color: #7a5a00; border-color: #c9a227; background: #fffaf0; }
.trust-1 { color: #666; border-color: #bbb; background: #fafafa; }
.trust-2x { color: #2f6b3a; border-color: #9fd3a8; background: #f0f9f1; }
.trust-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin: -8px 0 16px; }
.trust-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .82rem; }
.trust-switch a { padding: 3px 12px; text-decoration: none; color: var(--ink); background: var(--surface); }
.trust-switch a + a { border-left: 1px solid var(--line); }
.trust-switch a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.trust-legend { font-size: .85rem; color: var(--muted); }
.trust-legend summary { cursor: pointer; }
.trust-legend dl { margin: 8px 0 4px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; max-width: 640px; }
.trust-legend dt, .trust-legend dd { margin: 0; }
.event-row.is-research .event-title { font-size: 1.1rem; }
.event-row.is-research .event-title a { color: #333; }
.event-row.trust-level-1 { padding: 8px 0; color: #6a6a6a; }
.event-row.trust-level-1 .event-title { font-size: 1rem; font-weight: 500; font-family: inherit; }
.event-row.trust-level-1 .event-title a { color: #555; }
.event-row.trust-level-1 .date-block .day { font-size: 1.5rem; color: #595959; margin: 0; }
.event-row.trust-level-1 .event-meta strong { color: #555; font-weight: 500; }
.event-row.trust-level-1 .tags { display: none; }
.event-summary { margin: 4px 0 0; font-size: .92rem; color: #555; }
.event-summary.conflict, .provenance .conflict { color: #7a5a00; }
details.hints { margin: 0 0 4px; border-bottom: 1px solid var(--line); }
details.hints summary { cursor: pointer; padding: 8px 0 8px 74px; font-size: .9rem; color: var(--accent); list-style: none; }
details.hints summary::-webkit-details-marker { display: none; }
details.hints summary .marker::before { content: "▸ "; color: var(--muted); }
details.hints[open] summary .marker::before { content: "▾ "; }
details.hints summary .muted { color: var(--muted); font-size: .82rem; }
.hint-list { border-top: 1px dashed var(--line); }
.month-grid li.is-research a { color: #666; }
.month-grid .hint-count a { color: #666; font-size: .75rem; }
.provenance { border: 1px solid var(--line); border-left: 4px solid #c9a227; border-radius: var(--radius); padding: 10px 14px; margin: 12px 0 16px; background: var(--soft); font-size: .95rem; }
.provenance p { margin: 0 0 6px; }
.provenance table.origin { border-collapse: collapse; margin: 4px 0 8px; width: 100%; }
.provenance table.origin caption { text-align: left; font-weight: 600; padding-bottom: 2px; }
.provenance table.origin th, .provenance table.origin td { text-align: left; vertical-align: top; padding: 2px 10px 2px 0; border-top: 1px solid var(--line); }
.provenance table.origin th { font-weight: 600; white-space: nowrap; }
.provenance table.origin .differ { color: #7a5a00; }
.provenance .sources a { color: #555; }
.detail-summary { font-size: 1.05rem; }
.btn.small { padding: 4px 12px; font-size: .85rem; }
.leaflet-marker-icon.research-marker { filter: grayscale(1) opacity(.55); }

/* Month view */
.month-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.month-nav h2 { margin: 0; min-width: min(9em, 100%); }
.month-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.month-grid { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.month-grid th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px; text-align: left; border-bottom: 1px solid var(--line); }
.month-grid td { vertical-align: top; height: 120px; padding: 6px; border: 1px solid var(--line); }
.month-grid td.other { background: var(--paper); color: var(--muted); }
.month-grid td.today { box-shadow: inset 0 0 0 2px var(--accent); }
.month-grid .num { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.month-grid ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: .8rem; line-height: 1.25; }
.month-grid li { margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.month-grid li a { color: var(--ink); text-decoration: none; }
.month-grid li a:hover { color: var(--accent); }
.month-grid li a.is-cancelled { text-decoration: line-through; }
.month-grid li time { color: var(--accent); font-weight: 600; margin-right: 3px; }
.month-grid .more { color: var(--muted); }

/* Map */
#map { height: min(70vh, 640px); min-height: 360px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.map-popup h4 { font: 600 1rem var(--display); margin: 0 0 4px; }
.map-popup ul { padding-left: 16px; margin: 4px 0; }
.map-popup li.status-cancelled a { text-decoration: line-through; }

/* Event detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.back { display: inline-block; margin-bottom: 14px; font-size: .92rem; }
.detail-when { font-family: var(--display); font-size: 1.25rem; margin: 0 0 4px; color: var(--accent); }
.detail-body { margin-top: 18px; overflow-wrap: anywhere; }
.detail-body p { margin: 0 0 1em; }
.hero { width: 100%; max-height: 520px; object-fit: contain; background: var(--soft); border-radius: var(--radius); margin-top: 18px; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.aside-card h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--sans); color: var(--muted); margin-bottom: 8px; }
.aside-card p { margin: 0 0 6px; }
.aside-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.aside-card dt { color: var(--muted); }
.aside-card dd { margin: 0; overflow-wrap: anywhere; }
.mini-map { height: 220px; border-radius: var(--radius); margin-top: 10px; border: 1px solid var(--line); }
.mini-map.flush { margin-top: 0; }
.ticket-link { margin-top: 12px; }
.cal-links { display: flex; flex-wrap: wrap; gap: 8px; }
.notice { border-left: 4px solid var(--cancel); background: var(--surface); padding: 10px 14px; margin: 14px 0; }
.compact-list { list-style: none; padding: 0; margin: 0; }
.compact-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.compact-list time { display: block; font-size: .84rem; color: var(--muted); }

/* Venues */
.city-list { columns: 3 260px; column-gap: 32px; }
.city { break-inside: avoid; margin-bottom: 20px; }
.city h2 { font-size: 1.15rem; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.city ul { list-style: none; padding: 0; margin: 0; }
.city li { padding: 3px 0; }

/* Text pages */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }

/* Account area and forms */
.narrow { max-width: 860px; margin: 0 auto; }
.nav-account { color: rgba(255, 255, 255, .7); font-size: .85rem; font-weight: 600; text-decoration: none; }
.nav-account:hover { color: #fff; }
form.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--accent); text-decoration: underline; }
.navbar .linklike.nav-account { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: .85rem; font-weight: 600; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; padding-bottom: 8px; font-size: .92rem; }
.subnav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--accent); }
.form { display: grid; gap: 14px; }
.form-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 12px; background: var(--surface); }
.form-section.highlight { border-color: var(--accent); }
.form-section h2 { font-size: 1.15rem; margin: 0; }
.form-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.form-field > label { font-weight: 600; font-size: .92rem; }
.form-field input:not([type=checkbox]):not([type=radio]), .form-field select, .form-field textarea {
  font: inherit; padding: 8px 10px; border: 1px solid #cfcfcf; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.form-field textarea { min-height: 8em; }
.form-field.is-check > label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.form-field fieldset { border: 0; padding: 0; margin: 0; }
.form-field legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.choice-list { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.choice { display: inline-flex; gap: 6px; align-items: center; }
.form-field .help { font-size: .84rem; color: var(--muted); margin: 0; }
.form-field .error { font-size: .88rem; color: var(--accent); margin: 0; font-weight: 600; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--accent); }
.form-field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sticky-actions { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0; border-top: 1px solid var(--line); }
.form-footer { margin-top: 18px; font-size: .92rem; }
.grid-2, .grid-3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.new-block { border-left: 3px solid var(--soft); padding-left: 14px; display: grid; gap: 12px; }
.form-thumb { max-width: 220px; border-radius: var(--radius); }
.alert { padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--soft); margin-bottom: 12px; }
.alert.success { background: #eef7ee; border-color: #b9dcb9; }
.alert.error { background: #fdecea; border-color: #f2b8b3; }
.alert.info { background: #fff8e1; border-color: #f0dc9a; }
.alert p { margin: 0; }
.btn.danger { background: var(--accent-deep); border-color: var(--accent-deep); }
.danger-link { color: var(--accent-deep); }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .94rem; }
.dash-table th { text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 6px 8px; }
.dash-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.dash-table .actions { font-size: .88rem; }
.nowrap { white-space: nowrap; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.badge.status-published { background: #e6f4e6; color: #2f6b3a; }
.badge.status-pending { background: #fff3cd; color: #7a5a00; }
.badge.status-cancelled, .badge.status-rejected { background: #fdecea; color: var(--accent-deep); }
@media (max-width: 700px) {
  .dash-table thead { display: none; }
  .dash-table, .dash-table tbody, .dash-table tr, .dash-table td { display: block; width: 100%; }
  .dash-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .dash-table td { border: 0; padding: 3px 0; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 22px 32px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (max-width: 800px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .event-row { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
  details.hints summary { padding-left: 0; }
  .event-row .thumb { display: none; }
  .date-block .day { font-size: 2rem; }
  .main-nav { width: 100%; flex: none; }
  .main-nav a { padding: 14px 12px; }
  .header-actions { width: 100%; justify-content: space-between; padding-block: 0 12px; }
  .brand { padding: 20px 22px; }
}
.filter-toggle { margin-bottom: 12px; }
@media (max-width: 800px) {
  .js .filters.collapsible:not(.open) { display: none; }
}
@media (min-width: 801px) { .filter-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Editorial back office --------------------------------------------------- */
.editorial { padding-bottom: 40px; }
.editorial .subnav { flex-wrap: wrap; }
.editorial h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 10px 0; }
.toolbar input[type="search"], .toolbar select { font: inherit; font-size: .92rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.toolbar input[type="search"] { min-width: min(320px, 100%); }
.btn.small { padding: 5px 12px; font-size: .86rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.stat { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.stat strong { display: block; font-size: 1.9rem; color: var(--ink); font-family: var(--display); line-height: 1.1; }
.stat.attention { border-color: var(--accent); }
.dash-table td.wrap { overflow-wrap: anywhere; }
.stat-text .stat strong.label { font-size: .95rem; font-family: inherit; margin-bottom: 4px; }
.stat-text .stat strong.error { display: inline; font-size: inherit; font-family: inherit; }
.stat-text .stat { color: var(--ink); }
.editorial span.error, .editorial strong.error { color: var(--accent); }
.stat.attention strong { color: var(--accent); }
.review-card { display: grid; grid-template-columns: 1fr 260px; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 18px; margin: 12px 0; }
.review-card h2 { margin: 0 0 4px; }
.review-text { color: var(--muted); margin-top: 8px; }
.review-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.review-actions form { display: flex; flex-direction: column; gap: 6px; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.edit-aside { padding-top: 64px; }
.edit-aside pre { white-space: pre-wrap; background: var(--soft); padding: 8px; border-radius: var(--radius); }
@media (max-width: 760px) {
  .review-card, .edit-grid { grid-template-columns: 1fr; }
  .edit-aside { padding-top: 0; }
}
.site-header.compact .header-cover { padding-block: 10px; background-position: center 40%; }
.site-header.compact .brand { padding: 8px 18px; }
.site-header.compact .brand-tag, .site-header.compact .brand-claim { display: none; }
.dash-table td.actions { display: table-cell; }
.dash-table td.actions > * { display: inline-block; margin: 0 12px 4px 0; }
.health-problems li { color: var(--accent-deep); font-weight: 600; }
.health-warnings li { color: #7a5a00; }
.impersonation-bar { position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; background: var(--accent); color: #fff; padding: 8px 16px; font-size: .95rem; }
.impersonation-bar .btn { background: #fff; color: var(--accent-deep); border-color: #fff; }

/* Back office (editorial area and "My events"): boxes with rounded corners */
.editorial, .narrow { --radius: 12px; --box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .05); }
.editorial .dash-table, .narrow .dash-table { background: var(--surface); border-radius: var(--radius); box-shadow: var(--box-shadow); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.editorial .dash-table thead th, .narrow .dash-table thead th { padding: 10px 12px; background: var(--surface); }
.editorial .dash-table td, .narrow .dash-table td { padding: 12px; }
.editorial .dash-table tbody tr:last-child td, .narrow .dash-table tbody tr:last-child td { border-bottom: 0; }
.editorial .dash-table tbody tr:hover { background: #fdf6f5; }
.editorial .toolbar.box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--box-shadow); padding: 12px 14px; }
.editorial .stat, .editorial .review-card { border-radius: var(--radius); box-shadow: var(--box-shadow); border-color: transparent; }
.editorial .stat.attention { border-color: var(--accent); }
.dash-table td.wrap { overflow-wrap: anywhere; }
.stat-text .stat strong.label { font-size: .95rem; font-family: inherit; margin-bottom: 4px; }
.stat-text .stat strong.error { display: inline; font-size: inherit; font-family: inherit; }
.stat-text .stat { color: var(--ink); }
.editorial span.error, .editorial strong.error { color: var(--accent); }
.editorial .tabs, .narrow .tabs { border-radius: 999px; }
.editorial .edit-aside > *:first-child { margin-top: 0; }
.editorial .edit-grid > div > form.form, .editorial .edit-aside { background: var(--surface); border-radius: var(--radius); box-shadow: var(--box-shadow); padding: 18px 20px; }
.editorial .edit-aside { padding-top: 18px; align-self: start; }
.editorial ul.plain li:last-child { border-bottom: 0; }
.editorial input, .editorial select, .editorial textarea, .narrow input, .narrow select, .narrow textarea { border-radius: 8px; }
/* Rounded buttons belong to the back office; public pages keep the old site's look */
.editorial .btn, .narrow .btn, .media-dialog .btn { border-radius: 8px; }
.view-as { margin-bottom: 18px; }

/* Narrow windows: rows become cards – title on top, details below */
@media (max-width: 900px) {
  .dash-table.cards thead { display: none; }
  .dash-table.cards, .dash-table.cards tbody { display: block; }
  .dash-table.cards tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .dash-table.cards td { display: block; border: 0; padding: 2px 0; font-size: .92rem; }
  .dash-table.cards td.cell-title { font-size: 1.05rem; padding-bottom: 6px; }
  .dash-table.cards td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
  .dash-table.cards td.actions { padding-top: 8px; }
  .dash-table.cards tbody tr:last-child { border-bottom: 0; }
}

/* Header on medium-width windows: the menu entries stay on one line, the
   account links and the button move to a second line. On phones the entries
   may wrap, so nothing is cut off and the page never scrolls sideways. */
.main-nav { flex-wrap: nowrap; }
@media (max-width: 1100px) {
  .main-nav { width: 100%; flex: none; }
  .main-nav a { padding: 14px 12px; }
  .header-actions { flex-wrap: wrap; padding-bottom: 10px; }
}
@media (max-width: 520px) {
  .main-nav { flex-wrap: wrap; }
  .main-nav a { padding: 12px 9px; letter-spacing: .05em; }
  .nav-caret { padding: 10px 10px 10px 2px; }
}
.position-map { height: 260px; border-radius: var(--radius); border: 1px solid var(--line); margin: 8px 0; }
.position-map.changed { outline: 2px solid var(--accent); }
.badge.coord-approximate, .badge.coord-none { background: #fff3cd; color: #7a5a00; }
.badge.coord-manual, .badge.coord-geocoded { background: #e6f4e6; color: #2f6b3a; }

/* "Events" with sub-entries (as on the old site) */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.main-nav > .nav-dropdown + a::before, .main-nav > .nav-dropdown + .nav-dropdown > a::before { content: "/"; position: absolute; left: -4px; color: #555; }
.nav-dropdown > a { padding-left: 0; padding-right: 6px; }
.main-nav > .nav-dropdown + .nav-dropdown > a { padding-left: 16px; }    /* room for the "/" like the plain entries */
.nav-caret { background: none; border: 0; padding: 10px 14px 10px 2px; cursor: pointer; color: rgba(255, 255, 255, .55); line-height: 0; }
.nav-caret::after { content: ""; display: inline-block; border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.nav-dropdown:hover .nav-caret, .nav-caret[aria-expanded="true"] { color: #fff; }
.nav-submenu {
  display: none; position: absolute; top: 100%; left: -16px; z-index: 900; min-width: 220px; margin: 0; padding: 4px 0;
  list-style: none; background: var(--dark); box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.nav-submenu li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
.main-nav .nav-submenu a { display: block; padding: 14px 18px; }
.main-nav .nav-submenu a::before { content: none; }
.nav-submenu a[aria-current="true"], .nav-submenu a:hover { color: #fff; }
.nav-dropdown.open .nav-submenu { display: block; }
@media (hover: hover) {
  /* keyboard: the arrow button opens the list; focus inside it keeps it open */
  .nav-dropdown:hover .nav-submenu, .nav-submenu:focus-within { display: block; }
}

/* Description editor (static/js/richtext.js) */
.rte { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); overflow: hidden; }
.rte:focus-within { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(216, 22, 8, .15); }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: var(--soft); border-bottom: 1px solid var(--line); }
.rte-btn { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: transparent;
           font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer; }
.rte-btn:hover { background: #fff; border-color: var(--line); }
.rte-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rte-italic { font-style: italic; } .rte-underline { text-decoration: underline; }
.rte-heading { font-family: var(--display); }
.rte-link, .rte-unlink, .rte-clear { font-weight: 400; }
.rte-editor { min-height: 220px; max-height: 60vh; overflow-y: auto; padding: 12px 14px; outline: none; line-height: 1.55; }
.rte-editor p { margin: 0 0 .7em; }
.rte-editor h2, .rte-editor h3, .rte-editor h4 { font-size: 1.15rem; margin: .8em 0 .4em; }
.rte-editor blockquote { margin: .5em 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
.rte-editor ul, .rte-editor ol { padding-left: 1.4em; margin: 0 0 .7em; }
/* the preset sub-entry next to "Events", e.g. "TERMINE · MILONGA" */
.nav-current { color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding-right: 4px; }
@media (max-width: 520px) { .nav-current { display: none; } }
.category-events { margin-top: 28px; }
.category-events .dash-head { margin-bottom: 10px; }
.category-events h2 { margin: 0; }
.pager-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 14px; }

/* Language of the text, inside the editor toolbar */
.rte-language { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.rte-language select { font: inherit; font-size: .88rem; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.rte-editor img, .detail-body img { max-width: 100%; height: auto; border-radius: var(--radius, 8px); display: block; margin: .6em 0; }

/* "Not in the list?" */
.new-toggle { margin: -4px 0 12px; font-size: .92rem; }
.new-toggle .linklike, .new-block .linklike { color: var(--accent); text-decoration: underline; }

/* Event image: preview + library + upload */
.image-choice { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.image-choice .form-thumb { width: 160px; height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.image-choice > div { flex: 1 1 260px; }

/* Media library dialog */
.media-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 14px;
                box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: auto; }
.media-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.media-head { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px;
              background: var(--paper); border-bottom: 1px solid var(--line); }
.media-head h2 { margin: 0 auto 0 0; font-size: 1.3rem; }
.media-search { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; flex: 0 1 220px; }
.media-upload { cursor: pointer; }
.media-close { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.media-status { margin: 10px 18px 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 14px 18px; }
.media-item { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--soft); cursor: pointer;
              aspect-ratio: 1; overflow: hidden; }
.media-item:hover, .media-item:focus-visible { border-color: var(--accent); }
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; background: rgba(0, 0, 0, .55); color: #fff;
                 font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.media-empty { grid-column: 1 / -1; }
.media-more { display: block; margin: 0 auto 18px; }

/* Breadcrumbs with "Back" */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 16px; font-size: .9rem; }
.crumbs-back { display: inline-flex; align-items: center; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px;
               text-decoration: none; color: var(--ink); font-weight: 600; background: var(--surface); }
.crumbs-back:hover { border-color: var(--accent); color: var(--accent); }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; color: var(--muted); min-width: 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: #b5b5b5; }
.crumbs li a { color: var(--muted); text-decoration: none; }
.crumbs li a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .crumbs [aria-current="page"] { max-width: 22ch; } }
.city { scroll-margin-top: 16px; }

/* City pages and chips (R-14) */
.city-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 0 6px; scrollbar-width: thin; }
.city-chips .chip { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px; font-size: .88rem; color: var(--ink); background: var(--surface); text-decoration: none; white-space: nowrap; }
.city-chips .chip.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.city-chips .chip-locate { border-style: dashed; cursor: pointer; font: inherit; font-size: .88rem; }
.city-chips .chip-locate:disabled { opacity: .5; }
.city-chips .chip-remembered { display: inline-flex; align-items: center; gap: 6px; }
.city-chips .chip-remembered a { color: var(--ink); text-decoration: none; }
.city-chips .chip-remembered a::before { content: "⌂ "; color: var(--muted); }
.city-chips .chip-remembered .small { border: 0; padding: 0; background: none; color: var(--muted); }
.city-chips .chip-remembered button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0; font-size: .85rem; }
.city-chips .chip-more { color: var(--muted); }
/* The entry page (decision B: place first) */
.home-hero { text-align: center; padding: 10px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.home-hero h1 { margin: 6px 0 14px; }
.home-continue { margin: 0 0 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.home-continue .btn { font-size: 1.05rem; padding: 10px 22px; }
.home-chips { justify-content: center; flex-wrap: wrap; overflow: visible; }
.home-chips .chip { font-size: .95rem; padding: 6px 15px; }
.home-chips .chip-group-label { border: 0; background: none; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding-left: 4px; flex-basis: 100%; text-align: left; }
.home-search { display: flex; gap: 8px; justify-content: center; margin: 14px auto 10px; max-width: 520px; }
.home-search input[type="search"] { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.home-quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; }
.home-quick .chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px; font-size: .88rem; color: var(--ink); text-decoration: none; background: var(--surface); }
.home-country h2, .home-how h2 { font-size: 1.3rem; margin: 18px 0 6px; }
.home-how { margin: 24px 0 8px; color: var(--text); }
.nav-submenu .nav-group { color: rgba(255, 255, 255, .45); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 8px 14px 2px; }
.city-cards { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.city-cards li a, .city-cards li > span { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); text-decoration: none; color: var(--ink); }
.city-cards li.is-pending > span { background: transparent; color: var(--muted); }
.city-cards li a strong, .city-cards li > span strong { display: block; font-family: var(--display); font-size: 1.25rem; margin-bottom: 2px; }
.city-coat { float: right; width: 40px; height: 48px; object-fit: contain; margin: -2px 0 6px 10px; }
.city-cards li.is-pending .city-coat { opacity: .55; }
.city-credits { margin: 6px 0 0; }
.city-credits summary { cursor: pointer; }
.city-head { margin: 8px 0 16px; }
.city-head.has-coat { display: grid; grid-template-columns: 60px 1fr; column-gap: 14px; align-items: start; }
.city-head.has-coat .city-coat-large { float: none; width: 60px; height: 72px; margin: 4px 0 0; grid-row: 1 / span 3; }
.city-head.has-coat h1, .city-head.has-coat .city-counts, .city-head.has-coat .city-langs { grid-column: 2; }
.city-head h1 { margin-bottom: 4px; }
.city-counts { color: var(--muted); margin: 0 0 8px; }
.city-langs { display: flex; gap: 6px; }
.city-filter { gap: 8px; margin: 18px 0 8px; padding: 12px 14px; }
.city-filter .check { margin-left: 8px; }
.city-langs a { border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.city-langs a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.city-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 22px; }
.city-text .lead { font-size: 1.08rem; }
.city-text h2 { font-size: 1.15rem; margin: 14px 0 4px; }
.city-text .city-stand { margin: 10px 0 0; }
.city-tips { padding-left: 20px; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-day { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px; min-height: 90px; }
.week-day h3 { margin: 0 0 6px; font-size: .9rem; font-family: inherit; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.week-day li { padding: 3px 0; border: 0; font-size: .85rem; line-height: 1.3; }
.week-day li a { text-decoration: none; color: var(--ink); font-weight: 600; }
.week-day li.trust-level-3 a { color: var(--ok, #2f6b3a); }
.week-day li.trust-level-2 a { color: #7a5a00; }
.week-day li.trust-level-2.trust-external a { color: #3d7a46; }
.week-day li.trust-level-1 a, .week-day li.trust-level-0 a { color: var(--muted); font-weight: 400; }
.city-cols { columns: 2; column-gap: 24px; list-style: none; padding: 0; }
.city-cols li { break-inside: avoid; padding: 3px 0; }
.city-page section { margin: 0 0 26px; }
.legend-mark { display: inline-block; width: 1.2em; height: 1.2em; border-radius: 50%; border: 1px solid currentColor; text-align: center; line-height: 1.2em; font-size: .8em; margin-right: 2px; }
@media (max-width: 900px) { .week-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .week-grid { grid-template-columns: repeat(2, 1fr); } .city-cols { columns: 1; } }

/* Help center and the teaser page */
.help-head .lead { max-width: 70ch; }
.help-group h2 { font-size: 1.3rem; margin: 22px 0 8px; }
.help-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.help-cards a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: inherit; background: var(--surface); height: 100%; }
.help-cards a:hover { border-color: var(--ink); }
.help-cards strong { display: block; margin-bottom: 4px; }
.help-cards span { color: var(--muted); font-size: .92rem; }
.help-article { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.help-nav { position: sticky; top: 12px; font-size: .92rem; }
.help-nav ul { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid var(--line); }
.help-nav li { padding: 3px 0 3px 12px; margin-left: -2px; border-left: 2px solid transparent; }
.help-nav li[aria-current] { border-left-color: var(--accent); font-weight: 700; }
.help-nav a { text-decoration: none; color: inherit; }
.help-nav-back { color: var(--muted); }
.help-body { max-width: 78ch; }
.help-body img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.06); margin: 6px 0 2px; }
.help-body figure { margin: 18px 0; }
.help-body figcaption, .help-body img + em { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; }
.help-body table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 12px 0 18px; }
.help-body th, .help-body td { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.help-body th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.help-body kbd { font: .9em/1.3 ui-monospace, Menlo, Consolas, monospace; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.help-toc { font-size: .9rem; margin: 0 0 18px; padding: 10px 14px; background: var(--soft); border-radius: 8px; }
.help-toc ul { margin: 0; padding-left: 18px; }
.help-foot { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .help-article { grid-template-columns: 1fr; gap: 12px; }
  .help-nav { position: static; }
  .help-nav ul { display: flex; flex-wrap: wrap; gap: 4px 10px; border: 0; }
  .help-nav li { padding: 2px 0; border: 0; }
}

/* The teaser page */
.about .kicker { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 6px 0 0; }
.about-hero { padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
.about-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin: .2em 0 .4em; max-width: 22ch; }
.about-hero .lead { max-width: 70ch; font-size: 1.08rem; }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0 4px; }
.about-link { white-space: nowrap; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--soft); }
.about-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0 8px; }
.about-numbers div { background: var(--soft); border-radius: 12px; padding: 14px 16px; }
.about-numbers b { display: block; font: 700 1.8rem/1.1 var(--serif, Georgia, serif); color: var(--ink); }
.about-numbers span { color: var(--muted); font-size: .88rem; }
.about-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 28px 0 10px; }
.about-pillars h2 { font-size: 1.25rem; margin: 0 0 8px; }
.about-pillars p { margin: 0; color: var(--text, #3a3a3a); }
.about-diagram { margin: 30px 0 6px; }
.about-diagram h2, .about-features h2, .about-compare h2, .about-end h2 { font-size: 1.5rem; margin: 0 0 10px; }
.about-diagram figure { margin: 0; }
.about-diagram .diagram { width: 100%; height: auto; display: block; }
.about-diagram figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; max-width: 80ch; }
.about-features { margin: 34px 0 10px; }
.about-features ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.about-features li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .95rem; color: var(--text, #3a3a3a); }
.about-features strong { display: block; margin-bottom: 4px; color: var(--ink); }
.about-compare { margin: 34px 0 10px; }
.about-compare table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.about-compare th, .about-compare td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.about-compare th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.about-compare td:nth-child(2) { font-weight: 600; }
.about-compare td:nth-child(3) { color: var(--muted); }
.about-end { margin: 34px 0 10px; padding: 20px; background: var(--soft); border-radius: 14px; }
.about-end p { max-width: 70ch; }
@media (max-width: 600px) {
  .about-diagram .diagram { min-width: 640px; }
  .about-diagram figure { overflow-x: auto; }
  .about-compare table { display: block; overflow-x: auto; }
}
