/* The Sky: shared look. Black, one gold accent, thin type, glass panels. */
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/noto-sans-devanagari-devanagari-400-normal.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/noto-sans-devanagari-devanagari-600-normal.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #04050a;
  --panel: rgba(10, 12, 22, 0.66);
  --panel-solid: #0b0d18;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);
  --text: #f3f4f8;
  --muted: #9aa0b6;
  --gold: #e8c27a;
  --gold-hi: #ffdca0;
  --ok: #6fe3a4;
  --bad: #ff8f8f;
  --rail-w: 72px;
  --rail-open: 252px;
  --sans: 'Space Grotesk', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--text);
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(70, 60, 160, 0.30), transparent 62%),
    radial-gradient(800px 520px at 8% 108%, rgba(160, 100, 40, 0.16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
:lang(hi) { line-height: 1.7; }
a { color: var(--gold-hi); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #111; padding: .5rem 1rem; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---- the rail --------------------------------------------------------------------------------------------- */
.rail {
  position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: var(--rail-w);
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(5, 6, 12, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--line);
  transition: width .24s ease;
}
.rail:hover, .rail:focus-within { width: var(--rail-open); }
.rail .ico { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; }
.rail svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rail svg .fill { fill: currentColor; stroke: none; }
.rail svg .ring { stroke: var(--gold); stroke-width: 1.4; }
.rail svg .ring2 { stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; }
.rail-brand {
  display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 24px;
  color: var(--text); text-decoration: none; flex: 0 0 auto;
}
.rail-brand svg { width: 28px; height: 28px; stroke-width: 1.4; }
.rail-brand .ico { flex-basis: 28px; width: 28px; height: 28px; margin-left: -2px; }
.brand-name { font-weight: 600; letter-spacing: .26em; font-size: 15px; }
.rail .lbl { white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .18s ease, transform .18s ease; display: flex; align-items: center; gap: 10px; }
.rail:hover .lbl, .rail:focus-within .lbl { opacity: 1; transform: none; }
.rail-nav { flex: 1 1 auto; display: flex; flex-direction: column; padding: 8px 0; overflow-y: auto; overflow-x: hidden; }
.rail-item {
  display: flex; align-items: center; gap: 16px; padding: 12px 24px; color: var(--muted); text-decoration: none;
  border-left: 2px solid transparent; font-size: 15px; letter-spacing: .02em;
}
.rail-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.rail-item.active { color: var(--gold-hi); border-left-color: var(--gold); background: rgba(232, 194, 122, 0.07); }
.rail-item.sub { padding-top: 7px; padding-bottom: 7px; font-size: 14px; }
.rail-item .dot { flex: 0 0 5px; width: 5px; height: 5px; margin: 0 9.5px; border-radius: 50%; background: currentColor; opacity: .55; }
.rail:not(:hover):not(:focus-within) .rail-item.sub { display: none; }
.chip {
  font: 600 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(232, 194, 122, 0.45); border-radius: 999px; padding: 3px 7px 2px;
}
.rail-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; }
.langs { display: flex; }
.langs button {
  background: transparent; border: 1px solid var(--line-strong); padding: 5px 10px; cursor: pointer; font: 600 12px var(--mono); color: var(--muted);
  letter-spacing: .08em;
}
.langs button[lang="hi"] { font-size: 14px; line-height: 1; }
.langs button:first-child { border-radius: 8px 0 0 8px; }
.langs button:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.langs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #14100a; }
.status { display: flex; align-items: center; gap: 10px; font: 500 12px var(--mono); color: var(--muted); height: 16px; padding-left: 12px; }
.status .dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #5b6075; }
.status .dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status .dot.down { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.rail:not(:hover):not(:focus-within) .langs { flex-direction: column; }
.rail:not(:hover):not(:focus-within) .langs button { border-radius: 8px !important; border: 1px solid var(--line-strong) !important; margin-bottom: 4px; padding: 5px 0; width: 32px; font-size: 11px; text-align: center; }

main { margin-left: var(--rail-w); }

/* form controls */
select, input[type="text"], input[type="datetime-local"] {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 7px 10px; font: 400 13px var(--mono);
  color-scheme: dark;
}
select option { background: #0b0d18; color: var(--text); }
input[type="text"] { font-family: var(--sans); font-size: 14px; }
select:focus-visible, input:focus-visible { border-color: var(--gold); outline-offset: 0; }

/* ---- shared bits --------------------------------------------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(111, 227, 164, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(111, 227, 164, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 227, 164, 0); } }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); font-size: 14px; letter-spacing: .03em;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #14100a; font-weight: 600; }
.btn.gold:hover { background: var(--gold-hi); }
.site-foot { border-top: 1px solid var(--line); padding: 28px clamp(20px, 5vw, 64px) 40px; color: var(--muted); font-size: 13px; }
.site-foot p { margin: 4px 0; }

/* ---- phones: the rail becomes a bottom bar ------------------------------------------------------------------ */
@media (max-width: 760px) {
  main { margin-left: 0; padding-bottom: 72px; }
  .rail, .rail:hover, .rail:focus-within {
    top: auto; width: 100%; height: 64px; flex-direction: row; align-items: stretch; border-right: 0; border-top: 1px solid var(--line);
    transition: none;
  }
  .rail-brand, .rail .lbl, .status .lbl, .rail-item.sub, .rail-nav .rail-item:not(.keep) { display: none !important; }
  .rail-nav { flex-direction: row; flex: 1 1 auto; padding: 0; overflow: hidden; }
  .rail-item { flex: 1 1 0; justify-content: center; padding: 0; border-left: 0; border-top: 2px solid transparent; }
  .rail-item.active { border-left-color: transparent; border-top-color: var(--gold); }
  .rail-foot { flex-direction: row; align-items: center; padding: 0 12px; border-top: 0; border-left: 1px solid var(--line); gap: 10px; }
  .rail:not(:hover):not(:focus-within) .langs { flex-direction: row; }
  .rail:not(:hover):not(:focus-within) .langs button { margin: 0; width: auto; padding: 5px 8px; }
  .status { display: none; }
}
