/* ==========================================================
   SMP header kit + footer — brand v2 (25 Nov 2026, `header-kit`)
   Markup: functions/smp-header-kit.php · Behaviour: assets/js/smp-header.js
   Values: 00_HQ/05_BRAND/docs/tokens.json (brand-v2.4). Header logo 38 px
   tall (102 px wide, the header exception to the 120 px minimum).
   Loads only where the kit shows (staging/local until the release).
   ========================================================== */

@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/brand/montserrat-600.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/brand/montserrat-800.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/brand/open-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/brand/open-sans-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/brand/ibm-plex-mono-400.woff2) format("woff2"); }

.smp-hk,
.smp-fk {
  --hk-navy: #052540;
  --hk-paper: #f7f1e7;
  --hk-orange: #ff5900;
  --hk-teal: #00b0bc;
  --hk-line: rgba(247, 241, 231, 0.14);
  --hk-soft: rgba(247, 241, 231, 0.72);
  --hk-ctl: 38px;
  --hk-ease: cubic-bezier(.4, 0, .2, 1);
  --hk-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --hk-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --hk-data: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.smp-hk *,
.smp-fk * {
  box-sizing: border-box;
}

.smp-hk a:focus-visible,
.smp-hk button:focus-visible,
.smp-fk a:focus-visible {
  outline: 2px solid var(--hk-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.smp-hk-icon {
  display: block;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.smp-hk {
  position: relative;
  z-index: 40;
  font-family: var(--hk-display);
  color: var(--hk-paper);
}

.smp-hk--navy {
  background: var(--hk-navy);
}

/* Slim header over a photo / Night hero: see-through, scrolls away with the page. */
.smp-hk--clear {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(7, 21, 33, 0.55) 0%, rgba(7, 21, 33, 0) 100%);
}

.smp-hk--paper {
  background: transparent;
  color: var(--hk-navy);
}

/* Logged-in team only: keep the see-through header below the WordPress admin bar. */
.admin-bar .smp-hk--clear {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .smp-hk--clear {
    top: 46px;
  }
}

.smp-hk__bar {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.smp-hk__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.smp-hk-logo {
  display: block;
  width: auto;
  height: 38px;
}

.smp-hk__nav {
  margin-left: 16px;
}

.smp-hk__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.smp-hk__item {
  position: relative;
  margin: 0;
}

.smp-hk__link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--hk-ctl);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 600 15px/1 var(--hk-display);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 transparent;
}

.smp-hk__item.is-current > .smp-hk__link,
.smp-hk__link[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--hk-orange);
}

.smp-hk__link .smp-hk-icon {
  width: 16px;
  height: 16px;
  transition: transform 220ms var(--hk-ease);
}

.smp-hk__link[aria-expanded="true"] .smp-hk-icon {
  transform: scaleY(-1);
}

.smp-hk__sub {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -14px;
  min-width: 260px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--hk-navy);
  border: 1px solid var(--hk-line);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.smp-hk__item.is-open > .smp-hk__sub {
  display: block;
}

.smp-hk__sub li {
  margin: 0;
}

.smp-hk__sublink {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 13px;
  color: var(--hk-paper);
  font: 600 15px/1.2 var(--hk-display);
  text-decoration: none;
}

.smp-hk__sublink:hover,
.smp-hk__sublink[aria-current="page"] {
  background: rgba(247, 241, 231, 0.08);
}

/* Special Editions ▾ (David, 1 Dec 2026): the events still coming, grouped
   by city. City = small caps label in teal (5.9:1 on navy); the date in the
   data face. */
.smp-hk__sub--events {
  min-width: 280px;
}

.smp-hk__group + .smp-hk__group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--hk-line);
}

