/* Main links and their own horizontal sub-navigation never change rows. */
@layer tmg-navigation {
 .tmg-site #tmg-menu .tmg-menu-nav {padding-block:clamp(30px,5.5vh,76px)}
 .tmg-site #tmg-menu .tmg-menu-home {display:block;line-height:0;text-decoration:none}
 .tmg-site #tmg-menu .tmg-menu-home:focus-visible {outline:2px solid currentColor;outline-offset:4px}
 .tmg-site #tmg-menu .tmg-menu-top,.tmg-site #tmg-menu .tmg-menu-row:first-child {border-block-start:0}
 .tmg-site #tmg-menu .tmg-menu-top {border-bottom:1px solid rgb(255 255 255 / .19)}
 .tmg-site #tmg-menu .tmg-menu-row {
  display:grid;grid-template-columns:clamp(245px,24vw,360px) minmax(0,1fr);
  align-items:center;gap:clamp(18px,2.2vw,38px);min-height:84px;padding:9px 0;flex-wrap:nowrap;
 }
 .tmg-site #tmg-menu .tmg-menu-row:last-child {border-bottom:0}
 .tmg-site #tmg-menu .tmg-menu-row:not(.has-submenu) {grid-template-columns:minmax(0,1fr)}
 .tmg-site #tmg-menu .tmg-menu-row:not(.has-submenu) .tmg-menu-sub {display:none}
 .tmg-site #tmg-menu .tmg-menu-primary {
  display:flex;align-items:center;align-self:center;margin:0;padding-block:0;min-width:0;max-width:none;gap:15px;
  font-family:var(--tmg-sans);font-style:normal;font-size:clamp(37px,calc(3.8vw + 5px),67px);line-height:1.08;font-weight:100;letter-spacing:-.04em;
 }
 .tmg-site #tmg-menu .tmg-menu-primary sup {position:static;flex-shrink:0;font-size:10px;line-height:1;letter-spacing:.07em;opacity:.65}
 .tmg-site #tmg-menu .tmg-menu-primary>span {min-width:0;overflow-wrap:break-word}
 .tmg-site #tmg-menu .tmg-menu-sub {
  display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:0;
  min-width:0;max-width:100%;padding:0 2px;margin:0;overflow-x:auto;overflow-y:hidden;
  white-space:nowrap;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
 }
 /* The visual rail sits outside the link line box, so an overflowing row has
    the same centre as a row whose links fit. Native scrolling remains intact. */
 .tmg-site #tmg-menu .tmg-menu-rail {position:relative;min-width:0;max-width:100%;align-self:center}
 .tmg-site #tmg-menu .tmg-menu-meter {position:absolute;inset:auto 0 -7px;height:10px;touch-action:none;cursor:pointer;user-select:none}
 .tmg-site #tmg-menu .tmg-menu-meter[hidden] {display:none}
 .tmg-site #tmg-menu .tmg-menu-meter::before,.tmg-site #tmg-menu .tmg-menu-meter i {position:absolute;top:3px;height:4px;border-radius:3px}
 .tmg-site #tmg-menu .tmg-menu-meter::before {content:"";inset-inline:0;background:var(--tmg-scroll-fade)}
 .tmg-site #tmg-menu .tmg-menu-meter i {left:0;background:var(--tmg-scroll-active);pointer-events:none}
 .tmg-site #tmg-menu .tmg-menu-meter:is(:hover,:active) i {background:var(--tmg-scroll-active)}
 .tmg-site #tmg-menu .tmg-menu-sub a {
  display:inline-flex;flex:0 0 auto;align-items:center;white-space:nowrap;min-height:40px;
  margin:0;padding:0 20px;border:0;border-right:1px solid #ffffff19;
  font-family:var(--tmg-sans);font-size:clamp(18px,calc(1.12vw + 5px),23px);line-height:1.3;font-weight:400;color:#eef1f2;
  transition:color .2s,background .2s;
 }
 .tmg-site #tmg-menu .tmg-menu-sub a:first-child {padding-left:2px}
 .tmg-site #tmg-menu .tmg-menu-sub a:last-child {border:0}
 .tmg-site #tmg-menu .tmg-menu-sub a:hover {background:#ffffff08;color:#fff}
 .tmg-site #tmg-menu .tmg-menu-sub a:focus-visible {outline:1px solid #e0edf5;outline-offset:-2px}
 .tmg-site #tmg-menu :is(.tmg-menu-sub,.tmg-menu-network-strip) {
  --nav-fade-left:0px;--nav-fade-right:0px;
  mask-image:linear-gradient(90deg,transparent,#000 var(--nav-fade-left),#000 calc(100% - var(--nav-fade-right)),transparent);
 }
 .tmg-site #tmg-menu .has-more-left {--nav-fade-left:10px}
 .tmg-site #tmg-menu .has-more-right {--nav-fade-right:12px}
 /* The wide footer shares one baseline; on phones the social row sits to the right above the topics. */
 .tmg-site #tmg-menu .tmg-menu-bottom {
  display:grid;grid-template-columns:minmax(0,max-content) minmax(4rem,1fr);align-items:center;gap:22px clamp(18px,3.5vw,50px);
  min-width:0;padding:18px var(--tmg-pad) max(18px,env(safe-area-inset-bottom));border-top:1px solid #ffffff17;background:transparent;
 }
 .tmg-site #tmg-menu .tmg-menu-bottom > .tmg-social-block {
  grid-area:auto;justify-self:start;align-self:center;margin:0;max-width:min(40vw,28rem);width:max-content;padding:0;
 }
 .tmg-site #tmg-menu .tmg-menu-bottom .tmg-social-links {display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:5px}
 .tmg-site #tmg-menu .tmg-menu-topics-band {width:100%;min-width:0;box-sizing:border-box;border:0;padding:0}
 .tmg-site #tmg-menu .tmg-menu-topics-band:only-child {grid-column:1/-1}
 .tmg-site #tmg-menu .tmg-menu-network-strip {
  display:flex;align-items:center;min-width:0;width:100%;overflow-x:auto;overflow-y:hidden;
  padding:3px 2px;white-space:nowrap;overscroll-behavior-x:contain;
 }
 .tmg-site #tmg-menu .tmg-menu-topics {
  display:block;flex:0 0 auto;margin-left:auto;padding:0;
  font-size:10px;letter-spacing:.1em;line-height:1.4;text-transform:uppercase;white-space:nowrap;
  color:#c6d0d5;text-shadow:none;box-shadow:none;filter:none;
 }
 .tmg-site #tmg-menu .tmg-menu-network-strip:focus-visible {outline:1px solid #a9bac5;outline-offset:4px}
 .tmg-site #tmg-menu .tmg-menu-bottom .tmg-social-links>a {
  display:inline-grid;grid-template-columns:auto auto;align-items:center;justify-content:center;column-gap:3px;
  padding:0;min-width:44px;min-height:44px;flex:0 0 44px;width:44px;height:44px;
 }
 .tmg-site #tmg-menu .tmg-social-links>a>.tmg-icon {grid-column:1;grid-row:1;width:24px;height:24px}
 .tmg-site #tmg-menu .tmg-social-links>a>.tmg-arrow {position:static;grid-column:2;grid-row:1;align-self:center;width:10px;height:10px;margin:0 0 12px}
 @media(max-width:900px) {
  .tmg-site #tmg-menu .tmg-menu-row {grid-template-columns:minmax(180px,38%) minmax(0,1fr);gap:24px;min-height:78px}
  .tmg-site #tmg-menu .tmg-menu-network-strip {width:100%;padding-block:4px}
 }
 @media(max-width:600px) {
  .tmg-site #tmg-menu .tmg-menu-top {min-height:66px;padding-top:10px;padding-bottom:9px}
  .tmg-site #tmg-menu .tmg-menu-nav {padding-top:17px;padding-bottom:12px}
  .tmg-site #tmg-menu .tmg-menu-row {grid-template-columns:min(48%,11rem) minmax(0,1fr);gap:12px;min-height:64px;padding:9px 0}
  .tmg-site #tmg-menu .tmg-menu-primary {font-size:32px;gap:8px;line-height:1.16;letter-spacing:-.045em}
  .tmg-site #tmg-menu .tmg-menu-primary sup {font-size:8px}
  .tmg-site #tmg-menu .tmg-menu-sub {padding:0 2px}
  .tmg-site #tmg-menu .tmg-menu-sub a {font-size:17px;min-height:40px;padding:0 14px}
  .tmg-site #tmg-menu .tmg-menu-bottom {grid-template-columns:minmax(0,1fr);gap:0;padding:0;border:0}
  .tmg-site #tmg-menu .tmg-menu-bottom > .tmg-social-block {justify-self:end;max-width:100%;box-sizing:border-box;padding:2px max(var(--tmg-pad),env(safe-area-inset-right)) 3px var(--tmg-pad)}
  .tmg-site #tmg-menu .tmg-menu-topics-band {border-top:1px solid #ffffff26;padding:10px var(--tmg-pad) max(14px,env(safe-area-inset-bottom))}
  .tmg-site #tmg-menu .tmg-menu-bottom .tmg-social-links {justify-content:flex-end;gap:4px}
  .tmg-site #tmg-menu .tmg-menu-bottom .tmg-social-links>a {flex-basis:44px;width:44px;height:44px}
  .tmg-site #tmg-menu .tmg-menu-topics {font-size:9px;letter-spacing:.065em}
 }
 @media(min-width:601px) and (min-height:650px) {
  .tmg-site #tmg-menu .tmg-menu-nav {display:flex;flex-direction:column}
  .tmg-site #tmg-menu .tmg-menu-row {flex:none}
  .tmg-site #tmg-menu .tmg-menu-row:first-child {margin-top:auto}
  .tmg-site #tmg-menu .tmg-menu-row:last-child {margin-bottom:auto}
 }
 @media(max-height:520px) {
  .tmg-site #tmg-menu .tmg-menu-nav {padding-block:15px}
  .tmg-site #tmg-menu .tmg-menu-topics-band {padding-block:6px max(10px,env(safe-area-inset-bottom))}
 }
 @media(forced-colors:active) {
  .tmg-site #tmg-menu .tmg-menu-meter::before {background:GrayText}
  .tmg-site #tmg-menu .tmg-menu-meter i {background:Highlight}
 }
 @media(max-width:350px) {
  .tmg-site #tmg-menu .tmg-menu-row {grid-template-columns:min(50%,9.6rem) minmax(0,1fr);gap:9px}
  .tmg-site #tmg-menu .tmg-menu-primary {font-size:29px}
 }
}
