/* CODFIX FOOTER MOBILE V1.0 — Progressive mobile accordion for public CMS footer.
 * Scoped to JS-enhanced footer; desktop and non-JS fallback are unchanged.
 */
@media (max-width: 767.98px) {
  footer.cfx5151-footer.cfxFooterM10 .cfx32-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }
  footer.cfx5151-footer.cfxFooterM10 .cfx32-footer-grid > div:first-child {
    min-width: 0;
    padding-bottom: 16px;
  }
  footer.cfx5151-footer.cfxFooterM10 .cfxM10-empty { display: none; }
  footer.cfx5151-footer.cfxFooterM10 .cfxM10-collapse {
    min-width: 0;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  footer.cfx5151-footer.cfxFooterM10 .cfxM10-collapse > h4 {
    display: none;
  }
  footer.cfx5151-footer.cfxFooterM10 .cfxM10-toggle {
    display: flex;
    width: 100%;
    min-height: 51px;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 13px 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f8fafc;
    text-align: start;
    direction: inherit;
    font: inherit;
    font-size: .95rem;
    font-weight: 750;
    line-height: 1.5;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  footer.cfx5151-footer.cfxFooterM10 .cfxM10-toggle::after {
    content: '';
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-inline-end: 5px;
    border-inline-end: 2px solid #fb923c;
    border-bottom: 2px solid #fb923c;
    transform: rotate(45deg);
    transition: transform .18s ease;
  }
  footer.cfx5151-footer.cfxFooterM10 .cfxM10-collapse[data-cfx-m10-open='true'] > .cfxM10-toggle::after {
    transform: rotate(225deg);
  }
  footer.cfx5151-footer.cfxFooterM10 .cfxM10-toggle:focus-visible {
    outline: 2px solid #fb923c;
    outline-offset: -2px;
    border-radius: 6px;
  }
  footer.cfx5151-footer.cfxFooterM10 .cfxM10-collapse[data-cfx-m10-open='false'] > a {
    display: none !important;
  }
  footer.cfx5151-footer.cfxFooterM10 .cfxM10-collapse[data-cfx-m10-open='true'] > a {
    display: block;
    width: 100%;
    padding: 7px 7px;
    margin: 0;
    color: #d5dfed;
    font-size: .86rem;
    font-weight: 500;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }
  footer.cfx5151-footer.cfxFooterM10 .cfxM10-collapse[data-cfx-m10-open='true'] > a:last-child {
    margin-bottom: 12px;
  }
  footer.cfx5151-footer.cfxFooterM10 .cfx32-footer-grid > div:last-child {
    min-width: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  footer.cfx5151-footer.cfxFooterM10 .cfx32-footer-grid > div:last-child h4 {
    margin-bottom: 10px;
  }
  footer.cfx5151-footer.cfxFooterM10 .cfx5151-contact-line {
    overflow-wrap: anywhere;
  }
  footer.cfx5151-footer.cfxFooterM10 .cfx5151-footer-utility {
    gap: 12px;
  }
  footer.cfx5151-footer.cfxFooterM10 .cfx5151-footer-bottom {
    text-align: center;
  }
}
/* Outside mobile width, always show the original headings and links. */
@media (min-width: 768px) {
  footer.cfx5151-footer .cfxM10-toggle { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  footer.cfx5151-footer .cfxM10-toggle::after { transition: none; }
}

/* CODFIX_MOBILE_HEADER_CSSONLY_V11 — safe mobile-only header spacing.
   Delivered via existing public CSS asset: no Laravel/Blade/JS edits.
   Only max-width 600px. Fully reversible. */
@media screen and (max-width:600px) {
  .cfx32-header[data-cfx32-header] .cfx32-header-inner {
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:space-between !important;
    column-gap:6px !important;
    min-width:0 !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-header-inner > .cfx32-nav {
    display:none !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-header-inner > .cfx32-brand {
    position:relative !important;
    z-index:1 !important;
    display:flex !important;
    flex:0 0 clamp(108px,29vw,142px) !important;
    width:clamp(108px,29vw,142px) !important;
    min-width:0 !important;
    max-width:142px !important;
    margin:0 !important;
    align-items:center !important;
    overflow:visible !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-brand .cfx32-logo-box {
    display:flex !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:visible !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-brand .cfx32-logo-box img {
    display:block !important;
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    max-height:43px !important;
    object-fit:contain !important;
    object-position:center !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-header-inner > .cfx32-header-actions {
    position:relative !important;
    z-index:2 !important;
    display:flex !important;
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    align-items:center !important;
    justify-content:flex-end !important;
    flex-wrap:nowrap !important;
    gap:clamp(3px,.9vw,5px) !important;
    margin:0 !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-header-actions > .cfx32-icon-action,
  .cfx32-header[data-cfx32-header] .cfx32-header-actions > .cfx32-mobile-toggle {
    box-sizing:border-box !important;
    flex:0 0 clamp(31px,8.2vw,39px) !important;
    width:clamp(31px,8.2vw,39px) !important;
    min-width:0 !important;
    max-width:39px !important;
    height:clamp(36px,9vw,43px) !important;
    padding:0 !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-header-actions > .cfx32-language {
    box-sizing:border-box !important;
    flex:0 0 clamp(39px,10vw,49px) !important;
    width:clamp(39px,10vw,49px) !important;
    min-width:0 !important;
    max-width:49px !important;
    margin:0 !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-header-actions .cfx32-language-trigger {
    box-sizing:border-box !important;
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:clamp(36px,9vw,43px) !important;
    gap:2px !important;
    padding:0 2px !important;
    align-items:center !important;
    justify-content:center !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-language-trigger > strong,
  .cfx32-header[data-cfx32-header] .cfx32-support-button > span {
    display:none !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-header-actions .cfx32-icon-action svg {
    max-width:20px;
    max-height:20px;
  }
}
@media screen and (max-width:370px) {
  .cfx32-header[data-cfx32-header] .cfx32-header-inner {column-gap:4px !important;}
  .cfx32-header[data-cfx32-header] .cfx32-header-inner > .cfx32-brand {
    flex-basis:clamp(92px,29vw,108px) !important;
    width:clamp(92px,29vw,108px) !important;
    max-width:108px !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-header-inner > .cfx32-header-actions {gap:2px !important;}
  .cfx32-header[data-cfx32-header] .cfx32-header-actions > .cfx32-icon-action,
  .cfx32-header[data-cfx32-header] .cfx32-header-actions > .cfx32-mobile-toggle {
    flex-basis:29px !important;
    width:29px !important;
    height:36px !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-header-actions > .cfx32-language {
    flex-basis:38px !important;
    width:38px !important;
  }
  .cfx32-header[data-cfx32-header] .cfx32-header-actions .cfx32-language-trigger {height:36px !important;}
}

/* CODFIX_MOBILE_HEADER_LOGO_V12 — logo size refinement only. */
/* Make better use of unused horizontal gap without touching actions or desktop. */
@media screen and (max-width:600px) and (min-width:371px) {
  .cfx32-header[data-cfx32-header] .cfx32-header-inner > .cfx32-brand {
    flex-basis:clamp(140px,40vw,176px) !important;
    width:clamp(140px,40vw,176px) !important;
    max-width:176px !important;
  }
}
/* Small phones retain more room for the five functional control buttons. */
@media screen and (max-width:370px) {
  .cfx32-header[data-cfx32-header] .cfx32-header-inner > .cfx32-brand {
    flex-basis:clamp(108px,36vw,134px) !important;
    width:clamp(108px,36vw,134px) !important;
    max-width:134px !important;
  }
}
