/* Lithuania BTC — design templates. Loaded after site.css, activated by
   body.theme-poster / body.theme-atlas / body.theme-signal. */

@font-face {
  font-family: "PlexMono";
  src: url("assets/PlexMono.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ════════════════════════════════════════════════════════════════
   SHARED BASE — hard edges, no shadows, calendar grid removed
   ════════════════════════════════════════════════════════════════ */

.theme-poster,
.theme-atlas,
.theme-signal,
.theme-poster *,
.theme-poster *::before,
.theme-poster *::after,
.theme-atlas *,
.theme-atlas *::before,
.theme-atlas *::after,
.theme-signal *,
.theme-signal *::before,
.theme-signal *::after {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.theme-poster .month-heading,
.theme-poster .weekdays,
.theme-poster .calendar-grid,
.theme-atlas .month-heading,
.theme-atlas .weekdays,
.theme-atlas .calendar-grid,
.theme-signal .month-heading,
.theme-signal .weekdays,
.theme-signal .calendar-grid {
  display: none !important;
}

/* The tabs used to sit under the month grid; they now open the pane. */
.theme-poster .event-tabs,
.theme-atlas .event-tabs,
.theme-signal .event-tabs {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Wordmark spans (Codex injects them inside .brand-name) */
.theme-poster .brand-name,
.theme-atlas .brand-name,
.theme-signal .brand-name {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
}

/* Desktop: map stays fixed, only the event list scrolls (site.css already
   scrolls .calendar-content; grids are gone so it is the list alone). */

/* ════════════════════════════════════════════════════════════════
   A · POSTER — forest + vermilion, printed cultural programme
   ════════════════════════════════════════════════════════════════ */

.theme-poster {
  --canvas: #14312a;
  --panel: #0e241e;
  --panel-raised: #1a3b32;
  --ink: #f2e9d5;
  --ink-muted: rgba(242, 233, 213, 0.66);
  --line: rgba(242, 233, 213, 0.22);
  --line-soft: rgba(242, 233, 213, 0.1);
  --amber: #e0b34c;
  --amber-soft: rgba(224, 179, 76, 0.16);
  --vermilion: #c0361c;
  --vermilion-deep: #a52c15;
  --cream: #f2e9d5;
  --forest: #14312a;
  --nav-h: 92px;
  --sidebar-w: 400px;
}

/* Navbar: cream masthead, heavy vermilion rule, oversized wordmark */
.theme-poster .navbar {
  background: var(--cream);
  border-bottom: 5px solid var(--vermilion);
  padding: 0 28px;
}

.theme-poster .brand {
  color: var(--forest);
  gap: 16px;
}

.theme-poster .brand-logo {
  width: 52px;
  height: 60px;
}

.theme-poster .brand-name {
  gap: 0.28em;
  text-transform: uppercase;
}

.theme-poster .wordmark-country {
  font: 800 32px/1 var(--sans);
  letter-spacing: -0.01em;
  color: var(--forest);
}

.theme-poster .wordmark-btc {
  font: 800 32px/1 var(--sans);
  letter-spacing: -0.01em;
  color: var(--vermilion);
}

.theme-poster .social-link {
  color: rgba(20, 49, 42, 0.6);
}

.theme-poster .social-link:hover {
  color: var(--forest);
  background: rgba(20, 49, 42, 0.09);
}

.theme-poster .language-button {
  color: var(--forest);
  border: 2px solid var(--forest);
  background: transparent;
  font-weight: 700;
  text-transform: uppercase;
}

.theme-poster .language-button:hover {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

/* Map tools: compact rectangular, utilitarian */
.theme-poster #search,
.theme-poster .map-action {
  padding: 8px 11px;
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.theme-poster .map-action {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.theme-poster .map-action:hover,
.theme-poster #search:focus-visible {
  border-color: var(--cream);
  background: var(--panel-raised);
}

.theme-poster .legend,
.theme-poster #data-status {
  background: rgba(14, 36, 30, 0.94);
  border: 1px solid var(--line);
  padding: 5px 10px;
  font-size: 12px;
}

.theme-poster #retry {
  background: var(--vermilion);
  border: 1px solid var(--vermilion);
  color: var(--cream);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  font-size: 12px;
}

.theme-poster #retry:hover {
  background: var(--vermilion-deep);
}

/* Sidebar: the red programme panel */
.theme-poster .calendar-pane {
  background: var(--vermilion);
  border-left: 0;
}

.theme-poster .calendar-top {
  padding: 22px 22px 14px;
  border-bottom: 4px double var(--cream);
}

.theme-poster .sidebar-heading h1 {
  font: 800 30px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.theme-poster .sidebar-heading small {
  color: rgba(242, 233, 213, 0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  margin-top: 6px;
}

.theme-poster .calendar-content {
  padding: 16px 22px 22px;
  scrollbar-color: rgba(242, 233, 213, 0.4) transparent;
}

.theme-poster .event-tabs {
  gap: 0;
  margin-bottom: 14px;
  border: 2px solid var(--cream);
}

.theme-poster .event-tabs button {
  border: 0;
  color: var(--cream);
  background: transparent;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 9px 10px;
}

.theme-poster .event-tabs button:hover {
  color: var(--cream);
  background: rgba(242, 233, 213, 0.12);
}

.theme-poster .event-tabs button[aria-pressed="true"] {
  background: var(--cream);
  color: var(--vermilion);
  border-color: var(--cream);
}

/* Programme rows: strong horizontal rules, no card boxes */
.theme-poster .event-list {
  gap: 0;
}

.theme-poster .event-card {
  background: transparent;
  border: 0;
  border-top: 3px solid var(--cream);
  padding: 14px 2px;
  gap: 16px;
  color: var(--cream);
}

.theme-poster .event-list .event-card:last-child {
  border-bottom: 3px solid var(--cream);
}

.theme-poster .event-card:hover {
  background: rgba(242, 233, 213, 0.1);
  border-color: var(--cream);
}

.theme-poster .date-badge {
  background: transparent;
  border: 0;
  width: 52px;
  padding: 0;
}

.theme-poster .date-badge strong {
  font: 800 34px/1 var(--sans);
  color: var(--cream);
}

.theme-poster .date-badge span {
  color: rgba(242, 233, 213, 0.8);
  font-size: 11px;
  letter-spacing: 0.16em;
  margin-top: 4px;
}

.theme-poster .event-copy h3 {
  font: 700 15px/1.25 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.theme-poster .event-copy p {
  color: rgba(242, 233, 213, 0.78);
}

.theme-poster .list-heading {
  color: var(--cream);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  margin: 18px 0 6px;
}

.theme-poster .empty-state {
  border: 2px dashed rgba(242, 233, 213, 0.5);
  color: var(--cream);
}

.theme-poster .clear-date {
  background: var(--cream);
  color: var(--vermilion);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.theme-poster .sidebar-footer {
  background: var(--vermilion-deep);
  border-top: 0;
}

.theme-poster .sidebar-footer a {
  color: var(--cream);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.theme-poster .sidebar-footer a:hover {
  color: var(--cream);
}

/* Dialog + popups: cream print sheet */
.theme-poster dialog#event-dialog {
  background: var(--cream);
  color: var(--forest);
  border: 4px solid var(--vermilion);
}

.theme-poster #event-detail h2,
.theme-poster #event-detail h3 {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
}

.theme-poster .detail-meta {
  color: rgba(20, 49, 42, 0.75);
  border-top: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  padding: 10px 0;
}

.theme-poster .muted {
  color: rgba(20, 49, 42, 0.68);
}

.theme-poster .badge {
  background: var(--vermilion);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.theme-poster .detail-actions a,
.theme-poster .action-button {
  background: var(--vermilion);
  color: var(--cream);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theme-poster .detail-actions a:hover,
.theme-poster .action-button:hover {
  background: var(--vermilion-deep);
  filter: none;
}

.theme-poster .dialog-close {
  color: var(--forest);
  border: 2px solid var(--forest);
}

.theme-poster .dialog-close:hover {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

/* ════════════════════════════════════════════════════════════════
   B · ATLAS — deep green ink on warm ivory, serif editorial
   ════════════════════════════════════════════════════════════════ */

.theme-atlas {
  --canvas: #e9e0cc;
  --panel: #f4eddd;
  --panel-raised: #ece3cf;
  --ink: #1e3d31;
  --ink-muted: rgba(30, 61, 49, 0.62);
  --line: rgba(30, 61, 49, 0.28);
  --line-soft: rgba(30, 61, 49, 0.14);
  --amber: #9c2f1e;
  --amber-soft: rgba(156, 47, 30, 0.12);
  --green: #1e3d31;
  --ivory: #f4eddd;
  --vytis: #9c2f1e;
  --nav-h: 64px;
  --sidebar-w: 384px;
}

/* Navbar: quiet ivory masthead, serif wordmark */
.theme-atlas .navbar {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 0 26px;
}

.theme-atlas .brand {
  color: var(--green);
}

.theme-atlas .brand-logo {
  width: 32px;
  height: 38px;
}

.theme-atlas .brand-name {
  gap: 0.32em;
}

.theme-atlas .wordmark-country {
  font: 400 23px/1 var(--serif);
  letter-spacing: 0.02em;
  color: var(--green);
}

.theme-atlas .wordmark-btc {
  font: 700 15px/1 var(--serif);
  letter-spacing: 0.24em;
  color: var(--vytis);
  text-transform: uppercase;
}

.theme-atlas .social-link {
  color: rgba(30, 61, 49, 0.55);
}

.theme-atlas .social-link:hover {
  color: var(--green);
  background: rgba(30, 61, 49, 0.08);
}

.theme-atlas .language-button {
  color: var(--green);
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.theme-atlas .language-button:hover {
  border-color: var(--vytis);
  background: var(--amber-soft);
}

/* Map: dark plate inset in the ivory page, framed with margins */
.theme-atlas .map-pane {
  background: var(--canvas);
}

.theme-atlas #map {
  inset: 20px;
  border: 1px solid var(--green);
  outline: 1px solid var(--line-soft);
  outline-offset: 5px;
}

.theme-atlas .map-toolbar {
  top: 34px;
  left: 34px;
  right: 34px;
}

.theme-atlas .map-footer {
  left: 34px;
  right: 34px;
  bottom: 44px;
}

.theme-atlas #search,
.theme-atlas .map-action {
  background: var(--ivory);
  border: 1px solid var(--green);
  color: var(--green);
}

.theme-atlas #search::placeholder {
  color: var(--ink-muted);
}

.theme-atlas .map-action:hover {
  background: var(--panel-raised);
  border-color: var(--vytis);
}

.theme-atlas .search-results,
.theme-atlas .search-result {
  background: var(--ivory);
  color: var(--green);
}

.theme-atlas .search-results {
  border: 1px solid var(--green);
}

.theme-atlas .search-result:hover,
.theme-atlas .search-results > *:hover {
  background: var(--panel-raised);
}

.theme-atlas .legend,
.theme-atlas #data-status {
  background: rgba(244, 237, 221, 0.95);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

.theme-atlas .legend button {
  color: var(--green);
}

.theme-atlas #retry {
  background: rgba(244, 237, 221, 0.95);
  border: 1px solid var(--vytis);
  color: var(--vytis);
}

.theme-atlas #retry:hover {
  background: var(--amber-soft);
}

.theme-atlas .map-error {
  background: var(--ivory);
  color: var(--green);
}

/* Sidebar: ivory folio, hairlines, big serif numerals */
.theme-atlas .calendar-pane {
  background: var(--ivory);
  border-left: 1px solid var(--line);
}

.theme-atlas .calendar-top {
  padding: 26px 26px 16px;
  border-bottom: 1px solid var(--line);
}

.theme-atlas .sidebar-heading h1 {
  font: 400 28px/1.1 var(--serif);
  letter-spacing: 0.01em;
  color: var(--green);
}

.theme-atlas .sidebar-heading small {
  font-style: italic;
  font-family: var(--serif);
  font-size: 13px;
  margin-top: 4px;
}

.theme-atlas .calendar-content {
  padding: 18px 26px 26px;
  scrollbar-color: rgba(30, 61, 49, 0.3) transparent;
}

.theme-atlas .event-tabs {
  gap: 22px;
  margin-bottom: 8px;
}

.theme-atlas .event-tabs button {
  flex: 0 0 auto;
  padding: 4px 0 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: 600 13px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.theme-atlas .event-tabs button:hover {
  color: var(--green);
}

.theme-atlas .event-tabs button[aria-pressed="true"] {
  background: transparent;
  color: var(--green);
  border-bottom-color: var(--vytis);
  font-weight: 700;
}

.theme-atlas .event-list {
  gap: 0;
}

.theme-atlas .event-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-soft);
  padding: 18px 14px;
  gap: 18px;
  color: var(--green);
}

.theme-atlas .event-card:first-child {
  border-top: 0;
}

.theme-atlas .event-card:hover {
  background: var(--panel-raised);
  border-color: var(--line-soft);
}

.theme-atlas .date-badge {
  background: transparent;
  border: 0;
  width: 58px;
  padding: 0;
  align-items: flex-start;
  justify-content: flex-start;
}

.theme-atlas .date-badge strong {
  font: 400 42px/1 var(--serif);
  color: var(--green);
  font-variant-numeric: lining-nums;
}

.theme-atlas .date-badge span {
  color: var(--vytis);
  letter-spacing: 0.22em;
  font-size: 10px;
  margin-top: 5px;
}

.theme-atlas .event-copy h3 {
  font: 600 17px/1.3 var(--serif);
  letter-spacing: 0.005em;
}

.theme-atlas .event-copy p {
  font-size: 13px;
  color: var(--ink-muted);
}

.theme-atlas .list-heading {
  font: italic 600 14px var(--serif);
  color: var(--ink-muted);
  margin: 20px 0 4px;
}

.theme-atlas .empty-state {
  border: 1px solid var(--line-soft);
  color: var(--ink-muted);
  font-family: var(--serif);
  font-style: italic;
}

.theme-atlas .clear-date {
  background: transparent;
  border: 1px solid var(--vytis);
  color: var(--vytis);
  margin-bottom: 14px;
}

.theme-atlas .sidebar-footer {
  border-top: 1px solid var(--line);
}

.theme-atlas .sidebar-footer a {
  color: var(--ink-muted);
  font-family: var(--serif);
  font-style: italic;
}

.theme-atlas .sidebar-footer a:hover {
  color: var(--vytis);
}

/* Dialog + popups: ivory plate, serif headings, red accents */
.theme-atlas dialog#event-dialog {
  background: var(--ivory);
  color: var(--green);
  border: 1px solid var(--green);
  outline: 1px solid var(--line-soft);
  outline-offset: 4px;
}

.theme-atlas dialog#event-dialog::backdrop {
  background: rgba(30, 61, 49, 0.5);
}

.theme-atlas #event-detail h2,
.theme-atlas #event-detail h3 {
  font-weight: 400;
  font-size: 24px;
}

.theme-atlas .badge {
  background: transparent;
  border: 1px solid var(--vytis);
  color: var(--vytis);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theme-atlas .detail-actions a,
.theme-atlas .action-button {
  background: var(--green);
  color: var(--ivory);
}

.theme-atlas .detail-actions a:hover,
.theme-atlas .action-button:hover {
  background: var(--vytis);
  filter: none;
}

.theme-atlas .dialog-close {
  color: var(--green);
  border: 1px solid var(--line);
}

.theme-atlas .dialog-close:hover {
  color: var(--ivory);
  background: var(--green);
  border-color: var(--green);
}

.theme-atlas .maplibregl-popup-content,
.theme-atlas .merchant-popup .maplibregl-popup-content {
  background: var(--ivory);
  color: var(--green);
  border: 1px solid var(--green);
}

.theme-atlas .maplibregl-popup-close-button {
  color: var(--green);
}

.theme-atlas noscript {
  background: var(--ivory);
  color: var(--green);
}

.theme-atlas noscript a {
  color: var(--vytis);
}

/* ════════════════════════════════════════════════════════════════
   C · SIGNAL — monochrome forest + acid microaccent, survey station
   ════════════════════════════════════════════════════════════════ */

.theme-signal {
  --canvas: #0c1a16;
  --panel: #0f211c;
  --panel-raised: #163028;
  --ink: #dfe7dd;
  --ink-muted: rgba(223, 231, 221, 0.55);
  --line: rgba(223, 231, 221, 0.2);
  --line-soft: rgba(223, 231, 221, 0.09);
  --amber: #d8f21d;
  --amber-soft: rgba(216, 242, 29, 0.14);
  --acid: #d8f21d;
  --nav-h: 56px;
  --sidebar-w: 340px;
  --mono: "PlexMono", "IBM Plex Mono", ui-monospace, monospace;
}

.theme-signal body,
body.theme-signal {
  font-family: var(--mono);
  font-size: 13px;
}

.theme-signal button,
.theme-signal input,
.theme-signal a {
  font-family: var(--mono);
}

/* Navbar: thin instrument bar, stacked wordmark, acid tick */
.theme-signal .navbar {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  padding: 0 0 0 16px;
}

.theme-signal .brand {
  gap: 12px;
  align-self: stretch;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.theme-signal .brand-logo {
  width: 28px;
  height: 34px;
}

.theme-signal .brand-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1;
}

.theme-signal .wordmark-country {
  font: 400 9px/1 var(--mono);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.theme-signal .wordmark-btc {
  font: 700 17px/1 var(--mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--acid);
}

.theme-signal .nav-links {
  align-self: stretch;
  gap: 0;
}

.theme-signal .socials {
  align-self: stretch;
  gap: 0;
}

.theme-signal .social-link {
  align-self: stretch;
  height: auto;
  width: 44px;
  border-left: 1px solid var(--line-soft);
  color: var(--ink-muted);
}

.theme-signal .social-link:hover {
  color: var(--acid);
  background: var(--panel-raised);
}

.theme-signal .language-button {
  margin-left: 0;
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 16px;
  font: 700 12px var(--mono);
  letter-spacing: 0.2em;
  color: var(--ink);
}

.theme-signal .language-button:hover {
  background: var(--acid);
  color: var(--canvas);
  border-color: var(--acid);
}

/* Map tools: instrument readouts */
.theme-signal #search,
.theme-signal .map-action {
  background: var(--canvas);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.theme-signal .map-action {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.theme-signal .map-action:hover {
  border-color: var(--acid);
  color: var(--acid);
  background: var(--canvas);
}

.theme-signal #search:focus-visible {
  border-color: var(--acid);
}

.theme-signal .search-results {
  background: var(--canvas);
  border: 1px solid var(--line);
}

.theme-signal .search-result {
  background: var(--canvas);
  font-family: var(--mono);
  font-size: 12px;
}

.theme-signal .search-result:hover,
.theme-signal .search-results > *:hover {
  background: var(--panel-raised);
}

.theme-signal .legend,
.theme-signal #data-status {
  background: rgba(12, 26, 22, 0.95);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.theme-signal #retry {
  background: rgba(12, 26, 22, 0.95);
  border: 1px solid var(--acid);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.theme-signal #retry:hover {
  background: var(--acid);
  color: var(--canvas);
}

/* Sidebar: vertical rule grid, indexed rows */
.theme-signal .calendar-pane {
  background: var(--canvas);
  border-left: 1px solid var(--line);
}

.theme-signal .calendar-top {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.theme-signal .sidebar-heading h1 {
  font: 700 13px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink);
}

.theme-signal .sidebar-heading h1::before {
  content: "// ";
  color: var(--acid);
  letter-spacing: 0;
}

.theme-signal .sidebar-heading small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}

.theme-signal .calendar-content {
  padding: 0;
  scrollbar-color: rgba(223, 231, 221, 0.3) transparent;
}

.theme-signal .event-tabs {
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.theme-signal .event-tabs button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 10px;
  font: 400 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

.theme-signal .event-tabs button:hover {
  color: var(--ink);
  background: var(--panel-raised);
}

.theme-signal .event-tabs button[aria-pressed="true"] {
  background: var(--acid);
  color: var(--canvas);
  font-weight: 700;
}

.theme-signal .event-list {
  gap: 0;
  counter-reset: ev;
}

.theme-signal .event-card {
  counter-increment: ev;
  display: grid;
  grid-template-columns: 34px 62px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

.theme-signal .event-card::before {
  content: counter(ev, decimal-leading-zero);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 0;
  font: 400 10px/1 var(--mono);
  color: var(--acid);
  border-right: 1px solid var(--line-soft);
}

.theme-signal .event-card:hover {
  background: var(--panel-raised);
  border-color: var(--line-soft);
}

.theme-signal .date-badge {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line-soft);
  width: auto;
  padding: 12px 8px;
  justify-content: flex-start;
}

.theme-signal .date-badge strong {
  font: 700 22px/1 var(--mono);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.theme-signal .date-badge span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  margin-top: 5px;
}

.theme-signal .event-copy {
  padding: 12px 14px;
  gap: 4px;
}

.theme-signal .event-copy h3 {
  font: 700 12px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.theme-signal .event-copy p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.theme-signal .list-heading {
  font: 400 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  margin: 0;
  padding: 14px 14px 6px;
  border-bottom: 1px solid var(--line-soft);
}

.theme-signal .empty-state {
  margin: 14px;
  border: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.theme-signal .clear-date {
  margin: 12px 14px 0;
  background: transparent;
  border: 1px solid var(--acid);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.theme-signal .sidebar-footer {
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-signal .sidebar-footer a:hover {
  color: var(--acid);
}

/* Dialog + popups */
.theme-signal dialog#event-dialog {
  background: var(--canvas);
  border: 1px solid var(--acid);
  font-family: var(--mono);
}

.theme-signal #event-detail h2,
.theme-signal #event-detail h3 {
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 17px;
}

.theme-signal .detail-meta {
  font-family: var(--mono);
  font-size: 12px;
  border-left: 1px solid var(--acid);
  padding-left: 12px;
}

.theme-signal .badge {
  background: transparent;
  border: 1px solid var(--acid);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.theme-signal .detail-actions a,
.theme-signal .action-button {
  background: var(--acid);
  color: var(--canvas);
  font: 700 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.theme-signal .detail-actions a:hover,
.theme-signal .action-button:hover {
  background: var(--ink);
  filter: none;
}

.theme-signal .dialog-close {
  border: 1px solid var(--line);
  color: var(--ink);
}

.theme-signal .dialog-close:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.theme-signal .maplibregl-popup-content {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--canvas);
  border: 1px solid var(--line);
}

.theme-signal .merchant-popup h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════════════════════
   TABLET (≤1000px) — per-theme sidebar trims
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 1000px) {
  .theme-poster {
    --sidebar-w: 340px;
  }
  .theme-atlas {
    --sidebar-w: 330px;
  }
  .theme-signal {
    --sidebar-w: 300px;
  }

  .theme-poster .wordmark-country,
  .theme-poster .wordmark-btc {
    font-size: 24px;
  }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE (≤760px) — compact headers, two-card strip, no grids
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 760px) {
  /* — Poster — */
  .theme-poster {
    --nav-h: 62px;
  }

  .theme-poster .navbar {
    padding: 0 12px;
    border-bottom-width: 3px;
  }

  .theme-poster .brand {
    gap: 8px;
  }
  .theme-poster .brand-logo {
    width: 32px;
    height: 38px;
  }

  .theme-poster .wordmark-country,
  .theme-poster .wordmark-btc {
    font-size: 16px;
  }

  .theme-poster .language-button {
    border-width: 1px;
    padding: 6px !important;
  }

  .theme-poster .calendar-pane {
    border-top: 0;
  }

  .theme-poster .mobile-calendar-toggle {
    color: var(--cream);
    border: 2px solid var(--cream);
    background: transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
  }

  .theme-poster .mobile-calendar-toggle:hover {
    background: rgba(242, 233, 213, 0.14);
  }

  .theme-poster .calendar-top {
    padding: 10px 14px;
    border-bottom-width: 3px;
    border-bottom-style: solid;
  }

  .theme-poster .sidebar-heading h1 {
    font-size: 18px;
  }
  .theme-poster .sidebar-heading small {
    font-size: 10px;
    margin-top: 2px;
  }

  .theme-poster .mobile-events .event-card {
    border: 2px solid var(--cream);
    border-top: 2px solid var(--cream);
    padding: 8px;
  }

  .theme-poster .mobile-events .date-badge strong {
    font-size: 20px;
  }
  .theme-poster .mobile-events .event-copy h3 {
    font-size: 12px;
  }
  .theme-poster .mobile-empty {
    color: var(--cream);
  }

  /* — Atlas — */
  .theme-atlas {
    --nav-h: 58px;
  }

  .theme-atlas .navbar {
    padding: 0 12px;
  }
  .theme-atlas .brand-logo {
    width: 26px;
    height: 32px;
  }
  .theme-atlas .wordmark-country {
    font-size: 18px;
  }
  .theme-atlas .wordmark-btc {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .theme-atlas #map {
    inset: 8px;
    outline: 0;
  }
  .theme-atlas .map-toolbar {
    top: 16px;
    left: 16px;
    right: 16px;
  }
  .theme-atlas .map-footer {
    left: 16px;
    right: 16px;
    bottom: 48px;
  }

  .theme-atlas .calendar-pane {
    border-top: 1px solid var(--line);
  }

  .theme-atlas .calendar-top {
    padding: 10px 14px;
  }
  .theme-atlas .sidebar-heading h1 {
    font-size: 20px;
  }

  .theme-atlas .mobile-calendar-toggle {
    color: var(--vytis);
    border: 1px solid var(--vytis);
    background: transparent;
  }

  .theme-atlas .mobile-calendar-toggle:hover {
    background: var(--amber-soft);
  }

  .theme-atlas .mobile-events .event-card {
    border: 1px solid var(--line-soft);
    border-top: 1px solid var(--line-soft);
    padding: 9px;
  }

  .theme-atlas .mobile-events .date-badge {
    width: 34px;
  }
  .theme-atlas .mobile-events .date-badge strong {
    font-size: 24px;
  }
  .theme-atlas .mobile-events .event-copy h3 {
    font-size: 13px;
  }

  /* — Signal — */
  .theme-signal {
    --nav-h: 52px;
  }

  .theme-signal .navbar {
    padding-left: 10px;
  }
  .theme-signal .brand {
    gap: 7px;
    padding-right: 10px;
  }
  .theme-signal .brand-logo {
    width: 24px;
    height: 30px;
  }
  .theme-signal .wordmark-country {
    font-size: 7px;
    letter-spacing: 0.3em;
  }
  .theme-signal .wordmark-btc {
    font-size: 13px;
    letter-spacing: 0.18em;
  }
  .theme-signal .social-link {
    width: 34px !important;
  }
  .theme-signal .language-button {
    padding: 0 10px !important;
  }

  .theme-signal .calendar-top {
    padding: 10px 12px;
  }
  .theme-signal .sidebar-heading h1 {
    font-size: 11px;
    letter-spacing: 0.24em;
  }
  .theme-signal .sidebar-heading small {
    font-size: 9px;
  }

  .theme-signal .mobile-calendar-toggle {
    color: var(--acid);
    border: 1px solid var(--acid);
    background: transparent;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .theme-signal .mobile-calendar-toggle:hover {
    background: var(--amber-soft);
  }

  .theme-signal .mobile-events {
    counter-reset: ev;
  }

  .theme-signal .mobile-events .event-card {
    grid-template-columns: 44px minmax(0, 1fr);
    border: 1px solid var(--line-soft);
    padding: 0;
  }

  .theme-signal .mobile-events .event-card::before {
    display: none;
  }

  .theme-signal .mobile-events .date-badge {
    width: auto;
    min-width: 0;
    padding: 9px 6px;
  }

  .theme-signal .mobile-events .date-badge strong {
    font-size: 17px;
  }
  .theme-signal .mobile-events .event-copy {
    padding: 8px 9px;
  }
  .theme-signal .mobile-events .event-copy h3 {
    font-size: 11px;
  }
  .theme-signal .mobile-events .event-copy p {
    font-size: 9px;
  }
}
/* Static font files declare their actual weight; browsers synthesize emphasis. */
@font-face {
  font-family: TemplateSans;
  src: url(assets/PlexSans.woff2);
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: TemplateSerif;
  src: url(assets/PlexSerif.woff2);
  font-weight: 400;
  font-display: swap;
}
.theme-poster,
.theme-atlas,
.theme-signal {
  --sans: TemplateSans, sans-serif;
  --serif: TemplateSerif, serif;
}
.theme-poster .empty-state,
.theme-atlas .empty-state,
.theme-signal .empty-state {
  border: 0;
  text-align: left;
  padding: 10px 0 18px;
}
.theme-poster .social-link,
.theme-atlas .social-link,
.theme-signal .social-link {
  box-shadow: none;
  background: transparent;
  border: 0;
}
@media (min-width: 761px) {
  .theme-poster .wordmark-country,
  .theme-poster .wordmark-btc {
    font-size: 34px;
    letter-spacing: -0.055em;
  }
  .theme-poster .brand-name {
    gap: 0.3em;
  }
}
@media (max-width: 760px) {
  .theme-poster .map-toolbar,
  .theme-atlas .map-toolbar,
  .theme-signal .map-toolbar {
    right: 54px;
    gap: 5px;
  }
  .theme-poster .search-wrap,
  .theme-atlas .search-wrap,
  .theme-signal .search-wrap {
    min-width: 0;
    flex: 1;
  }
  .theme-poster #search,
  .theme-atlas #search,
  .theme-signal #search {
    width: 100%;
    min-width: 0;
    font-size: 11px;
    padding: 8px;
  }
  .theme-poster #fit,
  .theme-atlas #fit,
  .theme-signal #fit {
    font-size: 10px;
    padding: 7px;
    min-width: 0;
  }
  .theme-poster .map-footer,
  .theme-atlas .map-footer,
  .theme-signal .map-footer {
    bottom: 43px;
    gap: 4px;
  }
  .theme-poster .map-footer .legend,
  .theme-atlas .map-footer .legend,
  .theme-signal .map-footer .legend {
    padding: 4px;
    font-size: 10px;
  }
  .theme-poster #data-status,
  .theme-atlas #data-status,
  .theme-signal #data-status {
    font-size: 9px;
    padding: 4px;
  }
}
