/* War Monitor. One stylesheet for the whole site. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #090F1A;
  --panel: #0D1524;
  --line: #1D2940;
  --line-2: #2B3D5C;
  --white: #FFFFFF;
  --text: #EAEEF4;
  --soft: #C9D1DE;
  --mute: #93A0B5;
  --amber: #F7AC3E;
  --amber-hi: #FFC062;
  --on-amber: #14100A;
  --ice: #8FB9FF;
  --teal: #5FD0C0;
  --rose: #FF9A85;
  --violet: #B9A8FF;
  --wrap: 1264px;
  --gut: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.55 "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 98%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--amber); color: var(--on-amber); }
.band :focus-visible { outline-color: var(--on-amber); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--amber); color: var(--on-amber); font-weight: 600; padding: 10px 14px; border-radius: 5px; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header */
.top__in { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-weight: 650; font-size: 21px; line-height: 1; letter-spacing: -.022em; }
.mark { width: 34px; height: auto; display: block; flex: none; }
.nav { display: flex; gap: 34px; font-size: 15.5px; font-weight: 500; color: var(--soft); }
.nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--white); }
.nav a[aria-current] { color: var(--white); border-bottom-color: var(--amber); }
.nav .sm { display: none; }

/* Buttons and links */
.btn { display: inline-block; background: var(--amber); color: var(--on-amber); font-weight: 600; font-size: 15.5px; line-height: 1.2; padding: 14px 22px 13px; border-radius: 5px; border: 1px solid var(--amber); transition: background .15s, border-color .15s; }
.btn:hover { background: var(--amber-hi); border-color: var(--amber-hi); }
.btn--ghost { background: none; color: var(--white); border-color: #33435F; }
.btn--ghost:hover { background: none; border-color: #6A7FA6; }
.btn--dark { background: var(--on-amber); border-color: var(--on-amber); color: var(--white); }
.btn--dark:hover { background: #2A2116; border-color: #2A2116; }
.act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.more { font-weight: 500; font-size: 15.5px; color: var(--ice); white-space: nowrap; }
.more:hover { color: var(--white); }
.more::after { content: "\2192"; margin-left: 8px; display: inline-block; transition: transform .15s; }
.more:hover::after { transform: translateX(3px); }

/* Home hero: the map is the canvas. Headline sits over the open ocean on the left. */
.home .top { position: absolute; left: 0; right: 0; top: 0; z-index: 5; }
.theatre { position: relative; }
.theatre__win { position: relative; overflow: hidden; max-height: 800px; display: flex; align-items: center; }
/* On wide screens the page column is centred, so the map shifts right to keep the coast clear of the headline. */
.theatre__stage { position: relative; flex: none; width: min(100vw, 2000px); aspect-ratio: 2740 / 1259;
  margin-left: max((100vw - min(100vw, 2000px)) / 2, max(32px, (100vw - 1264px) / 2 + 32px) + min(580px, 38vw) + 24px - .47 * min(100vw, 2000px)); }
@media (min-width: 2001px) { .theatre__stage { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); } }
.tm { display: block; width: 100%; height: 100%; }
.tm path { stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tm-land { fill: #141E33; stroke: #26364F; stroke-width: 1; }
.tm-eu { fill: #2A4170; stroke: var(--night); stroke-width: 1; }
.tm-me { fill: #5A4350; stroke: var(--night); stroke-width: 1; }
.tm-ua { fill: var(--amber); stroke: var(--night); stroke-width: 1; }
.tm-eu, .tm-me, .tm-ua { transition: opacity .2s; animation: tm-in .9s both; }
.tm-eu { animation-delay: .1s; }
.tm-me { animation-delay: .25s; }
.tm-ua { animation-delay: .45s; }
@keyframes tm-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tm-eu, .tm-me, .tm-ua { animation: none; } }
.theatre:has(.key__ua:hover) :is(.tm-eu, .tm-me), .theatre:has(.key__eu:hover) :is(.tm-ua, .tm-me), .theatre:has(.key__me:hover) :is(.tm-ua, .tm-eu) { opacity: .28; }

.tm-labels li { position: absolute; white-space: nowrap; line-height: 1; font-size: clamp(11.5px, .84vw, 15px); }
.tm-sea { transform: translate(-50%, -50%); font-style: italic; letter-spacing: .06em; padding-left: .06em; line-height: 1.2 !important; text-align: center; color: #5F7397; }
.tm-reg { transform: translate(-50%, -50%); font-weight: 700; letter-spacing: .16em; padding-left: .16em; text-transform: uppercase; }
.tm-reg--ua { color: var(--on-amber); }
.tm-reg--eu { color: #A9C6FA; }
.tm-reg--me { color: #F3C3B8; }
.tm-city { font-weight: 500; color: var(--soft); padding-left: 10px; margin-top: -.5em; }
.tm-city i { position: absolute; left: -2.5px; top: calc(.5em - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px rgba(9, 15, 26, .55); }
.tm-city.tm-l { padding-left: 0; padding-right: 10px; transform: translateX(-100%); }
.tm-city.tm-l i { left: auto; right: -2.5px; }
.tm-city.tm-a { padding: 0 0 9px; margin-top: 0; transform: translate(-50%, -100%); }
.tm-city.tm-a i { left: 50%; top: auto; bottom: -2.5px; margin-left: -2.5px; }
.tm-city--ua { color: var(--on-amber); font-weight: 600; }
.tm-city--ua i { background: var(--on-amber); box-shadow: none; }

.theatre__over { position: absolute; inset: 0; pointer-events: none; }
.theatre__text { position: absolute; left: var(--gut); top: calc(50% + 34px); transform: translateY(-50%); width: min(580px, 38vw); pointer-events: auto; }
.theatre h1 { font-weight: 600; font-stretch: 92%; font-size: clamp(44px, 4.6vw, 68px); line-height: .99; letter-spacing: -.036em; color: var(--white); }
.hero__lede { margin-top: 26px; font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.5; color: var(--mute); max-width: 26em; }
.theatre .act { margin-top: 34px; }

.key { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 400px; }
.key__t { font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.key li { display: grid; grid-template-columns: 12px 96px auto; column-gap: 11px; align-items: center; font-size: 14.5px; line-height: 1.8; cursor: default; }
.key i { width: 12px; height: 12px; border-radius: 3px; }
.key b { font-weight: 600; color: var(--white); }
.key span { color: var(--mute); }
.key__ua i { background: var(--amber); }
.key__eu i { background: #2A4170; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.key__me i { background: #5A4350; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }

/* Framed map, used by the share image */
.map__frame { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.map__frame img { display: block; width: 100%; height: auto; }

/* Reach figures */
.figs { display: grid; grid-template-columns: 1fr 1.3fr .8fr; margin-top: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figs > div { padding: 28px 0 30px 32px; border-left: 1px solid var(--line); }
.figs > div:first-child { padding-left: 0; border-left: 0; }
.figs dd { font-weight: 300; font-stretch: 94%; font-size: 60px; line-height: 1; letter-spacing: -.04em; color: var(--white); white-space: nowrap; }
.figs dd em { font-style: normal; color: var(--amber); }
.figs dt { margin-top: 10px; font-size: 15px; color: var(--mute); }
.figs > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

.live { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0 19px; border-bottom: 1px solid var(--line); }
.live p { color: var(--soft); }
.live div { display: flex; gap: 34px; }

/* Sections */
.sec { padding-top: 108px; }
.sec--last { padding-bottom: 112px; }
.sh { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 30px; }
h2 { font-weight: 600; font-stretch: 92%; font-size: 42px; line-height: 1.04; letter-spacing: -.032em; color: var(--white); }
.intro { max-width: 34em; color: var(--mute); font-size: 18px; margin: -12px 0 40px; }

/* Theme colours */
.th--ukraine { --th: var(--amber); }
.th--europe { --th: var(--ice); }
.th--middle-east { --th: var(--rose); }
.th--technology { --th: var(--violet); }

/* Split section: text beside a figure */
.split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; align-items: start; }
.split__l { grid-column: 1 / span 5; }
.split__r { grid-column: 7 / span 6; }
.split__p { margin-top: 22px; font-size: 18.5px; line-height: 1.5; color: var(--soft); max-width: 25em; }
.split__p + .split__p { margin-top: 14px; }
.split .kv { margin-top: 30px; }
.split .kv > div { grid-template-columns: 170px 1fr; }
.split .more { display: inline-block; margin-top: 28px; }

/* Grade key */
.gk { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 34px 36px 32px; }
.gk__top { display: flex; align-items: flex-end; gap: 30px; padding-bottom: 30px; }
.gk__grade { font-weight: 300; font-stretch: 96%; font-size: 136px !important; line-height: .8 !important; letter-spacing: -.055em; color: var(--amber) !important; margin: 0 0 0 -6px !important; }
.gk__read { font-size: 17px !important; line-height: 1.45 !important; color: var(--soft); max-width: 15em; margin: 0 !important; }
.gk__read b { display: block; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.gk__scale { margin: 0 !important; padding-top: 22px; }
.gk__lab { font-size: 14px !important; line-height: 1.3 !important; color: var(--mute) !important; margin: 0 0 9px !important; }
.gk ol { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0 !important; }
.gk ol li { height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); border-left-width: 0; font-size: 16px !important; line-height: 1 !important; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; max-width: none; margin: 0 !important; }
.gk ol li:first-child { border-left-width: 1px; border-radius: 5px 0 0 5px; }
.gk ol li:last-child { border-radius: 0 5px 5px 0; }
.gk ol li.on { background: var(--amber); border-color: var(--amber); color: var(--on-amber); font-weight: 700; }
.gk__ends { display: flex; justify-content: space-between; gap: 16px; font-size: 13px !important; line-height: 1.3 !important; color: #7C89A0 !important; margin: 8px 0 0 !important; max-width: none !important; }

/* What we cover: one statement */
.state { font-weight: 500; font-stretch: 96%; font-size: 35px; line-height: 1.2; letter-spacing: -.026em; color: var(--white); max-width: 27.5em; }
.state span { color: var(--th); }

/* Contact band */
.band { background: var(--amber); color: var(--on-amber); }
.band > .wrap { padding-top: 64px; padding-bottom: 68px; }
.band__top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; font-size: 17px; font-weight: 500; }
.band h2 { font: inherit; color: inherit; letter-spacing: 0; }
.band__mail { display: inline-block; margin-top: 36px; font-weight: 600; font-stretch: 88%; font-size: 98px; line-height: 1; letter-spacing: -.045em; }
.band__mail:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 10px; }
.band__act { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.band__more { font-weight: 600; font-size: 15.5px; border-bottom: 2px solid var(--on-amber); padding-bottom: 2px; }

/* Footer */
.foot { font-size: 15px; color: var(--mute); }
.foot__in { display: grid; grid-template-columns: 5fr 4fr 3fr; column-gap: 32px; padding-top: 56px; padding-bottom: 44px; }
.foot__a p { margin-top: 16px; max-width: 24em; }
.foot__nav, .foot__c { display: flex; flex-direction: column; gap: 10px; color: var(--soft); }
.foot a:hover { color: var(--white); }
.foot__base { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: 14px; }

/* Inner pages */
.ph > .wrap { padding-top: 64px; padding-bottom: 72px; }
.ph h1 { font-weight: 600; font-stretch: 92%; font-size: 64px; line-height: 1; letter-spacing: -.036em; color: var(--white); max-width: 14em; }
.ph__sf { margin-top: 22px; font-size: 21px; line-height: 1.45; color: var(--mute); max-width: 30em; }

.part { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; padding-top: 44px; padding-bottom: 64px; border-top: 1px solid var(--line); }
.part > h2 { grid-column: 1 / span 4; font-size: 30px; letter-spacing: -.026em; }
.part > div { grid-column: 5 / span 7; }
.wrap > .part:last-child { padding-bottom: 104px; }
.prose > * + * { margin-top: 16px; }
.prose p, .prose li { font-size: 18.5px; line-height: 1.55; color: var(--soft); max-width: 36em; }
.prose strong { color: var(--white); font-weight: 600; }
.prose h3 { font-weight: 600; font-size: 20px; letter-spacing: -.014em; color: var(--white); margin-top: 34px; }
.prose a:not(.btn) { color: var(--ice); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:not(.btn):hover { color: var(--white); }
.prose .btn { margin-top: 10px; }
.todo { border: 1px dashed var(--amber); border-radius: 6px; padding: 12px 15px 11px; background: rgba(247, 172, 62, .07); color: var(--amber) !important; font-size: 15.5px !important; line-height: 1.45 !important; max-width: 36em; }
.todo b { font-weight: 700; margin-right: 9px; }

/* Definition tables */
.kv { border-top: 1px solid var(--line); max-width: 680px; }
.kv > div { display: grid; grid-template-columns: 220px 1fr; column-gap: 24px; padding: 14px 0 13px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--white); font-weight: 600; }
.kv dd { color: var(--soft); }
.kv .todo { margin: 0; }

/* Big audience figures on the partnerships page */
.stat { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0 32px; max-width: 680px; }
.stat > div { border-top: 2px solid var(--line-2); padding: 16px 0 30px; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat dd { font-weight: 300; font-stretch: 94%; font-size: 52px; line-height: 1; letter-spacing: -.04em; color: var(--white); white-space: nowrap; }
.stat dd em { font-style: normal; color: var(--amber); }
.stat dt { margin-top: 8px; font-size: 15px; color: var(--mute); }

/* Full scales on the method page */
.prose .gk { max-width: 600px; margin-top: 28px; }
.scales { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; max-width: 600px; margin-top: 30px !important; }
.scales h3 { margin: 0 0 8px; font-size: 16px; }
.scales li { display: grid; grid-template-columns: 28px 1fr; font-size: 16.5px !important; line-height: 1.75 !important; margin: 0 !important; }
.scales li b { color: var(--white); font-weight: 600; }
.prose .note { font-size: 15.5px; color: var(--mute); }

/* 404 */
.nf > .wrap { padding-top: 120px; padding-bottom: 160px; }
.nf h1 { font-weight: 600; font-stretch: 92%; font-size: 64px; line-height: 1; letter-spacing: -.036em; color: var(--white); }
.nf p { margin: 22px 0 32px; font-size: 21px; color: var(--mute); }

@media (max-width: 1100px) {
  .band__mail { font-size: 7.4vw; }
  .figs dd { font-size: 48px; }
}

@media (max-width: 1340px) {
  .theatre__text { top: calc(50% + 28px); }
  .hero__lede { margin-top: 20px; }
  .theatre .act { margin-top: 26px; }
  .key { margin-top: 26px; padding-top: 14px; }
  .key li { font-size: 14px; line-height: 1.7; }
}

@media (max-width: 1120px) {
  .home .top { position: static; }
  .theatre { display: flex; flex-direction: column; }
  .theatre__over { position: static; order: -1; pointer-events: auto; padding-top: 36px; }
  .theatre__text { position: static; transform: none; width: auto; max-width: 560px; }
  .theatre__win { display: block; margin-top: 36px; width: 100%; max-height: none; aspect-ratio: 1.178; }
  .theatre__stage { position: absolute; right: 0; top: 0; width: auto; height: 100%; margin-left: 0; }
  .key { margin-top: 30px; max-width: none; }
  .theatre { padding-bottom: 0; }
  .theatre__win { order: 1; }
  .figs { margin-top: 28px; }
}

@media (max-width: 820px) {
  :root { --gut: 18px; }
  .top__in { display: block; padding-top: 18px; padding-bottom: 0; }
  .brand { font-size: 20px; }
  .mark { width: 31px; }
  .nav { justify-content: space-between; gap: 12px; margin: 16px calc(var(--gut) * -1) 0; padding: 4px var(--gut) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14.5px; }
  .nav a { padding: 10px 0 9px; margin-bottom: -1px; }
  .nav .lg { display: none; }
  .nav .sm { display: inline; }

  .theatre h1 { font-size: 44px; }
  .hero__lede { font-size: 18px; margin-top: 20px; }
  .theatre .act { margin-top: 28px; }
  .tm-minor { display: none; }
  .tm-labels li { font-size: 10.5px; }
  .tm-labels .tm-reg { font-size: 9px; letter-spacing: .1em; padding-left: .1em; }
  .tm-labels .tm-sea { font-size: 10px; }
  .tm-city { padding-left: 7px; }
  .tm-city.tm-l { padding-right: 7px; }
  .tm-city i { width: 4px; height: 4px; left: -2px; top: calc(.5em - 2px); }
  .tm-city.tm-l i { right: -2px; }

  .figs { grid-template-columns: 1fr; margin-top: 44px; border-bottom: 0; }
  .figs > div { padding: 20px 0 22px; border-left: 0; border-top: 1px solid var(--line); }
  .figs > div:first-child { border-top: 0; }
  .figs dd { font-size: 46px; }
  .live { flex-direction: column; align-items: flex-start; gap: 12px; border-top: 1px solid var(--line); }
  .live div { gap: 26px; }

  .sec { padding-top: 68px; }
  .sec--last { padding-bottom: 72px; }
  .sh { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 24px; }
  h2 { font-size: 33px; }
  .intro { font-size: 17px; margin: -8px 0 30px; }

  .split { display: block; }
  .split__r { margin-top: 40px; }
  .split__p { font-size: 17.5px; margin-top: 16px; }
  .split .kv > div { grid-template-columns: 1fr; }
  .gk { padding: 24px 20px 22px; }
  .gk__top { gap: 20px; padding-bottom: 20px; }
  .gk__grade { font-size: 96px !important; margin-left: -4px !important; }
  .gk__read { font-size: 16px !important; }
  .gk ol li { height: 42px; }
  .state { font-size: 25px; line-height: 1.24; }
  .band > .wrap { padding-top: 40px; padding-bottom: 44px; }
  .band__top { display: block; }
  .band__top p { margin-top: 4px; font-weight: 400; }
  .band__mail { font-size: 8.3vw; letter-spacing: -.035em; margin-top: 28px; }
  .band__act { margin-top: 30px; gap: 20px; }

  .foot__in { grid-template-columns: 1fr; row-gap: 30px; padding-top: 44px; padding-bottom: 34px; }
  .foot__base { flex-direction: column; gap: 6px; }

  .ph > .wrap { padding-top: 40px; padding-bottom: 44px; }
  .ph h1, .cov-top__l h1, .nf h1 { font-size: 42px; }
  .ph__sf, .cov-top__l > p { font-size: 18.5px; margin-top: 16px; }
  .part { display: block; padding-top: 30px; padding-bottom: 44px; }
  .part > h2 { font-size: 27px; margin-bottom: 16px; }
  .wrap > .part:last-child { padding-bottom: 64px; }
  .prose p, .prose li { font-size: 17.5px; }
  .kv > div { grid-template-columns: 1fr; row-gap: 2px; }
  .stat { grid-template-columns: 1fr; }
  .stat dd { font-size: 44px; }
  .scales { grid-template-columns: 1fr; row-gap: 24px; }

  .nf > .wrap { padding-top: 64px; padding-bottom: 88px; }
}
