/* M&A Consultoria Econômica: páginas internas e blocos novos do protótipo.
   Usa os tokens de styles.css. Carregar sempre depois dele. */

/* Selo de protótipo */
.proto-bar { background: #F9EEDA; color: #5A4318; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .03em; text-align: center; padding: 7px var(--gutter); }
.proto-tag { display: inline-block; font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border: 1px dashed currentColor; color: var(--slate); vertical-align: middle; }
.section--ink .proto-tag, .section--ink-soft .proto-tag { color: var(--mist); }

/* Cabeçalho das páginas internas */
.page-head { background: var(--ink); color: var(--white); padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--rule-dark) 1px, transparent 1px), linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px); background-size: 64px 64px; opacity: .3; mask-image: linear-gradient(90deg, transparent 40%, #000 85%); }
.page-head .wrap { position: relative; }
.page-head h1 { font-family: var(--f-display); font-weight: 300; font-size: var(--step-4); line-height: 1.05; letter-spacing: -.02em; max-width: 20ch; }
.page-head p.lead { margin-top: 20px; max-width: 60ch; color: #C9CED7; font-size: var(--step-1); }
.crumbs { font-family: var(--f-mono); font-size: var(--step--1); color: var(--mist); margin-bottom: 20px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--rule-dark); }
.crumbs a:hover { border-bottom-color: var(--white); }

/* Nav: item atual e links secundários */
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { right: 0; }
.lang { font-family: var(--f-mono); font-size: .8rem; color: var(--slate); text-decoration: none; padding: 0 4px; }
.lang:hover { color: var(--ink); }

/* Grade de cartões genérica */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); padding: 28px; display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; transition: background .2s; }
a.card:hover { background: var(--paper); }
.card__k { font-family: var(--f-mono); font-size: var(--step--1); color: var(--slate); text-transform: uppercase; letter-spacing: .05em; }
.card h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); line-height: 1.2; }
.card p { color: var(--slate); font-size: .95rem; }
.card__more { font-weight: 500; font-size: .92rem; margin-top: 4px; }
.card__more::after { content: " →"; }
.section--tint .cards { background: var(--rule); }

/* Outros casos e parceiros */
.more-cases { margin-top: clamp(48px, 6vw, 72px); }
.more-cases__h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; font-family: var(--f-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); }
.partners { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.partners__k { font-family: var(--f-mono); font-size: var(--step--1); color: var(--slate); margin-right: 8px; }
.partners__logo { height: 44px; min-width: 132px; padding: 0 16px; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--slate); font-size: .82rem; background: var(--white); }

/* Faixa de conteúdo (blog + newsletter) */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.post-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.post-row__d { font-family: var(--f-mono); font-size: var(--step--1); color: var(--slate); }
.post-row h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); line-height: 1.2; }
.post-row h3 a { text-decoration: none; }
.post-row h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-row p { color: var(--slate); font-size: .95rem; margin-top: 6px; max-width: 70ch; }
.post-row__t { font-family: var(--f-mono); font-size: .72rem; color: var(--slate); border: 1px solid var(--rule); padding: 3px 8px; white-space: nowrap; }
.news { margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--ink); color: var(--white); padding: clamp(24px, 3.5vw, 40px); }
.news h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); }
.news p { color: #C9CED7; font-size: .95rem; margin-top: 8px; }
.news form { display: flex; gap: 0; border: 1px solid rgba(255,255,255,.3); }
.news input { flex: 1; min-width: 0; font: inherit; color: var(--white); background: transparent; border: 0; padding: 14px 16px; }
.news input::placeholder { color: rgba(255,255,255,.4); }
.news input:focus { outline: none; }
.news button { font: 600 .95rem var(--f-body); background: var(--white); color: var(--ink); border: 0; padding: 0 20px; cursor: pointer; }
.news__ok { grid-column: 1 / -1; font-size: .88rem; color: var(--mist); }

/* Sobre: CV e idiomas */
.about__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-family: var(--f-mono); font-size: .82rem; color: var(--slate); }
.facts b { color: var(--ink); font-weight: 500; }

/* Contato: agenda */
.contact__cal { margin-top: 32px; display: inline-flex; }

/* Footer com links */
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; }
.footer__links a { text-decoration: none; color: var(--mist); }
.footer__links a:hover { color: var(--white); }
.footer__grid--links { grid-template-columns: auto 1fr; }
.footer__grid--links .footer__small { grid-column: 1 / -1; border-top: 1px solid var(--rule-dark); padding-top: 20px; }

