:root{
  --tm-navy:#102a56;
  --tm-navy-deep:#071831;
  --tm-blue:#275b97;
  --tm-green:#3c9b69;
  --tm-green-soft:#eaf6ef;
  --tm-accent:#d66936;
  --tm-text:#252c3a;
  --tm-muted:#667085;
  --tm-soft-blue:#eef4fa;
  --tm-soft-warm:#f7f3ee;
  --tm-border:#d9e1ea;
}
.tm-page{background:#f7f9fc;color:var(--tm-text)}
.tm-page .site-header{position:sticky;top:0}
.tm-shell{width:min(1160px,calc(100% - 40px));margin:auto}
.tm-hero{padding:72px 0 58px;background:radial-gradient(circle at 75% 20%,rgba(60,155,105,.24),transparent 35%),linear-gradient(135deg,#071831,#102a56);color:#fff}
.tm-hero-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr);gap:52px;align-items:center}
.tm-kicker{margin:0 0 10px;color:#8ed29f;text-transform:uppercase;font-size:.78rem;font-weight:850;letter-spacing:.14em}
.tm-hero h1{margin:0 0 14px;font-size:clamp(2.7rem,6vw,5rem)}
.tm-hero .tm-lead{max-width:760px;margin:0 0 12px;color:#edf3fb;font-size:1.18rem}
.tm-hero-logo{max-width:270px;justify-self:center;padding:18px;border-radius:28px;background:#fff;box-shadow:0 24px 60px rgba(0,0,0,.27)}
.tm-hero-logo img{width:100%;height:auto;border-radius:18px}
.tm-hero-actions,.tm-card-actions,.tm-end-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.tm-link-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.72rem 1rem;border:1px solid #b7c5d9;border-radius:9px;color:var(--tm-navy);background:#fff;text-decoration:none;font-weight:800}
.tm-link-button.primary{color:#fff;border-color:var(--tm-green);background:var(--tm-green)}
.tm-content-section{padding:68px 0 84px}
.tm-section-head{max-width:760px;margin-bottom:32px}
.tm-section-head h2{margin-bottom:10px}
.tm-section-head p{color:var(--tm-muted)}
.tm-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.tm-content-card{display:flex;flex-direction:column;min-height:100%;padding:25px;border:1px solid #e0e6ee;border-radius:18px;background:#fff;box-shadow:0 14px 35px rgba(16,42,86,.08)}
.tm-card-series{color:var(--tm-accent);font-size:.78rem;font-weight:850;letter-spacing:.06em}
.tm-content-card h3{margin:10px 0;color:var(--tm-navy);font-size:1.5rem}
.tm-content-card p{color:#596579}
.tm-content-card .tm-card-actions{margin-top:auto;padding-top:12px}
.tm-pilot-note{margin-top:28px;padding:18px 20px;border-left:4px solid var(--tm-green);border-radius:12px;background:var(--tm-green-soft);color:#315844}
.tm-breadcrumb{padding:22px 0 0;font-size:.9rem;color:var(--tm-muted)}
.tm-breadcrumb a{color:var(--tm-blue);text-decoration:none}
.tm-article-shell{width:min(960px,calc(100% - 40px));margin:auto;padding:34px 0 80px}
.tributomap-article{--navy:#102a56;--blue:#275b97;--accent:#d66936;--text:#252c3a;--muted:#667085;--soft-blue:#eef4fa;--soft-warm:#f7f3ee;--border:#d9e1ea;max-width:920px;margin:0 auto;padding:8px 0 24px;color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:17px;line-height:1.72}
.tributomap-article *{box-sizing:border-box}
.tributomap-article header{margin-bottom:1.1rem}
.tributomap-article .tm-series{display:inline-block;margin-bottom:.7rem;padding:.42rem .78rem;border-radius:999px;background:var(--soft-warm);color:var(--accent);font-weight:800;font-size:.9rem;letter-spacing:.03em}
.tributomap-article h1,.tributomap-article h2,.tributomap-article h3{color:var(--navy);line-height:1.22}
.tributomap-article h1{font-size:clamp(2rem,5vw,3.15rem);margin:0 0 .55rem}
.tributomap-article .tm-subtitle{margin:0;color:var(--muted);font-size:1.16rem}
.tributomap-article .tm-meta{display:flex;gap:.5rem;flex-wrap:wrap;margin:0 0 1.7rem;color:var(--muted);font-size:.92rem}
.tributomap-article h2{margin:2.35rem 0 .7rem;font-size:1.55rem;scroll-margin-top:100px}
.tributomap-article h3{margin:1.4rem 0 .5rem;font-size:1.12rem}
.tributomap-article p{margin:.78rem 0}
.tributomap-article .tm-list{margin:.65rem 0 1rem;padding-left:1.4rem}
.tributomap-article .tm-list li{margin:.35rem 0}
.tributomap-article a{color:var(--blue);text-decoration-thickness:1px;text-underline-offset:2px}
.tributomap-article .tm-toc{margin:1.4rem 0 2rem;padding:1rem 1.1rem;border:1px solid var(--border);border-radius:12px;background:#fbfcfe}
.tributomap-article .tm-toc strong{display:block;margin-bottom:.45rem;color:var(--navy)}
.tributomap-article .tm-toc ol{columns:2;column-gap:2rem;margin:.2rem 0 0;padding-left:1.35rem}
.tributomap-article .tm-toc li{break-inside:avoid;margin:.25rem 0}
.tributomap-article .tm-callout{margin:1.2rem 0;padding:1rem 1.1rem;border-left:5px solid var(--accent);border-radius:9px;background:var(--soft-warm)}
.tributomap-article .tm-callout-blue{border-left-color:var(--blue);background:var(--soft-blue)}
.tributomap-article .tm-callout strong{display:block;margin-bottom:.35rem;color:var(--navy)}
.tributomap-article .tm-table-wrap{width:100%;overflow-x:auto;margin:1.1rem 0 1.5rem}
.tributomap-article .tm-table{width:100%;min-width:560px;border-collapse:collapse;font-size:.96rem}
.tributomap-article .tm-table th,.tributomap-article .tm-table td{border:1px solid var(--border);padding:.72rem .78rem;text-align:left;vertical-align:top}
.tributomap-article .tm-table th{background:var(--soft-blue);color:var(--navy);font-weight:750}
.tributomap-article .tm-table tbody tr:nth-child(even) td{background:#fcfcfd}
.tributomap-article .tm-end-card{display:grid;grid-template-columns:1.3fr .7fr;gap:22px;margin:2.6rem 0 0;padding:22px;border:1px solid #cfe2d6;border-radius:16px;background:var(--tm-green-soft)}
.tributomap-article .tm-end-card strong{color:var(--tm-navy);font-size:1.2rem}
.tributomap-article .tm-end-card p{margin:.35rem 0 0}
.tributomap-article .tm-end-actions{align-content:start;margin-top:0}
.tributomap-article .tm-business-bridge{display:flex;justify-content:space-between;gap:18px;margin-top:16px;padding:15px 18px;border-radius:12px;background:#071831;color:#dce6f5;font-size:.9rem}
.tributomap-article .tm-business-bridge a{color:#e5b75f;font-weight:800}
.tm-footer-note{font-size:.82rem;color:#aebbd0}
@media(max-width:900px){.tm-hero-grid{grid-template-columns:1fr}.tm-hero-logo{max-width:220px;justify-self:start}.tm-article-grid{grid-template-columns:1fr}.tributomap-article .tm-end-card{grid-template-columns:1fr}}
@media(max-width:720px){.tm-shell,.tm-article-shell{width:min(100% - 28px,1160px)}.tm-hero{padding:54px 0 44px}.tributomap-article{font-size:16px}.tributomap-article .tm-toc ol{columns:1}.tributomap-article .tm-table{font-size:.9rem}.tributomap-article .tm-business-bridge{flex-direction:column}.tm-link-button{width:100%}}


/* TSC #005 — capa e matriz de alíquotas — 2026-09-18 */
.tributomap-article .tm-hero-figure{
  width:100%;
  max-width:800px;
  margin:1.15rem auto 2rem;
}
.tributomap-article .tm-hero-figure img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 16px 38px rgba(16,42,86,.10);
}
.tributomap-article .tm-rate-matrix{
  margin:1.15rem 0 1.65rem;
}
.tributomap-article .tm-matrix-intro{
  margin-bottom:.85rem;
}
.tributomap-article .tm-matrix-legend{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:.75rem 0 .9rem;
}
.tributomap-article .tm-rate-key{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--navy);
  font-size:.84rem;
  font-weight:750;
}
.tributomap-article .tm-rate-swatch{
  min-width:32px;
  height:28px;
  padding:0 6px;
  border-radius:6px;
  display:inline-grid;
  place-items:center;
  border:1px solid var(--border);
  font-size:.72rem;
  font-weight:850;
}
.tributomap-article .tm-rate-swatch.rate-7,
.tributomap-article .tm-rate-7{
  background:#dceeff;
  color:#0a4f9e;
}
.tributomap-article .tm-rate-swatch.rate-12,
.tributomap-article .tm-rate-12{
  background:#eef1f5;
  color:#334155;
}
.tributomap-article .tm-rate-swatch.rate-internal,
.tributomap-article .tm-rate-internal{
  background:#0f78bd;
  color:#fff;
}
.tributomap-article .tm-matrix-wrap{
  width:100%;
  overflow:auto;
  margin:0 0 1rem;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 26px rgba(16,42,86,.06);
  overscroll-behavior-inline:contain;
}
.tributomap-article .tm-rate-table{
  width:max-content;
  min-width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:.72rem;
  line-height:1;
}
.tributomap-article .tm-rate-table caption{
  caption-side:bottom;
  padding:12px 14px;
  text-align:left;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.45;
}
.tributomap-article .tm-rate-table th,
.tributomap-article .tm-rate-table td{
  min-width:31px;
  height:31px;
  padding:.18rem .28rem;
  border-right:1px solid #d9e1ea;
  border-bottom:1px solid #d9e1ea;
  text-align:center;
  vertical-align:middle;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.tributomap-article .tm-rate-table thead th{
  background:#0d4d91;
  color:#fff;
  font-weight:850;
}
.tributomap-article .tm-rate-table thead .tm-destination-heading{
  background:#0f8ecb;
  letter-spacing:.08em;
}
.tributomap-article .tm-rate-table tbody th{
  position:sticky;
  left:0;
  z-index:2;
  background:#0d4d91;
  color:#fff;
  font-weight:850;
}
.tributomap-article .tm-rate-table .tm-corner{
  left:0;
  z-index:4;
}
.tributomap-article .tm-rate-table td{
  font-weight:750;
}
.tributomap-article .tm-rate-table tr:last-child > *{
  border-bottom:0;
}
.tributomap-article .tm-rate-table tr > *:last-child{
  border-right:0;
}
.tributomap-article .tm-matrix-note{
  margin-top:1rem;
}
@media(max-width:720px){
  .tributomap-article .tm-hero-figure{
    margin-top:.9rem;
  }
  .tributomap-article .tm-rate-table{
    font-size:.68rem;
  }
  .tributomap-article .tm-rate-table th,
  .tributomap-article .tm-rate-table td{
    min-width:29px;
    height:29px;
    padding:.14rem .22rem;
  }
}


/* TSC #005 — matriz v2: cabeçalho limpo — 2026-09-18 */
/*
  O cabeçalho vertical sticky anterior usava um offset fixo e criava uma
  faixa vazia/sobreposição. Na v2 a tabela rola apenas horizontalmente;
  o cabeçalho permanece no fluxo normal e só a coluna de origem fica
  presa à esquerda.
*/
.tributomap-article .tm-matrix-wrap{
  overflow-x:auto;
  overflow-y:hidden;
  border-radius:14px;
  background:#fff;
  -webkit-overflow-scrolling:touch;
}

.tributomap-article .tm-rate-table{
  table-layout:fixed;
  font-size:.70rem;
  line-height:1;
}

.tributomap-article .tm-rate-table th,
.tributomap-article .tm-rate-table td{
  min-width:30px;
  width:30px;
  height:30px;
  padding:.16rem .22rem;
}

/* Cabeçalho superior sem deslocamento vertical */
.tributomap-article .tm-rate-table thead th{
  position:static;
  top:auto;
  z-index:auto;
  color:#fff;
  font-weight:850;
}

/* Faixa DESTINO */
.tributomap-article .tm-rate-table thead tr:first-child th{
  height:38px;
  background:#0f8ecb;
}

/* Canto ORIGEM */
.tributomap-article .tm-rate-table thead tr:first-child .tm-corner{
  position:sticky;
  left:0;
  z-index:3;
  width:64px;
  min-width:64px;
  background:#0d4d91;
  letter-spacing:.02em;
}

/* Linha com as siglas das UFs */
.tributomap-article .tm-rate-table thead tr:nth-child(2) th{
  height:30px;
  background:#0d4d91;
}

/* Coluna das UFs de origem: fixa apenas na rolagem horizontal */
.tributomap-article .tm-rate-table tbody th{
  position:sticky;
  left:0;
  z-index:2;
  width:64px;
  min-width:64px;
  background:#0d4d91;
  color:#fff;
  font-weight:850;
  box-shadow:1px 0 0 #d9e1ea;
}

.tributomap-article .tm-rate-table td{
  font-weight:750;
}

/* Primeira linha e primeira coluna têm separação visual clara */
.tributomap-article .tm-rate-table thead tr:nth-child(2) th,
.tributomap-article .tm-rate-table tbody th{
  border-color:#d5deea;
}

@media(max-width:720px){
  .tributomap-article .tm-rate-table{
    font-size:.67rem;
  }

  .tributomap-article .tm-rate-table th,
  .tributomap-article .tm-rate-table td{
    min-width:30px;
    width:30px;
    height:29px;
    padding:.13rem .2rem;
  }

  .tributomap-article .tm-rate-table thead tr:first-child .tm-corner,
  .tributomap-article .tm-rate-table tbody th{
    width:58px;
    min-width:58px;
  }

  .tributomap-article .tm-rate-table thead th{
    top:auto;
  }
}


/* Blogger migration — lote 002 — 2026-09-18 */
.tributomap-article .tm-hero-figure-narrow{
  max-width:520px;
}
.tributomap-article .tm-source-content{
  margin-top:.4rem;
}
.tributomap-article .tm-source-content > :first-child{
  margin-top:0;
}
.tributomap-article .tm-source-content ul,
.tributomap-article .tm-source-content ol{
  margin:.65rem 0 1rem;
  padding-left:1.4rem;
}
.tributomap-article .tm-source-content li{
  margin:.35rem 0;
}
.tributomap-article .tm-source-content blockquote{
  margin:1rem 0;
  padding:.8rem 1rem;
  border-left:4px solid var(--blue);
  background:var(--soft-blue);
  border-radius:8px;
}


/* Reforma Tributária #002 — componentes editoriais — 2026-09-18 */
.tributomap-article .tm-formula{
  margin:1.15rem 0;
  padding:1.05rem 1rem;
  text-align:center;
  font-size:1.2rem;
  font-weight:800;
  color:var(--navy);
  background:var(--soft-blue);
  border:1px solid var(--border);
  border-radius:12px;
}
.tributomap-article .tm-disclaimer{
  margin-top:1.8rem;
  padding:1rem 1.1rem;
  background:#fafbfc;
  border:1px solid var(--border);
  border-radius:10px;
  color:var(--muted);
  font-size:.93rem;
}
.tributomap-article .tm-source-list{
  margin:1rem 0;
  padding-left:1.4rem;
}