.smp-hk__group > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.smp-hk__subhead {
  display: block;
  padding: 10px 14px 4px;
  color: var(--hk-teal);
  font: 700 12px/1.2 var(--hk-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.smp-hk__sublink--event {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.smp-hk__when {
  color: var(--hk-soft);
  font: 400 13px/1.2 var(--hk-data);
  font-variant-numeric: tabular-nums;
}

.smp-hk__spacer {
  flex: 1 1 auto;
}

/* Language switch: one component for header and footer (Q43). */
.smp-hk-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(247, 241, 231, 0.32);
  font-family: var(--hk-display);
}

.smp-hk--paper .smp-hk-switch {
  border-color: rgba(5, 37, 64, 0.18);
}

.smp-hk-switch__item {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  color: inherit;
  font: 600 13px/1 var(--hk-display);
  text-decoration: none;
  white-space: nowrap;
}

.smp-hk-switch__item.is-current {
  background: var(--hk-paper);
  color: var(--hk-navy);
}

.smp-hk--paper .smp-hk-switch__item.is-current {
  background: var(--hk-navy);
  color: var(--hk-paper);
}

.smp-hk-switch__code {
  display: none;
}

/* The one quiet button; the orange button stays in the hero. */
.smp-hk__btn {
  display: inline-flex;
  align-items: center;
  height: var(--hk-ctl);
  padding: 0 18px;
  border-radius: 13px;
  border: 1.5px solid rgba(247, 241, 231, 0.72);
  color: inherit;
  font: 600 15px/1 var(--hk-display);
  text-decoration: none;
  white-space: nowrap;
}

.smp-hk--paper .smp-hk__btn {
  border-color: var(--hk-navy);
}

.smp-hk__login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--hk-ctl);
  color: inherit;
  font: 600 15px/1 var(--hk-display);
  text-decoration: none;
  white-space: nowrap;
}

.smp-hk__login .smp-hk-icon {
  display: none;
}

.smp-hk__burger {
  display: none;
  width: var(--hk-ctl);
  height: var(--hk-ctl);
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.smp-hk__burger .smp-hk-icon--close,
.smp-hk.is-open .smp-hk__burger .smp-hk-icon--menu {
  display: none;
}

.smp-hk.is-open .smp-hk__burger .smp-hk-icon--close {
  display: block;
}

@media (hover: hover) and (min-width: 1024px) {
  .smp-hk__item.has-sub:hover > .smp-hk__sub,
  .smp-hk__item.has-sub:focus-within > .smp-hk__sub {
    display: block;
  }
}

/* The panel sits 8 px below its word: an invisible strip fills the gap, so
   the dropdown stays open on the way down (David 1 Dec, #1). */
@media (min-width: 1024px) {
  .smp-hk__sub::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 12px;
  }
}

/* Phones and small tablets: menu behind the button, language + Log in stay in the bar. */
@media (max-width: 1023px) {
  .smp-hk__bar {
    height: 64px;
    padding: 0 16px;
    gap: 12px;
  }

  /* 44 px to tap, icons where they were (David 1 Dec, #2). */
  .smp-hk__burger {
    display: flex;
    width: 44px;
    height: 44px;
    margin: 0 -3px;
  }

  .smp-hk__login {
    width: 44px;
    height: 44px;
    margin: 0 -3px;
  }

  .smp-hk__login-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .smp-hk__login .smp-hk-icon {
    display: block;
  }

  .smp-hk-switch--header .smp-hk-switch__item.is-current {
    display: none;
  }

  .smp-hk-switch--header.smp-hk-switch--codes .smp-hk-switch__name {
    display: none;
  }

  .smp-hk-switch--header.smp-hk-switch--codes .smp-hk-switch__code {
    display: inline;
  }

  .smp-hk-switch--header .smp-hk-switch__item {
    padding: 0 10px;
  }

  .smp-hk__btn {
    padding: 0 14px;
    font-size: 14px;
  }

  .smp-hk__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    margin: 0;
    min-height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px); /* iPhone: the browser bar never covers the last items (#4) */
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 16px 24px;
    background: var(--hk-navy);
    border-top: 1px solid var(--hk-line);
    color: var(--hk-paper);
  }

  .smp-hk.is-open .smp-hk__nav {
    display: block;
  }

  /* Menu open: the page behind stays put (smp-header.js #1). */
  html.smp-hk-lock,
  html.smp-hk-lock body {
    overflow: hidden;
  }

  .smp-hk__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .smp-hk__item {
    border-bottom: 1px solid var(--hk-line);
  }

  .smp-hk__item:last-child {
    border-bottom: 0;
  }

  .smp-hk__link {
    width: 100%;
    height: 52px;
    font-size: 17px;
    box-shadow: none;
  }

  /* The page you're on: light text + a short orange bar in the margin, the
     phone twin of the desktop line (David 1 Dec, #3; orange decorates). */
  .smp-hk__item.is-current > .smp-hk__link,
  .smp-hk__link[aria-current="page"] {
    box-shadow: none;
    color: var(--hk-paper);
  }

  .smp-hk__link[aria-current="page"],
  .smp-hk__sublink[aria-current="page"] {
    position: relative;
  }

  .smp-hk__link[aria-current="page"]::before,
  .smp-hk__sublink[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -8px; /* 8 px from the screen edge, for menu words and city names alike */
    top: 50%;
    width: 3px;
    height: 24px;
    margin-top: -12px;
    border-radius: 0 3px 3px 0;
    background: var(--hk-orange);
  }

  .smp-hk__sublink[aria-current="page"]::before {
    left: -22px;
  }

  .smp-hk__link .smp-hk-icon {
    display: none;
  }

  .smp-hk__sub {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 8px 14px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .smp-hk__sublink {
    min-height: 44px;
    padding: 0;
    font-size: 16px;
    color: rgba(247, 241, 231, 0.82);
  }

  .smp-hk__sublink:hover,
  .smp-hk__sublink[aria-current="page"] {
    background: none;
    color: var(--hk-paper);
  }

  .smp-hk__subhead {
    padding: 8px 0 2px;
  }

  .smp-hk__sublink--event {
    padding: 6px 0;
  }

  .smp-hk__group + .smp-hk__group {
    border-top: 0;
  }
}

