/**
 * MonTal · Dataryon — estilos para documentos HTML estáticos (escopo, proposta, manual, comercial).
 * Mesmo padrão visual do GCT documents, com paleta MonTal (#0071e3).
 * Carregar Plus Jakarta Sans no <head> do HTML.
 */

:root {
  --gct-doc-ink: #0f172a;
  --gct-doc-muted: #64748b;
  --gct-doc-primary: #0071e3;
  --gct-doc-primary-bright: #2997ff;
  --gct-doc-accent: #5ac8fa;
  --gct-doc-border: #e2e8f0;
  --gct-doc-surface: #f8fafc;
  --gct-doc-font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body.gct-doc {
  margin: 0;
  padding: 2rem 1.25rem 3rem;
  font-family: var(--gct-doc-font);
  font-size: 11pt;
  line-height: 1.55;
  color: var(--gct-doc-ink);
  background: linear-gradient(180deg, #f1f5f9 0%, #fff 12%, #fff 100%);
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.gct-doc__masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gct-doc-border);
}

.gct-doc__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--gct-doc-primary);
}

.gct-doc__brand .gct-logo-hive {
  width: 1.45rem;
  height: auto;
  display: block;
  object-position: left center;
  clip-path: inset(0 46% 0 0);
  -webkit-clip-path: inset(0 46% 0 0);
  filter: contrast(1.28) brightness(0.97) drop-shadow(0 0 0.65px rgba(30, 41, 59, 0.35));
}

.gct-doc__brand .gct-logo-hive[src$=".svg"] {
  clip-path: none;
  -webkit-clip-path: none;
}

.gct-doc__badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.14), rgba(90, 200, 250, 0.08));
  color: #0058b0;
  border: 1px solid rgba(0, 113, 227, 0.28);
}

.gct-doc__tagline {
  flex: 1 1 100%;
  font-size: 0.8rem;
  color: var(--gct-doc-muted);
  margin: 0;
}

@media (min-width: 640px) {
  .gct-doc__tagline {
    flex: 1 1 auto;
    text-align: right;
  }
}

.gct-doc .capa {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--gct-doc-border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.gct-doc .capa::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #0071e3, #2997ff, #5ac8fa);
}

.gct-doc .capa h1 {
  border: none;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gct-doc-ink);
  margin: 0 0 0.5rem;
}

.gct-doc .capa .meta {
  color: var(--gct-doc-muted);
  margin-top: 0.65em;
  font-size: 0.95rem;
}

.gct-doc h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--gct-doc-primary);
  padding-bottom: 0.4rem;
  margin-top: 1.75rem;
  color: var(--gct-doc-ink);
}

.gct-doc h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.35rem;
  color: var(--gct-doc-ink);
}

.gct-doc h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 1.1rem;
  color: #334155;
}

.gct-doc p {
  margin: 0.5rem 0;
}

.gct-doc table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.85rem 0;
  font-size: 10pt;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gct-doc-border);
}

.gct-doc th,
.gct-doc td {
  border: 1px solid var(--gct-doc-border);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.gct-doc th {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  font-weight: 600;
  color: #334155;
  font-size: 0.82rem;
}

.gct-doc ul,
.gct-doc ol {
  margin: 0.5rem 0;
  padding-left: 1.35rem;
}

.gct-doc li {
  margin: 0.35rem 0;
}

.gct-doc .note {
  background: var(--gct-doc-surface);
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--gct-doc-primary-bright);
  margin: 1rem 0;
  font-size: 10pt;
  border-radius: 0 10px 10px 0;
  color: #334155;
}

.gct-doc .destaque {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(124, 58, 237, 0.05));
  padding: 1rem 1.15rem;
  border-radius: 12px;
  margin: 1rem 0;
  border: 1px solid rgba(6, 182, 212, 0.22);
}

.gct-doc code {
  background: #f1f5f9;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
  color: #0e7490;
}

.gct-doc hr {
  border: none;
  border-top: 1px solid var(--gct-doc-border);
  margin: 1.75rem 0;
}

.gct-doc .revisao {
  font-size: 9.5pt;
  color: var(--gct-doc-muted);
  margin-top: 1.25rem;
}

.gct-doc .toc {
  margin: 0.75rem 0;
}

.gct-doc .toc li {
  margin-bottom: 0.35rem;
}

.gct-doc footer.gct-doc-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gct-doc-border);
  font-size: 9pt;
  color: var(--gct-doc-muted);
  text-align: center;
}

/* Manual de uso — capturas de tela, passos e FAQ */
.gct-doc .gct-manual-figure {
  margin: 1rem 0 1.35rem;
  padding: 0;
  border: 1px solid var(--gct-doc-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.07);
}

.gct-doc .gct-manual-figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.gct-doc .gct-manual-figure figcaption {
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  color: var(--gct-doc-muted);
  background: var(--gct-doc-surface);
  border-top: 1px solid var(--gct-doc-border);
  line-height: 1.45;
}

.gct-doc .gct-steps {
  list-style: none;
  padding-left: 0;
  margin: 0.65rem 0 1rem;
  counter-reset: gctstep;
}

.gct-doc .gct-steps > li {
  counter-increment: gctstep;
  position: relative;
  padding-left: 2.15rem;
  margin: 0.55rem 0;
}

.gct-doc .gct-steps > li::before {
  content: counter(gctstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5rem;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(124, 58, 237, 0.1));
  color: #0e7490;
}

.gct-doc .gct-kv {
  margin: 0.5rem 0 1rem;
  font-size: 10pt;
}

.gct-doc .gct-kv dt {
  font-weight: 600;
  color: #334155;
  margin-top: 0.45rem;
}

.gct-doc .gct-kv dd {
  margin: 0.15rem 0 0 0;
  padding-left: 0;
  color: var(--gct-doc-ink);
}

.gct-doc .gct-faq details {
  margin: 0.45rem 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--gct-doc-border);
  border-radius: 10px;
  background: #fff;
}

.gct-doc .gct-faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--gct-doc-ink);
  list-style-position: outside;
}

.gct-doc .gct-faq details[open] summary {
  margin-bottom: 0.45rem;
  color: #0e7490;
}

.gct-doc .gct-faq details p {
  margin: 0.35rem 0 0;
  font-size: 10pt;
  color: #334155;
}

.gct-doc .gct-faq-heading {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 1.35rem 0 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(6, 182, 212, 0.35);
  color: #0e7490;
}

.gct-doc .gct-faq-heading:first-of-type {
  margin-top: 0.25rem;
}

.gct-doc .gct-faq details ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  font-size: 10pt;
  color: #334155;
}

.gct-doc .gct-faq details li {
  margin: 0.25rem 0;
}

.gct-doc .gct-palette-swatch {
  display: inline-block;
  width: 2.35rem;
  height: 1.4rem;
  border-radius: 5px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.gct-doc table.gct-palette-table td:nth-child(2) {
  width: 3.5rem;
  text-align: center;
}

.gct-doc table.gct-palette-table td:nth-child(3) code {
  font-size: 0.88em;
  white-space: nowrap;
}

@media print {
  body.gct-doc {
    background: #fff;
    padding: 1.2cm;
    max-width: none;
  }

  .gct-doc .capa {
    box-shadow: none;
    break-inside: avoid;
  }

  .gct-doc .gct-manual-figure {
    break-inside: avoid;
    box-shadow: none;
  }
}
