/* ==========================================================================
   Ema.lt Help Center
   --------------------------------------------------------------------------
   Tokens follow the ema.lt stylesheet (Tailwind v4 build): Roboto Flex,
   gray-brand ramp, yellow-brand accent, indigo for links and icons, card
   radius and shadow scale. brand_color tints small accents such as the
   promoted badge.

   1.  Tokens
   2.  Reset and base
   3.  Utilities used by the feature scripts
   4.  Layout
   5.  Buttons, badges, chips
   6.  Banners (notification, locale)
   7.  Header and mobile menu
   8.  Search
   9.  Home: hero, accordion, promo, quick help, contact
   10. Breadcrumbs, pagination, page headings
   11. Article page
   12. Search results
   13. Forms (request form)
   14. Error page
   15. Footer
   16. Live chat, cookie consent
   17. Motion preferences
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  /* Theme settings (Guide > Customize design) */
  --zg-brand: #5662f5;
  --zg-brand-text: #1ca256;
  --zg-text: #2a2b32;
  --zg-link: #3c49dc;
  --zg-link-hover: #1c0d57;
  --zg-link-visited: #3c49dc;
  --zg-surface: #ffffff;

  /* ema.lt gray-brand ramp (oklch values converted to sRGB) */
  --zg-gray-25: #fbfcfc;
  --zg-gray-50: #f7f8f9;
  --zg-gray-100: #eaebed;
  --zg-gray-200: #dfe0e4;
  --zg-gray-300: #bfc1c7;
  --zg-gray-400: #98a2b3;
  --zg-gray-500: #585b64;
  --zg-gray-600: #3e424d;
  --zg-gray-700: #344054;
  --zg-gray-800: #101828;
  --zg-gray-900: #040609;
  --zg-black: #000000;
  --zg-white: #ffffff;

  /* ema.lt brand */
  --zg-yellow-50: #fef3cf;
  --zg-yellow-300: #fff6bd;
  --zg-yellow-400: #ffdd01;
  --zg-yellow-500: #ffd432;
  /* A step deeper than brand yellow, so an icon still reads on the pastel tile. */
  --zg-yellow-600: #b8860b;
  /* Brand yellow darkened for text on white (about 5:1). */
  --zg-yellow-700: #8a6800;
  --zg-yellow-800: #6f5300;
  --zg-indigo-25: #fafaff;
  --zg-indigo-50: #f4f3ff;
  --zg-indigo-100: #e3e7ff;
  --zg-indigo-300: #bfbaff;
  --zg-indigo-500: #5662f5;
  --zg-indigo-700: #3c49dc;
  --zg-indigo-900: #1c0d57;

  /* Status */
  --zg-success-50: #edf5ee;
  --zg-success-700: #0e7a48;
  --zg-warning-50: #fffaeb;
  --zg-warning-600: #5e3509;
  --zg-warning-700: #ff4a08;
  --zg-error-50: #fff5f5;
  --zg-error-200: #fecdca;
  --zg-error-600: #d92d20;
  --zg-error-700: #960015;

  /* Semantic roles */
  --zg-page: var(--zg-gray-25);
  --zg-heading: var(--zg-gray-900);
  --zg-body: var(--zg-text);
  --zg-muted: var(--zg-gray-500);
  --zg-border: var(--zg-gray-100);
  --zg-border-strong: var(--zg-gray-200);
  --zg-accent: var(--zg-yellow-400);
  --zg-icon: var(--zg-indigo-500);
  --zg-focus: var(--zg-indigo-500);

  /* Typography */
  --zg-font: 'Roboto Flex', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --zg-font-ui: 'Inter', var(--zg-font);
  /* Brand display axes from ema.lt (Roboto Flex). */
  --zg-font-display-settings: 'wdth' 120, 'slnt' 0, 'GRAD' 0, 'XOPQ' 96, 'XTRA' 600, 'YOPQ' 79, 'YTAS' 750, 'YTDE' -203, 'YTFI' 738, 'YTLC' 514, 'YTUC' 712;
  --zg-text-xs: 0.75rem;
  --zg-text-sm: 0.875rem;
  --zg-text-base: 1rem;
  --zg-text-lg: 1.125rem;
  --zg-text-xl: 1.25rem;
  --zg-text-2xl: 1.5rem;
  --zg-text-3xl: 1.875rem;
  --zg-text-4xl: 2.25rem;
  --zg-text-5xl: 3rem;

  /* Spacing (ema --spacing: .25rem) */
  --zg-space-1: 0.25rem;
  --zg-space-2: 0.5rem;
  --zg-space-3: 0.75rem;
  --zg-space-4: 1rem;
  --zg-space-5: 1.25rem;
  --zg-space-6: 1.5rem;
  --zg-space-8: 2rem;
  --zg-space-10: 2.5rem;
  --zg-space-12: 3rem;
  --zg-space-16: 4rem;
  --zg-space-24: 6rem;

  /* Radius */
  --zg-radius-sm: 0.375rem;
  --zg-radius-md: 0.5rem;
  --zg-radius-lg: 0.625rem;
  --zg-radius-xl: 0.75rem;
  --zg-radius-2xl: 1rem;
  --zg-radius-hero: 1.25rem;
  --zg-radius-3xl: 1.5rem;
  --zg-radius-full: 9999px;

  /* Shadows (ema: gray-brand-900 at low alpha) */
  --zg-shadow-xs: 0 1px 2px 0 rgba(4, 6, 9, 0.05);
  --zg-shadow-sm: 0 1px 2px 0 rgba(4, 6, 9, 0.06), 0 1px 3px 0 rgba(4, 6, 9, 0.1);
  --zg-shadow-md: 0 2px 4px -2px rgba(4, 6, 9, 0.06), 0 4px 8px -2px rgba(4, 6, 9, 0.1);
  --zg-shadow-lg: 0 4px 6px -2px rgba(4, 6, 9, 0.03), 0 12px 16px -4px rgba(4, 6, 9, 0.08);
  --zg-shadow-xl: 0 8px 8px -4px rgba(4, 6, 9, 0.05), 0 20px 24px -4px rgba(4, 6, 9, 0.08);
  --zg-shadow-2xl: 0 24px 48px -12px rgba(4, 6, 9, 0.18);
  --zg-shadow-top-sm: 0 -2px 4px -2px rgba(16, 24, 40, 0.3);

  /* Layout */
  --zg-container: 80rem;
  --zg-container-narrow: 56rem;
  --zg-header-height: 3.75rem;

  /* Motion */
  --zg-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --zg-ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --zg-duration-hover: 150ms;
  --zg-duration-reveal: 300ms;
  --zg-press-scale: 0.98;
}

/* 2. Reset and base ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-padding-top: calc(var(--zg-header-height) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--zg-page);
  color: var(--zg-body);
  font-family: var(--zg-font);
  font-size: var(--zg-text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--zg-heading);
  font-weight: 700;
  line-height: 1.25;
}

p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--zg-link);
  text-underline-offset: 2px;
  transition: color var(--zg-duration-hover) var(--zg-ease-out);
}

a:hover {
  color: var(--zg-link-hover);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--zg-focus);
  outline-offset: 2px;
}

::selection {
  background-color: var(--zg-yellow-300);
  color: var(--zg-gray-900);
}

/* 3. Utilities used by the feature scripts -------------------------------- */
.hidden,
[hidden] {
  display: none !important;
}

.flex {
  display: flex;
}

.block {
  display: block;
}

.size-4 {
  width: 1rem;
  height: 1rem;
}

.size-5 {
  width: 1.25rem;
  height: 1.25rem;
}

.sr-only,
.zg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.zg-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  vertical-align: middle;
}

.zg-icon--sm {
  width: 1rem;
  height: 1rem;
}

.zg-icon--xs {
  width: 0.75rem;
  height: 0.75rem;
}

/* Fallback content for crawlers; the document head hides it once JS runs. */
.zg-crawlable {
  padding-block: var(--zg-space-8);
}

/* Show/hide by locale, driven by script.js. */
[data-locale-show].is-locale-hidden {
  display: none !important;
}

/* 4. Layout --------------------------------------------------------------- */
.zg-container {
  width: 100%;
  max-width: var(--zg-container);
  margin-inline: auto;
  padding-inline: var(--zg-space-4);
}

.zg-container--narrow {
  max-width: calc(var(--zg-container-narrow) + 2 * var(--zg-space-4));
}

.zg-page {
  padding-top: var(--zg-space-6);
  padding-bottom: var(--zg-space-16);
}

.zg-section {
  padding-block: var(--zg-space-10);
}

.zg-section__title {
  margin-bottom: var(--zg-space-3);
  font-size: var(--zg-text-2xl);
  font-weight: 900;
  text-align: center;
}

.zg-section__lead {
  max-width: 40rem;
  margin: 0 auto var(--zg-space-8);
  color: var(--zg-gray-600);
  font-size: var(--zg-text-lg);
  text-align: center;
  text-wrap: pretty;
}

.zg-card {
  background-color: var(--zg-surface);
  border-radius: var(--zg-radius-xl);
  box-shadow: var(--zg-shadow-md);
}

@media (min-width: 768px) {
  .zg-container {
    padding-inline: var(--zg-space-8);
  }

  .zg-container--narrow {
    max-width: calc(var(--zg-container-narrow) + 2 * var(--zg-space-8));
  }

  .zg-section__title {
    font-size: var(--zg-text-3xl);
  }
}

@media (min-width: 1024px) {
  .zg-page {
    padding-top: var(--zg-space-12);
    padding-bottom: var(--zg-space-24);
  }

  .zg-section {
    padding-block: var(--zg-space-16);
  }
}

/* 5. Buttons, badges, chips ----------------------------------------------- */
.zg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--zg-space-2);
  min-height: 2.75rem;
  padding: 0.625rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--zg-radius-full);
  font-family: var(--zg-font);
  font-size: var(--zg-text-base);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--zg-duration-hover) var(--zg-ease-out),
    border-color var(--zg-duration-hover) var(--zg-ease-out),
    color var(--zg-duration-hover) var(--zg-ease-out),
    transform var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-btn:active {
  transform: scale(var(--zg-press-scale));
}

/* ema.lt "Įsigyk bilietus": gray-900 pill, yellow label and rim. */
.zg-btn--primary,
.zg-btn--accent {
  background-color: var(--zg-gray-900);
  border-color: var(--zg-yellow-400);
  color: var(--zg-yellow-400);
  box-shadow: var(--zg-shadow-xs);
}

.zg-btn--primary:hover,
.zg-btn--accent:hover {
  background-color: var(--zg-gray-700);
  color: var(--zg-yellow-400);
}

.zg-btn--yellow {
  background-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
}

