html { scroll-padding-block-start: calc(var(--masthead-height, 4.5rem) + .5rem); }
#main { scroll-margin-block-start: 0; }
.skip:focus { z-index: 110; }

.masthead {
    --header-glass: rgb(7 17 25 / .28);
    --header-current: #ccf5ed;
    --header-gold: #ffedb5;
    --header-hover: #173239;
    position: sticky;
    inset-block-start: 0;
    z-index: 100;
    width: 100%;
    flex: none;
}
[data-theme="light"] .masthead {
    --header-glass: rgb(255 255 255 / .32);
    --header-current: #003c39;
    --header-gold: #463400;
    --header-hover: #e1eeee;
}
.masthead-glass {
    position: relative;
    background: var(--header-glass);
    -webkit-backdrop-filter: blur(6px) saturate(104%);
    backdrop-filter: blur(6px) saturate(104%);
    border-block-end: 1px solid var(--line);
}
.masthead-leaderboard {
    width: 100%;
    overflow: hidden;
    background: var(--solid);
    border-block-end: 1px solid var(--line);
}
.promo-leaderboard-frame {
    display: block;
    width: 100%;
    max-width: none;
    height: clamp(42px, 8vw, 90px);
    margin-inline: auto;
    border: 0;
}
.masthead-row {
    max-width: 76rem;
    min-height: 4.5rem;
    margin-inline: auto;
    padding: .3rem clamp(.75rem, 2.5vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2.5vw, 2.6rem);
    background: transparent;
}
.masthead-brand {
    --gmrtc-mark-size: 3.125rem;
    --gmrtc-wordmark-size: 1.36rem;
    display: inline-flex;
    flex: none;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}
.masthead-brand .gmrtc-brand { position: relative; gap: .44rem; }
@media (prefers-reduced-motion: no-preference) {
    .masthead :is(.primary-nav a, .primary-nav summary, .language-control, .chrome-control) {
        transition: color .18s ease, background .18s ease, box-shadow .18s ease;
    }
}
.primary-nav, .masthead-tools, .colophon-links {
    display: flex;
    align-items: center;
}
.primary-nav { gap: clamp(.18rem, 1vw, .85rem); }
.primary-nav a, .primary-nav summary, .masthead-tools a, .colophon-links a { text-decoration: none; }
.primary-nav :is(a, summary), .language-control, .chrome-control {
    min-height: 2.75rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: .4rem;
    font: inherit;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}
