/* ==========================================================================
   EMBER DESIGN SYSTEM v1.3 — COMPONENTES
   Requer ember-tokens.css carregado antes.
   Inclui: ponteiro grosso (44px), prefers-contrast, forced-colors e impressão.
   ========================================================================== */
/* ==========================================================================
   06 — BOTÕES E AÇÕES
   ========================================================================== */
.btn {
  --btn-h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 18px;
  font-family: var(--font-ui); font-size: var(--t-sm); font-weight: 600; letter-spacing: var(--tr-snug);
  border: 1px solid transparent; border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out),
              color var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out),
              transform var(--d-instant) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--action-solid); color: var(--on-action); box-shadow: var(--e-brand); }
.btn-primary:hover { background: var(--action-solid-hover); }
.btn-primary:active { background: var(--action-solid-press); box-shadow: none; }
.btn-gradient { background: var(--brand-gradient-strong); color: var(--on-action); box-shadow: var(--e-brand); }
.btn-gradient:hover { filter: saturate(1.08) brightness(1.04); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-muted); }
.btn-quiet:hover { background: var(--surface-sunk); color: var(--ink); }
.btn-brandquiet { background: var(--action-soft); color: var(--ink-brand); }
.btn-brandquiet:hover { background: color-mix(in srgb, var(--action-soft) 70%, var(--flame-200)); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.94); }
.btn-sm { --btn-h: 32px; padding: 0 14px; font-size: var(--t-xs); }
.btn-lg { --btn-h: 50px; padding: 0 26px; font-size: var(--t-body); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  opacity: .45; cursor: not-allowed; box-shadow: none; pointer-events: none;
}
.btn-icon { width: var(--btn-h); padding: 0; }
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
  content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-secondary.btn-loading::after { border-color: var(--line-strong); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.link-inline {
  color: var(--ink-brand); text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  text-decoration-color: var(--flame-200);
  transition: text-decoration-color var(--d-fast) var(--ease-out);
}
.link-inline:hover { text-decoration-color: var(--action); }
/* ==========================================================================
   07 — FORMULÁRIOS
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-5); }
.field-label { font-size: var(--t-sm); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.field-label span { color: var(--ink-subtle); font-weight: 400; font-size: var(--t-xs); }
.control {
  height: 44px; padding: 0 14px; width: 100%;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out);
}
textarea.control { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.55; min-height: 96px; }
.control::placeholder { color: var(--ink-subtle); }
.control:hover { border-color: var(--n-400); }
.control:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px var(--action-ring); }
.control[disabled] { background: var(--surface-sunk); color: var(--ink-subtle); cursor: not-allowed; }
.control.is-error { border-color: var(--danger); }
.control.is-error:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.control.is-ok { border-color: var(--ok); }
.field-help { font-size: var(--t-xs); color: var(--ink-subtle); display: flex; align-items: center; gap: 5px; }
.field-help.error { color: var(--danger); }
.field-help.ok { color: var(--ok); }
.field-affix { position: relative; display: flex; align-items: center; }
.field-affix svg { position: absolute; left: 13px; color: var(--ink-subtle); pointer-events: none; }
.field-affix .control { padding-left: 40px; }
select.control { appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap > svg { position: absolute; right: 13px; pointer-events: none; color: var(--ink-subtle); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.check input { appearance: none; width: 19px; height: 19px; border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--surface); flex-shrink: 0; margin-top: 1px; cursor: pointer; position: relative; transition: all var(--d-fast) var(--ease-out); }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--action); border-color: var(--action); }
.check input[type="checkbox"]:checked::after {
  content: ''; position: absolute; inset: 0;
  background: no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.check input[type="radio"]:checked::after { content: ''; position: absolute; inset: 4px; background: #fff; border-radius: 50%; }
.check-text b { display: block; font-size: var(--t-sm); font-weight: 600; }
.check-text span { font-size: var(--t-xs); color: var(--ink-subtle); }
.switch { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; }
.switch-track { width: 44px; height: 26px; border-radius: var(--r-pill); background: var(--line-strong); position: relative; flex-shrink: 0; transition: background var(--d-base) var(--ease-out); }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--e-1); transition: transform var(--d-base) var(--ease-out); }
.switch[aria-checked="true"] .switch-track { background: var(--action); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(18px); }
.switch-text b { display: block; font-size: var(--t-sm); font-weight: 600; }
.switch-text span { font-size: var(--t-xs); color: var(--ink-subtle); }
/* ==========================================================================
   08 — NAVEGAÇÃO
   ========================================================================== */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: var(--s-6); padding: 0 var(--s-6); height: 66px;
}
.site-nav { display: flex; gap: var(--s-1); flex: 1; }
.site-nav a {
  position: relative; font-size: var(--t-sm); font-weight: 600; color: var(--ink-muted);
  text-decoration: none; padding: 10px 12px; border-radius: var(--r-sm);
  transition: color var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
}
.site-nav a:hover { color: var(--ink); background: var(--surface-sunk); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--brand-gradient);
}
.site-actions { display: flex; align-items: center; gap: var(--s-2); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-subtle); flex-wrap: wrap; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink-brand); text-decoration: underline; text-underline-offset: 2px; }
.crumbs svg { color: var(--line-strong); }
.crumbs b { font-weight: 500; color: var(--ink); }
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  background: none; border: 0; cursor: pointer; padding: 12px 14px;
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-muted); white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink-brand); border-bottom-color: var(--action); }
.tab-panel { padding: var(--s-5) 0 0; font-size: var(--t-sm); color: var(--ink-muted); }
.tab-panel[hidden] { display: none; }
.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 600; color: var(--ink-muted);
  text-decoration: none; border: 1px solid transparent; padding: 0 10px;
  transition: all var(--d-fast) var(--ease-out);
}
.pager a:hover { background: var(--surface-sunk); color: var(--ink); }
.pager a[aria-current="page"] { background: var(--action-solid); color: var(--on-action); box-shadow: var(--e-brand); }
.pager .gap { color: var(--ink-subtle); }
.toc { border-left: 2px solid var(--line); padding-left: var(--s-4); }
.toc-title { font-size: var(--t-xs); font-weight: 700; color: var(--ink-subtle); margin-bottom: var(--s-3); }
.toc a {
  display: block; font-size: var(--t-sm); color: var(--ink-muted); text-decoration: none;
  padding: 5px 0; line-height: 1.45; border-left: 2px solid transparent; margin-left: calc(var(--s-4) * -1 - 2px); padding-left: var(--s-4);
  transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink-brand); border-left-color: var(--action); font-weight: 600; }