.zg-btn--yellow:hover {
  background-color: var(--zg-yellow-500);
  color: var(--zg-gray-900);
}

.zg-btn--outline {
  background-color: var(--zg-white);
  border-color: var(--zg-border-strong);
  color: var(--zg-gray-900);
}

.zg-btn--outline:hover {
  background-color: var(--zg-gray-50);
  border-color: var(--zg-gray-300);
  color: var(--zg-gray-900);
}

.zg-btn__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.zg-btn__icon--img {
  filter: brightness(0);
}

.zg-btn--primary .zg-btn__icon--img,
.zg-btn--accent .zg-btn__icon--img {
  filter: brightness(0) saturate(100%) invert(84%) sepia(66%) saturate(1500%) hue-rotate(358deg) brightness(104%) contrast(104%);
}

/* The round yellow arrow chip from the ema.lt event cards. */
.zg-chip-arrow {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-gray-100);
  color: var(--zg-gray-900);
  transition: background-color var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-chip-arrow svg {
  width: 0.75rem;
  height: 0.75rem;
}

.zg-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--zg-radius-full);
  font-family: var(--zg-font-ui);
  font-size: var(--zg-text-xs);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

/* "Populiaru": ema yellow pill with dark text (15:1). */
.zg-badge--promoted {
  background-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
}

.zg-badge--internal {
  background-color: var(--zg-error-50);
  color: var(--zg-error-700);
}

/* 6. Banners -------------------------------------------------------------- */
.zg-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--zg-space-2);
  padding: var(--zg-space-3) var(--zg-space-4);
  border-bottom: 1px solid;
  font-size: var(--zg-text-sm);
  font-weight: 500;
  text-align: center;
}

.zg-notice svg {
  flex-shrink: 0;
}

.zg-notice--critical {
  background-color: var(--zg-error-50);
  border-color: var(--zg-error-200);
  color: var(--zg-error-700);
}

.zg-notice--warning {
  background-color: var(--zg-warning-50);
  border-color: var(--zg-yellow-400);
  color: var(--zg-warning-600);
}

.zg-notice--accent {
  background-color: var(--zg-indigo-50);
  border-color: var(--zg-indigo-100);
  color: var(--zg-indigo-700);
}

.zg-locale-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--zg-space-2) var(--zg-space-4);
  padding: var(--zg-space-3) var(--zg-space-4);
  background-color: var(--zg-gray-900);
  color: var(--zg-gray-300);
  font-size: var(--zg-text-sm);
}

.zg-locale-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--zg-space-3);
}

.zg-locale-banner__cta {
  color: var(--zg-yellow-400);
  font-weight: 600;
  text-decoration: underline;
}

.zg-locale-banner__cta:hover {
  color: var(--zg-white);
}

.zg-locale-banner__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: var(--zg-radius-full);
  background: transparent;
  color: var(--zg-gray-300);
}

.zg-locale-banner__dismiss:hover {
  background-color: var(--zg-gray-700);
  color: var(--zg-white);
}

/* 7. Header and mobile menu ----------------------------------------------- */
.zg-skip-link {
  position: absolute;
  top: var(--zg-space-2);
  left: var(--zg-space-2);
  z-index: 100;
  padding: var(--zg-space-3) var(--zg-space-4);
  border-radius: var(--zg-radius-md);
  background-color: var(--zg-gray-900);
  color: var(--zg-yellow-400);
  font-weight: 600;
  transform: translateY(-200%);
}

.zg-skip-link:focus {
  transform: none;
}

.zg-skip-target:focus {
  outline: none;
}

.zg-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--zg-white);
  border-bottom: 1px solid var(--zg-border);
  box-shadow: var(--zg-shadow-sm);
}

.zg-header__bar {
  display: flex;
  align-items: center;
  gap: var(--zg-space-4);
  min-height: var(--zg-header-height);
}

.zg-header__brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--zg-space-3);
}

.zg-header__logo {
  display: flex;
  align-items: center;
  color: var(--zg-gray-900);
}

.zg-header__logo:hover {
  color: var(--zg-gray-600);
}

.zg-wordmark {
  display: block;
  height: 1rem;
  width: auto;
}

.zg-header__nav {
  display: none;
}

.zg-header__actions {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: var(--zg-space-2);
}

.zg-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--zg-radius-md);
  background: transparent;
  color: var(--zg-gray-900);
  transition:
    background-color var(--zg-duration-hover) var(--zg-ease-out),
    transform var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-header__icon-btn:active {
  transform: scale(0.94);
}

.zg-header__icon-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.zg-header__menu-icon--close,
.zg-header.is-menu-open .zg-header__menu-icon--open {
  display: none;
}

.zg-header.is-menu-open .zg-header__menu-icon--close {
  display: block;
}

/* Desktop navigation (ema.lt links) */
.zg-nav__list {
  display: flex;
  align-items: center;
  gap: var(--zg-space-1);
  list-style: none;
}

.zg-nav__group {
  position: relative;
}

.zg-nav__link,
.zg-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0 var(--zg-space-3);
  border: 0;
  border-radius: var(--zg-radius-full);
  background: transparent;
  color: var(--zg-gray-900);
  font-size: var(--zg-text-base);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--zg-duration-hover) var(--zg-ease-out),
    color var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-nav__link:hover,
.zg-nav__toggle:hover {
  background-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
}

.zg-header__icon-btn:hover {
  background-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
}

.zg-nav__toggle[aria-expanded='true'] {
  background-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
}

.zg-nav__chevron {
  width: 0.625rem;
  height: 0.625rem;
  transition: transform var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-nav__toggle[aria-expanded='true'] .zg-nav__chevron {
  transform: rotate(180deg);
}

.zg-nav__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 45;
  min-width: 15rem;
  padding: var(--zg-space-2);
  list-style: none;
  background-color: var(--zg-white);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-xl);
  box-shadow: var(--zg-shadow-lg);
}

.zg-nav__panel--end {
  right: 0;
  left: auto;
}

.zg-nav__panel a {
  display: block;
  padding: var(--zg-space-2) var(--zg-space-3);
  border-radius: var(--zg-radius-md);
  color: var(--zg-gray-900);
  font-weight: 500;
  text-decoration: none;
}

.zg-nav__panel a:hover {
  background-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
}

/* Language switcher (desktop) */
.zg-lang {
  position: relative;
  display: none;
}

.zg-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0 var(--zg-space-3);
  border: 1px solid var(--zg-border-strong);
  border-radius: var(--zg-radius-md);
  background-color: var(--zg-white);
  color: var(--zg-gray-900);
  font-family: var(--zg-font-ui);
  font-size: var(--zg-text-sm);
  font-weight: 600;
}

.zg-lang__toggle:hover,
.zg-lang__toggle[aria-expanded='true'] {
  background-color: var(--zg-yellow-400);
  border-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
}

.zg-lang__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 45;
  min-width: 10rem;
  padding: var(--zg-space-2);
  list-style: none;
  background-color: var(--zg-white);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-xl);
  box-shadow: var(--zg-shadow-lg);
}

.zg-lang__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zg-space-3);
  padding: var(--zg-space-2) var(--zg-space-3);
  border-radius: var(--zg-radius-md);
  color: var(--zg-gray-900);
  font-weight: 500;
  text-decoration: none;
}

a.zg-lang__option:hover {
  background-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
}

.zg-lang__option[aria-current] {
  font-weight: 700;
}

.zg-lang__option[aria-current]::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-yellow-400);
}

/* Mobile menu (ema.lt slide-down sheet) */
.zg-mobile-menu {
  position: fixed;
  inset: var(--zg-mobile-menu-top, var(--zg-header-height)) 0 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--zg-white);
  opacity: 0;
  transform: translateY(-0.5rem);
  transition:
    opacity var(--zg-duration-reveal) var(--zg-ease-out-quart),
    transform var(--zg-duration-reveal) var(--zg-ease-out-quart);
}

.zg-mobile-menu.is-open {
  opacity: 1;
  transform: none;
}

.zg-mobile-menu__nav {
  padding: var(--zg-space-4) var(--zg-space-4) 0;
}

.zg-mobile-menu__list,
.zg-mobile-menu__sublist {
  list-style: none;
}

.zg-mobile-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zg-space-4);
  width: 100%;
  padding: var(--zg-space-4) 0;
  border: 0;
  border-bottom: 1px solid var(--zg-border);
  background: transparent;
  color: var(--zg-gray-900);
  font-size: var(--zg-text-xl);
  font-weight: 600;
  text-align: start;
  text-decoration: none;
}

.zg-mobile-menu__row:hover {
  color: var(--zg-gray-900);
}

.zg-mobile-menu__row:hover .zg-chip-arrow,
.zg-mobile-menu__row:active .zg-chip-arrow,
.zg-mobile-menu__row[aria-expanded='true'] .zg-chip-arrow,
.zg-mobile-menu__row[aria-current] .zg-chip-arrow {
  background-color: var(--zg-yellow-400);
}

.zg-mobile-menu__row[aria-expanded='true'] .zg-chip-arrow svg {
  transform: rotate(90deg);
}

.zg-mobile-menu__row .zg-chip-arrow svg {
  transition: transform var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-mobile-menu__sublist {
  padding: var(--zg-space-2) 0 var(--zg-space-3) var(--zg-space-4);
  border-bottom: 1px solid var(--zg-border);
}

.zg-mobile-menu__sublist a {
  display: block;
  padding: var(--zg-space-3) 0;
  color: var(--zg-gray-600);
  font-size: var(--zg-text-lg);
  font-weight: 500;
  text-decoration: none;
}

.zg-mobile-menu__sublist a:hover {
  color: var(--zg-gray-900);
}

.zg-mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-6);
  margin-top: auto;
  padding: var(--zg-space-10) var(--zg-space-4) max(1.5rem, env(safe-area-inset-bottom));
}

.zg-mobile-menu__label {
  display: block;
  margin-bottom: var(--zg-space-3);
  color: var(--zg-gray-500);
  font-size: var(--zg-text-sm);
  font-weight: 600;
}

.zg-lang-pills {
  display: flex;
  padding: var(--zg-space-1);
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-gray-100);
}

.zg-lang-pills a,
.zg-lang-pills span {
  flex: 1;
  padding: 0.625rem var(--zg-space-4);
  border-radius: var(--zg-radius-full);
  color: var(--zg-gray-500);
  font-size: var(--zg-text-sm);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.zg-lang-pills [aria-current] {
  background-color: var(--zg-white);
  color: var(--zg-gray-900);
  box-shadow: var(--zg-shadow-sm);
}

.zg-lang-pills a:hover {
  background-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
}

.zg-mobile-menu__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zg-space-6);
}

