/* ==========================================================================
   Base de Conhecimento TrackTickets — folha de estilo única
   Identidade visual Trackhouse (paleta extraída de src/styles.css do produto):
     primary #003F5C · deep #0A2931 · mid #123944 · steel #1D5567
     fog #A8B6BB · teal #40A7AF · bronze #E0A436
   Sem dependências externas: nenhuma fonte remota, nenhum CDN.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --th-deep: #0a2931;
  --th-mid: #123944;
  --th-primary: #003f5c;
  --th-steel: #1d5567;
  --th-fog: #a8b6bb;
  --th-teal: #40a7af;
  --th-bronze: #e0a436;

  --bg: #f6f8f9;
  --surface: #ffffff;
  --surface-2: #f0f4f5;
  --text: #14262e;
  --text-soft: #4d6470;
  --text-faint: #7d919b;
  --border: #dfe7ea;
  --border-strong: #c6d4d9;

  --ok: #0f7a5a;
  --ok-bg: #e6f5ef;
  --warn: #9a6800;
  --warn-bg: #fdf3df;
  --danger: #a32222;
  --danger-bg: #fdecec;
  --info: #14606f;
  --info-bg: #e4f2f4;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 41, 49, 0.06);
  --shadow: 0 4px 16px rgba(10, 41, 49, 0.08);
  --shadow-lg: 0 18px 48px rgba(10, 41, 49, 0.18);

  --header-h: 60px;
  --sidebar-w: 286px;
  --content-max: 940px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--th-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid var(--th-teal);
  outline-offset: 2px;
  border-radius: 4px;
}
button {
  font: inherit;
  cursor: pointer;
}

/* pular para o conteúdo (acessibilidade) */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: var(--th-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.15s;
}
.skip-link:focus {
  top: 8px;
}

/* ---------- cabeçalho fixo ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: linear-gradient(100deg, var(--th-deep), var(--th-primary) 62%, var(--th-steel));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: #fff;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 3px;
}
.brand-logo svg {
  width: 100%;
  height: 100%;
}
.brand-name {
  font-size: 15px;
}
.brand-name span {
  font-weight: 400;
  opacity: 0.75;
  margin-left: 4px;
}
.header-spacer {
  flex: 1;
}
.header-search {
  position: relative;
  width: min(380px, 42vw);
}
.header-search input {
  width: 100%;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0 14px 0 38px;
  font-size: 14px;
}
.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.header-search input:focus {
  background: rgba(255, 255, 255, 0.2);
  outline-color: #fff;
}
.header-search .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  pointer-events: none;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.menu-toggle {
  display: none;
}

/* ---------- layout ---------- */
.layout {
  display: flex;
  padding-top: var(--header-h);
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  border-right: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 20px 12px 48px;
}
.sidebar h2 {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 18px 10px 6px;
  font-weight: 700;
}
.sidebar h2:first-child {
  margin-top: 0;
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}
.sidebar a:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.sidebar a[aria-current="page"] {
  background: rgba(0, 63, 92, 0.09);
  color: var(--th-primary);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--th-primary);
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 26px 28px 80px;
  gap: 32px;
}
.content {
  width: 100%;
  max-width: var(--content-max);
  min-width: 0;
}
.toc {
  width: 214px;
  flex: 0 0 214px;
  position: sticky;
  top: calc(var(--header-h) + 26px);
  align-self: flex-start;
  max-height: calc(100vh - var(--header-h) - 60px);
  overflow-y: auto;
  font-size: 13px;
}
.toc strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}
.toc a {
  display: block;
  padding: 4px 0 4px 12px;
  color: var(--text-soft);
  margin-left: -2px;
  border-left: 2px solid transparent;
}
.toc a:hover {
  color: var(--th-primary);
  text-decoration: none;
}
.toc a.is-active {
  color: var(--th-primary);
  border-left-color: var(--th-primary);
  font-weight: 600;
}
.toc .lvl-3 {
  padding-left: 24px;
  font-size: 12.5px;
}

