/* ==========================================================================
   CCROUK, Chamber of Commerce and Industry Romania - Great Britain
   v4: the layout of the live ccrouk.com, section by section, drawn in the
   Double Entry system of v3: warm paper, navy ink, gold and signal marks,
   one family (Archivo variable), hairline rules, square corners.

   1 tokens  2 base and type  3 layout  4 chrome  5 sections  6 components
   7 people  8 pages  9 breakpoints  10 motion and print
   ========================================================================== */


/* 1. TOKENS ================================================================ */

:root {
  /* Archivo variable, wdth 62..125, wght 100..900. The css2 URL must never
     carry &subset=: that returns a static file at normal width and splits
     Romanian diacritics across files that are then not fetched. */
  --sans: "Archivo", "Archivo Narrow", "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, sans-serif;
  --wd-tight: 82%;

  --t-ref: 11px;
  --t-ui: 13px;
  --t-small: 15px;
  --t-body: 17px;
  --t-lede: 19px;
  --t-h4: 17px;
  --t-h3: 21px;
  --t-h2: clamp(28px, 1rem + 1.6vw, 42px);
  --t-h1: clamp(36px, 1.1rem + 2.8vw, 58px);
  --t-hero: clamp(40px, 1.2rem + 4vw, 76px);
  --t-stat: clamp(48px, 1.6rem + 3.2vw, 80px);

  --paper: #F5F1E6;        /* the ground of the site; there is no white */
  --paper-2: #E6DFCC;      /* tinted sections, fields, the portrait backdrop */
  --navy: #0C183C;         /* ink, and the ground of institutional bands */
  --navy-2: #13224F;       /* a card raised on navy */
  --quiet: #545B6C;        /* secondary text on paper */
  --rule: #D9D2BF;         /* hairlines on paper */
  --rule-2: #C4B99B;       /* hairlines on --paper-2 */
  --signal: #92142A;       /* accent on paper; never on navy (1.94:1) */
  --signal-2: #7A0F22;     /* signal, hovered */
  --gold: #D8AE48;         /* accent on navy; never as text on paper (1.85:1) */
  --on-navy: #F2EEE3;
  --on-navy-quiet: #B6B4AB;
  --rule-navy: rgba(242,238,227,.20);
  --focus: #FFDD00;

  --wrap: 1200px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --gap: clamp(32px, 4vw, 64px);
  --sec: clamp(64px, 7vw, 112px);
  --header-h: 76px;

  --dur: 140ms;
}


/* 2. BASE AND TYPE ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--navy);
  font-family: var(--sans); font-size: var(--t-body); line-height: 1.58;
  font-weight: 400;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
:lang(ro) { quotes: "\201E" "\201D" "\00AB" "\00BB"; }
:lang(en) { quotes: "\201C" "\201D" "\2018" "\2019"; }
strong, b { font-weight: 650; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; }
.h1, .h2 { font-weight: 750; letter-spacing: -.02em; line-height: 1.06; }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.005em; }
.h4 { font-size: var(--t-h4); line-height: 1.3; }
@supports (font-variation-settings: normal) {
  .h1, .h2, .stat__n, .plate__n { font-stretch: var(--wd-tight); }
}
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--quiet); }
.eyebrow {
  font-size: var(--t-ui); line-height: 1.35; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--on-navy);
}
.eyebrow--ink { color: var(--quiet); }
.ref {
  font-size: var(--t-ref); line-height: 1.45; letter-spacing: .14em; font-weight: 600;
  text-transform: uppercase; color: var(--quiet);
}
.center { text-align: center; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Focus: the GOV.UK block, yellow with a navy bar, on every ground. */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 0;
  box-shadow: 0 0 0 5px var(--navy);
}
a:focus-visible { background: var(--focus); color: var(--navy); }

.ico { width: 24px; height: 24px; flex: none; }


/* 3. LAYOUT ================================================================ */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.wrap.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.center.narrow, .narrow.center { margin-inline: auto; }

.sec { position: relative; padding-block: var(--sec); }
.sec--tint { background: var(--paper-2); }
.sec--navy { background: var(--navy); color: var(--on-navy); }

/* A photographic band: the picture is an <img> behind the content, so it is
   lazy-loaded, has a phone-sized copy and never needs an inline style. */
