/* ==========================================================================
   TOP BAR, MENU, LOWER THIRD AND FOOTER
   ========================================================================== */

/* Top bar: solid, with the menu always in view */
.top { position: fixed; inset: 0 0 auto 0; z-index: 300; height: var(--top-h); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); padding-inline: var(--gut); background: rgba(11, 10, 10, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--paper); border-bottom: 1px solid var(--line); transition: height .3s var(--expo); }
.top-slim .top { height: 52px; }
.top-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.top-logo img { background: none; width: 42px; height: 42px; transition: width .3s var(--expo), height .3s var(--expo); }
.top-slim .top-logo img { width: 34px; height: 34px; }
.top-logo span { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.01em; white-space: nowrap; }
.top-logo em { color: var(--gold); font-weight: 300; }
.top-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); flex: 1; }
.top-nav a { position: relative; font-family: var(--sans); font-weight: 600; font-size: .98rem; padding-block: 8px; white-space: nowrap; }
.top-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--expo); }
.top-nav a:hover::after, .top-nav a[aria-current='page']::after { transform: scaleX(1); }
.top-nav a[aria-current='page'] { color: #fff; }
.top-tip { flex: none; margin-left: auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius); background: var(--red); color: #fff; font-family: var(--sans); font-weight: 700; font-size: .9rem; }
.top-tip:hover { background: #fff; color: var(--on-light); }
.top-btn { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0 2px 0 4px; font-size: .8rem; }
.top-btn i { position: relative; display: block; width: 26px; height: 10px; }
.top-btn i::before, .top-btn i::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .4s var(--expo); }
.top-btn i::before { top: 0; }
.top-btn i::after { bottom: 0; }
.guide-open .top-btn i::before { transform: translateY(4px) rotate(45deg); }
.guide-open .top-btn i::after { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 980px) {
  .top-nav { display: none; }
  .top-btn { display: inline-flex; }
  .top-tip { padding: 8px 12px; font-size: .82rem; }
}

/* Lower third */
.chyron { position: fixed; inset: auto 0 0 0; z-index: 310; height: var(--chyron-h); display: flex; align-items: stretch; background: var(--ink); border-top: 1px solid var(--line); font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); }
.chy-air { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--red); color: #fff; font-weight: 500; flex: none; }
.chy-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.motion .chy-dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.72); } }
.chy-clock { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-right: 1px solid var(--line); flex: none; font-variant-numeric: tabular-nums; }
.chy-clock span { color: var(--metal); }
.chy-tick { position: relative; flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.chy-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: tick var(--tick-d, 120s) linear infinite; }
.chy-track span { padding-right: 48px; }
.chy-track span::after { content: '///'; color: var(--red-text); padding-left: 48px; }
.chy-tick:hover .chy-track, .tick-paused .chy-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.chy-pause { flex: none; width: 40px; border-left: 1px solid var(--line); display: grid; place-items: center; }
.chy-pause svg { width: 10px; height: 10px; fill: currentColor; }
.chy-pause .i-play { display: none; }
.tick-paused .chy-pause .i-play { display: block; }
.tick-paused .chy-pause .i-pause { display: none; }
main { padding-bottom: var(--chyron-h); }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 320; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; pointer-events: none; opacity: 0; }
.progress.on { opacity: 1; }

/* The Guide */
.guide { position: fixed; inset: 0; z-index: 250; background: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr); padding: var(--top-h) var(--gut) calc(var(--chyron-h) + 12px); overflow-y: auto; overscroll-behavior: contain; }
.guide-head { display: flex; justify-content: space-between; padding-block: 10px; border-bottom: 1px solid var(--line); }
.guide-list { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.guide-body { display: flex; flex-direction: column; min-height: 100%; position: relative; }
.guide-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding-block: clamp(8px, 1.2vh, 14px); border-bottom: 1px solid var(--line); }
.guide-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .95; font-size: clamp(1.9rem, min(6vh, 6vw), 3.6rem); transition: color .2s; }
.guide-blurb { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); text-align: right; }
.guide-row:hover .guide-name, .guide-row:focus-visible .guide-name, .guide-row[aria-current='page'] .guide-name { color: var(--red-text); }
.guide-special .guide-name { color: var(--red-text); }
.guide-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 12px; }
@media (max-width: 560px) { .guide-blurb { display: none; } }

/* Footer */
.foot { padding: clamp(48px, 6vw, 88px) var(--gut) 20px; border-top: 1px solid var(--line); }
.foot-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px clamp(32px, 6vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
.foot-brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
.foot-logo { display: flex; align-items: center; gap: 14px; }
.foot-logo img { width: 88px; height: 88px; background: none; }
.foot-logo span { font-family: var(--serif); font-size: 2rem; letter-spacing: -.02em; }
.foot-logo em { color: var(--gold); font-weight: 300; }
.foot-social { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.foot-social:hover { color: #fff; }
.foot-slogan { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.05rem; color: var(--muted); }
.foot-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 24px clamp(32px, 6vw, 96px); }
.foot-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.foot-col a { min-height: 28px; font-size: .98rem; white-space: nowrap; }
.foot-col a:hover { color: var(--red-text); }
.foot-col h3 { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--metal); margin-bottom: 8px; font-weight: 400; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .68rem; }
@media (max-width: 560px) {
  .foot-main { flex-direction: column; }
  .foot-nav { width: 100%; justify-content: space-between; grid-template-columns: repeat(3, auto); column-gap: 16px; }
}
