/* v1.58 — Professional polish for hamburger menu and footer.
   Goals: cleaner grouping, clearer hierarchy, better footer composition,
   and avoid isolated CMS page links floating on their own row. */

.mobile-menu{padding:10px!important;border-radius:22px;overflow:hidden}
.mobile-menu-scroll{display:grid;gap:12px;max-height:min(78vh,660px);overflow-y:auto;overscroll-behavior:contain;padding-right:2px}
.menu-panel-section{display:grid;gap:10px;padding:12px;border:1px solid rgba(7,115,87,.10);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.94))}
:root[data-theme=dark] .menu-panel-section{background:linear-gradient(180deg,rgba(17,46,38,.84),rgba(17,46,38,.96));border-color:rgba(161,211,190,.12)}
.menu-panel-heading{display:grid;gap:2px;padding:0 2px}
.menu-panel-heading strong,.cms-menu-section>strong{display:block;margin:0;color:var(--deep);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.menu-panel-heading small{color:var(--muted);font-size:11px;line-height:1.45}
.mobile-menu .menu-panel-section--primary>a{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon title" "icon sub";column-gap:11px;row-gap:1px;align-items:center;padding:13px 14px;border-radius:16px;background:var(--surface);border:1px solid rgba(7,115,87,.12);box-shadow:0 8px 24px rgba(9,57,43,.04);text-decoration:none}
.mobile-menu .menu-panel-section--primary>a>span{grid-area:icon;display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:linear-gradient(145deg,#0e7b60,#085747);color:#f5d594;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.mobile-menu .menu-panel-section--primary>a strong{grid-area:title;font-size:13px;line-height:1.35;color:var(--deep)}
.mobile-menu .menu-panel-section--primary>a small{grid-area:sub;font-size:11px;line-height:1.5;color:var(--muted)}
.mobile-menu .menu-panel-section--primary>a:hover,
.mobile-menu .menu-panel-section--primary>a:focus-visible{border-color:rgba(7,115,87,.28);background:rgba(7,115,87,.05)}
.mobile-menu .menu-panel-section--primary>a:focus-visible,
.mobile-menu .menu-links :is(a,button):focus-visible,
.mobile-menu .cms-menu-pages a:focus-visible,
.site-footer :is(a,button):focus-visible{outline:2px solid rgba(7,115,87,.55);outline-offset:2px}
.mobile-menu .menu-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mobile-menu .menu-links :is(a,button),
.mobile-menu .cms-menu-pages a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:11px 13px;border-radius:14px;border:1px solid rgba(7,115,87,.13);background:var(--surface-solid);color:var(--deep);font-weight:650;font-size:12px;line-height:1.35;text-align:center;text-decoration:none;box-shadow:none}
.mobile-menu .menu-links :is(a,button):hover,
.mobile-menu .cms-menu-pages a:hover{border-color:rgba(7,115,87,.28);background:rgba(7,115,87,.06);color:var(--jade)}
.cms-menu-section{padding-top:12px!important;margin-top:0!important;border-top:0!important}
.mobile-menu .cms-menu-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mobile-menu .cms-menu-pages a{justify-content:flex-start;padding-inline:14px;overflow-wrap:anywhere}

.site-footer.app-shell{margin-top:20px}
.site-footer .footer-inner{display:grid!important;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:18px 22px;align-items:start}
.site-footer .footer-brand{display:flex;align-items:flex-start;gap:12px;padding:16px 0;min-width:0}
.site-footer .footer-brand>div{min-width:0}
.site-footer .footer-meta{display:grid;gap:14px;min-width:0}
.site-footer .footer-meta .footer-social{margin:0}
.site-footer .footer-link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;min-width:0}
.site-footer .footer-link-block{display:grid;gap:10px;padding:14px 15px;border:1px solid rgba(7,115,87,.11);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.58),rgba(255,255,255,.86));min-width:0}
:root[data-theme=dark] .site-footer .footer-link-block{background:linear-gradient(180deg,rgba(17,46,38,.84),rgba(17,46,38,.95));border-color:rgba(161,211,190,.12)}
.site-footer .footer-link-block>strong{display:block;margin:0;color:var(--deep);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.site-footer .footer-policy-links,
.site-footer .cms-footer-pages{display:flex;flex-wrap:wrap;gap:9px 10px;align-items:flex-start;min-width:0;padding:0!important;border:0!important}
.site-footer .footer-policy-links :is(a,button),
.site-footer .cms-footer-pages a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border-radius:999px;border:1px solid rgba(7,115,87,.13);background:var(--surface-solid);color:var(--muted);text-decoration:none;font-weight:600;line-height:1.3}
.site-footer .footer-policy-links :is(a,button):hover,
.site-footer .cms-footer-pages a:hover{color:var(--jade);border-color:rgba(7,115,87,.28);background:rgba(7,115,87,.06)}
.site-footer .footer-bottom-row{display:flex;align-items:center;justify-content:flex-end;padding-top:2px;border-top:1px solid rgba(7,115,87,.10)}
.site-footer .footer-bottom-row small{display:block;color:var(--muted)}

@media (max-width: 820px){
  .site-footer .footer-inner{grid-template-columns:minmax(0,1fr)!important}
  .site-footer .footer-brand{padding-bottom:0}
}
@media (max-width: 560px){
  .mobile-menu{left:0;right:0;padding:9px!important;border-radius:18px}
  .menu-panel-section{padding:10px;border-radius:16px}
  .mobile-menu .menu-panel-section--primary>a{padding:12px 13px}
  .mobile-menu .menu-panel-section--primary>a>span{width:38px;height:38px}
  .mobile-menu .menu-links,
  .mobile-menu .cms-menu-pages{grid-template-columns:1fr}
  .site-footer .footer-link-grid{grid-template-columns:1fr}
  .site-footer .footer-policy-links :is(a,button),
  .site-footer .cms-footer-pages a{width:100%;justify-content:flex-start;border-radius:13px}
  .site-footer .footer-bottom-row{justify-content:flex-start}
}
