/* The screenwriting events pages (scriptopus.com/screenwriting-events).
   Copied into landing/screenwriting-events/assets/ by build.mjs. The tokens
   repeat the site's :root block (faq.html, screenplay-formatter.html); the
   accent comes from chrome.js at runtime, these are its no-JS fallback and
   MUST match DEFAULT_THEME there. The site has no dark theme. */
:root {
  --bg: #fafaf9;
  --bg-soft: #f4f4f3;
  --surface: #ffffff;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: #e7e7e6;
  --line-soft: #efefee;
  --accent: #047857;
  --accent-deep: #065f46;
  --accent-soft: #34d399;
  --accent-wash: #e7f4ee;
  --accent-ring: rgba(4, 120, 87, 0.15);
  --warn: #9a3412;
  --warn-wash: #fdf0e3;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 16px;
  --radius-sm: 12px;

  /* Revision pages. The paper tints are the coloured rows of the home page
     hero design the owner picked out (2026-10-16: BLUE Rev. 1 to CHERRY
     Rev. 7); each ink is the matching craft token in index.html's :root
     (--craft-blue, --craft-pink, --craft-yellow, --craft-gold, --craft-wine),
     with salmon and buff taking the deep orange and amber already on the
     site. Ink on paper stays at 4.5:1 or more (measured 2026-10-16: 5.0 to
     7.2), which is why yellow's ink is a shade darker than --craft-yellow
     (#a16207 gives 4.3 on yellow paper). --muted fails on the papers, so
     text on a band uses --ink-2 or the band's ink. */
  --rev-blue: #dde8fa;      --ink-blue: #1d4ed8;
  --rev-pink: #fce2ed;      --ink-pink: #be185d;
  --rev-yellow: #fcf1c3;    --ink-yellow: #8a5306;
  --rev-goldenrod: #f5dc9c; --ink-goldenrod: #92400e;
  --rev-buff: #efe4ce;      --ink-buff: #78350f;
  --rev-salmon: #f9d9cc;    --ink-salmon: #9a3412;
  --rev-cherry: #f4c9d2;    --ink-cherry: #9f1239;
}

/* Each kind wears one revision colour, wherever it appears. */
[data-cat="competition"] { --cat-paper: var(--rev-goldenrod); --cat-ink: var(--ink-goldenrod); }
[data-cat="fellowship"]  { --cat-paper: var(--rev-blue);      --cat-ink: var(--ink-blue); }
[data-cat="festival"]    { --cat-paper: var(--rev-cherry);    --cat-ink: var(--ink-cherry); }
[data-cat="conference"]  { --cat-paper: var(--rev-yellow);    --cat-ink: var(--ink-yellow); }
[data-cat="pitch"]       { --cat-paper: var(--rev-salmon);    --cat-ink: var(--ink-salmon); }
[data-cat="workshop"]    { --cat-paper: var(--rev-pink);      --cat-ink: var(--ink-pink); }
[data-band="buff"]       { --cat-paper: var(--rev-buff);      --cat-ink: var(--ink-buff); }

/* The edge of a stack of revision pages, across the top of the hub. */
.ev-revs { display: flex; height: 8px; }
.ev-revs span { flex: 1; }
.rev-blue { background: var(--rev-blue); } .rev-pink { background: var(--rev-pink); }
.rev-yellow { background: var(--rev-yellow); } .rev-goldenrod { background: var(--rev-goldenrod); }
.rev-buff { background: var(--rev-buff); } .rev-salmon { background: var(--rev-salmon); }
.rev-cherry { background: var(--rev-cherry); }

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
[hidden] { display: none !important; }