.sec--photo { background: var(--navy); color: var(--on-navy); overflow: hidden; isolation: isolate; }
.bg { position: absolute; inset: 0; z-index: -1; }
.bg img { width: 100%; height: 100%; object-fit: cover; }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,24,60,.94) 0%, rgba(12,24,60,.80) 48%, rgba(12,24,60,.55) 100%);
}
.sec--navy .h1, .sec--navy .h2, .sec--navy .h3, .sec--photo .h1,
.sec--photo .h2, .sec--photo .h3 { color: var(--on-navy); }
.sec--navy .lede, .sec--photo .lede { color: var(--on-navy-quiet); }

/* Two columns, text on one side, pictures on the other. */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap); align-items: center;
}
.split--cards { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split--acc { align-items: start; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.split--join { align-items: start; }
.split__txt > * + * { margin-top: 20px; }
.split__txt > .kick + .h2 { margin-top: 18px; }
.split__txt .h3 { margin-top: 28px; }
.split__ph { position: relative; }
.split__ph img { width: 100%; }
.split--rev .split__ph { order: 2; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.split__txt > .btns { margin-top: 32px; }


/* 4. CHROME ================================================================ */

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100; padding: 12px 16px;
  background: var(--focus); color: var(--navy); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

/* Masthead */
.mast {
  position: sticky; top: 0; z-index: 40; background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.mast__in {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h); display: flex; align-items: center; gap: 24px; white-space: nowrap;
}
.mast__id { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.mast__id img { width: 52px; height: 52px; border-radius: 50%; }   /* the seal's own shape */
.mast__name { display: grid; line-height: 1.2; }
.mast__name span:first-child { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.mast__name span:last-child { font-size: 16px; font-weight: 700; letter-spacing: -.005em; }
.mast__nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.mast__nav a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--quiet); text-decoration: none;
}
.mast__nav a:not(.btn):hover { color: var(--navy); }
.mast__nav a:not(.btn)[aria-current="page"] { color: var(--navy); }
.mast__nav a:not(.btn)[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--signal);
}
.mast__nav .btn[aria-current="page"] { background: var(--signal); border-color: var(--signal); }
.mast .langs { flex: none; }
.burger {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  font-size: var(--t-ui); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
/* The bar collapses to the Menu button before the Romanian labels can wrap.
   This block sits next to the rules it overrides on purpose: a phone with
   no navigation is the worst failure this file can have, and audit.py
   checks that it exists. */
@media (max-width: 1080px) {
  .mast__nav, .mast .langs { display: none; }
  .burger { display: inline-flex; margin-left: auto; }
}

/* Language pair */
.langs { display: flex; align-items: center; gap: 6px; font-size: var(--t-ui); font-weight: 600; letter-spacing: .1em; }
.langs a, .langs__on { display: inline-flex; align-items: center; min-height: 44px; min-width: 28px; justify-content: center; }
.langs a { color: var(--quiet); text-decoration: none; }
.langs a:hover { color: var(--navy); }
.langs__on { color: var(--signal); }
.langs > span[aria-hidden] { color: var(--rule-2); }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(12,24,60,.45); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
  background: var(--paper); padding: 20px 24px 40px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px;
  transform: translateX(100%); transition: transform 180ms linear;
}
.drawer.open .drawer__panel { transform: none; }
.drawer__close {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: var(--t-ui); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.drawer nav a {
  display: block; padding: 16px 0; font-size: 20px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.drawer nav a[aria-current="page"] { color: var(--signal); }
@media (min-width: 1081px) { .drawer__nav, .drawer__langs { display: none; } }
@media (min-width: 1081px) {
  .burger span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.panel { display: grid; gap: 14px; padding-top: 8px; }
.drawer__nav + .drawer__langs + .panel { border-top: 1px solid var(--rule); padding-top: 24px; }
.panel__seal { width: 80px; height: 80px; border-radius: 50%; }   /* the seal's own shape */
.panel__name { font-size: 19px; font-weight: 750; line-height: 1.2; }
.panel__blurb { color: var(--quiet); font-size: var(--t-small); line-height: 1.55; }
.panel__h { margin-top: 10px; font-size: var(--t-ui); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.panel__dl { display: grid; gap: 10px; font-size: var(--t-small); }
.panel__dl dt { font-size: var(--t-ref); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); }
.panel__dl a { display: block; width: fit-content; text-decoration: none; font-weight: 500; }
.panel__dl a:hover { color: var(--signal); text-decoration: underline; }
.panel__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.panel__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Footer */
.foot { background: var(--navy); color: var(--on-navy); border-top: 3px solid var(--gold); padding-top: 64px; }
.foot a { color: var(--on-navy); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap);
  padding-bottom: 48px; border-bottom: 1px solid var(--rule-navy);
}
.foot__seal { display: flex; align-items: center; gap: 16px; }
.foot__seal img { width: 80px; height: 80px; border-radius: 50%; }
.foot__seal > span { display: grid; line-height: 1.25; }
.foot__seal > span span:first-child { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-quiet); }
.foot__seal > span span:last-child { font-size: 20px; font-weight: 700; }
.foot__id p { margin-top: 20px; max-width: 460px; color: var(--on-navy-quiet); }
.nl__row { display: flex; }
.nl__row input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px;
  background: var(--paper); color: var(--navy); border: 1px solid var(--paper); border-radius: 0;
}
.nl__row input::placeholder { color: var(--quiet); }
.nl__row input[aria-invalid="true"] { border-color: var(--focus); }
.nl__msg { margin-top: 10px; font-size: var(--t-small); color: var(--on-navy); }
.nl__msg.is-err { color: var(--focus); }
.foot .social { margin-top: 24px; }
.foot__cols {
  display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; gap: var(--gap); padding-block: 48px;
}
.foot__h { font-size: var(--t-ui); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-quiet); margin-bottom: 16px; padding-top: 12px; border-top: 2px solid var(--gold); width: fit-content; }
.foot__links li + li { margin-top: 4px; }
.foot__links a { display: inline-flex; min-height: 36px; align-items: center; color: var(--on-navy-quiet); }
.foot__links a:hover { color: var(--on-navy); }
.foot .dl dt { color: var(--on-navy-quiet); }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding-block: 20px 28px; border-top: 1px solid var(--rule-navy);
  font-size: var(--t-small); color: var(--on-navy-quiet);
}
.foot .langs a { color: var(--on-navy-quiet); }
.foot .langs a:hover { color: var(--on-navy); text-decoration: none; }
.foot .langs__on { color: var(--on-navy); box-shadow: inset 0 -2px 0 var(--gold); min-height: 28px; }
.foot .langs > span[aria-hidden] { color: var(--rule-navy); }
/* Events bubble: top right on every page, and meant to be seen. A red pill
   (a bubble, as asked; the seal is the only other round shape) with a round
   paper badge, inside the masthead's markup. Above 1080px it floats under
   the bar, level with the bar's right edge, and stays in view as the page
   scrolls; at 1080px and below it sits in the bar beside the Menu button,
   so on a phone it never covers the page. main.js adds evb--soon while an
   event is upcoming (a slow pulse) and evb--live while one is happening (a
   fast one); with neither it is a plain link to the events page. */