.zg-mobile-menu__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--zg-radius-full);
  color: var(--zg-gray-900);
  transition: background-color var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-mobile-menu__social a:hover {
  background-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
}

.zg-mobile-menu__social svg {
  width: 1.5rem;
  height: 1.5rem;
}

html.zg-scroll-locked body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

/* The body is fixed, so the header is pinned to the screen directly. */
html.zg-scroll-locked .zg-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

@media (min-width: 768px) {
  .zg-header .zg-wordmark {
    height: 1.5rem;
  }

  .zg-lang {
    display: block;
  }
}

@media (min-width: 1200px) {
  .zg-header__nav {
    display: block;
    margin-inline-start: var(--zg-space-4);
  }

  .zg-header__menu-btn,
  .zg-mobile-menu {
    display: none !important;
  }
}

/* 8. Search --------------------------------------------------------------- */
.zg-search,
.Banner__search {
  position: relative;
  width: 100%;
}

/* The icon is centred on the input (min-height 3.5rem), not the wrapper: instant
   search and the form can make the wrapper taller than the field. */
.zg-search__icon,
.Banner__search > .icon {
  position: absolute;
  top: 1.75rem;
  left: 1.25rem;
  z-index: 1;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--zg-gray-500);
  transform: translateY(-50%);
  pointer-events: none;
}

.zg-search form,
.Banner__search form {
  position: relative;
  width: 100%;
}

.zg-search input[type='search'],
.Banner__search input[type='search'] {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.875rem 1.25rem 0.875rem 3.25rem;
  border: 1px solid var(--zg-border-strong);
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-white);
  color: var(--zg-gray-900);
  font-size: var(--zg-text-lg);
  box-shadow: var(--zg-shadow-md);
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color var(--zg-duration-hover) var(--zg-ease-out),
    box-shadow var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-search input[type='search']::placeholder,
.Banner__search input[type='search']::placeholder {
  color: var(--zg-gray-500);
}

.zg-search input[type='search']:hover,
.Banner__search input[type='search']:hover {
  border-color: var(--zg-gray-300);
}

.zg-search input[type='search']:focus,
.Banner__search input[type='search']:focus {
  border-color: var(--zg-gray-900);
  outline: 2px solid var(--zg-focus);
  outline-offset: 2px;
  box-shadow: var(--zg-shadow-md);
}

input[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* Compact search in the header on article pages */
.zg-header-search {
  position: relative;
  flex: 1 1 18rem;
  max-width: 22rem;
}

.zg-header-search__icon {
  position: absolute;
  top: 1.25rem;
  left: 0.875rem;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  color: var(--zg-gray-500);
  transform: translateY(-50%);
  pointer-events: none;
}

.zg-header-search input[type='search'] {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.875rem 0.5rem 2.5rem;
  border: 1px solid var(--zg-border-strong);
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-gray-50);
  color: var(--zg-gray-900);
  font-size: var(--zg-text-sm);
  -webkit-appearance: none;
  appearance: none;
}

.zg-header-search input[type='search']:focus {
  border-color: var(--zg-gray-900);
  outline: 2px solid var(--zg-focus);
  outline-offset: 2px;
  background-color: var(--zg-white);
}

.zg-header-search--mobile {
  max-width: none;
  padding: 0 var(--zg-space-4) var(--zg-space-3);
}

.zg-header-search--mobile .zg-header-search__icon {
  left: calc(var(--zg-space-4) + 0.875rem);
}

/* iOS zooms the page when a focused field is under 16px. */
@media (max-width: 767px) {
  .zg-header-search input[type='search'],
  .Banner__search input[type='search'] {
    font-size: 1rem;
  }
}

.zg-header-search--desktop {
  display: none;
}

@media (min-width: 768px) {
  .zg-header-search--desktop:not([hidden]) {
    display: block;
  }

  .zg-header-search--mobile {
    display: none !important;
  }
}

/* Zendesk instant search suggestions */
zd-autocomplete-multibrand {
  border-radius: var(--zg-radius-xl) !important;
  box-shadow: var(--zg-shadow-lg) !important;
}

zd-autocomplete-title-multibrand {
  overflow: hidden;
  color: var(--zg-gray-900) !important;
  font-weight: 500;
  text-overflow: ellipsis;
}

zd-autocomplete-title-multibrand:hover {
  color: var(--zg-indigo-700) !important;
}

zd-autocomplete-breadcrumbs-multibrand {
  display: none !important;
}

/* IKB (internal knowledge base) filter, staff only */
.zg-ikb-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--zg-space-2);
  margin-top: var(--zg-space-4);
  padding: var(--zg-space-2) var(--zg-space-3);
  border-radius: var(--zg-radius-full);
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--zg-gray-900);
  font-size: var(--zg-text-sm);
  font-weight: 600;
  cursor: pointer;
}

.zg-ikb-filter--results {
  margin: 0 0 var(--zg-space-4);
  background-color: var(--zg-white);
  border: 1px solid var(--zg-border-strong);
}

.zg-ikb-filter__input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--zg-gray-900);
}

.zg-ikb-filter__icon {
  color: var(--zg-error-700);
}

.zg-ikb-filter__count {
  color: var(--zg-gray-500);
}

.zg-ikb-suggestion-hidden {
  display: none !important;
}

.zg-ikb-suggest-empty {
  padding: var(--zg-space-3) var(--zg-space-4);
  color: var(--zg-gray-500);
  font-size: var(--zg-text-sm);
}

/* 9. Home ----------------------------------------------------------------- */
.zg-hero {
  padding-top: var(--zg-space-6);
}

.zg-hero__card {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: var(--zg-radius-hero);
  background-color: var(--zg-yellow-400);
  box-shadow: var(--zg-shadow-lg);
}

.zg-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--zg-space-6);
  padding: var(--zg-space-8) var(--zg-space-6) var(--zg-space-10);
}

.zg-hero__logo {
  height: 2rem;
  color: var(--zg-gray-900);
}

.zg-hero__heading {
  max-width: 36rem;
  color: var(--zg-gray-900);
  font-size: var(--zg-text-3xl);
  font-variation-settings: var(--zg-font-display-settings);
  font-weight: 900;
  line-height: 1.1;
  text-wrap: balance;
}

.zg-hero__search {
  width: 100%;
  max-width: 40rem;
}

.zg-hero__search input[type='search'] {
  border-color: var(--zg-gray-900);
  box-shadow: var(--zg-shadow-lg);
}

@media (min-width: 768px) {
  .zg-hero__content {
    gap: var(--zg-space-8);
    padding: var(--zg-space-16) var(--zg-space-12);
  }

  .zg-hero__heading {
    font-size: var(--zg-text-5xl);
  }

  .zg-hero__logo {
    height: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .zg-hero {
    padding-top: var(--zg-space-12);
  }
}

/* Wide screens: the wordmark moves to the empty right half of the card. */
@media (min-width: 1200px) {
  .zg-hero__content {
    padding-right: 26rem;
  }

  .zg-hero__logo {
    position: absolute;
    top: 50%;
    right: var(--zg-space-16);
    width: 20rem;
    height: auto;
    transform: translateY(-50%);
  }
}

/* Category accordion */
.zg-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-3);
}

.zg-accordion__category {
  overflow: hidden;
  background-color: var(--zg-surface);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-2xl);
  box-shadow: var(--zg-shadow-sm);
  transition: box-shadow var(--zg-duration-reveal) var(--zg-ease-out-quart);
}

.zg-accordion__category:hover,
.zg-accordion__category:has(> .zg-accordion__heading [aria-expanded='true']) {
  box-shadow: var(--zg-shadow-lg);
}

.zg-accordion__heading {
  font-size: inherit;
  font-weight: inherit;
}

.zg-accordion__category-title {
  display: flex;
  align-items: center;
  gap: var(--zg-space-4);
  width: 100%;
  min-height: 4.5rem;
  padding: var(--zg-space-3) var(--zg-space-4);
  border: 0;
  background-color: transparent;
  color: var(--zg-gray-900);
  font-size: var(--zg-text-lg);
  font-weight: 600;
  line-height: 1.35;
  text-align: start;
}

.zg-accordion__category-title:focus-visible {
  outline-offset: -3px;
  border-radius: var(--zg-radius-2xl);
}

.zg-accordion__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--zg-radius-xl);
  background-color: var(--zg-indigo-50);
  color: var(--zg-icon);
  transition:
    background-color var(--zg-duration-hover) var(--zg-ease-out),
    color var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-accordion__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.zg-accordion__category-title:hover .zg-accordion__icon:not(.zg-accordion__icon--internal),
.zg-accordion__category-title.is-active .zg-accordion__icon:not(.zg-accordion__icon--internal),
.zg-accordion__category-title[aria-expanded='true'] .zg-accordion__icon:not(.zg-accordion__icon--internal) {
  background-color: var(--zg-yellow-50);
  color: var(--zg-yellow-600);
}

.zg-accordion__icon--internal {
  background-color: var(--zg-error-50);
  color: var(--zg-error-700);
}

.zg-accordion__name {
  flex: 1;
  min-width: 0;
}

.zg-accordion__category-title .zg-chip-arrow svg,
.zg-accordion__chevron {
  transition: transform var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-accordion__category-title:hover .zg-chip-arrow,
.zg-accordion__category-title.is-active .zg-chip-arrow {
  background-color: var(--zg-yellow-400);
}

.zg-accordion__category-title[aria-expanded='true'] .zg-chip-arrow svg,
.zg-accordion__section-title[aria-expanded='true'] .zg-accordion__chevron {
  transform: rotate(90deg);
}

.zg-accordion__panel {
  height: 0;
  overflow: hidden;
  transition: height var(--zg-duration-reveal) var(--zg-ease-out);
}

.zg-accordion__panel--sections {
  background-color: var(--zg-gray-25);
  box-shadow: inset 0 1px 0 var(--zg-border);
}

/* Padding lives on the contents, not the panel. A panel with its own padding
   cannot animate to height 0, so the close stopped and then jumped. */
.zg-accordion__panel--sections > .zg-accordion__section-list,
.zg-accordion__panel--sections > .zg-accordion__state {
  padding: var(--zg-space-3);
}

.zg-accordion__panel--articles > .zg-accordion__article-list,
.zg-accordion__panel--articles > .zg-accordion__state {
  padding: var(--zg-space-1) 0 var(--zg-space-2) var(--zg-space-4);
}

.zg-accordion__section-list,
.zg-accordion__article-list {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-1);
  list-style: none;
}

