/* ═════════════════════════════════════════════════════════════════════════════
   Design System Universal — Post Guide
   andrecosta.ia.br · 2026
   Factory.ai Dark Mode — Technical-Architectural Minimal
   Aplicável a todos os posts do blog via layout: layouts/post-guide.njk
   ═════════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS UNIVERSAIS ─────────────────────────────────────────────────────── */
.post-guide {
  /* Dark Mode Tokens — Herda do root mas pode sobrescrever para contexto editorial */
  --pg-bg: #000000;
  --pg-surface: #0C0C0D;
  --pg-surface-1: #161618;
  --pg-surface-2: #212124;
  --pg-fg: #FFFFFF;
  --pg-muted: #A1A1AA;
  --pg-muted-light: #71717A;
  --pg-border: #27272A;
  --pg-soft-border: #18181B;
  --pg-accent: #D45628;
  --pg-accent-dark: #B8471E;
  --pg-accent-soft: #4A2011;

  /* Tipografia — Zero serifas */
  --serif: var(--font-display);   /* Inter, NOT Instrument Serif */
  --sans: var(--font-body);       /* Inter */
  --mono: var(--font-mono);       /* JetBrains Mono */

  /* Espaçamento — Sharp corners */
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 6px;

  /* Layout */
  background: var(--pg-bg);
  color: var(--pg-fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

html.light-mode .post-guide {
  --pg-bg: #FAF9F6;
  --pg-surface: #F2F0EA;
  --pg-surface-1: #FFFFFF;
  --pg-surface-2: #F2F0EA;
  --pg-fg: #141413;
  --pg-muted: #87867F;
  --pg-muted-light: #B5B4B0;
  --pg-border: #C9C5BF;
  --pg-soft-border: #E7E5E4;
  --pg-accent: #D45628;
  --pg-accent-dark: #B8471E;
  --pg-accent-soft: #F5E6E0;
}

/* ── RESET PARA CONFLITOS ──────────────────────────────────────────────────── */
.post-guide h1, .post-guide h2, .post-guide h3,
.post-guide h4, .post-guide p, .post-guide ul,
.post-guide ol, .post-guide li, .post-guide table,
.post-guide pre, .post-guide code, .post-guide blockquote {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* ── TIPOGRAFIA ───────────────────────────────────────────────────────────── */
.post-guide h1 {
  font-family: var(--sans);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--pg-fg);
  margin: 0 0 20px;
}

.post-guide h2 {
  font-family: var(--sans);
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--pg-fg);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--pg-border);
}

/* Desktop: mais espaço entre seções do post */
@media (min-width: 1024px) {
  .post-guide h2 {
    margin-top: 72px;
  }

  .post-guide h3 {
    margin-top: 48px;
  }

  .post-guide p {
    margin-bottom: 20px;
  }

  .post-guide .diagram-container {
    margin: 40px 0 44px;
    padding: 40px;
  }

  .post-guide pre {
    margin: 32px 0;
    padding: 24px 28px;
  }

  .post-guide .table-wrap {
    margin: 32px 0 36px;
  }

  .post-guide blockquote {
    margin: 32px 0;
    padding: 16px 0 16px 24px;
  }

  .post-guide hr {
    margin: 64px 0;
  }
}

.post-guide h3 {
  font-family: var(--sans);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pg-fg);
  margin: 40px 0 14px;
}

.post-guide h4 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pg-fg);
  margin: 32px 0 12px;
}

.post-guide p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--pg-muted);
  margin-bottom: 16px;
  max-width: 720px;
}

.post-guide img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 32px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.post-guide strong {
  color: var(--pg-fg);
  font-weight: 600;
}

.post-guide em {
  font-style: italic;
  color: var(--pg-muted);
}

.post-guide a {
  color: var(--pg-accent);
  text-decoration: underline;
  text-decoration-color: var(--pg-accent-soft);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.post-guide a:hover {
  color: var(--pg-fg);
  text-decoration-color: var(--pg-accent);
}

.post-guide code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--pg-surface-1);
  color: var(--pg-accent);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--pg-border);
}

/* ── LISTAS ────────────────────────────────────────────────────────────────── */
.post-guide ul, .post-guide ol {
  margin: 0 0 20px 0;
  padding-left: 28px;
  max-width: 720px;
}

.post-guide li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--pg-muted);
  margin-bottom: 8px;
}

.post-guide li::marker {
  color: var(--pg-accent);
}