/* Slim header on small phones (smp-header.js #4): language as codes and a
   smaller button when the row doesn't fit; still too wide → no language
   switch in the header (the footer keeps it). Never a sideways scroll. */
.smp-hk--slim .smp-hk__bar {
  overflow: hidden;
}

.smp-hk.is-tight .smp-hk__bar {
  gap: 8px;
}

.smp-hk.is-tight .smp-hk-switch--header .smp-hk-switch__name {
  display: none;
}

.smp-hk.is-tight .smp-hk-switch--header .smp-hk-switch__code {
  display: inline;
}

.smp-hk.is-tight .smp-hk-switch--header .smp-hk-switch__item {
  padding: 0 10px;
}

.smp-hk.is-tight .smp-hk__btn {
  padding: 0 12px;
  font-size: 13px;
}

.smp-hk.is-tighter .smp-hk-switch--header {
  display: none;
}

/* The header button can be a real <button> (Start-here "Help"). */
button.smp-hk__btn {
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* ----------------------------------------------------------
   Start-here (part 2): the slim navy header stays on top while the guide
   scrolls, like the guide's own bar did, and its Help opens the guide's
   popup. The guide's own logos and Help buttons step back; its language
   menu stays (six languages, its own picker). No footer here (Q44).
   ---------------------------------------------------------- */
/* style.css gives body overflow-x: hidden, which turns body into a scroll box
   that never scrolls, so nothing inside can stick (seen on staging 25 Nov).
   clip cuts the same sideways overflow without that, as the Carnival page does. */
body.smp-is-start-here-page.smp-has-header-kit {
  overflow-x: clip;
  overflow-y: visible;
}

.smp-is-start-here-page.smp-has-header-kit > header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.smp-has-header-kit .smp-start-here__pick-bar,
.smp-has-header-kit .smp-start-here__pick-logo,
.smp-has-header-kit .smp-start-here__logo-img,
.smp-has-header-kit .smp-start-here__topbar .smp-start-here__help-link {
  display: none !important;
}

/* The guide's bar keeps only its language menu: a quiet row, not a second sticky bar. */
.smp-has-header-kit .smp-start-here__topbar {
  position: static;
  height: auto;
  justify-content: flex-end;
  padding-top: 12px;
  padding-bottom: 4px;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 0;
}

.smp-has-header-kit .smp-start-here__pick {
  min-height: calc(100dvh - 64px);
  padding-top: 2rem;
}

@media (min-width: 1024px) {
  .smp-has-header-kit .smp-start-here__pick {
    min-height: calc(100dvh - 72px);
  }
}

/* Without the guide's script the popup can't open: no dead Help button. */
body:has(.smp-start-here:not([data-enhanced="true"])) .smp-hk [data-smp-help-open] {
  display: none;
}

/* ----------------------------------------------------------
   Carnival edition (part 2): the page hides the theme header and draws its
   own logo + "Deutsch" pill (CARNIVAL.txt). With the kit the slim
   see-through header comes back, the page's own top steps aside and the
   bunting hangs below the header. At the release the generator
   (00_HQ/11_CARNIVAL/build/page-source/build_carnival.py) drops its own top.
   ---------------------------------------------------------- */
body.smp-has-header-kit:has(#smp-carnival) > header {
  display: block !important;
}

.smp-has-header-kit #smp-carnival .cv-top {
  display: none !important;
}