.evb-box { display: contents; }
.evb {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%;
  padding: 5px 20px 5px 5px; border-radius: 999px;
  background: var(--signal); color: var(--on-navy); text-decoration: none; white-space: nowrap;
  /* a paper rim, so the red never sits directly on navy (bands, footer) */
  box-shadow: 0 0 0 3px var(--paper), 0 8px 22px rgba(12,24,60,.30);
  transition: background-color var(--dur);
}
.evb:hover { background: var(--signal-2); }
.evb__dot {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); color: var(--signal);
}
.evb__dot .ico { width: 22px; height: 22px; }
.evb__txt { display: grid; min-width: 0; }
.evb__k {
  font-size: var(--t-ui); line-height: 1.35; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis;
}
.evb--soon .evb__k, .evb--live .evb__k { font-size: 11px; }
.evb__t { font-size: 16px; line-height: 1.25; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
/* The pulse: rings that grow from the pill and fade, a red one and then a
   paper one, so that one of them shows on paper and on navy alike. */
.evb--soon::before, .evb--soon::after, .evb--live::before, .evb--live::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none;
  animation: evb-ping 2.4s ease-out infinite;
}
.evb--soon::before, .evb--live::before { color: var(--signal); }
.evb--soon::after, .evb--live::after { color: var(--paper); animation-delay: 1.2s; }
.evb--live::before, .evb--live::after { animation-duration: 1.2s; }
.evb--live::after { animation-delay: .6s; }
@keyframes evb-ping {
  0% { box-shadow: 0 0 0 0 currentColor; opacity: .75; }
  100% { box-shadow: 0 0 0 18px currentColor; opacity: 0; }
}
@media (min-width: 1081px) {
  .evb {
    position: fixed; z-index: 1; top: calc(var(--header-h) + 20px);
    right: max(var(--gutter), calc(50% - var(--wrap) / 2 + var(--gutter)));
  }
}
@media (max-width: 1080px) {
  .evb-box { display: flex; min-width: 0; margin-left: auto; }
  .evb-box + .burger { margin-left: 0; }
  .evb { padding: 4px 16px 4px 4px; }
  .evb__dot { width: 38px; height: 38px; }
  .evb__t { font-size: 15px; }
}
/* A heading or link scrolled to, or reached with the keyboard, stops below
   the sticky bar and, above 1080px, below the floating bubble too. */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (min-width: 1081px) { html { scroll-padding-top: calc(var(--header-h) + 96px); } }

