/* med-tutor installation guide (README.md, Phase 3, "Give someone access").
   System fonts only: the site loads nothing from third parties. */
:root {
  color-scheme: light;
  --ground: #f5f7f3;
  --surface: #ffffff;
  --ink: #1c2930;
  --muted: #56666d;
  --line: #d7dfd9;
  --accent: #1d6b62;
  --accent-soft: #e3efea;
  --warn: #8f5410;
  --warn-soft: #f7ecdc;
  --code-bg: #eef2ee;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "JetBrains Mono", Consolas, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #111718;
    --surface: #182022;
    --ink: #e2e9e5;
    --muted: #9aa8a4;
    --line: #2b3739;
    --accent: #63b5a8;
    --accent-soft: #1c2d2b;
    --warn: #e0a55c;
    --warn-soft: #2c2318;
    --code-bg: #1f292b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  padding: 0 20px;
}
.page { max-width: 44rem; margin: 0 auto; padding-block: 48px 72px; display: grid; gap: 44px; }
h1, h2, h3 { font-family: var(--serif); text-wrap: balance; margin: 0; line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 600; }
h3 { font-size: 1.08rem; font-weight: 600; }
p, ul, ol { margin: 0; }
a { color: var(--accent); }
strong { font-weight: 700; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }
.ui { font-weight: 700; white-space: nowrap; }

header { display: grid; gap: 14px; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 38rem; }

.switch { display: grid; gap: 8px; }
.switch-label { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.switch-buttons {
  display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: start;
  border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: var(--surface); gap: 4px;
}
.switch button {
  font: 700 1rem var(--sans);
  color: var(--muted); background: transparent; border: 0; border-radius: 7px;
  padding: 8px 22px; cursor: pointer;
}
.switch button[aria-pressed="true"] { background: var(--accent); color: var(--ground); }
.switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

section { display: grid; gap: 16px; }

.needs { display: grid; gap: 12px; padding: 0; list-style: none; }
.needs.tight { gap: 8px; }
.needs li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 10px; align-items: start; }
.tick { width: 1.2rem; height: 1.2rem; margin-top: 0.22rem; border: 2px solid var(--accent); border-radius: 4px; }
.needs small { display: block; color: var(--muted); font-size: 0.92rem; }

.steps { list-style: none; padding: 0; display: grid; gap: 30px; counter-reset: step; }
.step { display: grid; grid-template-columns: 2.4rem 1fr; gap: 16px; counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--accent); color: var(--ground);
  font: 700 1.1rem var(--serif);
}
.step > div { display: grid; gap: 12px; min-width: 0; }
.step ol { padding-left: 1.2rem; display: grid; gap: 6px; }
.note { color: var(--muted); font-size: 0.94rem; }

.copy {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
.copy .mono { flex: 1 1 16rem; min-width: 0; overflow-wrap: anywhere; user-select: all; }
.copy button {
  font: 700 0.9rem var(--sans);
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid transparent; border-radius: 6px; padding: 6px 12px; cursor: pointer;
}
.copy button:hover { border-color: var(--accent); }
.copy button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 4px; }
.field-label { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.consent {
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  padding: 14px 16px; display: grid; gap: 6px; font-size: 0.95rem;
}
.consent dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; }
.consent dt { color: var(--muted); }
.consent dd { margin: 0; }

.sample {
  border-left: 3px solid var(--accent); background: var(--surface);
  padding: 12px 16px; border-radius: 0 8px 8px 0; display: grid; gap: 8px; overflow-x: auto;
}
.sample .mono { white-space: nowrap; font-size: 0.84rem; }

.alert { background: var(--warn-soft); border-radius: 8px; padding: 12px 16px; color: var(--ink); }
.alert strong { color: var(--warn); }

.trouble { display: grid; gap: 0; border-top: 1px solid var(--line); }
.trouble > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.trouble .symptom { font-weight: 700; }
@media (max-width: 560px) {
  .trouble > div { grid-template-columns: 1fr; gap: 4px; }
  .step { grid-template-columns: 1fr; gap: 10px; }
}

footer { color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 16px; }
