/* ==========================================================================
   The Hour — documents
   ========================================================================== */

.doc__mast {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--velvet);
}
.doc__mast h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 56px);
}
.lede { margin: 0; max-width: 52ch; color: var(--muted); font-size: 18px; }
.doc__stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
}

.doc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}
.doc__index {
  position: sticky;
  top: calc(var(--bar) + 16px);
  padding: 16px;
  border: 1px solid var(--line);
}
.doc__index h2 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 400;
}
.doc__index ol { list-style: none; margin: 0; padding: 0; }
.doc__index a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
  min-height: 40px;
  align-items: center;
  border-bottom: 1px dashed rgba(243, 215, 181, 0.12);
  font-family: var(--display);
  font-weight: 600;
}
.doc__index a:hover { color: var(--pearl); }
.doc__index span:first-child { font-family: var(--mono); color: var(--copper); min-width: 2.2em; font-weight: 400; }

.doc__body section { margin-bottom: 32px; scroll-margin-top: calc(var(--bar) + 16px); }
.doc__body h2 { margin: 0 0 10px; font-size: 26px; }
.doc__body h2 span { font-family: var(--mono); font-size: 13px; color: var(--copper); margin-right: 8px; font-weight: 400; }
.doc__body p { margin: 0 0 12px; color: var(--muted); max-width: 68ch; }
.doc__note {
  padding: 14px 16px;
  border-left: 3px solid var(--copper);
  background: rgba(224, 122, 61, 0.08);
  color: var(--pearl);
}

.ctrl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ctrl__cell { padding: 16px; border: 1px solid var(--line); background: rgba(27,16,24,0.4); }
.ctrl__hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ctrl__hd h3 { margin: 0; flex: 1; font-size: 15px; }
.sw__lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sw { width: 28px; height: 16px; border-radius: 99px; background: #3a3a3a; position: relative; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #888; }
.sw--on { background: var(--wine); }
.sw--on::after { left: 14px; background: var(--copper); }
.ctrl__val { margin: 0 0 4px; font-size: 18px; color: var(--pearl); }
.ctrl__val--off { color: var(--muted); }
.ctrl__note { margin: 0; font-size: 13px; color: var(--muted); }
.ctrl__cap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.checklist { list-style: none; margin: 0 0 16px; padding: 0; }
.checklist li { display: flex; gap: 10px; padding: 8px 0; color: var(--muted); border-bottom: 1px dashed rgba(243,215,181,0.12); }
.box { width: 14px; height: 14px; margin-top: 4px; border: 1.5px solid var(--line); flex-shrink: 0; }
.checklist .on .box { background: var(--copper); border-color: var(--copper); }
.doc__end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; }
  .doc__index { position: static; }
  .ctrl { grid-template-columns: 1fr; }
}