/* Contact definition list, footer and Become a Member */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.dl dt { font-size: var(--t-ui); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); margin-bottom: 4px; }
.dl dd a { display: block; width: fit-content; }
.dl dd { font-weight: 500; }

/* Social icons */
.social { display: flex; gap: 8px; }
.social a {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--rule-navy); color: var(--on-navy);
}
.social a:hover { background: var(--on-navy); border-color: var(--on-navy); color: var(--navy); }


/* 5. SECTIONS ============================================================== */

/* Hero */
.hero { min-height: min(86vh, 760px); display: flex; align-items: center; padding-block: clamp(80px, 10vw, 140px); }
.hero__in { width: 100%; }
.hero__in > * { max-width: 700px; }
.hero__h { font-size: var(--t-hero); margin-top: 20px; }
.hero .lede { margin-top: 24px; font-size: clamp(17px, .9rem + .4vw, 20px); color: var(--on-navy); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold); }

/* Inner-page banner */
.banner { padding-block: clamp(72px, 9vw, 128px) clamp(48px, 6vw, 80px); }
.banner .h1 { max-width: 800px; }
.banner__in::before { content: ""; display: block; width: 48px; height: 3px; background: var(--gold); margin-bottom: 20px; }

/* Counters */
.sec--stats { padding-block: clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--rule); }
.stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--gap); align-items: center; }
.stats__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding-left: 24px; border-left: 1px solid var(--rule); }
.stat__n { font-size: var(--t-stat); font-weight: 800; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__n span { color: var(--signal); }
.stat__l { margin-top: 12px; font-size: var(--t-ui); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); line-height: 1.4; }

/* Collage (home) and the decorative squares */
.collage { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); padding: 24px 0 0 24px; }
.collage__a { grid-column: 1 / 8; grid-row: 1; position: relative; z-index: 1; }
.collage__b { grid-column: 5 / 13; grid-row: 1; align-self: end; margin-bottom: -64px; position: relative; z-index: 2; border: 8px solid var(--paper-2); }
.collage img { width: 100%; }
.sq { position: absolute; z-index: 0; }
.sq--navy { left: 0; top: 0; width: 38%; height: 44%; background: var(--navy); }
.sq--signal { right: 8%; bottom: -88px; width: 22%; aspect-ratio: 1; background: var(--signal); }
.collage__a img { aspect-ratio: 5 / 6; object-fit: cover; }
.split__ph--tall { padding: 0 24px 24px 0; }
.split__ph--tall .sq--signal { right: 0; bottom: 0; top: 30%; left: 30%; width: auto; aspect-ratio: auto; }
.split__ph--tall img { position: relative; z-index: 1; max-height: 640px; object-fit: cover; }

/* Kick: the short rule the live site sets above a heading */
.kick { display: block; width: 48px; height: 3px; background: var(--signal); }
.sec--navy .kick, .sec--photo .kick { background: var(--gold); }
.center .kick { margin-inline: auto; }
.center > .kick + .h2 { margin-top: 18px; }
.center .lede { margin-top: 20px; }

/* Divider with text */
.divtext { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.divtext::before, .divtext::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.divtext span { font-size: var(--t-ui); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); text-align: center; }

/* Band with photograph (home: bridges; leadership) */
.sec--band { padding-block: clamp(80px, 9vw, 136px); }
.band__in > * + * { margin-top: 20px; }
.band__in .h2 { max-width: 720px; }
.band__in.center .h2 { margin-inline: auto; }
.band__in .lede { max-width: 620px; color: var(--on-navy); }
.band__ic {
  display: inline-grid; place-items: center; width: 64px; height: 64px;
  border: 1px solid var(--gold); color: var(--gold);
}
.band__ic .ico { width: 30px; height: 30px; }
.sec--impact .h2 { margin-top: 24px; }