/* ── hero ─────────────────────────────────────────── */
.ev-hero { padding: 40px 0 28px; }
.ev-hero-hub { padding: 40px 0 24px; text-align: center; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px;
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.ev-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.06;
  margin: 0; text-wrap: balance; max-width: 900px;
}
.ev-hero-hub h1 { font-size: clamp(32px, 4.2vw, 50px); margin: 0 auto; }
.ev-hero h1 em { font-style: normal; color: var(--accent); }
.ev-hero .sub { font-size: 17px; color: var(--muted); line-height: 1.55; margin: 14px auto 0; max-width: 620px; }
.ev-hero .lede { font-size: 17px; color: var(--ink-2); line-height: 1.65; margin: 18px 0 0; max-width: 760px; }
.ev-sub { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.ev-org { font-size: 14.5px; color: var(--muted); margin: 10px 0 0; }

.ev-crumbs { font-size: 13px; color: var(--muted); margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ev-crumbs a { color: var(--ink-2); }
.ev-crumbs a:hover { color: var(--accent); }
.ev-crumbs .sep { color: var(--faint); }
.ev-crumbs [aria-current] { color: var(--muted); }

.ev-status {
  display: inline-block; margin: 22px 0 0; padding: 10px 16px;
  background: var(--accent-wash); color: var(--accent-deep);
  border-radius: 14px; font-size: 14.5px;
}
.ev-status strong { font-weight: 700; }
.ev-closed, .ev-closed-note { background: var(--bg-soft); color: var(--ink-2); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14.5px; margin: 22px 0 0; display: block; }

/* ── sections ─────────────────────────────────────── */
.ev-section { margin: 36px 0 0; }
.ev-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ev-section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.ev-section-head p { margin: 0; font-size: 14px; color: var(--muted); }
.ev-section-head a { color: var(--accent); font-weight: 600; }

/* ── cards ────────────────────────────────────────── */
.ev-list { display: flex; flex-direction: column; gap: 10px; }
/* A card is a revision page: its date column is the kind's paper colour. */
.ev-card {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s;
}
.ev-card:hover { border-color: color-mix(in srgb, var(--cat-ink, var(--accent)) 45%, var(--line)); box-shadow: 0 10px 24px -18px color-mix(in srgb, var(--cat-ink, var(--accent)) 60%, transparent); }
.ev-when {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--cat-paper, var(--bg-soft)); color: var(--cat-ink, var(--ink)); padding: 14px 4px;
}
.ev-when .m { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.ev-when .d { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.ev-when .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; margin-top: 3px; }
.ev-main { min-width: 0; padding: 16px 0; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.ev-tag { font-weight: 600; color: var(--cat-ink, var(--accent-deep)); background: var(--cat-paper, var(--accent-wash)); border-radius: 6px; padding: 2px 8px; }
.ev-tag-flag { color: var(--warn); background: var(--warn-wash); font-weight: 500; }
.ev-place { display: inline-flex; align-items: center; gap: 4px; }
.ev-name { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin: 0; }
.ev-name a:hover { color: var(--accent); }
.ev-sum { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 6px 0 0; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.ev-key { color: var(--ink); font-weight: 600; }
.ev-rel { font-size: 13px; font-weight: 600; color: var(--cat-ink, var(--accent-deep)); white-space: nowrap; margin: 0; padding: 18px 18px 0 0; }
.ev-tag-flag { color: var(--warn); background: var(--warn-wash); font-weight: 500; }

/* ── the hub's top: search, kind tiles, closing soon ── */
.ev-search {
  display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 28px auto 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 13px 20px;
  box-shadow: 0 18px 44px -26px var(--accent-ring), 0 2px 8px rgba(0,0,0,0.03);
}
.ev-search:focus-within { border-color: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-ring); }
.ev-search svg { color: var(--accent); flex: none; }
.ev-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: 500 16px var(--sans); color: var(--ink); }
.ev-search input::placeholder { color: var(--faint); }
.ev-filters .ev-search { margin: 0 0 4px; max-width: none; flex-basis: 100%; box-shadow: none; padding: 10px 16px; }

.ev-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 0; }
.ev-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 15px;
  background: var(--cat-paper); border-radius: var(--radius-sm); color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.ev-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px color-mix(in srgb, var(--cat-ink) 70%, transparent); }
.ev-tile-paper { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cat-ink); }
.ev-tile-name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.ev-tile-count { font-size: 13px; color: var(--cat-ink); font-weight: 600; margin-top: auto; padding-top: 4px; }