.primary-nav > a, .service-menu > summary { padding-inline: .58rem; white-space: nowrap; }
.masthead :is(.primary-nav > a, .service-menu > summary, .language-control, .chrome-control) {
    background: transparent;
}
.masthead :is(.primary-nav a, .primary-nav summary, .language-control, .chrome-control):is(:hover, :focus-visible),
.masthead-search[open] > summary {
    background: var(--header-hover);
    color: var(--header-current);
    box-shadow: inset 0 0 0 1px var(--control-line), 0 .16rem .85rem rgb(63 165 159 / .18);
}
.primary-nav a[aria-current="page"], .service-menu[data-current-group] > summary { color: var(--header-current); }
.primary-nav .platform-link { color: var(--header-gold); }
.primary-nav .service-menu { position: relative; flex: none; }
.service-menu > summary { gap: .5rem; list-style: none; cursor: pointer; }
.service-menu > summary::-webkit-details-marker { display: none; }
.service-menu > summary::after {
    content: "";
    width: .38rem;
    height: .38rem;
    border-block-end: 1.5px solid currentColor;
    border-inline-end: 1.5px solid currentColor;
    transform: translateY(-.08rem) rotate(45deg);
}
.service-menu[open] > summary::after { transform: translateY(.12rem) rotate(225deg); }
.service-menu-links {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 0;
    width: max-content;
    max-width: min(22rem, 90vw);
    padding: .4rem;
    border: 1px solid var(--control-line);
    border-radius: .7rem;
    background: var(--solid);
    box-shadow: 0 .7rem 2rem rgb(0 0 0 / 18%);
}
.service-menu-links a {
    display: flex;
    min-height: 2.6rem;
    padding: .5rem .8rem;
    justify-content: flex-start;
}
.masthead-tools { flex: none; gap: .12rem; padding-inline-start: .35rem; border-inline-start: 1px solid var(--control-line); }
.language-control, .chrome-control {
    flex: none;
    width: 2.75rem;
    padding: .4rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.language-control { font-size: .875rem; letter-spacing: .035em; }
.chrome-control svg {
    display: block;
    width: 1.13rem;
    height: 1.13rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.masthead-search { flex: none; }
.masthead-search > summary { list-style: none; }
.masthead-search > summary::-webkit-details-marker { display: none; }
.masthead-search-panel {
    position: absolute;
    z-index: 3;
    inset-block-start: calc(100% + .35rem);
    inset-inline-end: max(.6rem, calc((100% - 72rem) / 2));
    width: min(30rem, calc(100% - 1.2rem));
    padding: .65rem;
    max-height: calc(100vh - var(--masthead-height, 4.5rem) - 1rem);
    max-height: calc(100dvh - var(--masthead-height, 4.5rem) - 1rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--control-line);
    border-radius: .8rem;
    background: var(--solid);
    box-shadow: 0 .8rem 2.5rem rgb(0 0 0 / .24);
}
.masthead-search form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .42rem; }
.masthead-search :is(input, button) {
    min-height: 2.75rem;
    min-width: 0;
    border: 1px solid var(--control-line);
    border-radius: .5rem;
    padding: .4rem .65rem;
    font: inherit;
    color: var(--text);
    background: var(--bg);
}
.masthead-search button { cursor: pointer; background: var(--header-hover); color: var(--header-current); font-weight: 600; }
.masthead-search button:is(:hover, :focus-visible) { border-color: var(--accent-hover); }
.masthead-search-results { list-style: none; padding: 0; margin: .45rem 0 0; max-height: 18rem; overflow-y: auto; }
.masthead-search-results a {
    display: block;
    padding: .55rem .62rem;
    color: var(--text);
    border-radius: .35rem;
    font-size: .95rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.masthead-search-results a:is(:hover, :focus-visible) { background: var(--header-hover); color: var(--header-current); }
.masthead-search-results a:focus-visible { outline-offset: -2px; }
.masthead-search-status { margin: .6rem .4rem .2rem; color: var(--muted); font-size: .875rem; }
.masthead-search-status:empty { display: none; }
.masthead [hidden], .chrome-control .menu-close-glyph, .theme-button .moon-glyph { display: none; }
.chrome-control[aria-expanded="true"] .menu-open-glyph { display: none; }
.chrome-control[aria-expanded="true"] .menu-close-glyph { display: inline; }
:root[data-theme="light"] .theme-button .sun-glyph { display: none; }
:root[data-theme="light"] .theme-button .moon-glyph { display: block; }
.masthead :focus-visible, .colophon :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.colophon { flex: none; border-block-start: 1px solid var(--line); background: var(--surface); }
.colophon-row {
    width: min(100% - 2.5rem, 68rem);
    margin-inline: auto;
    padding-block: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 2rem;
    row-gap: .5rem;
}
.trademark-note {
    display: flex;
    align-items: center;
    gap: .62rem;
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}
.trademark-note img { display: block; flex: none; }
.legal-wordmark { color: var(--text); font: 700 1em/1 "GMRTC Eras Bold", "Eras Bold ITC", "Eras Bold", Arial, sans-serif; font-synthesis: none; }
.legal-wordmark sup { font: .65em/1 system-ui, sans-serif; margin-inline-start: .08em; }
.colophon-links { flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .875rem; }
.colophon-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); }
.colophon-links a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 64rem) {
    .masthead-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        min-height: 3.5rem;
        padding: .18rem clamp(.55rem, 2.5vw, 1.2rem);
        gap: .12rem .35rem;
    }
    .masthead-brand { justify-self: start; --gmrtc-mark-size: 2.48rem; --gmrtc-wordmark-size: 1.16rem; }
    .mobile-menu-button { grid-column: 3; grid-row: 1; justify-self: end; }
    .masthead-tools { grid-column: 2; grid-row: 1; padding-inline-start: .15rem; }
    .primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: .1rem;
    }
    .primary-nav > a, .service-menu > summary { padding-inline: .65rem; }
    .masthead[data-interactive] .primary-nav {
        position: absolute;
        inset-inline: 0;
        inset-block-start: 100%;
        display: none;
        max-height: calc(100vh - var(--masthead-height, 3.5rem));
        max-height: calc(100dvh - var(--masthead-height, 3.5rem));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: .45rem clamp(.65rem, 2.5vw, 1.2rem) .75rem;
        border-block-end: 1px solid var(--control-line);
        background: var(--solid);
        box-shadow: 0 .75rem 1.2rem rgb(0 0 0 / 14%);
    }
    .masthead[data-menu-open] .primary-nav { display: grid; }
    .masthead[data-interactive] .primary-nav > a, .masthead[data-interactive] .service-menu > summary {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        min-height: 2.8rem;
    }
    .masthead[data-interactive] .service-menu-links {
        position: static;
        width: auto;
        max-width: none;
        border: 0;
        border-inline-start: 1px solid var(--control-line);
        border-radius: 0;
        box-shadow: none;
        margin-inline-start: .7rem;
        margin-block: .1rem .45rem;
        padding: 0 .45rem;
    }
}
@media (max-width: 28rem) {
    .masthead-tools { gap: 0; padding-inline-start: 0; border-inline-start: 0; }
    .masthead-tools :is(.chrome-control,.language-control), .mobile-menu-button { width: 2.5rem; }
}
@media (max-width: 24rem) {
    .masthead-brand { --gmrtc-mark-size: 2.15rem; --gmrtc-wordmark-size: 1.06rem; }
    .masthead-brand .gmrtc-brand { gap: .32rem; }
    .masthead-row { column-gap: .15rem; }
    .masthead-tools { padding: 0; border: 0; }
    .masthead-tools, .colophon-links { column-gap: 0; }
    .colophon-links a { padding-inline-end: .8rem; }
}

