:root { --bg: #ECEEF3; --card: #fff; --text: #151833; --muted: #5D637A; --line: #E1E4EB; --ink: #1E2559; --link: #3446C9; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #0F1118; --card: #191C27; --text: #ECEEF6; --muted: #9CA2BA; --line: #2D3245; --ink: #B4BDFF; --link: #8E9BFF; color-scheme: dark; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
main { max-width: 760px; margin: 0 auto; padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(48px + env(safe-area-inset-bottom, 0px)); }
nav.top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
nav.top a { padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: 0 0 0 1px var(--line); }
nav.top a[aria-current="page"] { background: var(--ink); color: var(--card); box-shadow: none; }
article { background: var(--card); border-radius: 20px; padding: 24px 22px; box-shadow: 0 1px 2px rgba(20,23,46,.06), 0 0 0 1px var(--line); }
article + article { margin-top: 16px; }
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 6px; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
h2 { font-size: 18px; margin: 26px 0 6px; }
h3 { font-size: 15.5px; margin: 18px 0 4px; }
p, li { margin: 6px 0; }
ul { padding-left: 20px; }
.meta { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.lang { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
a { color: var(--link); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.box { background: var(--bg); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
footer { color: var(--muted); font-size: 13px; text-align: center; margin-top: 18px; }

/* small screens: compact type, one scrolling row of tabs, tighter cards, stacked tables */
@media (max-width: 600px) {
  body { font-size: 14px; line-height: 1.55; }
  main { padding: calc(12px + env(safe-area-inset-top, 0px)) 10px calc(28px + env(safe-area-inset-bottom, 0px)); }
  nav.top { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 0 -10px 12px; padding: 0 10px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav.top::-webkit-scrollbar { display: none; }
  nav.top a { flex: none; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
  article { padding: 16px 14px; border-radius: 16px; }
  article + article { margin-top: 12px; }
  h1 { font-size: 21px; }
  h2 { font-size: 15.5px; margin: 18px 0 4px; }
  h3 { font-size: 14.5px; margin: 14px 0 2px; }
  .meta { font-size: 12.5px; margin-bottom: 10px; }
  ul { padding-left: 18px; }
  .box { padding: 10px 12px; font-size: 13.5px; }
  p, li { overflow-wrap: anywhere; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 1px 0; font-size: 13px; }
  td:first-child { font-weight: 600; font-size: 13.5px; }
  td:nth-child(2):empty { display: none; }
  td:nth-child(2):not(:empty)::before { content: "Version "; color: var(--muted); }
  td:nth-child(3) { color: var(--muted); }
}
