/* Compact layouts: readable type, comfortable touch targets, and scrollable overlays. */
@media (max-width: 960px) {
  html { scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
  .nav-wrap { min-height:76px; padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left)); gap:12px; }
  .nav-logo-holder { width:42px; height:42px; flex-shrink:0; }
  .brand-text { font-size:16px; max-width:130px; }
  .hamburger-btn { width:48px !important; height:48px !important; padding:12px 10px !important; flex-shrink:0; }
  .switch-btn { width:52px !important; min-height:44px !important; flex-shrink:0; }
  .mobile-nav-drawer { top:76px !important; bottom:0 !important; height:calc(100dvh - 76px) !important; max-height:calc(100dvh - 76px) !important; width:100% !important; padding:16px 16px calc(24px + env(safe-area-inset-bottom)) !important; border-radius:0 !important; overscroll-behavior:contain; }
  .mobile-nav-drawer .m-nav-link,.mobile-nav-drawer .m-nav-group-btn,.mobile-nav-drawer .m-nav-sub-inner a { min-height:50px !important; font-size:17px !important; line-height:1.5; padding:13px 16px !important; white-space:normal; }
  .mobile-nav-drawer .m-nav-sub-items.open { max-height:none !important; overflow:visible !important; }
  body:has(.mobile-nav-drawer.open) { overflow:hidden; }
  nav:has(.mobile-nav-drawer.open) { transform:none !important; }
}
@media (max-width: 700px) {
  body { font-size:17px !important; line-height:1.75; }
  main p,main .lead,main li,.rlc-document p,.rlc-document li { font-size:17px !important; line-height:1.75 !important; }
  main h1 { font-size:clamp(32px,9vw,44px) !important; line-height:1.15; overflow-wrap:break-word; }
  main h2 { font-size:clamp(27px,7vw,34px) !important; line-height:1.25; }
  main h3 { font-size:23px !important; line-height:1.3; }
  .eyebrow,.kicker,.rlc-study-type,.community-service-eyebrow { font-size:12px !important; line-height:1.5; }
  .btn,.social-btn,.newsletter-open-btn,.newsletter-action-btn,.newsletter-inline-btn,.newsletter-tab,.newsletter-modal-tool,.newsletter-modal-close,.newsletter-reader-close,.cpt-close-btn,.btn-cookie,.membership-tab,.membership-mini-tab,.study-guide-back,.rlc-filter,#resetEvents { min-height:48px !important; font-size:16px !important; line-height:1.4; display:inline-flex; align-items:center; justify-content:center; padding:12px 18px; touch-action:manipulation; }
  .btn-group { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
  .btn-group .btn { width:100%; white-space:normal; text-align:center; }
  main input,main select,main textarea { font-size:17px !important; min-height:48px; max-width:100%; }
  main textarea { min-height:130px; }
  .hero-wrap,.page-hero-wrap,.section,.footer-wrap { min-width:0; }
  .hero-wrap > *,.rlc-study-card > *, .newsletter-reader-topbar > * { min-width:0; }
  .hero-card { width:100%; }
  .cards-grid,.stats-grid,.team-grid,.contact-grid,.newsletter-story-grid,.newsletter-connect-grid,.newsletter-rally-layout,.community-service-grid { grid-template-columns:1fr !important; }
  .event-banner-simple,.eb-left,.eb-right { flex-wrap:wrap; min-width:0; }
  .eb-info { min-width:0; flex:1; }
  .eb-sub,.eb-loc-pill,.social-handle { font-size:14px !important; line-height:1.6; overflow-wrap:anywhere; }
  .resources-page .rlc-study-section { padding:0 14px; }
  .resources-page .rlc-filter-bar { gap:9px; }
  .resources-page .rlc-filter { flex:1 1 auto; padding:12px 15px; }
  .resources-page .rlc-study-card { padding:21px; grid-template-columns:52px minmax(0,1fr); gap:14px; }
  .resources-page .rlc-study-icon { width:52px; height:52px; font-size:28px; }
  .resources-page .rlc-study-card h3 { font-size:23px !important; }
  .resources-page .rlc-study-card p { font-size:16px !important; }
  .resources-page .rlc-study-card a { min-height:48px; font-size:16px; padding:12px 18px; }
  .resource-search { min-height:56px; }
  #eventCount { font-size:14px; }
  .rlc-study-badge { font-size:12px; white-space:normal; }
  .rlc-review-table-wrap { overscroll-behavior-x:contain; }
  .rlc-review-table { min-width:420px; }
  .rlc-review-table th,.rlc-review-table td { font-size:16px; }
  .gallery-embed-section { padding-top:32px; }
  .gallery-embed-card { padding:14px; width:100%; }
  .instagram-post-grid { display:grid; grid-template-columns:1fr !important; gap:24px; }
  .gallery-instagram-frame { padding:0; min-width:0; }
  .gallery-instagram-frame .instagram-media,.gallery-instagram-frame iframe { min-width:0 !important; width:100% !important; max-width:100% !important; }
  .gallery-instagram-frame-new { margin-top:0; }
  .gallery-instagram-credit { font-size:15px; }
  .gallery-instagram-credit a { display:inline-flex; min-height:44px; align-items:center; }
  .newsletter-reader-modal,.newsletter-flyer-modal { padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom)); }
  .newsletter-reader-shell { width:100%; max-height:calc(100dvh - 24px); border-radius:20px; }
  .newsletter-reader-topbar { padding:14px; gap:10px; align-items:center; }
  .newsletter-reader-topbar strong { font-size:17px; line-height:1.4; }
  .newsletter-reader-kicker { font-size:11px; }
  .newsletter-reader-close,.newsletter-modal-close,.newsletter-modal-tool { width:48px !important; min-width:48px !important; height:48px !important; flex-shrink:0; padding:8px; }
  .newsletter-reader-content { padding:16px 14px 24px; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
  .newsletter-nav { display:flex; flex-wrap:wrap; gap:8px; }
  .newsletter-tab { flex:1 1 auto; }
  .newsletter-panel { padding:16px; }
  .newsletter-stat-grid { grid-template-columns:1fr !important; }
  .newsletter-modal-shell { height:calc(100dvh - 24px); max-height:calc(100dvh - 24px); width:100%; }
  .newsletter-modal-toolbar { flex-wrap:wrap; gap:10px; padding:12px; }
  .newsletter-modal-tools { flex-wrap:wrap; gap:6px; }
  .newsletter-modal-toolbar strong { font-size:17px; }
  .newsletter-modal-inner img { max-width:100%; max-height:calc(100dvh - 200px); }
  .newsletter-modal-hint { font-size:12px; white-space:normal; text-align:center; }
  .cookie-consent-banner { left:10px !important; right:10px !important; width:auto !important; max-width:calc(100% - 20px) !important; bottom:calc(10px + env(safe-area-inset-bottom)) !important; padding:16px !important; }
  .cookie-content { flex-wrap:wrap; gap:12px; }
  .cookie-text { font-size:15px !important; line-height:1.6; }
  .cookie-btn-group,.btn-cookie { width:100%; }
  .cute-popup-toast { padding:22px; }
  .cute-popup-toast p { font-size:17px !important; }
  footer p,.footer-wrap { overflow-wrap:anywhere; }
}
@media (hover:none) {
  .rlc-study-card:hover,.hero-card:hover,.card:hover,.btn:hover,.rlc-filter:hover { transform:none !important; }
}
@media(max-width:960px) {
  .hamburger-btn.active { position:relative !important; top:auto !important; right:auto !important; }
  .mobile-nav-drawer { background:#06183d !important; }
  .switch-knob { top:50%; margin-top:-10px; }
}
@media(max-width:960px) {
 .switch-knob { width:20px; height:20px; left:4px; }
 [data-theme="dark"] .switch-knob { transform:translateX(22px); }
}
