/* Pantheon — Manual do usuário (/manual/).
   Carrega depois de site.css e reaproveita os tokens dele (blueprint / steel / ink). */

/* ---------- Capa ---------- */
.m-hero {
  position: relative;
  padding: 128px 0 64px;
  color: #fff;
  background:
    radial-gradient(900px 440px at 88% -10%, rgba(47, 83, 240, 0.55), transparent 62%),
    radial-gradient(600px 360px at 0% 110%, rgba(61, 99, 255, 0.22), transparent 66%),
    var(--ink-950);
}
.m-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
}
.m-hero .container {
  position: relative;
  z-index: 1;
}
.m-hero h1 {
  margin-top: 14px;
  max-width: 14ch;
  font-size: clamp(2.3rem, 5.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.m-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blueprint-300), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.m-hero__lead {
  margin-top: 18px;
  max-width: 40rem;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.72);
}
.m-hero .eyebrow {
  color: var(--blueprint-300);
}
.m-red {
  color: #c93d3d;
}
.m-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.m-search {
  position: relative;
  max-width: 560px;
  margin-top: 30px;
}
.m-search .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--steel-400);
  pointer-events: none;
}
.m-search input {
  width: 100%;
  padding: 0.95rem 3.4rem 0.95rem 2.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-950);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
}
.m-search input::placeholder {
  color: var(--steel-400);
  font-weight: 500;
}
.m-search kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 8px;
  border-radius: 7px;
  border: 1px solid var(--steel-200);
  background: var(--steel-50);
  color: var(--steel-500);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}
.m-results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: min(60vh, 460px);
  overflow: auto;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  color: var(--steel-800);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--steel-200);
}
.m-results[hidden] {
  display: none;
}
.m-results__head {
  padding: 8px 12px 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.m-results a {
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  text-decoration: none;
}
.m-results a:hover,
.m-results a:focus-visible {
  background: var(--blueprint-50);
}
.m-results a strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-950);
}
.m-results a small {
  display: block;
  margin-top: 1px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blueprint-600);
}
.m-results a span {
  display: block;
  margin-top: 3px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--steel-500);
}
.m-results mark {
  background: rgba(255, 200, 87, 0.45);
  color: inherit;
  border-radius: 3px;
}
.m-results__empty {
  padding: 18px 14px;
  color: var(--steel-500);
  font-size: 0.95rem;
}

.m-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 40px;
  max-width: 900px;
}
.m-quick a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.m-quick a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}
.m-quick .m-ico {
  flex: none;
}
.m-quick strong {
  display: block;
  font-size: 0.98rem;
}
.m-quick small {
  display: block;
  margin-top: 1px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Ícone em quadrado azul */
.m-ico {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blueprint-500), var(--blueprint-700));
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(47, 83, 240, 0.9);
}
.m-ico .icon {
  width: 22px;
  height: 22px;
}

/* ---------- Estrutura: índice + conteúdo ---------- */
.m-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.m-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}
.m-toc__title {
  margin-bottom: 12px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.m-toc__toggle {
  display: none;
}
.m-toc ol {
  counter-reset: toc;
  display: grid;
  gap: 2px;
}
.m-toc li {
  counter-increment: toc;
}
.m-toc ol a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 11px;
  color: var(--steel-600);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.m-toc ol a::before {
  content: counter(toc);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--steel-100);
  color: var(--steel-500);
  font-size: 0.76rem;
  font-weight: 800;
  transition: background 0.15s, color 0.15s;
}
.m-toc ol a:hover {
  background: var(--steel-50);
  color: var(--ink-950);
}
.m-toc ol a[aria-current="true"] {
  background: var(--blueprint-50);
  color: var(--blueprint-700);
}
.m-toc ol a[aria-current="true"]::before {
  background: var(--blueprint-600);
  color: #fff;
}
.m-toc__extra {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--steel-200);
  display: grid;
  gap: 8px;
}
.m-toc__extra .btn {
  justify-content: flex-start;
}

