:root {
  --ground: #121412;
  --surface: #1c1f1c;
  --border: #2c302c;
  --text: #ecede8;
  --text2: #c9ccc5;
  --muted: #9ba19a;
  --accent: #f28c28;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text2);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }

header { border-bottom: 1px solid var(--border); }
header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { color: var(--text); font-weight: 800; font-size: 20px; text-decoration: none; margin-right: auto; }
.brand span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a { color: var(--text2); text-decoration: none; font-size: 15px; }
nav a[aria-current="page"] { color: var(--accent); }

main { padding: 32px 0 48px; }

h1 { color: var(--text); font-size: 30px; line-height: 1.2; margin: 0 0 6px; }
h2 { color: var(--text); font-size: 21px; line-height: 1.3; margin: 40px 0 10px; scroll-margin-top: 16px; }
h3 { color: var(--text); font-size: 17px; margin: 24px 0 6px; }
.updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }

p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--text); }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px 4px;
  margin: 0 0 8px;
}
.summary h2 { margin-top: 0; font-size: 18px; }

.table { overflow-x: auto; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--border); }
th { color: var(--text); font-weight: 700; }
td:first-child { min-width: 9rem; }

.steps li { margin-bottom: 10px; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--ground);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  margin: 4px 0 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer .wrap { padding-top: 18px; padding-bottom: 28px; }
footer p { margin: 0 0 6px; }
footer a { color: var(--text2); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 26px; }
}

/* On phones, each table row becomes a card. */
@media (max-width: 600px) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
  td { border: 0; padding: 4px 0; }
  td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
}