.ev-soon { margin: 30px 0 0; }
.ev-soon .ev-section-head { margin-bottom: 12px; }
.ev-soon .ev-section-head h2 { font-size: 19px; }
.ev-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ev-mini {
  display: grid; grid-template-columns: 54px 1fr; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.15s;
}
.ev-mini:hover { border-color: color-mix(in srgb, var(--cat-ink) 45%, var(--line)); }
.ev-mini-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--cat-paper); color: var(--cat-ink); padding: 8px 2px; }
.ev-mini-date .m { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.ev-mini-date .d { font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.ev-mini-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-width: 0; }
.ev-mini-kind { font-size: 11.5px; font-weight: 600; color: var(--cat-ink); }
.ev-mini-name { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-mini-rel { font-size: 12px; color: var(--muted); margin-top: auto; }
.ev-hub.ev-searching .ev-soon { display: none; }

/* Kind pills in the filter bar. */
.ev-pills { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.ev-pill {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: color-mix(in srgb, var(--cat-paper, var(--surface)) 45%, var(--surface)); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px 6px 11px; font: 600 13px var(--sans); color: var(--ink-2);
}
.ev-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cat-ink); }
.ev-pill:hover { border-color: color-mix(in srgb, var(--cat-ink, var(--ink)) 45%, var(--line)); }
.ev-pill.on { background: var(--cat-paper, var(--ink)); color: var(--cat-ink, #fff); border-color: var(--cat-ink, var(--ink)); box-shadow: inset 0 0 0 1px var(--cat-ink, var(--ink)); }

/* A coloured band behind a page's header: the kind's paper, buff elsewhere. */
.ev-band { background: var(--cat-paper); padding-bottom: 34px; margin-bottom: 8px; }
.ev-band .eyebrow { color: var(--cat-ink); }
.ev-band .ev-crumbs, .ev-band .ev-crumbs [aria-current], .ev-band .ev-sub, .ev-band .ev-org { color: var(--ink-2); }
.ev-band .ev-crumbs a:hover { color: var(--cat-ink); }
.ev-band .lede { color: var(--ink); }
.ev-event .ev-status { background: var(--surface); color: var(--cat-ink); }
.ev-event .ev-block h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--cat-paper); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat-ink) 30%, transparent); margin-right: 9px; vertical-align: 1px; }
.ev-event .ev-btn { background: var(--cat-ink); }
.ev-event .ev-btn:hover { background: var(--ink); }
.ev-event .ev-table tbody tr:not(.passed) th { color: var(--cat-ink); }