.smp-has-header-kit #smp-carnival .cv-hero > .cv-bunting {
  top: 64px;
}

@media (min-width: 1024px) {
  .smp-has-header-kit #smp-carnival .cv-hero > .cv-bunting {
    top: 72px;
  }
}

/* ----------------------------------------------------------
   Footer 2.0 (David, 1 Dec 2026)
   Desktop: five columns · brand · find your city · the experience ·
   get involved · newsletter; then awareness, then languages + legal.
   Tablet: brand + newsletter, then the three groups.
   Phone: brand · city tiles · newsletter · the other two groups side by
   side · Speak up · Instagram + Meetup, languages, legal.
   Polish (David 1 Dec, #7–#14): Speak up sits left of the newsletter on
   desktop, the line above the legal row has the same space on both sides.
   Brand tokens only (navy, Paper, teal labels, orange marks).
   ---------------------------------------------------------- */
.smp-fk {
  background: var(--hk-navy);
  color: var(--hk-paper);
  font-family: var(--hk-body);
}

.smp-fk p {
  margin: 0;
}

.smp-fk__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.95fr) minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(300px, 1.6fr);
  grid-template-areas:
    "brand city exp involved signup"
    "speak speak speak speak signup"
    "bottom bottom bottom bottom bottom";
  gap: 40px 32px;
  align-items: start;
}

.smp-fk__brand { grid-area: brand; }
.smp-fk__group--city { grid-area: city; }
.smp-fk__group--exp { grid-area: exp; }
.smp-fk__group--involved { grid-area: involved; }
.smp-fk__hif { grid-area: signup; align-self: stretch; } /* desktop: its bottom lines up with Speak up's */
.smp-fk__speak { grid-area: speak; align-self: end; }
.smp-fk__bottom { grid-area: bottom; }

/* Brand: logo + promise, nothing else. */
.smp-fk__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.smp-fk__logo {
  display: inline-flex;
}

.smp-fk__promise {
  font: 800 22px/1.15 var(--hk-display);
  letter-spacing: -0.01em;
}

.smp-fk__promise > span {
  display: block;
  white-space: nowrap;
}

.smp-fk__hl {
  background: linear-gradient(transparent 64%, rgba(255, 89, 0, 0.45) 64%);
}

.smp-fk__line {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(247, 241, 231, 0.86);
}

/* Labels: caps, small. Montserrat 800 (the 700 file isn't loaded; never synthesised). */
.smp-fk__label {
  font: 800 12px/1.2 var(--hk-display);
  letter-spacing: 0.08em;
  color: var(--hk-teal);
}

/* Link groups: always open (David 1 Dec). */
.smp-fk__group .smp-fk__label {
  margin: 0 0 8px;
}

.smp-fk__group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.smp-fk__group li {
  margin: 0;
}

.smp-fk__group a {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: var(--hk-paper);
  font: 600 15px/1.3 var(--hk-display);
  text-decoration: none;
}

.smp-fk__group a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* City links: a plain list from tablets up, tiles on phones. */
.smp-fk__city .smp-hk-icon {
  display: none;
}

/* Newsletter: the sign-up itself, on a lighter navy card. */
.smp-fk__hif {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(247, 241, 231, 0.06);
  border: 1px solid var(--hk-line);
}

.smp-fk__hif-title {
  font: 800 18px/1.2 var(--hk-display);
  letter-spacing: -0.01em;
}

.smp-fk__hif-text {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(247, 241, 231, 0.86);
}

.smp-fk__hif-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.smp-fk__input {
  width: 100%;
  height: var(--hk-ctl);
  padding: 0 12px;
  border-radius: 13px;
  border: 1px solid rgba(247, 241, 231, 0.32);
  background: rgba(5, 37, 64, 0.6);
  color: var(--hk-paper);
  font: 400 15px/1 var(--hk-body);
  appearance: none;
  -webkit-appearance: none;
}