/* ---------- tipografia de conteúdo ---------- */
.content h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 4px 0 10px;
  letter-spacing: -0.02em;
  color: var(--th-deep);
}
.content h2 {
  font-size: 21px;
  margin: 38px 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
  color: var(--th-deep);
  letter-spacing: -0.01em;
}
.content h3 {
  font-size: 16.5px;
  margin: 26px 0 8px;
  color: var(--th-mid);
}
.content h4 {
  font-size: 14.5px;
  margin: 20px 0 6px;
  color: var(--th-steel);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.content p {
  margin: 0 0 14px;
}
.content ul,
.content ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.content li {
  margin-bottom: 5px;
}
.content li > ul,
.content li > ol {
  margin-top: 5px;
}
.lead {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 22px;
}
code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  word-break: break-word;
}
pre {
  background: var(--th-deep);
  color: #dfeaee;
  padding: 14px 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
strong {
  font-weight: 650;
}
abbr {
  text-decoration: underline dotted;
  cursor: help;
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.breadcrumbs li::after {
  content: "›";
  margin-left: 6px;
  color: var(--border-strong);
}
.breadcrumbs li:last-child::after {
  content: none;
}
.breadcrumbs a {
  color: var(--text-soft);
}

/* ---------- avisos ---------- */
.note {
  border: 1px solid var(--border);
  border-left: 4px solid var(--th-teal);
  background: var(--info-bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14.5px;
}
.note > :last-child {
  margin-bottom: 0;
}
.note .note-title {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--info);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.note.tip {
  border-left-color: var(--ok);
  background: var(--ok-bg);
}
.note.tip .note-title {
  color: var(--ok);
}
.note.warn {
  border-left-color: var(--th-bronze);
  background: var(--warn-bg);
}
.note.warn .note-title {
  color: var(--warn);
}
.note.danger {
  border-left-color: var(--danger);
  background: var(--danger-bg);
}
.note.danger .note-title {
  color: var(--danger);
}
.note.validate {
  border-left-color: #6b3fa0;
  background: #f2ecfa;
}
.note.validate .note-title {
  color: #5b3391;
}

/* ---------- tabelas responsivas ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 14px;
}
caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--text-faint);
  padding: 10px 14px 0;
}
th,
td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  background: var(--surface-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: rgba(64, 167, 175, 0.05);
}

/* ---------- selos ---------- */
.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
  line-height: 1.6;
}
.badge.sim {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #f2c4c4;
}
.badge.nao {
  color: var(--text-soft);
  background: var(--surface-2);
  border-color: var(--border);
}
.badge.ok {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: #b9e2d3;
}
.badge.warn {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: #ecd7a5;
}
.badge.info {
  color: var(--info);
  background: var(--info-bg);
  border-color: #b7dbe1;
}
.badge.neutral {
  color: var(--th-steel);
  background: #eaf0f2;
  border-color: #cfdde1;
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
}
.card {
  display: block;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.14s,
    box-shadow 0.14s,
    border-color 0.14s;
  color: inherit;
  height: 100%;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--th-teal);
  text-decoration: none;
}
.card .card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(0, 63, 92, 0.08);
  color: var(--th-primary);
  margin-bottom: 10px;
}
.card h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
  color: var(--th-deep);
}
.card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}
.card .card-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--th-teal);
  font-weight: 700;
}

/* ---------- passo a passo ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 44px;
  margin: 0;
  border-left: 2px solid var(--border);
  margin-left: 15px;
}
.steps > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -16px;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--th-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--bg);
}
.steps > li > strong:first-child {
  display: block;
  color: var(--th-deep);
  margin-bottom: 2px;
}

/* ---------- fluxogramas em HTML/CSS ---------- */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
}
.flow-node {
  flex: 1 1 150px;
  min-width: 138px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}
.flow-node b {
  display: block;
  color: var(--th-deep);
  font-size: 13.5px;
  margin-bottom: 2px;
}
.flow-node.start {
  background: var(--info-bg);
  border-color: #a9d4db;
}
.flow-node.ok {
  background: var(--ok-bg);
  border-color: #a9dcc8;
}
.flow-node.stop {
  background: var(--danger-bg);
  border-color: #eebcbc;
}
.flow-node.decision {
  background: var(--warn-bg);
  border-color: #e5cd9c;
}
.flow-arrow {
  align-self: center;
  color: var(--th-teal);
  font-weight: 700;
  flex: 0 0 auto;
}
.flow.vertical {
  flex-direction: column;
}
.flow.vertical .flow-arrow {
  align-self: flex-start;
  margin-left: 22px;
}

/* ---------- figuras / screenshots ---------- */
figure {
  margin: 20px 0;
}
figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  cursor: zoom-in;
}
figure img.no-zoom {
  cursor: default;
}
figcaption {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 8px;
  line-height: 1.5;
}
figure.mobile-shot img {
  max-width: 320px;
  margin: 0 auto;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 41, 49, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.lightbox[open],
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox figcaption {
  color: #d9e6ea;
  text-align: center;
  margin-top: 12px;
  max-width: 760px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ---------- busca ---------- */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(10, 41, 49, 0.55);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 78px 18px 24px;
}
.search-panel.is-open {
  display: flex;
}
.search-box {
  width: min(720px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
}
.search-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.search-box-head input {
  flex: 1;
  border: 0;
  font-size: 16px;
  padding: 6px 0;
  background: none;
  color: var(--text);
}
.search-box-head input:focus {
  outline: none;
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
}
.search-results li a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: inherit;
}
.search-results li a:hover,
.search-results li a:focus,
.search-results li.is-active a {
  background: var(--surface-2);
  text-decoration: none;
}
.search-results .r-title {
  font-weight: 600;
  color: var(--th-deep);
  font-size: 14.5px;
}
.search-results .r-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--th-teal);
  font-weight: 700;
  margin-left: 8px;
}
.search-results .r-desc {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
  line-height: 1.45;
}
.search-empty {
  padding: 22px 18px;
  color: var(--text-faint);
  font-size: 14px;
}
.search-hint {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
  background: var(--surface-2);
}

