:root {
  --io-bg: #f6f8fa;
  --io-panel: #ffffff;
  --io-text: #1f2328;
  --io-muted: #656d76;
  --io-line: #d0d7de;
  --io-soft: #eaeef2;
  --io-code: #24292f;
  --io-accent: #1f883d;
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--io-bg);
  color: var(--io-text);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.io-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(148px, 184px) minmax(0, 1fr);
}

.io-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px;
  border-right: 1px solid var(--io-line);
  background: #24292f;
  color: #ffffff;
  overflow-y: auto;
}

.io-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.io-brand__mark {
  width: 30px;
  height: 30px;
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  color: #ffffff;
  -webkit-mask: url("/images/badge.png") center / contain no-repeat;
  mask: url("/images/badge.png") center / contain no-repeat;
}

.io-brand strong,
.io-brand small {
  display: block;
}

.io-brand small,
.io-sidebar nav a,
.io-note {
  color: #d0d7de;
}

.io-sidebar nav {
  display: grid;
  gap: 2px;
}

.io-sidebar nav a,
.io-note a {
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid #ffffff14;
  font-size: 13px;
  font-weight: 600;
}

.io-note {
  margin-top: auto;
  font-size: 13px;
}

.io-note strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
}

.io-content {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.io-hero,
.io-panel {
  border: 1px solid var(--io-line);
  border-radius: 6px;
  background: var(--io-panel);
}

.io-hero {
  padding: 34px;
}

.io-kicker {
  margin: 0 0 8px;
  color: var(--io-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

p {
  color: var(--io-muted);
  line-height: 1.55;
}

.io-panel {
  margin-top: 16px;
  padding: 22px;
}

.io-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
}

.io-grid article {
  border: 1px solid var(--io-line);
  border-radius: 6px;
  padding: 18px;
  background: var(--io-panel);
}

.io-section-head {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--io-line);
}

.io-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.io-table th,
.io-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--io-line);
  text-align: left;
  vertical-align: top;
}

.io-table th {
  color: var(--io-muted);
  font-size: 12px;
  text-transform: uppercase;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

code {
  color: var(--io-code);
}

pre {
  overflow: auto;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--io-line);
  border-radius: 6px;
  background: var(--io-soft);
}

.io-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.io-formats span {
  padding: 6px 10px;
  border: 1px solid var(--io-line);
  border-radius: 999px;
  background: var(--io-soft);
  font-weight: 700;
}

.io-resource-list {
  display: grid;
  gap: 12px;
}

.io-resource {
  border: 1px solid var(--io-line);
  border-radius: 6px;
  padding: 16px;
}

.io-resource header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.io-resource h3 {
  margin: 0;
}

.io-resource ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--io-muted);
}

.io-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}

.io-actions a,
.io-copy {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--io-line);
  border-radius: 6px;
  background: var(--io-panel);
  color: var(--io-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.io-actions a:first-child,
.io-copy {
  border-color: var(--io-accent);
  color: var(--io-accent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --io-bg: #0d1117;
    --io-panel: #0d1117;
    --io-text: #e6edf3;
    --io-muted: #8b949e;
    --io-line: #30363d;
    --io-soft: #161b22;
    --io-code: #e6edf3;
    --io-accent: #3fb950;
  }
}

@media (orientation: portrait), (max-width: 820px) {
  .io-shell {
    display: block;
  }

  .io-sidebar {
    position: static;
    height: auto;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--io-line);
  }

  .io-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }

  .io-note {
    margin-top: 0;
  }

  .io-grid {
    grid-template-columns: 1fr;
  }
}
