/* Footer-only expansion; retain existing typography, colors and link styling. */
.footer-widgets.dna-footer-with-identity {
  display: grid !important;
  grid-template-columns: 1.1fr .85fr 1.45fr .95fr 1.1fr .95fr;
  column-gap: clamp(18px, 2vw, 32px);
  row-gap: 32px;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.footer-widgets.dna-footer-with-identity > .footer-widget {
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.footer-widgets.dna-footer-with-identity .footer-widget-title { overflow-wrap: normal; }
.footer-widgets.dna-footer-with-identity .menu a { overflow-wrap: break-word; }
@media (max-width: 1100px) {
  .footer-widgets.dna-footer-with-identity { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .footer-widgets.dna-footer-with-identity { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}
@media (max-width: 380px) {
  .footer-widgets.dna-footer-with-identity { grid-template-columns: minmax(0, 1fr); }
}

/* The theme's 54px widget margin must not stack with the mobile grid gap. */
@media (max-width: 767px) {
  .footer-widgets.dna-footer-with-identity {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 24px;
    align-items:start;
    padding:12px 0 8px;
  }
  .footer-widgets.dna-footer-with-identity > .footer-widget { margin-top:0 !important; margin-bottom:0 !important; }
  .footer-widgets.dna-footer-with-identity > .widget_media_image { grid-column:1 / -1; }
  .footer-widgets.dna-footer-with-identity .wp-block-image { margin:0; }
  .footer-widgets.dna-footer-with-identity .footer-widget-title { margin:0 0 10px; line-height:1.4; }
  .footer-widgets.dna-footer-with-identity .menu { margin:0; }
  .footer-widgets.dna-footer-with-identity .menu li { margin:0; padding:0; }
  .footer-widgets.dna-footer-with-identity .menu a {
    display:flex;
    align-items:center;
    min-height:44px;
    padding:7px 0;
    box-sizing:border-box;
    line-height:1.5;
    overflow-wrap:normal;
    word-break:normal;
  }
  .footer-widgets.dna-footer-with-identity > #neuros_nav_menu_widget-7 { grid-column:1 / -1; }
  .footer-widgets.dna-footer-with-identity #menu-legal-1 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
  .footer-widgets.dna-footer-with-identity .menu a::before,
  .footer-widgets.dna-footer-with-identity .menu a::after { display:none !important; }
  .footer-widgets.dna-footer-with-identity .menu a:is(:hover,:focus-visible) { color:#fff; text-decoration:underline; text-underline-offset:4px; }
}
@media (max-width: 380px) {
  .footer-widgets.dna-footer-with-identity { grid-template-columns:minmax(0,1fr); gap:24px; }
  .footer-widgets.dna-footer-with-identity #menu-legal-1 { grid-template-columns:minmax(0,1fr); }
}