.zg-accordion__section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zg-space-3);
  width: 100%;
  min-height: 3rem;
  padding: var(--zg-space-2) var(--zg-space-4);
  border: 1px solid transparent;
  border-radius: var(--zg-radius-xl);
  background-color: var(--zg-white);
  color: var(--zg-gray-900);
  font-weight: 600;
  text-align: start;
  box-shadow: var(--zg-shadow-xs);
  transition: border-color var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-accordion__section-title:hover {
  border-color: var(--zg-border-strong);
}

.zg-accordion__section-title[aria-expanded='true'] {
  border-color: var(--zg-gray-900);
}

.zg-accordion__chevron {
  flex-shrink: 0;
  color: var(--zg-gray-500);
}

.zg-accordion__panel--articles {
  position: relative;
  margin-left: var(--zg-space-4);
}

.zg-accordion__panel--articles::before {
  content: '';
  position: absolute;
  top: var(--zg-space-2);
  bottom: var(--zg-space-2);
  left: 0;
  width: 2px;
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-brand);
}

.zg-accordion__category:hover .zg-accordion__panel--articles::before,
.zg-accordion__category:has(> .zg-accordion__heading [aria-expanded='true']) .zg-accordion__panel--articles::before,
.zg-accordion__section:hover .zg-accordion__panel--articles::before,
.zg-accordion__section-title[aria-expanded='true'] + .zg-accordion__panel--articles::before {
  background-color: var(--zg-yellow-400);
}

.zg-accordion__article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zg-space-3);
  min-height: 2.75rem;
  padding: var(--zg-space-2) var(--zg-space-3);
  border-radius: var(--zg-radius-md);
  color: var(--zg-gray-900);
  text-decoration: none;
}

.zg-accordion__article-link:hover {
  background-color: var(--zg-white);
  color: var(--zg-gray-900);
  text-decoration: underline;
}

.zg-accordion__state {
  padding: var(--zg-space-2) var(--zg-space-3);
  color: var(--zg-gray-500);
  font-size: var(--zg-text-sm);
}

@media (min-width: 768px) {
  .zg-accordion__category-title {
    padding: var(--zg-space-4) var(--zg-space-6);
    font-size: var(--zg-text-xl);
  }

  .zg-accordion__panel--sections > .zg-accordion__section-list,
  .zg-accordion__panel--sections > .zg-accordion__state {
    padding: var(--zg-space-4) var(--zg-space-6) var(--zg-space-6) calc(var(--zg-space-6) + 3rem + var(--zg-space-4));
  }
}

/* Promo cards (tickets, shop) */
.zg-promo__grid {
  display: grid;
  gap: var(--zg-space-6);
}

.zg-promo__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--zg-radius-3xl);
  background-color: var(--zg-gray-900);
  color: var(--zg-white);
  text-decoration: none;
  box-shadow: var(--zg-shadow-md);
  transition:
    box-shadow var(--zg-duration-reveal) var(--zg-ease-out-quart),
    transform var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-promo__card:hover {
  color: var(--zg-white);
  box-shadow: var(--zg-shadow-2xl);
}

.zg-promo__card:active {
  transform: scale(var(--zg-press-scale));
}

.zg-promo__image {
  display: block;
  width: 100%;
  aspect-ratio: 1160 / 560;
  object-fit: cover;
}

.zg-promo__footer {
  position: absolute;
  right: var(--zg-space-4);
  bottom: var(--zg-space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--zg-space-2);
  padding: 0.25rem 0.25rem 0.25rem 1.25rem;
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-gray-900);
  color: var(--zg-white);
  font-weight: 700;
}

.zg-promo__footer .zg-chip-arrow {
  background-color: var(--zg-yellow-400);
}

@media (min-width: 768px) {
  .zg-promo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Quick help (rows rendered by handleQuickHelp.js) */
.zg-quick-help {
  display: grid;
  gap: var(--zg-space-3);
}

.Home-page__section__accordion {
  background-color: var(--zg-surface);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-2xl);
  box-shadow: var(--zg-shadow-sm);
  transition: box-shadow var(--zg-duration-reveal) var(--zg-ease-out-quart);
}

.Home-page__section__accordion:hover {
  box-shadow: var(--zg-shadow-lg);
}

.Home-page__section__accordion h3 {
  font-size: inherit;
  font-weight: inherit;
}

.Home-page__section__accordion__title {
  display: flex;
  align-items: center;
  gap: var(--zg-space-4);
  min-height: 4rem;
  padding: var(--zg-space-4) var(--zg-space-5);
  border-radius: var(--zg-radius-2xl);
  color: var(--zg-gray-900);
  font-size: var(--zg-text-base);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.Home-page__section__accordion__title:hover {
  color: var(--zg-gray-900);
}

.Home-page__section__accordion__title > span {
  flex: 1;
}

.Home-page__section__accordion__title > svg {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.75rem;
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-gray-100);
  color: var(--zg-gray-900);
  transition: background-color var(--zg-duration-hover) var(--zg-ease-out);
}

.Home-page__section__accordion__title:hover > svg {
  background-color: var(--zg-yellow-400);
}

@media (min-width: 768px) {
  .zg-quick-help {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .Home-page__section__accordion__title {
    font-size: var(--zg-text-lg);
  }
}

/* Contact card (home and articles) */
.zg-contact {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-6);
  padding: var(--zg-space-8) var(--zg-space-6);
  background-color: var(--zg-surface);
  border-radius: var(--zg-radius-xl);
  box-shadow: var(--zg-shadow-md);
}

.zg-contact__title {
  font-size: var(--zg-text-xl);
  font-weight: 700;
}

.zg-contact__text {
  margin-top: var(--zg-space-2);
  color: var(--zg-gray-600);
}

.zg-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zg-space-3);
}

@media (min-width: 1024px) {
  .zg-contact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--zg-space-8);
  }

  .zg-contact__title {
    font-size: var(--zg-text-2xl);
  }
}

/* Empty state (ema.lt "Daugiau renginių - jau netrukus!") */
.zg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--zg-space-3);
  padding: var(--zg-space-12) var(--zg-space-8);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-3xl);
  background-color: var(--zg-gray-50);
  box-shadow: inset 0 0 32px 0 rgba(4, 6, 9, 0.08);
  color: var(--zg-gray-600);
  text-align: center;
}

/* 10. Breadcrumbs, pagination, page headings ------------------------------ */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--zg-space-1) 0;
  margin-bottom: var(--zg-space-6);
  list-style: none;
  color: var(--zg-gray-500);
  font-size: var(--zg-text-sm);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  margin: 0 0.625rem;
  border-top: 1.5px solid var(--zg-gray-400);
  border-right: 1.5px solid var(--zg-gray-400);
  transform: rotate(45deg);
}

.breadcrumbs a {
  color: var(--zg-gray-500);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--zg-gray-900);
  text-decoration: underline;
}

.breadcrumbs [aria-current] {
  color: var(--zg-gray-900);
  font-weight: 500;
}

.breadcrumbs [aria-current] a {
  color: inherit;
}

.breadcrumbs__link-home {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.zg-page-title {
  margin-bottom: var(--zg-space-8);
  font-size: var(--zg-text-2xl);
  font-weight: 700;
  text-wrap: balance;
}

.zg-page-lead {
  margin-bottom: var(--zg-space-8);
  color: var(--zg-gray-600);
  font-size: var(--zg-text-lg);
}

@media (min-width: 768px) {
  .zg-page-title {
    font-size: var(--zg-text-4xl);
  }
}

.pagination {
  padding-block: var(--zg-space-6);
  font-family: var(--zg-font-ui);
  font-size: var(--zg-text-sm);
}

.pagination ul,
.pagination-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zg-space-2);
  list-style: none;
}

.pagination li a,
.pagination li span,
.pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 var(--zg-space-3);
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-white);
  color: var(--zg-gray-900);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--zg-shadow-xs);
}

.pagination li a:hover {
  background-color: var(--zg-gray-100);
  color: var(--zg-gray-900);
}

.pagination .pagination-current,
.pagination .pagination-current a,
.pagination .pagination-current span {
  background-color: var(--zg-gray-900);
  color: var(--zg-yellow-400);
}

/* Link lists (category/section fallback pages, related articles) */
.zg-link-list {
  display: grid;
  gap: var(--zg-space-2);
  list-style: none;
}

.zg-link-list__item {
  display: flex;
  align-items: center;
  gap: var(--zg-space-3);
  min-height: 3.5rem;
  padding: var(--zg-space-3) var(--zg-space-4);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-xl);
  background-color: var(--zg-surface);
  color: var(--zg-gray-900);
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--zg-shadow-xs);
  transition: box-shadow var(--zg-duration-reveal) var(--zg-ease-out-quart);
}

.zg-link-list__item:hover {
  color: var(--zg-gray-900);
  box-shadow: var(--zg-shadow-lg);
}

.zg-link-list__item:hover .zg-chip-arrow {
  background-color: var(--zg-yellow-400);
}

.zg-link-list__text {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--zg-space-2);
  min-width: 0;
}

.zg-link-list--nested {
  margin: var(--zg-space-2) 0 var(--zg-space-6) var(--zg-space-6);
}

.zg-lock {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--zg-radius-md);
  background-color: var(--zg-error-50);
  color: var(--zg-error-700);
}

.zg-lock svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* 11. Article page -------------------------------------------------------- */
.zg-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--zg-space-8);
}

.js-Article_page__toc-column {
  display: none;
}

@media (min-width: 768px) {
  .zg-article-grid {
    grid-template-columns: minmax(0, 1fr) 17rem;
  }

  .js-Article_page__toc-column {
    display: block;
  }

  .js-Article_page__toc-inline {
    display: none;
  }
}

@media (min-width: 1024px) {
  .zg-article-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: var(--zg-space-12);
  }
}

body.zg-article-sidebar-inline .zg-article-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.zg-article-sidebar-inline .js-Article_page__toc-column {
  display: none;
}

body.zg-article-sidebar-inline .js-Article_page__toc-inline {
  display: block;
}

[data-section='Article'] {
  min-width: 0;
}

/* IKB background: handleInternalResources writes the tint inline. */
[data-section='Article'][style*='background-color'] {
  padding: var(--zg-space-4);
  border-radius: var(--zg-radius-3xl);
}

.zg-article__card {
  padding: var(--zg-space-6);
  background-color: var(--zg-surface);
  border-radius: var(--zg-radius-xl);
  box-shadow: var(--zg-shadow-md);
}

@media (min-width: 768px) {
  .zg-article__card {
    padding: var(--zg-space-10);
  }
}

.zg-article__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--zg-space-4);
  margin-bottom: var(--zg-space-8);
}

.zg-article__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--zg-space-3);
  font-size: var(--zg-text-2xl);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .zg-article__title {
    font-size: var(--zg-text-4xl);
  }
}