/* ── filters ──────────────────────────────────────── */
.ev-filters {
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 14px;
}
.ev-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.ev-filters select {
  font: 500 14px var(--sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 140px;
}
.ev-filters select:focus { outline: 2px solid var(--accent-ring); border-color: var(--accent); }
.ev-filters .ev-check { flex-direction: row; align-items: center; gap: 8px; padding-bottom: 8px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.ev-filters .ev-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.ev-count { margin: 0 0 8px auto; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.ev-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 28px; text-align: center; color: var(--muted); font-size: 14.5px; }
.ev-empty strong { color: var(--ink); }

/* ── browse (hub) ─────────────────────────────────── */
.ev-browse { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 28px; margin: 44px 0 0; }
.ev-browse h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.ev-browse h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 18px 0 8px; }
.ev-browse ul { list-style: none; margin: 0; padding: 0; }
.ev-kinds li { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.ev-kinds li:first-child { border-top: none; padding-top: 0; }
.ev-kinds a, .ev-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ev-kinds .t, .ev-links .t { font-weight: 600; font-size: 15px; }
.ev-kinds a:hover .t, .ev-links a:hover .t { color: var(--accent); }
.ev-kinds p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.n { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.ev-links li { padding: 7px 0; border-top: 1px solid var(--line-soft); }
.ev-links li:first-child { border-top: none; padding-top: 0; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chips a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.ev-chips a:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ── event page ───────────────────────────────────── */
.ev-detail { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; margin-top: 24px; }
.ev-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 14px; }
.ev-block h2 { font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.ev-block p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.ev-block p + p { margin-top: 10px; }
.ev-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ev-table th, .ev-table td { text-align: left; padding: 8px 10px 8px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.ev-table thead th { border-top: none; font-size: 12px; color: var(--muted); font-weight: 600; }
.ev-table tbody th { font-weight: 600; }
.ev-table tr.passed { color: var(--faint); }
.ev-passed { font-size: 11.5px; font-family: var(--mono); color: var(--faint); margin-left: 6px; }
.ev-eventdates { display: flex; gap: 8px; align-items: center; margin-top: 12px !important; color: var(--ink) !important; font-weight: 500; }
.ev-eventdates svg { color: var(--cat-ink, var(--accent)); flex: none; }
.ev-fine { font-size: 13px !important; color: var(--muted) !important; margin-top: 12px !important; }
.ev-fine a, .ev-method a, .ev-detail-side a:not(.ev-btn) { color: var(--accent); font-weight: 600; }
.ev-dl { margin: 0; display: grid; gap: 0; }
.ev-dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.ev-dl > div:first-child { border-top: none; padding-top: 0; }
.ev-dl dt { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.ev-dl dd { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.ev-note { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ev-flag { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px !important; background: var(--warn-wash); color: var(--warn) !important; border-radius: 10px; padding: 10px 12px; font-size: 14px !important; }
.ev-flag svg { flex: none; margin-top: 3px; }
.ev-detail-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.ev-checked { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.ev-detail-side .ev-fine { margin: 0 !important; }
.ev-alt { font-size: 13.5px; }

.ev-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: background 0.15s;
}
.ev-btn:hover { background: var(--accent); }
.ev-btn-wide { width: 100%; }

/* ── method, formatter, related ───────────────────── */
.ev-method { margin: 52px 0 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ev-method h2 { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.ev-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ev-method-grid p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.ev-method-grid strong { display: block; color: var(--ink); margin-bottom: 4px; }
.ev-method-foot { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.ev-formatter {
  margin: 28px 0 72px; padding: 24px 28px; border-radius: var(--radius);
  background: var(--accent-wash); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ev-formatter h2 { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--accent-deep); }
.ev-formatter p { margin: 0; font-size: 14.5px; color: var(--ink-2); max-width: 640px; line-height: 1.6; }
.ev-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 44px 0 0; }
.ev-related h2 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.ev-related ul { list-style: none; margin: 0; padding: 0; }

/* ── phone width ──────────────────────────────────── */
@media (max-width: 900px) {
  .ev-browse, .ev-related, .ev-method-grid { grid-template-columns: 1fr; }
  .ev-detail { grid-template-columns: 1fr; }
  .ev-detail-side { position: static; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .ev-hero-hub { padding: 28px 0 16px; }
  .ev-card { grid-template-columns: 62px 1fr; gap: 12px; }
  .ev-when { grid-row: span 2; justify-content: flex-start; padding-top: 16px; }
  .ev-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -16px; padding-right: 16px; }
  .ev-pill { flex: none; }
  .ev-when .d { font-size: 21px; }
  .ev-main { padding: 14px 14px 4px 0; }
  .ev-rel { grid-column: 2; padding: 0 14px 14px 0; }
  .ev-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ev-tile { padding: 10px 12px 11px; gap: 2px; }
  .ev-tile-paper { font-size: 10px; }
  .ev-tile-name { font-size: 14px; }
  .ev-tile-count { padding-top: 2px; font-size: 12.5px; }
  .ev-minis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 4px; }
  .ev-mini { flex: 0 0 78%; scroll-snap-align: start; }
  .ev-search { margin-top: 22px; padding: 11px 16px; }
  .ev-band { padding-bottom: 24px; }
  .ev-filters label { flex: 1 1 calc(50% - 12px); }
  .ev-filters select { min-width: 0; width: 100%; }
  .ev-count { margin: 0; flex-basis: 100%; }
  .ev-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .ev-formatter { flex-direction: column; align-items: flex-start; padding: 20px; }
  .ev-method { padding: 20px; }
  .ev-block { padding: 16px; }
}

/* -- Event alerts: the button, the dialog, the form, the manage page -- */
.ev-alert-open, .ev-alert-cta {
  display: inline-flex; align-items: center; gap: 8px; flex: none; cursor: pointer;
  border: none; border-radius: 999px; color: #fff; background: var(--cat-ink, var(--ink));
  transition: background 0.15s;
}
.ev-alert-open { margin: 0 0 6px auto; font: 600 14px var(--sans); padding: 9px 16px; }
.ev-alert-open:hover, .ev-alert-cta:hover { background: var(--accent); }
.ev-band .ev-alert-cta:hover { background: var(--ink); }
.ev-alert-open:focus-visible, .ev-alert-cta:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }

/* The call in a list page's hero. On the hub it is a buff strip under the
   search box; on a kind or place page it sits on the band in the page's ink. */
.ev-alert-call { display: flex; align-items: center; gap: 16px; margin: 20px 0 0; }
.ev-alert-call[hidden] { display: none; }
.ev-alert-call p { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink-2); line-height: 1.45; }
.ev-alert-call strong { color: var(--ink); font-weight: 700; }
.ev-alert-cta { font: 600 15px var(--sans); padding: 12px 20px; }
.ev-hero-hub .ev-alert-call {
  max-width: 640px; margin: 14px auto 0; padding: 8px 8px 8px 20px; text-align: left;
  background: var(--rev-buff); border-radius: 999px;
}
.ev-hero-hub .ev-alert-call p { flex: 1; font-size: 14px; color: var(--ink); }
.ev-hero-hub .ev-alert-cta { padding: 11px 18px; font-size: 14.5px; }
@media (max-width: 720px) {
  .ev-alert-call { gap: 12px; margin-top: 16px; }
  .ev-alert-call p { font-size: 13.5px; }
  .ev-alert-cta { padding: 10px 15px; font-size: 14px; }
  .ev-hero-hub .ev-alert-call { margin-top: 10px; padding: 6px 6px 6px 16px; border-radius: 22px; }
  .ev-hero-hub .ev-alert-call p { font-size: 13.5px; line-height: 1.3; }
  .ev-hero-hub .ev-alert-more { display: none; }
  .ev-hero-hub .ev-alert-cta { padding: 9px 13px; font-size: 13.5px; }
  .ev-alert-open { margin: 2px 0 0; flex-basis: 100%; justify-content: center; }
}
.ev-count { margin: 0 0 8px 12px; }
.ev-dialog {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(24, 24, 27, 0.45);
}
.ev-dialog::backdrop { background: rgba(24, 24, 27, 0.45); }
.ev-alert-form, .ev-alert-done { padding: 22px 24px 20px; }
.ev-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ev-dialog-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.ev-x { font: 400 26px/1 var(--sans); color: var(--muted); background: none; border: 0; cursor: pointer; padding: 2px 6px; }
.ev-x:hover { color: var(--ink); }
.ev-dialog-lede { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 8px 0 14px; }
.ev-fs { border: 0; padding: 0; margin: 0 0 14px; }
.ev-fs legend { font-size: 13.5px; font-weight: 700; padding: 0; margin: 0 0 2px; }
.ev-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.ev-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-ck {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  background: color-mix(in srgb, var(--cat-paper, var(--bg-soft)) 55%, var(--surface));
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px 5px 8px;
}
.ev-ck input { accent-color: var(--cat-ink, var(--accent)); width: 15px; height: 15px; margin: 0; }
.ev-ck:has(input:checked) { background: var(--cat-paper, var(--accent-wash)); border-color: var(--cat-ink, var(--accent)); color: var(--ink); }
.ev-ck-line { background: none; border: 0; padding: 4px 0; border-radius: 0; margin: 2px 0 10px; }
.ev-ck-line:has(input:checked) { background: none; }
.ev-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 10px 0 0; }
.ev-field select, .ev-field input {
  font: 500 15px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 11px; width: 100%;
}
.ev-field input:focus, .ev-field select:focus { outline: 2px solid var(--accent-ring); border-color: var(--accent); }
.ev-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; }
.ev-turnstile { margin: 14px 0 6px; min-height: 0; }
.ev-news { margin-top: 10px; }
.ev-fine { font-size: 12.5px !important; color: var(--muted) !important; line-height: 1.55; margin: 6px 0 0 !important; }
.ev-fine a { color: var(--accent); font-weight: 600; }
.ev-alert-actions { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; flex-wrap: wrap; }
.ev-btn-ghost { font: 600 14.5px var(--sans); color: var(--ink-2); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; cursor: pointer; }
.ev-btn-ghost:hover { border-color: var(--ink); }
.ev-btn:disabled { opacity: 0.6; cursor: default; }
button.ev-btn { border: 0; cursor: pointer; font-family: var(--sans); }
.ev-alert-msg { font-size: 13.5px; margin: 10px 0 0; min-height: 1em; color: var(--muted); }
.ev-alert-msg.err { color: #b91c1c; }
.ev-alert-msg.ok { color: var(--accent-deep); font-weight: 600; }
.ev-alert-done p { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin: 10px 0 18px; }
.ev-alerts-wrap { max-width: 720px; margin: 24px auto 72px; }
.ev-alerts-status { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.ev-unsub { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.ev-unsub:hover { color: #b91c1c; }
@media (max-width: 720px) {
  .ev-alert-open { margin: 0; flex-basis: 100%; justify-content: center; }
  .ev-count { margin: 0; }
  .ev-alert-form, .ev-alert-done { padding: 18px 16px 16px; }
  .ev-field-row { grid-template-columns: 1fr; }
}