/* Artigo do blog */
.article { max-width: 720px; margin: 0 auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--f-mono); font-size: var(--step--1); color: var(--mist); margin-top: 24px; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--ink); font-family: var(--f-display); font-size: 1.3rem; line-height: 1.45; }
.prose ul { padding-left: 20px; }
.prose .note { font-size: .9rem; color: var(--slate); border-top: 1px solid var(--rule); padding-top: 16px; }
.author { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; margin-top: 48px; padding: 20px; background: var(--white); border: 1px solid var(--rule); }
.author__pic { width: 64px; height: 64px; background: var(--ink); display: grid; place-items: center; }
.author__pic img { width: 28px; }
.author p { font-size: .92rem; color: var(--slate); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--f-mono); font-size: .75rem; border: 1px solid var(--rule); padding: 5px 10px; text-decoration: none; color: var(--slate); background: var(--white); }
.tag[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Campos, avisos e chamadas comuns */
.fld { display: grid; gap: 6px; }
.fld label { font-size: .9rem; color: var(--slate); }
.fld input, .fld select { font: inherit; padding: 11px 12px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 0; width: 100%; }
.fld input:focus, .fld select:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.fld small { color: var(--slate); font-size: .8rem; }
.result__k { font-family: var(--f-mono); font-size: var(--step--1); color: var(--slate); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.disclaimer { margin-top: 20px; font-size: .82rem; color: var(--slate); border-left: 1px solid var(--rule); padding-left: 12px; }
.cta-strip { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 28px; border: 1px solid var(--ink); }
.cta-strip p { font-family: var(--f-display); font-size: var(--step-2); }

/* Glossário */
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; }
.az a { font-family: var(--f-mono); font-size: .85rem; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--rule); text-decoration: none; background: var(--white); }
.az a:hover { border-color: var(--ink); }
.gloss { margin: 0; border-top: 1px solid var(--ink); }
.gloss div { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.gloss dt { font-family: var(--f-display); font-size: var(--step-1); }
.gloss dt small { display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--slate); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }
.gloss dd { margin: 0; color: var(--slate); }

/* Agenda */
.cal { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cal > div { background: var(--white); padding: clamp(24px, 3vw, 36px); }
.cal__month { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 600; }
.cal__month button { background: none; border: 1px solid var(--rule); width: 32px; height: 32px; cursor: pointer; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__grid span { font-family: var(--f-mono); font-size: .7rem; color: var(--slate); padding: 6px 0; }
.cal__grid button { font: inherit; font-size: .9rem; aspect-ratio: 1; border: 1px solid transparent; background: none; cursor: pointer; color: var(--ink); }
.cal__grid button:disabled { color: var(--mist); cursor: default; }
.cal__grid button.av { border-color: var(--rule); background: var(--paper); }
.cal__grid button.av:hover { border-color: var(--ink); }
.cal__grid button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.slots button { font: 500 .95rem var(--f-mono); padding: 12px 0; border: 1px solid var(--rule); background: var(--white); cursor: pointer; }
.slots button:hover { border-color: var(--ink); }
.slots button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.slots button:disabled { color: var(--mist); cursor: default; }
.cal__grid button.today:not(.av) { text-decoration: underline; text-underline-offset: 3px; }
.cal__month button:disabled { opacity: .35; cursor: default; }
.cal__side { display: grid; gap: 18px; align-content: start; }
.cal__hint { grid-column: 1 / -1; font-size: .9rem; color: var(--slate); }
.cal__sum { font-weight: 500; min-height: 1.4em; }
.cal__legal { font-size: .8rem; color: var(--slate); }
.fld textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 0; width: 100%; resize: vertical; }
.fld textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.fld input[aria-invalid="true"] { border-color: #A3341F; }
.form-err { color: #A3341F; font-size: .9rem; min-height: 0; }
.form-err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cal-off, .cal-done, .cal-manage { border: 1px solid var(--rule); background: var(--white); padding: clamp(24px, 3vw, 36px); max-width: 720px; }
.cal-off { margin-bottom: 24px; }
.cal-done h2, .cal-manage h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); margin: 6px 0 12px; }
.cal-done p, .cal-manage p { margin-bottom: 14px; }
.cal-manage { margin-bottom: 32px; }

/* CV para impressão */
.cv { max-width: 860px; margin: 0 auto; background: var(--white); border: 1px solid var(--rule); padding: clamp(28px, 5vw, 56px); }
.cv-page { padding-top: 40px; }
.cv__top { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 24px; }
.cv__photo { width: 96px; height: 96px; object-fit: cover; object-position: 50% 18%; border-radius: 50%; filter: grayscale(1); background: var(--ink); }
.cv h1 { font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.cv__role { color: var(--slate); margin-top: 8px; }
.cv__contact { font-family: var(--f-mono); font-size: .78rem; color: var(--slate); text-align: right; line-height: 1.7; }
.cv__contact a { color: inherit; border-bottom: 1px solid var(--rule); }
.cv__contact a:hover { color: var(--ink); border-color: var(--ink); }
.cv__cols { display: grid; grid-template-columns: 1fr 1.6fr; gap: 36px; margin-top: 28px; }
.cv h2 { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); margin: 0 0 10px; }
.cv section + section { margin-top: 24px; }
.cv ul { margin: 0; padding-left: 16px; display: grid; gap: 6px; font-size: .92rem; }
.cv .cv__tl li { list-style: none; margin-left: -16px; display: grid; grid-template-columns: 82px 1fr; gap: 10px; }
.cv .cv__tl span:first-child { font-family: var(--f-mono); font-size: .8rem; color: var(--slate); padding-top: .1em; }
.cv .cv__pubs { gap: 8px; }
.cv .cv__pubs li { line-height: 1.45; }
.cv__foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--slate); display: flex; justify-content: space-between; gap: 16px; }
.print-bar { max-width: 860px; margin: 0 auto 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.print-bar .crumbs { color: var(--slate); margin: 0; }
.print-bar .crumbs a { border-color: var(--rule); }
.print-bar__act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0; }
.cv__lang a { font-family: var(--f-mono); font-size: .78rem; color: var(--slate); border-bottom: 1px solid var(--rule); }
.cv-cta { max-width: 860px; margin-left: auto; margin-right: auto; }
@media print {
  .topbar, .proto-bar, .print-bar, .footer, .page-head, .cv-cta, .consent { display: none !important; }
  .cv__contact a { border: 0; }
  .cv li, .cv h2 { break-inside: avoid; } .cv h2 { break-after: avoid; }
  body { background: #fff; }
  .section { padding: 0 !important; }
  .cv { border: 0; padding: 0; max-width: none; }
}

/* Texto simples (privacidade) */
.legal { max-width: 760px; }
.legal h2 { font-size: var(--step-2); margin-top: 1.6em; }
.legal p, .legal li { color: var(--slate); }
.legal > * + * { margin-top: 1em; }
.legal__updated { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .02em; }

/* Responsivo */
@media (max-width: 1024px) {
  .cards, .cards--4 { grid-template-columns: 1fr 1fr; }
  .cal { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .news { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 6px; }
  .post-row__t { justify-self: start; }
  .gloss div { grid-template-columns: 1fr; gap: 6px; }
  .cv__cols { grid-template-columns: 1fr; }
  .cv__top { grid-template-columns: auto 1fr; }
  .cv__contact { grid-column: 1 / -1; text-align: left; }
  .footer__grid--links { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cv { padding: 22px 18px; }
  .cv__top { gap: 16px; }
  .cv__photo { width: 72px; height: 72px; }
  .cv h1 { font-size: 2rem; }
  .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; }
  .lang { display: none; }
  .news form { flex-direction: column; border: 0; gap: 8px; }
  .news input { border: 1px solid rgba(255,255,255,.3); }
  .news button { padding: 14px; }
  .slots { grid-template-columns: repeat(2, 1fr); }
}

/* Header com mais itens: sem quebra de linha e menu compacto mais cedo */
.nav a, .topbar .btn--small, .wa-btn { white-space: nowrap; }
@media (max-width: 1320px) { .nav { gap: 20px; } .topbar__in { gap: 24px; } }
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--rule); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; color: var(--ink); }
  .nav a::after { display: none; }
  .menu { display: block; }
  .topbar__actions { margin-left: auto; }
}

