/* The site's form (website/holo.css) on what the section pages share: the page's ground, the band with the logo
   and the section tabs, the footer, the small labels and the motion switch. The band and the tabs are the ones of
   the News pages (feed/public-assets/news.css), so the four sections read as one site. Inside a room the framework
   hides the band and the footer (rooms.css). */

/* The page stands on the sky: no section paints its own ground. */
html body.about-page, html body.broadcast-page, html body.broadcast-page[data-section] { background: transparent; color: var(--holo-ink); }
html:has(body.about-page), html:has(body.broadcast-page) { scroll-padding-top: 24px; }
/* The page's scroll bar is the deck's (an earlier sheet sets its own with more weight). */
html:root { scrollbar-color: #2a7bff var(--holo-space) !important; }

/* Band: the approved News logo stands directly on the sky (no plate) beside the section tabs, over a rule of
   light. It stays in the page's flow. */
html body > .universe-header {
  position: relative !important; top: auto !important; z-index: 2; height: auto !important; min-height: 0;
  justify-content: flex-start; flex-wrap: wrap; gap: 12px 22px; padding: 12px clamp(12px, 3vw, 28px) 13px !important;
  border: 0; background: var(--holo-rule) left bottom / 100% 1px no-repeat !important; -webkit-backdrop-filter: none; backdrop-filter: none;
  color: var(--holo-ink) !important;
}
.universe-header .universe-brand { width: 190px; flex: none; }
/* The tabs are one control, as on the deck's own bar: the current section is lit, each dot is its section's light. */
.universe-header .universe-nav { gap: 4px; padding: 4px; border: 1px solid var(--holo-line); border-radius: 12px; background: var(--holo-glass-thin); box-shadow: var(--holo-inner); }
.universe-header .universe-nav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: 8px;
  font: 600 12px/1 var(--holo-font); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--holo-dim);
}
.universe-header .universe-nav a::after { content: none !important; }
.universe-header .universe-nav a::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--dot, var(--holo-accent)); box-shadow: 0 0 10px var(--dot, var(--holo-accent)); }
.universe-header .universe-nav a[data-page="news"] { --dot: var(--holo-news); }
.universe-header .universe-nav a[data-page="live"] { --dot: var(--holo-live); }
.universe-header .universe-nav a[data-page="economy"] { --dot: var(--holo-economy); }
.universe-header .universe-nav a[data-page="about"] { --dot: var(--holo-about); }
.universe-header .universe-nav a:hover { background: #6ff6ff1f; color: var(--holo-bright); }
.universe-header .universe-nav a[aria-current="page"] { background: var(--holo-fill); color: var(--holo-on-accent); box-shadow: 0 0 18px -3px var(--holo-blue); }
.universe-header .universe-nav a[aria-current="page"]::before { background: var(--holo-on-accent); box-shadow: none; }
.universe-header .universe-end { margin-inline-start: auto; font: 600 10.5px/1 var(--holo-font); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--holo-dim); }
.universe-header .universe-end:hover { color: var(--holo-bright); }

/* On the Live page the band and the footer stand on the wall's own side margins. */
html body.broadcast-page > .universe-header { padding-inline: 24px !important; }
html body.broadcast-page .universe-footer.universe-footer { padding-inline: 24px; }
@media (max-width: 1100px) {
  html body.broadcast-page > .universe-header { padding-inline: 18px !important; }
  html body.broadcast-page .universe-footer.universe-footer { padding-inline: 18px; }
}

/* A small label of the deck */
.universe-kicker { font: 600 11px/1.6 var(--holo-font); letter-spacing: .3em; text-transform: uppercase; color: var(--holo-accent); text-shadow: var(--holo-label-glow); }

