/* The stylesheet of the event pages (/ru/e/<id>, /en/e/<id>, the 404 and the removed-event pages).
   Tokens are the map interface's (docs/event-page-design-handoff/tokens.css), only those the pages use; layout is the handoff's
   (DECISIONS.md): one column of 720 px, 16 px margins on a phone. Dark: the system's (prefers-color-scheme). Published as
   css/event-page-<hash>.css, immutable. */
:root{
  --font:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --fs-caption:12px;--fs-status:13px;--fs-secondary:13.5px;--fs-ui:14px;--fs-ui-l:14.5px;--fs-body:15px;--fs-title:16px;--fs-heading:18px;
  --fs-page-title:34px;--fs-page-title-m:26px;--fs-page-lead:19px;--fs-page-lead-m:17px;--fs-page-body:16px;--fs-page-h2:20px;
  --ink:#082A3E;--muted:#56677A;--placeholder-icon:#8A96A3;--link:#0B5CAD;--link-hover:#08427C;
  --surface:#FFFFFF;--surface-2:#EEF1F3;--divider:#EEF0EC;--field-border:#DDE0DA;--selected:#082A3E;--on-selected:#FFFFFF;
  --status-ru-bg:#FEE5E5;--status-ru-fg:#703333;--status-ua-bg:#DCE9FD;--status-ua-fg:#1B3A6F;
  --zone-ru-changed:#DE8A79;--zone-ua-changed:#93AEDD;
  --r-status:4px;--r-s:8px;--r-button:10px;--r-m:12px;
  --shadow-seg:0 1px 2px rgba(8,42,62,.15);
  color-scheme:light dark;
}
@media (prefers-color-scheme:dark){:root{
  --ink:#E8EEF3;--muted:#9EADBA;--link:#8AB4F8;--link-hover:#AECBFA;
  --surface:#1F282F;--surface-2:#2B353D;--divider:#2E3942;--field-border:#3A4752;--selected:#E8EEF3;--on-selected:#082A3E;
  --status-ru-bg:#452020;--status-ru-fg:#FDD4D4;--status-ua-bg:#112445;--status-ua-fg:#C4DAFC;
  --zone-ru-changed:#B24A3E;--zone-ua-changed:#5677B5;
  --shadow-seg:0 1px 2px rgba(0,0,0,.35);
}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--surface);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased}
a{color:var(--link)}a:hover{color:var(--link-hover)}
h1,h2,p,figure,ul{margin:0}
ul{padding:0;list-style:none}
svg{flex:none}
.hd{border-bottom:1px solid var(--divider);background:var(--surface)}
.hd-in{max-width:720px;margin:0 auto;height:60px;display:flex;align-items:center;gap:12px}
.logo{display:flex;align-items:center;gap:10px;height:44px;color:var(--ink);text-decoration:none;font-size:var(--fs-heading);font-weight:700}
.logo:hover{color:var(--ink)}
.logo img{width:24px;height:24px;display:block}
.sp{flex:1}
.lang{display:flex;gap:2px;padding:3px;border-radius:var(--r-button);background:var(--surface-2)}
.lang a{min-width:40px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--r-s);font-size:var(--fs-ui);font-weight:600;text-decoration:none;color:var(--muted)}
.lang a[aria-current]{color:var(--ink);background:var(--surface);box-shadow:var(--shadow-seg)}
main{max-width:720px;margin:0 auto;padding:48px 0 64px;display:flex;flex-direction:column;gap:56px}
article{display:flex;flex-direction:column;gap:24px}
.top{display:flex;flex-direction:column;gap:16px}
h1{font-size:var(--fs-page-title);font-weight:700;line-height:1.2;text-wrap:balance;letter-spacing:-.2px;overflow-wrap:anywhere}
.facts{display:flex;flex-wrap:wrap;align-items:center;column-gap:18px;row-gap:8px;font-size:var(--fs-page-body)}
.facts li{display:flex;align-items:center;gap:7px}
.facts svg{color:var(--muted)}
.badge{display:inline-flex;align-items:center;gap:6px;flex:none;padding:3px 10px 3px 8px;border-radius:var(--r-status);font-size:var(--fs-ui);font-weight:600;line-height:1.35;white-space:nowrap;font-variant-numeric:tabular-nums}
.badge i{width:10px;height:10px;border-radius:50%;flex:none}
.badge.ru{background:var(--status-ru-bg);color:var(--status-ru-fg)}.badge.ru i{background:var(--zone-ru-changed)}
.badge.ua{background:var(--status-ua-bg);color:var(--status-ua-fg)}.badge.ua i{background:var(--zone-ua-changed)}
.badge.ct{background:var(--surface-2);color:var(--ink)}
.badge.ct i{background:repeating-linear-gradient(135deg,var(--zone-ru-changed) 0 3px,var(--zone-ua-changed) 3px 6px)}
.lead{font-size:var(--fs-page-lead);line-height:1.5}
.acts{display:flex;gap:8px}
.btn{height:48px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:var(--r-button);font:inherit;font-size:var(--fs-body);white-space:nowrap;text-decoration:none;cursor:pointer}
.btn.pri{background:var(--selected);color:var(--on-selected);font-weight:600}
.btn.pri:hover{color:var(--on-selected)}
.btn.sec{background:var(--surface-2);color:var(--ink);font-weight:500;padding:0 18px}
.btn[hidden]{display:none}
.shot{display:flex;flex-direction:column;gap:8px}
.shot a{display:block;border-radius:var(--r-m);overflow:hidden;box-shadow:inset 0 0 0 1px var(--field-border);line-height:0}
.shot img{width:100%;height:auto;aspect-ratio:1/1;display:block}
.shot figcaption{font-size:var(--fs-secondary);color:var(--muted)}
.body{font-size:var(--fs-page-body);line-height:1.6;overflow-wrap:anywhere}
.body{padding-bottom:12px}
.body p+p{margin-top:12px}
.src{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:var(--fs-ui-l)}
.src span{color:var(--muted)}
.src a{display:inline-flex;align-items:center;gap:6px}
.more{display:flex;flex-direction:column;gap:4px}
.more h2{margin-bottom:4px;font-size:var(--fs-page-h2);font-weight:700;line-height:1.3}
.more ul{border-top:1px solid var(--divider);border-bottom:1px solid var(--divider)}
.more li+li{border-top:1px solid var(--divider)}
.more a{display:grid;grid-template-columns:minmax(0,1fr) auto 150px 18px;align-items:center;column-gap:14px;padding:12px 0;text-decoration:none;color:inherit}
.more .t{font-size:var(--fs-body);font-weight:500;color:var(--ink);overflow-wrap:anywhere}
.more .m{display:contents}
.more .badge{padding:1px 7px 1px 6px;font-size:var(--fs-status)}
.more .badge i{width:8px;height:8px}
.more .d{text-align:right;font-size:var(--fs-secondary);color:var(--muted);font-variant-numeric:tabular-nums}
.more svg{color:var(--placeholder-icon)}
.ft{border-top:1px solid var(--divider)}
.ft div{max-width:720px;margin:0 auto;padding:24px 0 48px;font-size:var(--fs-secondary);color:var(--muted);display:flex;flex-wrap:wrap;gap:4px 6px}
.state{align-items:flex-start;padding:120px 0;gap:20px}
.state .ico{width:56px;height:56px;border-radius:var(--r-m);background:var(--surface-2);color:var(--muted);display:flex;align-items:center;justify-content:center}
.state p{max-width:560px;font-size:var(--fs-page-lead);line-height:1.5;color:var(--muted)}
@media (max-width:760px){
  .hd-in,main,.ft div{padding-left:16px;padding-right:16px}
  .hd-in{height:52px}
  .logo{font-size:var(--fs-title)}.logo img{width:22px;height:22px}
  main{padding-top:24px;padding-bottom:40px;gap:40px}
  article{gap:20px}
  .top{gap:14px}
  h1{font-size:var(--fs-page-title-m)}
  .lead{font-size:var(--fs-page-lead-m)}
  .btn.pri{flex:1}
  .btn.sec{width:48px;padding:0}.btn.sec span{display:none}
  .more a{grid-template-columns:minmax(0,1fr) 18px;row-gap:6px}
  .more .t{grid-column:1;grid-row:1}
  .more .m{display:flex;align-items:center;gap:10px;grid-column:1;grid-row:2}
  .more .d{width:auto;text-align:left}
  .more svg{grid-column:2;grid-row:1/3}
  .ft div{flex-direction:column;gap:4px}
  .ft [aria-hidden]{display:none}
  .ft .u::first-letter{text-transform:uppercase}
  .state{padding:64px 16px}
  .state p{font-size:var(--fs-page-lead-m)}
}
