/* ==========================================================================
   Remonon — NATO handout one-pager
   Built to the printed handout: a sequence of screens, each one a single
   left-aligned column that runs eyebrow → stacked display headline → text →
   navy statement block → icon. Navy covers open and close the sequence.

   Single-theme by intent — a fixed brand palette. Every colour is set
   explicitly and body paints its own ground, so the page holds on a light or
   dark host background.
   ========================================================================== */

:root {
  /* Colour — sampled from the printed handout */
  --navy:        #243D70;
  --navy-lift:   #274177;
  --navy-deep:   #1B2E56;
  --lime:        #B3DF5C;
  --lime-bright: #BAE641;
  --paper:       #FFFFFF;
  --tint:        #EEF2F8;
  --rule:        #D8E0EA;
  --ink-muted:   #5C6E90;
  --ink-faint:   #8494B0;

  --font: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* The handout's screen is narrow; the page keeps that column. */
  --column: 660px;
  --gutter: clamp(22px, 6vw, 40px);
  --screen-y: clamp(52px, 7.5vw, 84px);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* The navy grounds invert the ring; navy on navy would vanish. The skip link is
   deliberately absent here: it paints its own lime-bright background when
   focused, so it keeps the navy ring above. */
.cover :focus-visible,
.screen--navy :focus-visible {
  outline-color: var(--lime-bright);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.skip-link { position: absolute; left: -9999px; }

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lime-bright);
  color: var(--navy);
  border-radius: 6px;
  font-weight: 700;
}

/* ------------------------------------------------------- screen scaffold -- */

.screen {
  padding-block: var(--screen-y);
}

.screen--paper { background: var(--paper); }
.screen--navy  { background: var(--navy); color: #FFFFFF; }

.col {
  width: 100%;
  max-width: calc(var(--column) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(22px, 3.4vw, 32px);
}

/* Tighter pairs inside a screen */
.pair { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.group { display: flex; flex-direction: column; gap: 18px; width: 100%; }

/* ------------------------------------------------------------ typography -- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.screen--navy .eyebrow { color: #FFFFFF; }

.eyebrow::before {
  content: "";
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--lime);
}

h1, h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.022em;
}

.display {
  font-size: clamp(2rem, 6.6vw, 2.9rem);
  line-height: 0.99;
}

.display--cover {
  font-size: clamp(2.15rem, 7.4vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: #FFFFFF;
}

/* The handout stacks its headlines on deliberate line breaks */
.display .ln { display: block; }

.subhead {
  margin: 0;
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--navy);
}

.screen--navy .subhead { color: var(--lime); }

.body-text {
  margin: 0;
  max-width: 54ch;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--navy);
}

.screen--navy .body-text { color: rgba(255, 255, 255, 0.86); }

.note {
  margin: 0;
  max-width: 52ch;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-muted);
}

.screen--navy .note { color: rgba(255, 255, 255, 0.62); }

/* ------------------------------------------------------- context band -- */

/* Preface to a screen: navy band, lime label, white lines. Sits above the
   eyebrow so the reader gets the context before the headline. */
.context {
  width: 100%;
  padding: 20px 24px 22px;
  background: var(--navy);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  color: #FFFFFF;
}

.context-label {
  margin: 0 0 12px;
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.context-text {
  margin: 0;
  font-size: clamp(1rem, 2.7vw, 1.12rem);
  font-weight: 600;
  line-height: 1.5;
  color: #FFFFFF;
}

.context-text .ln { display: block; }
.context-text .ln:last-child { color: var(--lime); font-weight: 800; margin-top: 6px; }

/* ----------------------------------------------------- statement blocks -- */

/* The handout's signature: navy slab, lime type, set tight */
.statement {
  margin: 0;
  width: 100%;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--lime);
  font-size: clamp(0.98rem, 2.5vw, 1.1rem);
  font-weight: 800;
  line-height: 1.35;
}

.statement--caps {
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.25;
}

.screen--navy .statement {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(179, 223, 92, 0.35);
}

/* ---------------------------------------------------------------- icons -- */

/* Normalised on height so icons of different proportions read as one set */
.icon {
  margin: clamp(8px, 2vw, 16px) 0 0;
  max-width: 100%;
}

.icon img {
  display: block;
  height: clamp(84px, 17vw, 112px);
  width: auto;
  max-width: 100%;
}

/* ---------------------------------------------------------------- cover -- */

.cover {
  background: var(--navy);
  color: #FFFFFF;
  padding-block: clamp(44px, 9vw, 92px) clamp(52px, 8vw, 88px);
}

.cover-logo { width: clamp(176px, 44vw, 248px); height: auto; display: block; }

.cover-sub {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.2rem, 3.8vw, 1.6rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--lime);
}

.cover-visit {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  color: #FFFFFF;
}

.cover-visit a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(179, 223, 92, 0.4);
}

.cover-visit a:hover { border-bottom-color: var(--lime); }

/* ---------------------------------------------------------------- stats -- */