/* Footer: a rule of light and the section links as labels */
html body .universe-footer.universe-footer { padding: 34px clamp(12px, 3vw, 28px) 32px; background: var(--holo-rule) left top / 100% 1px no-repeat; color: var(--holo-dim); }
.universe-footer a { border-bottom: 0; }
.universe-footer .footer-top { gap: 14px 28px; flex-wrap: wrap; }
.universe-footer .universe-kicker { opacity: 1; margin: 0; }
.universe-footer .universe-nav { gap: 8px 26px; flex-wrap: wrap; }
.universe-footer .universe-nav a { min-height: 36px; padding: 0; font: 600 11px/1 var(--holo-font); letter-spacing: .2em; text-transform: uppercase; color: var(--holo-accent); }
.universe-footer .universe-nav a::after { content: none !important; }
.universe-footer .universe-nav a:hover, .universe-footer .universe-nav a[aria-current="page"] { color: var(--holo-bright); text-decoration: none; text-shadow: var(--holo-label-glow); }
/* The name is written as a plain line: the logo is artwork and is not imitated in type. */
.universe-footer .universe-footer-title { margin: 22px 0 20px; font: 600 18px/1.3 var(--holo-font); letter-spacing: .02em; text-transform: none; white-space: normal; color: var(--holo-bright); }
.universe-footer .universe-footer-title em { font: inherit; font-style: normal; color: inherit; }
.universe-footer .footer-bottom { padding-top: 20px; border-top: 1px solid var(--holo-hair); font: 600 10.5px/1.6 var(--holo-font); letter-spacing: .16em; text-transform: uppercase; color: var(--holo-dim); }
.universe-footer .footer-bottom > div { gap: 6px 22px; }
.universe-footer .footer-bottom a:not(.universe-group) { color: var(--holo-ink); }
.universe-footer .footer-bottom a:not(.universe-group):hover { color: var(--holo-bright); text-decoration: underline; text-underline-offset: 3px; }
/* The motion switch the About page keeps in its footer */
.universe-motion { position: static; margin: 0; min-height: 32px; padding: 0 13px; border: 1px solid var(--holo-line); border-radius: 8px; background: var(--holo-glass-thin); color: var(--holo-ink); font: 600 10.5px/1 var(--holo-font); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.universe-motion:hover { border-color: var(--holo-accent); color: var(--holo-bright); }

:is(.universe-header, .universe-footer) :focus-visible, .universe-motion:focus-visible { outline: 2px solid var(--holo-bright) !important; outline-offset: 3px !important; border-radius: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .universe-header .universe-nav a, .universe-footer a, .universe-end, .universe-motion { transition: background-color .25s var(--holo-ease), border-color .25s var(--holo-ease), color .25s var(--holo-ease), box-shadow .25s var(--holo-ease); }
}

/* Phones: the logo on its own row, the four tabs sharing the next one, as on the News pages. */
@media (max-width: 700px) {
  html body > .universe-header { row-gap: 10px; }
  .universe-header .universe-brand { width: 150px !important; }
  .universe-header .universe-nav { position: static !important; width: 100%; gap: 3px !important; justify-content: flex-start; }
  .universe-header .universe-nav a { flex: 1 1 0; justify-content: center; gap: 0; min-width: 0; min-height: 32px; padding: 0 4px; font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
  .universe-header .universe-nav a::before { display: none; }
  html body .universe-footer.universe-footer { padding: 28px clamp(12px, 3vw, 28px) 28px; }
  .universe-footer .footer-top .universe-nav { margin-top: 12px; justify-content: flex-start; }
  .universe-footer .footer-bottom { font-size: 10px; }
}
@media (max-width: 360px) { .universe-header .universe-nav a { font-size: 10px; letter-spacing: .04em; } }

/* Right-to-left pages are written in joined scripts: the wide spacing of the labels would pull the letters apart,
   in a room as well. A name that keeps its own language (a channel or a place in a room, a language block on About)
   carries `lang` and keeps its own type. */
:root[dir="rtl"] body, :root[dir="rtl"] body *:not([lang]):not(body [lang] *) { letter-spacing: 0 !important; text-indent: 0 !important; }

@media print {
  html body > .universe-header, html body .universe-footer.universe-footer { background: none !important; }
  .universe-header .universe-nav, .universe-motion { display: none; }
}