/* Partners */
.partners__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: end; }
.partners__head .h2 { margin-top: 18px; }
.strip { margin-top: 48px; }
.strip__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  scrollbar-color: var(--rule-2) transparent; padding-bottom: 12px;
}
.partner { scroll-snap-align: start; display: grid; grid-template-rows: 112px auto; gap: 12px; }
.partner img { width: 100%; height: 112px; object-fit: contain; padding: 18px; background: var(--paper-2); }
.partner span { font-size: var(--t-small); line-height: 1.35; color: var(--quiet); }
.strip__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.strip__nav button {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--rule-2);
}
.strip__nav button:hover { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.strip__nav button:disabled { opacity: .35; cursor: default; background: none; color: var(--navy); border-color: var(--rule-2); }

/* Call to action band (signal, with the freight picture) */
.sec--cta { padding-block: 0 var(--sec); }
.cta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.cta__panel {
  background: var(--signal); color: var(--on-navy); padding: clamp(36px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px;
}
.cta__panel .h2 { color: var(--on-navy); max-width: 560px; }
.cta__ph img { width: 100%; height: 100%; object-fit: cover; }


/* 6. COMPONENTS ============================================================ */

/* Buttons. Square, uppercase label, arrow that moves on hover. */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px;
  background: var(--navy); color: var(--on-navy); border: 1px solid var(--navy);
  font-size: var(--t-ui); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur), border-color var(--dur), color var(--dur);
}
.btn:hover { background: var(--signal); border-color: var(--signal); }
.btn__ico { width: 18px; height: 18px; }
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn--light { background: var(--on-navy); border-color: var(--on-navy); color: var(--navy); }
.btn--light:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--navy); }
.btn--line { background: transparent; border-color: var(--on-navy); color: var(--on-navy); }
.btn--line:hover { background: var(--on-navy); border-color: var(--on-navy); color: var(--navy); }
.btn--paper { background: var(--paper); border-color: var(--paper); color: var(--signal); }
.btn--paper:hover { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.btn:focus-visible { background: var(--focus); border-color: var(--focus); color: var(--navy); }

/* Icon box: mission and values */
.ibox { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 20px; border-top: 1px solid var(--rule-2); }
.sec:not(.sec--tint) .ibox { border-top-color: var(--rule); }
.ibox__ic { display: grid; place-items: center; width: 52px; height: 52px; background: var(--navy); color: var(--gold); }
.ibox .h4 { margin-bottom: 6px; }
.ibox p { color: var(--quiet); }
.split__txt > .ibox { margin-top: 28px; }
.split__txt > .ibox + .ibox { margin-top: 20px; }

/* Service cards */
.sec--svc .h2 { max-width: 780px; margin-inline: auto; }
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.svc__card { display: flex; flex-direction: column; gap: 16px; padding: 40px 32px; border: 1px solid var(--rule); border-top: 3px solid var(--navy); }
.svc__card p { color: var(--quiet); flex: 1; }
.svc__ic { display: grid; place-items: center; width: 56px; height: 56px; background: var(--signal); color: var(--on-navy); }
.svc__card--navy { background: var(--navy); color: var(--on-navy); border-color: var(--navy); border-top-color: var(--gold); }
.svc__card--navy .h3 { color: var(--on-navy); }
.svc__card--navy p { color: var(--on-navy-quiet); }
.svc__card--navy .svc__ic { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.more {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; width: fit-content;
  font-size: var(--t-ui); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--signal); text-decoration: none; border-bottom: 1px solid currentColor;
}
.svc__card--navy .more { color: var(--on-navy); }
.more__ic { width: 18px; height: 18px; }

/* Photo cards with a caption bar (home, beside Membership Benefits) */
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pcards li:nth-child(even) { transform: translateY(40px); }
.pcard { position: relative; overflow: hidden; background: var(--navy); }
.pcard img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.pcard__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; background: rgba(12,24,60,.90); color: var(--on-navy); border-top: 2px solid var(--gold); }
.pcard__cap .h4 { color: var(--on-navy); }
.pcard__cap p { margin-top: 4px; font-size: var(--t-small); line-height: 1.4; color: var(--on-navy-quiet); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 10px 14px; border: 1px solid var(--rule-2); background: var(--paper);
  font-size: var(--t-ui); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.tags li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--signal); margin-right: 10px; vertical-align: 2px; }

/* Lists with a check mark */
.list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.list li + li { margin-top: 12px; }
.list__ic { width: 20px; height: 20px; margin-top: 4px; color: var(--signal); }
.sec--navy .list__ic { color: var(--gold); }