/* ---------- home ---------- */
.hero {
  background:
    radial-gradient(1100px 320px at 12% -10%, rgba(64, 167, 175, 0.35), transparent 62%),
    linear-gradient(115deg, var(--th-deep), var(--th-primary) 58%, var(--th-steel));
  color: #fff;
  border-radius: 18px;
  padding: 40px 36px;
  margin-bottom: 30px;
}
.hero h1 {
  color: #fff;
  font-size: 34px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 16.5px;
  max-width: 660px;
  margin-bottom: 20px;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--th-bronze);
  margin-bottom: 12px;
}
.hero-search {
  position: relative;
  max-width: 520px;
  margin-bottom: 18px;
}
.hero-search input {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0 18px 0 44px;
  font-size: 15px;
}
.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}
.hero-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  border: 1px solid transparent;
  background: var(--th-bronze);
  color: #2b1f05;
}
.btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn.solid {
  background: var(--th-primary);
  color: #fff;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 2px;
}
.section-head h2 {
  border: 0;
  margin: 0;
  padding: 0;
}
.section-head a {
  font-size: 13.5px;
  white-space: nowrap;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 12px 0 24px;
}
.quick-links a {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text-soft);
}
.quick-links a:hover {
  border-color: var(--th-teal);
  color: var(--th-primary);
  text-decoration: none;
}

.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 16px 0 8px;
  padding: 0;
  list-style: none;
}
.audience li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--surface);
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}
.audience li b {
  display: block;
  color: var(--th-deep);
  margin-bottom: 3px;
  font-size: 14.5px;
}

/* ---------- FAQ (details) ---------- */
details.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
}
details.faq > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--th-deep);
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
details.faq > summary::-webkit-details-marker {
  display: none;
}
details.faq > summary::before {
  content: "+";
  color: var(--th-teal);
  font-weight: 700;
  flex: 0 0 auto;
}
details.faq[open] > summary::before {
  content: "–";
}
details.faq > summary:hover {
  background: var(--surface-2);
}
.faq-body {
  padding: 0 16px 14px 38px;
  font-size: 14.5px;
  color: var(--text-soft);
}
.faq-body > :last-child {
  margin-bottom: 0;
}

/* ---------- glossário ---------- */
.glossary {
  margin: 18px 0;
}
.glossary dt {
  font-weight: 650;
  color: var(--th-deep);
  margin-top: 16px;
}
.glossary dd {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ---------- mapa do sistema ---------- */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.map-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
}
.map-col h3 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--th-teal);
}
.map-col ul {
  padding-left: 18px;
  margin: 0;
  font-size: 14px;
}

/* ---------- paginação ---------- */
.pager {
  display: flex;
  gap: 12px;
  margin-top: 46px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.pager a {
  flex: 1 1 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--surface);
  font-size: 14px;
  min-width: 0;
}
.pager a:hover {
  border-color: var(--th-teal);
  text-decoration: none;
}
.pager .dir {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  margin-bottom: 2px;
}
.pager .next {
  text-align: right;
}

/* ---------- rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 28px;
  font-size: 13px;
  color: var(--text-faint);
}
.site-footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}
.site-footer a {
  color: var(--text-soft);
}

/* ---------- voltar ao topo ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--th-primary);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s;
  z-index: 50;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- utilitários ---------- */
.muted {
  color: var(--text-faint);
}
.small {
  font-size: 13.5px;
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.backdrop {
  display: none;
}

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .toc {
    display: none;
  }
  .main {
    padding: 24px 22px 72px;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar-w: 280px;
  }
  .menu-toggle {
    display: grid;
  }
  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    height: auto;
    z-index: 70;
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open {
    transform: none;
  }
  .backdrop.is-open {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(10, 41, 49, 0.42);
    z-index: 65;
  }
  .header-search {
    display: none;
  }
  .main {
    padding: 20px 16px 70px;
  }
  .hero {
    padding: 30px 22px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .content h1 {
    font-size: 25px;
  }
  .brand-name span {
    display: none;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 15px;
  }
  .content h2 {
    font-size: 19px;
  }
  .steps > li {
    padding-left: 38px;
  }
  .site-footer {
    padding: 18px 16px;
  }
}

/* ---------- impressão ---------- */
@media print {
  .site-header,
  .sidebar,
  .toc,
  .pager,
  .to-top,
  .search-panel,
  .backdrop {
    display: none !important;
  }
  .layout {
    padding-top: 0;
  }
  .main {
    padding: 0;
  }
  body {
    background: #fff;
  }
  a {
    color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