/* Consentimento de cookies (consent.js) */
.consent { position: fixed; z-index: 90; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); max-width: 760px; margin-left: auto;
  background: var(--white); color: var(--ink); border: 1px solid var(--rule); border-top: 3px solid var(--ink);
  box-shadow: 0 18px 48px rgba(17,31,60,.14); padding: 24px 28px; display: grid; gap: 20px; }
.consent__title { font-family: var(--f-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin-bottom: 8px; }
.consent__text { font-size: .95rem; line-height: 1.55; }
.consent__text a { color: var(--ink); text-underline-offset: 3px; }
.consent__opts { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 16px; }
.consent__opts[hidden] { display: none; }
.consent__opt { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--paper); padding: 12px 14px; cursor: pointer; }
.consent__opt input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--ink); }
.consent__opt input:disabled { cursor: not-allowed; }
.consent__opt strong { display: block; font-size: .92rem; font-weight: 600; }
.consent__opt small { display: block; color: var(--slate); font-size: .85rem; line-height: 1.45; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent__btn { font: 600 .9rem/1 var(--f-body); padding: 12px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); cursor: pointer; transition: background .2s; }
.consent__btn:hover { background: var(--ink-2); }
.consent__btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.consent__btn--ghost:hover { background: var(--tint); }
.consent__btn[hidden] { display: none; }
.footer__links .consent-link { cursor: pointer; }
@media (max-width: 560px) {
  .consent { left: 0; right: 0; bottom: 0; border-left: 0; border-right: 0; padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; }
  .consent__actions { justify-content: stretch; }
  .consent__btn { flex: 1 1 auto; }
}
@media print { .consent { display: none; } }