.toc a.lvl-3 { padding-left: calc(var(--s-4) + 14px); font-size: var(--t-xs); }
.progress-bar { height: 3px; background: var(--surface-sunk); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand-gradient); width: 42%; }
.site-footer { background: var(--surface-invert); color: var(--n-300); padding: var(--s-9) var(--s-7) var(--s-6); border-radius: var(--r-lg); }
[data-theme="dark"] .site-footer { background: var(--surface-sunk); color: var(--ink-muted); border: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
.footer-grid h5 { font-size: var(--t-xs); font-weight: 700; color: var(--n-0); margin-bottom: var(--s-4); }
[data-theme="dark"] .footer-grid h5 { color: var(--ink); }
.footer-grid a { display: block; font-size: var(--t-sm); color: inherit; opacity: .78; text-decoration: none; padding: 4px 0; }
.footer-grid a:hover { opacity: 1; color: var(--flame-300); }
.footer-base { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--t-xs); opacity: .7; }
[data-theme="dark"] .footer-base { border-color: var(--line); }
/* ==========================================================================
   09 — CARTÕES EDITORIAIS
   ========================================================================== */
.kicker {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--t-2xs); font-weight: 700; color: var(--ink-brand);
  letter-spacing: var(--tr-wide); text-decoration: none;
}
.kicker::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--action); }
.kicker:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta-line { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; font-size: var(--t-xs); color: var(--ink-subtle); }
.meta-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-item svg { opacity: .8; }
/* Card padrão de lista */
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--e-2); }
.card-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--surface-sunk); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .flag { position: absolute; top: 10px; left: 10px; }
.card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.card-title { font-size: var(--t-h4); font-weight: 700; line-height: 1.35; letter-spacing: var(--tr-snug); }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--ink-brand); }
.card-summary { font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.58; }
.card-foot { margin-top: auto; padding-top: var(--s-1); }
/* Card horizontal (listas densas, "mais lidos", relacionados) */
.card-h { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.card-h .card-thumb { aspect-ratio: 1 / 1; border-radius: var(--r-sm); }
.card-h .card-title { font-size: var(--t-body); }
/* Card de capa (chamada principal) */
.card-cover { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; }
.card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,14,16,0) 32%, rgba(15,14,16,.55) 62%, rgba(15,14,16,.88) 100%);
}
.card-cover-body { position: relative; z-index: 1; padding: var(--s-7); color: #fff; max-width: 62ch; }
.card-cover-body .kicker { color: #fff; }
.card-cover-body .kicker::before { background: var(--amber-500); }
.card-cover-title { font-size: var(--t-h2); font-weight: 800; line-height: 1.16; letter-spacing: var(--tr-tight); margin: var(--s-3) 0; }
.card-cover-body .meta-line { color: rgba(255,255,255,.78); }
/* Card numerado (ranking — sequência real) */
.rank-list { counter-reset: rank; display: grid; gap: var(--s-1); }
.rank-item { counter-increment: rank; display: grid; grid-template-columns: 34px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rank-item:last-child { border-bottom: 0; }
.rank-item::before { content: counter(rank, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--t-body); font-weight: 500; color: var(--flame-500); }
.rank-item h4 { font-size: var(--t-body); font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.rank-item h4 a { text-decoration: none; }
.rank-item h4 a:hover { color: var(--ink-brand); }
/* Etiquetas e sinalizadores */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--t-2xs); font-weight: 600; padding: 3px 9px;
  border-radius: var(--r-xs); background: var(--surface-sunk); color: var(--ink-muted);
  border: 1px solid var(--line); text-decoration: none;
  transition: all var(--d-fast) var(--ease-out);
}
a.tag:hover { border-color: var(--action); color: var(--ink-brand); background: var(--action-soft); }
.tag-brand { background: var(--action-soft); border-color: var(--line-brand); color: var(--ink-brand); }
.flag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: var(--r-xs);
  background: var(--surface); color: var(--ink); box-shadow: var(--e-1);
}
.flag-live { background: var(--action-solid); color: var(--on-action); }
.flag-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s var(--ease-in-out) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.flag-sponsor { background: var(--warn-soft); color: var(--warn); }
.flag-updated { background: var(--info-soft); color: var(--info); }
/* Autor */
.byline { display: flex; align-items: center; gap: var(--s-3); }
.avatar { border-radius: 50%; object-fit: cover; background: var(--surface-sunk); flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: var(--ink-muted); }
.avatar-brand { background: var(--brand-gradient-strong); color: var(--on-action); }
.avatar-24 { width: 24px; height: 24px; font-size: 10px; }
.avatar-32 { width: 32px; height: 32px; font-size: 12px; }
.avatar-44 { width: 44px; height: 44px; font-size: 14px; }
.avatar-64 { width: 64px; height: 64px; font-size: 20px; }
.byline-name { font-size: var(--t-sm); font-weight: 600; }
.byline-name a { text-decoration: none; }
.byline-name a:hover { color: var(--ink-brand); }
.byline-role { font-size: var(--t-xs); color: var(--ink-subtle); }
.verified { color: var(--info); }
/* ==========================================================================
   10 — PÁGINA DE ARTIGO
   ========================================================================== */
.article-hero { max-width: var(--w-narrow); }
.article-title { font-size: var(--t-h1); font-weight: 800; letter-spacing: -.028em; line-height: 1.1; margin: var(--s-4) 0; }
.article-lede { font-family: var(--font-read); font-size: var(--t-body-lg); line-height: 1.6; color: var(--ink-muted); }
.article-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) 0; margin-top: var(--s-6);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.share-row { display: flex; gap: var(--s-2); }
.share-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-muted); display: grid; place-items: center; cursor: pointer;
  transition: all var(--d-fast) var(--ease-out);
}
.share-btn:hover { color: var(--ink-brand); border-color: var(--action); background: var(--action-soft); }
.prose { font-family: var(--font-read); font-size: var(--t-body-lg); line-height: var(--lh-read); color: var(--ink); max-width: var(--w-prose); }
.prose > * + * { margin-top: var(--s-6); }
.prose h2 { font-family: var(--font-ui); font-size: var(--t-h2); font-weight: 700; letter-spacing: var(--tr-tight); line-height: 1.22; margin-top: var(--s-10); }
.prose h3 { font-family: var(--font-ui); font-size: var(--t-h3); font-weight: 700; letter-spacing: var(--tr-snug); margin-top: var(--s-8); }
.prose a { color: var(--ink-brand); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--flame-200); }
.prose a:hover { text-decoration-color: var(--action); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: var(--s-6); display: grid; gap: var(--s-3); }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before { content: ''; position: absolute; left: calc(var(--s-5) * -1); top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--flame-300); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--flame-500); font-family: var(--font-ui); font-weight: 700; font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-9) 0; }
.pullquote {
  font-family: var(--font-read); font-size: 1.45rem; line-height: 1.42; font-weight: 400;
  border-left: 3px solid var(--action); padding-left: var(--s-6); color: var(--ink);
  font-style: italic; margin-block: var(--s-9);
}
.pullquote cite { display: block; font-family: var(--font-ui); font-size: var(--t-xs); font-style: normal; color: var(--ink-subtle); margin-top: var(--s-4); }
figure.media { margin-block: var(--s-8); }
figure.media img { width: 100%; border-radius: var(--r-md); background: var(--surface-sunk); }
figcaption { font-family: var(--font-ui); font-size: var(--t-xs); color: var(--ink-subtle); margin-top: var(--s-3); line-height: 1.5; display: flex; gap: var(--s-2); }
figcaption b { color: var(--ink-muted); font-weight: 600; flex-shrink: 0; }
.takeaways {
  background: var(--surface); border: 1px solid var(--line-brand); border-radius: var(--r-md);
  padding: var(--s-6); font-family: var(--font-ui); font-size: var(--t-sm);
  position: relative; overflow: hidden;
}
.takeaways::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand-gradient); }
.takeaways h4 { font-size: var(--t-h4); font-weight: 700; margin-bottom: var(--s-4); display: flex; align-items: center; gap: 8px; }
.takeaways ul { display: grid; gap: var(--s-3); padding: 0; }
.takeaways ul li, .callout ul li, .foot-col ul li { list-style: none; }
.takeaways ul li::before, .callout ul li::before, .faq-a ul li::before { content: none; }
.takeaways ul, .callout ul, .faq-a ul { padding-left: 0; }
.takeaways li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-muted); line-height: 1.55; }
.takeaways li svg { color: var(--action); margin-top: 3px; }
.callout {
  display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3);
  font-family: var(--font-ui); font-size: var(--t-sm); line-height: 1.6;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5);
  background: var(--surface);
}
.callout b { display: block; font-size: var(--t-sm); margin-bottom: 3px; }
.callout p { color: var(--ink-muted); }
.callout-info { border-color: color-mix(in srgb, var(--info) 32%, transparent); background: var(--info-soft); }
.callout-info svg, .callout-info b { color: var(--info); }
.callout-warn { border-color: color-mix(in srgb, var(--warn) 32%, transparent); background: var(--warn-soft); }
.callout-warn svg, .callout-warn b { color: var(--warn); }
.callout-note { background: var(--surface-sunk); }
.callout-note svg { color: var(--ink-muted); }
.data-table { font-family: var(--font-ui); font-size: var(--t-sm); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.data-table th { background: var(--surface-sunk); text-align: left; font-weight: 700; font-size: var(--t-xs); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.data-table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); color: var(--ink-muted); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--surface-sunk); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: var(--s-5) 0; font-size: var(--t-body); font-weight: 600; color: var(--ink); font-family: var(--font-ui);
}
.faq-q svg { flex-shrink: 0; color: var(--ink-subtle); transition: transform var(--d-base) var(--ease-out); }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--action); }
.faq-a { font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.65; padding-bottom: var(--s-5); max-width: 68ch; }
.faq-a[hidden] { display: none; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6); background: var(--surface); }
.author-box h4 { font-size: var(--t-h4); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.author-box p { font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.6; margin: var(--s-2) 0 var(--s-4); }
.author-links { display: flex; gap: var(--s-4); font-size: var(--t-xs); }
.author-links a { color: var(--ink-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.author-links a:hover { color: var(--ink-brand); }
/* Assinatura de newsletter */
.subscribe {
  border-radius: var(--r-lg); padding: var(--s-8);
  background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.subscribe::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-gradient); }
.subscribe h3 { font-size: var(--t-h3); font-weight: 800; letter-spacing: var(--tr-snug); }
.subscribe p { font-size: var(--t-sm); color: var(--ink-muted); margin: var(--s-2) 0 var(--s-5); max-width: 46ch; }
.subscribe-form { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.subscribe-form .control { flex: 1; min-width: 220px; }
.subscribe-legal { font-size: 11px; color: var(--ink-subtle); margin-top: var(--s-3); }
/* Comentários */
.comment { display: grid; grid-template-columns: 32px 1fr; gap: var(--s-3); padding: var(--s-4) 0; }
.comment + .comment { border-top: 1px solid var(--line); }
.comment.reply { margin-left: var(--s-8); }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-head b { font-size: var(--t-sm); font-weight: 600; }
.comment-head span { font-size: var(--t-xs); color: var(--ink-subtle); }
.comment-body { font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.6; }
.comment-actions { display: flex; gap: var(--s-4); margin-top: 8px; }
.comment-actions button { background: none; border: 0; cursor: pointer; font-size: var(--t-xs); font-weight: 600; color: var(--ink-subtle); display: inline-flex; align-items: center; gap: 5px; padding: 2px; }
.comment-actions button:hover { color: var(--ink-brand); }
/* Busca */
.search-panel { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--e-3); overflow: hidden; max-width: 520px; }
.search-input-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.search-input-row input { border: 0; outline: none; background: none; flex: 1; font-size: var(--t-body); }
.search-hint { font-family: var(--font-mono); font-size: 10px; color: var(--ink-subtle); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.search-result { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); padding: var(--s-3) var(--s-5); cursor: pointer; align-items: start; }
.search-result:hover, .search-result.is-active { background: var(--action-soft); }
.search-result svg { color: var(--ink-subtle); margin-top: 3px; }
.search-result b { font-size: var(--t-sm); font-weight: 600; display: block; }
.search-result span { font-size: var(--t-xs); color: var(--ink-subtle); }
.search-result mark { background: var(--flame-100); color: var(--ink); border-radius: 2px; }
[data-theme="dark"] .search-result mark { background: var(--flame-800); color: #fff; }
/* ==========================================================================
   11 — FEEDBACK E ESTADOS
   ========================================================================== */
.toast {
  display: grid; grid-template-columns: 20px 1fr auto; gap: var(--s-3); align-items: start;
  background: var(--surface-invert); color: var(--n-0); border-radius: var(--r-md);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5); box-shadow: var(--e-4); max-width: 400px;
}
[data-theme="dark"] .toast { background: var(--n-800); color: var(--ink); border: 1px solid var(--line); }
.toast b { font-size: var(--t-sm); display: block; }
.toast p { font-size: var(--t-xs); opacity: .72; margin-top: 2px; }
.toast-close { background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 2px; }
.toast-close:hover { opacity: 1; }
.toast-ok svg { color: var(--ok); }
.toast-err svg { color: var(--danger); }
.skeleton { background: var(--surface-sunk); border-radius: var(--r-xs); position: relative; overflow: hidden; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
  animation: sweep 1.4s infinite;
}
@keyframes sweep { to { transform: translateX(100%); } }
.skeleton-line { height: 12px; margin-bottom: 8px; }
.skeleton-thumb { aspect-ratio: 16/10; border-radius: var(--r-sm); }
.state-block { text-align: center; padding: var(--s-9) var(--s-6); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.state-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-sunk); color: var(--ink-muted); display: grid; place-items: center; margin: 0 auto var(--s-4); }
.state-block h4 { font-size: var(--t-h4); font-weight: 700; margin-bottom: 6px; }
.state-block p { font-size: var(--t-sm); color: var(--ink-muted); max-width: 42ch; margin: 0 auto var(--s-5); line-height: 1.6; }
.modal-demo { max-width: 440px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--e-4); border: 1px solid var(--line); overflow: hidden; }
.modal-head { padding: var(--s-6) var(--s-6) 0; display: flex; justify-content: space-between; gap: var(--s-4); align-items: start; }
.modal-head h4 { font-size: var(--t-h3); font-weight: 800; letter-spacing: var(--tr-snug); }
.modal-body { padding: var(--s-4) var(--s-6) var(--s-6); font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.6; }
.modal-foot { padding: var(--s-4) var(--s-6); background: var(--surface-sunk); display: flex; gap: var(--s-3); justify-content: flex-end; }
/* ==========================================================================
   12 — MONETIZAÇÃO
   ========================================================================== */
