/* Shared styling for the /specs reference pages.
   Same palette and type as the landing page — these are the same product,
   and a reader arriving from Google should not feel dropped onto a
   different site. Kept in one file rather than inlined per page so a
   palette change is one edit, and so the six pages share a cache entry. */

:root {
  --bg: #0B0E14;
  --bg-2: #11151E;
  --panel: #141A24;
  --line: #212936;
  --line-2: #2C3543;
  --ink: #F2F5F9;
  --ink-2: #B7C1D1;
  --muted: #7C879A;
  --accent: #0A84FF;
  --accent-2: #4D9BFF;
  --accent-dim: rgba(10, 132, 255, .13);
  --ok: #34C77B;
  --warn: #E0A15C;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-2);
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- chrome ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(11, 14, 20, .86);
  backdrop-filter: blur(10px);
  z-index: 20;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
}

.brand img {
  border-radius: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: background .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn-ghost {
  color: var(--ink);
  background: var(--panel);
}

.btn-ghost:hover {
  border-color: var(--muted);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
  border-radius: 12px;
}

/* ---------- article ---------- */
main {
  padding: 44px 0 80px;
}

.crumbs {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 22px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent-2);
}

h1 {
  font-size: clamp(29px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -.026em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.standfirst {
  font-size: 18.5px;
  color: var(--ink-2);
  margin: 0 0 10px;
  max-width: 60ch;
}

.updated {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 34px;
}

h2 {
  font-size: 24px;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 46px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-wrap: balance;
}

h3 {
  font-size: 17.5px;
  letter-spacing: -.01em;
  margin: 30px 0 8px;
  text-wrap: balance;
}

p {
  margin: 0 0 16px;
  max-width: 68ch;
  color: var(--ink-2);
}

main strong {
  color: var(--ink);
  font-weight: 650;
}

ul,
ol {
  color: var(--ink-2);
  max-width: 68ch;
  padding-left: 22px;
  margin: 0 0 18px;
}

li {
  margin-bottom: 8px;
}

li::marker {
  color: var(--muted);
}

code {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5px 6px;
  color: var(--ink);
}

/* ---------- tables ---------- */
.scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  margin: 0 0 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  text-align: left;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg-2);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: none;
}

td.px {
  font-family: var(--mono);
  font-size: 13.5px;
  white-space: nowrap;
  color: var(--ink);
}

td.dev {
  color: var(--muted);
  font-size: 13.5px;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.tag-req {
  background: rgba(52, 199, 123, .15);
  color: var(--ok);
}

.tag-opt {
  background: var(--line);
  color: var(--muted);
}

/* ---------- callouts ---------- */
.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 22px;
  margin: 0 0 24px;
}

.note.warn {
  border-left-color: var(--warn);
}

.note p:last-child {
  margin-bottom: 0;
}

.note .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

/* ---------- cta ---------- */
.cta {
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border-radius: 18px;
  padding: 28px;
  margin: 44px 0 0;
  text-align: center;
}

.cta h2 {
  border: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 21px;
}

.cta p {
  margin: 0 auto 20px;
  max-width: 52ch;
}

/* ---------- related ---------- */
.related {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: none;
}

.related a {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color .18s ease;
}

.related a:hover {
  border-color: var(--accent);
}

.related a span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--accent-2);
}
