/* Consulta ICMS-PA — minimal, responsive stylesheet --------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.55; color: #1a1a1a; background: #fafafa;
}
a { color: #0a66c2; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top bar -------------------------------------------------------------- */
.topbar { background: #1a3454; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.brand { color: #fff; display: flex; flex-direction: column; line-height: 1.1; }
.brand:hover { text-decoration: none; opacity: .9; }
.brand-name { font-weight: 700; font-size: 18px; }
.brand-sub { font-size: 11px; opacity: .7; }
.topnav { display: flex; gap: 18px; flex: 1; }
.topnav a { color: rgba(255,255,255,.85); padding: 6px 4px; font-size: 14px; }
.topnav a.active, .topnav a:hover { color: #fff; border-bottom: 2px solid #f4c84c; }
.version-badge {
  font-size: 12px; padding: 4px 10px; border-radius: 12px;
  background: #2a4768; color: #f4c84c; font-weight: 600;
}
.version-badge.dev { background: #9b3a2c; color: #ffe; }
.version-badge.official { background: #f4c84c; color: #1a3454; }

/* Main ----------------------------------------------------------------- */
.main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }

.crumbs { font-size: 13px; color: #666; margin-bottom: 16px; }
.crumbs a { color: #666; }

/* Hero / index --------------------------------------------------------- */
.hero { padding: 24px 0 32px; border-bottom: 1px solid #e6e6e6; margin-bottom: 32px; }
.hero h1 { font-size: 32px; margin: 0 0 8px; }
.hero p { color: #555; margin: 0 0 18px; }
.hero-search { display: flex; gap: 8px; max-width: 600px; }
.hero-search input { flex: 1; padding: 12px 14px; font-size: 16px; border: 1px solid #cfd6e0; border-radius: 6px; }
.hero-search button { padding: 12px 22px; font-size: 16px; background: #1a3454; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.hero-search button:hover { background: #244873; }

/* Scopes index --------------------------------------------------------- */
.scopes h2 { font-size: 18px; margin: 0 0 14px; color: #1a3454; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.scope-card {
  display: flex; flex-direction: column; padding: 14px 16px; background: #fff;
  border: 1px solid #e6e6e6; border-radius: 8px; color: #1a1a1a;
  transition: border-color .15s, box-shadow .15s;
}
.scope-card:hover { text-decoration: none; border-color: #1a3454; box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.scope-card-extra { background: #fff8e6; }
.scope-name { font-weight: 600; font-size: 15px; }
.scope-count { font-size: 13px; color: #666; }

/* Scope filter (busca dentro de um Livro/Anexo) ----------------------- */
.scope-filter {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid #cfd6e0; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.scope-filter input[type="search"] {
  flex: 1; min-width: 240px;
  border: none; outline: none;
  font-size: 15px; padding: 6px 4px;
  background: transparent;
}
.scope-filter input[type="search"]:focus { background: #fafafa; }
.scope-filter button {
  background: #f3f5f9; color: #555; border: 1px solid #cfd6e0;
  padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.scope-filter button:hover { background: #e6ebf3; }
.scope-filter-count {
  font-size: 12px; color: #1a3454; font-weight: 600;
  padding: 4px 10px; background: #fff8e6; border-radius: 10px;
}

/* Article list --------------------------------------------------------- */
.scope-title { font-size: 26px; margin: 0 0 4px; }
.scope-meta { color: #666; font-size: 13px; margin: 0 0 18px; }
.article-list { list-style: none; padding: 0; margin: 0; }
.article-item {
  background: #fff; border: 1px solid #e6e6e6; border-radius: 8px;
  padding: 14px 16px; margin-bottom: 10px;
}
.article-item.revogado { background: #f6f6f6; opacity: .8; }
.article-link { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.article-link:hover { text-decoration: none; }
.article-number { font-weight: 700; color: #1a3454; }
.article-label { font-style: italic; color: #5d4d10; }
.article-context { font-size: 12px; color: #888; }
.article-preview { color: #444; margin: 6px 0 0; font-size: 14px; }
.badge { display: inline-block; padding: 2px 8px; font-size: 11px; border-radius: 10px; }
.badge-rev { background: #ffe1d6; color: #8b2510; }

/* Banner de retorno (vindo de /ncm, /busca, /escopo, etc.) ------------- */
.back-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 14px;
  background: linear-gradient(90deg, #f37726 0%, #e26b1c 100%);
  color: #fff; border-radius: 8px;
  font-weight: 600; box-shadow: 0 2px 6px rgba(243,119,38,.25);
}
.back-banner:hover { text-decoration: none; filter: brightness(1.07); }
.back-banner .back-arrow { font-size: 22px; line-height: 1; }
.back-banner .back-label { font-size: 14px; }
.back-banner .back-hint  { font-size: 11px; opacity: .85; margin-left: auto; font-weight: 400; }

/* Article page --------------------------------------------------------- */
.article-page { background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; padding: 24px 28px; }
.article-header h1 { font-size: 26px; margin: 0 0 8px; }
.art-label { font-style: italic; font-weight: 500; color: #5d4d10; }
.article-context-bar { font-size: 13px; color: #666; margin-bottom: 18px; }
.article-context-bar .ctx + .ctx::before, .article-context-bar .ctx-scope + .ctx::before { content: " · "; color: #ccc; }
.article-legend { display: flex; gap: 16px; font-size: 12px; padding: 8px 12px; background: #f3f5f9; border-radius: 6px; margin-bottom: 16px; }
.lg-black { color: #1a1a1a; } .lg-green { color: #1f7a3a; } .lg-red { color: #b03020; }

.article-body { font-size: 15px; }
.article-body .ln { margin: 0 0 6px; padding: 0; }
.ln-black { color: #1a1a1a; }
.ln-green { color: #1f7a3a; }
.ln-red   { color: #b03020; font-weight: 500; }

.article-decretos { margin-top: 28px; padding-top: 18px; border-top: 1px solid #e6e6e6; }
.article-decretos h2 { font-size: 16px; color: #1a3454; margin: 0 0 10px; }
.article-decretos ul { list-style: none; padding: 0; }
.article-decretos li { background: #f9fafc; border-left: 3px solid #1a3454; padding: 8px 12px; margin-bottom: 8px; border-radius: 0 6px 6px 0; }
.decreto-snippet { font-size: 13px; color: #555; font-style: italic; margin-top: 4px; }

.article-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #e6e6e6; flex-wrap: wrap; }
.article-nav a { font-size: 14px; }
.nav-up { color: #666; }
.nav-spacer { flex: 0 0 1px; }

/* Article structured table (Cesta Básica etc.) ------------------------- */
.article-body-structured .caput-clean { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.art-table-title { color: #1a3454; font-size: 15px; margin: 14px 0 8px; }
.art-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.art-table th, .art-table td { padding: 8px 10px; text-align: left; vertical-align: top; border: 1px solid #e1e6ed; }
.art-table thead th { background: #1a3454; color: #fff; font-weight: 600; }
.art-table tbody tr:nth-child(even) { background: #f7f8fa; }
.art-table .cell-item { font-weight: 600; color: #1a3454; width: 56px; text-align: center; }
.art-table .cell-codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #34466b; min-width: 110px; }
.art-table .cell-codes div { line-height: 1.4; }
.art-table .cell-desc { line-height: 1.45; }
.art-note { font-size: 12px; color: #666; font-style: italic; margin: 10px 0 0; padding: 8px 12px; background: #f7f4e6; border-left: 3px solid #d4af37; }

.raw-text-toggle { margin-top: 24px; padding: 12px 14px; background: #f7f8fa; border-radius: 6px; }
.raw-text-toggle summary { cursor: pointer; color: #1a3454; font-weight: 600; font-size: 14px; }
.raw-text-toggle[open] summary { margin-bottom: 12px; }

/* Apêndice tables ------------------------------------------------------ */
.ap-intro { font-size: 13px; color: #444; padding: 10px 14px; background: #f3f5f9; border-radius: 6px; margin-bottom: 14px; }
.ap1-table { font-size: 12px; }
.ap1-table th, .ap1-table td { padding: 6px 8px; border: 1px solid #e1e6ed; vertical-align: top; }
.ap1-table thead th { background: #1a3454; color: #fff; text-align: center; }
.ap1-table thead th.grp-a { background: #2a5588; }
.ap1-table thead th.grp-b { background: #5d4d10; }
.ap1-table tbody td.grp-a { background: #f1f6fc; }
.ap1-table tbody td.grp-b { background: #fbf8e8; }
.ap1-table tbody tr:nth-child(even) td.grp-a { background: #e6effa; }
.ap1-table tbody tr:nth-child(even) td.grp-b { background: #f5efd8; }
.ap1-table .cell-item { font-weight: 600; color: #1a3454; text-align: center; }
.ap1-table .cell-codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #34466b; }
.ap1-table .cell-pct { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; text-align: right; font-weight: 600; }
.ap1-table .cell-desc { font-size: 12px; line-height: 1.4; min-width: 240px; }

/* Original Apêndice tables (keep these for /apendice/ii etc.) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cat-card { display: flex; flex-direction: column; padding: 12px 14px; background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; color: #1a1a1a; }
.cat-card:hover { text-decoration: none; border-color: #1a3454; }
.cat-name { font-weight: 600; font-size: 14px; }
.cat-count { font-size: 12px; color: #666; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; }
.ap-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ap-table th, .ap-table td { padding: 8px 10px; text-align: left; vertical-align: top; }
.ap-table thead th { background: #1a3454; color: #fff; font-weight: 600; position: sticky; top: 0; }
.ap-table tbody tr:nth-child(even) { background: #f7f8fa; }
.ap-table tbody tr:hover { background: #eef3f9; }

/* Search --------------------------------------------------------------- */
.search-form-grid {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid #e6e6e6; border-radius: 10px;
  padding: 18px 20px; margin-bottom: 22px;
}
.search-row { display: flex; flex-direction: column; gap: 6px; }
.search-label { font-size: 13px; font-weight: 600; color: #1a3454; }
.search-form-grid input[type="search"] {
  padding: 10px 12px; font-size: 15px;
  border: 1px solid #cfd6e0; border-radius: 6px; background: #fafbfd;
}
.search-form-grid input[type="search"]:focus { outline: 2px solid #1a3454; outline-offset: -1px; background: #fff; }
.search-hint { margin: 0; font-size: 12px; color: #666; }
.search-row-actions { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; border-top: 1px dashed #e6e6e6; }
.search-row-actions .search-label { margin-right: 4px; }
.search-form-grid select {
  padding: 10px 12px; font-size: 15px;
  border: 1px solid #cfd6e0; border-radius: 6px; background: #fff;
  min-width: 180px;
}
.search-btn {
  padding: 10px 22px; font-size: 15px; font-weight: 600;
  background: #1a3454; color: #fff; border: none; border-radius: 6px; cursor: pointer;
}
.search-btn:hover { background: #244873; }
.search-clear { font-size: 13px; color: #888; padding: 8px 12px; }
.search-clear:hover { color: #1a3454; }

/* Search-term highlight ------------------------------------------------ */
mark {
  background: #fff3a0;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
  box-shadow: 0 0 0 1px #f0c900 inset;
}
.article-number mark, .article-label mark { background: #ffe066; }

.search-summary {
  background: #fff8e6; padding: 10px 14px; border-radius: 6px;
  font-size: 14px; color: #444; margin-bottom: 14px;
}
.search-summary em { color: #1a3454; font-style: normal; font-weight: 600; }
.search-summary .muted { color: #888; font-size: 12px; }
.badge-trunc {
  display: inline-block; background: #ffe1d6; color: #8b2510;
  padding: 2px 8px; border-radius: 10px; font-size: 11px; margin: 0 6px;
}

.lead { color: #444; }
.empty-state { color: #888; font-style: italic; padding: 18px; background: #f3f5f9; border-radius: 6px; }

/* Card de destaque "Consulta NCM" no índice (página inicial) ----------- */
.scope-card-ncm {
  position: relative;
  background: linear-gradient(135deg, #f37726 0%, #e8530e 60%, #c9357d 100%);
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(243,119,38,.32);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  overflow: hidden;
}
.scope-card-ncm::before {
  /* glare diagonal animado, bem sutil, para destacar */
  content: '';
  position: absolute; inset: -50% -10% auto auto; width: 60%; height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(20deg) translateX(120%);
  animation: ncmShine 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ncmShine {
  0%   { transform: rotate(20deg) translateX(120%); }
  60%  { transform: rotate(20deg) translateX(-160%); }
  100% { transform: rotate(20deg) translateX(-160%); }
}
.scope-card-ncm:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 22px rgba(243,119,38,.45);
  filter: brightness(1.05);
}
.scope-card-ncm .scope-name { color: #fff; font-size: 17px; font-weight: 700; }
.scope-card-ncm .scope-count { color: rgba(255,255,255,.92); font-size: 13px; }
.scope-card-flag {
  position: absolute; top: 8px; right: 8px;
  background: #fff; color: #c9357d;
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* Consulta NCM v2 — replica do desktop --------------------------------- */
.ncm2-form { background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.ncm2-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 8px 10px; border-radius: 6px; }
.ncm2-row:last-child { margin-bottom: 0; }
.ncm2-row-label { min-width: 110px; font-weight: 700; font-size: 13px; color: #333; }
.ncm2-row input { flex: 1; padding: 9px 12px; font-size: 15px; border: 1px solid #cfd6e0; border-radius: 4px; background: #fff; }
.ncm2-row input:focus { outline: 2px solid #1a3454; outline-offset: -1px; }
.ncm2-btn { padding: 9px 18px; font-size: 14px; font-weight: 600; color: #fff; border: none; border-radius: 4px; cursor: pointer; min-width: 130px; }
.ncm2-btn:hover { filter: brightness(1.1); }

.ncm2-row-ncm  { background: #fff8e0; }
.ncm2-row-desc { background: #e8efff; }
.ncm2-row-cest { background: #e6f7ec; }
.ncm2-btn-ncm  { background: #1a3454; }
.ncm2-btn-desc { background: #1a3454; }
.ncm2-btn-cest { background: #1f7a3a; }

.ncm2-hint { font-size: 12px; color: #555; margin: 0 0 12px; padding: 6px 10px; }

.ncm2-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ncm2-action { display: inline-block; padding: 7px 14px; font-size: 13px; font-weight: 600; border-radius: 4px; cursor: pointer; user-select: none; }
.ncm2-action-clear { background: #f9d6d3; color: #7a2310; border: 1px solid #e9b7b1; }
.ncm2-action-clear:hover { text-decoration: none; background: #f5c0bb; }
.ncm2-action-help  { background: #d8e6ff; color: #1a3454; border: 1px solid #b0c8eb; }
.ncm2-action-help:hover { text-decoration: none; background: #c4d7f2; }
.ncm2-action-print { background: #fde4b8; color: #7a4a10; border: 1px solid #e8c47e; }
.ncm2-action-print:hover { background: #f6d28d; }
.ncm2-action-cadastrar { background: #c9e7c9; color: #1d5d1d; border: 1px solid #a8d6a8; }
.ncm2-action-cadastrar:hover { background: #b8dcb8; text-decoration: none; }
.ncm2-action-manuais   { background: #e6d7f3; color: #4a1e7a; border: 1px solid #d2b8eb; }
.ncm2-action-manuais:hover { background: #d8c2eb; text-decoration: none; }
.ncm2-action-spacer { flex: 1; }

/* Preâmbulo: decretos + notas Vide ------------------------------------- */
.badge-count {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #1a3454; color: #fff; font-size: 12px; font-weight: 700;
  margin-left: 6px; vertical-align: middle;
}
.preambulo-section { margin-bottom: 30px; }
.preambulo-filter {
  display: flex; gap: 10px; align-items: center;
  background: #fff; padding: 8px 12px;
  border: 1px solid #cfd6e0; border-radius: 6px; margin: 12px 0;
}
.preambulo-filter input {
  flex: 1; border: none; outline: none; padding: 6px 4px;
  font-size: 14px; background: transparent;
}

.preambulo-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
  background: #f7f8fa; padding: 14px; border: 1px solid #e6e6e6; border-radius: 8px;
}
.dec-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: #fff; border: 1px solid #cfd6e0;
  border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: #1a3454; transition: all .12s;
}
.dec-pill:hover { background: #1a3454; color: #fff; border-color: #1a3454; text-decoration: none; }
.dec-pill-count {
  background: rgba(26,52,84,.1); padding: 1px 5px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
}
.dec-pill:hover .dec-pill-count { background: rgba(255,255,255,.18); color: #fff; }

.vide-list { list-style: none; padding: 0; margin: 0; }
.vide-item {
  background: #fff; border-left: 3px solid #1f7a3a;
  padding: 10px 14px; margin-bottom: 8px; border-radius: 0 6px 6px 0;
}
.vide-text { margin: 0 0 6px; }
.vide-refs { display: flex; flex-wrap: wrap; gap: 6px; }
.ref-pill {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ref-dec { background: #e8efff; color: #1a3454; border: 1px solid #b0c8eb; }
a.ref-dec:hover { background: #1a3454; color: #fff; text-decoration: none; }
.ref-in   { background: #e6f7ec; color: #145025; }
.ref-port { background: #fff8e0; color: #5d4d10; }
.ref-lei  { background: #f9d6d3; color: #8b1a10; }
.ref-conv { background: #e6d7f3; color: #4a1e7a; }
.ref-mp   { background: #fde4b8; color: #7a4a10; }

/* Histórico: timeline de versões + tabela de atualizações --------------- */
.hist-section { margin-bottom: 26px; }
.version-timeline { list-style: none; padding: 0; margin: 0; }
.version-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 14px; background: #fff; border: 1px solid #e6e6e6;
  border-radius: 8px; margin-bottom: 8px;
}
.version-item.is-current { border-color: #f4c84c; background: linear-gradient(180deg, #fff8e0 0%, #fff 60%); box-shadow: 0 2px 6px rgba(244,200,76,.2); }
.version-marker {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; font-size: 18px; color: #1a3454;
  background: #f3f5f9; padding: 8px 14px; border-radius: 6px; min-width: 92px; text-align: center;
}
.version-item.is-current .version-marker { background: #f4c84c; color: #1a3454; }
.version-body { flex: 1; }
.version-note { margin-top: 4px; color: #555; font-size: 13px; }

.hist-stat {
  display: inline-block; padding: 3px 10px; margin-right: 4px;
  background: #f3f5f9; border-radius: 999px; font-size: 12px;
}

/* Atualização da legislação -------------------------------------------- */
.upgrade-status, .upgrade-action, .upgrade-last, .upgrade-history { margin-bottom: 24px; }
.upgrade-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; margin: 12px 0;
}
.upgrade-grid > div { display: flex; flex-direction: column; padding: 8px 12px; background: #fff; border: 1px solid #e6e6e6; border-radius: 6px; }
.upgrade-grid .lbl { font-size: 11px; color: #666; }
.upgrade-grid .val { font-size: 16px; font-weight: 700; color: #1a3454; }

.upgrade-checklist { margin: 0 0 16px; padding-left: 22px; }
.upgrade-checklist li { margin-bottom: 8px; }
.upgrade-checklist code { background: #f3f5f9; padding: 2px 6px; border-radius: 3px; font-size: 12px; }

.btn-big { padding: 12px 28px !important; font-size: 16px !important; }

.upgrade-diff-grid { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 18px; }
.diff-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #fff; border: 1px solid #e6e6e6; border-radius: 6px; }
.diff-name { flex: 1; font-weight: 600; color: #1a3454; }
.diff-vals { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.diff-delta { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 8px; border-radius: 999px; font-weight: 700; min-width: 56px; text-align: center; background: #f3f5f9; }
.diff-delta.pos { background: #d3f0d3; color: #1d5d1d; }
.diff-delta.neg { background: #f9d6d3; color: #8b1a10; }

.upgrade-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.summary-card { padding: 14px 16px; background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; }
.summary-card h3 { margin: 0 0 6px; color: #1a3454; font-size: 14px; }
.summary-card details { margin-top: 8px; font-size: 12px; }
.summary-card details summary { cursor: pointer; color: #1a3454; }
.summary-card details ul { margin: 6px 0 0; padding-left: 18px; max-height: 200px; overflow: auto; }

.job-output {
  background: #1a1a1a; color: #c8e3ff; padding: 14px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  border-radius: 8px; max-height: 480px; overflow: auto; white-space: pre-wrap;
  line-height: 1.4;
}

/* Comentários da equipe no artigo --------------------------------------- */
.article-comentarios { margin-top: 28px; padding-top: 18px; border-top: 1px solid #e6e6e6; }
.article-comentarios h2 { color: #1a3454; font-size: 16px; margin: 0 0 12px; }
.comentario {
  background: #fffceb; border-left: 4px solid #d4af37; padding: 10px 14px;
  margin-bottom: 10px; border-radius: 0 6px 6px 0;
}
.comentario-meta { font-size: 12px; color: #666; margin-bottom: 6px; }
.comentario-autor { font-weight: 700; color: #1a3454; }
.comentario-data { color: #888; }
.comentario-text { white-space: pre-wrap; line-height: 1.5; }

/* Origem badges (gerenciar registros) */
.origem-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
}
.origem-planilha { background: #e6ebf3; color: #1a3454; }
.origem-manual   { background: #d3f0d3; color: #1d5d1d; }
.origem-editado  { background: #fde4b8; color: #7a4a10; }
.origem-excluido { background: #f9d6d3; color: #8b1a10; }

.ncm-table tr.is-overridden td { background: #fff8e0 !important; }
.ncm-table tr.is-deleted td { background: #f9d6d3 !important; opacity: .65; text-decoration: line-through; text-decoration-color: rgba(139,26,16,.4); }
.ncm-table tr.is-deleted .cell-actions { opacity: 1; text-decoration: none; }

/* Marca M de "Manual" + linha highlight nos resultados */
.badge-manual {
  display: inline-block; min-width: 18px; padding: 1px 5px;
  background: #1d5d1d; color: #fff; border-radius: 4px;
  font-size: 10px; font-weight: 700; margin-left: 4px;
}
.ncm-table tr.is-manual td { background: #f0fbef !important; box-shadow: inset 3px 0 0 #1d5d1d; }
.ncm-table tr.is-manual:hover td { background: #e3f5e1 !important; }

/* Tipo no título do form de cadastro */
.ncm-form-tipo {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 13px; vertical-align: middle; margin-left: 8px; font-weight: 700;
}
.ncm-form-tipo.tipo-consolidado { background: #c9e7c9; color: #1d5d1d; }
.ncm-form-tipo.tipo-isencao     { background: #e6d7f3; color: #4a1e7a; }
.ncm-admin-form { max-width: 920px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; }
.form-row-full { grid-column: 1 / -1; }
.form-row textarea { padding: 10px 12px; font-size: 14px; border: 1px solid #cfd6e0; border-radius: 6px; font-family: inherit; resize: vertical; }
.form-row select { padding: 10px 12px; font-size: 14px; border: 1px solid #cfd6e0; border-radius: 6px; background: #fff; }
.form-row-radios { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 10px 14px; background: #f3f5f9; border-radius: 6px; }
.form-row-radios .form-row-label { font-weight: 700; color: #1a3454; }
.form-row-radios label { display: flex; align-items: center; gap: 6px; font-weight: 500; }

.ncm2-summary {
  background: #e8f0fa; border: 1px solid #c0d0e8; border-radius: 6px;
  padding: 12px 16px; margin-bottom: 14px;
}
.ncm2-summary-title { font-size: 14px; color: #1a3454; font-weight: 600; margin-bottom: 8px; text-align: center; }
.ncm2-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ncm2-summary-grid > div { display: flex; flex-direction: column; }
.ncm2-summary-grid .lbl { font-size: 11px; color: #666; }
.ncm2-summary-grid .val { font-size: 14px; font-weight: 600; color: #1a3454; padding: 4px 8px; background: #fff; border: 1px solid #cfd6e0; border-radius: 4px; min-height: 26px; }

.ncm2-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid #1a3454; margin-bottom: 0; }
.ncm2-tab {
  padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: #f0f3f8; color: #444; border: 1px solid #cfd6e0; border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.ncm2-tab:hover { background: #e0e7f0; color: #1a3454; }
.ncm2-tab.active { background: #1a3454; color: #fff; border-color: #1a3454; }

.ncm2-tabfilter {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #f7f8fa; padding: 8px 12px; border: 1px solid #cfd6e0; border-top: none;
  border-radius: 0 0 6px 6px;
}
.ncm2-tabfilter label { font-size: 13px; font-weight: 600; color: #1a3454; }
.ncm2-tabfilter select { padding: 6px 8px; font-size: 13px; border: 1px solid #cfd6e0; border-radius: 4px; background: #fff; }
.ncm2-tabfilter input { flex: 1; min-width: 200px; padding: 6px 10px; font-size: 13px; border: 1px solid #cfd6e0; border-radius: 4px; }
.ncm2-filter-count { font-size: 12px; color: #666; }

.ncm2-pane { display: none; padding: 12px 0; }
.ncm2-pane.active { display: block; }

.ncm2-table { font-size: 11px; }
.ncm2-table th, .ncm2-table td { padding: 5px 7px; }

.leg-btn {
  display: inline-block; padding: 4px 10px; font-size: 11px; font-weight: 700;
  background: #f37726; color: #fff; border-radius: 4px; white-space: nowrap;
}
.leg-btn:hover { background: #e26b1c; text-decoration: none; }

/* Botão "Imprimir" universal -------------------------------------------- */
.page-head-with-print {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 14px; flex-wrap: wrap;
}
.page-head-with-print h1 { margin: 0 0 6px; }

.print-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 13px; font-weight: 600;
  background: #fde4b8; color: #7a4a10; border: 1px solid #e8c47e;
  border-radius: 6px; cursor: pointer; line-height: 1;
  transition: background .15s;
}
.print-btn:hover { background: #f6d28d; }
.print-btn-icon { font-size: 14px; }

/* Botão "Exportar Excel" — verde estilo MS Office */
.export-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 13px; font-weight: 600;
  background: #1d6f42; color: #fff !important; border: 1px solid #145025;
  border-radius: 6px; cursor: pointer; line-height: 1; text-decoration: none;
  transition: background .15s;
}
.export-btn:hover { background: #145025; text-decoration: none; }
.export-btn-icon { font-size: 14px; }

/* Action verde para o /ncm */
.ncm2-action-export { background: #d3f0d3; color: #1d5d1d; border: 1px solid #a8d6a8; }
.ncm2-action-export:hover { background: #b8dcb8; text-decoration: none; }

.page-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Regras de impressão — esconde toda a "chrome" do site e deixa só o
 * conteúdo principal visível ao imprimir. ------------------------------ */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .footer { background: #fff !important; border-top: none !important; margin: 0 !important; }

  /* Esconde menus, formulários, botões e elementos interativos
   * (mantém .footer-copyright visível para o aviso de direitos autorais) */
  .topbar, .footer-inner, .crumbs, .back-banner,
  .scope-filter, .search-form-grid, .search-form,
  .hero-search,
  .ncm2-form, .ncm2-actions, .ncm2-tabs, .ncm2-tabfilter,
  .ncm-form, .ncm-input-row, .ncm2-prio,
  .article-nav, .leg-btn, .raw-text-toggle,
  .admin-toolbar > div, .admin-form, .admin-grid,
  .login-page, .login-form,
  .scope-filter, #scope-filter-input, #scope-filter-clear,
  .print-btn, .no-print {
    display: none !important;
  }

  /* Mostra apenas a aba ativa quando houver tabs */
  .ncm2-pane:not(.active) { display: none !important; }
  .ncm2-pane.active { display: block !important; }

  /* Tira sombras, gradientes e backgrounds caros — economiza tinta */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
  }

  .article-page { background: #fff !important; border: 1px solid #ccc !important; padding: 12px !important; }
  .article-item { background: #fff !important; border: 1px solid #ccc !important; page-break-inside: avoid; }

  /* Tabelas: borda forte para impressão */
  .ncm-table, .art-table, .ap-table, .ap1-table, .regime-legend-table {
    border-collapse: collapse !important;
  }
  .ncm-table th, .ncm-table td,
  .art-table th, .art-table td,
  .ap-table th, .ap-table td,
  .ap1-table th, .ap1-table td {
    border: 1px solid #888 !important;
  }
  .ncm-table thead th, .art-table thead th, .ap-table thead th, .ap1-table thead th {
    background: #d0d0d0 !important; color: #000 !important;
  }
  .ncm-table tbody tr:nth-child(even) td { background: #f5f5f5 !important; }

  /* Highlight de busca preserva visual mas mais sutil em P&B */
  mark { background: #ffff80 !important; color: #000 !important; box-shadow: none !important; padding: 0 1px; }

  /* Margens da página */
  .main { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .page-head-with-print { display: block !important; }

  /* Cabeçalhos compactos */
  h1 { font-size: 18px !important; margin: 0 0 8px !important; }
  h2 { font-size: 15px !important; margin: 8px 0 6px !important; }
  h3 { font-size: 13px !important; }

  /* Quebras de página */
  table, .article-page, .article-item { page-break-inside: avoid; }
  .ncm2-pane.active > .table-wrap { page-break-inside: auto; }

  /* Garante que cores com fundo (regime badges) imprimam */
  .regime-badge, .origem-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Painel de regime predominante na página /ncm/:ncm ------------------- */
.regime-panel {
  border-radius: 10px; padding: 16px 20px; margin: 14px 0 20px;
  border: 2px solid; background: #fff;
}
.regime-panel-isento { border-color: #1f7a3a; background: linear-gradient(180deg, #e6f7ec 0%, #fff 60%); }
.regime-panel-1152   { border-color: #d4af37; background: linear-gradient(180deg, #fff8e0 0%, #fff 60%); }
.regime-panel-1146   { border-color: #1a3454; background: linear-gradient(180deg, #e8efff 0%, #fff 60%); }
.regime-panel-1131   { border-color: #5e6b85; background: linear-gradient(180deg, #eef0f5 0%, #fff 60%); }
.regime-panel-1173   { border-color: #888;    background: linear-gradient(180deg, #f1f1f1 0%, #fff 60%); }

.regime-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,.08); }
.regime-panel-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #666; }
.regime-badge-xl { font-size: 18px !important; padding: 6px 18px !important; }

.regime-panel-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 18px; }
.regime-panel-row  { display: flex; align-items: baseline; gap: 8px; }
.regime-panel-row .lbl { font-size: 11px; font-weight: 600; color: #666; min-width: 86px; }
.regime-panel-row .val { font-size: 14px; color: #1a1a1a; }
.regime-panel-row .val.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; color: #1a3454; }
.regime-panel-row .val.muted { color: #888; font-style: italic; }

.regime-panel-rule { font-size: 11px; color: #555; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed rgba(0,0,0,.08); }

.regime-legend { background: #f7f8fa; border-radius: 8px; padding: 10px 14px; margin: 22px 0 0; }
.regime-legend summary { cursor: pointer; color: #1a3454; font-weight: 600; }
.regime-legend[open] summary { margin-bottom: 10px; }
.regime-legend-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.regime-legend-table th, .regime-legend-table td { padding: 6px 10px; border: 1px solid #e1e6ed; vertical-align: top; }
.regime-legend-table thead th { background: #1a3454; color: #fff; text-align: left; }
.regime-legend-table tbody tr:nth-child(even) { background: #fff; }

/* Estilos antigos da Consulta NCM (mantidos para outras telas) */

.ncm-form {
  background: #fff; border: 1px solid #e6e6e6; border-radius: 10px;
  padding: 18px 20px; margin-bottom: 22px;
}
.ncm-modes { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ncm-mode {
  flex: 1; min-width: 140px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 2px solid #e6e6e6; border-radius: 8px;
  cursor: pointer; background: #fff; user-select: none;
  transition: all .15s;
}
.ncm-mode input { margin: 0; }
.ncm-mode span { font-weight: 600; }
.ncm-mode.active { color: #fff; }
.ncm-mode.mode-ncm.active  { background: #d4af37; border-color: #b08c1a; color: #1a1a1a; }
.ncm-mode.mode-ncm:hover   { background: #fff8e0; border-color: #d4af37; }
.ncm-mode.mode-desc.active { background: #1a3454; border-color: #0d2138; }
.ncm-mode.mode-desc:hover  { background: #e8efff; border-color: #1a3454; }
.ncm-mode.mode-cest.active { background: #1f7a3a; border-color: #145025; }
.ncm-mode.mode-cest:hover  { background: #e6f7ec; border-color: #1f7a3a; }

.ncm-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.ncm-input-row input {
  flex: 1; padding: 12px 14px; font-size: 16px;
  border: 1px solid #cfd6e0; border-radius: 6px; background: #fafbfd;
}
.ncm-input-row button {
  padding: 12px 26px; font-size: 16px; font-weight: 600;
  background: #1a3454; color: #fff; border: none; border-radius: 6px; cursor: pointer;
}
.ncm-input-row button:hover { background: #244873; }
.ncm-prio { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; }

.ncm-result-summary { background: #fff8e6; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.ncm-result-summary em { color: #1a3454; font-style: normal; font-weight: 600; }

.ncm-section-title { font-size: 16px; padding: 8px 12px; border-radius: 4px; margin: 18px 0 10px; }
.ncm-section-cons  { background: #fff8e6; color: #5d4d10; border-left: 4px solid #d4af37; }
.ncm-section-isen  { background: #e6f7ec; color: #145025; border-left: 4px solid #1f7a3a; }

.ncm-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ncm-table th, .ncm-table td { padding: 6px 8px; border: 1px solid #e1e6ed; vertical-align: top; }
.ncm-table thead th { background: #1a3454; color: #fff; text-align: left; font-weight: 600; position: sticky; top: 0; z-index: 1; }
.ncm-table tbody tr:nth-child(even) { background: #f7f8fa; }
.ncm-table tbody tr:hover { background: #fff5d6; }
.ncm-table .cell-codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #34466b; white-space: nowrap; }
.ncm-table .cell-pct   { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; text-align: right; }
.ncm-table .cell-base  { font-size: 11px; color: #666; }
.ncm-table .cell-regime { text-align: center; }

.regime-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px; font-weight: 700; font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.regime-isento { background: #1f7a3a; color: #fff; }
.regime-1152   { background: #d4af37; color: #1a1a1a; }
.regime-1146   { background: #1a3454; color: #fff; }
.regime-1131   { background: #5e6b85; color: #fff; }
.regime-1173   { background: #888; color: #fff; }

.ncm-help { background: #f3f5f9; border-radius: 8px; padding: 16px 20px; }
.ncm-help h3 { color: #1a3454; margin: 0 0 8px; }
.ncm-help ul { margin: 0; padding-left: 20px; line-height: 1.8; }
.ncm-help .muted { color: #666; font-size: 13px; margin-top: 10px; }

/* Login + Admin -------------------------------------------------------- */
.login-btn {
  display: inline-block; padding: 6px 14px; font-size: 13px; font-weight: 600;
  background: #f4c84c; color: #1a3454; border-radius: 4px;
}
.login-btn:hover { background: #f3b81a; text-decoration: none; }

.user-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: rgba(255,255,255,.12); border-radius: 999px;
  color: #fff; font-size: 12px; font-weight: 600;
}
.user-pill-master-link { cursor: pointer; }
.user-pill-master-link:hover { background: rgba(244,200,76,.32); text-decoration: none; }
.user-pill-master {
  font-size: 9px; padding: 2px 6px; background: #f4c84c; color: #1a3454;
  border-radius: 999px; letter-spacing: .1em;
}
.switch-btn {
  font-size: 12px; padding: 4px 10px; color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.18); border-radius: 4px;
}
.switch-btn:hover { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }
.logout-btn {
  font-size: 12px; padding: 4px 10px; color: rgba(255,255,255,.7);
}
.logout-btn:hover { color: #fff; text-decoration: none; }

.login-page { max-width: 460px; margin: 40px auto; background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; padding: 28px 32px; }
.login-page h1 { margin: 0 0 6px; color: #1a3454; }
.login-page .lead { margin: 0 0 18px; color: #555; }
.login-error { background: #ffe1d6; color: #8b2510; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-weight: 600; }
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-form label { font-size: 13px; font-weight: 600; color: #1a3454; }
.login-form input[type="text"], .login-form input[type="password"] {
  padding: 12px 14px; font-size: 15px; border: 1px solid #cfd6e0; border-radius: 6px; background: #fafbfd;
}
.login-form input:focus { outline: 2px solid #1a3454; outline-offset: -1px; background: #fff; }
.login-form button {
  margin-top: 8px; padding: 12px 20px; font-size: 15px; font-weight: 600;
  background: #1a3454; color: #fff; border: none; border-radius: 6px; cursor: pointer;
}
.login-form button:hover { background: #244873; }
.login-help { margin-top: 16px; font-size: 12px; color: #666; }

/* Admin dashboard */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.admin-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
  background: #fff; border: 1px solid #e6e6e6; border-radius: 10px;
  text-decoration: none; color: #1a1a1a;
  transition: border-color .15s, box-shadow .15s;
}
.admin-card:hover { border-color: #1a3454; box-shadow: 0 4px 12px rgba(0,0,0,.06); text-decoration: none; }
.admin-card-icon { font-size: 28px; }
.admin-card-title { font-weight: 700; color: #1a3454; }
.admin-card-count { font-size: 13px; color: #666; }
.admin-card-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.admin-card-soon { font-size: 11px; padding: 2px 8px; background: #fff8e6; color: #5d4d10; border-radius: 999px; align-self: flex-start; margin-top: 6px; }

.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-toolbar h1 { margin: 0; }

.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; background: #fff8e6; color: #5d4d10; border-left: 4px solid #d4af37; }
.flash-warn { background: #fff8e6; color: #5d4d10; border-left-color: #d4af37; }
.flash-error { background: #ffe1d6; color: #8b2510; border-left-color: #c64224; }
.muted-help { font-size: 12px; color: #666; margin-top: 14px; padding: 10px 14px; background: #f3f5f9; border-radius: 6px; }
.badge-master { background: #f4c84c; color: #1a3454; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-left: 6px; }
.badge-internal { background: #1a3454; color: #fff; padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; margin-left: 6px; letter-spacing: .1em; }
.logout-link { float: right; font-size: 13px; color: #888; }

/* Tabela de usuários */
.is-master { background: #fff8e6 !important; }
.cell-actions { display: flex; gap: 6px; align-items: center; }
.btn { display: inline-block; padding: 6px 14px; font-size: 13px; font-weight: 600; background: #f3f5f9; color: #1a3454; border: 1px solid #cfd6e0; border-radius: 4px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #e6ebf3; text-decoration: none; }
.btn-primary { background: #1a3454; color: #fff; border-color: #1a3454; }
.btn-primary:hover { background: #244873; }
.btn-sm { padding: 4px 10px; font-size: 12px; background: #f3f5f9; color: #1a3454; border: 1px solid #cfd6e0; border-radius: 4px; cursor: pointer; }
.btn-sm:hover { background: #e6ebf3; text-decoration: none; }
.btn-danger { background: #ffe1d6; color: #8b2510; border-color: #e9b7b1; }
.btn-danger:hover { background: #f5c0bb; }

/* Formulário */
.admin-form { background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; padding: 22px 26px; max-width: 600px; }
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-row label { font-weight: 600; font-size: 13px; color: #1a3454; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="password"] {
  padding: 10px 12px; font-size: 14px; border: 1px solid #cfd6e0; border-radius: 6px;
}
.form-row input:disabled, .form-row input:read-only { background: #f0f0f0; color: #888; }
.form-row-checkbox { flex-direction: row; align-items: center; gap: 8px; }
.form-hint { margin: 0; font-size: 12px; color: #888; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

/* Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid #e6e6e6; background: #fff; margin-top: 60px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 18px 20px; font-size: 12px; color: #666; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-counts { color: #888; }
.footer-copyright {
  background: #1a3454; color: #fff; padding: 12px 20px; text-align: center;
  border-top: 2px solid #f4c84c;
}
.footer-copyright p {
  max-width: 1100px; margin: 0 auto;
  font-size: 12.5px; letter-spacing: .02em;
}
.footer-copyright strong em { font-weight: 700; font-style: italic; }
@media print {
  .footer-copyright {
    display: block !important;     /* sobrescreve regra que esconde .footer */
    background: #fff !important; color: #000 !important;
    border-top: 1px solid #000 !important;
    margin-top: 16px !important; padding: 8px 0 !important;
    page-break-inside: avoid;
  }
}

/* Mobile --------------------------------------------------------------- */
@media (max-width: 720px) {
  .topbar-inner { gap: 12px; }
  .brand-name { font-size: 16px; }
  .topnav a { font-size: 13px; }
  .hero h1 { font-size: 24px; }
  .article-page { padding: 18px 16px; }
}
