:root {
  --dark: #011C26; --teal: #1B5258; --light: #D9F5F3; --green: #3DA992; --red: #FF4549;
  --ink: #D9F5F3; --muted: #9DC3C0; --line: rgba(217, 245, 243, 0.14); --panel: rgba(27, 82, 88, 0.28);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--dark); color: var(--ink);
  font: 400 17px/1.65 "Google Sans Flex", "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(27, 82, 88, 0.55), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--light); }
h1, h2, h3, .brand span, .nav-group, .track, .tag {
  font-family: "Syncopate", "Google Sans Flex", sans-serif; text-transform: uppercase; letter-spacing: 0.06em;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 0.4em; font-weight: 700; }
h2 { font-size: 1.05rem; margin: 2.4em 0 0.8em; color: var(--light); font-weight: 700; }
h3 { font-size: 0.82rem; margin: 0 0 0.5em; font-weight: 700; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 2em; max-width: 46em; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; background: rgba(217, 245, 243, 0.08); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: #00131A; border: 1px solid var(--line); border-radius: 10px; padding: 1em 1.2em; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; font-size: 0.85rem; }
table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6em 0.8em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: "Syncopate", sans-serif; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; color: var(--muted); }
li { margin: 0.35em 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(1, 28, 38, 0.92); backdrop-filter: blur(8px); z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--light); text-decoration: none; }
.brand span { font-weight: 700; font-size: 1rem; }
.brand em { font-style: normal; color: var(--green); font-size: 0.85rem; }
.by { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 0.8rem; }
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); max-width: 1180px; margin: 0 auto; gap: 48px; padding: 0 28px; }
.side { position: sticky; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 2px; padding: 32px 0; }
.side a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.side a:hover { color: var(--light); background: var(--panel); }
.side a[aria-current="page"] { color: var(--light); border-left-color: var(--red); background: var(--panel); }
.nav-group { font-size: 0.62rem; color: var(--green); padding: 18px 12px 6px; }
main { padding: 40px 0 64px; min-width: 0; max-width: 52em; }
.film { margin: 0 0 1.5em; }
.film video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.film figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 0.6em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 1.5em 0; }
.card { display: block; padding: 18px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--green); color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.diagram pre { font-size: 0.8rem; color: var(--light); }
.sponsor-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0.5em 0 1em; }
.logo { display: inline-flex; align-items: center; justify-content: center; }
.logo img { display: block; max-width: 100%; width: auto; }
.logo.chip { background: #F4FBFA; padding: 12px 18px; border-radius: 12px; }
.track { font-size: 0.7rem; color: var(--green); border: 1px solid rgba(61, 169, 146, 0.5); padding: 6px 12px; border-radius: 999px; }
.tag { display: inline-block; font-size: 0.62rem; padding: 3px 9px; border-radius: 999px; vertical-align: 2px; margin-right: 4px; }
.tag.on { background: rgba(61, 169, 146, 0.18); color: var(--green); border: 1px solid rgba(61, 169, 146, 0.6); }
.tag.off { background: rgba(255, 69, 73, 0.14); color: var(--red); border: 1px solid rgba(255, 69, 73, 0.55); }
.ref code { color: var(--green); }
.sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sponsors figure { margin: 0; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.sponsors .logo { height: 76px; width: 100%; }
.sponsors figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
.note { color: var(--muted); font-size: 0.9rem; }
.sign { display: flex; align-items: center; gap: 14px; margin-top: 2em; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 4em; padding-top: 1.5em; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; font-weight: 600; }
footer { border-top: 1px solid var(--line); padding: 24px 28px 40px; color: var(--muted); font-size: 0.85rem; text-align: center; }
footer p { max-width: 60em; margin: 0 auto; }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 16px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .side a { border-left: 0; border-bottom: 2px solid transparent; padding: 4px 10px; font-size: 0.9rem; }
  .side a[aria-current="page"] { border-bottom-color: var(--red); }
  .nav-group { display: none; }
  .top { padding: 14px 16px; }
  .by span { display: none; }
  main { padding-top: 28px; }
}
.sponsors .logo:not(.chip) { background: rgba(217, 245, 243, 0.06); border-radius: 12px; }
p code, li code { overflow-wrap: anywhere; }