.masthead .primary-nav .platform-link { color: #f2c665; }
[data-theme="light"] .masthead .primary-nav .platform-link { color: #76520c; }
.service-menu > summary::after { content: none; }
.service-menu[open] > summary .nav-chevron { transform: rotate(180deg); }
.service-menu-links { max-height: min(63vh, 30rem); overflow-y: auto; overscroll-behavior: contain; }
.service-menu-links .service-menu-links { position: static; width: auto; box-shadow: none; border: 0; border-left: 1px solid var(--line); margin-left: .6rem; }
.service-menu-links summary { padding-inline: .8rem; }
.masthead-share summary { list-style: none; cursor: pointer; }
.masthead-share summary::-webkit-details-marker { display: none; }
.masthead-share { position: relative; }
.header-share-actions {
    display: grid; grid-template-columns: repeat(4, 2.5rem); position: absolute; right: 0; top: calc(100% + .35rem);
    z-index: 4; padding: .4rem; border: 1px solid var(--control-line); border-radius: .75rem;
    background: var(--solid); box-shadow: 0 .5rem 1.6rem rgb(0 0 0 / .2);
}
.header-share-actions :is(a,button) { display: grid; place-items: center; height: 2.5rem; border: 0; border-radius: .5rem; color: var(--text); background: transparent; cursor: pointer; }
.header-share-actions :is(a,button):is(:hover,:focus-visible) { color: var(--accent-hover); background: var(--surface); }
.header-share-actions svg { width: 1.25rem; height: 1.25rem; }
.header-share-actions :is(input,span) { grid-column: 1 / -1; min-width: 0; font-size: .8rem; }
@media(max-width: 24rem) {
    .masthead-tools :is(.chrome-control,.language-control), .mobile-menu-button { width: 2.24rem; min-height: 2.75rem; }
    .masthead-tools { gap: 0; }
}

/* Long custom navigation trees can reach the desktop breakpoint before the viewport does. */
.masthead[data-crowded] .masthead-row { justify-content: flex-end; }
.masthead[data-crowded] .masthead-brand { margin-inline-end: auto; }
.masthead[data-crowded] .primary-nav {
    display: none; position: absolute; inset: 100% 0 auto; overflow: auto;
    max-height: calc(100dvh - var(--masthead-height, 4.5rem)); padding: .5rem max(1rem, calc((100% - 73rem) / 2));
    background: var(--solid); border-bottom: 1px solid var(--control-line); box-shadow: 0 .6rem 1rem rgb(0 0 0 / .14);
}
.masthead[data-crowded][data-menu-open] .primary-nav { display: grid; justify-items: stretch; }
.masthead[data-crowded] .primary-nav :is(a, summary) { justify-content: flex-start; }
.masthead[data-crowded] .service-menu-links { position: static; width: auto; max-width: none; max-height: none; border: 0; border-left: 1px solid var(--control-line); border-radius: 0; margin-inline-start: .65rem; box-shadow: none; }

/* The hover layer leaves the 23 s brand cycle running behind it. */
.masthead-brand .gmrtc-brand__hover-star { filter: drop-shadow(0 0 10px #e7be67); }
@media (prefers-reduced-motion: no-preference) {
    .masthead-brand :is(.gmrtc-brand__hover,.gmrtc-brand__cycle) { transition: opacity .32s ease-in-out; }
}
@media (hover: hover) {
    .masthead-brand:hover .gmrtc-brand__hover { opacity: 1; }
    .masthead-brand:hover .gmrtc-brand__cycle { opacity: 0; }
}
.masthead-brand:focus-visible .gmrtc-brand__hover { opacity: 1; }
.masthead-brand:focus-visible .gmrtc-brand__cycle { opacity: 0; }
/* A fixed, soft highlight avoids a moving underline as the pointer enters a label. */
.masthead .primary-nav :is(a,summary) {
    background: transparent;
    box-shadow: inset 0 0 0 1px transparent;
    text-shadow: 0 0 .65em transparent;
}
.masthead .primary-nav :is(a,summary):is(:hover,:focus-visible),
.masthead .primary-nav details[open] > summary {
    background: color-mix(in srgb, var(--header-current) 7%, transparent);
    color: var(--header-current);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--header-current) 17%, transparent),
        0 0 .8rem color-mix(in srgb, var(--header-current) 8%, transparent);
    text-shadow: 0 0 .65em color-mix(in srgb, var(--header-current) 17%, transparent);
}
.masthead .primary-nav .platform-link:is(:hover,:focus-visible),
.masthead .primary-nav details[open] > summary.platform-link { color: var(--header-gold); }
@media (prefers-reduced-motion: no-preference) {
    .masthead .primary-nav :is(a,summary) {
        transition: color .22s ease, background-color .22s ease, box-shadow .22s ease, text-shadow .22s ease;
    }
}
html[data-motion="reduced"] .masthead .primary-nav :is(a,summary) { transition: none; }
@media (forced-colors: active) {
    .masthead .primary-nav :is(a,summary):is(:hover,:focus-visible),
    .masthead .primary-nav details[open] > summary { outline: 1px solid Highlight; outline-offset: -1px; }
}
