/* Natural title wrapping, a quieter subtitle and the 2+1 benefit layout. */
/* Readability fade follows the heading only, not the full CTA/benefit block. */
:is(#main-content, #eexb-preview) .v2-hero .v2-hero__copy::before {
  content: none !important;
  display: none !important;
}
:is(#main-content, #eexb-preview) .v2-hero .v2-hero__copy > h1 {
  position: relative;
  isolation: isolate;
  /* Follow the glyphs instead of whitening a large rectangle of artwork. */
  text-shadow: 0 0 3px #fff, 0 0 7px #fff, 0 0 12px rgba(255, 255, 255, 0.95);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.98);
  paint-order: stroke fill;
}
:is(#main-content, #eexb-preview) .v2-hero .v2-hero__copy > h1::before {
  content: '';
  position: absolute;
  inset: -14px -20px;
  /* A painted feathered ellipse avoids rectangular backdrop-filter edges. */
  background: radial-gradient(ellipse closest-side at center, rgba(255, 255, 255, 0.94) 28%, rgba(255, 255, 255, 0.78) 48%, rgba(255, 255, 255, 0.34) 72%, rgba(255, 255, 255, 0) 100%);
  -webkit-mask-image: none;
  mask-image: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 50%;
  filter: blur(14px);
  z-index: 0;
  pointer-events: none;
}
/* Brighten only the home artwork layer, preserving text and button colours. */
:is(#main-content, #eexb-preview) .v2-hero.v5-brand-hero {
  background: #fff !important;
  isolation: isolate;
}
:is(#main-content, #eexb-preview) .v2-hero.v5-brand-hero::before {
  background: none !important;
}
:is(#main-content, #eexb-preview) .v2-hero.v5-brand-hero::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  inset: 0;
  background: url('../themes/e-exodikastikos/assets/images/hero-pattern.png') left center / auto 100% no-repeat !important;
  filter: contrast(1.1) brightness(1.04);
  z-index: -1;
  pointer-events: none;
}
/* A single-line reading link sizes to its own content column. */
:is(#main-content, #eexb-preview) :is(.eex-mechanism__content, .eex-codeethics__content, .eex-negotiation__content) {
  container-type: inline-size;
}
:is(#main-content, #eexb-preview) :is(.eex-mechanism__more, .eex-home-section-link) {
  display: flex !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  font-size: clamp(10px, 3.4cqi, 16px) !important;
  gap: 6px !important;
  letter-spacing: 0 !important;
}
:is(#main-content, #eexb-preview) .eex-mechanism__more {
  font-size: clamp(11px, 4cqi, 16px) !important;
}
@media (min-width: 901px) {
  /* Locally reinforce the embedded emblem without darkening the whole hero. */
  :is(#main-content, #eexb-preview) .v2-hero.v5-brand-hero::before {
    content: '' !important;
    display: block !important;
    position: absolute;
    inset: 0;
    background: url('../themes/e-exodikastikos/assets/images/hero-pattern.png') left center / 100% 100% no-repeat !important;
    filter: url('eex-emblem-filter.svg#emblem');
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(ellipse 10% 39% at 7% 80%, #000 65%, transparent 100%);
    mask-image: radial-gradient(ellipse 10% 39% at 7% 80%, #000 65%, transparent 100%);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
  }
  :is(#main-content, #eexb-preview) .v2-hero.v5-brand-hero > .v2-hero__grid {
    position: relative;
    z-index: 1;
  }
  :is(#main-content, #eexb-preview) .v2-hero.v5-brand-hero::after {
    background-size: 100% 100% !important;
  }
}
:is(#main-content, #eexb-preview) :is(.eex-mechanism__more, .eex-home-section-link) > span {
  flex: 0 0 auto;
  margin-left: auto;
}
/* Desktop reading arrows stay beside the label, not at the column edge. */
@media (min-width: 901px) {
  :is(#main-content, #eexb-preview) :is(.eex-mechanism__more, .eex-home-section-link) {
    width: fit-content !important;
    max-width: 100%;
    justify-content: flex-start !important;
    gap: 12px !important;
  }
  :is(#main-content, #eexb-preview) :is(.eex-mechanism__more, .eex-home-section-link) > span {
    margin-left: 0 !important;
  }
}
/* Compact editorial slogans, subordinate to the main section heading. */
:is(#main-content, #eexb-preview) .eex-interest-guide__header :is(h1, h2) {
  margin-bottom: 10px !important;
}
:is(#main-content, #eexb-preview) .eex-interest-guide__lead {
  margin: 0 0 18px !important;
  font-size: clamp(15px, 1.4vw, 18px) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #42586f !important;
}
:is(#main-content, #eexb-preview) .eex-interest-guide__lead em {
  font-style: inherit;
  font-weight: inherit;
}
:is(#main-content, #eexb-preview) .eex-interest-guide__header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
:is(#main-content, #eexb-preview) .eex-about-introduction {
  background: #f0f8ff !important;
}

:is(#main-content, #eexb-preview) .eex-about-mechanism {
  background: #fff !important;
}
:is(#main-content, #eexb-preview) .eex-about-introduction__copy > h1 {
  margin: 24px 0 30px !important;
  color: #10345e;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
}
:is(#main-content, #eexb-preview) .v2-hero .v2-hero__copy {
  container-type: inline-size;
  min-width: 0;
}
:is(#main-content, #eexb-preview) .v2-hero .v2-hero__copy > h1 {
  width: 100%;
  max-width: none;
  font-size: clamp(2rem, 1.45rem + 2.5vw, 3.5rem) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  text-align: center;
}
:is(#main-content, #eexb-preview) .v2-hero .eex-hero-primary {
  font-family: Arial, sans-serif !important;
  font-weight: 700 !important;
  position: relative;
  z-index: 1;
  color: #124e88 !important;
  display: block;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}
:is(#main-content, #eexb-preview) .v2-hero .v2-hero__copy > h1 > .eex-hero-subtitle {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: clamp(14px, 1.4vw, 20px);
  white-space: normal;
  font-family: Arial, sans-serif !important;
  -webkit-text-stroke: 0;
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.005em !important;
  color: #173e67 !important;
  isolation: isolate;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
:is(#main-content, #eexb-preview) .v2-hero .eex-hero-subtitle::before {
  content: '';
  position: absolute;
  inset: -5px -10px;
  background: #fff;
  border-radius: 50%;
  filter: blur(9px);
  z-index: -1;
  pointer-events: none;
}
:is(#main-content, #eexb-preview) .v2-hero .ex-hero-steps {
  display: grid !important;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  align-items: center;
  gap: 14px 8px;
  gap: 14px clamp(6px, 2cqi, 14px);
  width: 100%;
  max-width: none;
  margin-inline: auto;
}
/* Gold rules frame only the conjunction; hexagon artwork stays blue. */
:is(#main-content, #eexb-preview) .v2-hero .eex-hero-subtitle > .eex-hero-ampersand {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  width: 85%;
  max-width: 280px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(32px, 3vw, 42px) !important;
  line-height: 1;
  font-weight: 400 !important;
  color: #c7a14b !important;
  flex: 0 0 auto;
}
:is(#main-content, #eexb-preview) .v2-hero .eex-hero-ampersand::before,
:is(#main-content, #eexb-preview) .v2-hero .eex-hero-ampersand::after {
  content: '';
  display: block;
  height: 1px;
  flex: 1 1 0;
  background: #c7a14b;
}
/* On stacked layouts, separate adjacent sections' photos with their copy. */
@media (max-width: 850px) {
  :is(#main-content, #eexb-preview) .eex-negotiation__layout > .eex-negotiation__content {
    order: 1;
  }
  :is(#main-content, #eexb-preview) .eex-negotiation__layout > .eex-negotiation__photo-area {
    order: 2;
  }
}
/* A spacious desktop hero with its heading kept near the upper edge. */
:is(#main-content, #eexb-preview) .eex-about-identity.eex-about-identity--reference {
  background: #fff !important;
  display: block;
  height: auto !important;
  min-height: 360px !important;
  padding: 44px 24px 88px !important;
  text-align: left !important;
}
:is(#main-content, #eexb-preview) .eex-about-identity.eex-about-identity--reference::before {
  /* Brighten only the original decorative images, not the text or the page. */
  content: '' !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url('../themes/e-exodikastikos/assets/images/about-hero-left.png') left center / auto 100% no-repeat,
    url('../themes/e-exodikastikos/assets/images/about-hero-right.png') right center / auto 100% no-repeat !important;
  filter: contrast(1.5) brightness(1.03);
  opacity: 0.85;
  pointer-events: none;
}
:is(#main-content, #eexb-preview) .eex-about-identity .eex-about-identity__copy {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  text-align: left !important;
}
:is(#main-content, #eexb-preview) .eex-about-identity .eex-about-identity__kicker {
  justify-content: flex-start !important;
  text-align: left !important;
  font-size: clamp(11px, 1.3vw, 14px) !important;
  line-height: 1.5;
  gap: 12px;
}
:is(#main-content, #eexb-preview) .eex-about-identity .eex-about-identity__kicker::after {
  display: none;
}
:is(#main-content, #eexb-preview) .eex-about-identity h1#about-identity-title {
  margin: 12px 0 0 !important;
  font-size: clamp(32px, 4vw, 48px) !important;
  line-height: 1.15 !important;
  text-align: left !important;
}
@media (max-width: 600px) {
  :is(#main-content, #eexb-preview) .eex-about-identity.eex-about-identity--reference {
    padding: 28px 20px 54px !important;
    min-height: 220px !important;
  }
  :is(#main-content, #eexb-preview) .eex-about-identity .eex-about-identity__kicker::before {
    width: 24px;
    flex: 0 0 24px;
  }
}
/* CTA labels and their arrows stay together, without affecting form choices. */
:is(#main-content, #eexb-preview) :is(a.button, button.button, input[type="submit"]) {
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  max-width: 100%;
}
:is(#main-content, #eexb-preview) .eex-interest-guide__inner {
  container-type: inline-size;
}
:is(#main-content, #eexb-preview) .eex-interest-guide__cta {
  font-size: clamp(11px, 3.55cqi, 16px) !important;
  padding-inline: clamp(10px, 3cqi, 23px) !important;
  gap: clamp(6px, 2cqi, 16px) !important;
  letter-spacing: 0 !important;
}
:is(#main-content, #eexb-preview) .eex-interest-guide__cta > span {
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  :is(#main-content, #eexb-preview) :is(a.button, button.button, input[type="submit"]):not(.eex-interest-guide__cta) {
    font-size: clamp(12px, 3.4vw, 16px) !important;
    padding-inline: 12px !important;
    gap: 8px !important;
  }
}
:is(#main-content, #eexb-preview) .v2-hero .ex-hero-steps > span {
  /* Keep small decorative hexagons clear of benefit labels as well. */
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 7px 5px rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  gap: clamp(5px, 1.5cqi, 8px);
  width: auto !important;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  font-size: clamp(12px, 3.5vw, 15px) !important;
  font-size: clamp(12px, 4cqi, 15px) !important;
}
:is(#main-content, #eexb-preview) .v2-hero .ex-hero-steps > span::before {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
  width: clamp(18px, 5cqi, 24px) !important;
  height: clamp(18px, 5cqi, 24px) !important;
  flex: 0 0 clamp(18px, 5cqi, 24px);
}
:is(#main-content, #eexb-preview) .v2-hero .ex-hero-steps > span:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
}
/* Use the phone's width rather than nesting three layers of horizontal inset. */
:is(#main-content, #eexb-preview) .eex-about-identity.eex-about-identity--reference::after {
  /* Crop the existing logo to its original emblem, without adding new artwork. */
  content: '' !important;
  display: block !important;
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 155px;
  height: 180px;
  background: url('../uploads/2026/10/logo.png') left center / auto 180px no-repeat;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 901px) and (max-width: 1500px) {
  :is(#main-content, #eexb-preview) .eex-about-identity .eex-about-identity__copy {
    max-width: calc(100% - 340px) !important;
  }
}
@media (max-width: 600px) {
  :is(#main-content, #eexb-preview) .v2-hero {
    padding-inline: 12px !important;
  }
  :is(#main-content, #eexb-preview) .v2-hero .v2-hero__grid {
    width: 100% !important;
    max-width: 100%;
    padding-inline: 0;
  }
  :is(#main-content, #eexb-preview) .v2-hero .v2-hero__copy {
    width: 100%;
    padding-inline: 0 !important;
  }
}
