/*
 * Flexo Line V45 — Contact page legibility repair.
 * Scoped ONLY to Contact; respects approved red/black Liquid Glass visual language.
 * V37 made a light Contact panel dark but failed to invert descendant typography.
 */
body.fl613-contact-page.fl43-unified .fl613-panel.fl613-departments{
  color:#f4f5f7 !important;
  background-color:#090c11 !important;
  background-image:
    radial-gradient(ellipse 100% 75% at 14% 0%,rgba(92,97,110,.23),transparent 68%),
    radial-gradient(ellipse 64% 50% at 100% 100%,rgba(121,5,31,.10),transparent 90%),
    linear-gradient(148deg,rgba(24,27,34,.92),rgba(8,10,15,.97) 64%,rgba(3,5,9,.99)) !important;
  border:1px solid rgba(208,216,226,.23) !important;
  box-shadow:inset 0 1px 0 rgba(242,245,249,.19),0 16px 37px rgba(4,5,9,.17) !important;
}
/* All text must have contrast against the dark card, not inherit its old ivory-card colours. */
body.fl613-contact-page.fl43-unified .fl17-routes h2{color:#f8f9fb !important;}
body.fl613-contact-page.fl43-unified .fl17-routes h2 em{color:#ef2449 !important;}
body.fl613-contact-page.fl43-unified .fl17-routes .fl17-routes-intro{
  color:#cbd0d8 !important;
  max-width:38rem;
}
body.fl613-contact-page.fl43-unified .fl17-routes .fl613-eyebrow{color:#ff365c !important;}
/* Replace full-bleed black strips with distinct, readable, glass-like email rows. */
body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-rows{
  display:grid;
  gap:10px;
  min-width:0;
  width:100%;
}
body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-row,
body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-row:first-child{
  display:grid;
  min-width:0;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px 15px;
  padding:17px 19px;
  background-color:rgba(255,255,255,.042) !important;
  background-image:linear-gradient(158deg,rgba(237,241,248,.06),rgba(6,9,14,.08) 60%,rgba(0,0,0,.17)) !important;
  border:1px solid rgba(218,226,238,.16) !important;
  border-radius:13px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09) !important;
  color:#fff !important;
  text-decoration:none;
  transition:background-color .2s ease,border-color .2s ease;
}
body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-row:hover{
  background-color:rgba(239,37,72,.09) !important;
  border-color:rgba(255,114,138,.52) !important;
}
body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-label{
  color:#c5cbd5 !important;
  font-size:11px;
  letter-spacing:.08em;
  line-height:1.5;
}
body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-row strong,
body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-row:hover strong{
  color:#f6f8fb !important;
  font-size:clamp(14px,1.25vw,18px);
  line-height:1.45;
  overflow-wrap:anywhere;
}
body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-arrow{
  color:#f1274e !important;
  align-self:center;
}
body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-row:focus-visible{
  outline:2px solid #ff7591 !important;
  outline-offset:3px;
}
/* General contacts were turned into opaque black rectangles by V37.
   Restore simple, readable email/phone links over the dark illustrated panel. */
body.fl613-contact-page.fl43-unified .fl613-general .fl613-main-link{
  color:#fff !important;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  border:0 !important;
  padding:0 !important;
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
  text-decoration:none;
}
body.fl613-contact-page.fl43-unified .fl613-general .fl613-main-link:hover{color:#ffdce4 !important;}
body.fl613-contact-page.fl43-unified .fl613-general .fl613-icon{color:#ee244a !important;}
@media(max-width:1180px){
  body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-row{padding:16px 14px;}
  body.fl613-contact-page.fl43-unified .fl17-routes h2{font-size:clamp(34px,3.8vw,54px);}
}
@media(max-width:790px){
  body.fl613-contact-page.fl43-unified .fl17-routes h2{font-size:clamp(34px,8vw,48px);}
  body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-rows{gap:9px;}
}
@media(max-width:480px){
  body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-row{padding:15px 14px;}
  body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-row strong{font-size:clamp(14px,4vw,17px);}
  body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-label{font-size:10px;}
  body.fl613-contact-page.fl43-unified .fl613-general .fl613-main-link{font-size:clamp(17px,4.9vw,21px);}
}
@media(prefers-reduced-motion:reduce){
  body.fl613-contact-page.fl43-unified .fl17-routes .fl17-mail-row{transition:none;}
}