/* Casos com logos das empresas (home, casos.html e páginas de área) */
.sec-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.sec-head--row > div { max-width: 760px; }
.deals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.deal { background: var(--white); padding: 28px 24px 22px; display: grid; gap: 22px; align-content: space-between; min-height: 200px; }
.deal__pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.deal__logo { height: 72px; display: grid; place-items: center; text-align: center; }
.deal__logo img { max-height: 56px; max-width: 100%; width: auto; filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s; }
.deal:hover .deal__logo img { filter: none; opacity: 1; }
.deal__pair--one { grid-template-columns: 1fr; }
.deal__word { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); }
.deal__x { font-family: var(--f-display); font-weight: 300; font-size: 1.4rem; color: var(--mist); }
.deal__k { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; border-top: 1px solid var(--rule); padding-top: 14px; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.deal--total { background: var(--ink); color: var(--white); align-content: center; gap: 10px; }
.deal__n { font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem, 2.2rem + 2.4vw, 4.25rem); line-height: 1; }
.deal--total p { color: #C9CED7; font-size: .95rem; max-width: 24ch; }
.cases-more { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.cases-more > div { padding: 24px 24px 0 0; }
.cases-more > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.cases-more__k { font-family: var(--f-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin-bottom: 8px; }
.cases-more p:not(.cases-more__k) { color: var(--slate); font-size: .95rem; }

/* Áreas com link para a página interna */
.areas--links h3 a { text-decoration: none; }
.areas--links h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.area__more { margin-top: 12px; font-size: .9rem; }
.areas__all { margin-top: 32px; }

/* Página de área */
.area-page { display: grid; grid-template-columns: 1fr 320px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.area-page__main { max-width: 720px; }
.area-page__main > h2:first-child { margin-top: 0; }
.area-page__close { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.45; border-left: 2px solid var(--ink); padding-left: 20px; }
.area-page__side { position: sticky; top: 104px; display: grid; gap: 16px; }
.side-box { background: var(--white); border: 1px solid var(--rule); padding: 24px; display: grid; gap: 14px; }
.side-box .eyebrow { margin-bottom: 0; }
.side-box--ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.side-box--ink p:not(.eyebrow) { color: #C9CED7; font-size: .95rem; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li + li { border-top: 1px solid var(--rule); }
.side-links a { display: block; padding: 10px 0; text-decoration: none; font-size: .95rem; }
.side-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ticks { list-style: none; padding: 0 !important; border-top: 1px solid var(--rule); }
.ticks li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 12px; height: 1px; background: var(--ink); }
.prose .ticks { font-size: 1rem; line-height: 1.6; }
.sectors { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.sectors li { font-size: .9rem; border: 1px solid var(--rule); background: var(--white); padding: 6px 12px; line-height: 1.4; }
.featured { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: 28px; display: grid; gap: 12px; margin-top: 2em; }
.featured .eyebrow { margin-bottom: 0; }
.featured h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); }
.featured p:not(.eyebrow):not(.case__ref) { color: var(--slate); font-size: 1rem; }
.featured .case__ref { margin-top: 4px; justify-self: start; }
.case-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.case-feature .featured { margin-top: 0; }
.case-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.case-area { background: var(--white); padding: 28px; display: grid; gap: 14px; align-content: start; }
.case-area h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); }
.case-area .ticks { margin: 0; font-size: .95rem; color: var(--slate); }
.case-area .link-arrow { justify-self: start; font-size: .92rem; }

@media (max-width: 1024px) {
  .deals { grid-template-columns: repeat(2, 1fr); }
  .area-page { grid-template-columns: 1fr; }
  .area-page__side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .cases-more { grid-template-columns: 1fr; }
  .cases-more > div, .cases-more > div + div { padding: 20px 0; border-left: 0; }
  .cases-more > div + div { border-top: 1px solid var(--rule); }
  .case-feature, .case-areas { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .deal { padding: 18px 14px 14px; min-height: 0; gap: 14px; }
  .deal__pair { grid-template-columns: 1fr; gap: 6px; }
  .deal__x { display: none; }
  .deal__logo { height: 52px; }
  .deal__k { flex-direction: column; font-size: .64rem; }
  .deal__k span:last-child { display: none; }
  .area-page__side { grid-template-columns: 1fr; }
}
.prose .sectors { margin-top: 16px; }

/* Posts do blog (conteúdo vindo do admin) */
.post-cover { margin: 0 0 1.6em; }
.post-cover img { width: 100%; height: auto; display: block; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: var(--step-2); margin-top: 1.8em; }
.post-body h3 { font-size: var(--step-1); margin-top: 1.6em; }
.post-body ol { padding-left: 22px; }
.post-body img, .post-body video { max-width: 100%; height: auto; display: block; }
.post-body figure { margin: 1.6em 0; }
.post-body figcaption { font-size: .85rem; color: var(--slate); margin-top: 8px; }
.post-body .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.post-body .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.post-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }
.post-body figure:has(> table) { overflow-x: auto; }
.post-body table { border-collapse: collapse; width: 100%; font-size: .85rem; line-height: 1.45; }
.post-body th, .post-body td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.post-body a { overflow-wrap: anywhere; }
.post-body .post-source { font-size: .9rem; color: var(--slate); }
.post-tags { list-style: none; padding: 0; margin: 2em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags li { font-family: var(--f-mono); font-size: .72rem; color: var(--slate); border: 1px solid var(--rule); padding: 3px 8px; }

/* Página 404 (public/_404.html e public/en/_404.html, servidas pelo Worker com status 404) */
.nf { background: var(--ink); color: var(--white); position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.nf::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--rule-dark) 1px, transparent 1px), linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px); background-size: 64px 64px; opacity: .35; mask-image: radial-gradient(ellipse at 75% 45%, #000 10%, transparent 70%); }
.nf__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.nf h1 { font-family: var(--f-display); font-weight: 300; font-size: var(--step-4); line-height: 1.04; letter-spacing: -.02em; max-width: 14ch; margin-top: 22px; }
.nf h1 em { font-style: italic; color: var(--mist); }
.nf__lead { margin-top: 22px; max-width: 52ch; color: #C9CED7; font-size: var(--step-1); }
.nf__req { margin-top: 28px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 100%; font-family: var(--f-mono); font-size: var(--step--1); color: var(--mist); border: 1px solid var(--rule-dark); padding: 10px 14px; }
.nf__req[hidden] { display: none; }
.nf__req b { font-weight: 500; color: var(--white); background: rgba(255,255,255,.08); padding: 2px 6px; }
.nf__req code { font: inherit; color: var(--white); overflow-wrap: anywhere; }
.nf__req i { font-style: normal; color: #E7B9A8; }
.nf__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

.nf__fig { margin: 0; position: relative; }
.nf__num { font-family: var(--f-display); font-weight: 300; font-size: clamp(6rem, 3rem + 12vw, 13rem); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); text-align: right; user-select: none; }
.nf__chart { display: block; width: 100%; height: auto; margin-top: -18px; overflow: visible; }
.nf__chart .ax { stroke: var(--mist); stroke-width: 1; }
.nf__chart .tk { stroke: var(--rule-dark); stroke-width: 1; }
.nf__chart .fit { stroke: var(--white); stroke-width: 1.25; fill: none; stroke-dasharray: 520; stroke-dashoffset: 520; animation: nf-draw 1.4s var(--ease) .2s forwards; }
.nf__chart .band { fill: rgba(255,255,255,.06); }
.nf__chart .pt { fill: var(--white); opacity: 0; animation: nf-in .5s var(--ease) forwards; }
.nf__chart .miss { fill: none; stroke: #E7B9A8; stroke-width: 1.25; stroke-dasharray: 3 4; opacity: 0; animation: nf-in .6s var(--ease) 1.5s forwards, nf-pulse 2.8s ease-in-out 2.2s infinite; transform-origin: 340px 40px; }
.nf__chart .res { stroke: #E7B9A8; stroke-width: 1; stroke-dasharray: 2 4; opacity: 0; animation: nf-in .6s var(--ease) 1.7s forwards; }
.nf__chart text { font-family: var(--f-mono); font-size: 11px; fill: var(--mist); letter-spacing: .03em; }
.nf__chart .lbl { fill: #E7B9A8; opacity: 0; animation: nf-in .6s var(--ease) 1.9s forwards; }
.nf__cap { margin-top: 14px; font-family: var(--f-mono); font-size: var(--step--1); color: var(--mist); text-align: right; }
.nf__cap span { color: var(--white); }
@keyframes nf-draw { to { stroke-dashoffset: 0; } }
@keyframes nf-in { to { opacity: 1; } }
@keyframes nf-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) {
  .nf__chart .fit { animation: none; stroke-dashoffset: 0; }
  .nf__chart .pt, .nf__chart .miss, .nf__chart .res, .nf__chart .lbl { animation: none; opacity: 1; }
}

.nf-links .sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.nf-links .card__k { display: flex; justify-content: space-between; }
.nf-links .card h3 { font-size: var(--step-1); }

@media (max-width: 860px) {
  .nf__in { grid-template-columns: 1fr; }
  .nf__fig { order: -1; max-width: 460px; }
  .nf__num { text-align: left; }
  .nf__cap { text-align: left; }
}
@media (max-width: 560px) {
  .nf-links .cards--4 { grid-template-columns: 1fr; }
}

/* Blog: listagem em cartões com capa, filtro, busca e "carregar mais" */
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 12px; }
.blog-tools .tag { cursor: pointer; padding: 7px 12px; }
.blog-tools .tag span { opacity: .6; margin-left: 4px; }
.blog-tools .tag:not([aria-pressed="true"]):hover { border-color: var(--slate); color: var(--ink); }
.blog-search { position: relative; flex: 0 1 300px; }
.blog-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.blog-search input { width: 100%; font: inherit; font-size: .92rem; color: var(--ink); background: var(--white); border: 1px solid var(--rule); padding: 9px 12px 9px 36px; border-radius: 0; }
.blog-search input:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.blog-status { font-family: var(--f-mono); font-size: var(--step--1); color: var(--slate); min-height: 1.5em; margin-bottom: 16px; }

.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.pcard { display: grid; grid-template-rows: auto 1fr; gap: 18px; align-content: start; min-width: 0; }
.pcard[hidden] { display: none; }
.pcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); border: 1px solid var(--rule); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.pcard:hover .pcard__media img:not([aria-hidden]) { transform: scale(1.025); }
.pcard__ph { position: relative; width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 14px; background: var(--ink); color: var(--mist); overflow: hidden; }
.pcard__ph::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--rule-dark) 1px, transparent 1px), linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px); background-size: 32px 32px; opacity: .45; }
.pcard__ph img { position: relative; width: 56px; height: 56px; transform: none !important; }
.pcard__ph span { position: relative; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.pcard__body { display: grid; gap: 10px; align-content: start; }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--f-mono); font-size: .72rem; color: var(--slate); }
.pcard__meta > :not(.pcard__cat) + *::before { content: "·"; margin-right: 10px; color: var(--mist); }
.pcard__cat { flex-basis: 100%; color: var(--ink); text-transform: uppercase; letter-spacing: .05em; }
.pcard__lang { color: var(--ink); text-transform: uppercase; letter-spacing: .05em; }
.pcard h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.375rem; line-height: 1.22; letter-spacing: -.005em; }
.pcard h3 a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease); }
.pcard:hover h3 a, .pcard h3 a:focus-visible { background-size: 100% 1px; }
.pcard__lead { color: var(--slate); font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__flag { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); display: flex; align-items: center; gap: 12px; }
.pcard__flag::before { content: ""; width: 28px; height: 1px; background: var(--ink); }
.pcard__more { font-weight: 500; font-size: .95rem; text-decoration: none; margin-top: 6px; }
.pcard__more::after { content: " →"; }

