/*
 * Fælles shell for de tre håndskrevne engelske sider (UX-07, 28. sept. 2026):
 *   /buy-in-denmark/  /how-banks-assess-you/  /about-alexandra/
 * Én header (logo, de tre EN-sider, Dansk, Book a call) og én footer. Markup er ens
 * på alle tre sider; kun aria-current og «Dansk»-målet skifter. Logoet er det samme
 * «Svinget»-tegn som SiteHeader i bk-source (chrome.css .bk-snav__diamond).
 * Tokens: design-foundation §1–§3 (ink #2B2B2B, lilla #8B3DF0, 4 px/pille-radier).
 */

.en-top,
.en-foot {
  --en-ink: #2b2b2b;
  --en-grey: #6e6e6e;
  --en-purple: #8b3df0;
  --en-line: rgba(0, 0, 0, 0.14);
  --en-wrap: min(1240px, calc(100% - 2 * clamp(16px, 4vw, 56px)));
  --en-sans: "Inter Tight", Helvetica, Arial, sans-serif;
  font-family: var(--en-sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------- logo ---------- */
.en-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  flex: none;
  color: var(--en-ink);
  text-decoration: none;
}
.en-brand__mark {
  width: 20px;
  height: 22.4px;
  display: block;
  flex: none;
  background:
    radial-gradient(circle 2.2px at 16.2px 3.4px, var(--en-purple) 96%, transparent 100%),
    currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -8 100 112'%3E%3Cg fill='none' stroke='%23000' stroke-width='19' stroke-linejoin='round'%3E%3Cpath d='M24 0V94H48C68 94 82 85 82 72C82 60 70 52 52 52H30'/%3E%3Cpath d='M46 52C60 48 68 38 72 26'/%3E%3C/g%3E%3Ccircle cx='79' cy='9' r='10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -8 100 112'%3E%3Cg fill='none' stroke='%23000' stroke-width='19' stroke-linejoin='round'%3E%3Cpath d='M24 0V94H48C68 94 82 85 82 72C82 60 70 52 52 52H30'/%3E%3Cpath d='M46 52C60 48 68 38 72 26'/%3E%3C/g%3E%3Ccircle cx='79' cy='9' r='10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.en-brand__word {
  font: 700 17px/1.1 var(--en-sans);
  letter-spacing: -0.02em;
}

/* ---------- header ---------- */
.en-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--en-line);
  color: var(--en-ink);
}
.en-top__in {
  width: var(--en-wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-block: 0.6rem;
}
.en-top__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}
.en-top a {
  color: var(--en-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
}
.en-top__nav a,
.en-top__lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
.en-top__nav a:hover,
.en-top__nav a[aria-current="page"],
.en-top__lang:hover {
  color: var(--en-purple);
}
.en-top__nav a[aria-current="page"] {
  font-weight: 700;
}
.en-top a.en-brand {
  font-weight: 700;
}
.en-top__lang {
  padding-left: 1.1rem;
  border-left: 1px solid var(--en-line);
}
.en-top .en-top__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 500px;
  background: var(--en-ink);
  color: #fff;
  font: 700 15px/1 var(--en-sans);
  white-space: nowrap;
  cursor: pointer;
  flex: none;
}
.en-top .en-top__cta:hover {
  background: #000;
  color: #fff;
}
.en-top a:focus-visible,
.en-top button:focus-visible,
.en-foot a:focus-visible {
  outline: 3px solid var(--en-purple);
  outline-offset: 2px;
  border-radius: 4px;
}
.en-top .en-top__cta:focus-visible {
  border-radius: 500px;
}

/* Mobil og tablet: logo, Dansk og CTA øverst; de tre sider på én vandret, svipbar linje
 * under (design-foundation §3). Ikke sticky her, så headeren ikke dækker ankre. */
@media (max-width: 820px) {
  .en-top {
    position: relative;
  }
  .en-top__in {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand lang cta"
      "nav nav nav";
    gap: 0 0.9rem;
    padding-block: 0.4rem 0;
  }
  .en-brand { grid-area: brand; }
  .en-top__lang {
    grid-area: lang;
    justify-self: end;
    padding-left: 0;
    border-left: 0;
  }
  .en-top .en-top__cta { grid-area: cta; }
  .en-top__nav {
    grid-area: nav;
    margin: 0 calc(-1 * clamp(16px, 4vw, 56px));
    padding: 0 clamp(16px, 4vw, 56px);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
    border-top: 1px solid var(--en-line);
  }
  .en-top__nav::-webkit-scrollbar {
    display: none;
  }
  .en-top__nav {
    gap: 0.8rem;
  }
  .en-top__nav a {
    font-size: 14px;
  }
}

/* ---------- footer ---------- */
.en-foot {
  background: var(--en-ink);
  color: rgba(255, 255, 255, 0.72);
}
.en-foot__top {
  width: var(--en-wrap);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 4vw, 48px);
  justify-content: space-between;
  align-items: flex-start;
}
.en-foot__brand {
  flex: 1 1 320px;
  max-width: 420px;
}
.en-foot .en-brand {
  color: #fff;
  margin-bottom: 8px;
}
.en-foot__desc {
  font: 400 14px/1.55 var(--en-sans);
  max-width: 46ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}
.en-foot__cols {
  display: flex;
  gap: clamp(36px, 6vw, 72px);
  flex-wrap: wrap;
}
.en-foot__col {
  display: flex;
  flex-direction: column;
}
.en-foot__label {
  font: 700 13px/1.3 var(--en-sans);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}
.en-foot__link {
  display: inline-block;
  padding-block: 13px;
  font: 400 14px/18px var(--en-sans);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}
