/* Sites Brasília SEO Intelligence — relatório (página pública, relatório compartilhado e painel). */
.seo-report, .seo-progress {
  --s-ink: var(--ink, #0c1a2b); --s-muted: var(--muted, #566476); --s-line: var(--line, #e2e7ee); --s-surface: var(--surface, #f4f6f9);
  --s-brand: var(--brand, #0b57d0); --s-good: #0f7b4b; --s-mid: #9a5b00; --s-bad: #b3261e; --s-skip: #6b7684;
  --s-good-bg: #e7f5ee; --s-mid-bg: #fff4e0; --s-bad-bg: #fdecea; --s-skip-bg: #eef1f5; --s-radius: var(--radius, 10px);
}
.seo-progress [hidden], .seo-report [hidden] { display: none !important; }
.seo-report, #an-result, #an-progress { scroll-margin-top: 90px; }
.seo-progress { background: var(--s-surface); border-radius: var(--s-radius); padding: 1.1rem 1.2rem; margin-bottom: 1.5rem; }
.seo-progress__label { font-weight: 600; color: var(--s-ink); margin: 0 0 .6rem; }
.seo-progress__track { height: 10px; border-radius: 999px; background: #dfe5ec; overflow: hidden; }
.seo-progress__bar { height: 100%; width: 0; background: var(--s-brand); border-radius: 999px; transition: width .4s ease; }
.seo-progress__meta { color: var(--s-muted); margin: .5rem 0 .8rem; overflow-wrap: anywhere; }

.seo-report { color: var(--text, #1e2a38); }
.seo-report h3 { font-size: 1.25rem; margin: 0 0 .9rem; }
.seo-report h4 { font-size: 1rem; margin: 1.4rem 0 .5rem; }
.seo-sec { margin-top: 2.4rem; }
.seo-head { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; }
@media (max-width: 620px) { .seo-head { grid-template-columns: 1fr; } }
.seo-score { width: 132px; height: 132px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 9px solid var(--s-line); }
.seo-score[data-level=good] { border-color: var(--s-good); } .seo-score[data-level=mid] { border-color: #d89a1c; } .seo-score[data-level=bad] { border-color: var(--s-bad); }
.seo-score__n { font-size: 2.7rem; font-weight: 800; color: var(--s-ink); line-height: 1; }
.seo-score__l { font-size: .85rem; color: var(--s-muted); }
.seo-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--s-brand); margin: 0 0 .3rem; }
.seo-head__title { margin: 0 0 .3rem; }
.seo-head__url { margin: 0 0 .2rem; font-weight: 600; overflow-wrap: anywhere; }
.seo-head p { margin-bottom: .4rem; }
.seo-counts { list-style: none; padding: 0; margin: .6rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.seo-counts li { padding: .2rem .65rem; border-radius: 999px; font-size: .88rem; background: var(--s-skip-bg); }
.seo-counts .st-fail { background: var(--s-bad-bg); color: var(--s-bad); } .seo-counts .st-warn { background: var(--s-mid-bg); color: var(--s-mid); }
.seo-counts .st-pass { background: var(--s-good-bg); color: var(--s-good); } .seo-counts .st-skip { color: var(--s-skip); }
.seo-disclaimer { margin-top: .4rem; }

.seo-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--s-line); }
.seo-actions .btn { min-height: 40px; padding: .5rem .9rem; font-size: .92rem; }
.seo-share { display: flex; gap: .5rem; flex: 1 1 320px; min-width: 0; }
.seo-share input { flex: 1; min-width: 0; font-size: .88rem; padding: .45rem .6rem; border: 1px solid var(--s-line); border-radius: 8px; }

.seo-notes { margin-top: 1.4rem; background: var(--s-mid-bg); color: #5e3b00; border-radius: var(--s-radius); padding: .9rem 1.1rem; }
.seo-notes ul { margin: .4rem 0 0; }

.seo-cats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.seo-cat { border: 1px solid var(--s-line); border-left-width: 5px; border-radius: var(--s-radius); padding: .8rem .9rem; display: grid; gap: .1rem; background: #fff; }
.seo-cat[data-level=good] { border-left-color: var(--s-good); } .seo-cat[data-level=mid] { border-left-color: #d89a1c; } .seo-cat[data-level=bad] { border-left-color: var(--s-bad); } .seo-cat[data-level=na] { border-left-color: #c3ccd6; }
.seo-cat__n { font-size: 1.7rem; font-weight: 800; color: var(--s-ink); line-height: 1.1; }
.seo-cat__l { font-weight: 650; color: var(--s-ink); }
.seo-cat__m { color: var(--s-muted); }

.seo-sevh { display: flex; align-items: center; gap: .5rem; }
.seo-sevh::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--s-skip); }
.seo-sevh.sev-critica::before { background: var(--s-bad); } .seo-sevh.sev-alta::before { background: #d0453b; } .seo-sevh.sev-media::before { background: #d89a1c; } .seo-sevh.sev-baixa::before { background: #8a96a3; }
.seo-issues { border-top: 1px solid var(--s-line); }
.seo-item { border-bottom: 1px solid var(--s-line); }
.seo-item > summary { list-style: none; display: grid; grid-template-columns: 26px 1fr auto; gap: .7rem; align-items: start; padding: .8rem .2rem; cursor: pointer; }
.seo-item > summary::-webkit-details-marker { display: none; }
.seo-item > summary:hover { background: #fafbfd; }
.seo-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; background: var(--s-skip); margin-top: .1rem; }
.seo-ico.st-fail { background: var(--s-bad); } .seo-ico.st-warn { background: #c98a10; } .seo-ico.st-pass { background: var(--s-good); } .seo-ico.st-info { background: var(--s-brand); }
.seo-item__t { display: grid; gap: .1rem; min-width: 0; }
.seo-item__n { font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--s-muted); }
.seo-item__s { font-weight: 600; color: var(--s-ink); overflow-wrap: anywhere; }
.seo-tags { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.seo-tag { font-size: .75rem; font-weight: 650; padding: .12rem .5rem; border-radius: 999px; background: var(--s-skip-bg); color: #3a4757; white-space: nowrap; }
.seo-tag.st-fail { background: var(--s-bad-bg); color: var(--s-bad); } .seo-tag.st-warn { background: var(--s-mid-bg); color: var(--s-mid); } .seo-tag.st-pass { background: var(--s-good-bg); color: var(--s-good); }
.seo-tag--m { background: #eef3fd; color: #0842a0; }
@media (max-width: 560px) { .seo-item > summary { grid-template-columns: 26px 1fr; } .seo-tags { grid-column: 2; justify-content: flex-start; } }
.seo-item__body { padding: 0 .2rem 1rem 2.4rem; }
@media (max-width: 560px) { .seo-item__body { padding-left: .2rem; } }
.seo-item__body p { margin: .35rem 0; }
.seo-lbl { font-weight: 650; color: var(--s-ink); }
p.seo-lbl { margin-top: .6rem; }
.seo-ev { white-space: pre-wrap; overflow-wrap: anywhere; font: .86rem/1.5 var(--mono, ui-monospace, Consolas, monospace); background: var(--s-surface); border-radius: 8px; padding: .6rem .75rem; margin: .4rem 0; max-height: 260px; overflow: auto; }
.seo-aff { list-style: none; padding: 0; margin: .3rem 0; font-size: .92rem; }
.seo-aff li { padding: .2rem 0; overflow-wrap: anywhere; }
.seo-aff__ev { display: block; padding-left: 1.1rem; }
.seo-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .45rem; background: var(--s-skip); vertical-align: middle; }
.seo-dot.st-fail { background: var(--s-bad); } .seo-dot.st-warn { background: #c98a10; }
.seo-meta code { font-size: .85em; }
.seo-catd { border: 1px solid var(--s-line); border-radius: var(--s-radius); margin-bottom: .6rem; padding: 0 .9rem; background: #fff; }
.seo-catd > summary { cursor: pointer; padding: .8rem 0; font-weight: 650; color: var(--s-ink); }
.seo-catd .seo-issues { margin-bottom: .6rem; }

.seo-psi { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8rem; }
.seo-psi__card { border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 1rem; background: #fff; }
.seo-psi__scores { list-style: none; padding: 0; margin: .6rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; text-align: center; }
.seo-psi__scores .n { display: block; font-size: 1.5rem; font-weight: 800; color: var(--s-ink); }
.seo-psi__scores li[data-level=good] .n { color: var(--s-good); } .seo-psi__scores li[data-level=mid] .n { color: var(--s-mid); } .seo-psi__scores li[data-level=bad] .n { color: var(--s-bad); }
.seo-psi__scores .l { color: var(--s-muted); }
.seo-opps { margin: .4rem 0 0; padding-left: 1.1rem; }

.seo-table-wrap { overflow-x: auto; border: 1px solid var(--s-line); border-radius: var(--s-radius); }
.seo-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.seo-table th, .seo-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--s-line); vertical-align: top; }
.seo-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--s-muted); background: #fafbfc; white-space: nowrap; }
.seo-url { min-width: 220px; overflow-wrap: anywhere; } .seo-url span { display: block; }

.seo-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 1.1rem 1.2rem; background: var(--s-surface); }
.seo-cta p { margin: .2rem 0 0; }
.seo-foot { margin-top: 1.6rem; }

@media print {
  .hdr, .ftr, .cookie-notice, .crumbs, .page-hero form, .page-hero .small, .an-info, .an-method, .seo-actions, .seo-cta, .skip, .seo-progress { display: none !important; }
  body { background: #fff !important; font-size: 11pt; }
  .seo-report a { color: inherit; text-decoration: none; }
  .seo-item, .seo-cat, .seo-psi__card, tr { break-inside: avoid; }
  .seo-item > summary { padding: .4rem 0; }
  .seo-ev { max-height: none; overflow: visible; }
  .seo-catd { border: 0; padding: 0; }
  .page-hero { padding: 0 !important; }
}

/* ── V3: estados novos, visões, seções técnicas ── */
.seo-report { --s-opp: #33557f; --s-opp-bg: #edf2fa; }
.seo-counts .st-opp { background: var(--s-opp-bg); color: var(--s-opp); }
.seo-tag.st-opp { background: var(--s-opp-bg); color: var(--s-opp); }
.seo-tag.st-info, .seo-tag.st-na { background: var(--s-skip-bg); color: #3a4757; }
.seo-ico.st-opp { background: #5b7aa6; } .seo-ico.st-na { background: #b6c0cc; }
.seo-dot.st-opp { background: #5b7aa6; }
.seo-tag.sev-alta, .seo-tag.sev-critica { background: var(--s-bad-bg); color: var(--s-bad); }
.seo-tag.sev-media { background: var(--s-mid-bg); color: var(--s-mid); }
.seo-tag.sev-baixa { background: var(--s-skip-bg); color: #3a4757; }
.seo-sevh.st-fail::before { background: var(--s-bad); } .seo-sevh.st-warn::before { background: #d89a1c; } .seo-sevh.st-opp::before { background: #5b7aa6; }

.seo-tabs { display: inline-flex; gap: .25rem; padding: .25rem; margin-top: 1.6rem; background: var(--s-surface); border-radius: 999px; }
.seo-tab { font: inherit; font-weight: 650; font-size: .95rem; border: 0; background: transparent; color: var(--s-muted); padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; min-height: 40px; }
.seo-tab[aria-selected=true] { background: #fff; color: var(--s-ink); box-shadow: 0 1px 3px rgba(12, 26, 43, .12); }
.seo-view[hidden] { display: none !important; }
.seo-lead { font-size: 1.08rem; max-width: 70ch; }
.seo-good { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.seo-good li { padding-left: 1.6rem; position: relative; }
.seo-good li::before { content: '✓'; position: absolute; left: 0; color: var(--s-good); font-weight: 800; }
.seo-prio { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; counter-reset: prio; }
.seo-prio__item { border: 1px solid var(--s-line); border-left-width: 5px; border-radius: var(--s-radius); padding: .9rem 1.1rem; background: #fff; counter-increment: prio; }
.seo-prio__item.st-fail { border-left-color: var(--s-bad); } .seo-prio__item.st-warn { border-left-color: #d89a1c; } .seo-prio__item.st-opp { border-left-color: #5b7aa6; }
.seo-prio__item p { margin: .3rem 0; }
.seo-prio__tag::before { content: counter(prio) '. '; font-weight: 800; color: var(--s-ink); }
.seo-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.seo-plan__col { border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: .9rem 1rem; background: #fff; }
.seo-plan__col h4 { margin: 0 0 .2rem; }
.seo-plan__col ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.seo-plan__col li { margin-bottom: .3rem; }
.seo-cov { margin: 0; padding-left: 1.1rem; }
.seo-note { background: var(--s-surface); border-radius: 8px; padding: .7rem .9rem; font-size: .93rem; }

.seo-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.6rem 0 .4rem; }
.seo-nav__a { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--s-line); background: #fff; font-size: .85rem; text-decoration: none; color: var(--s-ink); }
.seo-nav__a:hover { border-color: var(--s-ink); }
.seo-nav__n { background: var(--s-mid-bg); color: var(--s-mid); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; font-weight: 700; }
.seo-tsec { scroll-margin-top: 90px; padding-top: 1.2rem; border-top: 1px solid var(--s-line); }
.seo-tsec__head h3 { margin-bottom: .2rem; }
.seo-tsec__head p { margin: 0 0 .8rem; }
.seo-more { border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 0 .9rem; margin: .8rem 0; background: #fff; }
.seo-more > summary { cursor: pointer; padding: .7rem 0; font-weight: 650; color: var(--s-ink); }
.seo-more[open] > summary { border-bottom: 1px solid var(--s-line); margin-bottom: .6rem; }
.seo-more > .seo-table-wrap, .seo-more > ul, .seo-more > p { margin-bottom: .8rem; }
.seo-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.seo-chips li { background: var(--s-surface); border-radius: 999px; padding: .2rem .7rem; font-size: .9rem; }

.seo-imgs { display: grid; gap: .6rem; margin-bottom: .8rem; }
.seo-img { display: grid; grid-template-columns: 96px 1fr; gap: .8rem; align-items: start; border-bottom: 1px solid var(--s-line); padding-bottom: .6rem; }
.seo-img__t { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--s-surface); display: block; }
.seo-img p { margin: .15rem 0; }
.seo-img__p { font-weight: 600; color: var(--s-ink); }
@media (max-width: 480px) { .seo-img { grid-template-columns: 64px 1fr; } .seo-img__t { width: 64px; height: 48px; } }

.seo-eeat { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.seo-eeat__dim { border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: .9rem 1rem; background: #fff; }
.seo-eeat__dim h4 { margin: 0 0 .5rem; }
.seo-signals { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .45rem; }
.seo-signals li { display: grid; grid-template-columns: 20px 1fr; gap: .4rem; }
.seo-sig { font-weight: 800; text-align: center; color: var(--s-skip); }
.sig-encontrado .seo-sig { color: var(--s-good); }
.seo-sig__ev { display: block; overflow-wrap: anywhere; }
.seo-signals .seo-tag { margin-left: .35rem; }
.seo-psiwrap { margin-bottom: 1rem; }
.seo-manualbox { flex-basis: 100%; }
.seo-manual { width: 100%; min-height: 180px; font: .85rem/1.4 var(--mono, ui-monospace, Consolas, monospace); }
.seo-copybuf { position: fixed; left: -9999px; top: 0; }

@media print {
  .seo-tabs, .seo-nav, .seo-manualbox { display: none !important; }
  .seo-view { display: block !important; }
  .seo-img__t { display: none; }
  .seo-img { grid-template-columns: 1fr; }
}

/* Conclusão e recomendações (comum às duas visões) */
.seo-concl { scroll-margin-top: 90px; margin-top: 2.6rem; padding: 1.3rem 1.4rem; border: 1px solid var(--s-line); border-top: 5px solid var(--s-brand); border-radius: var(--s-radius); background: #fff; }
.seo-concl h3 { margin-top: 0; }
.seo-concl__b { margin-top: 1.1rem; }
.seo-concl__b h4 { margin: 0 0 .4rem; }
.seo-concl__b ul, .seo-concl__b ol { margin: 0; padding-left: 1.2rem; }
.seo-concl__b li { margin-bottom: .35rem; }
.seo-concl__b .seo-good { padding-left: 0; }
.seo-nav__a--c { border-color: var(--s-brand); color: var(--s-brand); font-weight: 650; }
@media print { .seo-concl { break-inside: avoid; } }

/* ── Diagnóstico e contato comercial (página pública e relatório compartilhado) ── */
.seo-diag { margin-top: 1.8rem; display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); border: 1px solid var(--s-line); border-radius: var(--radius-lg, 16px); overflow: hidden; background: #fff; box-shadow: var(--shadow, none); }
.seo-diag__main { padding: clamp(1.1rem, 3vw, 1.8rem); min-width: 0; }
.seo-diag__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-top: .4rem; }
.seo-diag__score { width: 86px; height: 86px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 7px solid var(--s-line); }
.seo-diag__score b { font-size: 1.9rem; line-height: 1; color: var(--s-ink); }
.seo-diag__score span { font-size: .75rem; color: var(--s-muted); }
.seo-diag__score[data-level=good] { border-color: var(--s-good); } .seo-diag__score[data-level=mid] { border-color: #d89a1c; } .seo-diag__score[data-level=bad] { border-color: var(--s-bad); }
.seo-report .seo-diag__t { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin: 0 0 .35rem; }
.seo-diag__d { margin: 0 0 .3rem; }
.seo-diag__list { list-style: none; padding: 0; margin: 0; }
.seo-diag__list li { padding: .5rem 0; border-top: 1px solid var(--s-line); overflow-wrap: anywhere; }
.seo-diag__list a { color: var(--s-ink); text-underline-offset: 3px; }
.seo-diag__list a:hover { color: var(--s-brand); }
.seo-diag__meta { margin: 1.1rem 0 0; }
.seo-diag__cta { background: var(--brand-soft, #e8f0fe); border-left: 1px solid var(--s-line); padding: clamp(1.1rem, 3vw, 1.8rem); display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.seo-diag__cta h3 { margin: 0; color: var(--s-ink); }
.seo-diag__cta p { margin: 0; }
.seo-diag__ck { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink, #0842a0); }
.seo-diag__ben { margin: .2rem 0 .4rem; padding-left: 1.1rem; }
.seo-diag__ben li { margin: .15rem 0; }
.seo-diag__cta .btn { justify-content: center; text-align: center; min-height: 48px; white-space: normal; }
.seo-diag__note { color: var(--s-muted); }
.seo-report a.btn:focus-visible, .seo-diag__list a:focus-visible { outline: 3px solid var(--s-brand); outline-offset: 3px; }
.seo-wa.btn { display: inline-flex; align-items: center; gap: .5rem; }
.seo-wa__i { width: 1.15em; height: 1.15em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.1 14.9l-.3-.2-2.8.7.8-2.7-.2-.3A8 8 0 0 1 12 4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.1 14.9l-.3-.2-2.8.7.8-2.7-.2-.3A8 8 0 0 1 12 4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.seo-cta .btn { min-height: 44px; }
@media (max-width: 760px) {
  .seo-diag { grid-template-columns: 1fr; }
  .seo-diag__cta { border-left: 0; border-top: 1px solid var(--s-line); }
  .seo-diag__cta .btn, .seo-cta .btn { width: 100%; }
}
@media (max-width: 420px) { .seo-diag__top { grid-template-columns: 1fr; } }
@media print { .seo-diag__cta { display: none !important; } .seo-diag { grid-template-columns: 1fr; box-shadow: none; } }