/* Destaques: as 2 notas mais recentes, uma embaixo da outra, com a capa à esquerda e o texto à direita */
.pcard--feat { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.pcard--feat h3 { font-size: var(--step-2); font-weight: 300; line-height: 1.15; letter-spacing: -.01em; }
.pcard--feat .pcard__lead { font-size: 1.05rem; -webkit-line-clamp: 3; }
.pcard--feat .pcard__body { gap: 12px; }
.pcard--feat .pcard__ph img { width: 72px; height: 72px; }
/* Régua só embaixo do último destaque, separando-os da grade */
.pcard--feat:not(:has(+ .pcard--feat)) { padding-bottom: clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--rule); }
/* Com filtro ou busca, os destaques entram na grade como cartões comuns */
.post-grid.is-filtered .pcard--feat { grid-column: auto; grid-template-columns: none; grid-template-rows: auto 1fr; gap: 18px; align-items: start; padding-bottom: 0; border-bottom: 0; }
.post-grid.is-filtered .pcard--feat h3 { font-size: 1.375rem; font-weight: 400; line-height: 1.22; }
.post-grid.is-filtered .pcard--feat .pcard__lead { font-size: .95rem; }
.post-grid.is-filtered .pcard__flag, .post-grid.is-filtered .pcard__more { display: none; }

