/* OxiPhys site: the pages beside the home page */
:root {
  --ground: #090B10; --panel: #10141C; --panel2: #0D1118; --line: #1E2532; --line2: #2A3344;
  --ink: #E9EDF3; --muted: #8D97A8; --soft: #A9B2C2; --body: #B9C1CF;
  --red: #FF4757; --orange: #FF8A3D; --green: #2BD97F; --cyan: #57D3FF; --blue: #4C7DFF; --violet: #A65BFF;
  --sans: 'Schibsted Grotesk', 'Noto Sans Devanagari', 'Noto Sans Kannada', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Noto Sans Devanagari', 'Noto Sans Kannada', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: var(--cyan); }
a:hover { color: #9BE6FF; }
::selection { background: var(--blue); color: #FFFFFF; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
code, pre { font-family: var(--mono); }
code { font-size: 0.88em; background: #151A24; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; color: var(--body); }
pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--ground); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(9, 11, 16, 0.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top nav { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 12px 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.navlinks { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; font-family: var(--mono); font-size: 13px; }
.navlinks a { color: var(--soft); text-decoration: none; padding: 10px 0; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--ink); }
.navlinks a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--green); }
.langwrap { position: relative; margin-left: auto; }
#lang-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
#lang-menu { position: absolute; right: 0; top: 52px; width: 220px; padding: 6px; border-radius: 16px; background: #121722; border: 1px solid var(--line2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 2px; }
#lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 14px var(--sans); text-align: left; cursor: pointer; }
#lang-menu button[aria-selected="true"], #lang-menu button:hover { background: #1B2433; }
#lang-menu small { font-family: var(--mono); font-size: 11px; }
.navcta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.navcta:hover { color: var(--ground); background: #FFFFFF; }
.rainbow { height: 3px; background: linear-gradient(90deg, #FF4757 0%, #FF8A3D 18%, #2BD97F 42%, #57D3FF 62%, #4C7DFF 80%, #A65BFF 100%); }
@media (max-width: 720px) { .navlinks { display: none; } }
@media (max-width: 480px) { .navcta { display: none; } }
.en-note { max-width: 1240px; margin: 16px auto 0; padding: 10px 24px; color: var(--muted); font-family: var(--mono); font-size: 13px; }

/* page heads and bands */
main { display: block; }
.hero-s, .band, .doc, .timeline { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.hero-s { padding-top: 72px; padding-bottom: 24px; }
.hero-s h1 { margin: 0 0 14px; font-size: clamp(40px, 6vw, 76px); line-height: 1.0; font-weight: 800; letter-spacing: -0.035em; }
.lede { margin: 0; max-width: 640px; font-size: 19px; line-height: 1.55; color: var(--body); }
.small { font-size: 14px; color: var(--muted); max-width: 760px; }
.band { padding-top: 48px; padding-bottom: 8px; }
.band h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.band > p { max-width: 760px; color: var(--body); }

/* downloads */
.dls { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.dl { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 20px 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.dl:hover { border-color: var(--c); color: var(--ink); transform: translateY(-2px); }
.dl.soon { border-style: dashed; color: var(--soft); }
.dl.soon:hover { transform: none; border-color: var(--line2); }
.dl.soon .dl-file { color: var(--ink); font-weight: 500; }
.soon-note { margin: 4px 0 10px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--soft); font-size: 15px; }
.dl-os { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.dl-file { grid-column: 1; font-family: var(--mono); font-size: 12.5px; color: var(--soft); overflow-wrap: anywhere; }
.dl-what { grid-column: 1; font-size: 14px; color: var(--muted); }
.dl svg { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 44px; height: 44px; padding: 13px; border-radius: 50%; background: var(--c); color: var(--on); }

/* tables */
.tablewrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--panel); font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); }
tbody th { font-weight: 700; white-space: nowrap; color: var(--ink); }
td { color: var(--body); }
tbody tr:hover td, tbody tr:hover th { background: #0E131B; }

/* tabs and steps */
.tabs { display: flex; gap: 8px; margin: 18px 0 8px; flex-wrap: wrap; }
.tabs button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font: 700 15px var(--sans); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--c); border-color: var(--c); color: #090B10; }
.tabs button#tab-windows[aria-selected="true"] { color: #FFFFFF; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 74px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: #090B10; font: 700 16px var(--mono); display: flex; align-items: center; justify-content: center; }
.steps li h3 { margin: 6px 0 4px; font-size: 18px; }
.steps li p { margin: 0; color: var(--body); }
@media (max-width: 520px) { .steps li { padding: 66px 16px 16px; } .steps li::before { left: 16px; top: 16px; } }

/* documentation */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 24px; padding-bottom: 40px; }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.toc-h { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--soft); text-decoration: none; font-size: 14.5px; }
.toc a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.toc a:hover, .toc a.on { background: var(--panel); color: var(--ink); }
.prose { max-width: 820px; min-width: 0; }
.prose h2 { margin: 56px 0 14px; padding-top: 8px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.02em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 8px; font-size: 21px; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--body); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--green); }
.prose figure { margin: 22px 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.prose figcaption { margin-top: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.prose img { max-width: 100%; height: auto; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 12px; }
  .toc { position: static; max-height: none; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc a { background: var(--panel); border: 1px solid var(--line); }
}

/* updates */
.timeline { list-style: none; padding-top: 24px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 0; position: relative; }
.rel { position: relative; padding: 0 0 34px 44px; }
.rel::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: -12px; width: 2px; background: linear-gradient(var(--c), var(--line)); }
.rel:last-child::before { display: none; }
.rel::after { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px var(--ground), 0 0 18px var(--c); }
.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.rel h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; scroll-margin-top: 90px; }
.rel time { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.rel-t { margin: 2px 0 8px; font-size: 18px; font-weight: 700; color: var(--c); }
.rel ul { margin: 0; padding-left: 20px; max-width: 820px; }
.rel li { color: var(--body); margin: 4px 0; }
.rel li::marker { color: var(--c); }
.latest { margin-left: 8px; vertical-align: middle; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0; color: #090B10; background: var(--green); border-radius: 999px; padding: 3px 10px; }

/* footer */
.foot { margin-top: 48px; border-top: 1px solid #1B2230; }
.footin { max-width: 1240px; margin: 0 auto; padding: 36px 24px 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.footbrand { display: flex; align-items: center; gap: 10px; }
.footlinks { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footlinks a { color: var(--soft); text-decoration: none; padding: 10px 0; }
.gpl { flex-basis: 100%; }