/* Accordions: native details and summary, so they work with no script */
.accs { display: grid; gap: 12px; }
.acc { border: 1px solid var(--rule-2); background: var(--paper); }
.sec--tint .acc { border-color: var(--rule-2); }
.acc summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 22px; cursor: pointer; list-style: none;
  font-size: var(--t-h4); font-weight: 700; line-height: 1.3;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--signal); }
.acc__ic { width: 22px; height: 22px; color: var(--signal); transition: transform var(--dur); }
.acc[open] summary { border-bottom: 1px solid var(--rule); }
.acc[open] .acc__ic { transform: rotate(45deg); }
.acc__body { padding: 20px 22px 24px; }
.acc__body .list li { font-size: 16px; }

/* About: three cards of bullet points */
.sec--impact { padding-bottom: calc(var(--sec) + 72px); }
.sec--acards { padding-top: 0; }
.acards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: -72px; position: relative; }
.acard { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--signal); padding: 36px 30px; }
.acard .h3 { margin-bottom: 24px; }
.acard .list li { font-size: 16px; line-height: 1.55; }

/* Prose */
.prose > p + p { margin-top: 18px; }
.prose .h2 + p { margin-top: 24px; }
.prose strong { color: var(--signal); font-weight: 650; }
.sec--doc .h1 { margin-top: 18px; }
.sec--doc .lede { margin-top: 20px; }
.sec--doc .h3 { margin-top: 40px; margin-bottom: 10px; }


/* 7. PEOPLE ================================================================ */

.sec--intro { padding-bottom: calc(var(--sec) * .7); }
.sec--team { padding-top: 64px; }
.grp + .grp { margin-top: 72px; }
.grp__h { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.grp__h span { font-size: var(--t-ui); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); white-space: nowrap; }
.grp__h::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* Five plates to a row, one group per row. Each plate is a subgrid so the
   names, roles and places line up across the row whatever their length. */
.plates { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 20px; }
.plate { display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; }
@supports (grid-template-rows: subgrid) {
  .plates { grid-auto-rows: auto; }
  .plate { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
}
.plate__ph { background: var(--paper-2); aspect-ratio: 1 / 1; margin-bottom: 16px; border-bottom: 3px solid var(--navy); }
.plate__ph img { width: 100%; height: 100%; object-fit: cover; }
.plate__n { font-size: 19px; font-weight: 750; line-height: 1.15; letter-spacing: -.005em; }
.plate__role { margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--signal); }
.plate__bio { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: var(--t-small); line-height: 1.55; color: var(--quiet); }
.plate__ph--open {
  display: grid; place-content: center; justify-items: center; gap: 10px;
  background: transparent; border: 1px dashed var(--rule-2); border-bottom: 3px solid var(--rule-2); color: var(--quiet);
}
.plate__ph--open .ico { width: 32px; height: 32px; }


/* 8. PAGES ================================================================= */

/* Become a Member: the membership text */
.sec--member-text { border-top: 1px solid var(--rule); }
.sec--member-text .h2 { margin-top: 18px; }
.sec--member-text .lede { margin-top: 20px; }
.mblock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); margin-top: 72px; }
.mblock__head .h3 { margin-bottom: 12px; }
.mblock__head p { color: var(--quiet); }
.mblock__head { position: relative; padding-top: 20px; border-top: 3px solid var(--navy); }
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.row__t { font-size: var(--t-h4); font-weight: 700; line-height: 1.35; }
.row p { color: var(--quiet); font-size: 16px; }

/* Become a Member: four staggered pictures */
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid4 > div { display: grid; gap: 16px; align-content: start; }
.grid4 > div:last-child { margin-top: 56px; }
.grid4 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__ph--promo { display: grid; place-items: center; padding: 40px; }
.split__ph--promo .sq--navy { inset: 0 30% 30% 0; width: auto; height: auto; }
.split__ph--promo img { position: relative; z-index: 1; width: min(100%, 360px); border: 10px solid var(--paper); }
.split--join .dl { padding: 32px; background: var(--navy); color: var(--on-navy); border-top: 3px solid var(--gold); }
.split--join .dl dt { color: var(--on-navy-quiet); }
.split--join .dl a { color: var(--on-navy); }
.split--join .h2 { margin-top: 18px; }
.split--join .lede { margin-top: 20px; }