/* ---------- Capítulos ---------- */
.m-main {
  min-width: 0;
}
.m-chapter {
  padding: 8px 0 56px;
  scroll-margin-top: 90px;
}
.m-chapter + .m-chapter {
  padding-top: 52px;
  border-top: 1px solid var(--steel-200);
}
.m-chapter__head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}
.m-chapter__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--blueprint-500), var(--blueprint-800));
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: 0 14px 28px -12px rgba(47, 83, 240, 0.85);
}
.m-chapter h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink-950);
}
.m-chapter__lead {
  margin-top: 8px;
  font-size: 1.05rem;
  color: var(--steel-500);
}
.m-chapter h3 {
  margin: 36px 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  scroll-margin-top: 90px;
}
.m-chapter h4 {
  margin: 22px 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-900);
}
.m-chapter p,
.m-chapter li {
  color: var(--steel-700);
}
.m-chapter p + p {
  margin-top: 12px;
}
.m-chapter p + h3,
.m-chapter ul + h3,
.m-chapter ol + h3 {
  margin-top: 36px;
}
.m-chapter a:not(.btn) {
  color: var(--blueprint-700);
  font-weight: 600;
  text-underline-offset: 3px;
}
.m-chapter ul.m-list {
  margin: 12px 0;
  padding-left: 0;
  display: grid;
  gap: 8px;
}
.m-list li {
  position: relative;
  padding-left: 26px;
}
.m-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--blueprint-500);
  transform: rotate(45deg);
}
.m-anchor {
  margin-left: 8px;
  color: var(--steel-300);
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.m-chapter h2:hover .m-anchor,
.m-chapter h3:hover .m-anchor,
.m-anchor:focus-visible {
  opacity: 1;
}
.m-anchor:hover {
  color: var(--blueprint-600);
}

/* Rótulos da interface (nomes de botões e menus) */
.ui {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 7px;
  border: 1px solid var(--blueprint-100);
  background: var(--blueprint-50);
  color: var(--blueprint-800);
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.ui--menu {
  border-color: var(--steel-200);
  background: var(--steel-50);
  color: var(--ink-800);
}

/* Passo a passo */
.m-steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin: 18px 0;
}
.m-steps > li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 22px 54px;
}
.m-steps > li:last-child {
  padding-bottom: 2px;
}
.m-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blueprint-500);
  color: var(--blueprint-700);
  font-weight: 800;
  z-index: 1;
}
.m-steps > li::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(var(--blueprint-200), var(--steel-200));
}
.m-steps > li:last-child::after {
  display: none;
}
.m-steps strong {
  color: var(--ink-950);
}
.m-steps li > p {
  margin-top: 4px;
}

/* Avisos */
.m-callout {
  display: flex;
  gap: 14px;
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--blueprint-100);
  background: var(--blueprint-50);
}
.m-callout .icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--blueprint-600);
}
.m-callout__body > strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-950);
}
.m-callout p,
.m-callout li {
  color: var(--steel-700);
  font-size: 0.97rem;
}
.m-callout--warn {
  border-color: #fde3a7;
  background: #fff8e6;
}
.m-callout--warn .icon {
  color: #d98a00;
}
.m-callout--ok {
  border-color: #b7ecd4;
  background: #ecfbf4;
}
.m-callout--ok .icon {
  color: #0d9467;
}

/* Selos de status (cores como no aplicativo) */
.bdg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.6;
  white-space: nowrap;
}
.bdg::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.bdg--gray {
  background: var(--steel-100);
  color: var(--steel-600);
}
.bdg--blue {
  background: var(--blueprint-100);
  color: var(--blueprint-800);
}
.bdg--amber {
  background: #fff1cc;
  color: #9a6200;
}
.bdg--green {
  background: #d8f7e8;
  color: #0b7a55;
}
.bdg--red {
  background: #fde0e0;
  color: #b53030;
}

/* Fluxo de etapas (ex.: Pedido de Compra) */
.m-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 22px 0;
  counter-reset: flow;
}
.m-flow__step {
  position: relative;
  flex: 1 1 170px;
  padding: 16px 16px 16px 16px;
  border-radius: 16px;
  border: 1px solid var(--steel-200);
  background: #fff;
  box-shadow: 0 14px 30px -24px rgba(18, 23, 46, 0.6);
}
.m-flow__step::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--blueprint-400);
  border-right: 2px solid var(--blueprint-400);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}