/* ── BLOCKQUOTE ───────────────────────────────────────────────────────────── */
.post-guide blockquote {
  border-left: 2px solid var(--pg-accent);
  padding: 12px 0 12px 20px;
  margin: 24px 0;
  color: var(--pg-muted);
  font-style: italic;
  max-width: 720px;
}

.post-guide blockquote p {
  color: var(--pg-muted);
  margin: 0;
}

/* ── HR ───────────────────────────────────────────────────────────────────── */
.post-guide hr {
  border: none;
  border-top: 1px dashed var(--pg-border);
  margin: 48px 0;
}

/* ── DIAGRAMAS ────────────────────────────────────────────────────────────── */
.post-guide .diagram-container {
  margin: 32px 0 36px;
  border: 1px dashed var(--pg-border);
  border-radius: var(--radius);
  background: var(--pg-surface);
  padding: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.post-guide .diagram-container:hover {
  border-color: var(--pg-muted-light);
  border-style: solid;
}

/* Indicador de "toque para ampliar" */
.post-guide .diagram-container::after,
.post-guide .table-wrap::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: var(--pg-fg);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cpolyline points='9 21 3 21 3 15'%3E%3C/polyline%3E%3Cline x1='21' y1='3' x2='14' y2='10'%3E%3C/line%3E%3Cline x1='3' y1='21' x2='10' y2='14'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.post-guide .diagram-container:hover::after,
.post-guide .table-wrap:hover::after {
  opacity: 0.7;
  transform: scale(1);
}

/* Neutralizar <p> fantasmas dentro de SVGs */
.post-guide .diagram-container p {
  margin: 0;
  display: contents;
}

.post-guide svg.diagram {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Classes utilitárias para SVG — Dark mode */
.post-guide svg.diagram .box {
  fill: var(--pg-surface-1);
  stroke: var(--pg-border);
  stroke-width: 1.5;
}

.post-guide svg.diagram .box.clay {
  fill: var(--pg-surface-1);
  stroke: var(--pg-accent);
}

.post-guide svg.diagram .box.olive {
  fill: var(--pg-surface-1);
  stroke: #6B8C4E;
}

.post-guide svg.diagram .box.oat {
  fill: var(--pg-surface-1);
  stroke: var(--pg-border);
}

.post-guide svg.diagram .box.accent {
  fill: var(--pg-accent-soft);
  stroke: var(--pg-accent);
}

.post-guide svg.diagram .box.dark {
  fill: var(--pg-fg);
  stroke: var(--pg-fg);
}

.post-guide svg.diagram .box.dark text,
.post-guide svg.diagram .box.dark tspan {
  fill: var(--pg-bg);
}

.post-guide svg.diagram .arrow {
  stroke: var(--pg-muted-light);
  stroke-width: 1.5;
  fill: none;
}

.post-guide svg.diagram .arrow.clay {
  stroke: var(--pg-accent);
}

.post-guide svg.diagram .arrow.olive {
  stroke: #6B8C4E;
}

.post-guide svg.diagram .arrow.dashed {
  stroke-dasharray: 5 4;
}

.post-guide svg.diagram text,
.post-guide svg.diagram tspan {
  font-family: var(--mono);
  fill: var(--pg-fg);
}

.post-guide svg.diagram text.label-small,
.post-guide svg.diagram tspan.label-small {
  font-size: 11px;
  fill: var(--pg-muted);
}

.post-guide svg.diagram text.accent-text,
.post-guide svg.diagram tspan.accent-text {
  fill: var(--pg-accent);
}

.post-guide svg.diagram text.olive-text,
.post-guide svg.diagram tspan.olive-text {
  fill: #6B8C4E;
}

.post-guide svg.diagram text.muted-text,
.post-guide svg.diagram tspan.muted-text {
  fill: var(--pg-muted-light);
}

.post-guide svg.diagram circle.dot-clay {
  fill: var(--pg-accent);
}

.post-guide svg.diagram circle.dot-olive {
  fill: #6B8C4E;
}

.post-guide svg.diagram circle.dot-muted {
  fill: var(--pg-muted-light);
}

.post-guide svg.diagram circle.dot-oat {
  fill: var(--pg-surface-1);
}

/* Arrowhead marker fills for class-based markers */
.post-guide svg.diagram .arrowhead-default {
  fill: var(--pg-muted-light);
}

.post-guide svg.diagram .arrowhead-clay {
  fill: var(--pg-accent);
}

.post-guide svg.diagram .arrowhead-olive {
  fill: #6B8C4E;
}

/* ── PREMIUM TECHNICAL DIAGRAM SYSTEM ────────────────────────────────────── */

/* 1. Dot Grid background for diagram container */
.post-guide .diagram-container.with-grid {
  background-image: radial-gradient(var(--pg-soft-border) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  background-color: var(--pg-surface);
  border: 1px solid var(--pg-border);
}

/* 2. Elevated card box designs */
.post-guide svg.diagram .box {
  fill: var(--pg-surface-1);
  stroke: var(--pg-border);
  stroke-width: 1.5px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-guide svg.diagram g:hover .box {
  stroke: var(--pg-muted);
  filter: drop-shadow(0 4px 8px rgba(20, 20, 19, 0.05));
}

/* Active node styles */
.post-guide svg.diagram .box.active-node {
  stroke: var(--pg-accent);
  stroke-width: 1.5px;
  fill: var(--pg-accent-soft);
}

.post-guide svg.diagram g:hover .box.active-node {
  stroke: var(--pg-accent);
  filter: drop-shadow(0 4px 10px var(--pg-accent-soft));
}

/* macOS Window dots styles */
.post-guide svg.diagram .mac-dot-red {
  fill: #ff5f56;
}
.post-guide svg.diagram .mac-dot-yellow {
  fill: #ffbd2e;
}
.post-guide svg.diagram .mac-dot-green {
  fill: #27c93f;
}

/* Blinking live status indicators */
.post-guide svg.diagram .status-pulse-green {
  fill: #27c93f;
  animation: pulse-green 1.8s infinite alternate ease-in-out;
}

@keyframes pulse-green {
  0% {
    opacity: 0.35;
    filter: drop-shadow(0 0 1px #27c93f);
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 4px #27c93f);
  }
}

/* Flow setas micro-animations */
.post-guide svg.diagram .arrow.flowing {
  stroke-dasharray: 6 4;
  animation: arrow-flow 1.2s linear infinite;
}

@keyframes arrow-flow {
  to {
    stroke-dashoffset: -20;
  }
}

/* ── CODE BLOCKS ──────────────────────────────────────────────────────────── */
.post-guide pre {
  background: #141413; /* Always dark for code blocks */
  color: #e8e6e1;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  border-radius: var(--radius);
  border: 1px solid var(--pg-soft-border);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 32px 0;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
}

.post-guide pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
  display: block;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  white-space: pre;
  word-wrap: normal;
  overflow-wrap: normal;
}

/* Mobile: permitir quebra de linha em code blocks para evitar scroll horizontal */
@media (max-width: 640px) {
  .post-guide pre code {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* Syntax highlighting — paleta universal */
.post-guide pre .kw { color: #c084fc; }   /* keyword */
.post-guide pre .fn { color: #67e8f9; }   /* function */
.post-guide pre .str { color: #a3e635; }  /* string */
.post-guide pre .cm { color: #9ca3af; font-style: italic; } /* comment */
.post-guide pre .num { color: #fbbf24; }  /* number */
.post-guide pre .cls { color: #f472b6; }  /* class */
.post-guide pre .var { color: #93c5fd; }  /* variable */
.post-guide pre .dim { color: #6b7280; }  /* dimmed */

/* Copy button */
.post-guide .copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--pg-border);
  color: var(--pg-muted);
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.04em;
}

.post-guide pre:hover .copy-btn {
  opacity: 1;
}

.post-guide .copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--pg-muted);
  border-style: solid;
  color: var(--pg-fg);
}

/* ── TABELAS ──────────────────────────────────────────────────────────────── */
.post-guide .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px dashed var(--pg-border);
  margin: 24px 0 28px;
  background: var(--pg-surface);
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.post-guide .table-wrap:hover {
  border-color: var(--pg-muted-light);
  border-style: solid;
}

.post-guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  display: table;
}

.post-guide table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.post-guide table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pg-muted);
  padding: 12px 16px;
  background: var(--pg-surface-1);
  border-bottom: 1px dashed var(--pg-border);
  font-weight: 500;
  white-space: nowrap;
}

.post-guide table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--pg-soft-border);
  color: var(--pg-muted);
  line-height: 1.6;
}

.post-guide table tbody tr:nth-child(even) {
  background: var(--pg-surface-1);
}

.post-guide table tbody tr:hover {
  background: var(--pg-surface-2);
}

.post-guide table tbody tr:last-child td {
  border-bottom: none;
}

/* ── MODAL / LIGHTBOX ─────────────────────────────────────────────────────── */
.post-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.post-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.post-modal-content {
  position: relative;
  background: var(--pg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--pg-border);
  max-width: 95vw;
  max-height: 90vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-modal-overlay.is-open .post-modal-content {
  transform: scale(1) translateY(0);
}

.post-modal-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed var(--pg-border);
  color: var(--pg-fg);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.post-modal-close:hover,
.post-modal-close:active {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--pg-muted);
  border-style: solid;
}

.post-modal-hint {
  text-align: center;
  font-size: 12px;
  color: var(--pg-muted);
  margin-bottom: 12px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* Conteúdo clonado dentro do modal */
.post-modal-content .diagram-container {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 24px;
}

.post-modal-content svg.diagram {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: 100%;
  height: auto;
}

.post-modal-content .table-wrap {
  overflow: visible;
  border: none;
  margin: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
}

/* ── PROGRESSIVE DISCLOSURE ───────────────────────────────────────────────── */
.post-guide details {
  margin: 24px 0;
  border: 1px dashed var(--pg-border);
  border-radius: var(--radius);
  background: var(--pg-surface);
  overflow: hidden;
}

.post-guide details summary {
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--pg-fg);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.post-guide details summary::before {
  content: '▸';
  color: var(--pg-accent);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.post-guide details[open] summary::before {
  transform: rotate(90deg);
}

.post-guide details summary:hover {
  background: var(--pg-surface-1);
}

.post-guide details > *:not(summary) {
  padding: 0 20px 20px;
}

/* ── RELATED POSTS ────────────────────────────────────────────────────────── */
.post-guide .related-posts {
  margin: 48px 0 32px;
  padding: 24px;
  border: 1px dashed var(--pg-border);
  border-radius: var(--radius);
  background: var(--pg-surface);
}

.post-guide .related-posts h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 16px;
}

.post-guide .related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-guide .related-posts li {
  margin-bottom: 12px;
}

.post-guide .related-posts a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--pg-fg);
  font-weight: 500;
}

.post-guide .related-posts a::before {
  content: '→';
  color: var(--pg-accent);
}

.post-guide .related-posts a:hover {
  color: var(--pg-accent);
}

html.light-mode .terminal span {
  color: #E25A28; /* Brighter orange for dark terminal background */
}
html.light-mode .terminal .cursor {
  background: #E25A28;
}

.post-guide .related-posts .rel-desc {
  font-size: 14px;
  color: var(--pg-muted);
  font-weight: 400;
  margin-left: 24px;
}

/* ── POST-NAV ────────────────────────────────────────────────────────────── */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px dashed var(--pg-border);
}

.post-nav a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-nav a:hover {
  color: var(--pg-accent);
}

/* ── PAGE HEADER (blog post header) ───────────────────────────────────────── */
.page-header {
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 6vw, 64px);
  border-bottom: 1px dashed var(--border);
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--glow-accent) 0%, transparent 80%);
}

