/* The directory template's how-to page (template/index.html). Reading page: one centered column. */
:root { --wrap: 60rem; }

.guide-bar {
  display: flex; align-items: center; height: 56px;
  padding-inline: var(--gutter); border-bottom: var(--border) solid var(--line); background: var(--surface);
}
.guide-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.guide-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.guide-brand b { font-size: 15px; }
.guide-brand small { font-size: 12px; color: var(--ink-3); }

.guide { display: flex; flex-direction: column; gap: var(--space-xl); padding-block: var(--space-xl) var(--space-l); }
.guide section { display: flex; flex-direction: column; gap: var(--space-s); }
.guide-head .label { color: var(--accent); }
.guide-head h1 { font-size: var(--fs-h1); }
.guide h2 { font-size: var(--fs-h3); }
.guide-actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); padding-top: var(--space-2xs); }
.guide-actions .btn { text-decoration: none; display: inline-flex; align-items: center; font-size: var(--fs-ui); font-weight: var(--w-strong); }

/* Columns table */
.table-scroll { overflow-x: auto; border: var(--border) solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.guide-table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); line-height: var(--lh-snug); }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: var(--border) solid var(--line); }
.guide-table tbody tr:last-child > * { border-bottom: 0; }
.guide-table thead th { font-size: 12px; font-weight: var(--w-strong); color: var(--ink-3); text-transform: var(--label-case); letter-spacing: var(--label-track); background: var(--surface-2); }
.guide-table tbody th { font-weight: var(--w-strong); white-space: nowrap; }
.guide-table td { color: var(--ink-2); }
.guide-table .ex { font-family: var(--font-mono); font-size: 13px; color: var(--ink); white-space: nowrap; }
.need { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: var(--w-strong); white-space: nowrap; border: var(--border) solid var(--line); }
.need.req { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.need.rec { color: var(--ink); }
.need.opt { color: var(--ink-3); }

/* Level tracks */
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.track { border: var(--border) solid var(--line); border-radius: var(--r-l); background: var(--surface); padding: var(--space-s); display: flex; flex-direction: column; gap: 8px; }
.track h3 { font-size: var(--fs-ui); text-transform: var(--label-case); letter-spacing: var(--label-track); color: var(--ink-3); }
.track .codes { font-size: var(--fs-ui); line-height: 1.7; color: var(--ink-2); }
.track .codes b { color: var(--ink); font-family: var(--font-mono); }
.track .codes .code { white-space: nowrap; }
.track .tier { font-size: 12.5px; color: var(--accent); font-weight: var(--w-strong); margin-top: auto; }

.checklist { display: flex; flex-direction: column; gap: var(--space-2xs); padding-left: 1.2em; color: var(--ink-2); max-width: var(--measure); }
.checklist b { color: var(--ink); }

.guide-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: var(--space-m); border-top: var(--border) solid var(--line); }
.copy { font-size: 12px; color: var(--ink-3); }

@media (max-width: 40rem) {
  .tracks { grid-template-columns: 1fr; }
  .guide-table .ex { white-space: normal; }
}

/* Printed, it is a one-sheet reference on white. */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f2f2f2; --line: #ccc; --ink: #000; --ink-2: #333; --ink-3: #555; --accent: #1d5fc4; --accent-ink: #fff; }
  .guide-bar, .guide-actions { display: none; }
  .guide { padding-block: 0; gap: 18px; }
  .table-scroll { overflow: visible; }
}
