/* qaskit.com (T-91): the site, setup guide, support and privacy pages.
   System fonts and no outside requests. Light and dark follow the device. */

:root {
  --ink: #1a1a1a;
  --muted: #5c5f62;
  --bg: #ffffff;
  --panel: #f6f6f7;
  --line: #e1e3e5;
  --brand: #4326d9;
  --brand-ink: #ffffff;
  --link: #3b20c2;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ececf1;
    --muted: #b5b7bb;
    --bg: #141416;
    --panel: #1f1f23;
    --line: #34353a;
    --link: #b3a6ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 1; }

header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

header img { display: block; height: 36px; width: auto; }

nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
nav a { text-decoration: none; font-weight: 600; }
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main { padding-top: 8px; padding-bottom: 48px; }

h1 { font-size: 2rem; line-height: 1.25; margin: 28px 0 8px; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 36px 0 8px; padding-top: 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }

.lead { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.updated { color: var(--muted); font-size: 0.9rem; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--panel); }
.table-wrap { overflow-x: auto; }

.note { background: var(--panel); border-left: 4px solid var(--brand); padding: 12px 16px; border-radius: 4px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; padding: 0; list-style: none; }
.cards li { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.cards a { font-weight: 600; }

.toc { background: var(--panel); border-radius: 8px; padding: 12px 16px 12px 36px; }

kbd, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--panel); padding: 1px 5px; border-radius: 4px; }

footer { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 32px; color: var(--muted); font-size: 0.9rem; }
footer ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 8px; padding: 0; list-style: none; }

/* On phones, a table's rows stack, each cell under its column's name. */
@media (max-width: 600px) {
  table.stack thead { position: absolute; left: -9999px; }
  table.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.stack td { display: block; border: 0; padding: 4px 0; }
  table.stack td::before { content: attr(data-label); display: block; font-weight: 600; color: var(--muted); font-size: 0.85rem; }
}