.page-header .post-title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 20px;
  max-width: 860px;
  color: var(--fg);
}

.page-header .post-description {
  margin-top: 24px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 760px;
  font-weight: 400;
}

.page-header .post-tags {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── MOBILE ───────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .post-guide {
    font-size: 16px;
  }

  .post-guide h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .post-guide h2 {
    font-size: clamp(22px, 6vw, 26px);
    margin-top: 36px;
  }

  .post-guide h3 {
    font-size: clamp(18px, 5vw, 20px);
  }

  .post-guide p {
    font-size: 16px;
    line-height: 1.7;
  }

  .post-guide .diagram-container {
    padding: 16px;
    overflow-x: visible;
  }

  .post-guide svg.diagram {
    min-width: auto;
    width: 100%;
  }

  .post-guide svg.diagram text,
  .post-guide svg.diagram tspan {
    font-size: 10px;
  }

  .post-guide svg.diagram text.label-small,
  .post-guide svg.diagram tspan.label-small {
    font-size: 9px;
  }

  /* Mostrar indicador de toque sempre em mobile */
  .post-guide .diagram-container::after,
  .post-guide .table-wrap::after {
    opacity: 0.6;
    transform: scale(1);
  }

  .post-guide pre {
    padding: 16px;
    font-size: 12.5px;
  }

  .post-guide .copy-btn {
    opacity: 1;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .post-guide table {
    font-size: 13px;
  }

  .post-guide table th,
  .post-guide table td {
    padding: 10px 12px;
  }

  .post-modal-overlay {
    padding: 12px;
  }

  .post-modal-content {
    max-width: 100vw;
    max-height: 92vh;
    padding: 16px;
    border-radius: var(--radius);
  }
}
