/* erikainsurance.com - site stylesheet. No framework, no preprocessor.
   Layout classes (.section, .row, .col, .surface ...) mirror the structure the
   old site used (EF's web-ui design system), with the same sizes and breakpoints
   (768, 1024 and 1264 px), so the content HTML under content/pages/ renders the
   same way it did there. */

/* ---------- fonts (Figtree, SIL Open Font License, self-hosted) ---------- */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */

:root {
  /* Erika's brand palette. Content colours (surfaces, headings) refer to these. */
  --erika-pink: #9a004f;
  --erika-purple: #8a5797;
  --erika-dark-purple: #50528f;
  --erika-blue: #627fa6;
  --erika-dark-blue: #141d4e;
  --erika-white: #ededed;
  --erika-gray: #9e9e9e;

  --color-text: #191919;
  --color-link: rgba(25, 25, 25, 0.8);
  --color-primary: var(--erika-pink);
  --color-navy: var(--erika-dark-blue);
  --color-form: var(--erika-dark-blue);
  --color-banner: #0b133a;
  --color-light: #f8f8fc;
  --color-border: rgba(25, 25, 25, 0.2);
  --color-divider: #d8d8d8;
  --font-sans: 'Figtree', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Noto Sans JP', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --shadow: 0 2px 8px 0 rgba(25, 25, 25, 0.16);
  --shadow-hover: 0 2px 32px 0 rgba(25, 25, 25, 0.16);
  --gradient-dark: linear-gradient(0deg, #191919 0, rgba(25, 25, 25, 0.738) 19%, rgba(25, 25, 25, 0.541) 34%, rgba(25, 25, 25, 0.382) 47%, rgba(25, 25, 25, 0.278) 56.5%, rgba(25, 25, 25, 0.194) 65%, rgba(25, 25, 25, 0.126) 73%, rgba(25, 25, 25, 0.075) 80.2%, rgba(25, 25, 25, 0.042) 86.1%, rgba(25, 25, 25, 0.021) 91%, rgba(25, 25, 25, 0.008) 95.2%, rgba(25, 25, 25, 0.002) 98.2%, transparent);
  --header-height: 51px;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-text);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* The footer follows the content directly, as on the old site; a short page leaves
   the space below the footer empty instead of stretching the content. */
.site-main { flex: 0 0 auto; }

img { max-width: 100%; height: auto; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 24px;
  font-weight: 700;
  color: var(--color-text);
  max-width: 65ch;
}
.h1 { font-size: 56px; line-height: 1.143; }
.h2 { font-size: 40px; line-height: 1.2; }
.h3 { font-size: 32px; line-height: 1.25; }
.h4 { font-size: 24px; line-height: 1.333; }
.h5 { font-size: 20px; line-height: 1.2; }
.h6 { font-size: 16px; line-height: 1.5; }

@media (min-width: 768px) {
  .h1 { font-size: 80px; line-height: 1.1; }
  .h2 { font-size: 64px; line-height: 1.125; }
  .h3 { font-size: 48px; line-height: 1.167; }
  .h4 { font-size: 32px; line-height: 1.25; }
  .h5 { font-size: 24px; line-height: 1.333; }
}

.inv, .inv a, .inv h1, .inv h2, .inv h3, .inv h4, .inv h5, .inv h6 { color: #fff; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
h1.text-center, h2.text-center, h3.text-center, h4.text-center, h5.text-center, h6.text-center { margin-left: auto; margin-right: auto; }

/* Body copy: paragraphs and lists keep a 24px bottom margin (the last paragraph in
   a block drops it, a list does not), and paragraphs wrap at roughly 65 characters. */
.text-block p, .text-block ul { margin: 0 0 24px; max-width: 40rem; }
.text-block p:last-child { margin-bottom: 0; }
.text-block ul { padding-left: 24px; }
.text-block li:not(:last-child) { margin-bottom: 8px; }
.text-block ul ul { margin: 8px 0 0; }
.text-block a { color: inherit; text-decoration: underline; transition: color 0.2s ease; }
.text-block a:hover, .text-block a:focus-visible { color: var(--color-primary); }
.inv .text-block a:hover, .text-block.inv a:hover, .inv .text-block a:focus-visible, .text-block.inv a:focus-visible { color: #fff; }
.text-block.no-max-width p, .text-block.no-max-width ul { max-width: none; }
.text-subtitle-small p { font-size: 16px; line-height: 1.6; }
.text-subtitle p { font-size: 24px; line-height: 1.333; }
.text-ui-label p { font-size: 14px; line-height: 1.714; }
.text-caption p { font-size: 12px; line-height: 1.333; }
a.text-block-link { display: block; text-decoration: none; }

@media (min-width: 768px) {
  .text-subtitle-small p { font-size: 20px; }
}

/* ---------- layout ---------- */

.container { margin: 0 24px; }
@media (min-width: 768px) { .container { margin: 0 32px; } }
@media (min-width: 1024px) { .container { margin: 0 auto; max-width: 960px; } }
@media (min-width: 1264px) { .container { max-width: 1200px; } }

.section { position: relative; width: 100%; background: var(--section-bg, transparent); }
.section.inv { color: #fff; }
.section-full > .container { margin: 0; max-width: none; }

/* Section padding: collapse 0, gutter 16/24, small 32-96, medium 48-128, large 64-160. */
.pt-collapse { padding-top: 0; }
.pb-collapse { padding-bottom: 0; }
.pt-gutter { padding-top: 16px; }
.pb-gutter { padding-bottom: 16px; }
.pt-small { padding-top: 32px; }
.pb-small { padding-bottom: 32px; }
.pt-medium { padding-top: 48px; }
.pb-medium { padding-bottom: 48px; }
.pt-large { padding-top: 64px; }
.pb-large { padding-bottom: 64px; }
@media (min-width: 768px) {
  .pt-small { padding-top: 48px; }
  .pb-small { padding-bottom: 48px; }
  .pt-medium { padding-top: 64px; }
  .pb-medium { padding-bottom: 64px; }
  .pt-large { padding-top: 96px; }
  .pb-large { padding-bottom: 96px; }
}
@media (min-width: 1024px) {
  .pt-gutter { padding-top: 24px; }
  .pb-gutter { padding-bottom: 24px; }
  .pt-small { padding-top: 64px; }
  .pb-small { padding-bottom: 64px; }
  .pt-medium { padding-top: 96px; }
  .pb-medium { padding-bottom: 96px; }
  .pt-large { padding-top: 128px; }
  .pb-large { padding-bottom: 128px; }
}
@media (min-width: 1264px) {
  .pt-small { padding-top: 96px; }
  .pb-small { padding-bottom: 96px; }
  .pt-medium { padding-top: 128px; }
  .pb-medium { padding-bottom: 128px; }
  .pt-large { padding-top: 160px; }
  .pb-large { padding-bottom: 160px; }
}

/* Grid. A column is a plain block; the ax-/ay- utility classes (utilities.css) turn it
   into a flex row that aligns its content, like the old site's columns did. */
.row { display: flex; flex-wrap: wrap; margin-left: -8px; margin-right: -8px; }
.col {
  position: relative;
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
}
@media (min-width: 1024px) {
  .row { margin-left: -12px; margin-right: -12px; }
  .col { padding-left: 12px; padding-right: 12px; }
}
.col-s-4 { flex-basis: 33.3333%; max-width: 33.3333%; }
.col-s-6 { flex-basis: 50%; max-width: 50%; }
.col-s-8 { flex-basis: 66.6667%; max-width: 66.6667%; }
.row-x-start { justify-content: flex-start; }
.row-x-center { justify-content: center; }
.row-x-end { justify-content: flex-end; }
.row-y-start { align-items: flex-start; }
.row-y-center { align-items: center; }
.row-y-end { align-items: flex-end; }
@media (max-width: 767px) { .row-flip-s { flex-direction: column-reverse; } }
@media (min-width: 768px) {
  .col-m-auto { flex: 1 0 0%; max-width: 100%; }
  .col-m-1 { flex-basis: 8.3333%; max-width: 8.3333%; }
  .col-m-2 { flex-basis: 16.6667%; max-width: 16.6667%; }
  .col-m-3 { flex-basis: 25%; max-width: 25%; }
  .col-m-4 { flex-basis: 33.3333%; max-width: 33.3333%; }
  .col-m-5 { flex-basis: 41.6667%; max-width: 41.6667%; }
  .col-m-6 { flex-basis: 50%; max-width: 50%; }
  .col-m-7 { flex-basis: 58.3333%; max-width: 58.3333%; }
  .col-m-8 { flex-basis: 66.6667%; max-width: 66.6667%; }
  .col-m-9 { flex-basis: 75%; max-width: 75%; }
  .col-m-10 { flex-basis: 83.3333%; max-width: 83.3333%; }
  .col-m-11 { flex-basis: 91.6667%; max-width: 91.6667%; }
  .col-m-12 { flex-basis: 100%; max-width: 100%; }
  .col-m-offset-1 { margin-left: 8.3333%; }
  .col-m-offset-2 { margin-left: 16.6667%; }
  .col-m-offset-3 { margin-left: 25%; }
  .col-m-offset-4 { margin-left: 33.3333%; }
  .col-m-offset-6 { margin-left: 50%; }
}

/* A stack fills its parent's height and distributes its children vertically. */
.stack { display: flex; flex-direction: column; height: 100%; }
.content-group { display: block; }

/* ---------- components ---------- */

.surface {
  display: block;
  background: var(--surface-bg, #fff);
  padding: 24px;
  overflow: hidden;
}
.surface > :last-child { margin-bottom: 0; }
.surface img { display: block; }
.surface-rounded { border-radius: 4px; }
.surface-shadow { box-shadow: var(--shadow); }
.surface-outline { border: 1px solid var(--color-border); }
a.surface-link { text-decoration: none; color: inherit; }
.p-0 { padding: 0; }
.p-xs { padding: 8px; }
.p-s { padding: 16px; }
.p-m { padding: 24px; }
.p-l { padding: 32px; }
.p-xl { padding: 40px; }

/* An image sits in a block wrapper (as on the old site). In a column that aligns or
   stretches its content it is the wrapper that is aligned, never the image. */
.image-wrapper { display: block; position: relative; overflow: hidden; line-height: 0; }
.image { display: block; max-width: 100%; height: auto; }
.hide-below-l { display: none; }
@media (min-width: 1024px) { .hide-below-l { display: block; } }

/* The line under page titles (brand-coloured) and between blocks (grey). The old site
   drew it as a 1200x2 image sitting 4px below the heading: 2px tall on wide screens and
   a hairline on phones, where the image was scaled down. Padding keeps the 4px offset
   without a margin that would collapse into the heading's. */
.divider { border: 0; height: 5px; padding: 4px 0 0; width: 100%; margin: 0; background-color: var(--color-divider); background-clip: content-box; }
.divider-brand { background-color: var(--erika-pink); }
@media (min-width: 768px) { .divider { height: 6px; } }

/* The small brand-coloured bar to the left of a section heading (5 x 30 px). */
.heading-bar { display: block; flex: 0 0 auto; width: 5px; height: 30px; background: var(--color-primary); }

/* Hero (full-bleed image with centred title) */
.hero {
  position: relative;
  min-height: var(--hero-height, 60vh);
  display: flex;
  align-items: center;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--hero-image-mobile, var(--hero-image)) var(--hero-position, center) / cover no-repeat;
}
@media (min-width: 768px) { .hero__bg { background-image: var(--hero-image); } }
.hero-gradient .hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background: var(--gradient-dark);
}
.hero__content { position: relative; width: 100%; }
.hero-center .hero__content { text-align: center; }
.hero-center .hero__content h1, .hero-center .hero__content h2, .hero-center .hero__content h3,
.hero-center .hero__content h4 { margin-left: auto; margin-right: auto; }
.hero .section { background: transparent; }

/* Teaser card (image with title at the bottom) */
.card-teaser {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 16px 0 rgba(25, 25, 25, 0.1);
  color: #fff;
  text-decoration: none;
  transition: box-shadow 0.3s;
  background: var(--color-navy);
}
@media (min-width: 768px) { .card-teaser { aspect-ratio: 3 / 2; } }
.card-teaser:hover, .card-teaser:focus-visible { box-shadow: var(--shadow-hover); }
.card-teaser__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-teaser::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 50%;
  background: var(--gradient-dark);
  opacity: 0.7;
}
.card-teaser__content { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; }
@media (min-width: 768px) { .card-teaser__content { left: 32px; right: 32px; bottom: 32px; } }
.card-teaser__title { color: #fff; margin: 0; }
.card-teaser__text { margin: 4px 0 0; font-size: 14px; }

/* Accordion */
.accordion { width: 100%; margin-bottom: 40px; }
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin: 0 6px 4px 0;
  border-right: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.accordion__item[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.accordion__title { margin: 0; max-width: none; }
.accordion__content { padding: 0 0 16px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(25, 25, 25, 0.2);
  transition: box-shadow 0.15s ease;
}
.button:hover, .button:focus-visible { box-shadow: 0 3px 8px 0 rgba(25, 25, 25, 0.24); }
.button:disabled { opacity: 0.6; cursor: default; }

/* ---------- header ---------- */

.site-header { position: relative; background: #fff; z-index: 20; }
.site-header__bar { position: relative; height: var(--header-height); display: flex; align-items: flex-start; justify-content: center; }
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { width: 48px; height: 45px; object-fit: contain; }
.site-header__right { position: absolute; right: 0; top: 0; height: 100%; display: flex; align-items: flex-start; }
.site-header__flag { display: none; position: relative; top: -2px; width: 44px; height: 53px; object-fit: contain; margin-left: 10px; }

.menu-toggle {
  position: absolute;
  left: -8px;
  top: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle__icon {
  display: block;
  margin: 0 auto;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23191919'><rect y='5' width='32' height='3' rx='1'/><rect y='15' width='32' height='3' rx='1'/><rect y='25' width='32' height='3' rx='1'/></svg>") center / 16px no-repeat;
}
.mobile-nav-opened .menu-toggle__icon {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23191919'><path d='M25.29 27a1 1 0 01-.7-.29L5.29 7.41a1 1 0 010-1.41L6 5.29a1 1 0 011.41 0l19.3 19.3a1 1 0 010 1.41l-.71.71a1 1 0 01-.71.29z'/><path d='M6.71 27a1 1 0 01-.71-.29L5.29 26a1 1 0 010-1.41l19.3-19.3a1 1 0 011.41 0l.71.71a1 1 0 010 1.41l-19.3 19.3a1 1 0 01-.7.29z'/></svg>");
}

/* Language menu */
.lang-toggle { position: relative; margin: 15px 0 0; font-size: 13px; line-height: 1.5; }
.lang-toggle__button {
  display: inline-flex;
  align-items: center;
  padding: 1px 0 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.lang-toggle__globe { display: inline-block; }
@media (min-width: 1024px) {
  /* The 21px minimum height gives the toggle the old site's 22px and keeps the 16px
     globe from being clipped by the 19.5px line box; centring it in that height puts it
     level with the text's x-height. */
  .lang-toggle__globe {
    min-height: 21px;
    padding-left: 24px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23191919'><path d='M16 0a16 16 0 1016 16A16 16 0 0016 0zm1.5 12.45a26.12 26.12 0 003.63-.45 21.15 21.15 0 01.31 2.52H17.5zm0-3V3.21a22.37 22.37 0 012.91 5.85 21.87 21.87 0 01-2.91.39zm-3 0a21.87 21.87 0 01-2.91-.39 22.37 22.37 0 012.91-5.85zm0 3v2.05h-3.94a21.15 21.15 0 01.31-2.5 26.12 26.12 0 003.63.45zM7.56 14.5H3.09a13 13 0 011.49-4.7A24.42 24.42 0 008 11.2a24.19 24.19 0 00-.44 3.3zm0 3a24.52 24.52 0 00.37 3.1A25.07 25.07 0 004.5 22a12.89 12.89 0 01-1.41-4.5zm3 0h3.94v1.84a25.07 25.07 0 00-3.67.48 22.25 22.25 0 01-.27-2.32zm3.94 4.84v6.45a22.39 22.39 0 01-3-6.05 22.79 22.79 0 013-.4zm3 0a22.79 22.79 0 013 .4 22.39 22.39 0 01-3 6.05zm0-3V17.5h3.94a22.25 22.25 0 01-.27 2.32 25.07 25.07 0 00-3.67-.48zm6.94-1.84h4.47A12.89 12.89 0 0127.5 22a25.07 25.07 0 00-3.43-1.43 24.52 24.52 0 00.37-3.07zm0-3a24.19 24.19 0 00-.44-3.3 24.42 24.42 0 003.39-1.4 13 13 0 011.49 4.7zm1.21-7.18a21.68 21.68 0 01-2.34 1 24.85 24.85 0 00-1.64-4 13.18 13.18 0 013.98 3zm-15.32-3a24.85 24.85 0 00-1.64 4 21.68 21.68 0 01-2.34-1 13.18 13.18 0 013.98-3zM6.21 24.53a21.39 21.39 0 012.43-1 24.91 24.91 0 001.69 4.15 13.23 13.23 0 01-4.12-3.15zm15.46 3.15a24.91 24.91 0 001.69-4.15 21.39 21.39 0 012.43 1 13.23 13.23 0 01-4.12 3.15z'/></svg>") left center / 16px 16px no-repeat;
  }
}
.lang-toggle__button:hover { text-decoration: underline; }
.lang-toggle__label { display: none; }
.lang-toggle__chevron {
  width: 8px;
  height: 5px;
  margin: 1px 8px 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='9' viewBox='0 0 16 9'><path d='M15.393.842l-.334-.334a.47.47 0 00-.664 0L8 6.904 1.605.513a.47.47 0 00-.664 0L.607.847a.47.47 0 000 .664l7.059 7.058a.47.47 0 00.155.1c.114.05.244.05.358 0a.339.339 0 00.113-.076l.037-.024.335-.334 6.729-6.73a.47.47 0 000-.663z' fill='%23191919'/></svg>") center / 8px no-repeat;
  transition: transform 0.2s;
}
.lang-toggle.is-open .lang-toggle__chevron { transform: rotate(180deg); }
.lang-toggle__menu {
  display: none;
  position: absolute;
  left: -25px;
  top: 100%;
  margin: 2px 0 0;
  padding: 10px 0 0;
  list-style: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 8px rgba(25, 25, 25, 0.16);
  z-index: 30;
}
.lang-toggle.is-open .lang-toggle__menu { display: block; }
.lang-toggle__menu li { padding: 0 24px 12px; white-space: nowrap; font-size: 14px; line-height: 1.71; font-weight: 700; }
.lang-toggle__menu a { text-decoration: none; color: var(--color-text); }
.lang-toggle__menu a:hover { color: var(--color-link); }

/* Navigation: full-screen overlay below the bar on small screens, inline row on large. */
.site-nav {
  position: absolute;
  left: 0;
  top: var(--header-height);
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--color-light);
  overflow-y: auto;
  z-index: 10;
  transform: translate3d(0, -10px, 0);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.12s, transform 0.12s, visibility 0.12s;
}
.mobile-nav-opened .site-nav { transform: none; visibility: visible; opacity: 1; }
.site-nav > .container { margin: 0; max-width: none; }
.mobile-nav-opened { overflow: hidden; }
.site-nav__menu { list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  position: relative;
  display: block;
  padding: 32px 42px 17px 32px;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  color: var(--color-link);
}

@media (min-width: 1024px) {
  .site-header { --header-height: 80px; height: 135px; }
  .site-header__bar { justify-content: flex-start; }
  .site-header__logo img { width: 79px; height: 74px; padding-top: 8px; }
  .site-header__right { height: 59px; align-items: center; }
  .site-header__flag { display: block; align-self: flex-start; }
  .lang-toggle { margin: 0 10px 0 0; }
  .lang-toggle__menu { left: 0; box-shadow: var(--shadow); }
  .menu-toggle { display: none; }
  .lang-toggle__label { display: inline; }
  .lang-toggle__short { display: none; }
  .site-nav {
    position: static;
    height: auto;
    background: transparent;
    overflow: visible;
    transform: none;
    visibility: visible;
    opacity: 1;
    padding: 25px 0 0;
  }
  .site-nav > .container { margin: 0 auto; max-width: 960px; }
  .site-nav__menu { display: flex; flex-wrap: wrap; margin: 0; }
  .site-nav__item { display: inline-flex; padding: 0 16px; }
  .site-nav__item:first-child { padding-left: 0; }
  .site-nav__link { padding: 0; font-size: 14px; line-height: 24px; color: var(--color-link); }
  .site-nav__link:hover { text-decoration: underline; }
}

@media (min-width: 1264px) { .site-nav > .container { max-width: 1200px; } }

/* ---------- footer ---------- */

.site-footer { background: var(--color-navy); color: #fff; padding: 20px; }
.site-footer__wrapper { margin: 0 auto; text-align: center; }
.site-footer__wrapper img { display: inline; width: 50px; height: 40px; margin: 20px auto; }
.site-footer__text { margin: 20px auto 40px; max-width: 684px; color: #fff; }
.site-footer__links { display: flex; flex-direction: column; justify-content: center; width: 100%; margin: 0 auto; padding: 0; }
.site-footer__link { margin-bottom: 20px; width: 100%; }
.site-footer__link a { color: #fff; text-decoration: underline; }
@media (min-width: 768px) {
  .site-footer__links { flex-direction: row; }
  .site-footer__link { margin-bottom: 30px; }
}
@media (min-width: 1024px) {
  .site-footer__links { padding: 0 200px; }
}

/* ---------- cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-banner);
  color: #fff;
  padding: 24px;
  text-align: center;
  z-index: 50;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: inline-block; width: 100%; max-width: 800px; text-align: left; }
.cookie-banner__title { color: #fff; font-size: 16px; line-height: 1.25; margin: 0 0 20px; }
.cookie-banner__row { display: flex; flex-direction: column; }
.cookie-banner__text { font-size: 14px; line-height: 24px; margin-bottom: 20px; }
.cookie-banner__text a { color: #fff; font-weight: 700; margin-left: 5px; }
.cookie-banner__button {
  align-self: flex-start;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 15px 25px;
  font: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
  cursor: pointer;
}
@media (min-width: 768px) {
  .cookie-banner { padding: 20px; }
  .cookie-banner__inner { margin: 0 20px; }
  .cookie-banner__title { margin-top: 24px; }
  .cookie-banner__row { flex-direction: row; align-items: flex-start; }
  .cookie-banner__text { flex: 1 1 auto; max-width: 650px; margin-bottom: 0; }
  .cookie-banner__button { font-size: 14px; margin: 30px 0 0 30px; transform: translateY(-50%); }
}
@media (min-width: 1264px) {
  .cookie-banner__button { margin-left: 100px; }
}

/* ---------- policy document finder ---------- */

/* Sizes follow the form on the old site (596px wide, 425px minimum height). */
.policy-finder {
  background: var(--color-form);
  border-radius: 4px;
  max-width: 596px;
  min-height: 425px;
  padding: 32px 24px;
  color: #fff;
}
@media (min-width: 768px) { .policy-finder { padding: 40px; } }
.finder__label { display: block; margin: 0 0 18px; font-size: 16px; line-height: 24px; font-weight: 600; color: #fff; }
.finder__label:first-child { margin-top: 5px; }
.finder__operators { display: flex; flex-wrap: wrap; justify-content: space-between; margin-bottom: 13px; }
.finder__operator {
  position: relative;
  flex: 1 1 100%;
  height: 73px;
  margin: 9px 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(25, 25, 25, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@media (min-width: 768px) {
  .finder__label { margin-bottom: 12px; }
  .finder__operators { margin-bottom: 15px; }
  .finder__operator { flex: 0 0 156px; height: 96px; margin: 5px 0; }
}
.finder__radio { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.finder__logo { max-height: 60%; width: auto; opacity: 0.5; transition: opacity 0.15s; }
.finder__logo--ef { width: 60px; }
.finder__logo--ccap { width: 108px; }
.finder__logo--hult { width: 90px; }
.finder__radio:checked ~ .finder__logo { opacity: 1; }
.finder__check {
  position: absolute;
  top: 28px;
  left: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #757575;
  background: #fff;
}
@media (min-width: 768px) { .finder__check { top: 10px; left: auto; right: 10px; } }
.finder__radio:checked ~ .finder__check { background: var(--color-text); box-shadow: inset 0 0 0 2px #fff; }
.finder__radio:focus-visible ~ .finder__check { outline: 2px solid #fff; outline-offset: 2px; }
.finder__select {
  width: 100%;
  height: 48px;
  margin-bottom: 5px;
  padding: 0 40px 0 10px;
  border: 0;
  border-radius: 4px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='9' viewBox='0 0 16 9'><path d='M15.393.842l-.334-.334a.47.47 0 00-.664 0L8 6.904 1.605.513a.47.47 0 00-.664 0L.607.847a.47.47 0 000 .664l7.059 7.058a.47.47 0 00.155.1c.114.05.244.05.358 0a.339.339 0 00.113-.076l.037-.024.335-.334 6.729-6.73a.47.47 0 000-.663z' fill='%23191919'/></svg>") right 12px center / 16px no-repeat;
  color: var(--color-text);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.finder__select--small { margin-bottom: 20px; }
.finder__row { display: flex; gap: 16px; }
@media (min-width: 768px) {
  .finder__select { margin-bottom: 20px; }
  .finder__row { gap: 32px; }
}
.finder__program[hidden] { display: none; }
.finder__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font: 700 12px/1 var(--font-sans);
  cursor: pointer;
  vertical-align: middle;
}
.finder__submit { margin-top: 20px; height: auto; }
.finder__results { margin-top: 24px; font-size: 16px; line-height: 24px; }
.finder__results:empty { display: none; }
.finder__results-title { font-size: 24px; line-height: 32px; font-weight: 600; margin: 16px 0; }
.finder__no-results a { color: #fff; }
.finder__result { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.finder__result a { color: #fff; text-decoration: underline; }
.finder__pdf {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 4px;
  border-radius: 3px;
  background: var(--color-primary);
  color: #fff;
}
.finder__contact p { margin: 0; }
.finder__contact-name { font-weight: 600; }
.finder__contact-phones { margin-top: 16px; }
.finder__contact-email { margin-top: 20px; }
.finder__contact-email a { color: #fff; text-decoration: underline; }

/* Programme info dialog */
.info-dialog {
  width: min(623px, calc(100% - 32px));
  border: 0;
  border-radius: 4px;
  padding: 48px 32px 32px;
  color: #000;
}
@media (min-width: 768px) { .info-dialog { padding: 72px 64px 40px; } }
.info-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.info-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.info-dialog__body h4, .info-dialog__body h5 { font-size: 16px; line-height: 24px; margin: 0 0 8px; }
.info-dialog__body p { margin: 0 0 16px; }
@media (min-width: 768px) {
  .info-dialog__body h4, .info-dialog__body h5 { font-size: 20px; }
  .info-dialog__body p { margin-bottom: 32px; }
}

/* ---------- print ---------- */

@media print {
  .site-header, .site-footer, .cookie-banner { display: none; }
}
