/* Usa seus globais já fornecidos (Open Sans, cores, navbar, drawer, etc.) */

/* ====== Container da página ====== */
.wrap{
  max-width: 1200px;
  margin: 18px auto 40px;
  padding: 0 16px;
}

.page-head .crumbs{
  font-size: 13px;
  color: #475569;
  display:flex; align-items:center; gap:8px;
}
.page-head h1{ 
  margin: 6px 0 4px;
  font-size: 26px; 
  color: #7B2C3A; 
}
.page-head .subtitle{ margin:0; color:#475569; }

/* ====== Shell 3 colunas (mesma vibe do print) ====== */
.tool-shell{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1.1fr 1.4fr 1.2fr;
  gap: 16px;
}

.pane{
  background:#111827;
  border:1px solid rgba(148,163,184,.20);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
  padding: 14px;
  color:#e5e7eb;
  min-height: 420px;
}

.pane-title{
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  color:#e5e7eb;
}

/* ====== Menu lateral ====== */
.tool-menu{ display:flex; flex-direction:column; gap:8px; }
.tool-item{
  appearance:none; border:1px solid rgba(148,163,184,.30);
  background:#0f172a;
  color:#e5e7eb;
  padding:12px 12px;
  border-radius:10px;
  text-align:left; cursor:pointer;
  display:flex; align-items:center; gap:10px;
  transition:transform .08s ease, box-shadow .15s ease, border-color .15s ease;
}
.tool-item:hover{ transform: translateY(-1px); }
.tool-item.is-active{
  outline: none;
  border-color: #F97316;
  box-shadow: 0 0 0 2px rgba(249,115,22,.25) inset;
}

/* ====== Formulário ====== */
.pane-form .field{ display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.pane-form label{ font-size:14px; color:#cbd5e1; }
.pane-form input,
.pane-form select,
.pane-form textarea{
  background:#0b1220;
  border:1px solid rgba(148,163,184,.30);
  color:#e5e7eb;
  border-radius:10px;
  padding:12px 12px;
  font-size:15px;
  outline:none;
}
.pane-form input:focus,
.pane-form select:focus,
.pane-form textarea:focus{
  border-color:#F97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,.25);
}
.hint{ color:#94a3b8; font-size:12px; }

.actions{ display:flex; gap:10px; margin-top:6px; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  border-radius: 10px;
  padding: 10px 14px;
  font-size:14px;
  line-height:1;
  border:1px solid rgba(148,163,184,.30);
  background:#0b1220;
  color:#e5e7eb;
  cursor:pointer;
}
.btn:hover{ filter: brightness(1.08); }
.btn.primary{ background:#F97316; border-color:#F97316; color:#0f172a; font-weight:800; }
.btn.secondary{ background:#1f2937; }
.btn.ghost{ background:transparent; }
.btn.small{ padding:8px 10px; font-size:13px; }

/* ====== Resultado ====== */
#resultRoot { display:flex; flex-direction:column; gap:10px; margin-top:8px; }

.card {
  display: grid;
  grid-template-columns: 1fr;
  background-color: #10141c;
  border: 1px solid #1f2533;
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.4;
  transition: all 0.25s ease;
  color: #f0f4ff;
}
.card h3{
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  display:flex; align-items:center; gap:6px;
  color:#F97316;
}
.card .kv{
  margin:0; display:grid; grid-template-columns: 1fr; gap:8px 12px;
}
.card .kv li{ list-style:none; display:flex; justify-content:space-between; }
.card .kv span{ color:#94a3b8; }
.card .chart-ghost{
  height:140px; border:1px dashed #273045; border-radius:8px;
  display:flex; align-items:center; justify-content:center; color:#94a3b8;
}

.loading { padding: 14px; text-align:center; font-size: 0.95rem; color: #ffb366; }
.error {
  background-color: #2c1a1a;
  border: 1px solid #b94141;
  color: #ffdede;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.9rem;
}
.placeholder {
  padding: 10px;
  color: #99a4b7;
  font-size: 0.9rem;
  text-align: center;
  border: 1px dashed #2b3545;
  border-radius: 6px;
  background-color: #0e131d;
}

/* Conversor de cores — swatch */
.swatch {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  border: 1px solid #2c3545;
  margin-top: 8px;
}


/* Glossário em 2 colunas */
.glossario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 1.25rem;
  padding: .75rem 1rem;
  border: 1px dashed var(--border, #3333);
  border-radius: .5rem;
  font-size: .95rem;
}
.glossario h4 {
  grid-column: 1 / -1;
  margin: 0 0 .25rem 0;
  font-weight: 600;
}
.glossario .item {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}
.glossario .sigla { font-weight: 600; }
.glossario .nome { opacity: .9; }



/* =========================================
   BLOCO 3 – EXPLICAÇÃO DAS 3 COLUNAS
   ========================================= */

.conv-explain {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 16px;
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
}

.conv-explain__header {
  margin-bottom: 18px;
}

.conv-explain__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 4px;
}

.conv-explain h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
  color: #7B2C3A;
}

.conv-explain__header p {
  margin: 0;
}

.conv-explain__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.conv-explain__item {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  padding: 14px 16px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.conv-explain__item h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #111827;
}

.conv-explain__item p {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #4B5563;
}

/* Responsivo: 1 coluna no mobile */
@media (max-width: 900px) {
  .conv-explain__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   BLOCO 4 – BLOG / DICAS DA FERRAMENTA
   ========================================= */

.conv-blog {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 0 16px;
  color: #4B5563;
}

.conv-blog > h2 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #7B2C3A;
}

.conv-blog__item {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.conv-blog__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
  border-color: #F97316;
}

.conv-blog__tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #F97316;
  font-size: 11px;
  color: #F97316;
}

.conv-blog__body h3 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: #111827;
}

.conv-blog__body p {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #4B5563;
}

.conv-blog__meta {
  margin-top: 4px;
  font-size: 11px;
  color: #9CA3AF;
}

.conv-blog__meta span::before {
  content: "•";
  margin: 0 4px;
}

.conv-blog__meta span:first-child::before {
  content: "";
  margin: 0;
}



/* --------------------------------------------- */
/*  BLOCO: Ajuste da imagem do artigo de CNPJ    */
/*  Tamanho fixo: 1536 x 1024 px                 */
/* --------------------------------------------- */

.converte-article__image-wrapper {
    width: 1536px;           /* largura fixa  */
    height: 1024px;          /* altura fixa   */
    object-fit: cover;       /* garante que a imagem se ajusta sem distorcer */
    object-position: center; /* mantém o foco central */
    display: block;
    margin: 0 auto;          /* centraliza horizontalmente no bloco */
    border-radius: 8px;      /* opcional (padrão dos cards OneToolBox) */
    background-color: #E5E7EB; /* fundo cinza claro para evitar "flash" ao carregar */
    border: 1px solid #9CA3AF; /* borda metálica padrão OT */
}
 

.converte-article__image {
  width: 100%;
  max-width: 650px;
  height: 380px;   /* defina o tamanho que quiser */
  object-fit: cover; /* corta sem distorcer */
  object-position: center;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

/* Em telas estreitas, cai pra 1 coluna */
@media (max-width: 560px) {
  .glossario { grid-template-columns: 1fr; }
}


/* ====== Responsivo ====== */
@media (max-width: 1024px){
  .tool-shell{ grid-template-columns: 1fr; }
  .pane{ min-height: 0; }
}