select.smp-fk__input {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f7f1e7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

select.smp-fk__input:invalid {
  color: rgba(247, 241, 231, 0.6);
}

.smp-fk__input option {
  color: #052540;
}

.smp-fk__input::placeholder {
  color: rgba(247, 241, 231, 0.6);
}

.smp-fk__input:focus-visible {
  outline: 2px solid var(--hk-teal);
  outline-offset: 1px;
}

.smp-fk__input.is-invalid,
.smp-fk__cities-btn.is-invalid {
  border-color: #d72638; /* Signal Red marks the field; the words stay Paper (contrast on navy) */
  border-width: 2px;
}

.smp-fk__other {
  grid-column: 1 / -1;
}

.smp-fk__other[hidden] {
  display: none;
}

.smp-fk__consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 12px;
  line-height: 1.45;
  color: var(--hk-soft);
  cursor: pointer;
}

.smp-fk__consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--hk-teal);
  cursor: pointer;
}

.smp-fk__consent a {
  color: var(--hk-paper);
  text-decoration: underline; /* the theme drops it; a link in a sentence needs more than colour (WCAG 1.4.1) */
  text-underline-offset: 2px;
}

.smp-fk__consent.is-invalid input {
  outline: 2px solid #d72638;
  outline-offset: 2px;
}

.smp-fk__hif-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: #c04200; /* text-orange: orange that carries text (white on it 5.22:1) */
  color: #ffffff;
  font: 800 15px/1 var(--hk-display);
  cursor: pointer;
}

.smp-fk__hif-btn:hover {
  background: #a83a00;
}

.smp-fk__hif-btn:focus-visible {
  outline: 2px solid var(--hk-teal);
  outline-offset: 3px;
}

.smp-fk__hif-btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.smp-fk__hif-msg:empty {
  display: none;
}

.smp-fk__hif-msg {
  font-size: 14px;
  line-height: 1.45;
}

.smp-fk__hif-msg.is-error {
  padding-left: 10px;
  border-left: 3px solid #d72638;
}

/* Cities: one field that opens a list with ticks, one or more (David 1 Dec,
   #7). The list opens inside the card and pushes the rest down, so nothing
   is cut off on a phone; one field per row, so a long name never gets cut. */
.smp-fk__cities-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  color: rgba(247, 241, 231, 0.6);
  cursor: pointer;
}

.smp-fk__cities-btn.has-value {
  color: var(--hk-paper);
}

.smp-fk__cities-btn[hidden] {
  display: none;
}

.smp-fk__cities-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smp-fk__cities-btn .smp-hk-icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--hk-paper);
  transition: transform 220ms var(--hk-ease);
}

.smp-fk__cities-btn[aria-expanded="true"] .smp-hk-icon {
  transform: scaleY(-1);
}

.smp-fk__cities-list {
  min-width: 0;
  margin: 6px 0 0;
  padding: 4px 6px 6px;
  border: 1px solid rgba(247, 241, 231, 0.32);
  border-radius: 13px;
  background: rgba(5, 37, 64, 0.6);
}

.smp-fk__cities-list[hidden] {
  display: none;
}

.smp-fk__cities-hint {
  float: left;
  width: 100%;
  padding: 6px 8px 2px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--hk-soft);
}

.smp-fk__cities-opt {
  clear: both;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 9px;
  font: 400 15px/1.2 var(--hk-body);
  color: var(--hk-paper);
  cursor: pointer;
}

.smp-fk__cities-opt:hover {
  background: rgba(247, 241, 231, 0.06);
}

.smp-fk__cities-opt input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--hk-teal);
  cursor: pointer;
}

/* Done: the form keeps its title, the fields step aside. */
.smp-fk__hif.is-done .smp-fk__hif-fields,
.smp-fk__hif.is-done .smp-fk__consent,
.smp-fk__hif.is-done .smp-fk__hif-btn,
.smp-fk__hif.is-done .smp-fk__hif-text {
  display: none;
}

.smp-fk__hif.is-done .smp-fk__hif-msg {
  font: 600 16px/1.4 var(--hk-display);
}

.smp-fk__sr,
.smp-fk__hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Speak up: one line on wide screens, a slim box on phones. */
.smp-fk__speak {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(0, 176, 188, 0.10);
  border: 1px solid rgba(0, 176, 188, 0.32);
  color: var(--hk-paper);
  text-decoration: none;
}

.smp-fk__speak .smp-hk-icon {
  color: var(--hk-teal);
}

.smp-fk__speak-text {
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.5;
}

.smp-fk__speak-text strong {
  font-family: var(--hk-display);
  font-weight: 600;
}

