/* Trashpanda Education Roadmap — self-contained, works from a subfolder */
:root {
  --bg: #f6f4ef;
  --paper: #fffdf8;
  --ink: #1c1914;
  --muted: #5c564c;
  --line: #d9d2c4;
  --accent: #2457c5;
  --accent-ink: #163a86;
  --callout: #eef3ff;
  --ok-bg: #e7f6ea;
  --ok-ink: #146227;
  --warn-bg: #f8eed7;
  --warn-ink: #7a4b00;
  --shadow: 0 1px 0 rgba(28, 25, 20, 0.06);
  --radius: 12px;
  --max: 72rem;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161411;
    --paper: #1e1b17;
    --ink: #f3eee4;
    --muted: #b7b0a4;
    --line: #3a342c;
    --accent: #8bb0ff;
    --accent-ink: #d6e3ff;
    --callout: #243044;
    --ok-bg: #1b3012;
    --ok-ink: #b6e3bf;
    --warn-bg: #3a2c12;
    --warn-ink: #f0d39a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  font-size: 1.05rem;
}
a { color: var(--accent); }
a:hover, a:focus-visible { color: var(--accent-ink); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

header.hero {
  margin-bottom: 2rem;
}
header.hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 50rem;
  margin: 0;
}

nav.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0 2rem;
}
nav.toc h2 {
  font-size: 1rem;
  margin: 0 0 0.6rem;
}
nav.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 1;
}
@media (min-width: 720px) {
  nav.toc ol { columns: 2; }
}
nav.toc li { break-inside: avoid; margin: 0.25rem 0; }

section {
  margin: 2.25rem 0;
}
section > h2 {
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
  padding-top: 0.25rem;
}
.caption {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1.12rem;
  margin: 1.25rem 0 0.5rem;
}
p { margin: 0.85rem 0; }

.callout {
  background: var(--callout);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1rem 0;
}
.callout strong { display: block; margin-bottom: 0.35rem; }

.props {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.props th, .props td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.props tr:last-child th,
.props tr:last-child td { border-bottom: 0; }
.props th {
  width: 11rem;
  color: var(--muted);
  font-weight: 600;
}

.scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}
table.data th, table.data td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
table.data th {
  background: var(--bg);
  font-weight: 650;
}
table.data tr:last-child td { border-bottom: 0; }
.status {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
}
.status.ok { background: var(--ok-bg); color: var(--ok-ink); }
.status.warn { background: var(--warn-bg); color: var(--warn-ink); }

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}
.timeline:has(#view-all:checked) label[for="view-all"],
.timeline:has(#view-college:checked) label[for="view-college"],
.timeline:has(#view-certs:checked) label[for="view-certs"],
.timeline:has(#view-side:checked) label[for="view-side"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  .timeline:has(#view-all:checked) label[for="view-all"],
  .timeline:has(#view-college:checked) label[for="view-college"],
  .timeline:has(#view-certs:checked) label[for="view-certs"],
  .timeline:has(#view-side:checked) label[for="view-side"] {
    color: #121212;
  }
}
.panel { display: none; }
.timeline:has(#view-all:checked) #panel-all,
.timeline:has(#view-college:checked) #panel-college,
.timeline:has(#view-certs:checked) #panel-certs,
.timeline:has(#view-side:checked) #panel-side { display: block; }

.diagram {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}
@media (min-width: 900px) {
  .diagram {
    grid-template-columns: repeat(4, 1fr);
  }
}
.node {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  box-shadow: var(--shadow);
}
.node.decision { border-style: dashed; }
.node.terminal { background: var(--callout); }
.node strong { display: block; }
.node span { display: block; color: var(--muted); font-size: 0.95rem; }
.node em {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--accent-ink);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

ul, ol { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }

.questions {
  list-style: none;
  padding: 0;
  margin: 0;
}
.questions li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin: 0.5rem 0;
}
.box {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  border: 2px solid var(--muted);
  border-radius: 4px;
}

.sources {
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 720px) {
  .sources { grid-template-columns: 1fr 1fr; }
}
.sources a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.sources a:hover, .sources a:focus-visible {
  border-color: var(--accent);
}
.sources small {
  display: block;
  color: var(--muted);
  margin-top: 0.25rem;
}

.back {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  box-shadow: var(--shadow);
}