.zg-article__meta {
  margin-top: var(--zg-space-3);
  color: var(--zg-gray-500);
  font-size: var(--zg-text-sm);
}

/* Share popover (articlePage.js) */
#Article-page__share-section {
  position: relative;
  flex-shrink: 0;
}

#Article-page__share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--zg-border-strong);
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-white);
  transition: background-color var(--zg-duration-hover) var(--zg-ease-out);
}

#Article-page__share-icon:hover,
#Article-page__share-icon[aria-expanded='true'] {
  background-color: var(--zg-yellow-400);
  border-color: var(--zg-yellow-400);
}

#Article-page__share-icon img {
  width: 1.25rem;
  height: 1.25rem;
}

#Article-page__share-wrapper {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 30;
  align-items: center;
  padding: var(--zg-space-1);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-white);
  box-shadow: var(--zg-shadow-lg);
}

#Article-page__share-wrapper.flex {
  display: flex;
}

#Article-page__share-wrapper .share {
  display: flex;
  gap: var(--zg-space-1);
  list-style: none;
}

#Article-page__share-wrapper .share a,
#share-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--zg-radius-full);
  background: transparent;
}

#Article-page__share-wrapper .share a:hover,
#share-copy-link:hover {
  background-color: var(--zg-gray-100);
}

#Article-page__share-wrapper img {
  width: 1.125rem;
  height: 1.125rem;
}

.Article-page__sharing__corner {
  display: none;
}

/* Article body typography */
.Article_page__article-body {
  overflow-wrap: break-word;
  color: var(--zg-gray-800);
  font-size: var(--zg-text-lg);
  line-height: 1.7;
}

.Article_page__article-body > * + * {
  margin-top: 1.25em;
}

.Article_page__article-body h2,
.Article_page__article-body h3,
.Article_page__article-body h4 {
  margin-top: 2em;
  scroll-margin-top: calc(var(--zg-header-height) + 1.5rem);
}

.Article_page__article-body h2 {
  font-size: var(--zg-text-2xl);
}

.Article_page__article-body h3 {
  font-size: var(--zg-text-xl);
}

.Article_page__article-body h4 {
  font-size: var(--zg-text-lg);
}

.Article_page__article-body > :first-child {
  margin-top: 0;
}

.Article_page__article-body a {
  color: var(--zg-yellow-700) !important;
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.Article_page__article-body a:visited,
.Article_page__article-body a:visited *,
.Article_page__article-body a * {
  color: var(--zg-yellow-700) !important;
}

.Article_page__article-body a:hover,
.Article_page__article-body a:hover * {
  color: var(--zg-yellow-800) !important;
}

.Article_page__article-body ul,
.Article_page__article-body ol {
  padding-left: 1.5em;
}

.Article_page__article-body li + li {
  margin-top: 0.4em;
}

.Article_page__article-body ul li::marker {
  color: var(--zg-yellow-400);
}

.Article_page__article-body img {
  display: block;
  border-radius: var(--zg-radius-xl);
  cursor: zoom-in;
}

.Article_page__article-body iframe {
  border: 0;
  border-radius: var(--zg-radius-xl);
}

.Article_page__article-body blockquote {
  padding: var(--zg-space-4) var(--zg-space-5);
  border-left: 4px solid var(--zg-yellow-400);
  border-radius: 0 var(--zg-radius-xl) var(--zg-radius-xl) 0;
  background-color: var(--zg-gray-50);
  color: var(--zg-gray-700);
}

.Article_page__article-body code {
  padding: 0.125em 0.375em;
  border-radius: var(--zg-radius-sm);
  background-color: var(--zg-gray-100);
  font-size: 0.875em;
}

.Article_page__article-body pre {
  margin: 0;
  padding: var(--zg-space-4);
  overflow-x: auto;
  background-color: var(--zg-gray-50);
  font-size: var(--zg-text-sm);
}

.Article_page__article-body pre code {
  padding: 0;
  background: none;
}

.Article_page__article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--zg-text-base);
}

.Article_page__article-body th,
.Article_page__article-body td {
  padding: var(--zg-space-3);
  border: 1px solid var(--zg-border-strong);
  text-align: start;
  vertical-align: top;
}

.Article_page__article-body th {
  background-color: var(--zg-gray-50);
  color: var(--zg-gray-900);
}

.Article_page__article-body details {
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-xl);
  background-color: var(--zg-gray-25);
}

.Article_page__article-body summary {
  padding: var(--zg-space-4);
  color: var(--zg-gray-900);
  font-weight: 600;
  cursor: pointer;
}

.Article_page__article-body summary > * {
  display: inline;
  margin: 0;
}

.Article_page__article-body details[open] > :not(summary) {
  margin: 0 var(--zg-space-4) var(--zg-space-4);
}

.Article_page__article-body hr {
  border: 0;
  border-top: 1px solid var(--zg-border-strong);
}

/* Copy-to-clipboard code block (handleCopyToClipboard.js) */
.Article_page__article-body-codeBlock {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--zg-border-strong);
  border-radius: var(--zg-radius-xl);
  background-color: var(--zg-gray-50);
}

.Article_page__article-body-codeBlock pre {
  padding-right: 3.5rem;
}

.Article_page__article-body-codeBlock button {
  position: absolute;
  top: var(--zg-space-1);
  right: var(--zg-space-1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--zg-radius-md);
  background-color: var(--zg-gray-50);
  cursor: copy;
}

.Article_page__article-body-codeBlock button:hover {
  background-color: var(--zg-gray-100);
}

/* Image zoom (handleImgModal.js) */
.Article_page__imgModal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.Article_page__imgModal.modal-open {
  display: flex !important;
}

.Article_page__imgModal-background {
  position: absolute;
  inset: 0;
  background-color: rgba(4, 6, 9, 0.85);
}

.Article_page__imgModal-img-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--zg-space-4);
}

.Article_page__imgModal img {
  width: auto;
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--zg-radius-xl);
  cursor: zoom-out;
}

.js-Article_page__imgModal-close {
  position: absolute;
  top: var(--zg-space-4);
  right: var(--zg-space-4);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-yellow-400);
}

.js-Article_page__imgModal-close img {
  width: 1rem;
  height: 1rem;
  filter: brightness(0);
}

/* Table of contents (generateTOC.js) */
.js-Article_page__toc-inline {
  margin-bottom: var(--zg-space-8);
}

.Article_page__toc-sidebar {
  position: sticky;
  top: calc(var(--zg-header-height) + var(--zg-space-6));
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-4);
  padding-bottom: var(--zg-space-4);
}

.Article_page__toc-sidebar.is-in-flow {
  position: static;
}

body:has(.zg-chat-cta) .Article_page__toc-sidebar {
  padding-bottom: 7rem;
}

.Article_page__toc-sidebar [data-section='Table of Contents'] {
  margin: 0;
}

.Article_page__tableOfContents {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-4);
  padding: var(--zg-space-6);
  overflow-wrap: break-word;
  background-color: var(--zg-surface);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-xl);
  box-shadow: var(--zg-shadow-md);
}

.Article_page__tableOfContents-title {
  color: var(--zg-gray-900);
  font-size: var(--zg-text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.Article_page__tableOfContents-content .mainItems {
  padding-top: var(--zg-space-3);
}

.Article_page__tableOfContents-content .mainItems:first-of-type {
  padding-top: 0;
}

.Article_page__tableOfContents-content.isHidden .mainItems:first-of-type {
  padding-top: var(--zg-space-3);
}

.Article_page__tableOfContents-content .nestedItems {
  padding-top: var(--zg-space-2);
  padding-left: var(--zg-space-4);
  border-left: 1px solid var(--zg-border-strong);
}

.Article_page__tableOfContents-content .mainItems + .nestedItems {
  margin-top: var(--zg-space-2);
}

.Article_page__tableOfContents-content a {
  position: relative;
  display: block;
  color: var(--zg-gray-700);
  font-size: var(--zg-text-base);
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}

.Article_page__tableOfContents-content .nestedItems a {
  color: var(--zg-gray-500);
  font-size: var(--zg-text-sm);
  font-weight: 400;
}

@media (hover: hover) {
  .Article_page__tableOfContents-content a:hover {
    color: var(--zg-gray-900);
    text-decoration: underline;
  }
}

.Article_page__tableOfContents-content a[aria-current] {
  color: var(--zg-gray-900);
  font-weight: 700;
}

.Article_page__tableOfContents-content a[aria-current]::before {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-yellow-400);
}

.Article_page__tableOfContents-content .mainItems a[aria-current]::before {
  inset-inline-start: -14px;
}

.Article_page__tableOfContents-content .nestedItems a[aria-current]::before {
  inset-inline-start: -18px;
}

.Article_page__tableOfContents-content.isHidden {
  display: block;
  height: 0;
  margin-inline-start: -20px;
  padding-inline-start: 20px;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  /* Closing eases in as well as out. An ease-out curve alone spends most of the
     travel in the first few frames, which reads as the list snapping shut. */
  transition:
    height 380ms cubic-bezier(0.45, 0, 0.2, 1),
    opacity 240ms ease-out,
    visibility 0s linear 380ms;
}

.Article_page__tableOfContents.expanded .Article_page__tableOfContents-content.isHidden {
  visibility: visible;
  opacity: 1;
  transition:
    height 380ms cubic-bezier(0.45, 0, 0.2, 1),
    opacity 300ms ease-out 80ms,
    visibility 0s;
}

.Article_page__show-all-button {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--zg-space-2);
  min-height: 2.5rem;
  padding: 0 var(--zg-space-4);
  border: 0;
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-gray-100);
  color: var(--zg-gray-900);
  font-size: var(--zg-text-sm);
  font-weight: 600;
}

.Article_page__show-all-button:hover {
  background-color: var(--zg-yellow-400);
}

.Article_page__show-all-button__arrow,
.Article_page__show-all-button__arrow-close {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.Article_page__show-all-button__arrow {
  margin-bottom: 3px;
  transform: rotate(135deg);
}

.Article_page__show-all-button__arrow-close {
  margin-bottom: -3px;
  transform: rotate(-45deg);
}

/* Article translations (handleLocalizedArticles.js) */
.Article_page__article-translations {
  margin-top: var(--zg-space-8);
  padding-top: var(--zg-space-6);
  border-top: 1px solid var(--zg-border);
  color: var(--zg-gray-600);
  font-size: var(--zg-text-sm);
}

.Article_page__article-translations-label {
  font-weight: 700;
}

.Article_page__article-translations a {
  color: var(--zg-link);
  font-weight: 600;
  text-decoration: underline;
}

.Article_page__article-translations a:hover {
  color: var(--zg-link-hover);
}

/* Contact block under the article */
.Article_page__article-contact {
  margin-top: var(--zg-space-6);
}

/* Vote card */
.Article_page__article-feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--zg-space-4);
  margin-top: var(--zg-space-6);
  padding: var(--zg-space-6);
  background-color: var(--zg-surface);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-xl);
  box-shadow: var(--zg-shadow-md);
  color: var(--zg-gray-900);
  text-align: center;
  transition:
    opacity 480ms ease,
    height 480ms ease,
    margin-top 480ms ease,
    padding-top 480ms ease,
    padding-bottom 480ms ease,
    gap 360ms ease,
    border-color 480ms ease,
    box-shadow 480ms ease;
}