.m-flow__step:last-child::after {
  display: none;
}
.m-flow__step b {
  display: block;
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--ink-950);
}
.m-flow__step span:not(.bdg) {
  display: block;
  margin-top: 3px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--steel-500);
}
@media (max-width: 640px) {
  .m-flow {
    flex-direction: column;
  }
  .m-flow__step {
    flex: 0 0 auto;
  }
  .m-flow__step::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -11px;
    transform: translateX(-50%) rotate(135deg);
  }
}

/* Linha do tempo horizontal (primeiros passos) */
.m-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 22px 0 8px;
  counter-reset: tl;
}
.m-timeline li {
  counter-increment: tl;
  padding: 16px;
  border-radius: 16px;
  background: var(--steel-50);
  border: 1px solid var(--steel-200);
}
.m-timeline li::before {
  content: counter(tl);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--blueprint-600);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}
.m-timeline b {
  display: block;
  color: var(--ink-950);
  font-size: 0.97rem;
}
.m-timeline span {
  display: block;
  margin-top: 2px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--steel-500);
}

/* Cartões (funções, recursos) */
.m-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.m-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--steel-200);
  background: #fff;
}
.m-card b {
  display: block;
  color: var(--ink-950);
}
.m-card p {
  margin-top: 4px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.m-card .m-ico {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 11px;
}

/* Capturas de tela */
.m-figure {
  margin: 26px 0;
}
.m-figure .browser {
  box-shadow: 0 0 0 1px var(--steel-200), 0 30px 70px -34px rgba(18, 23, 46, 0.55);
}
.m-figure figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--steel-500);
  text-align: center;
}
.m-phones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 760px;
  margin: 26px 0;
}
.m-phones figure {
  margin: 0;
}
.m-phones .phone {
  border-radius: 30px;
  padding: 6px;
}
.m-phones .phone img {
  border-radius: 24px;
}
.m-phones figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink-900);
}
@media (max-width: 720px) {
  .m-phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 380px;
  }
}

/* Tabelas */
.m-table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--steel-200);
  background: #fff;
}
.m-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.m-table th,
.m-table td {
  padding: 10px 7px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--steel-100);
}
.m-table tr:last-child td {
  border-bottom: 0;
}
.m-table thead th {
  background: var(--steel-50);
  color: var(--ink-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom: 1px solid var(--steel-200);
}
.m-table tbody th {
  min-width: 118px;
  padding-left: 12px;
  color: var(--ink-950);
  font-weight: 700;
}
.m-table thead th:first-child {
  padding-left: 12px;
}
.m-table td.c {
  text-align: center;
}
.perm {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}
.perm--manage {
  background: #d8f7e8;
  color: #0b7a55;
}
.perm--view {
  background: var(--steel-100);
  color: var(--steel-600);
}
.perm--va {
  background: #fff1cc;
  color: #9a6200;
}
.perm--none {
  color: var(--steel-300);
  font-weight: 700;
}
.perm--hide {
  background: #fff;
  border: 1px dashed var(--steel-300);
  color: var(--steel-500);
}
.m-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--steel-500);
}
.m-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Perguntas frequentes */
.m-faq {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.m-faq details {
  border-radius: 16px;
  border: 1px solid var(--steel-200);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.m-faq details[open] {
  border-color: var(--blueprint-200);
  box-shadow: 0 18px 40px -30px rgba(47, 83, 240, 0.7);
}
.m-faq summary {
  position: relative;
  padding: 16px 52px 16px 18px;
  font-weight: 800;
  color: var(--ink-950);
  cursor: pointer;
  list-style: none;
}
.m-faq summary::-webkit-details-marker {
  display: none;
}
.m-faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--blueprint-500);
  border-bottom: 2px solid var(--blueprint-500);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.m-faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.m-faq details > div {
  padding: 0 18px 18px;
}

/* Glossário */
.m-glossary {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 0;
  margin: 12px 0;
  border-radius: 16px;
  border: 1px solid var(--steel-200);
  overflow: hidden;
  background: #fff;
}
.m-glossary dt,
.m-glossary dd {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--steel-100);
}
.m-glossary dt {
  font-weight: 800;
  color: var(--ink-950);
  background: var(--steel-50);
}
.m-glossary dt:last-of-type,
.m-glossary dd:last-of-type {
  border-bottom: 0;
}
@media (max-width: 640px) {
  .m-glossary {
    grid-template-columns: 1fr;
  }
  .m-glossary dt {
    border-bottom: 0;
    padding-bottom: 2px;
  }
  .m-glossary dd {
    padding-top: 2px;
  }
}

