/* hackiosx.dev: Material (2017) dark docs theme */
:root {
  --bg: #303030;
  --surface: #424242;
  --appbar: #212121;
  --drawer: #2b2b2b;
  --text: rgba(255, 255, 255, 0.87);
  --text-2: rgba(255, 255, 255, 0.60);
  --divider: rgba(255, 255, 255, 0.12);
  --accent: #64ffda;
  --accent-dim: rgba(100, 255, 218, 0.12);
  --warn: #ffd740;
  --warn-dim: rgba(255, 215, 64, 0.10);
  --bad: #ff8a80;
  --code-bg: #1e1e1e;
  --shadow-2: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
  --shadow-4: 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12), 0 2px 4px -1px rgba(0,0,0,.2);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* app bar */
.appbar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 20;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: var(--appbar); box-shadow: var(--shadow-4);
}
.appbar .brand { color: var(--text); font-size: 20px; font-weight: 500; letter-spacing: .02em; }
.appbar .brand b { color: var(--accent); font-weight: 500; }
.appbar .spacer { flex: 1; }
.appbar .ext { color: var(--text-2); font-size: 15px; font-weight: 500; }
.appbar .ext:hover { color: var(--text); text-decoration: none; }
.menu-btn {
  display: none; width: 40px; height: 40px; margin-left: -8px; padding: 8px;
  background: none; border: 0; border-radius: 50%; color: var(--text); cursor: pointer;
}
.menu-btn:hover { background: rgba(255,255,255,.08); }
.menu-btn svg { width: 24px; height: 24px; fill: currentColor; display: block; }

/* nav drawer */
.drawer {
  position: fixed; top: 56px; bottom: 0; left: 0; width: 256px; z-index: 15;
  overflow-y: auto; padding: 8px 0; background: var(--drawer);
  border-right: 1px solid var(--divider);
}
.drawer .sub { padding: 16px 16px 8px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.drawer a {
  display: block; height: 48px; line-height: 48px; padding: 0 16px;
  color: var(--text); font-size: 14px; font-weight: 500;
}
.drawer a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.drawer a.active { color: var(--accent); background: var(--accent-dim); }
.drawer hr { border: 0; border-top: 1px solid var(--divider); margin: 8px 0; }
.scrim { display: none; }

/* content */
main { margin-left: 256px; padding: 88px 32px 48px; }
.page { max-width: 860px; margin: 0 auto; }
h1 { font-size: 34px; font-weight: 400; line-height: 1.2; margin: 0 0 8px; }
.lead { color: var(--text-2); font-size: 18px; margin: 0 0 32px; }
h2 { font-size: 24px; font-weight: 400; margin: 40px 0 12px; }
h3 { font-size: 18px; font-weight: 500; margin: 24px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }
strong { font-weight: 500; color: #fff; }

.card {
  background: var(--surface); border-radius: 2px; box-shadow: var(--shadow-2);
  padding: 20px 24px; margin: 0 0 16px;
}
.card > :last-child { margin-bottom: 0; }
.card h3:first-child, .card h2:first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.grid .card { margin: 0; }
a.card { display: block; color: var(--text); transition: box-shadow .2s; }
a.card:hover { text-decoration: none; box-shadow: var(--shadow-4); }
a.card .more { color: var(--accent); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

.note, .warn {
  border-left: 4px solid var(--accent); background: var(--accent-dim);
  padding: 12px 16px; margin: 0 0 16px; border-radius: 0 2px 2px 0;
}
.warn { border-color: var(--warn); background: var(--warn-dim); }
.note > :last-child, .warn > :last-child { margin-bottom: 0; }

code, pre { font-family: "Roboto Mono", Menlo, Consolas, monospace; font-size: 14px; }
code { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 2px; }
pre {
  background: var(--code-bg); padding: 14px 16px; border-radius: 2px;
  overflow-x: auto; margin: 0 0 16px; line-height: 1.5;
}
pre code { background: none; padding: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; background: var(--surface); box-shadow: var(--shadow-2); border-radius: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--divider); vertical-align: top; }
th { color: var(--text-2); font-weight: 500; font-size: 13px; }
tr:last-child td { border-bottom: 0; }

.chip {
  display: inline-block; padding: 0 10px; height: 24px; line-height: 24px; border-radius: 12px;
  font-size: 12px; font-weight: 500; white-space: nowrap; background: rgba(255,255,255,.12);
}
.chip.good { background: rgba(105, 240, 174, .18); color: #69f0ae; }
.chip.ok { background: rgba(255, 215, 64, .16); color: var(--warn); }
.chip.hard { background: rgba(255, 171, 64, .16); color: #ffab40; }
.chip.no { background: rgba(255, 138, 128, .16); color: var(--bad); }

/* boot chain */
.chain { list-style: none; padding: 0; counter-reset: step; }
.chain li {
  position: relative; padding: 12px 16px 12px 56px; margin: 0 0 8px;
  background: var(--surface); box-shadow: var(--shadow-2); border-radius: 2px;
}
.chain li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; line-height: 28px;
  text-align: center; border-radius: 50%; background: var(--accent); color: #000; font-weight: 500; font-size: 14px;
}

footer { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--divider); color: var(--text-2); font-size: 13px; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .drawer { transform: translateX(-100%); transition: transform .2s; z-index: 30; top: 0; box-shadow: var(--shadow-4); }
  .drawer .head { height: 56px; line-height: 56px; padding: 0 16px; font-size: 20px; font-weight: 500; border-bottom: 1px solid var(--divider); }
  body.nav-open .drawer { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.5); }
  main { margin-left: 0; padding: 80px 16px 40px; }
  h1 { font-size: 28px; }
  .appbar .ext.hide-sm { display: none; }
}
@media (min-width: 961px) { .drawer .head { display: none; } }
@media (max-width: 600px) {
  table, tbody, tr, td { display: block; width: 100%; }
  tr:first-child { display: none; }
  tr { border-bottom: 1px solid var(--divider); padding: 8px 0; }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 4px 16px; }
}
