/* ── DESKTOP NAV font size ── */
.main-navigation .nav-primary .menu-item a,
.header-navigation .menu > li > a {
  font-size: 13px;
  padding-left: 10px;
  padding-right: 10px;
}
 
/* ================================================================
   MOBILE HEADER — STYLED TWO-ROW NAV
   Makes the always-visible mobile nav look intentional:
   navy bar, items evenly distributed, clean typography.
   ================================================================ */
 
@media screen and (max-width: 1280px) {
 
  /* ── Hide search ── */
  .site-header .header-search,
  .site-header .search-form,
  .site-header .wp-block-search,
  .site-header input[type="search"],
  .kadence-header-row .search-form,
  .kadence-header-row .header-search,
  header .search-toggle,
  header .header-search-wrap {
    display: none !important;
  }
 
  /* ── Prevent overflow ── */
  .site-header,
  header.site-header,
  #masthead {
    overflow: visible !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
 
  /* ── Mobile nav bar — full-width navy strip ── */
  .mobile-navigation,
  .kadence-mobile-navigation,
  #mobile-navigation,
  [id*="mobile-nav"],
  [class*="mobile-nav"] {
    background-color: #1C2B5A !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
  }
 
  /* ── Top-level list — horizontal flex, wraps to two rows ── */
  .mobile-navigation > ul,
  .kadence-mobile-navigation > ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-around !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
 
  /* ── Each top-level item ── */
  .mobile-navigation > ul > li,
  .kadence-mobile-navigation > ul > li {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: relative !important;
  }
 
  /* ── Top-level links ── */
  .mobile-navigation > ul > li > a,
  .kadence-mobile-navigation > ul > li > a {
    display: block !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 10px 8px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
 
  .mobile-navigation > ul > li > a:hover,
  .kadence-mobile-navigation > ul > li > a:hover {
    color: #C8232A !important;
  }
 
  /* ── Dropdown toggle — small inline chevron ── */
  .mobile-navigation > ul > li > .dropdown-btn,
  .kadence-mobile-navigation > ul > li > .dropdown-btn,
  .mobile-navigation > ul > li > button,
  .kadence-mobile-navigation > ul > li > button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    margin: 0 0 0 -4px !important;
    background: transparent !important;
    border: none !important;
    color: #C8232A !important;
    font-size: 10px !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    position: relative !important;
    top: -1px !important;
  }
 
  /* ── Sub-menu — dropdown below the item ── */
  .mobile-navigation > ul > li > ul,
  .kadence-mobile-navigation > ul > li > ul {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 200px !important;
    background: #2E4A8A !important;
    z-index: 9999 !important;
    padding: 4px 0 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
    border-radius: 0 0 6px 6px !important;
    list-style: none !important;
    margin: 0 !important;
  }
 
  /* Show sub-menu when parent has open class */
  .mobile-navigation > ul > li.menu-item-has-children.toggled-on > ul,
  .kadence-mobile-navigation > ul > li.menu-item-has-children.toggled-on > ul,
  .mobile-navigation > ul > li.menu-item-has-children:focus-within > ul,
  .kadence-mobile-navigation > ul > li.menu-item-has-children:focus-within > ul {
    display: block !important;
  }
 
  /* ── Sub-menu items ── */
  .mobile-navigation > ul > li > ul > li > a,
  .kadence-mobile-navigation > ul > li > ul > li > a {
    display: block !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 9px 16px !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
  }
 
  .mobile-navigation > ul > li > ul > li > a:hover,
  .kadence-mobile-navigation > ul > li > ul > li > a:hover {
    color: #C8232A !important;
    background: rgba(255,255,255,0.06) !important;
  }
 
  /* Sub-sub-menu items */
  .mobile-navigation > ul > li > ul > li > ul > li > a,
  .kadence-mobile-navigation > ul > li > ul > li > ul > li > a {
    padding-left: 28px !important;
    font-size: 12px !important;
    color: #C5C8D0 !important;
  }
}
 
/* ── HERO SCALING ── */
@media (max-width: 768px) {
  .wp-block-cover h1.wp-block-heading,
  .wp-block-cover .wp-block-heading {
    font-size: 30px !important;
    letter-spacing: -0.2px !important;
    line-height: 1.25 !important;
  }
 
  .wp-block-cover p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 32px !important;
  }
 
  .wp-block-cover {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    min-height: unset !important;
  }
 
  .wp-block-buttons.is-content-justification-center {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
 
  .wp-block-button {
    width: 100% !important;
    max-width: 280px !important;
  }
 
  .wp-block-button__link {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
  }
}
 
