/* Nobel 2026 editorial interface */
:root {
  --ink: #f4f8ff;
  --muted: rgba(232, 241, 255, .7);
  --faint: rgba(224, 237, 255, .12);
  --line: rgba(231, 241, 255, .22);
  --bg-deep: #031631;
  --bg: #082d63;
  --accent: #62b8ff;
  --accent-soft: #b8ddff;
  --font: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --display: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
}
body[data-theme="physics"] { --bg-deep: #07123f; --bg: #273b94; --accent: #8ca7ff; --accent-soft: #d4ddff; }
body[data-theme="chemistry"] { --bg-deep: #00283d; --bg: #006483; --accent: #51e0e6; --accent-soft: #befaff; }
body[data-theme="literature"] { --bg-deep: #12224c; --bg: #345a9b; --accent: #9ec8ff; --accent-soft: #deecff; }
body[data-theme="peace"] { --bg-deep: #002e46; --bg: #087e91; --accent: #70e0e4; --accent-soft: #c9fbff; }
body[data-theme="economics"] { --bg-deep: #081c36; --bg: #155c80; --accent: #79c8eb; --accent-soft: #d1f0ff; }
body[data-theme="announcements"] { --bg-deep: #002157; --bg: #0879d9; --accent: #8bddff; --accent-soft: #d7f3ff; }
body[data-theme="gala"] { --bg-deep: #06112d; --bg: #173f78; --accent: #aacfff; --accent-soft: #e3efff; }
html { min-height: 100%; scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg-deep);
  transition: background-color .55s ease;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg) 56%, var(--bg-deep) 140%);
  transition: background .55s ease;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; opacity: .28; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent 80%);
}
button { cursor: pointer; }
button, a { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ambient { position: fixed; z-index: -1; width: 34rem; height: 34rem; border: 1px solid var(--line); border-radius: 50%; transition: border-color .55s ease; }
.ambient--one { top: -19rem; right: -8rem; }
.ambient--two { bottom: -25rem; left: -12rem; width: 46rem; height: 46rem; }
.page-shell { width: min(1400px, calc(100% - 64px)); margin: 0 auto; padding: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: .82rem; font-weight: 800; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.brand__mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; font-family: Georgia, serif; font-size: 1.05rem; }
.topbar .app-meta { position: static; display: flex; gap: 22px; margin: 0; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: 1fr auto; align-items: end; min-height: 430px; padding: clamp(64px, 9vw, 130px) 0 56px; border-bottom: 1px solid var(--line); }
.hero.app-hero { position: static; overflow: visible; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; box-shadow: none; }
.hero .eyebrow, .all-prizes .eyebrow, .method .eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: none; margin: 0 0 28px; font-family: var(--display); font-size: clamp(4.8rem, 12vw, 10.8rem); font-weight: 800; letter-spacing: -.075em; line-height: .72; text-transform: uppercase; }
.hero .app-statusline { max-width: 60ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.22rem); line-height: 1.6; }
.hero__counter { display: flex; align-items: flex-end; gap: 13px; padding-bottom: 7px; }
.hero__counter > span { font-family: var(--display); font-size: clamp(5rem, 10vw, 9rem); font-weight: 300; letter-spacing: -.08em; line-height: .72; }
.hero__counter small { padding-bottom: 4px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.section-nav { display: grid; grid-template-columns: repeat(8, 1fr); width: auto; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.section-tab { display: flex; gap: 12px; justify-content: center; min-height: 76px; padding: 0 12px; align-items: center; border: 0; border-right: 1px solid var(--line); color: var(--muted); background: transparent; font-size: .82rem; font-weight: 700; transition: color .2s, background .2s; }
.section-tab:last-child { border-right: 0; }
.section-tab span { color: var(--accent); font-size: .65rem; }
.section-tab:hover, .section-tab.is-active { color: var(--ink); background: rgba(255,255,255,.08); }
.prediction { display: grid; grid-template-columns: 120px minmax(0, 1.5fr) minmax(290px, .7fr); min-height: 520px; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.prediction__rail { display: flex; flex-direction: column; justify-content: space-between; padding: 38px 18px 38px 0; border-right: 1px solid var(--line); }
.prediction__number { color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .14em; }
.prediction__field { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.prediction__main { padding: clamp(40px, 6vw, 78px); border-right: 1px solid var(--line); }
.prediction__meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: clamp(45px, 6vw, 84px); color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.prediction__label, .aside-label { margin-bottom: 12px; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.prediction__main h2 { max-width: 13ch; margin-bottom: 18px; font-family: var(--display); font-size: clamp(3.2rem, 7vw, 7rem); font-weight: 700; letter-spacing: -.06em; line-height: .86; }
.prediction__citation { max-width: 54ch; margin-bottom: 50px; color: var(--accent-soft); font-size: 1.08rem; line-height: 1.55; }
.confidence__head { display: flex; justify-content: space-between; margin-bottom: 11px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.confidence__head strong { color: var(--ink); }
.confidence__track { height: 3px; background: var(--faint); }
.confidence__track span { display: block; height: 100%; background: var(--accent); }
.feature-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-facts span { display: flex; min-height: 72px; padding: 14px; flex-direction: column; justify-content: space-between; gap: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-facts small { color: var(--muted); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.feature-facts strong { font-size: .92rem; }
.prediction__aside { display: flex; flex-direction: column; justify-content: space-between; gap: 42px; padding: clamp(40px, 5vw, 70px) clamp(28px, 4vw, 52px); background: rgba(0, 10, 30, .16); }
.prediction__aside p:not(.aside-label) { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.prediction__aside .alternate { color: var(--ink) !important; font-size: 1.12rem; font-weight: 700; }
.prediction__aside a { width: fit-content; color: var(--accent-soft); font-size: .82rem; font-weight: 800; text-decoration: none; }
.prediction__aside a span { padding-left: 7px; }
.all-prizes { padding: clamp(70px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 38px; }
.section-heading h2, .method h2 { margin: 0; max-width: none; font-family: var(--display); font-size: clamp(2.8rem, 6vw, 5.8rem); font-weight: 700; letter-spacing: -.055em; line-height: .9; }
.section-heading > p { max-width: 32ch; margin: 0; color: var(--muted); line-height: 1.6; }
.section-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.section-card { display: flex; min-height: 235px; padding: 26px; flex-direction: column; align-items: stretch; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-align: left; background: rgba(255,255,255,.025); transition: background .2s; }
.section-card:hover, .section-card.is-active { background: rgba(255,255,255,.1); }
.section-card__top { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.section-card__name { margin: 30px 0 10px; color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-card strong { max-width: 16ch; font-family: var(--display); font-size: clamp(1.4rem, 2.8vw, 2.25rem); letter-spacing: -.035em; line-height: 1; }
.section-card__signal { margin-top: auto; padding-top: 25px; color: var(--muted); font-size: .7rem; }
.method { padding: clamp(70px, 9vw, 120px) 0; border: 0; border-radius: 0; color: var(--ink); background: transparent; box-shadow: none; backdrop-filter: none; }
.method__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; }
.method__grid > div { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.method__note { padding-left: 18px; border-left: 2px solid var(--accent); color: var(--accent-soft); }
.sources { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); }
.sources > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sources a { display: flex; min-height: 70px; padding: 16px 18px; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); background: var(--bg-deep); font-size: .78rem; text-decoration: none; }
.sources a:hover { color: var(--ink); }
.sources a span { color: var(--accent); }
.loading-state, .error-state { padding: 48px 0; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
footer a { color: var(--ink); text-decoration: none; }

@media (max-width: 900px) {
  .page-shell { width: min(100% - 32px, 1400px); }
  .hero { min-height: 390px; }
  .hero__counter { display: none; }
  .section-nav { grid-template-columns: repeat(4, 1fr); }
  .section-tab:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .prediction { grid-template-columns: 72px 1fr; }
  .prediction__aside { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; border-top: 1px solid var(--line); }
  .prediction__main { border-right: 0; }
  .section-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .page-shell { width: min(100% - 24px, 1400px); padding-top: 0; }
  .topbar { min-height: 72px; }
  .topbar .app-meta span:first-child { display: none; }
  .hero { min-height: 360px; padding: 72px 0 42px; }
  .hero h1 { font-size: clamp(4.1rem, 25vw, 7rem); }
  .section-nav { display: flex; width: auto; margin: 0 -12px; overflow-x: auto; border-left: 1px solid var(--line); }
  .section-tab { min-width: 135px; border-bottom: 0 !important; }
  .prediction { grid-template-columns: 1fr; }
  .prediction__rail { display: none; }
  .prediction__main { padding: 42px 0; }
  .prediction__meta { margin-bottom: 48px; }
  .prediction__aside { display: flex; padding: 36px 24px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-grid { grid-template-columns: 1fr; }
  .method__grid { grid-template-columns: 1fr; gap: 36px; }
  .sources > div { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