/* Contact */
.sec--contact .h1 { margin-top: 18px; }
.dl--stack { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--rule); }
.dl--stack > div { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.dl--stack dt { margin: 0; padding-top: 3px; }
.dl--stack dd { font-size: var(--t-lede); }
.dl--stack a { text-decoration: none; }
.dl--stack a:hover { color: var(--signal); text-decoration: underline; }

/* Events: the list page */
.sec--events .narrow + .evlist { margin-top: 56px; }
.evgrp + .evgrp { margin-top: 64px; }
.evgrp__none { padding-block: 8px 24px; color: var(--quiet); border-bottom: 1px solid var(--rule); }
.evcards { display: grid; gap: 24px; }
.evcard {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--navy);
}
.evcard__ph { background: var(--paper-2); }
.evcard__ph img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.evcard__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(24px, 3vw, 40px); }
.evcard__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-size: var(--t-ui); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet);
}
.evcard .h3 { margin: 0; }
.evcards:not(.evcards--past) .h3 { font-size: clamp(24px, 1rem + 1vw, 32px); letter-spacing: -.01em; }
.evcard .h3 a { text-decoration: none; }
.evcard .h3 a:hover { color: var(--signal); text-decoration: underline; }
.evcard__sub { font-weight: 600; line-height: 1.4; }
.evcard .more { margin-top: 8px; }
.evcards--past { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.evcards--past .evcard { grid-template-columns: minmax(0, 1fr); border-top-color: var(--rule-2); }

/* The state of an event, written in by main.js */
.evstat {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px;
  font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); border: 1px solid currentColor;
}
.evstat[data-status="live"] { background: var(--signal); border-color: var(--signal); color: var(--on-navy); }
.evstat[data-status="live"]::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: evstat-blink 1.4s ease-in-out infinite;
}
.evstat[data-status="past"] { color: var(--quiet); }
@keyframes evstat-blink { 50% { opacity: .25; } }

/* Events: an article */
.sec--ev { padding-top: clamp(40px, 5vw, 72px); }
.ev__top > * + * { margin-top: 16px; }
.ev__top > .ev__meta { margin-top: 28px; }
.ev__top > .h1 { margin-top: 20px; }
.ev__meta + .h1 { margin-top: 14px; }
.ev__sub { font-size: var(--t-h3); line-height: 1.4; font-weight: 600; }
.ev__when {
  display: flex; flex-wrap: wrap; row-gap: 6px; padding-top: 16px; border-top: 1px solid var(--rule);
  font-size: var(--t-small); font-weight: 600; color: var(--quiet);
}
.ev__when li + li::before {
  content: ""; display: inline-block; width: 1px; height: 14px; margin-inline: 14px;
  vertical-align: -2px; background: var(--rule-2);
}
.ev__past { padding: 12px 16px; background: var(--paper-2); border-left: 3px solid var(--quiet); font-weight: 600; }
.ev__fig { max-width: 1000px; margin-top: 40px; }
.ev__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 3px solid var(--navy); }
.ev__body { margin-top: 48px; }
.ev__body > * + * { margin-top: 18px; }
.ev__body > .ev__h2 { margin-top: 48px; font-size: clamp(24px, 1rem + .9vw, 30px); font-weight: 750; line-height: 1.15; letter-spacing: -.01em; }
.ev__body > .ev__h3 { margin-top: 36px; font-size: var(--t-h3); line-height: 1.3; }
.ev__body > .list { margin-top: 20px; }
.ev__quote { margin: 32px 0 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--signal); }
.ev__quote p { font-size: var(--t-lede); line-height: 1.5; font-weight: 500; }
.ev__quote p::before { content: open-quote; }
.ev__quote p::after { content: close-quote; }
.ev__quote figcaption { display: grid; margin-top: 14px; font-size: var(--t-small); color: var(--quiet); }
.ev__quote figcaption strong { color: var(--navy); }
.ev__body > .ev__dl { margin-top: 16px; }
.ev__body > .ev__cta { margin-top: 24px; }
.ev__body > .ev__note { margin-top: 10px; font-size: var(--t-small); color: var(--quiet); }
.ev__contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ev__contacts li { display: grid; align-content: start; gap: 2px; padding: 18px 20px; border: 1px solid var(--rule); border-top: 3px solid var(--navy); }
.ev__contacts span { font-size: var(--t-small); color: var(--quiet); }
.ev__contacts a { width: fit-content; margin-top: 8px; font-weight: 600; text-decoration: none; }
.ev__contacts a:hover { color: var(--signal); text-decoration: underline; }
.ev__end { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); }


