/* Página "Como usar": prints do programa, marcadores numerados sobre a janela do Modo grupo e legendas. Sem estilo embutido (CSP style-src 'self'). */
.guide-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.guide-nav a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.guide-nav a:hover { background: var(--hover); }
.guide-nav a.hot { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.guide-section { padding: 52px 0; }
.guide-section .section-head h2 { scroll-margin-top: 80px; }
.guide-section + .guide-section { border-top: 1px solid var(--line); }
.guide-section.alt { background: var(--panel); }
.sub { margin: 34px 0 10px; font-size: 20px; scroll-margin-top: 80px; }
.sub:first-child { margin-top: 0; }

/* print de janela inteira */
.shot { margin: 0 0 22px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0e1014; }
.shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* destaque do Modo grupo: print à esquerda, legenda numerada à direita */
.shot-row { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 32px; align-items: start; }
.shot-col { position: sticky; top: 84px; }
.mk-wrap { position: relative; }
.mk-wrap img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mk { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font: 700 12px/22px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .45); pointer-events: none; }
.p1  { left: 72.6%; top: 4.6%; }
.p2  { left: 82.9%; top: 4.6%; }
.p3  { left: 94.0%; top: 4.6%; }
.p4  { left: 83.8%; top: 12.9%; }
.p5  { left: 75.6%; top: 29.0%; }
.p6  { left: 83.6%; top: 29.0%; }
.p7  { left: 92.3%; top: 29.0%; }
.p8  { left: 66.2%; top: 31.7%; }
.p9a { left: 47.9%; top: 46.9%; }
.p9b { left: 50.8%; top: 55.9%; }
.p10 { left: 93.6%; top: 73.3%; }
.p11 { left: 78.0%; top: 82.9%; }
.p12 { left: 89.8%; top: 82.9%; }
.p13 { left: 11.1%; top: 92.5%; }
.p14 { left: 26.7%; top: 92.5%; }
.p15 { left: 42.3%; top: 92.5%; }
.p16 { left: 57.9%; top: 92.5%; }
.p17 { left: 73.3%; top: 92.5%; }
.p18 { left: 88.7%; top: 92.5%; }

.legend-group { margin: 0 0 22px; }
.legend-group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.legend .n { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 12px; }
.legend strong { display: block; font-size: 15.5px; }
.legend p { margin: 0; color: var(--muted); font-size: 15px; }

/* cartões de funções (aba Espelho etc.) */
.fn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 14px 0 24px; }
.fn { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.section.alt .fn, .guide-section.alt .fn { background: var(--bg); }
.fn h3 { font-size: 16px; margin: 0 0 2px; }
.fn .tag { display: block; font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.fn p { margin: 0; color: var(--muted); font-size: 15px; }
.fn.wide { grid-column: 1 / -1; }

.tip { border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; margin: 16px 0; font-size: 15px; }
.tip.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.tip p { margin: 0; }
.tip strong { display: inline; }

.steps.cols-2 { grid-template-columns: repeat(2, 1fr); }
.steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
.kbd { display: inline-block; min-width: 26px; text-align: center; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--panel); font: 600 13px ui-monospace, Consolas, monospace; }
.two-shots { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 32px; align-items: start; }

@media (max-width: 980px) { .steps.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .shot-row { grid-template-columns: 1fr; }
  .shot-col { position: static; max-width: 380px; margin: 0 auto 8px; }
  .fn-grid { grid-template-columns: 1fr; }
  .two-shots { grid-template-columns: 1fr; }
  .guide-section { padding: 38px 0; }
}
@media (max-width: 640px) { .steps.cols-4, .steps.cols-2 { grid-template-columns: 1fr; } .mk { width: 18px; height: 18px; font-size: 10px; line-height: 18px; } }
.center { text-align: center; }
.lead-gap { margin: 8px 0 22px; }

/* destaque na página inicial */
.showcase { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: 40px; align-items: center; }
.showcase h2 { margin: 10px 0 10px; }
.showcase .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.showcase-img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } .showcase-img { max-width: 320px; margin: 0 auto; } }
.two-shots { margin-top: 30px; }

/* nada pode alargar a coluna no celular (a chave em <code> não quebrava) */
.steps > li, .fn, .legend li > div, .shot-row > *, .two-shots > *, .showcase > * { min-width: 0; }
.steps li, .fn, .legend p, .tip, .fn p { overflow-wrap: anywhere; }
.steps code { white-space: normal; word-break: break-all; }
