/* Portal do Catálogo de Erros: mesma identidade do site TecnoTudo (laranja #F36B21, Manrope + DM Sans, cartões arredondados). */
@font-face { font-family: "DM Sans"; src: url(/fonts/DMSans.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/Manrope.woff2) format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
:root {
  --orange: #f36b21; --orange-dark: #d9510d; --orange-light: #fff1e8; --orange-soft: #fff8f3;
  --ink: #181818; --muted: #727272; --line: #ededed; --soft: #fafafa; --bg: #f1f2f4;
  --ok: #067647; --ok-soft: #dcfae6; --warn: #b54708; --warn-soft: #fef0c7; --bad: #b42318; --bad-soft: #fee4e2; --info: #175cd3; --info-soft: #e0f2fe;
  --radius: 22px; --radius-md: 16px; --radius-sm: 12px; --shadow: 0 16px 50px rgba(0,0,0,.06); --shadow-sm: 0 2px 10px rgba(0,0,0,.05);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --font-head: "Manrope", "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.team { background: var(--bg); }
a { color: var(--orange-dark); text-underline-offset: 2px; } a:hover { color: var(--orange); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.03em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); } h2 { font-size: 1.35rem; margin-top: 1.6rem; } h3 { font-size: 1.1rem; letter-spacing: -.02em; }
p { margin: 0 0 1rem; } ul { padding-left: 1.2rem; }
code { background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .mt { margin-top: 1.1rem; }
:focus-visible { outline: 3px solid rgba(243,107,33,.45); outline-offset: 2px; border-radius: 8px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange); color: #fff; border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px rgba(243,107,33,.22); transition: background .15s, transform .15s; }
.btn:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn.secondary { background: #fff; color: var(--ink); border-color: #e4e4e4; box-shadow: none; } .btn.secondary:hover { border-color: var(--orange); color: var(--orange); background: #fff; }
.btn.danger { background: var(--bad); box-shadow: none; } .btn.light { background: #fff; color: var(--ink); box-shadow: none; } .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); box-shadow: none; }
.btn.small { padding: 7px 12px; font-size: .82rem; border-radius: 10px; } .btn.big { padding: 15px 26px; font-size: 1rem; } .btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* formulários */
label { display: block; font-weight: 700; font-size: .8rem; margin-bottom: 5px; } label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
input, select, textarea { width: 100%; padding: 11px 13px; border: 1px solid #dcdcdc; border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); } input[type=checkbox] { width: auto; } textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: 0; box-shadow: 0 0 0 3px rgba(243,107,33,.18); }
.stack { display: grid; gap: 14px; } .row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; margin-bottom: 14px; } .grow2 { grid-column: span 2; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm); } .card.narrow, .narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.split { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 14px; background: var(--info-soft); border: 1px solid #b9defa; } .flash.success { background: var(--ok-soft); border-color: #a9dfc0; } .flash.error { background: var(--bad-soft); border-color: #f3b6b1; color: var(--bad); }
.warn { background: var(--warn-soft); border: 1px solid #f2cf8f; border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0; }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--orange-light); color: var(--orange-dark); white-space: nowrap; } .badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--info-soft); color: var(--info); } .badge.gray { background: #f1f1f1; color: #666; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; } .kv dt { color: var(--muted); font-size: .85rem; } .kv dd { margin: 0; min-width: 0; word-break: break-word; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; font-size: .85rem; } pre.diff span.add { color: var(--ok); display: block; } pre.diff span.del { color: var(--bad); display: block; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 16px; } table { width: 100%; border-collapse: collapse; } th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f1f1f1; vertical-align: top; font-size: .92rem; } th { background: var(--soft); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs { display: flex; gap: 8px; margin: 10px 0; } .tabs a { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; } .tabs a.on { background: var(--orange-light); border-color: var(--orange); color: var(--orange-dark); } .tabs b { background: var(--orange); color: #fff; border-radius: 999px; padding: 0 8px; margin-left: 6px; font-size: .78rem; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 14px 0 20px; } .stat { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius-md); padding: 14px 16px; text-decoration: none; color: inherit; display: block; box-shadow: var(--shadow-sm); } .stat b { display: block; font-size: 1.6rem; font-family: var(--font-head); } .stat span { color: var(--muted); font-size: .84rem; }
.sol-box { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; margin: 0 0 12px; background: var(--soft); } .sol-box legend { font-weight: 700; padding: 0 8px; }
.preview { border: 1px dashed #c9ccd2; border-radius: var(--radius-sm); padding: 8px 12px; margin-top: 8px; background: #fff; }
.md p { margin: 0 0 10px; } .md ol, .md ul { margin: 0 0 10px; padding-left: 22px; } .md blockquote { margin: 0 0 10px; padding: 4px 12px; border-left: 3px solid var(--orange); background: var(--orange-soft); } .md pre code { background: none; border: 0; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-size: .85rem; flex: none; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; } .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; } .bar i { display: block; width: 100%; background: var(--orange); border-radius: 4px 4px 0 0; min-height: 2px; } .bar small { font-size: .6rem; color: var(--muted); }
.qr { max-width: 220px; margin: 10px auto; } .qr svg { width: 100%; height: auto; } .inline { display: inline; }

/* equipe (área privada) */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; } .side { background: #111; color: #cfcfcf; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.side .brand { display: grid; gap: 6px; color: #fff; text-decoration: none; font-weight: 800; padding: 0 6px; } .side .brand img { height: 34px; width: auto; justify-self: start; } .side .brand small { color: #ff9b65; font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.side nav { display: grid; gap: 2px; } .side nav a { color: #c9c9c9; text-decoration: none; padding: 9px 12px; border-radius: 12px; font-size: .9rem; font-weight: 600; } .side nav a:hover { background: rgba(255,255,255,.07); color: #fff; } .side nav a[aria-current="page"] { background: rgba(243,107,33,.18); color: #ff9b65; }
.side-out { margin-top: auto; display: grid; gap: 8px; font-size: .8rem; } .side-out button { background: transparent; border: 1px solid #444; color: #ddd; border-radius: 12px; padding: 8px; cursor: pointer; font: inherit; }
.content { padding: 26px 30px 60px; max-width: 1200px; width: 100%; }

/* público: igual ao site */
.announcement { background: var(--ink); color: #fff; padding: 9px 16px; text-align: center; font-size: .75rem; letter-spacing: .02em; }
.pub-head { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid rgba(0,0,0,.06); }
.pub-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 74px; } .pub-head .brand img { height: 44px; width: auto; display: block; }
.pub-head nav { display: flex; align-items: center; gap: 22px; } .pub-head nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; } .pub-head nav a:hover { color: var(--orange); } .pub-head nav a.cta { color: #fff; }
.hero { position: relative; background: #141414; color: #fff; padding: 64px 0 72px; isolation: isolate; overflow: hidden; }
.hero::after { content: ""; position: absolute; z-index: -2; top: 0; right: 0; width: 44%; height: 100%; background: linear-gradient(155deg, #ff8a4b 0%, #f36b21 45%, #c4470a 100%); clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 15% 20%, rgba(243,107,33,.14), transparent 40%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ffe0ce; border-radius: 50px; background: var(--orange-soft); padding: 7px 13px; color: #bc4a12; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; } .hero .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #ffb48a; }
.eyebrow .dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 4px rgba(243,107,33,.25); }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.05em; max-width: 680px; } .hero h1 .highlight { color: #ff8a4b; }
.hero p { color: #c8c8c8; max-width: 560px; font-size: 1.02rem; }
.search { display: flex; gap: 8px; max-width: 560px; margin: 22px 0 18px; background: #fff; border-radius: var(--radius-md); padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.3); } .search input { flex: 1; border: 0; background: transparent; box-shadow: none; padding: 12px 14px; } .search input:focus { box-shadow: none; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 6px; } .hero-stats b { display: block; font: 800 1.6rem var(--font-head); color: #fff; } .hero-stats span { font-size: .78rem; color: #aaa; }
.section { padding: 54px 0; } .section.alt { background: var(--soft); } .section-tag { color: var(--orange); font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; display: block; margin-bottom: 6px; }
.section-head { max-width: 660px; margin-bottom: 26px; } .section-head h2 { margin-top: 0; font-size: 1.7rem; } .section-head p { color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 22px; } .chips a { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .86rem; } .chips a:hover { border-color: var(--orange); color: var(--orange); } .chips a.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } a.card.link { display: grid; gap: 6px; align-content: start; text-decoration: none; color: inherit; margin: 0; transition: border-color .15s, transform .15s, box-shadow .15s; } a.card.link:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
a.card.link .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; } a.card.link strong { font-family: var(--font-head); font-size: 1.02rem; letter-spacing: -.02em; line-height: 1.25; } a.card.link small { color: var(--muted); }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; } .step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); } .step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--orange-light); color: var(--orange-dark); font: 800 1rem var(--font-head); margin-bottom: 10px; } .step strong { display: block; margin-bottom: 4px; font-family: var(--font-head); } .step span { color: var(--muted); font-size: .9rem; }
.callout { display: grid; gap: 8px; background: var(--orange-soft); border: 1px solid #ffe0ce; border-radius: var(--radius); padding: 22px; margin: 18px 0; } .callout h3 { margin: 0; }
.cta-band { background: #141414; color: #fff; border-radius: var(--radius); padding: 34px; text-align: center; position: relative; overflow: hidden; } .cta-band h2 { color: #fff; margin-top: 0; } .cta-band p { color: #c8c8c8; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; } .crumbs a { color: var(--muted); }
.err-head { background: #141414; color: #fff; padding: 34px 0 38px; position: relative; overflow: hidden; isolation: isolate; } .err-head::after { content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 30%; height: 100%; background: linear-gradient(155deg, #ff8a4b, #c4470a); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); }
.err-head h1 { color: #fff; margin: 8px 0 6px; } .err-head .crumbs, .err-head .crumbs a { color: #aaa; } .err-head code { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #ffb48a; font-size: .95rem; }
.sol h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pub { padding-top: 0; } main.pub-main { min-height: 50vh; }
.site-footer { background: #151515; color: #fff; padding: 46px 0 22px; font-size: .85rem; } .site-footer a { color: #aaa; text-decoration: none; display: block; padding: 4px 0; } .site-footer a:hover { color: #ff9b65; } .site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; } .site-footer p { color: #aaa; line-height: 1.8; }
.site-footer .cols { display: grid; gap: 30px; grid-template-columns: 1.6fr 1fr 1fr; } .site-footer img { height: 40px; width: auto; margin-bottom: 12px; } .footer-bottom { border-top: 1px solid #303030; margin-top: 26px; padding-top: 16px; color: #888; font-size: .75rem; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; } .side nav { display: flex; flex-wrap: wrap; } .side-out { margin-top: 0; margin-left: auto; } .content { padding: 16px 14px 50px; } .grow2 { grid-column: auto; }
  .kv { grid-template-columns: 1fr; gap: 0; } .kv dt { margin-top: 10px; }
  .hero { padding: 44px 0 56px; } .hero::after { width: 100%; height: 30%; top: auto; bottom: 0; clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%); opacity: .9; } .pub-head nav a:not(.cta) { display: none; } .pub-head .wrap { min-height: 64px; } .site-footer .cols { grid-template-columns: 1fr; }
  table.stackable thead { display: none; } table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; width: 100%; } table.stackable tr { padding: 10px 12px; border-bottom: 1px solid var(--line); } table.stackable td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; } table.stackable td::before { content: attr(data-label); color: var(--muted); font-size: .76rem; text-align: left; flex: none; }
  .btn, input, select, textarea { min-height: 44px; } input, select, textarea { font-size: 16px; } .search { flex-direction: column; } .search .btn { width: 100%; }
}

.pub-main > .flash { width: min(1160px, calc(100% - 40px)); margin: 16px auto 0; } .section .card.narrow { margin-top: 10px; }

/* Botões sempre legíveis (mesma regra do site) */
a.btn, button.btn { text-decoration: none; }
a.btn:not(.secondary):not(.light):not(.ghost), button.btn:not(.secondary):not(.light):not(.ghost) { color: #fff; }
a.btn.secondary, button.btn.secondary, a.btn.light, button.btn.light { color: var(--ink); }
a.btn.secondary:hover, button.btn.secondary:hover { color: var(--orange); } a.btn.light:hover { color: var(--orange-dark); }
a.btn.ghost, button.btn.ghost { color: #fff; }
.pub-head nav a.btn { color: #fff; } .site-footer a.btn { display: inline-flex; padding: 12px 20px; } .side nav a.btn { padding: 9px 12px; }
.btn[disabled] { opacity: .6; }

.hero code, .err-head code, .cta-band code { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #ffb48a; }
.hero p code { font-weight: 700; letter-spacing: .02em; }
.site-footer a.btn.small { color: #fff; display: inline-flex; margin: 4px 0 8px; }

.vote { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); } .vote-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .vote-row strong { margin-right: 4px; }
.pub-head .who { font-weight: 700; font-size: .9rem; } .pub-head nav form { margin: 0; } .pub-head nav a.team-link { color: var(--muted); font-size: .82rem; }

/* Primeira página enxuta: só buscar */
.finder { background: linear-gradient(180deg, #fff8f3 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: 38px 0 22px; } .finder h1 { margin-bottom: 4px; } .finder .search { box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin: 16px 0 14px; max-width: 640px; } .finder .chips { margin: 0; }
.results { padding: 8px 0 40px; } .grp { font-size: 1.05rem; margin: 22px 0 8px; color: var(--ink); } .rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.rows li + li { border-top: 1px solid var(--line); } .rows a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; color: var(--ink); text-decoration: none; } .rows a:hover { background: var(--orange-soft); } .rows code { flex: none; min-width: 108px; text-align: center; } .rows .t { flex: 1; font-weight: 600; min-width: 0; }
.how { margin-top: 26px; max-width: 640px; }
.slim-foot { border-top: 1px solid var(--line); padding: 16px 0 26px; color: var(--muted); font-size: .82rem; } .slim-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .slim-foot nav { display: flex; gap: 16px; flex-wrap: wrap; } .slim-foot a { color: var(--muted); text-decoration: none; } .slim-foot a:hover { color: var(--orange); }
@media (max-width: 700px) { .rows a { flex-wrap: wrap; gap: 6px 10px; } .rows .t { flex-basis: 100%; order: 3; } .finder { padding: 26px 0 16px; } }

/* Primeira página com ícones por categoria */
.finder .search { position: relative; } .finder .search .s-ic, .cat-head .search .s-ic { display: grid; place-items: center; padding-left: 12px; color: var(--muted); } .finder .search .s-ic svg, .cat-head .search .s-ic svg { width: 20px; height: 20px; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 6px 0 4px; }
.tile { display: grid; gap: 4px; justify-items: start; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--shadow); } .tile strong { font-family: var(--font-head); font-size: .98rem; letter-spacing: -.02em; line-height: 1.2; } .tile small { color: var(--muted); font-size: .8rem; } .tile.soon { background: var(--soft); } .tile.soon small { color: #9a9a9a; }
.tile-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--orange-light); color: var(--orange-dark); margin-bottom: 8px; } .tile-ic svg { width: 24px; height: 24px; } .tile.soon .tile-ic { background: #efefef; color: #8a8a8a; } .tile-ic.big { width: 62px; height: 62px; border-radius: 18px; margin: 0; flex: none; } .tile-ic.big svg { width: 32px; height: 32px; }
.cat-head { background: linear-gradient(180deg, #fff8f3 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: 26px 0 20px; } .cat-head .search { margin: 16px 0 0; max-width: 640px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.cat-title { display: flex; gap: 16px; align-items: center; } .cat-title h1 { margin-bottom: 2px; } .cat-title p { margin: 0; } .cat-head .crumbs { margin-bottom: 12px; }
.empty-cat { text-align: center; padding: 34px 10px; display: grid; justify-items: center; gap: 4px; } .empty-cat .tile-ic { margin-bottom: 10px; }
@media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; } .tile { padding: 14px 12px; } .cat-title { align-items: flex-start; } }

/* ===== Portal (v11): capa grande, faixas de conteúdo, páginas com coluna lateral ===== */
.pub-head nav .pub-links { display: flex; gap: 22px; }
.pub-head nav .pub-links a[aria-current="page"] { color: var(--orange-dark); }
.portal-hero { position: relative; background: #141414; color: #fff; padding: 64px 0 56px; isolation: isolate; overflow: hidden; }
.portal-hero::after { content: ""; position: absolute; z-index: -2; top: 0; right: 0; width: 30%; height: 100%; background: linear-gradient(155deg, #ff8a4b 0%, #f36b21 45%, #c4470a 100%); clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%); opacity: .95; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; }
.portal-hero code { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #ffb48a; font-weight: 700; }
.hero-cards { position: relative; display: grid; gap: 14px; }
.hero-card { display: grid; gap: 8px; background: #fff; color: var(--ink); text-decoration: none; border-radius: var(--radius); padding: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transition: transform .2s; }
.hero-card:hover { transform: translateY(-3px); color: var(--ink); } .hero-card.small { margin-left: 46px; padding: 14px 18px; gap: 4px; } .hero-card.small strong { font-size: .95rem; }
.hero-card code { background: var(--orange-light); border-color: #ffd6bd; color: var(--orange-dark); font-weight: 700; }
.hc-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .76rem; color: var(--muted); font-weight: 600; }
.hero-card strong { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.25; }
.hc-lines { display: grid; gap: 6px; margin-top: 4px; } .hc-lines i { font-style: normal; font-size: .84rem; color: #4a4a4a; display: flex; align-items: center; gap: 8px; } .hc-lines i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
.hc-go { font-weight: 700; color: var(--orange-dark); font-size: .88rem; margin-top: 4px; }
.portal-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 12% 18%, rgba(243,107,33,.18), transparent 45%); }
.portal-hero .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #ffb48a; }
.portal-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.06; letter-spacing: -.05em; max-width: 760px; margin-bottom: 14px; } .portal-hero h1 .highlight { color: #ff8a4b; }
.portal-hero .lead { color: #cfcfcf; max-width: 620px; font-size: 1.05rem; }
.search .s-ic { display: grid; place-items: center; padding-left: 12px; color: var(--muted); } .search .s-ic svg { width: 20px; height: 20px; }
.search.big { max-width: 680px; padding: 8px; margin: 24px 0 16px; } .search.big input { font-size: 1.05rem; padding: 14px 12px; } .search.big .btn { padding: 14px 26px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 760px; } .quick span { color: #9a9a9a; font-size: .82rem; margin-right: 4px; }
.quick a { color: #fff; text-decoration: none; font-size: .84rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); } .quick a:hover { border-color: #ff8a4b; color: #ffb48a; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); max-width: 760px; }
.hero-stats div { display: flex; flex-direction: column-reverse; } .hero-stats dt { font-size: .78rem; color: #a8a8a8; } .hero-stats dd { margin: 0; font: 800 1.9rem/1.1 var(--font-head); color: #fff; letter-spacing: -.03em; }

.band { padding: 56px 0; } .band.alt { background: var(--soft); border-block: 1px solid var(--line); }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; } .band-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); } .band-head p { margin: 6px 0 0; max-width: 620px; }
.band-head .more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tile { gap: 6px; padding: 20px 18px; } .tile .tile-desc { color: var(--muted); font-size: .84rem; line-height: 1.45; } .tile small { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--orange-dark); } .tile.soon small { color: #9a9a9a; font-weight: 600; }
.grid.feat { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } .grid.feat a.card.link small { margin-top: 2px; }
.howto { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.howto article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; } .howto h3 { margin: 4px 0 6px; } .howto p { color: #4a4a4a; font-size: .92rem; } .howto a { margin-top: auto; font-weight: 700; text-decoration: none; }
.split-2 { display: grid; gap: 34px; grid-template-columns: 1fr 1fr; align-items: start; }
.families { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.families a { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.families a:hover { border-color: var(--orange); } .families strong { font-family: var(--font-head); } .families span { grid-column: 1; color: var(--muted); font-size: .85rem; } .families em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 700; color: var(--orange-dark); font-size: .85rem; white-space: nowrap; }
.rows .date { color: var(--muted); font-size: .8rem; flex: none; } .rows .cat-name { color: var(--muted); font-size: .82rem; flex: none; }
.guides { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guides a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; } .guides a:hover { border-color: var(--orange); transform: translateY(-2px); }
.guides .tile-ic { margin: 0; width: 40px; height: 40px; border-radius: 12px; flex: none; } .guides .tile-ic svg { width: 20px; height: 20px; } .guides strong { font-family: var(--font-head); font-size: .95rem; line-height: 1.25; }
.steps .step span { display: block; }
.cta-band { padding: 44px 34px; } .cta-band::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(243,107,33,.35), transparent 70%); } .cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); } .center-row { justify-content: center; position: relative; z-index: 1; }

/* Busca: atalhos por categoria */
.chips a b { font-weight: 800; color: var(--orange-dark); margin-left: 4px; font-size: .78rem; } .chips a.on b { color: #fff; }
.finder .facets { margin-top: 4px; } .grp a { color: inherit; text-decoration: none; } .grp a:hover { color: var(--orange); } .grp .muted { font-weight: 600; font-size: .85rem; margin-left: 4px; }

/* Categoria e erro: conteúdo + coluna lateral */
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.side-col { display: grid; gap: 14px; position: sticky; top: 96px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.side-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.cat-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 60vh; overflow-y: auto; }
.cat-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 600; } .cat-nav a:hover { background: var(--orange-soft); }
.cat-nav a[aria-current="page"] { background: var(--orange-light); color: var(--orange-dark); } .cat-nav span:nth-child(2) { flex: 1; min-width: 0; } .cat-nav em { font-style: normal; color: var(--muted); font-size: .8rem; }
.mini-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); color: var(--orange-dark); flex: none; } .mini-ic svg { width: 16px; height: 16px; }
a.link-box { display: grid; gap: 2px; text-decoration: none; color: var(--ink); } a.link-box:hover { border-color: var(--orange); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; color: var(--muted); font-size: .9rem; } .facts b { color: var(--ink); font-family: var(--font-head); font-size: 1.05rem; }
.jump { margin: 16px 0 6px; } .family { scroll-margin-top: 90px; } .grp[id] { scroll-margin-top: 90px; }
.cat-head .crumbs a { color: var(--muted); }

.err-head { padding: 38px 0 42px; } .err-title { display: flex; gap: 18px; align-items: flex-start; } .err-title h1 { margin: 6px 0 10px; max-width: 760px; }
.tile-ic.dark { background: rgba(255,255,255,.08); color: #ffb48a; border: 1px solid rgba(255,255,255,.14); }
.code-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.copy { background: transparent; color: #cfcfcf; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; } .copy:hover { color: #fff; border-color: #ff8a4b; } .sr-copy { position: fixed; top: 0; left: -9999px; opacity: 0; }
.section.article { padding: 40px 0 56px; } .article .main-col > h2.first { margin-top: 0; } .article .main-col h2 { scroll-margin-top: 90px; } .article .callout { scroll-margin-top: 90px; }
.article .md { font-size: 1.02rem; line-height: 1.7; }
.toc { display: grid; gap: 2px; } .toc a { padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; border-left: 3px solid transparent; } .toc a:hover { background: var(--orange-soft); border-left-color: var(--orange); }
.help-box { background: #141414; color: #fff; border-color: #141414; } .help-box strong { font-family: var(--font-head); font-size: 1.02rem; } .help-box p { color: #c8c8c8; margin: 4px 0 12px; }
.side-box .kv { grid-template-columns: max-content 1fr; } .side-box .kv dt { font-size: .82rem; } .side-box .kv dd { font-size: .9rem; font-weight: 600; }
.safety { margin: 22px 0 8px; padding: 16px 18px; border: 1px dashed #d8d8d8; border-radius: var(--radius-md); background: var(--soft); } .safety ul { margin: 6px 0 0; color: #4a4a4a; font-size: .92rem; }

.site-footer .cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .site-footer p { max-width: 340px; }

@media (max-width: 1000px) {
  .layout-side { grid-template-columns: 1fr; } .side-col { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .cat-nav { max-height: none; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .split-2 { grid-template-columns: 1fr; } .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; } .hero-cards { display: none; } .portal-hero::after { width: 18%; clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%); }
}
@media (max-width: 900px) {
  .pub-head .wrap { flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; min-height: 0; }
  .pub-head .brand { margin-right: auto; } .pub-head .brand img { height: 36px; }
  .pub-head nav { display: contents; } .pub-head .who { font-size: .82rem; }
  .pub-head nav .pub-links { order: 9; flex-basis: 100%; display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; } .pub-head nav .pub-links::-webkit-scrollbar { display: none; }
  .pub-head nav .pub-links a { display: inline-block; flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; }
  .portal-hero { padding: 40px 0 48px; } .portal-hero::after { width: 100%; height: 8px; top: auto; bottom: 0; clip-path: none; opacity: 1; }
  .hero-stats { gap: 22px; } .hero-stats dd { font-size: 1.5rem; }
  .search, .search.big { flex-direction: row; flex-wrap: wrap; } .search .s-ic { display: none; } .search input { min-width: 0; flex: 1 1 200px; } .search .btn { flex: 1 1 100%; }
  .err-head::after { width: 100%; height: 8px; top: auto; bottom: 0; clip-path: none; }
  .band { padding: 40px 0; }
}
@media (max-width: 700px) {
  .tiles { grid-template-columns: repeat(2, 1fr); } .tile .tile-desc { display: none; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .err-title .tile-ic.big { display: none; } .side-col { grid-template-columns: 1fr; } .cat-nav { grid-template-columns: 1fr; }
  .families a { grid-template-columns: 1fr; } .families em { grid-column: 1; grid-row: auto; }
  .cta-band { padding: 30px 20px; }
}
