/* Wide touch screens: unfolded foldables, tablets and phones in landscape (601 CSS px and
   wider, no hover, coarse pointer). They use the phone header and menu, but at desktop-like
   widths, where full-screen menus and edge-to-edge text read poorly. Based on Stamos's
   24 November wide-touch layout (wide-touch.css), keeping its drawers, bounded reading
   canvas and footer logo cap; his edge-swipe drawer gesture is not used (its script held
   a page-wide non-passive touchmove listener that can block scrolling). Phones up to
   600 px and every fine-pointer desktop are unchanged. */
@layer fr-public-refresh {
 @media(min-width:601px) and (hover:none) and (pointer:coarse){
  :root{--fr-touch-menu-width:min(420px,calc(100vw - 64px));--fr-touch-search-width:min(460px,calc(100vw - 64px))}

  /* 1. The menu opens as a left drawer with the page still visible beside it. */
  #td-mobile-nav{inset:0 auto 0 0!important;width:var(--fr-touch-menu-width)!important;max-width:none!important;height:100dvh!important;z-index:11002!important;border-radius:0 24px 24px 0;overflow-x:clip!important;overflow-y:auto!important;overscroll-behavior:contain;transform:translateX(-100%)!important;transition:transform .36s cubic-bezier(.22,.75,.2,1),visibility 0s .36s!important}
  .td-menu-background{inset:0 auto 0 0!important;width:var(--fr-touch-menu-width)!important;max-width:none!important;z-index:11001!important;border-radius:0 24px 24px 0;transform:translateX(-100%)!important;transition:transform .36s cubic-bezier(.22,.75,.2,1),visibility 0s .36s!important}
  body.td-menu-mob-open-menu :is(#td-mobile-nav,.td-menu-background){transform:translateX(0)!important;transition-delay:0s!important}
  /* The rest of the page dims while the drawer is open; tapping it closes the menu (wide-touch.js). */
  body.td-menu-mob-open-menu::after{content:"";position:fixed;inset:0;z-index:11000;background:#10182080}
  #td-mobile-nav .td-mobile-container{width:100%!important;min-height:100%;transform:none!important}
  #td-mobile-nav .td-mobile-close{top:18px!important;right:16px!important;width:44px!important;height:44px!important;display:grid!important;place-items:center!important;min-width:44px!important}
  #td-mobile-nav .fr-mobile-appearance{margin:12px 24px 18px!important;padding:16px 0!important}
  #td-mobile-nav .td-mobile-content{padding-inline:24px!important}
  #td-mobile-nav .td-mobile-main-menu>li>a{font-size:18px!important;line-height:1.4!important;padding-block:15px!important}
  body:is(.td-menu-mob-open-menu,.td-search-opened) #td-outer-wrap{transform:none!important;box-shadow:none!important}

  /* 2. Search opens as a right drawer. */
  .fr-search-drawer{position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100dvh!important;overflow:clip!important;translate:none!important;scale:none!important;clip-path:none!important;transform:none!important;opacity:1!important;background:transparent!important;transition:background-color .36s ease,visibility 0s .36s!important}
  .fr-search-drawer.fr-mobile-search-open{background:#10182080!important;transition-delay:0s!important}
  .fr-search-drawer:before{display:block!important;width:var(--fr-touch-search-width)!important;border-radius:24px 0 0 24px!important;transform:translateX(100%);transition:transform .36s cubic-bezier(.22,.75,.2,1)!important}
  .fr-search-drawer.fr-mobile-search-open:before{transform:translateX(0)}
  .fr-search-drawer .td-drop-down-search{position:absolute!important;inset:0 0 0 auto!important;width:var(--fr-touch-search-width)!important;height:100%!important;max-height:none!important;min-height:0!important;padding:24px!important;border:0!important;border-radius:24px 0 0 24px!important;background:transparent!important;box-shadow:none!important;transform:translateX(100%)!important;transition:transform .36s cubic-bezier(.22,.75,.2,1)!important;color:#fff!important}
  .fr-search-drawer.fr-mobile-search-open .td-drop-down-search{transform:translateX(0)!important}
  .fr-search-drawer{--fr-search-ink:#fff!important;--fr-search-muted:#e7dce2!important;--fr-search-field:#ffffff18!important;--fr-search-accent:#980043!important}
  .fr-search-drawer .fr-search-heading-shelf h2{font-size:22px!important}
  .fr-search-drawer .td-search-close{width:44px!important;height:44px!important;flex-basis:44px!important}
  .fr-search-drawer .td-search-form{margin-bottom:24px!important}

  /* 3. About-family and section pages read in a bounded, centred canvas instead of
        edge-to-edge rows (about 120 characters per line on a spanned dual screen).
        Row backgrounds keep their full width; only the content row is bounded. */
  .fr-about-pages .fr-about-opening{max-width:960px!important;margin-inline:auto!important;box-sizing:border-box!important}
  .fr-about-pages .td-main-content-wrap .tdc-row>.vc_row{max-width:960px!important;margin-inline:auto!important}
  .fr-about-pages .td-main-content-wrap .fr-about-nav-row{max-width:960px;margin-inline:auto}
  /* Running text keeps the article measure (about 75 characters), even in a 960 px canvas. */
  .fr-about-pages .td-main-content-wrap p{max-width:78ch}

  /* 4. Footer logos: a wide wordmark (EDMO) no longer fills a whole grid cell. */
  .fr-footer-responsive .fr-footer-credential-art img{max-width:160px!important;height:auto!important;object-fit:contain}
 }

 /* 5. On every touch screen, the menu's social links are full-size tap targets (they were 16 px). */
 @media(hover:none) and (pointer:coarse){
  #td-mobile-nav .td-menu-socials .td-social-icon-wrap>a{display:inline-grid!important;place-items:center!important;min-width:44px!important;min-height:44px!important}
 }

 @media(prefers-reduced-motion:reduce) and (min-width:601px) and (hover:none) and (pointer:coarse){
  #td-mobile-nav,.td-menu-background,.fr-search-drawer,.fr-search-drawer:before,.fr-search-drawer .td-drop-down-search{transition:none!important}
 }
}
