/* O que o Controle-se tem hoje (spec 89) — sobre os tokens de /assets/site.css */
.oqt {
  --ok: #5BD79A;
  --wip: #FF8A3D;
}
/* `.doc` (site.css) zera o padding lateral de `.wrap`; aqui o respiro volta
   (20 px no celular, 40 px a partir de 768 px) e o sumário sangra até a borda
   sem criar rolagem horizontal. */
.wrap.doc.oqt { padding-left: 20px; padding-right: 20px; }
@media (min-width: 768px) { .wrap.doc.oqt { padding-left: 40px; padding-right: 40px; } }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .oqt { --ok: #16A36A; --wip: #E07A1F; }
}

.oqt .stamp {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid var(--hair-strong);
  border-radius: 8px;
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  transform: rotate(-1.5deg);
}
.oqt-lede { margin: 20px 0 0; max-width: 60ch; font-size: 17px; color: var(--ink-muted); }
.oqt-lede strong { color: var(--ink); font-weight: 600; }

/* Marcadores */
.mark { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.mark--confirmed { background: var(--ok); }
.mark--building { border: 1.5px dashed var(--wip); }
.mark--absent { border: 1px solid var(--hair-strong); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }

/* Sumário: chips que rolam na horizontal no celular, sem barra */
.toc { margin: 24px -20px 0; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc ol { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; width: max-content; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--hair-strong); border-radius: 999px; font-size: 13px; text-decoration: none; white-space: nowrap; color: var(--ink); }
.toc a:hover { border-color: var(--ink-muted); }
@media (min-width: 768px) { .toc { margin: 24px 0 0; padding: 0; overflow: visible; } .toc ol { flex-wrap: wrap; width: auto; } }

/* Capítulos e fatos */
.oqt-body { max-width: 760px; }
.oqt-body section { scroll-margin-top: 24px; }
.oqt-body h2 { position: relative; scroll-margin-top: 24px; }
.facts { list-style: none; margin: 0; padding: 0 !important; border-top: 1px solid var(--hair); }
.fact {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  grid-template-areas: "mark text status";
  gap: 4px 14px;
  align-items: start;
  margin: 0 !important;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
}
.fact > .mark { grid-area: mark; margin-top: 7px; }
.fact-text { grid-area: text; min-width: 0; }
.fact-status { grid-area: status; padding-top: 2px; font: 600 11px/1.6 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.fact h3 { margin: 0 0 4px; font-size: 16px; }
.fact p { margin: 0; color: var(--ink-muted); }
.fact[data-status="absent"] h3 { color: var(--ink-muted); }
@media (max-width: 559px) {
  .fact { grid-template-areas: "mark text" "mark status"; grid-template-columns: 10px minmax(0, 1fr); }
  .fact-status { padding-top: 6px; }
}

/* Detalhes */
.fact details { margin-top: 10px; }
.fact summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; color: var(--accent-text); }
.fact summary::-webkit-details-marker { display: none; }
.fact summary::before { content: ""; width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform 160ms cubic-bezier(0.2, 0, 0, 1); }
.fact details[open] summary::before { transform: rotate(90deg); }
.fact-details { margin: 4px 0 0; padding: 0 !important; list-style: none; }
.fact-details li { position: relative; margin: 0 0 6px !important; padding-left: 18px; color: var(--ink); font-size: 15px; }
.fact-details li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--hair-strong); }
.oqt table caption { padding: 12px 14px 0; text-align: left; font-size: 13px; color: var(--ink-muted); }
.server-sees td:first-child { color: var(--ink); }
.server-sees td { color: var(--ink-muted); }

/* Limites */
.limits td { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; }
.limits td.free { color: var(--ink-muted); }
.limits td em { font: italic 400 17px/1.2 var(--serif); color: var(--ink); }
.limits th[scope="row"] { background: none; color: var(--ink); font-weight: 400; }
.limits tr.is-highlight th { box-shadow: inset 2px 0 0 var(--accent); }
.prices, .oqt-note { font-size: 14px; color: var(--ink-muted) !important; }

/* Garantia */
.guarantee { border-top: 2px solid var(--accent); }
.guarantee ol { counter-reset: g; list-style: none; padding: 0 !important; margin: 0 0 12px; }
.guarantee li { counter-increment: g; display: flex; gap: 12px; }
.guarantee li::before { content: counter(g, decimal-leading-zero); font: 500 13px/1.6 var(--mono); color: var(--accent-text); }

/* Entrada e alvo do sumário (só sem "reduzir movimento") */
@media (prefers-reduced-motion: no-preference) {
  .fact { animation: oqt-rise 260ms cubic-bezier(0.2, 0, 0, 1) both; }
  .fact:nth-child(2) { animation-delay: 40ms; }
  .fact:nth-child(3) { animation-delay: 80ms; }
  .fact:nth-child(4) { animation-delay: 120ms; }
  .fact:nth-child(5) { animation-delay: 160ms; }
  .fact:nth-child(6) { animation-delay: 200ms; }
  .fact:nth-child(7) { animation-delay: 240ms; }
  .fact:nth-child(8) { animation-delay: 280ms; }
  .oqt-body h2:target::before { content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 2px; background: var(--accent); animation: oqt-target 700ms ease-out both; }
}
@keyframes oqt-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes oqt-target { from { opacity: 1; } to { opacity: 0; } }