.blog-empty, .blog-none { grid-column: 1 / -1; color: var(--slate); padding: 40px 0; border-top: 1px solid var(--rule); }
.blog-pt { color: var(--slate); font-size: .95rem; margin-top: 24px; }
.link-btn { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.blog-more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
.blog-more[hidden] { display: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pcard--feat { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-search { flex-basis: 100%; }
  .blog-tools { gap: 12px; }
  .blog-tools .tags { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; width: calc(100% + var(--gutter) * 2); }
  .blog-tools .tags::-webkit-scrollbar { display: none; }
  .blog-tools .tag { flex: none; }
  .pcard--feat h3 { font-size: 1.5rem; }
  .pcard--feat .pcard__lead { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .pcard__media img, .pcard h3 a { transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Parceiros (/parceiros, /en/partners e faixa da home) ---------- */
.partners__list { display: contents; }
.partners__more { margin-left: auto; font-size: .9rem; color: var(--ink); }
.partner-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.partner { background: var(--white); display: grid; grid-template-rows: auto 1fr; }
.partner__logo { height: 148px; display: grid; place-items: center; padding: 24px 28px; border-bottom: 1px solid var(--rule); background: var(--white); }
.partner__logo img { max-height: 76px; max-width: min(100%, 220px); width: auto; height: auto; filter: grayscale(1); opacity: .82; transition: filter .3s, opacity .3s; }
.partner:hover .partner__logo img, .partner:focus-within .partner__logo img { filter: none; opacity: 1; }
.partner__logo--dark { background: var(--ink); }
.partner__logo--dark img { opacity: .92; }
.partner__word { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--ink); text-align: center; letter-spacing: -.01em; }
.partner__body { padding: 20px 24px 22px; display: grid; gap: 8px; align-content: start; }
.partner__body h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; line-height: 1.25; margin: 0; }
.partner__site { font-family: var(--f-mono); font-size: .76rem; color: var(--slate); text-decoration: none; justify-self: start; border-bottom: 1px solid var(--rule); padding-bottom: 1px; overflow-wrap: anywhere; }
.partner__site:hover { color: var(--ink); border-color: currentColor; }
.partner--empty { grid-column: 1 / -1; padding: 32px; color: var(--slate); }
.partners-note { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; color: var(--slate); }
@media (max-width: 900px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .partner-grid { grid-template-columns: 1fr; }
  .partner { grid-template-rows: none; grid-template-columns: 112px 1fr; }
  .partner__logo { height: auto; min-height: 96px; padding: 14px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .partner__logo img { max-height: 52px; }
  .partner__word { font-size: 1rem; }
  .partner__body { padding: 16px; align-content: center; }
  .partner__body h3 { font-size: 1.02rem; }
  .partners__more { margin-left: 0; }
}

/* ===== Ferramentas (calculadora de HHI, teste CADE, monitor de defesa comercial) ===== */
.tools-cards .card { min-height: 100%; }
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.tool > * { background: var(--white); padding: clamp(22px, 3.2vw, 40px); min-width: 0; }
.tool__fields { display: grid; gap: 22px; align-content: start; margin: 0; }
.tool__hint { font-size: .9rem; color: var(--slate); }
.tool__row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.tool__row .btn--ghost { border: 1px solid var(--ink); }
.tool__sum { font-family: var(--f-mono); font-size: .78rem; color: var(--slate); }
.firms { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.firms__head, .firm { display: grid; grid-template-columns: 52px 1fr 112px 36px; gap: 10px; align-items: center; }
.firms__head { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.firm { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.firm input[type="text"] { font: inherit; width: 100%; padding: 9px 10px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 0; }
.firm input[type="text"]:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.firm__party { display: grid; place-items: center; cursor: pointer; }
.firm__party input { width: 20px; height: 20px; accent-color: var(--ink); cursor: pointer; }
.firm__share { display: flex; align-items: center; gap: 6px; }
.firm__share input { text-align: right; font-family: var(--f-mono) !important; font-variant-numeric: tabular-nums; }
.firm__share span { font-family: var(--f-mono); color: var(--slate); font-size: .9rem; }
.firm__rm { width: 32px; height: 32px; border: 1px solid transparent; background: none; color: var(--slate); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.firm__rm:hover { border-color: var(--rule); color: var(--ink); }
.tool__out { display: grid; align-content: start; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.nums__k { display: block; font-family: var(--f-mono); font-size: var(--step--1); color: var(--slate); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.nums__v { font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.scale--light .scale__mark--pre { background: var(--mist); }
.scale--light .scale__mark--post { background: var(--ink); }
.scale--light .scale__mark::before { content: attr(data-label); }
.scale--light .scale__mark--pre::before { color: var(--slate); }
.scale--light .scale__mark--post::before { color: var(--ink); }
.scale--light .scale__ticks { color: var(--slate); }
.verdict { margin-top: 28px; padding: 14px 18px; border-left: 2px solid var(--ink); background: var(--paper); display: grid; gap: 4px; font-size: .98rem; line-height: 1.55; color: var(--slate); }
.verdict strong { color: var(--ink); font-weight: 600; }
.verdict--ok { border-left-color: #2E6B3A; }
.verdict--warn { border-left-color: #B7791F; }
.verdict--bad { border-left-color: #8A2C2C; }
.result__list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.result__list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.result__list li span:last-child { font-family: var(--f-mono); text-align: right; }
.result__list li.result__note { display: block; font-size: .88rem; color: var(--slate); }
.howto { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.howto h2 { margin-bottom: 18px; }
.howto p + p { margin-top: 14px; }
.howto p { color: var(--slate); }
.howto .link-arrow { color: var(--ink); }
.howto--notes { margin-top: clamp(40px, 5vw, 56px); grid-template-columns: 1.2fr .8fr; }
.howto--notes .ticks li { color: var(--slate); }
.howto--notes .ticks b { color: var(--ink); font-weight: 600; }
.sources { margin-top: 24px; font-size: .88rem; color: var(--slate); }
.sources a { color: var(--ink); }

/* Tabelas */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--white); }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); padding: 14px 16px; border-bottom: 1px solid var(--ink); background: var(--paper); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr[hidden] { display: none; }
.tbl .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl small { display: block; color: var(--slate); font-size: .8rem; margin-top: 3px; }
.tbl b { font-weight: 600; }
.tbl .tbl__note { color: #7A4B12; }
.tbl__src { font-size: .82rem; color: var(--slate); white-space: nowrap; }
.tbl__src:hover { color: var(--ink); }
.tbl__empty td { color: var(--slate); text-align: center; padding: 28px; }
.tbl--plain td:first-child, .tbl--plain td:nth-child(2) { white-space: nowrap; }
.pill { display: inline-block; font-family: var(--f-mono); font-size: .7rem; padding: 3px 9px; border: 1px solid currentColor; white-space: nowrap; }
.pill--ok { color: #2E6B3A; background: #E5F4E4; border-color: #BFDDBC; }
.pill--warn { color: #7A4B12; background: #F9EEDA; border-color: #E9D2A6; }
.pill--alert { color: #8A2C2C; background: #FBEBEB; border-color: #EEC6C6; }
.pill--neutral { color: var(--slate); background: var(--tint); border-color: var(--rule); }

/* Monitor: abas, filtros e contagem */
.monitor__upd { font-family: var(--f-mono); font-size: .8rem; color: var(--slate); margin-bottom: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--ink); margin-bottom: 24px; }
.tabs [role="tab"] { font: inherit; font-size: 1rem; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 18px 10px; margin-bottom: -1px; color: var(--slate); cursor: pointer; white-space: nowrap; }
.tabs [role="tab"] span { font-family: var(--f-mono); font-size: .78rem; margin-left: 6px; color: var(--slate); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tabs [role="tab"]:hover { color: var(--ink); }
@media (max-width: 520px) { .tabs { flex-wrap: nowrap; } .tabs [role="tab"] { flex: 1 1 0; min-width: 0; white-space: normal; text-align: left; padding: 10px 10px 8px; font-size: .95rem; } .tabs [role="tab"] span { margin-left: 4px; } }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin-bottom: 20px; }
.filters .f { display: grid; gap: 6px; }
.filters .f--grow { flex: 1 1 260px; }
.filters label { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.filters input, .filters select { font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--rule); background: var(--white); color: var(--ink); min-width: 200px; border-radius: 0; width: 100%; }
.filters input:focus, .filters select:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.filters__count { margin-left: auto; font-family: var(--f-mono); font-size: .8rem; color: var(--slate); padding-bottom: 12px; }
.mon-none { margin-top: 16px; }

/* Teste de notificação ao CADE (faixa escura) */
.notify { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); }
.notify > div { background: var(--ink); padding: clamp(24px, 3.5vw, 44px); min-width: 0; }
.notify h2 { font-size: var(--step-2); }
.notify > div > p:not(.eyebrow) { color: #C9CED7; font-size: .95rem; margin-top: 14px; }
.notify > div > p b { color: var(--white); font-weight: 600; }
.notify__fields { display: grid; gap: 22px; margin: 0; }
.money { display: grid; gap: 8px; }
.money label { font-size: .9rem; color: #C9CED7; }
.money__in { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.3); }
.money__in span { font-family: var(--f-mono); color: var(--mist); font-size: .9rem; }
.money input { flex: 1; min-width: 0; font: 400 1.5rem var(--f-display); color: var(--white); background: transparent; border: 0; padding: 6px 0 8px; width: 100%; }
.money input:focus { outline: none; }
.money__in:focus-within { border-bottom-color: var(--white); }
.money__rm { background: none; border: 0; color: var(--mist); font-size: 1.3rem; cursor: pointer; padding: 0 4px; }
.money__rm:hover { color: var(--white); }
.fld--dark { margin-top: 26px; }
.fld--dark label { color: #C9CED7; }
.fld--dark select { background: var(--ink-2); color: var(--white); border-color: rgba(255,255,255,.25); }
.fld--dark select:focus { outline-color: var(--white); }
.link-btn--light { color: #C9CED7; font-size: .92rem; margin-top: 14px; justify-self: start; }
.link-btn--light:hover { color: var(--white); }
.notify__res { margin-top: 28px; padding: 16px 18px; border-left: 2px solid var(--white); font-size: 1rem; line-height: 1.55; color: #DDE1E8; display: grid; gap: 4px; }
.notify__res strong { color: var(--white); font-weight: 600; }
.notify__res--yes { border-left-color: #F2C9A0; }
.notify__res--no { border-left-color: #9FD3A6; }
.notify__list { list-style: none; margin: 16px 0 0; padding: 0; }
.notify__list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule-dark); font-size: .9rem; color: #C9CED7; }
.notify__list li span:last-child { font-family: var(--f-mono); font-size: .82rem; text-align: right; color: var(--white); }
.notify__list li.notify__warn { display: block; color: #F2C9A0; }
.notify .sim__disclaimer { margin-top: 20px; }
.tools-notes .card h3 { font-size: var(--step-1); }

@media (max-width: 960px) {
  .tool, .notify, .howto, .howto--notes { grid-template-columns: 1fr; }
}
/* Tabela do monitor vira cartões no celular */
@media (max-width: 760px) {
  .tbl-wrap--cards { border: 0; background: none; overflow: visible; }
  .tbl--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl--cards, .tbl--cards tbody { display: block; }
  .tbl--cards tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 16px; margin-bottom: 10px; background: var(--white); border: 1px solid var(--rule); }
  .tbl--cards tr[hidden] { display: none; }
  .tbl--cards td { display: grid; gap: 2px; padding: 0; border: 0; white-space: normal; align-content: start; }
  .tbl--cards td::before { content: attr(data-label); font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
  .tbl--cards td:first-child { grid-column: 1 / -1; font-size: 1.02rem; }
  .tbl--cards td:first-child::before, .tbl--cards td:last-child::before { display: none; }
  .tbl--cards td:last-child { grid-column: 1 / -1; }
  .tbl--cards td:empty { display: none; }
  .tbl--cards td .pill, .tbl--cards td .tbl__src { justify-self: start; }
  .tbl--cards .tbl__empty td { grid-column: 1 / -1; }
  .filters .f { flex: 1 1 100%; }
  .filters__count { margin-left: 0; padding-bottom: 0; }
}
@media (max-width: 560px) {
  .firms__head, .firm { grid-template-columns: 40px 1fr 92px 30px; gap: 6px; }
  .nums { gap: 10px; }
  .nums__v { font-size: 1.9rem; }
  .scale--light .scale__zone { font-size: 0; }
}
.mon-more { margin-top: 16px; }
.mon-more[hidden] { display: none; }

/* Monitor de tarifas (/ferramentas/tarifas) */
.tbl--tar td, .tbl--tar th { padding-left: 12px; padding-right: 12px; }
.tbl--tar td:nth-child(2) { min-width: 260px; max-width: 420px; }
.tbl--tar td:nth-child(3) { min-width: 150px; }
.tbl--tar td:last-child { min-width: 120px; }
.tbl--tar td:last-child small { overflow-wrap: anywhere; }
.tbl--tar td:nth-child(5) { min-width: 130px; }
.filters .f[hidden], .tbl-wrap[hidden] { display: none; }
.tar-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tbl--tar .pill { white-space: normal; max-width: 220px; }
.tbl--tar td.num span { display: block; }
.tar-link { font: inherit; font-family: var(--f-mono); font-size: .74rem; color: var(--ink); background: var(--tint); border: 1px solid var(--rule); padding: 3px 9px; margin-top: 6px; cursor: pointer; text-align: left; }
.tar-link:hover { border-color: var(--ink); }
.tar-link.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ncm-card { border: 1px solid var(--ink); background: var(--white); padding: 20px 24px; margin-bottom: 20px; display: grid; gap: 8px; }
.ncm-card[hidden] { display: none; }
.ncm-card__k { font-family: var(--f-mono); font-size: .78rem; color: var(--slate); margin: 0; }
.ncm-card__t { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; margin: 0; }
.ncm-card__rates { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 6px 0 0; }
.ncm-card__rates dt { font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.ncm-card__rates dd { margin: 2px 0 0; font-family: var(--f-mono); font-size: 1.3rem; }
.ncm-card__note { margin: 0; color: var(--slate); font-size: .9rem; }
.ncm-card__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.ncm-card__links .tar-link { margin-top: 0; }
@media (max-width: 760px) {
  .tbl--tar td:nth-child(2), .tbl--tar td:nth-child(3) { min-width: 0; max-width: none; }
  .tbl--tar td:last-child, .tbl--tar td:nth-child(5) { min-width: 0; }
  .tbl--tar.tbl--cards td.num { white-space: normal; }
}