.Article_page__article-feedback > div:first-child {
  display: grid;
  align-items: center;
}

#Article_page__article-feedback__question,
#Article_page__article-feedback__success-message {
  grid-area: 1 / 1;
  transition: opacity 360ms ease;
}

#Article_page__article-feedback__question {
  font-weight: 700;
}

#Article_page__article-feedback__success-message {
  color: var(--zg-indigo-500);
  font-weight: 600;
  opacity: 0;
}

.Article_page__article-feedback.is-thanks {
  gap: 0;
}

.Article_page__article-feedback.is-thanks #Article_page__article-feedback__question {
  opacity: 0;
}

.Article_page__article-feedback.is-thanks #Article_page__article-feedback__success-message {
  opacity: 1;
}

@media (min-width: 768px) {
  [data-section='Article'] .Article_page__article-feedback {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
  }
}

.Article_page__toc-sidebar .Article_page__article-feedback {
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  text-align: center;
}

.Article_page__article-feedback.zg-feedback-fading {
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  box-shadow: none;
}

.Article_page__article-feedback.zg-feedback-hidden {
  display: none;
}

/* Two separate round buttons with filled sharp thumbs (ema brand icon set). */
.Article_page__article-votes-controls {
  display: inline-flex;
  align-items: center;
  gap: var(--zg-space-3);
  max-height: 3rem;
  font-size: 0;
  transition:
    opacity 360ms ease,
    max-height 360ms ease,
    max-width 360ms ease;
}

.Article_page__article-votes-controls > span,
.Article_page__article-votes-controls > span > form {
  display: flex;
}

.Article_page__article-votes-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--zg-gray-200);
  border-radius: var(--zg-radius-full);
  box-shadow: var(--zg-shadow-xs);
  background-color: var(--zg-white);
  color: var(--zg-gray-900);
  font-size: 0;
  line-height: 0;
  transition:
    background-color 280ms ease,
    transform 280ms ease,
    width 360ms ease,
    height 360ms ease,
    min-width 360ms ease,
    border-width 360ms ease;
}

.Article_page__article-votes-controls button svg {
  display: none;
}

.Article_page__article-votes-controls button::before {
  content: '';
  width: 1.375rem;
  height: 1.375rem;
  background-color: var(--zg-gray-900);
  -webkit-mask: var(--zg-vote-icon) center / contain no-repeat;
  mask: var(--zg-vote-icon) center / contain no-repeat;
}

.Article_page__article-votes-controls > span[data-ga-slug='No'] button::before {
  transform: rotate(180deg);
}

.Article_page__article-votes-controls > span[data-ga-slug='Yes'] {
  --zg-vote-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z'/%3E%3C/svg%3E");
}

.Article_page__article-votes-controls > span[data-ga-slug='No'] {
  --zg-vote-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z'/%3E%3C/svg%3E");
}

.Article_page__article-feedback.is-thanks .Article_page__article-votes-controls {
  max-width: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.Article_page__article-feedback.is-thanks .Article_page__article-votes-controls button {
  width: 0;
  min-width: 0;
  height: 0;
  border-width: 0;
}

.Article_page__article-votes-controls button:hover,
.Article_page__article-votes-controls button:active,
.Article_page__article-votes-controls button[aria-pressed='true'],
.Article_page__article-votes-controls button.is-chosen {
  border-color: var(--zg-gray-900);
  background-color: var(--zg-yellow-400);
}

.Article_page__article-votes-controls button:active {
  transform: scale(var(--zg-press-scale));
}

.Article_page__article-votes-controls button:focus-visible {
  outline: 2px solid var(--zg-gray-900);
  outline-offset: 3px;
}

.Article_page__article-votes-controls button[disabled][aria-pressed='false'] {
  opacity: 0.4;
}

/* Related articles ({{related_articles}}) */
.related-articles {
  margin-top: var(--zg-space-10);
}

.related-articles h2,
.related-articles-title {
  margin-bottom: var(--zg-space-4);
  font-size: var(--zg-text-xl);
  font-weight: 700;
}

.related-articles ul {
  display: grid;
  gap: var(--zg-space-2);
  list-style: none;
}

.related-articles a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zg-space-3);
  min-height: 3.5rem;
  padding: var(--zg-space-3) var(--zg-space-4);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-xl);
  background-color: var(--zg-surface);
  color: var(--zg-gray-900);
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--zg-shadow-xs);
}

.related-articles a::after {
  content: '';
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.25rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.related-articles a:hover {
  color: var(--zg-gray-900);
  box-shadow: var(--zg-shadow-lg);
}

/* Mobile dock: TOC + vote pinned to the bottom on phones */
.zg-article-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  padding:
    0
    max(12px, env(safe-area-inset-right))
    calc(12px + env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  pointer-events: none;
}

.zg-article-dock__panel {
  width: 100%;
  max-width: 45rem;
  min-width: 0;
  margin: 0 auto;
  pointer-events: auto;
}

.zg-article-dock__sheet {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
  background-color: var(--zg-white);
  border: 0 solid var(--zg-border);
  border-radius: var(--zg-radius-2xl);
  box-shadow: var(--zg-shadow-xl);
  opacity: 0;
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease,
    visibility 0s linear 0.25s;
}

.zg-article-dock.is-expanded .zg-article-dock__sheet {
  max-height: min(50vh, 24rem, calc(100vh - var(--zg-header-height) - var(--zg-article-dock-height, 4rem) - 2rem));
  max-height: min(60dvh, 28rem, calc(100dvh - var(--zg-header-height) - var(--zg-article-dock-height, 4rem) - 2rem));
  margin-bottom: var(--zg-space-2);
  overflow-y: auto;
  visibility: visible;
  border-width: 1px;
  opacity: 1;
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease,
    visibility 0s;
}

.zg-article-dock .js-Article_page__toc-inline {
  display: block;
  margin: 0;
}

.zg-article-dock .Article_page__tableOfContents {
  gap: 0;
  padding: var(--zg-space-3) var(--zg-space-4) var(--zg-space-3) var(--zg-space-8);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.zg-article-dock .Article_page__tableOfContents-title,
.zg-article-dock .Article_page__show-all-button {
  display: none;
}

.zg-article-dock .Article_page__tableOfContents-content.isHidden {
  height: auto !important;
  overflow: visible;
  visibility: visible;
  opacity: 1;
  transition: none;
}

.zg-article-dock .Article_page__tableOfContents-content a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

.zg-article-dock__bar {
  display: flex;
  align-items: center;
  gap: var(--zg-space-3);
  width: 100%;
  min-width: 0;
  min-height: 3.5rem;
  padding: var(--zg-space-2) var(--zg-space-3);
  background-color: var(--zg-white);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-2xl);
  box-shadow: var(--zg-shadow-xl);
}

.zg-article-dock__vote {
  flex: 0 0 auto;
}

.zg-article-dock__vote:empty {
  display: none;
}

.zg-article-dock__bar:has([data-toc-toggle][hidden]) {
  justify-content: center;
}

.zg-article-dock .Article_page__article-feedback {
  flex-direction: row;
  align-items: center;
  gap: var(--zg-space-2);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: start;
}

.zg-article-dock #Article_page__article-feedback__question {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.zg-article-dock #Article_page__article-feedback__success-message {
  max-width: 9rem;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.zg-article-dock__toc-toggle {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: var(--zg-space-2);
  min-width: 0;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--zg-gray-900);
  text-align: start;
}

.zg-article-dock__toc-toggle:focus-visible {
  border-radius: var(--zg-radius-md);
}

.zg-article-dock__toc-label {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--zg-space-2);
  min-width: 0;
}

.zg-article-dock__toc-title {
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.zg-article-dock__toc-action {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.zg-article-dock__toc-action-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.zg-article-dock__toc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
}

/* The chevron points up (open the list) and turns over when the sheet is open. */
.zg-article-dock__toc-glyph {
  display: block;
  width: 1rem;
  height: 1rem;
  transition: transform 250ms cubic-bezier(0.33, 1, 0.68, 1);
}

.zg-article-dock.is-expanded .zg-article-dock__toc-glyph {
  transform: rotate(180deg);
}

.zg-article-dock__toc-menu {
  flex-shrink: 0;
}

html.zg-has-article-dock {
  --zg-article-dock-offset: var(--zg-article-dock-height, 0px);
}

html.zg-has-article-dock body {
  padding-bottom: var(--zg-article-dock-height, 0px);
}

html.zg-scroll-locked .zg-article-dock {
  display: none !important;
}

html.zg-scroll-locked.zg-has-article-dock {
  --zg-article-dock-offset: 0px;
}

html.zg-article-dock-open .zg-chat-cta {
  visibility: hidden;
  pointer-events: none;
}

body.zg-cookie-consent-open .zg-article-dock {
  bottom: max(7.5rem, var(--zg-chat-footer-clearance, 0px));
}

@media (max-width: 640px) {
  body.zg-cookie-consent-open .zg-article-dock {
    bottom: max(9.5rem, var(--zg-chat-footer-clearance, 0px));
  }

  html.zg-has-article-dock body.zg-cookie-consent-open {
    padding-bottom: calc(9.5rem + var(--zg-article-dock-height, 0px));
  }
}

@media (min-width: 641px) {
  html.zg-has-article-dock body.zg-cookie-consent-open {
    padding-bottom: calc(7.5rem + var(--zg-article-dock-height, 0px));
  }
}

@media (min-width: 768px) {
  .zg-article-dock {
    display: none !important;
  }
}

/* 12. Search results ------------------------------------------------------ */
.zg-results__count {
  margin-bottom: var(--zg-space-4);
  color: var(--zg-gray-600);
  font-size: var(--zg-text-sm);
  font-weight: 500;
}

.zg-results {
  display: grid;
  gap: var(--zg-space-3);
}

.zg-result {
  display: flex;
  align-items: center;
  gap: var(--zg-space-4);
  padding: var(--zg-space-4) var(--zg-space-5);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-xl);
  background-color: var(--zg-surface);
  color: var(--zg-gray-900);
  text-decoration: none;
  box-shadow: var(--zg-shadow-xs);
  transition: box-shadow var(--zg-duration-reveal) var(--zg-ease-out-quart);
}