.smp-fk__speak-link {
  display: inline-flex;
  align-items: center;
  height: var(--hk-ctl);
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid rgba(247, 241, 231, 0.4);
  font: 600 15px/1 var(--hk-display);
  white-space: nowrap;
}

/* Bottom: languages, legal (+ Instagram and Meetup on phones). The line is
   its top edge, with the same space above and below (#14). */
.smp-fk__bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: -8px;
  padding-top: 24px;
  border-top: 1px solid var(--hk-line);
}

.smp-fk__social.smp-fk__social--bottom {
  display: none;
}

.smp-fk__social {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 0 -10px;
}

/* Icons with a label for screen readers; no outlined pills (David 1 Dec). */
.smp-fk__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 13px;
  color: var(--hk-paper);
  text-decoration: none;
}

.smp-fk__social-link:hover {
  background: rgba(247, 241, 231, 0.08);
}

.smp-fk__social-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.smp-fk__social-word {
  font: 600 13px/1 var(--hk-display);
}

/* Small print: the quietest line, no underline until hover (#13). */
.smp-fk__legal {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
  font: 400 13px/1.4 var(--hk-data);
  color: rgba(247, 241, 231, 0.62);
}

.smp-fk__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: inherit;
  text-decoration: none;
}

.smp-fk__legal a:hover,
.smp-fk__legal a:focus-visible {
  color: var(--hk-paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tablet: brand + newsletter, then the three groups. */
@media (max-width: 1023px) {
  .smp-fk__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "brand brand signup"
      "city exp involved"
      "speak speak speak"
      "bottom bottom bottom";
    gap: 32px 24px;
  }
}

/* Phone: brand · city tiles · newsletter · the other two groups side by
   side · awareness · languages + legal (David 1 Dec: coming to a night
   first, the newsletter second, nothing folded). */
@media (max-width: 767px) {
  .smp-fk__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand brand"
      "city city"
      "signup signup"
      "exp involved"
      "speak speak"
      "bottom bottom";
    padding: 32px 16px 20px;
    gap: 28px 16px;
  }

  /* Instagram + Meetup move to the bottom row, so the cities come up (#11). */
  .smp-fk__social.smp-fk__social--top {
    display: none;
  }

  .smp-fk__social.smp-fk__social--bottom {
    display: flex;
    flex: 1 0 100%;
    margin: 0 0 0 -10px;
  }

  .smp-fk__bottom {
    margin-top: -4px;
    padding-top: 14px;
  }

  .smp-fk__brand {
    gap: 12px;
  }

  .smp-fk__promise {
    font-size: 20px;
  }

  .smp-fk__group--city ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .smp-fk__group--city .smp-fk__city {
    justify-content: space-between;
    gap: 8px;
    min-height: 56px;
    padding: 0 14px 0 16px;
    border-radius: 13px;
    border: 1px solid rgba(247, 241, 231, 0.28);
    font-size: 17px;
  }

  .smp-fk__group--city .smp-fk__city:hover {
    text-decoration: none;
    background: rgba(247, 241, 231, 0.06);
  }

  .smp-fk__city .smp-hk-icon {
    display: block;
    width: 18px;
    height: 18px;
    color: var(--hk-teal);
  }

  .smp-fk__group--city li:not(.smp-fk__city-item) {
    grid-column: 1 / -1;
  }

  .smp-fk__group--city li:not(.smp-fk__city-item) a {
    min-height: 44px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .smp-fk__hif {
    padding: 18px;
  }

  .smp-fk__input {
    height: 44px;
    font-size: 16px; /* no zoom-in on iPhone */
  }

  .smp-fk__hif-btn {
    height: 48px;
    font-size: 16px;
  }

  .smp-fk__group a {
    min-height: 44px;
  }

  .smp-fk__speak {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 6px 12px;
    padding: 14px 16px;
  }

  .smp-fk__speak .smp-hk-icon {
    grid-row: 1 / span 2;
    width: 20px;
    height: 20px;
    margin-top: 2px;
  }

  .smp-fk__speak-text {
    font-size: 14px;
    line-height: 1.45;
  }

  /* Same outlined button as on desktop, full width (#12). */
  .smp-fk__speak-link {
    grid-column: 1 / -1;
    justify-content: center;
    height: 44px;
    margin-top: 6px;
  }

  .smp-fk__legal {
    margin-left: 0;
    gap: 0 16px;
  }

  .smp-fk__legal a {
    min-height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smp-hk__link .smp-hk-icon {
    transition: none;
  }
}
