:root { --nav-navy: #0a2540; --nav-font: Calibri, Carlito, "Segoe UI", system-ui, sans-serif; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 40; background: var(--nav-navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }
/* Header */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: radial-gradient(60% 180% at 100% 0, rgba(245, 158, 11, .2), transparent 70%), radial-gradient(45% 170% at 0 100%, rgba(60, 195, 189, .2), transparent 70%), linear-gradient(100deg, #061a33, var(--nav-navy) 50%, #0f2f52); box-shadow: 0 10px 26px -14px rgba(6, 26, 51, .75); }
.nav::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, #3cc3bd, #ffc24d, #f7803c, #ffc24d, #3cc3bd); background-size: 300% 100%; animation: nav-sun 14s linear infinite; }
@keyframes nav-sun { to { background-position: 300% 0; } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--nav-navy); }
.nav-in { display: flex; align-items: center; gap: 14px; min-height: 64px; transition: min-height .25s ease; }
.brand { flex: none; transition: transform .25s ease; }
.brand:hover { transform: scale(1.03); }
.brand img { display: block; height: 32px; width: auto; transition: height .25s ease; }
.menu-btn { display: flex; align-items: center; gap: 9px; margin-left: auto; min-height: 44px; padding: 6px 15px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .25); font: 700 1rem var(--nav-font); cursor: pointer; }
.bars { display: grid; gap: 3px; width: 16px; }
.bars i { display: block; height: 2px; border-radius: 2px; background: #ffc24d; transition: transform .22s ease, opacity .22s ease; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 16px 18px; background: linear-gradient(180deg, #0a2540, #071c36); box-shadow: 0 24px 34px -18px rgba(6, 26, 51, .8); flex-direction: column; max-height: calc(100vh - 128px); overflow: auto; }
.nav-links.open { display: flex; animation: nav-drop .22s ease-out; }
@keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } }
.nav-rail { display: flex; flex-direction: column; gap: 2px; }
.rail-pill { display: none; }
.nav-links a { padding: 11px 14px; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 700; }
.nav-links a:hover { background: rgba(255, 255, 255, .08); }
.nav-links a[aria-current="page"] { background: rgba(255, 194, 77, .14); color: #ffc24d; box-shadow: inset 3px 0 0 #ffc24d; }
.more-btn { display: none; }
.more-list { display: flex; flex-direction: column; gap: 2px; }
.nav-cta { display: none; }
.nav-links a, .menu-btn, .more-btn { font-family: var(--nav-font); }
.nav-cta a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-family: var(--nav-font); font-weight: 700; cursor: pointer; }
@media (min-width: 1240px) {
  .menu-btn { display: none; }
  .nav-in { min-height: 76px; }
  .brand img { height: 42px; }
  .nav.scrolled .nav-in { min-height: 60px; }
  .nav.scrolled .brand img { height: 34px; }
  .nav-links { display: flex; position: static; flex-direction: row; align-items: center; gap: 12px; padding: 0; margin-left: auto; max-height: none; overflow: visible; background: none; box-shadow: none; }
  .nav-rail { position: relative; flex-direction: row; align-items: center; gap: 0; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
  .rail-pill { display: block; position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: linear-gradient(120deg, #fff, #fff3d6); box-shadow: 0 4px 16px -3px rgba(255, 194, 77, .75); opacity: 0; transition: transform .32s cubic-bezier(.3, 1.3, .5, 1), width .32s cubic-bezier(.3, 1.3, .5, 1), opacity .2s ease; }
  .nav-rail > a, .more-btn { position: relative; z-index: 1; display: flex; align-items: center; min-height: 38px; padding: 4px 12px; border-radius: 999px; background: none; color: #fff; font: 700 1.04rem var(--nav-font); white-space: nowrap; transition: color .18s ease; }
  .nav-rail > a:hover { background: none; }
  .nav-rail > a[aria-current="page"] { background: none; color: #fff; box-shadow: none; }
  .nav-rail > a.on, .more-btn.on { color: var(--nav-navy); }
  .nav-rail:not(.live) > a[aria-current="page"] { background: #fff; color: var(--nav-navy); }
  .more { position: relative; z-index: 1; }
  .more-btn { gap: 6px; border: 0; cursor: pointer; }
  .more-btn svg { transition: transform .22s ease; }
  .more:hover .more-btn svg, .more:focus-within .more-btn svg { transform: rotate(180deg); }
  .more-list { display: none; position: absolute; top: calc(100% + 14px); right: 0; min-width: 280px; padding: 8px; border-radius: 16px; background: linear-gradient(160deg, #0f2f52, #081d38); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 26px 40px -18px rgba(6, 26, 51, .9); }
  .more-list::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
  .more:hover .more-list, .more:focus-within .more-list { display: flex; animation: nav-drop .18s ease-out; }
  .more-list a { white-space: nowrap; transition: background .15s ease, padding-left .15s ease; }
  .more-list a:hover { padding-left: 20px; }
  .more-list a[aria-current="page"] { box-shadow: none; }
  .nav-cta { display: flex; align-items: center; gap: 8px; }
  .nav-links .nav-cta a.btn { position: relative; overflow: hidden; min-height: 44px; padding: 5px 17px; border: 0; border-radius: 999px; font-size: 1.02rem; white-space: nowrap; color: var(--nav-navy); background: linear-gradient(110deg, #ffc24d, #f59e0b 55%, #f7803c); box-shadow: 0 8px 20px -8px rgba(245, 158, 11, .95); transition: transform .2s ease, box-shadow .2s ease; }
  .nav-links .nav-cta a.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-20deg); transition: left .55s ease; }
  .nav-links .nav-cta a.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(245, 158, 11, 1); }
  .nav-links .nav-cta a.btn:hover::after { left: 120%; }
  .nav-links .nav-cta a.btn.line { color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(60, 195, 189, .85); }
  .nav-links .nav-cta a.btn.line:hover { background: #3cc3bd; color: var(--nav-navy); box-shadow: 0 10px 22px -10px rgba(60, 195, 189, .95); }
  .nav-links .nav-cta a.btn[aria-current="page"], .nav-links .nav-cta a.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  body.home.at-top .brand { opacity: 0; pointer-events: none; }
}
@media (min-width: 1240px) and (max-width: 1339px) {
  .nav-links { gap: 8px; }
  .brand img { height: 36px; }
  .nav-rail > a, .more-btn { padding: 4px 9px; }
  .nav-links .nav-cta a.btn { padding: 5px 13px; }
  .nav-cta { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav::after, .nav-links.open, .more-list { animation: none !important; }
  .rail-pill, .nav-in, .brand, .brand img, .nav-links .nav-cta a.btn, .bars i { transition: none !important; }
}