/* ── SECTION PADDING ── */
@media (max-width: 768px) {
  .wp-block-group[style*="padding-top:96px"],
  .wp-block-group[style*="padding-top:88px"],
  .wp-block-group[style*="padding-top:80px"],
  .wp-block-group[style*="padding-top:72px"],
  .wp-block-group[style*="padding-top:64px"],
  .wp-block-group[style*="padding-top:56px"] {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
 
  .wp-block-group[style*="padding-top:48px"] {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }
}
 
/* ── RESOURCE CARDS ── */
@media (max-width: 768px) {
  .sc-resource-cards,
  div[style*="display:flex;gap:20px;align-items:stretch"] {
    flex-direction: column !important;
    gap: 16px !important;
  }
 
  .sc-resource-cards > div,
  div[style*="display:flex;gap:20px;align-items:stretch"] > div {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
 
  div[style*="height:340px"] {
    height: 260px !important;
  }
}
 
/* ── WORDPRESS COLUMN BLOCKS ── */
@media (max-width: 768px) {
  .wp-block-columns.is-layout-flex,
  .wp-block-columns {
    flex-direction: column !important;
    gap: 16px !important;
  }
 
  .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }
 
  .wp-block-columns[style*="align-items:center"] .wp-block-column[style*="text-align:right"] {
    text-align: left !important;
  }
}
 
/* ── CSS GRIDS ── */
@media (max-width: 768px) {
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns:1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(auto-fill"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}
 
/* ── COLD THERAPY FILMSTRIP ── */
@media (max-width: 768px) {
  div[style*="display:flex;gap:4px;height:220px"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    height: 240px !important;
    gap: 4px !important;
  }
 
  div[style*="display:flex;gap:4px;height:220px"] > div {
    height: 118px !important;
    min-width: unset !important;
    flex: unset !important;
  }
}
 
/* ── SVG INFOGRAPHICS ── */
@media (max-width: 640px) {
  .wp-block-group__inner-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
 
  svg[role="img"] {
    min-width: 480px !important;
    max-width: 100% !important;
  }
}
 
/* ── TEXT SCALING ── */
@media (max-width: 768px) {
  p[style*="font-size:17px"],
  p[style*="font-size:18px"],
  p[style*="font-size:19px"],
  p[style*="font-size:20px"] {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }
 
  h1[style*="font-size:48px"],
  h1[style*="font-size:42px"] {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }
 
  h2[style*="font-size:36px"],
  h2[style*="font-size:34px"],
  h2[style*="font-size:32px"] {
    font-size: 24px !important;
  }
 
  h2[style*="font-size:30px"],
  h2[style*="font-size:28px"] {
    font-size: 22px !important;
  }
 
  h3[style*="font-size:20px"],
  h3[style*="font-size:18px"] {
    font-size: 17px !important;
  }
 
  h1[style*="font-size:36px"] {
    font-size: 26px !important;
  }
 
  h2[style*="margin-bottom:56px"] { margin-bottom: 28px !important; }
  h2[style*="margin-bottom:48px"] { margin-bottom: 24px !important; }
  h2[style*="margin-bottom:40px"] { margin-bottom: 20px !important; }
}
 
/* ── CARD PADDING ── */
@media (max-width: 768px) {
  [style*="padding:28px 32px"],
  [style*="padding:28px 24px"],
  [style*="padding:28px"] {
    padding: 20px 16px !important;
  }
 
  [style*="padding:24px 28px"],
  [style*="padding:24px"] {
    padding: 16px !important;
  }
}
 
/* ── MAX-WIDTH CONTAINERS ── */
@media (max-width: 768px) {
  [style*="max-width:960px"],
  [style*="max-width:900px"],
  [style*="max-width:860px"],
  [style*="max-width:760px"],
  [style*="max-width:740px"],
  [style*="max-width:720px"],
  [style*="max-width:680px"],
  [style*="max-width:620px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
 
/* ── AUTHOR BIO BUTTONS ── */
@media (max-width: 520px) {
  [style*="display:flex;gap:16px;flex-wrap:wrap"] {
    flex-direction: column !important;
    gap: 10px !important;
  }
 
  [style*="display:flex;gap:16px;flex-wrap:wrap"] a {
    text-align: center !important;
    display: block !important;
  }
}
 
/* ── FOOTER ── */
@media (max-width: 768px) {
  .site-footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
 
  .site-footer .wp-block-columns {
    gap: 24px !important;
    margin-bottom: 24px !important;
  }
 
  .site-footer [style*="padding-top:40px"],
  .site-footer [style*="padding-top:48px"] {
    padding-top: 20px !important;
  }
}
 
/* ── CONTINUE READING CARDS ── */
@media (max-width: 768px) {
  .wp-block-columns.wp-block-columns-is-layout-flex {
    flex-direction: column !important;
  }
}