.ad-slot {
  border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface-inset); display: grid; place-items: center; gap: 4px;
  color: var(--ink-subtle); text-align: center; padding: var(--s-4);
}
.ad-slot b { font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 500; }
.ad-slot span { font-size: 10px; }
.ad-label { font-size: 10px; font-weight: 700; color: var(--ink-subtle); letter-spacing: var(--tr-wide); margin-bottom: 6px; display: block; }
.ad-leaderboard { min-height: 96px; }
.ad-inarticle { min-height: 260px; margin-block: var(--s-8); }
.ad-rail { min-height: 600px; }
.ad-sticky-bottom { min-height: 60px; }
.ad-native { border-style: solid; border-color: var(--line); background: var(--surface); place-items: stretch; padding: 0; }
.hit-box { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px dashed var(--action); border-radius: var(--r-sm); color: var(--ink-muted); }
/* Utilitário para leitores de tela */
.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;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: var(--z-toast);
  background: var(--action-solid); color: var(--on-action); padding: 10px 16px; border-radius: var(--r-sm);
  font-size: var(--t-sm); font-weight: 600; text-decoration: none;
  transition: top var(--d-fast) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-5); }
.stack-5 { display: grid; gap: var(--s-5); }
.stack-4 { display: grid; gap: var(--s-4); }
.stack-7 { display: grid; gap: var(--s-7); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); border-bottom: 2px solid var(--ink); padding-bottom: var(--s-3); margin-bottom: var(--s-5); }
.section-head h3 { font-size: var(--t-h3); font-weight: 800; letter-spacing: var(--tr-tight); }
.section-head a { font-size: var(--t-xs); font-weight: 600; color: var(--ink-brand); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.section-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.thumb-ph { background: linear-gradient(140deg, var(--n-200), var(--n-150)); position: relative; }
[data-theme="dark"] .thumb-ph { background: linear-gradient(140deg, #2A282B, #1F1E21); }
.thumb-ph::after { content: ''; position: absolute; inset: 0; background: var(--brand-gradient); opacity: .16; }
.thumb-ph.v2::after { opacity: .3; background: linear-gradient(200deg, var(--amber-500), var(--flame-600)); }
.thumb-ph.v3::after { opacity: .22; background: linear-gradient(120deg, var(--gold-500), var(--flame-700)); }
.card-cover .thumb-ph { background: linear-gradient(150deg, #4A4750, #171618); }
.card-cover .thumb-ph::after { opacity: .38; }
/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1180px) {
  .opening-grid { grid-template-columns: 1fr; gap: var(--s-8); align-items: start; }
}
@media (max-width: 1024px) {
  .doc-shell { grid-template-columns: 1fr; gap: var(--s-6); padding-top: var(--s-6); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 56px; }
  .doc-shell { padding: var(--s-6) var(--s-5) var(--s-10); }
  .card-h { grid-template-columns: 92px minmax(0,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .card-cover { min-height: 300px; }
  .card-cover-body { padding: var(--s-5); }
  .author-box { grid-template-columns: 1fr; }
  .doc-header { gap: var(--s-3); padding: 0 var(--s-4); }
  .brandmark-kind { display: none; }
  .version-pill { display: none; }
}
/* ==========================================================================
   19 — DENSIDADE E SUPERFÍCIES DE PRODUTO
   Três superfícies compartilham os mesmos tokens de cor e forma, e divergem
   em densidade, família tipográfica de corpo e quantidade de ação por tela.
   ========================================================================== */
.surface {
  --ctl-h: 40px;
  --row-y: 12px;
  --gap: var(--s-4);
  --card-pad: var(--s-5);
  --font-content: var(--font-ui);
}
.surface-reading { --ctl-h: 44px; --row-y: 16px; --gap: var(--s-6); --card-pad: var(--s-6); --font-content: var(--font-read); }
.surface-social  { --ctl-h: 40px; --row-y: 14px; --gap: var(--s-4); --card-pad: var(--s-5); }
.surface-panel   { --ctl-h: 34px; --row-y: 9px;  --gap: var(--s-3); --card-pad: var(--s-4); font-size: var(--t-sm); }
.surface-panel .control { height: var(--ctl-h); font-size: var(--t-sm); border-radius: var(--r-sm); }
.surface-panel .btn { --btn-h: 34px; font-size: var(--t-xs); padding: 0 14px; }
.surface-panel .btn-icon { width: 34px; }
/* ==========================================================================
   20 — REDE SOCIAL
   ========================================================================== */
.feed-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-6); align-items: start; }
/* Caixa de publicação */
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.composer-top { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); }
.composer-field {
  border: 0; outline: none; background: none; resize: none; width: 100%;
  font-family: var(--font-ui); font-size: var(--t-body); line-height: 1.55; color: var(--ink);
  min-height: 60px; padding-top: 8px;
}
.composer-field::placeholder { color: var(--ink-subtle); }
.composer-audience {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: var(--t-xs); font-weight: 600; color: var(--ink-brand);
  background: var(--action-soft); border: 1px solid var(--line-brand); border-radius: var(--r-pill);
  padding: 3px 10px; cursor: pointer;
}
.composer-tools {
  display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4);
  padding-top: var(--s-3); border-top: 1px solid var(--line);
}
.composer-tool {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: none;
  color: var(--ink-muted); display: grid; place-items: center; cursor: pointer;
  transition: background var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.composer-tool:hover { background: var(--action-soft); color: var(--ink-brand); }
.composer-meter { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.char-ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.char-ring circle { fill: none; stroke-width: 3; }
.char-ring .track { stroke: var(--line); }
.char-ring .bar { stroke: var(--action); stroke-linecap: round; }
/* Publicação no feed */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.post + .post { margin-top: var(--s-3); }
.post-head { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s-3); align-items: start; }
.post-ident { min-width: 0; }
.post-name { font-size: var(--t-sm); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.post-handle { font-size: var(--t-xs); color: var(--ink-subtle); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-handle .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.post-body { font-size: var(--t-body); line-height: 1.6; margin: var(--s-3) 0 0; padding-left: 52px; }
.post-body a { color: var(--ink-brand); text-decoration: none; }
.post-body a:hover { text-decoration: underline; text-underline-offset: 2px; }
.post-media { margin: var(--s-4) 0 0 52px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.post-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.post-quote {
  margin: var(--s-4) 0 0 52px; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: var(--s-4); background: var(--surface-inset);
}
.post-actions { display: flex; gap: var(--s-2); margin: var(--s-4) 0 0 52px; }
.post-action {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
  font-size: var(--t-xs); font-weight: 600; color: var(--ink-subtle);
  padding: 6px 10px; border-radius: var(--r-pill);
  transition: color var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
}
.post-action:hover { background: var(--surface-sunk); color: var(--ink); }
.post-action.is-on { color: var(--ink-brand); }
.post-action.is-on:hover { background: var(--action-soft); }
.post-action.act-save:hover { color: var(--info); }
.post-pinned { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--ink-subtle); margin-bottom: var(--s-2); padding-left: 52px; }
/* Fio de respostas */
.thread { position: relative; }
.thread .post { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.thread .post:first-child { border-top: 1px solid var(--line); }
.thread-line { position: absolute; left: 40px; top: 62px; bottom: 0; width: 2px; background: var(--line); }
.reply-depth { padding-left: var(--s-8); position: relative; }
.reply-depth::before {
  content: ''; position: absolute; left: var(--s-5); top: 0; height: 40px; width: 20px;
  border-left: 2px solid var(--line); border-bottom: 2px solid var(--line);
  border-bottom-left-radius: 12px; pointer-events: none;
}
/* Perfil */
.profile-head { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.profile-cover { height: 132px; position: relative; z-index: 0; }
.profile-main { padding: 0 var(--s-6) var(--s-5); }
.profile-avatar-row { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-top: -34px; }
.profile-avatar { width: 82px; height: 82px; border-radius: 50%; border: 3px solid var(--surface); background: var(--surface-sunk); display: grid; place-items: center; font-size: 26px; font-weight: 700; color: var(--ink-muted); }
.profile-name { font-size: var(--t-h3); font-weight: 800; letter-spacing: var(--tr-snug); display: flex; align-items: center; gap: 6px; }
.profile-handle { font-size: var(--t-sm); color: var(--ink-subtle); }
.profile-bio { font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.6; margin: var(--s-3) 0; max-width: 60ch; }
.profile-facts { display: flex; gap: var(--s-5); flex-wrap: wrap; font-size: var(--t-xs); color: var(--ink-subtle); }
.profile-stats { display: flex; gap: var(--s-6); margin-top: var(--s-4); }
.profile-stats b { font-size: var(--t-body); font-weight: 700; }
.profile-stats span { font-size: var(--t-xs); color: var(--ink-subtle); margin-left: 4px; }
/* Pessoas e sugestões */
.people-item { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; }
.people-item + .people-item { border-top: 1px solid var(--line); }
.people-name { font-size: var(--t-sm); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.people-handle { font-size: var(--t-xs); color: var(--ink-subtle); }
.people-bio { font-size: var(--t-xs); color: var(--ink-muted); margin-top: 2px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); }
.avatar-stack .avatar + .avatar { margin-left: -10px; }
.presence { position: relative; }
.presence::after {
  content: ''; position: absolute; right: 4%; bottom: 4%;
  width: 30%; height: 30%; max-width: 12px; max-height: 12px; min-width: 8px; min-height: 8px;
  border-radius: 50%; border: 2px solid var(--surface); background: var(--ok);
  box-sizing: border-box;
}
.presence.away::after { background: var(--warn); }
.presence.off::after { background: var(--n-400); }
/* Notificações */
.notif { display: grid; grid-template-columns: 34px 1fr auto; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-sm); align-items: start; }
.notif.is-unread { background: var(--action-soft); }
.notif-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.notif-like { background: var(--action-soft); color: var(--ink-brand); }
.notif-reply { background: var(--info-soft); color: var(--info); }
.notif-follow { background: var(--ok-soft); color: var(--ok); }
.notif-system { background: var(--surface-sunk); color: var(--ink-muted); }
.notif-text { font-size: var(--t-sm); line-height: 1.5; }
.notif-text b { font-weight: 700; }
.notif-time { font-size: var(--t-xs); color: var(--ink-subtle); white-space: nowrap; }
/* Mensagens */
.dm { display: grid; grid-template-columns: 240px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.dm-list { border-right: 1px solid var(--line); max-height: 420px; overflow-y: auto; }
.dm-item { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: var(--s-3) var(--s-4); cursor: pointer; align-items: center; border-bottom: 1px solid var(--line); }
.dm-item:hover { background: var(--surface-sunk); }
.dm-item.is-active { background: var(--action-soft); }
.dm-item b { font-size: var(--t-sm); display: flex; justify-content: space-between; gap: 8px; }
.dm-item b span { font-size: 11px; color: var(--ink-subtle); font-weight: 400; }
.dm-item p { font-size: var(--t-xs); color: var(--ink-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-unread { background: var(--action-solid); color: var(--on-action); font-size: 10px; font-weight: 700; border-radius: var(--r-pill); padding: 1px 6px; }
.chat { display: flex; flex-direction: column; min-height: 420px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.chat-body { flex: 1; padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); overflow-y: auto; }
.chat-day { align-self: center; font-size: 11px; color: var(--ink-subtle); background: var(--surface-sunk); padding: 3px 10px; border-radius: var(--r-pill); margin: var(--s-2) 0; }
.msg { max-width: 74%; padding: 9px 13px; font-size: var(--t-sm); line-height: 1.5; border-radius: 16px; }
.msg-in { background: var(--surface-sunk); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg-out { background: var(--action-solid); color: var(--on-action); border-bottom-right-radius: 5px; align-self: flex-end; }
.msg-meta { font-size: 10px; color: var(--ink-subtle); display: flex; align-items: center; gap: 4px; padding: 0 4px; }
.msg-meta.out { align-self: flex-end; }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 11px 14px; background: var(--surface-sunk); border-radius: 16px; border-bottom-left-radius: 5px; align-self: flex-start; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-subtle); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-foot { display: flex; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); align-items: center; }
/* Trilho social */
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.side-card h4 { font-size: var(--t-h4); font-weight: 700; margin-bottom: var(--s-4); }
.trend { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.trend:last-child { border-bottom: 0; }
.trend b { display: block; font-size: var(--t-sm); font-weight: 600; }
.trend span { font-size: var(--t-xs); color: var(--ink-subtle); }
/* Moderação */
.masked {
  border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
  padding: var(--s-4); font-size: var(--t-sm); color: var(--ink-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
/* ==========================================================================
   21 — PAINEL
   ========================================================================== */
.app { display: grid; grid-template-columns: 216px minmax(0, 1fr); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.app-side { background: var(--surface); border-right: 1px solid var(--line); padding: var(--s-4) var(--s-3); }
.app-side-group + .app-side-group { margin-top: var(--s-5); }
.app-side-title { font-size: 10px; font-weight: 700; color: var(--ink-subtle); padding: 0 10px var(--s-2); }
.app-link {
  display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center;
  padding: 7px 10px; border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 500;
  color: var(--ink-muted); text-decoration: none; cursor: pointer;
  transition: background var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.app-link:hover { background: var(--surface-sunk); color: var(--ink); }
.app-link.is-active { background: var(--action-soft); color: var(--ink-brand); font-weight: 600; }
.app-count { font-size: 10px; font-weight: 700; background: var(--surface-sunk); color: var(--ink-muted); border-radius: var(--r-pill); padding: 1px 7px; }
.app-link.is-active .app-count { background: var(--action-solid); color: var(--on-action); }
.app-main { min-width: 0; }
.app-top { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-5); background: var(--surface); border-bottom: 1px solid var(--line); }
.app-top .crumbs { flex: 1; }
.app-body { padding: var(--s-5); display: grid; gap: var(--s-5); min-width: 0; }
.panel-card { min-width: 0; }
.dt-wrap { overflow-x: auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.kpi-label { font-size: var(--t-xs); color: var(--ink-subtle); display: flex; align-items: center; gap: 6px; }
.kpi-value { font-size: 1.6rem; font-weight: 800; letter-spacing: var(--tr-tight); margin: 6px 0 4px; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 700; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--danger); }
.delta.flat { color: var(--ink-subtle); }
.delta small { color: var(--ink-subtle); font-weight: 400; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 28px; margin-top: var(--s-3); }
.spark i { flex: 1; background: var(--flame-200); border-radius: 2px 2px 0 0; }
.spark i:last-child { background: var(--action); }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.panel-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.panel-card-head h4 { font-size: var(--t-h4); font-weight: 700; }
.panel-card-head p { font-size: var(--t-xs); color: var(--ink-subtle); margin-top: 2px; }
.panel-card-body { padding: var(--s-5); }
.panel-card-foot { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); background: var(--surface-sunk); font-size: var(--t-xs); color: var(--ink-subtle); display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.chart-cols { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.chart-cols > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart-cols i { width: 100%; background: var(--flame-200); border-radius: 4px 4px 0 0; display: block; transition: background var(--d-fast) var(--ease-out); }
.chart-cols > div:hover i { background: var(--action); }
.chart-cols small { font-size: 10px; color: var(--ink-subtle); }
.chart-legend { display: flex; gap: var(--s-4); font-size: var(--t-xs); color: var(--ink-muted); margin-top: var(--s-4); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 2px; display: block; }
.toolbar { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600;
  background: var(--action-soft); color: var(--ink-brand); border: 1px solid var(--line-brand);
  border-radius: var(--r-pill); padding: 4px 6px 4px 10px;
}
.filter-chip button { border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 50%; }
.filter-chip button:hover { background: var(--flame-100); }
.segmented { display: inline-flex; background: var(--surface-sunk); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.segmented button {
  border: 0; background: none; cursor: pointer; font-size: var(--t-xs); font-weight: 600;
  color: var(--ink-muted); padding: 5px 12px; border-radius: 6px;
  transition: background var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--e-1); }
.dt { width: 100%; font-size: var(--t-sm); }
.dt th {
  text-align: left; font-size: var(--t-xs); font-weight: 700; color: var(--ink-muted);
  padding: 10px var(--s-4); border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.dt th button { border: 0; background: none; cursor: pointer; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 5px; }
.dt th button:hover { color: var(--ink); }
.dt td { padding: 10px var(--s-4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.dt tbody tr:hover td { background: var(--surface-sunk); }
.dt tbody tr.is-selected td { background: var(--action-soft); }
.dt .cell-main { font-weight: 600; }
.dt .cell-sub { font-size: var(--t-xs); color: var(--ink-subtle); }
.dt .cell-num { font-family: var(--font-mono); font-size: var(--t-xs); text-align: right; }
.dt .cell-actions { text-align: right; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-draft { background: var(--surface-sunk); color: var(--ink-muted); }
.pill-review { background: var(--warn-soft); color: var(--warn); }
.pill-scheduled { background: var(--info-soft); color: var(--info); }
.pill-live { background: var(--ok-soft); color: var(--ok); }
.pill-archived { background: var(--surface-sunk); color: var(--ink-subtle); }
.pill-blocked { background: var(--danger-soft); color: var(--danger); }
.bulk-bar {
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  background: var(--surface-invert); color: var(--n-0); border-radius: var(--r-sm);
  padding: 10px var(--s-4); font-size: var(--t-sm); box-shadow: var(--e-3);
}
[data-theme="dark"] .bulk-bar { background: var(--n-800); color: var(--ink); border: 1px solid var(--line); }
.bulk-bar .btn { --btn-h: 30px; font-size: var(--t-xs); }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.board-col { background: var(--surface-sunk); border-radius: var(--r-md); padding: var(--s-3); min-height: 190px; }
.board-col-head { display: flex; align-items: center; justify-content: space-between; font-size: var(--t-xs); font-weight: 700; color: var(--ink-muted); padding: 2px 4px var(--s-3); }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-3); box-shadow: var(--e-1); cursor: grab; }
.board-card + .board-card { margin-top: var(--s-2); }
.board-card b { display: block; font-size: var(--t-xs); font-weight: 600; line-height: 1.45; margin-bottom: 8px; }
.board-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.board-card-foot span { font-size: 10px; color: var(--ink-subtle); display: inline-flex; align-items: center; gap: 4px; }
.meter { height: 6px; border-radius: 4px; background: var(--surface-sunk); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--action); border-radius: 4px; }
.meter.ok i { background: var(--ok); }
.meter.warn i { background: var(--warn); }
.save-bar {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); background: var(--surface); border-top: 1px solid var(--line);
  padding: var(--s-3) var(--s-5); box-shadow: 0 -6px 18px rgba(15,14,16,.06);
}
.save-bar span { font-size: var(--t-xs); color: var(--ink-subtle); display: inline-flex; align-items: center; gap: 6px; }
.menu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--e-3); padding: 6px; min-width: 208px; }
.menu-item {
  display: grid; grid-template-columns: 17px 1fr auto; gap: 10px; align-items: center; width: 100%;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-size: var(--t-sm); color: var(--ink); padding: 7px 9px; border-radius: 6px;
}
.menu-item:hover { background: var(--surface-sunk); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger-soft); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 0; }
.kbd { font-family: var(--font-mono); font-size: 10px; color: var(--ink-subtle); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; }
.tip-demo { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.tip {
  background: var(--surface-invert); color: var(--n-0); font-size: var(--t-xs); font-weight: 500;
  padding: 6px 10px; border-radius: 6px; position: relative; box-shadow: var(--e-2);
}
[data-theme="dark"] .tip { background: var(--n-800); color: var(--ink); border: 1px solid var(--line); }
.tip::after { content: ''; position: absolute; bottom: -4px; left: 50%; margin-left: -4px; width: 8px; height: 8px; background: inherit; transform: rotate(45deg); }
.dt th:nth-child(2) { min-width: 260px; }
.dt td:nth-child(2) { min-width: 260px; }
.chart-cols > div:first-child i { background: var(--action); }
@media (max-width: 1024px) {
  .feed-shell { grid-template-columns: 1fr; }
  .app { grid-template-columns: 64px minmax(0,1fr); }
  .app-link { grid-template-columns: 18px; justify-items: center; }
  .app-link span:not(.app-count), .app-side-title { display: none; }
  .app-count { display: none; }
  .board { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dm { grid-template-columns: 1fr; }
  .dm-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 180px; }
}
@media (max-width: 720px) {
  .board { grid-template-columns: 1fr; }
  .post-body, .post-actions, .post-media, .post-quote, .post-pinned { padding-left: 0; margin-left: 0; }
}
/* ==========================================================================
   23 — RODAPÉ
   ========================================================================== */
.foot { background: var(--surface-invert); color: var(--n-300); border-radius: var(--r-lg); overflow: hidden; }
[data-theme="dark"] .foot { background: var(--surface); color: var(--ink-muted); border: 1px solid var(--line); }
.foot-light { background: var(--surface); color: var(--ink-muted); border: 1px solid var(--line); border-top: 3px solid var(--flame-500); }
/* Faixa de chamada no topo do rodapé */
.foot-cta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
  flex-wrap: wrap; padding: var(--s-7); border-bottom: 1px solid rgba(255,255,255,.12);
}
.foot-light .foot-cta, .foot-light .foot-legal { border-color: var(--line); }
[data-theme="dark"] .foot .foot-cta, [data-theme="dark"] .foot .foot-legal { border-color: var(--line); }
.foot-cta h4 { font-size: var(--t-h3); font-weight: 800; letter-spacing: var(--tr-snug); color: var(--n-0); }
.foot-light .foot-cta h4, .foot-light .foot-col h5, .foot-light .foot-org b { color: var(--ink); }
[data-theme="dark"] .foot .foot-cta h4 { color: var(--ink); }
.foot-cta p { font-size: var(--t-sm); opacity: .75; margin-top: 4px; max-width: 46ch; }
.foot-cta form { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.foot-cta .control { min-width: 240px; }
.foot .foot-cta .control { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--n-0); }
.foot .foot-cta .control::placeholder { color: rgba(255,255,255,.45); }
[data-theme="dark"] .foot .foot-cta .control { background: var(--surface-sunk); border-color: var(--line); color: var(--ink); }
.foot-light .foot-cta .control { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
/* Mapa do site */
.foot-body { padding: var(--s-8) var(--s-7); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: var(--s-7); }
.foot-org { max-width: 34ch; }
.foot-org b { display: block; font-size: var(--t-body); font-weight: 800; color: var(--n-0); margin-bottom: var(--s-3); }
[data-theme="dark"] .foot .foot-org b { color: var(--ink); }
.foot-org p { font-size: var(--t-sm); line-height: 1.62; opacity: .78; }
.foot-contact { display: grid; gap: 8px; margin-top: var(--s-5); font-size: var(--t-sm); }
.foot-contact a, .foot-contact span { display: inline-flex; gap: 8px; align-items: flex-start; opacity: .78; text-decoration: none; line-height: 1.5; }
.foot-contact a:hover { opacity: 1; color: var(--flame-300); }
.foot-light .foot-contact a:hover { color: var(--ink-brand); }
.foot-contact svg { flex-shrink: 0; margin-top: 2px; }
.foot-col h5 { font-size: var(--t-xs); font-weight: 700; color: var(--n-0); margin-bottom: var(--s-4); }
[data-theme="dark"] .foot .foot-col h5 { color: var(--ink); }
.foot-col a {
  display: block; font-size: var(--t-sm); text-decoration: none; color: inherit;
  opacity: .74; padding: 6px 0; min-height: 32px;
  transition: opacity var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.foot-col a:hover { opacity: 1; color: var(--flame-300); }
.foot-light .foot-col a:hover { color: var(--ink-brand); }
.foot-col a .tag { vertical-align: 2px; margin-left: 6px; }
/* Selos e sinais de confiança */
.foot-badges { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.10); }
.foot-light .foot-badges { border-color: var(--line); }
[data-theme="dark"] .foot .foot-badges { border-color: var(--line); }
.foot-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-sm);
  padding: 8px 12px; opacity: .82; line-height: 1.35;
}
.foot-light .foot-badge { border-color: var(--line); }
[data-theme="dark"] .foot .foot-badge { border-color: var(--line); }
.foot-badge b { display: block; font-weight: 700; }
.foot-badge span { font-size: 11px; opacity: .7; }
/* Redes e assinatura */
.foot-social { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-5); }
.foot-social a {
  display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-xs); font-weight: 600;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-pill);
  padding: 7px 13px; text-decoration: none; color: inherit; opacity: .82;
  transition: all var(--d-fast) var(--ease-out);
}
.foot-social a:hover { opacity: 1; border-color: var(--flame-400); color: var(--flame-300); }
.foot-light .foot-social a { border-color: var(--line); }
.foot-light .foot-social a:hover { border-color: var(--action); color: var(--ink-brand); }
[data-theme="dark"] .foot .foot-social a { border-color: var(--line); }
/* Faixa legal */
.foot-legal {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  flex-wrap: wrap; padding: var(--s-5) var(--s-7);
  border-top: 1px solid rgba(255,255,255,.12); font-size: var(--t-xs);
}
.foot-legal-links { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.foot-legal a { text-decoration: none; color: inherit; opacity: .74; }
.foot-legal a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal .copy { opacity: .6; }
.foot-tools { display: flex; align-items: center; gap: var(--s-3); }
/* Rodapé compacto */
.foot-compact {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  flex-wrap: wrap; padding: var(--s-5) var(--s-6);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: var(--t-xs); color: var(--ink-subtle);
}
.foot-compact nav { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.foot-compact a { color: inherit; text-decoration: none; }
.foot-compact a:hover { color: var(--ink-brand); }
/* Sanfona do rodapé no mobile */
.foot-acc { max-width: 360px; }
.foot-acc-item { border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-light .foot-acc-item { border-color: var(--line); }
.foot-acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; cursor: pointer; color: inherit; font-family: var(--font-ui);
  font-size: var(--t-sm); font-weight: 700; padding: 14px 0; text-align: left;
}
.foot-acc-btn svg { transition: transform var(--d-base) var(--ease-out); opacity: .7; }
.foot-acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.foot-acc-panel { padding-bottom: 10px; }
.foot-acc-panel[hidden] { display: none; }
@media (min-width: 721px) {
  .foot-cta form { flex-wrap: nowrap; }
  .foot-cta .control { min-width: 210px; }
}
@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
  .foot-org { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 720px) {
  .foot-body { padding: var(--s-6) var(--s-5); }
  .foot-cta, .foot-legal { padding: var(--s-5); }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-legal { flex-direction: column; align-items: flex-start; }
  .foot-cta .control { min-width: 0; width: 100%; }
  .foot-cta form { width: 100%; }
  .foot-cta form .btn { width: 100%; }
}
/* ==========================================================================
   PONTEIRO GROSSO — alvo de toque de 44px
   ========================================================================== */
@media (pointer: coarse) {
  .btn, .btn-sm, .btn-lg, .surface-panel .btn { --btn-h: 44px; }
  .btn-icon, .surface-panel .btn-icon { width: 44px; }
  .share-btn, .composer-tool, .toast-close, .faq-q > svg { min-width: 44px; min-height: 44px; }
  .post-action { min-height: 44px; padding-inline: 12px; }
  .pager a, .pager span { min-width: 44px; height: 44px; }
  .foot-col a, .app-link, .menu-item, .dm-item, .toc a, .site-nav a { min-height: 44px; display: flex; align-items: center; }
  .foot-col a { display: block; padding: 12px 0; }
  .check input, .switch-track { margin-block: 4px; }
}
/* ==========================================================================
   ALTO CONTRASTE E CORES FORÇADAS
   ========================================================================== */
@media (prefers-contrast: more) {
  :root { --line: var(--n-300); --line-strong: var(--n-500); --ink-muted: var(--n-700); --ink-subtle: var(--n-600); }
  [data-theme="dark"] { --line: #5A575B; --line-strong: #7A767A; --ink-muted: #D9D6D8; --ink-subtle: #C2BEC1; }
  .btn-quiet { border-color: var(--line-strong); }
  .card, .panel-card, .kpi { border-color: var(--line-strong); }
}
@media (forced-colors: active) {
  .btn, .control, .card, .panel-card, .kpi, .toast, .menu, .pill, .tag, .flag, .foot-badge, .filter-chip {
    border: 1px solid currentColor;
  }
  .btn-primary, .btn-gradient, .pager a[aria-current="page"] { background: ButtonFace; color: ButtonText; }
  .spark i, .meter i, .chart-cols i, .progress-fill { forced-color-adjust: none; }
  .card-cover::after { background: none; }
  :focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}
/* ==========================================================================
   IMPRESSÃO — o artigo é o que sobra
   ========================================================================== */
@media print {
  .site-header, .site-nav, .site-actions, .share-row, .toc, .subscribe,
  .ad-slot, .ad-label, .foot, .foot-compact, .app-side, .composer,
  .post-actions, .skip-link, .progress-bar, .bulk-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .article-grid, .feed-shell, .home-cols, .app { display: block !important; }
  .article-aside, .article-ads, .home-rail, .side-card { display: none !important; }
  .article-head, .article-grid, .page { padding: 0 !important; max-width: none !important; }
  figure.media img, .card-thumb img, .profile-cover { max-height: 9cm; object-fit: cover; }
  .prose { max-width: none; font-size: 11pt; line-height: 1.5; }
  .article-title { font-size: 22pt; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .card, .panel-card, figure, table, .callout, .takeaways, .pullquote { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ==========================================================================
   MARCA
   ========================================================================== */
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; color: inherit; }
.brandmark-glyph {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-gradient-strong);
  display: grid; place-items: center;
  box-shadow: var(--e-brand); flex-shrink: 0;
}
.brandmark-glyph svg { color: var(--on-action); }
.brandmark-text { display: flex; flex-direction: column; line-height: 1.1; }
.brandmark-name { font-weight: 800; font-size: 15px; letter-spacing: var(--tr-snug); }
.brandmark-kind { font-size: 11px; color: var(--ink-subtle); font-weight: 500; }
