/* One navigation system for the guide, creator, and video library. */
.global-header { position: sticky; top: 0; z-index: 50; width: 100%; border-bottom: 1px solid #f7f1e313; background: #0b0b0fe8; backdrop-filter: blur(18px); }
.global-header-inner { position: relative; display: flex; align-items: center; gap: 22px; width: min(1120px,calc(100% - 40px)); height: 71px; margin: 0 auto; }
.global-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: auto; color: var(--ink); text-decoration: none; font: 800 19px/1 var(--body-font); letter-spacing: -.3px; }
.global-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #f7f1e333; border-radius: 9px; background: linear-gradient(135deg,var(--red),var(--yellow) 42%,var(--green)); color: #09090d; font: 800 17px/1 var(--body-font); }
.global-nav-panel, .global-primary-nav { display: flex; align-items: center; gap: 6px; width: auto; overflow: visible; }
.global-header .global-nav-link, .global-learn > summary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); text-decoration: none; white-space: nowrap; font: 500 13px/1.3 var(--body-font); cursor: pointer; }
.global-header .global-nav-link:hover, .global-learn > summary:hover { color: var(--ink); background: #f7f1e30a; }
.global-header .global-nav-link[aria-current], .global-header .global-nav-link[data-active=true], .global-learn > summary[data-active=true] { color: var(--ink); background: #f7f1e30d; }
.global-nav-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.global-header .global-my-videos { margin-left: 15px; }
.global-nav-panel::after { content: ''; width: 1px; height: 20px; background: #f7f1e31c; margin-left: 9px; }
.global-header .global-learn { position: relative; border: 0; }
.global-learn > summary { list-style: none; }
.global-learn > summary::-webkit-details-marker { display: none; }
.global-learn > summary .global-nav-icon { width: 13px; height: 13px; flex-basis: 13px; }
.global-learn[open] > summary .global-nav-icon { transform: rotate(180deg); }
.global-learn[open] > summary { color: var(--ink); background: #f7f1e30d; }
.global-learn-links { position: absolute; top: calc(100% + 12px); right: 0; width: 278px; padding: 7px; border: 1px solid #f7f1e324; border-radius: 12px; background: #18181f; box-shadow: 0 18px 50px #0007; }
.global-header .global-learn-links a { display: flex; flex-direction: column; justify-content: center; min-height: 62px; gap: 4px; padding: 11px 13px; border-radius: 7px; color: var(--ink); text-decoration: none; }
.global-learn-links a:hover, .global-learn-links a[aria-current] { background: #f7f1e309; }
.global-learn-links strong { font: 600 13px/1.3 var(--body-font); }
.global-learn-links span { color: var(--muted); font: 400 11px/1.4 var(--body-font); }
.global-create { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; flex-shrink: 0; padding: 9px 14px; border: 1px solid var(--ink); border-radius: 7px; background: var(--ink); color: #101014; text-decoration: none; font: 700 12px/1.3 var(--body-font); white-space: nowrap; }
.global-create:hover { background: var(--soft); border-color: var(--soft); }
.global-create[aria-current=page] { background: #f7f1e30a; border-color: #f7f1e340; color: var(--ink); }
.global-menu-toggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid #f7f1e326; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; }
.global-menu-toggle .global-nav-icon { width: 19px; height: 19px; }
.global-menu-close-icon { display: none; }
.global-header[data-menu-open=true] .global-menu-open-icon { display: none; }
.global-header[data-menu-open=true] .global-menu-close-icon { display: block; }
.global-header :is(a,button,summary):focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
body:is(.generation-page,.style-editor-page) .global-header-inner { width: 100%; max-width: 1880px; padding: 0 26px; }
.generator-copy .generator-style-link { font-size: 13px; color: var(--muted); margin: 16px 0 0; line-height: 1.7; }
.generator-style-link a { color: var(--ink); text-decoration: none; border-bottom: 1px solid #f7f1e340; padding-bottom: 2px; white-space: nowrap; }
main :is(section[id],#meaning) { scroll-margin-top: 96px; }
@media (min-width:901px) {
  body:is(.generation-page,.style-editor-page) .studio-shell { height: calc(100dvh - 72px); }
}
@media (max-width:760px) {
  .global-header-inner, body:is(.generation-page,.style-editor-page) .global-header-inner { width: 100%; height: 63px; padding: 0 16px; gap: 12px; }
  .global-brand { font-size: 18px; gap: 8px; }
  .global-brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .global-create { min-height: 36px; padding: 8px 11px; font-size: 11px; }
  .global-create .global-nav-icon { width: 14px; height: 14px; flex-basis: 14px; }
  .global-menu-toggle { display: inline-flex; }
  .global-nav-panel { position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; display: flex; align-items: stretch; flex-direction: column; gap: 0; padding: 9px; border: 1px solid #f7f1e324; border-radius: 12px; background: #18181f; box-shadow: 0 18px 50px #0008; max-height: calc(100dvh - 90px); overflow-y: auto; }
  .global-header.is-enhanced:not([data-menu-open=true]) .global-nav-panel { display: none; }
  .global-primary-nav { display: block; width: 100%; overflow: visible; }
  .global-header .global-nav-link, .global-learn > summary { display: flex; justify-content: flex-start; width: 100%; min-height: 44px; font-size: 13px; }
  .global-learn > summary { justify-content: space-between; }
  .global-learn-links { position: static; width: 100%; padding: 2px 0 7px 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .global-header .global-learn-links a { min-height: 58px; }
  .global-header .global-my-videos { margin: 7px 0 0; padding-top: 14px; border-top: 1px solid #f7f1e317; border-radius: 0 0 7px 7px; min-height: 49px; }
  .global-nav-panel::after { display: none; }
}
@media (max-width:360px) {
  .global-header-inner, body:is(.generation-page,.style-editor-page) .global-header-inner { padding-inline: 12px; gap: 9px; }
  .global-brand { font-size: 17px; }
  .global-create { padding-inline: 9px; gap: 5px; }
}
