/* The guide page. Colours, type and controls come from styles.css; this file
   only lays the page out. */
body.guide {
  display: block;
  height: auto;
  font-size: 16px;
  line-height: 1.55;
}

.guide-band {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--yellow);
  color: var(--ink-on-yellow);
}
.guide-band h1 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.guide-band .button { margin-left: auto; text-decoration: none; white-space: nowrap; }
.guide-band :focus-visible { outline-color: var(--ink-on-yellow); }

.guide-main {
  display: grid;
  grid-template-columns: 232px minmax(0, 860px);
  gap: 0 48px;
  padding: 0 20px 96px;
}

/* styles.css lays the simulator's <main> out as a two-column grid; the guide's is plain. */
.guide-main main { display: block; min-width: 0; }

/* Section list: the page's own sign. Yellow marks where you are. */
.guide-nav {
  position: sticky;
  top: 64px;
  align-self: start;
  padding-top: 40px;
}
.guide-nav ol { margin: 0; padding: 0; list-style: none; }
.guide-nav a {
  display: block;
  padding: 7px 0 7px 14px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  border-left: 1px solid var(--rule);
}
.guide-nav a:hover { color: var(--white); }
.guide-nav a[aria-current="true"] {
  color: var(--ink-on-yellow);
  font-weight: 700;
  background: var(--yellow);
  border-left-color: var(--yellow);
}

.guide-main section { padding-top: 56px; scroll-margin-top: 48px; }
.guide-main section h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
.guide-main section h3 { margin: 28px 0 0; font-size: 18px; }
.guide-main p { margin-top: 12px; max-width: 68ch; text-wrap: pretty; }
.guide-main p.lede { font-size: 19px; }
.guide-main li { max-width: 66ch; margin-top: 6px; }
.guide-main ul { margin: 12px 0 0; padding-left: 20px; }
.guide-main code {
  padding: 1px 5px;
  font: 14px ui-monospace, monospace;
  background: var(--panel);
  border-radius: var(--radius);
}
.guide-main a { color: var(--white); text-underline-offset: 3px; }

/* A demo: controls, then what they drive. */
.demo {
  margin-top: 24px;
  padding: 20px;
  background: var(--panel);
  border-radius: var(--radius);
}
.demo-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; }
.demo-controls .field { min-width: 170px; flex: 1 1 170px; }
.demo-controls .check { margin-top: 0; align-items: center; min-height: 36px; }
.demo-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.demo canvas { display: block; width: 100%; }
.demo canvas.view { height: 320px; background: var(--black); }
.demo canvas.wide { height: 260px; background: var(--black); margin-top: 18px; }
.demo canvas.network { height: 460px; margin-top: 0; }
.demo canvas.genome { height: 44px; margin-top: 8px; }
.demo canvas.chart { height: 150px; margin-top: 8px; }
.demo canvas.plot { height: 220px; margin-top: 18px; }
.demo .readout { margin-top: 14px; font-size: 15px; max-width: none; }
.demo .readout strong { font-weight: 700; }
.demo .caption { margin-top: 8px; font-size: 13px; color: var(--muted); max-width: none; }

table.values { margin-top: 16px; border-collapse: collapse; font-size: 14px; width: 100%; }
table.values th, table.values td { padding: 6px 10px 6px 0; text-align: left; border-bottom: 1px solid var(--rule); }
table.values th { font-weight: 400; color: var(--muted); }
table.values td.num { font-weight: 600; }
.key {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-on-yellow);
  background: var(--yellow);
}
.bar { display: inline-block; height: 8px; min-width: 1px; background: var(--positive); vertical-align: middle; }
.bar.old { background: var(--muted); }

table.files { margin-top: 16px; border-collapse: collapse; font-size: 15px; }
table.files td { padding: 8px 18px 8px 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
table.files td:first-child { white-space: nowrap; }

.verdict { margin-top: 14px; font-size: 20px; font-weight: 700; }

@media (max-width: 1180px) {
  .demo-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .guide-main { grid-template-columns: minmax(0, 1fr); padding: 0 16px 72px; }
  .guide-nav { position: static; padding-top: 24px; }
  .guide-nav ol { display: flex; flex-wrap: wrap; gap: 6px 8px; }
  .guide-nav a { padding: 6px 10px; border: 1px solid var(--rule); border-radius: var(--radius); }
  .guide-nav a[aria-current="true"] { border-color: var(--yellow); }
  .guide-main section { padding-top: 40px; }
  .demo { padding: 16px; }
  .demo-split { grid-template-columns: minmax(0, 1fr); }
  .guide-band h1 { font-size: 18px; }
}