/* Bloco de ajuda no fim */
.m-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 28px;
  padding: 30px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(520px 260px at 90% 0%, rgba(61, 99, 255, 0.55), transparent 65%),
    var(--ink-900);
  box-shadow: 0 30px 60px -34px rgba(11, 15, 31, 0.8);
}
.m-support h3 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
}
.m-support p {
  margin-top: 6px;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.72);
}
.m-chapter .m-support a.btn {
  color: var(--blueprint-700);
}

/* Voltar ao topo */
.m-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--steel-200);
  background: #fff;
  color: var(--blueprint-700);
  box-shadow: 0 16px 34px -16px rgba(18, 23, 46, 0.5);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.m-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.m-top .icon {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}

/* ---------- Telas estreitas ---------- */
@media (max-width: 960px) {
  .m-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 28px;
  }
  .m-toc {
    position: static;
    max-height: none;
    padding: 0;
    overflow: visible;
  }
  .m-toc__title {
    display: none;
  }
  .m-toc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--steel-200);
    background: #fff;
    color: var(--ink-950);
    font-weight: 800;
    cursor: pointer;
  }
  .m-toc__toggle .icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
  }
  .m-toc__toggle[aria-expanded="true"] .icon {
    transform: rotate(90deg);
  }
  /* Só recolhe quando o JavaScript está ativo; sem ele o índice fica sempre à mostra. */
  .js .m-toc__panel {
    display: none;
    margin-top: 10px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--steel-200);
    background: #fff;
  }
  .js .m-toc__panel.is-open {
    display: block;
  }
  .m-toc ol {
    grid-template-columns: 1fr 1fr;
  }
  .m-hero {
    padding-top: 108px;
  }
  .m-top {
    right: 16px;
  }
}
@media (max-width: 560px) {
  .m-toc ol {
    grid-template-columns: 1fr;
  }
  .m-chapter__head {
    gap: 14px;
  }
  .m-chapter__num {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    border-radius: 14px;
  }
  .m-support {
    padding: 22px;
  }
}

/* ---------- Impressão / PDF ---------- */
@media print {
  .nav,
  .m-hero .m-search,
  .m-hero .m-quick,
  .m-toc,
  .m-top,
  .fab,
  .footer,
  .m-anchor,
  .m-support .btn {
    display: none !important;
  }
  .m-hero {
    padding: 24px 0;
    color: var(--ink-950);
    background: none;
  }
  .m-hero::after {
    display: none;
  }
  .m-hero h1 em {
    color: var(--blueprint-700);
    -webkit-text-fill-color: currentColor;
  }
  .m-hero__lead,
  .m-hero__meta {
    color: var(--steel-600);
  }
  .m-shell {
    display: block;
    padding: 0;
  }
  .m-chapter {
    break-inside: auto;
    padding-bottom: 24px;
  }
  .m-chapter h2,
  .m-chapter h3 {
    break-after: avoid;
  }
  .m-figure,
  .m-callout,
  .m-flow__step,
  .m-faq details {
    break-inside: avoid;
  }
  .m-faq details > div {
    display: block !important;
  }
  .m-faq details:not([open]) > div {
    display: block;
  }
  .m-faq summary::after {
    display: none;
  }
  .m-support {
    color: var(--ink-950);
    background: var(--steel-50);
    box-shadow: none;
  }
  .m-support h3,
  .m-support p {
    color: var(--ink-950);
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: var(--steel-500);
    word-break: break-all;
  }
}
@page {
  margin: 16mm 14mm;
}