.en-foot__link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.en-foot__bottom {
  width: var(--en-wrap);
  margin: 0 auto;
  padding: 18px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  font: 400 13px/1.5 var(--en-sans);
  color: rgba(255, 255, 255, 0.62);
}
.en-foot__bottom a {
  color: inherit;
  display: inline-block;
  padding-block: 13px;
  line-height: 18px;
}
.en-foot__mail {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.en-foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}
.en-foot__legal a {
  text-decoration: none;
}
.en-foot__bottom a:hover {
  color: #fff;
}
.en-foot a:focus-visible,
.en-foot .en-brand:focus-visible {
  outline-color: #fff;
}

/* ---------- cookiebanner: «Customize» ---------- */
/* Siderne har egne inline-regler for banneret, men ingen for tekstknappen, så den
 * stod som en ustylet browserknap (UX-07). Samme udtryk som css/site-shell.css. */
.cookie-consent-banner .btn-cookie-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.35rem;
  background: none;
  border: none;
  border-radius: 2px;
  color: var(--bk-cookie-grey, #6e6e6e);
  font-family: "Inter Tight", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  touch-action: manipulation;
}
.cookie-consent-banner .btn-cookie-link:hover {
  color: var(--bk-cookie-ink, #2b2b2b);
}
.cookie-consent-banner .btn-cookie-link:focus-visible {
  outline: 3px solid #8b3df0;
  outline-offset: 2px;
}

/* «Reject all» og «Accept all» vejer ens (G-23, 29. sept. 2026): begge ink-piller i
 * første lag, begge kontur ved siden af «Save choices» i Tilpas. Samme udtryk som
 * css/site-shell.css. `html body` slår sidernes egne inline-regler for banneret. */
html body .cookie-consent-banner .btn-cookie-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  background: #2b2b2b;
  color: #fff;
  border: 1px solid #2b2b2b;
  border-radius: 500px;
  font-family: "Inter Tight", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
html body .cookie-consent-banner .btn-cookie-choice:hover {
  background: #000;
  border-color: #000;
}
html body .cookie-consent-banner .cookie-consent-actions--prefs .btn-cookie-decline-all,
html body .cookie-consent-banner .btn-cookie-accept-all-prefs {
  background: transparent;
  color: #2b2b2b;
  border-color: rgba(0, 0, 0, 0.3);
}
html body .cookie-consent-banner .cookie-consent-actions--prefs .btn-cookie-decline-all:hover,
html body .cookie-consent-banner .btn-cookie-accept-all-prefs:hover {
  background: #f1f3f6;
  border-color: #2b2b2b;
}
html body .cookie-consent-banner .btn-cookie-choice:focus-visible {
  outline: 3px solid #8b3df0;
  outline-offset: 2px;
  box-shadow: none;
}

/* Mobil: ingen tekst under 14 px på de engelske sider (D2, 28. sept. 2026).
   `body`-præfikset løfter specificiteten over sidernes egne inline-<style>-regler. */
@media (max-width: 560px) {
  body .eyebrow,
  body .crumb a,
  body .crumb span,
  body .tags li,
  body .job__when span,
  body .stats__l,
  body .job__org,
  body .how__num,
  body .voices__who,
  body .q-counter,
  body .backbtn,
  body .alt__label,
  body .alt__optional,
  body .photo-hero__note,
  html body .result-voice cite,
  html body .about__copy .about__sign,
  body .book__note,
  body .note,
  body a.back,
  body .gmeta span,
  body .rel span,
  body .byline span,
  body .byline a,
  html body .how__cta .note,
  html body .guide .byline a,
  html body .guide .byline span,
  html body .guide .rel span,
  html body .guide__crumbs a,
  html body .guide__crumbs span {
    font-size: 14px;
  }
}


/* Samme kompakte cookiebanner på mobil som de danske sider (kopi af css/site-shell.css, UX-13).
   `html body` slår sidernes egne inline-regler for banneret. */
@media (max-width: 768px) {
  /* Kompakt på mobil (UX-13): mål ≤ ca. 1/4 af en 844 px-skærm. Tekst i 14 px,
     Acceptér/Afvis/Tilpas på én række, Tilpas-laget kan scrolle internt. */
  html body .cookie-consent-banner {
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html body .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  html body .cookie-consent-text {
    min-width: 0;
  }

  html body .cookie-consent-title,
  html body .cookie-consent-prefs-title,
  html body .cookie-consent-title strong,
  html body .cookie-consent-prefs-title strong {
    font-size: 15px;
    margin: 0 0 0.15rem;
  }

  html body .cookie-consent-message,
  html body .cookie-consent-prefs-intro {
    font-size: 14px;
    line-height: 1.4;
    max-width: none;
  }

  html body .cookie-consent-actions--first {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
    justify-content: stretch;
    margin-left: 0;
  }

  html body .cookie-consent-actions--first .btn-cookie-choice {
    width: 100%;
    padding: 0 0.6rem;
    font-size: 14px;
    text-align: center;
  }

  html body .cookie-consent-actions--first .btn-cookie-link {
    font-size: 14px;
    padding: 0 0.25rem;
  }

  html body .cookie-consent-categories {
    gap: 0.5rem;
  }

  html body .cookie-consent-category {
    padding: 0.65rem 0.8rem;
  }

  html body .cookie-consent-actions--prefs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  html body .cookie-consent-actions--prefs .btn-cookie-save-prefs {
    grid-column: 1 / -1;
  }

  html body .cookie-consent-actions--prefs .btn-cookie-choice {
    width: 100%;
    padding: 0 0.6rem;
    font-size: 14px;
    text-align: center;
  }
}