.zg-result:hover {
  color: var(--zg-gray-900);
  box-shadow: var(--zg-shadow-lg);
}

.zg-result:hover .zg-chip-arrow {
  background-color: var(--zg-yellow-400);
}

.zg-result__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--zg-space-1);
  min-width: 0;
}

.zg-result__title {
  font-size: var(--zg-text-lg);
  font-weight: 600;
  line-height: 1.35;
}

.zg-result__path {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  color: var(--zg-gray-500);
  font-size: var(--zg-text-sm);
}

.zg-result__path li + li::before {
  content: '/';
  margin: 0 0.375rem;
  color: var(--zg-gray-300);
}

/* 13. Forms --------------------------------------------------------------- */
.zg-form-card {
  padding: var(--zg-space-6);
  background-color: var(--zg-surface);
  border-radius: var(--zg-radius-xl);
  box-shadow: var(--zg-shadow-md);
}

@media (min-width: 768px) {
  .zg-form-card {
    padding: var(--zg-space-8);
  }
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-6);
}

.form-field label {
  display: block;
  margin-bottom: var(--zg-space-2);
  color: var(--zg-gray-900);
  font-weight: 600;
}

.form-field input[type='text'],
.form-field input[type='email'],
.form-field input[type='number'],
.form-field select,
.form-field textarea,
.form-field .nesty-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--zg-border-strong);
  border-radius: var(--zg-radius-lg);
  background-color: var(--zg-white);
  color: var(--zg-gray-900);
  box-shadow: var(--zg-shadow-xs);
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--zg-gray-900);
  outline: none;
  box-shadow: 0 0 0 3px var(--zg-yellow-400);
}

.form-field [aria-invalid='true'] {
  border-color: var(--zg-error-600);
}

.form-field p,
.zg-form-hint {
  margin-top: var(--zg-space-1);
  color: var(--zg-gray-500);
  font-size: var(--zg-text-sm);
}

.form-field input[type='checkbox'] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  accent-color: var(--zg-gray-900);
}

.zg-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--zg-space-3);
}

.zg-checkbox-row label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.zg-required {
  color: var(--zg-error-600);
}

.notification-error {
  margin-top: var(--zg-space-2);
  padding: var(--zg-space-2) var(--zg-space-3);
  border: 1px solid var(--zg-error-200);
  border-radius: var(--zg-radius-md);
  background-color: var(--zg-error-50);
  color: var(--zg-error-700);
  font-size: var(--zg-text-sm);
  font-weight: 500;
}

.upload-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: var(--zg-space-4);
  border: 1px dashed var(--zg-gray-300);
  border-radius: var(--zg-radius-xl);
  background-color: var(--zg-gray-25);
  color: var(--zg-gray-600);
  text-align: center;
}

.upload-dropzone:hover,
.upload-dropzone:focus-within {
  border-color: var(--zg-gray-900);
}

.upload-dropzone input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.zg-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zg-space-3);
}

.request-form input[type='submit'],
.request-form input[type='reset'] {
  min-height: 2.75rem;
  padding: 0.625rem 1.75rem;
  border: 1px solid var(--zg-gray-900);
  border-radius: var(--zg-radius-full);
  font-weight: 600;
  cursor: pointer;
}

.request-form input[type='submit'] {
  background-color: var(--zg-gray-900);
  border-color: var(--zg-yellow-400);
  color: var(--zg-yellow-400);
}

.request-form input[type='submit']:hover {
  background-color: var(--zg-gray-700);
}

.request-form input[type='reset'] {
  background-color: var(--zg-white);
  border-color: var(--zg-border-strong);
  color: var(--zg-gray-900);
}

.zg-form-note {
  margin-top: var(--zg-space-6);
  color: var(--zg-gray-600);
  font-size: var(--zg-text-sm);
}

/* Self-service (chat) card on the request page */
.SelfService-section__list--item {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-4);
  padding: var(--zg-space-8);
  list-style: none;
  border-radius: var(--zg-radius-3xl);
  background-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
  box-shadow: var(--zg-shadow-lg);
}

.SelfService-section__list--item h3 {
  font-size: var(--zg-text-2xl);
  font-weight: 900;
}

.SelfService-section__list--item-header img {
  filter: brightness(0);
}

.SelfService-section__list--item button {
  display: inline-flex;
  align-items: center;
  gap: var(--zg-space-2);
  width: fit-content;
  min-height: 2.75rem;
  padding: 0.625rem 1.5rem;
  border: 1px solid var(--zg-gray-900);
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-gray-900);
  color: var(--zg-yellow-400);
  font-weight: 600;
}

.SelfService-section__list--item button svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Markup generated by forms-bundle.js */
.zg-form-disclaimer {
  margin-top: var(--zg-space-6);
  color: var(--zg-gray-600);
  font-size: var(--zg-text-sm);
  font-weight: 500;
}

.zg-form-disclaimer ul {
  display: grid;
  gap: var(--zg-space-2);
  margin-top: var(--zg-space-3);
  list-style: none;
}

.zg-form-disclaimer ul a {
  display: flex;
  align-items: center;
  gap: var(--zg-space-3);
  padding: var(--zg-space-3) var(--zg-space-4);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-xl);
  background-color: var(--zg-surface);
  color: var(--zg-gray-900);
  text-decoration: none;
  box-shadow: var(--zg-shadow-xs);
}

.zg-form-disclaimer ul a:hover {
  box-shadow: var(--zg-shadow-lg);
}

.zg-form-disclaimer ul a > span:first-child {
  flex: 1;
}

.zg-form-disclaimer svg {
  width: 1rem;
  height: 1rem;
}

.upload-pool {
  display: grid;
  gap: var(--zg-space-2);
  margin-top: var(--zg-space-3);
}

.upload-item {
  display: flex;
  align-items: center;
  gap: var(--zg-space-2);
  padding: var(--zg-space-2) var(--zg-space-3);
  border-radius: var(--zg-radius-lg);
  background-color: var(--zg-gray-50);
  font-size: var(--zg-text-sm);
}

.upload-link {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.upload-link.text-critical {
  color: var(--zg-error-700);
}

.upload-progress {
  color: var(--zg-gray-500);
}

.upload-remove {
  display: inline-flex;
  padding: var(--zg-space-1);
  border: 0;
  border-radius: var(--zg-radius-full);
  background: none;
  color: var(--zg-error-700);
}

.upload-remove:hover {
  background-color: var(--zg-error-50);
}

.multiselect-enhanced {
  position: relative;
}

.multiselect-toggle {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--zg-border-strong);
  border-radius: var(--zg-radius-lg);
  background-color: var(--zg-white);
  cursor: pointer;
}

.multiselect-toggle:focus-visible,
.multiselect-toggle[aria-expanded='true'] {
  border-color: var(--zg-gray-900);
  outline: none;
  box-shadow: 0 0 0 3px var(--zg-yellow-400);
}

.multiselect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zg-space-1);
}

.multiselect-placeholder {
  color: var(--zg-gray-500);
}

.multiselect-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--zg-space-1);
  padding: 0.125rem 0.375rem 0.125rem 0.625rem;
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-gray-100);
  font-size: var(--zg-text-sm);
}

.multiselect-tag-remove {
  padding: 0 0.25rem;
  border: 0;
  border-radius: var(--zg-radius-full);
  background: none;
  line-height: 1.4;
}

.multiselect-tag-remove:hover {
  background-color: var(--zg-yellow-400);
}

.multiselect-dropdown {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 16rem;
  overflow-y: auto;
  padding: var(--zg-space-1);
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-lg);
  background-color: var(--zg-white);
  box-shadow: var(--zg-shadow-lg);
}

.multiselect-option {
  display: flex;
  align-items: center;
  gap: var(--zg-space-2);
  margin: 0 !important;
  padding: var(--zg-space-2) var(--zg-space-3);
  border-radius: var(--zg-radius-md);
  font-weight: 500 !important;
  cursor: pointer;
}

.multiselect-option:hover {
  background-color: var(--zg-gray-50);
}

.multiselect-checkbox {
  accent-color: var(--zg-gray-900);
}

/* 14. Error page ---------------------------------------------------------- */
.zg-error__code {
  display: block;
  color: var(--zg-gray-900);
  font-size: 4.5rem;
  font-variation-settings: var(--zg-font-display-settings);
  font-weight: 900;
  line-height: 1;
}

.zg-error__message {
  display: block;
  margin-top: var(--zg-space-3);
  color: var(--zg-gray-900);
  font-size: var(--zg-text-xl);
  font-weight: 700;
}

.zg-error__title {
  max-width: 36rem;
}

.zg-error__grid {
  display: grid;
  gap: var(--zg-space-4);
}

.zg-error__card p {
  color: var(--zg-gray-600);
}

.zg-error__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--zg-space-6);
  padding: var(--zg-space-6);
  background-color: var(--zg-surface);
  border-radius: var(--zg-radius-xl);
  box-shadow: var(--zg-shadow-md);
  color: var(--zg-gray-600);
}

@media (min-width: 768px) {
  .zg-error__code {
    font-size: 8.5rem;
  }

  .zg-error__message {
    font-size: var(--zg-text-2xl);
  }

  .zg-error__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 15. Footer -------------------------------------------------------------- */
.zg-footer {
  margin-top: var(--zg-space-8);
  padding-block: var(--zg-space-16);
  background-color: var(--zg-black);
  color: var(--zg-gray-300);
}

.zg-footer a {
  color: var(--zg-gray-300);
  text-decoration: none;
}

.zg-footer a:hover {
  color: var(--zg-white);
}

.zg-footer :focus-visible {
  outline-color: var(--zg-yellow-400);
}

.zg-footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-8);
}

.zg-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--zg-space-6);
}

.zg-footer a.zg-footer__logo {
  color: var(--zg-yellow-400);
}

.zg-footer a.zg-footer__logo:hover {
  color: var(--zg-yellow-400);
}

.zg-footer .zg-wordmark {
  height: 1.5rem;
}

.zg-footer__social-title {
  max-width: 24rem;
  color: var(--zg-white);
  font-size: var(--zg-text-2xl);
  font-variation-settings: var(--zg-font-display-settings);
  font-weight: 900;
  line-height: 1.15;
}

.zg-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zg-space-3);
}

.zg-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--zg-gray-600);
  border-radius: var(--zg-radius-full);
  color: var(--zg-yellow-400);
}

.zg-footer__social a:hover {
  color: var(--zg-white);
}

.zg-footer__social svg {
  width: 1.5rem;
  height: 1.5rem;
}

