/* Self-hosted / system fonts only. No third-party assets, cookies or analytics. */
:root {
  --text: #1b1b1b;
  --muted: #444;
  --bg: #faf9f6;
  --card: #fff;
  --line: #d6d3cc;
  --notice-bg: #f3e6b3;
  --notice-line: #8a6d00;
  --link: #0b4f8a;
  --placeholder-bg: #fff3cd;
  --placeholder-line: #b08900;
  --max: 46rem;
}

* { box-sizing: border-box; }

html {
  font-size: 112.5%;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

.skip {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 0.75rem;
  z-index: 10;
  padding: 0.3rem 0.65rem;
  background: var(--card);
  color: var(--text);
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Noto Sans", "Noto Sans Hebrew", "Helvetica Neue", Arial, sans-serif;
}

.notice {
  margin: 0;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  background: var(--notice-bg);
  color: #1a1a1a;
  border-bottom: 2px solid var(--notice-line);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.site-header-inner,
.site-footer-inner,
main {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.85rem 0.3rem;
}

.brand a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.lang-switch {
  font-size: 0.9rem;
}

.lang-switch a { color: var(--link); }
.lang-switch [aria-current="page"] {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

nav.docs {
  padding-bottom: 0.75rem;
}

nav.docs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

nav.docs a { color: var(--link); }
nav.docs [aria-current="page"] {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

main {
  padding-block: 1.5rem 3rem;
}

article h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}

article h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
}

article h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

article p,
article li {
  margin: 0 0 0.8rem;
}

article ul,
article ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.3rem;
}

article li { margin-bottom: 0.35rem; }

article blockquote {
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-inline-start: 3px solid var(--line);
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  background: var(--card);
}

article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

article th,
article td {
  text-align: start;
  vertical-align: top;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
}

article th {
  background: #f3f1eb;
  font-weight: 650;
}

article tr:last-child th,
article tr:last-child td { border-bottom: 0; }

article th:last-child,
article td:last-child { border-inline-end: 0; }

.placeholder {
  display: inline;
  background: var(--placeholder-bg);
  border-bottom: 1px dashed var(--placeholder-line);
  padding: 0 0.15em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  white-space: nowrap;
}

.doc-link .placeholder { margin-inline-start: 0.2em; }

a { color: var(--link); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #f0eeea;
  padding: 0.05em 0.25em;
  word-break: break-word;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 0.85rem;
  padding-block: 1rem 1.5rem;
}

.hub h1 { margin-bottom: 0.4rem; }
.hub .lede { color: var(--muted); margin-bottom: 1.25rem; }
.hub ul { padding-inline-start: 1.2rem; }

.home-langs {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 50rem) {
  .home-langs { grid-template-columns: 1fr 1fr; }
}

.home-langs section {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem 1.15rem 0.4rem;
}

.home-langs h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}