/* 9. BREAKPOINTS =========================================================== */

@media (max-width: 1180px) {
  .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plate { grid-row: auto; grid-template-rows: auto auto auto 1fr; }
  .strip__list { grid-auto-columns: calc((100% - 4 * 16px) / 5); }
}

@media (max-width: 960px) {
  .split, .split--cards, .split--acc, .stats, .partners__head, .foot__top, .mblock { grid-template-columns: minmax(0, 1fr); }
  .split--rev .split__ph { order: 0; }
  .split > .collage { max-width: 560px; margin-bottom: 72px; }
  .split--cards .pcards { order: 2; }
  .svc, .acards { grid-template-columns: minmax(0, 1fr); }
  .acards { margin-top: -48px; }
  .sec--impact { padding-bottom: calc(var(--sec) + 48px); }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta__ph { aspect-ratio: 16 / 7; }
  .foot__cols { grid-template-columns: 1fr 1fr 1fr; }
  .foot__contact { grid-column: 1 / -1; }
  .strip__list { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .mblock { margin-top: 56px; gap: 24px; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .mast__id img { width: 44px; height: 44px; }
  .mast__name span:first-child { font-size: 10px; }
  .mast__name span:last-child { font-size: 14px; }
  .stats__row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stat { padding: 0 0 0 20px; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .plate__n { font-size: 17px; }
  .pcards li:nth-child(even) { transform: none; }
  .pcards { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .strip__list { grid-auto-columns: calc((100% - 16px) / 2.3); }
  .btns .btn { width: 100%; justify-content: space-between; }
  /* Romanian labels are long: a button wraps rather than widen the page */
  .btn { white-space: normal; text-align: left; line-height: 1.3; padding-block: 12px; }
  .dl--stack > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .grid4 > div:last-child { margin-top: 32px; }
  .nl__row { flex-direction: column; gap: 8px; }
  .nl__row .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .plates { grid-template-columns: minmax(0, 1fr); }
  .plate { grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: none; column-gap: 16px; }
  .plate__ph { grid-row: 1 / span 2; margin-bottom: 0; }
  .plate > :not(.plate__ph) { grid-column: 2; }
  .plate__bio { grid-column: 1 / -1 !important; }
  .foot__cols { grid-template-columns: minmax(0, 1fr); }
  .mast__name { display: none; }
  /* The word "Menu" is hidden from sight only: it stays the button's name. */
  .burger span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mast__in { gap: 12px; }
  .evb { gap: 8px; padding: 3px 12px 3px 3px; }
  .evb__dot { width: 34px; height: 34px; }
  .evb__dot .ico { width: 18px; height: 18px; }
  .evb__k { font-size: 11px; }
  .evb--soon .evb__k, .evb--live .evb__k { font-size: 10px; letter-spacing: .1em; }
  .evb__t { font-size: 13px; }
}

/* Events pages */
@media (max-width: 960px) {
  .evcards--past { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Room for the whole Events bubble in the bar on narrow screens: the seal
   stands without the name below 640px, the Menu button keeps only its icon
   below 720px (the word stays its name for screen readers), and the
   smallest phones get a slightly tighter bar. */
@media (max-width: 640px) {
  .mast__name { display: none; }
}
@media (max-width: 360px) {
  .mast__in { gap: 10px; }
  .mast__id img { width: 40px; height: 40px; }
  .evb__t { font-size: 12px; }
}
@media (max-width: 720px) {
  .burger span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .evcard, .evcards--past { grid-template-columns: minmax(0, 1fr); }
  .ev__contacts { grid-template-columns: minmax(0, 1fr); }
  /* date, time and venue one under another, so no line starts with a divider */
  .ev__when { flex-direction: column; }
  .ev__when li + li::before { display: none; }
}


/* 10. MOTION AND PRINT ===================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  /* No pulse: a still ring marks an upcoming or current event instead. */
  .evb::before, .evb::after, .evstat::before { animation: none !important; }
  .evb--soon, .evb--live { box-shadow: 0 0 0 3px var(--paper), 0 0 0 8px rgba(146,20,42,.35), 0 8px 22px rgba(12,24,60,.30); }
}

@media print {
  .mast, .drawer, .foot__nl, .strip__nav, .bg, .skip, .evb { display: none !important; }
  .sec--photo, .sec--navy, .foot { background: none; color: #000; }
  .sec--photo .h1, .sec--photo .h2, .sec--navy .h2, .sec--photo .lede { color: #000; }
}