.zg-footer__aside {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-8);
}

.zg-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--zg-space-8);
}

.zg-footer__col-title {
  margin-bottom: var(--zg-space-5);
  color: var(--zg-gray-400);
  font-size: var(--zg-text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zg-footer__col a {
  color: var(--zg-white);
}

.zg-footer__col a:hover {
  color: var(--zg-yellow-400);
}

.zg-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-4);
  list-style: none;
  font-weight: 600;
}

.zg-footer__divider {
  margin-top: var(--zg-space-12);
  padding-top: var(--zg-space-12);
  border-top: 1px solid var(--zg-gray-700);
}

.zg-footer__newsletter {
  display: block;
}

.zg-footer__newsletter-form {
  display: grid;
  gap: var(--zg-space-3);
}

.zg-footer__newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--zg-space-3);
  color: var(--zg-gray-300);
  font-size: var(--zg-text-sm);
}

.zg-footer__newsletter-consent input {
  margin-top: 0.2rem;
  accent-color: var(--zg-yellow-400);
}

.zg-footer .zg-footer__newsletter .zg-btn {
  background-color: var(--zg-yellow-400);
  border-color: var(--zg-yellow-400);
  color: var(--zg-gray-900);
}

.zg-footer__newsletter-title {
  color: var(--zg-white);
  font-size: var(--zg-text-2xl);
  font-variation-settings: var(--zg-font-display-settings);
  font-weight: 900;
  text-transform: uppercase;
}

.zg-footer__newsletter-text {
  margin-top: var(--zg-space-2);
  color: var(--zg-gray-300);
}

.zg-footer__newsletter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zg-space-3);
}

.zg-footer__newsletter-input {
  flex: 1 1 16rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--zg-gray-600);
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-gray-800);
  color: var(--zg-white);
}

.zg-footer__newsletter-input::placeholder {
  color: var(--zg-gray-400);
}

.zg-footer__newsletter-input:focus {
  border-color: var(--zg-yellow-400);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 221, 1, 0.35);
}

.zg-footer__newsletter-note {
  margin-top: var(--zg-space-3);
  color: var(--zg-gray-400);
  font-size: var(--zg-text-sm);
}

.zg-footer__newsletter-note a,
.zg-footer__legal a {
  text-decoration: underline;
}

.zg-footer__newsletter-status {
  margin-top: var(--zg-space-2);
  font-size: var(--zg-text-sm);
  font-weight: 600;
}

.zg-footer__newsletter-status:empty {
  display: none;
}

.zg-footer__newsletter-status--ok {
  color: var(--zg-yellow-400);
}

.zg-footer__newsletter-status--error {
  color: #ff8a80;
}

.zg-footer__contacts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--zg-space-4);
  margin-bottom: var(--zg-space-8);
}

.zg-footer__contacts-head h2 {
  color: var(--zg-white);
  font-size: var(--zg-text-2xl);
  font-weight: 700;
}

.zg-footer .zg-btn--outline {
  border-color: var(--zg-gray-600);
  background-color: transparent;
  color: var(--zg-white);
}

.zg-footer .zg-btn--outline:hover {
  border-color: var(--zg-yellow-400);
  color: var(--zg-yellow-400);
}

.zg-footer__contacts-grid {
  display: grid;
  gap: var(--zg-space-8);
}

.zg-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-1);
}

.zg-footer__contact-title {
  margin-bottom: var(--zg-space-2);
  color: var(--zg-yellow-400);
  font-size: var(--zg-text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zg-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-6);
  margin-top: var(--zg-space-12);
  padding-top: var(--zg-space-8);
}

.zg-footer__meta {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-4);
}

.zg-footer__meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zg-space-3) var(--zg-space-6);
}

.zg-footer__meta-links a {
  color: var(--zg-gray-300);
  white-space: nowrap;
}

.zg-footer__meta-links a:hover {
  color: var(--zg-white);
}

.zg-footer__omnisend:empty {
  display: none;
}

.zg-footer__omnisend:not(:empty) {
  margin-top: var(--zg-space-12);
  padding-top: var(--zg-space-8);
  border-top: 1px solid var(--zg-gray-700);
}

/* Cookiebot's slide-up dialog sits above the sticky header and the article dock. */
#CybotCookiebotDialog {
  z-index: 2147483000 !important;
}

.zg-footer__legal-group {
  display: flex;
  flex-direction: column;
  gap: var(--zg-space-2);
}

.zg-footer__legal {
  color: var(--zg-gray-400);
  font-size: var(--zg-text-sm);
  letter-spacing: 0.02em;
}

.zg-footer__legal a {
  color: var(--zg-gray-300);
}

.zg-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zg-space-3);
}

.zg-footer__badges img {
  display: block;
  height: 2.5rem;
  width: auto;
}

@media (min-width: 768px) {
  .zg-footer__social-title {
    font-size: var(--zg-text-3xl);
  }

  .zg-footer__top {
    flex-direction: row;
    gap: var(--zg-space-12);
    padding-bottom: var(--zg-space-12);
    border-bottom: 1px solid rgba(152, 162, 179, 0.35);
  }

  .zg-footer__brand,
  .zg-footer__aside {
    flex: 1;
  }

  .zg-footer__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .zg-footer__contacts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 16. Live chat, cookie consent ------------------------------------------- */
.zg-chat-cta {
  position: fixed;
  right: var(--zg-space-6);
  bottom: calc(max(1.5rem, var(--zg-chat-footer-clearance, 0px)) + var(--zg-article-dock-offset, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--zg-space-3);
  padding: 0.375rem 1.25rem 0.375rem 0.375rem;
  border: 1px solid var(--zg-yellow-400);
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-gray-900);
  color: var(--zg-white);
  box-shadow: var(--zg-shadow-2xl);
  transition:
    background-color var(--zg-duration-hover) var(--zg-ease-out),
    transform var(--zg-duration-hover) var(--zg-ease-out);
}

.zg-chat-cta:hover,
.zg-chat-cta:focus-visible {
  background-color: var(--zg-gray-700);
  transform: translateY(-2px);
}

.zg-chat-cta__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-yellow-400);
}

.zg-chat-cta__icon img {
  width: 1.375rem;
  height: 1.375rem;
  filter: brightness(0);
}

.zg-chat-cta__text {
  line-height: 1.2;
  text-align: start;
  white-space: nowrap;
}

.zg-chat-cta__title {
  font-size: var(--zg-text-base);
  font-weight: 700;
}

@media (max-width: 640px) {
  .zg-chat-cta {
    right: var(--zg-space-4);
    bottom: calc(max(1rem, var(--zg-chat-footer-clearance, 0px)) + var(--zg-article-dock-offset, 0px));
    padding: 0.25rem;
  }

  .zg-chat-cta__text {
    display: none;
  }
}

body.zg-cookie-consent-open .zg-chat-cta {
  bottom: calc(max(7.5rem, var(--zg-chat-footer-clearance, 0px)) + var(--zg-article-dock-offset, 0px));
}

@media (max-width: 640px) {
  body.zg-cookie-consent-open .zg-chat-cta {
    bottom: calc(max(9.5rem, var(--zg-chat-footer-clearance, 0px)) + var(--zg-article-dock-offset, 0px));
  }
}

body.zg-chat-open .zg-chat-cta {
  display: none;
}

.zg-chat-panel {
  position: fixed;
  right: var(--zg-space-6);
  bottom: calc(max(1.5rem, var(--zg-chat-footer-clearance, 0px)) + var(--zg-article-dock-offset, 0px));
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 23.75rem;
  max-width: calc(100vw - 2rem);
  height: 35rem;
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  border-radius: var(--zg-radius-3xl);
  background-color: var(--zg-white);
  box-shadow: var(--zg-shadow-2xl);
}

.zg-chat-panel[hidden] {
  display: none;
}

.zg-chat-panel--warming {
  right: auto;
  left: -200vw;
  visibility: hidden;
  pointer-events: none;
}

.zg-chat-panel__close {
  position: absolute;
  top: var(--zg-space-3);
  right: var(--zg-space-3);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: var(--zg-radius-full);
  background-color: var(--zg-gray-900);
}

.zg-chat-panel__close:hover {
  background-color: var(--zg-gray-700);
}

.zg-chat-panel__close:focus-visible {
  outline: 2px solid var(--zg-yellow-400);
}

.zg-chat-panel__close img {
  filter: brightness(0) invert(1);
}

.zg-chat-panel__embed {
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.zg-chat-panel__sentinel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  outline: none;
}

.zg-chat-panel__welcome {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--zg-space-2);
  padding: 5.5rem var(--zg-space-8);
  text-align: center;
  pointer-events: none;
}

.zg-chat-panel__welcome-title {
  color: var(--zg-gray-900);
  font-size: var(--zg-text-2xl);
  font-weight: 900;
}

.zg-chat-panel__welcome-text {
  color: var(--zg-gray-500);
}

.zg-chat-panel__error {
  padding: 3.25rem var(--zg-space-5) var(--zg-space-5);
  color: var(--zg-gray-900);
  font-size: var(--zg-text-sm);
}

.zg-chat-panel__error a {
  color: var(--zg-link);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .zg-chat-panel {
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}

body.zg-cookie-consent-open .zg-chat-panel {
  bottom: calc(max(7.5rem, var(--zg-chat-footer-clearance, 0px)) + var(--zg-article-dock-offset, 0px));
  max-height: calc(100vh - 9rem);
}

@media (max-width: 640px) {
  body.zg-cookie-consent-open .zg-chat-panel {
    bottom: 0;
    max-height: none;
  }
}

.zg-cookie-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  background-color: var(--zg-white);
  border-top: 1px solid var(--zg-border);
  box-shadow: var(--zg-shadow-top-sm), var(--zg-shadow-2xl);
}

.zg-cookie-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--zg-space-4) var(--zg-space-6);
  max-width: var(--zg-container);
  margin: 0 auto;
  padding: var(--zg-space-5) var(--zg-space-6);
}

.zg-cookie-consent__text {
  flex: 1 1 20rem;
  color: var(--zg-gray-600);
  font-size: var(--zg-text-sm);
}

.zg-cookie-consent__text a {
  color: var(--zg-link);
  text-decoration: underline;
}

.zg-cookie-consent__actions {
  display: flex;
  flex-shrink: 0;
  gap: var(--zg-space-3);
}

@media (max-width: 640px) {
  .zg-cookie-consent__inner {
    padding: var(--zg-space-4);
  }

  .zg-cookie-consent__actions {
    width: 100%;
  }

  .zg-cookie-consent__actions .zg-btn {
    flex: 1 1 0;
  }
}

/* 17. Motion preferences -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