.stats {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 620px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  background: var(--navy-lift);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.screen--paper .stat {
  background: var(--navy);
  border-color: transparent;
}

.stat b {
  font-size: clamp(1.45rem, 4.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--lime); color: var(--navy); }
.btn--primary:hover { background: var(--lime-bright); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------- labelled items -- */

.marked {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.marked li {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.marked li::before {
  content: "";
  width: 17px;
  height: 17px;
  margin-top: 3px;
  border-radius: 3px;
  background: var(--lime);
}

.marked b {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.screen--navy .marked b { color: #FFFFFF; }

.marked p {
  margin: 3px 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-muted);
}

.screen--navy .marked p { color: rgba(255, 255, 255, 0.76); }

/* Checked variant, as on the handout's compliance screen */
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ticks li {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

.ticks li::before {
  content: "";
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border-radius: 4px;
  background: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.9' fill='none' stroke='%23243D70' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

/* ------------------------------------------------------ relief spectrum -- */

.spectrum { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.spectrum-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 400px;
}

.spectrum-btn {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  color: var(--ink-muted);
}

.spectrum-btn .swatch {
  aspect-ratio: 1;
  border-radius: 3px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.spectrum-btn:hover .swatch { transform: translateY(-2px); }
.spectrum-btn[aria-pressed="true"] .swatch { box-shadow: 0 0 0 2px var(--navy); }

.spectrum-btn .tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spectrum-btn[aria-pressed="true"] .tag { color: var(--navy); }

.sw-full    { background: var(--navy); }
.sw-partial { background: var(--rule); }
.sw-little  { background: var(--lime); }

.sw-unknown {
  border: 2px dashed var(--rule);
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 1.1rem;
  font-weight: 800;
}

.spectrum-caption {
  margin: 0;
  max-width: 52ch;
  min-height: 2.8em;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-muted);
}

.spectrum-caption b { color: var(--navy); font-weight: 700; }

/* ---------------------------------------------------------------- steps -- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 22px;
  position: relative;
}

.steps li:last-child { padding-bottom: 0; }

.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 6px;
  width: 2px;
  background: var(--rule);
}

.steps .num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.steps .txt {
  padding-top: 6px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

/* ------------------------------------------------------- inline listings -- */

.label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.screen--navy .label { color: var(--lime); }

/* "NATO JSEC · Canadian Forces · US Forces", as the handout sets it */
.inline-list {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
}

.screen--navy .inline-list { color: #FFFFFF; }

.inline-list .sep { color: var(--lime); padding-inline: 4px; }

.inline-list--next { color: var(--ink-muted); font-weight: 600; }

.screen--navy .inline-list--next { color: rgba(255, 255, 255, 0.72); }

/* ------------------------------------------------------------ big figure -- */

.figure-block {
  width: 100%;
  padding: 22px 24px;
  background: var(--navy);
  border-radius: var(--radius);
  color: #FFFFFF;
}

.figure-block .val {
  display: block;
  font-size: clamp(2rem, 6.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.figure-block .cap {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
}

/* Paired counts on the compliance screen */
.count-pair {
  display: grid;
  gap: 10px;
  width: 100%;
}

@media (min-width: 520px) {
  .count-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.count {
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.count .val {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.count .share {
  font-size: 0.78em;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}

.screen--navy .count .share { color: var(--lime); }

.count .lbl {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-muted);
}

.placeholder {
  display: inline-block;
  padding: 1px 9px;
  border: 2px dashed var(--ink-faint);
  border-radius: 5px;
  color: var(--ink-faint);
  font-size: 0.74em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------- about us -- */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 12px;
}

@media (min-width: 620px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 22px;
  background: var(--tint);
  border-radius: var(--radius);
}

.fact-ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--paper);
}

.fact-ic svg { width: 30px; height: 30px; display: block; }

.fact b {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.fact p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-muted);
}

.growth {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  background: var(--navy);
  border-radius: var(--radius);
}

.growth .label { color: var(--lime); }

.growth-row {
  display: grid;
  gap: 18px 32px;
}

@media (min-width: 560px) {
  .growth-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.growth-item {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: baseline;
  justify-content: start;
  font-variant-numeric: tabular-nums;
}

.growth-item .from {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.growth-item .arrow { align-self: center; width: 22px; height: 22px; }

.growth-item .to {
  font-size: clamp(1.7rem, 5vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lime);
}

.growth-item .what {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

/* ------------------------------------------------------------ two blocks -- */

.split {
  display: grid;
  gap: 22px;
  width: 100%;
}

@media (min-width: 560px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

/* --------------------------------------------------------- vision chips -- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--tint);
  color: var(--navy);
}

.screen--navy .chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

/* -------------------------------------------------------- back cover -- */

.rule-soft {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin: 0;
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
}

.contact-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.mail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.mail-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(179, 223, 92, 0.4);
  word-break: break-word;
}

.mail-link:hover { border-bottom-color: var(--lime); }

.copy-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover,
.copy-btn[data-state="done"] { border-color: var(--lime); color: var(--lime); }

.imprint {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.imprint img { width: 150px; height: auto; display: block; }

.imprint address {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------- content screens set in navy -- */

.screen--navy .steps .txt { color: #FFFFFF; }

.screen--navy .steps li:not(:last-child)::before {
  background: rgba(255, 255, 255, 0.22);
}

.screen--navy .count { border-color: rgba(255, 255, 255, 0.2); }
.screen--navy .count .val { color: #FFFFFF; }
.screen--navy .count .share {
  font-size: 0.78em;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}

.screen--navy .count .share { color: var(--lime); }

.count .lbl { color: rgba(255, 255, 255, 0.7); }

.screen--navy .placeholder {
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.7);
}

.screen--navy .ticks li { color: #FFFFFF; }

.screen--navy .spectrum-caption { color: rgba(255, 255, 255, 0.75); }
.screen--navy .spectrum-caption b { color: #FFFFFF; }
