:root {
  --cn-ink: #121821;
  --cn-muted: #697386;
  --cn-line: #e5e9ef;
  --cn-bg: #ffffff;
  --cn-soft: #f5f7fa;
  --cn-header: #07111f;
  --cn-red: #ff1744;
  --cn-blue: #1677ff;
  --cn-purple: #7928ff;
  --cn-green: #08aa92;
  --cn-orange: #ff7a1a;
  --cn-radius: 12px;
  --cn-shell: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cn-ink); background: #fff; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
.cn-shell { width: min(calc(100% - 48px), var(--cn-shell)); margin-inline: auto; }

/* Header */
.cn-site-header { position: sticky; top: 0; z-index: 999; background: var(--cn-header); color: #fff; border-bottom: 1px solid #162235; }
.admin-bar .cn-site-header { top: 32px; }
.cn-header-inner { min-height: 70px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.cn-brand a { display: inline-flex; align-items: center; text-decoration: none; }
.cn-logo-img { display: block; max-width: 170px; max-height: 54px; width: auto; height: auto; }
.cn-logo-text { color: #fff; font-weight: 900; font-size: 24px; letter-spacing: -1px; }
.cn-logo-text strong { color: var(--cn-red); }
.cn-primary-nav { min-width: 0; }
.cn-menu { list-style: none; display: flex; align-items: center; justify-content: center; gap: 2px; margin: 0; padding: 0; white-space: nowrap; }
.cn-menu > li { position: relative; }
.cn-menu > li > a { display: block; padding: 25px 11px 22px; color: #f7f9fc; text-decoration: none; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .01em; }
.cn-menu > li > a:hover, .cn-menu > li.current-menu-item > a, .cn-menu > li.current-menu-ancestor > a { color: #fff; background: #101d2d; }
.cn-menu > li.current-menu-item > a::after, .cn-menu > li.current-menu-ancestor > a::after { content: ""; position: absolute; height: 3px; background: var(--cn-red); left: 12px; right: 12px; bottom: 0; border-radius: 3px 3px 0 0; }
.cn-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; margin: 0; list-style: none; background: #0d1928; border: 1px solid #1e2b3d; border-radius: 0 0 10px 10px; }
.cn-menu li:hover > .sub-menu, .cn-menu li:focus-within > .sub-menu { display: block; }
.cn-menu .sub-menu a { display: block; padding: 10px 12px; color: #fff; text-decoration: none; border-radius: 7px; }
.cn-menu .sub-menu a:hover { background: #182639; }
.cn-header-actions { display: flex; align-items: center; gap: 12px; }
.cn-icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 8px; }
.cn-icon-button:hover { background: #142235; }
.cn-icon-button svg { width: 20px; height: 20px; }
.cn-socials { display: flex; align-items: center; gap: 9px; }
.cn-socials a { display: inline-grid; place-items: center; width: 28px; height: 28px; color: #fff; border-radius: 7px; transition: .2s ease; }
.cn-socials a:hover { color: var(--cn-red); background: #132134; }
.cn-socials svg { width: 17px; height: 17px; }
.cn-menu-toggle { display: none; gap: 4px; align-content: center; }
.cn-menu-toggle span { display: block; width: 19px; height: 2px; background: currentColor; border-radius: 2px; }
.cn-mobile-panel { background: #0b1625; border-top: 1px solid #1a293d; }

/* Pesquisa compacta: abre como dropdown e não aumenta a altura do cabeçalho */
.cn-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: max(24px, calc((100vw - var(--cn-shell)) / 2));
  width: min(390px, calc(100vw - 32px));
  padding: 0;
  background: #0b1625;
  border: 1px solid #1f3046;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
  z-index: 1001;
}
.cn-search-panel .cn-shell { width: 100%; margin: 0; padding: 12px; }
.cn-search-panel form.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 0; }
.cn-search-panel form.search-form label { display: block; margin: 0; min-width: 0; }
.cn-search-panel input[type="search"] {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  border: 1px solid #2b3a50 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #121821 !important;
  padding: 0 13px !important;
  font-size: 14px !important;
  line-height: 42px !important;
}
.cn-search-panel input[type="submit"],
.cn-search-panel button[type="submit"] {
  width: auto !important;
  min-width: 86px !important;
  min-height: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--cn-red) !important;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  padding: 0 14px !important;
  box-shadow: none !important;
}
.cn-mobile-panel .cn-shell { padding: 12px 0 18px; }
.cn-mobile-menu { list-style: none; padding: 0; margin: 0 0 14px; }
.cn-mobile-menu a { display: block; padding: 12px 0; color: #fff; border-bottom: 1px solid #1a293d; text-decoration: none; font-weight: 700; }

/* Base */
.cn-site-main { min-height: 60vh; }
.cn-top-grid { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(280px, .72fr); gap: 18px; padding-top: 18px; align-items: start; }
.cn-editorial-top { display: grid; grid-template-columns: minmax(0, 1.82fr) minmax(250px, .78fr); gap: 14px; align-items: stretch; height: 350px; }
.cn-hero-card, .cn-secondary-card { position: relative; overflow: hidden; border-radius: var(--cn-radius); background: #0d1725 var(--cn-bg) center/cover no-repeat; }
.cn-hero-card { min-height: 0; height: 350px; }
.cn-secondary-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; height: 350px; }
.cn-secondary-card { min-height: 0; height: 168px; }
.cn-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,7,14,.16) 14%, rgba(2,7,14,.92) 100%); pointer-events: none; }
.cn-card-link { position: absolute; inset: 0; z-index: 2; }
.cn-hero-copy, .cn-secondary-copy { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 18px; color: #fff; pointer-events: none; }
.cn-hero-copy h1 { margin: 7px 0 6px; max-width: 720px; font-size: clamp(26px, 2.2vw, 38px); line-height: 1.02; letter-spacing: -.035em; color: #fff !important; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.cn-hero-copy p { max-width: 680px; margin: 0 0 8px; color: #edf2f7; font-size: 13px; line-height: 1.35; }
.cn-secondary-copy { left: 14px; right: 14px; bottom: 13px; }
.cn-secondary-copy h2 { margin: 5px 0 3px; font-size: 15px; line-height: 1.06; color: #fff !important; text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.cn-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; color: #fff; background: var(--cn-red); border-radius: 7px; font-weight: 800; font-size: 11px; text-transform: uppercase; }
.cn-cat-animes { background: #1f78ff; }
.cn-cat-games { background: var(--cn-purple); }
.cn-cat-tecnologia { background: var(--cn-green); }
.cn-cat-quadrinhos-e-mangas { background: #ff632f; }
.cn-cat-e-sports { background: #00a7c7; }
.cn-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #778397; }
.cn-hero-card .cn-meta, .cn-secondary-card .cn-meta { color: #dbe4ef; }

/* Ranking */
.cn-ranking-card, .cn-side-card { background: #fff; border: 1px solid var(--cn-line); border-radius: var(--cn-radius); padding: 16px; }
.cn-section-title, .cn-side-title { display: flex; align-items: center; gap: 9px; }
.cn-section-title h2, .cn-side-title h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.cn-section-title.compact h2 { font-size: 20px; text-transform: uppercase; }
.cn-section-icon { color: var(--cn-red); font-size: 22px; }
.cn-rank-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 14px 0; border: 1px solid var(--cn-line); border-radius: 8px; overflow: hidden; }
.cn-rank-tabs button { min-height: 40px; border: 0; border-right: 1px solid var(--cn-line); background: var(--cn-soft); color: #263244; font-weight: 800; font-size: 12px; cursor: pointer; }
.cn-rank-tabs button:last-child { border-right: 0; }
.cn-rank-tabs button.is-active { background: linear-gradient(90deg, #e91e63, var(--cn-red)); color: #fff; }
.cn-rank-tabs-single {
  display: flex;
  grid-template-columns: none;
  width: 100%;
  margin: 0 0 14px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.cn-rank-tabs-single .is-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e91e63, var(--cn-red));
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

.cn-rank-panel .wpp-list, .cn-ranking-fallback { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
.cn-ranking-card .cn-rank-panel .wpp-list li,
.cn-ranking-card .cn-ranking-fallback li {
  counter-increment: rank;
  position: relative;
  min-height: 58px !important;
  padding: 4px 0 4px 34px !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 82px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 7px !important;
  row-gap: 0 !important;
  align-items: center !important;
  border-bottom: 1px solid #edf0f4;
}
.cn-ranking-card .cn-rank-panel .wpp-list li::before,
.cn-ranking-card .cn-ranking-fallback li::before {
  content: counter(rank, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  color: #8b95a5;
}
.cn-ranking-card .cn-rank-panel .wpp-list li:first-child::before { color: var(--cn-orange); }
.cn-ranking-card .cn-rank-panel .wpp-list li > a:first-of-type,
.cn-ranking-card .cn-ranking-fallback li > a.cn-rank-thumb {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  display: block !important;
  margin: 0 !important;
  align-self: center !important;
}
.cn-ranking-card .wpp-thumbnail,
.cn-ranking-card .cn-rank-thumb img {
  display: block !important;
  float: none !important;
  width: 82px !important;
  height: 54px !important;
  object-fit: cover !important;
  border-radius: 7px !important;
  margin: 0 !important;
}
.cn-ranking-card .wpp-post-title,
.cn-ranking-card .cn-rank-title {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 10.5px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}
.cn-ranking-card .wpp-meta,
.cn-ranking-card .cn-rank-meta {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  display: block !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  color: #8b95a5 !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
}


/* Timeline + sidebar */
.cn-content-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(300px, .8fr); gap: 20px; padding-top: 24px; padding-bottom: 44px; }
.cn-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.cn-section-head .cn-section-title h2 { text-transform: uppercase; }
.cn-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cn-filters a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--cn-soft); color: #273346; text-decoration: none; font-size: 12px; font-weight: 800; }
.cn-filters a.is-active { background: var(--cn-red); color: #fff; }
.cn-timeline { position: relative; }
.cn-timeline::before { content: ""; position: absolute; left: 61px; top: 0; bottom: 0; width: 2px; background: #dbe2eb; }
.cn-timeline-item { position: relative; display: grid; grid-template-columns: 74px 210px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 120px; padding: 10px 0; border-bottom: 1px solid var(--cn-line); }
.cn-timeline-date { align-self: start; padding-top: 16px; text-align: left; }
.cn-timeline-date strong { display: block; font-size: 14px; }
.cn-timeline-date span { color: #8691a1; font-size: 12px; }
.cn-timeline-dot { position: absolute; left: 54px; top: 33px; width: 15px; height: 15px; border: 3px solid #fff; box-shadow: 0 0 0 1px #d6dde7; border-radius: 50%; background: var(--cn-red); z-index: 2; }
.cn-timeline-thumb { display: block; border-radius: 9px; overflow: hidden; aspect-ratio: 16/9; background: var(--cn-soft); }
.cn-timeline-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-timeline-copy { min-width: 0; }
.cn-timeline-copy h3 { margin: 5px 0 4px; font-size: 18px; line-height: 1.2; }
.cn-timeline-copy h3 a { text-decoration: none; }
.cn-timeline-copy p { margin: 0 0 8px; color: #677284; font-size: 14px; }
.cn-read-more { align-self: center; min-width: 96px; text-align: center; text-decoration: none; padding: 10px 12px; border: 1px solid #abb5c2; border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.cn-read-more:hover { border-color: var(--cn-red); color: var(--cn-red); }
.cn-pagination ul { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 20px 0 0; margin: 0; }
.cn-pagination a, .cn-pagination span { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--cn-line); border-radius: 8px; text-decoration: none; }
.cn-pagination .current { background: var(--cn-red); color: #fff; border-color: var(--cn-red); }
.cn-home-sidebar { display: grid; align-content: start; gap: 14px; }
.cn-achados-promo { position: relative; overflow: hidden; min-height: 190px; border-radius: var(--cn-radius); padding: 22px; background: radial-gradient(circle at 85% 30%, #3b1d7c 0 10%, transparent 42%), linear-gradient(135deg, #09172a, #0c1b31 55%, #241052); color: #fff; }
.cn-achados-promo::after { content: ""; position: absolute; width: 230px; height: 230px; right: -80px; bottom: -100px; border-radius: 50%; border: 34px solid rgba(22,119,255,.28); }
.cn-achados-promo > div { position: relative; z-index: 2; max-width: 78%; }
.cn-achados-promo h2 { margin: 4px 0 8px; text-transform: uppercase; font-size: 22px; }
.cn-achados-promo p { color: #e3eaf4; font-size: 13px; }
.cn-achados-promo a { display: inline-flex; min-height: 42px; align-items: center; padding: 0 16px; margin-top: 5px; border-radius: 8px; background: var(--cn-red); color: #fff; text-decoration: none; font-weight: 800; font-size: 12px; }
.cn-promo-kicker { color: #1c83ff; }
.cn-side-title h2 { font-size: 18px; text-transform: uppercase; }
.cn-side-card > p { color: #687487; font-size: 13px; }
.cn-admin-hint, .cn-newsletter-soon { padding: 10px; border-radius: 8px; background: #fff5d7; color: #654f05; font-size: 12px; }
.cn-category-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cn-category-tile { position: relative; overflow: hidden; min-height: 86px; border-radius: 8px; background: #122033 var(--cn-bg) center/cover no-repeat; text-decoration: none; }
.cn-category-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(5,9,16,.86)); }
.cn-category-tile span { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 7px; color: #fff; font-size: 10px; font-weight: 800; }

/* Footer */
.cn-site-footer { background: #081321; color: #d9e1eb; padding: 34px 0; }
.cn-footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1fr; gap: 34px; }
.cn-footer-logo { max-width: 150px; max-height: 50px; width: auto; }
.cn-footer-brand p, .cn-footer-copy p { color: #8f9bad; font-size: 13px; max-width: 420px; }
.cn-site-footer h3 { color: #fff; margin: 0 0 12px; font-size: 14px; text-transform: uppercase; }
.cn-site-footer ul { list-style: none; margin: 0; padding: 0; }
.cn-site-footer li { margin: 7px 0; }
.cn-site-footer a { color: #d9e1eb; text-decoration: none; font-size: 13px; }
.cn-site-footer a:hover { color: #fff; }
.cn-footer-copy { position: relative; }
.cn-back-top { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-top: 10px; border-radius: 8px; background: #1c2a3d; font-size: 18px !important; }

@media (max-width: 1240px) {
  .cn-shell { width: min(calc(100% - 36px), var(--cn-shell)); }
  .cn-primary-nav { display: none; }
  .cn-menu-toggle { display: inline-grid; }
  .cn-header-inner { grid-template-columns: auto 1fr auto; }
  .cn-brand { grid-column: 1; }
  .cn-header-actions { grid-column: 3; }
  .cn-top-grid, .cn-content-grid { grid-template-columns: 1fr; }
  .cn-ranking-card { order: 2; }
  .cn-editorial-top { min-height: 0; }
  .cn-home-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-home-sidebar > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .admin-bar .cn-site-header { top: 46px; }
  .cn-shell { width: min(calc(100% - 28px), var(--cn-shell)); }
  .cn-header-inner { min-height: 64px; gap: 10px; }
  .cn-logo-img { max-width: 145px; max-height: 46px; }
  .cn-header-actions > .cn-socials { display: none; }
  .cn-editorial-top { grid-template-columns: 1fr; }
  .cn-hero-card { min-height: 300px; }
  .cn-secondary-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .cn-secondary-card { min-height: 155px; }
  .cn-section-head { align-items: flex-start; flex-direction: column; }
  .cn-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; }
  .cn-filters a { white-space: nowrap; }
  .cn-timeline::before { left: 12px; }
  .cn-timeline-item { grid-template-columns: 1fr; gap: 10px; padding: 18px 0 18px 30px; }
  .cn-timeline-date { display: flex; gap: 8px; align-items: baseline; padding-top: 0; }
  .cn-timeline-dot { left: 5px; top: 24px; }
  .cn-timeline-thumb { max-width: 100%; }
  .cn-read-more { justify-self: start; }
  .cn-home-sidebar { grid-template-columns: 1fr; }
  .cn-home-sidebar > :last-child { grid-column: auto; }
  .cn-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .cn-shell { width: min(calc(100% - 20px), var(--cn-shell)); }
  .cn-secondary-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cn-secondary-card { min-height: 155px; }
  .cn-hero-copy h1 { font-size: 31px; }
  .cn-category-tiles { grid-template-columns: repeat(2, 1fr); }
  .cn-footer-grid { grid-template-columns: 1fr; }
}

/* Páginas internas + artigos */
.cn-page-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(300px, .8fr); gap: 28px; padding-top: 28px; padding-bottom: 52px; align-items: start; }
.cn-portal-sidebar { display: grid; align-content: start; gap: 14px; min-width: 0; }
.cn-article, .cn-standard-page, .cn-archive-area { min-width: 0; }
.cn-article-header, .cn-standard-header { max-width: 920px; margin: 0 auto 22px; }
.cn-article-header h1, .cn-standard-header h1, .cn-archive-header h1 { margin: 10px 0 12px; font-size: clamp(34px, 4vw, 58px); line-height: 1.03; letter-spacing: -.035em; }
.cn-article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--cn-muted); font-size: 13px; }
.cn-article-cover { max-width: 1040px; margin: 0 auto 28px; border-radius: 14px; overflow: hidden; background: var(--cn-soft); }
.cn-article-cover img { width: 100%; height: auto; max-height: 620px; object-fit: cover; display: block; }
.cn-article-body { max-width: 860px; margin: 0 auto; font-size: 18px; line-height: 1.78; color: #242c38; }
.cn-article-body p { margin: 0 0 1.25em; }
.cn-article-body h2 { margin: 1.7em 0 .55em; font-size: 31px; line-height: 1.15; letter-spacing: -.025em; }
.cn-article-body h3 { margin: 1.5em 0 .5em; font-size: 24px; line-height: 1.2; }
.cn-article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.cn-article-body a { color: #155fd4; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Conteúdos relacionados em cards */
.cn-related { max-width: 1040px; margin: 44px auto 0; padding-top: 28px; border-top: 1px solid var(--cn-line); }
.cn-related .cn-section-title { margin-bottom: 16px; }
.cn-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cn-related-card { overflow: hidden; background: #fff; border: 1px solid var(--cn-line); border-radius: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.cn-related-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(18,24,33,.08); }
.cn-related-thumb { display: block; aspect-ratio: 16/9; background: var(--cn-soft); overflow: hidden; }
.cn-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.cn-related-card:hover .cn-related-thumb img { transform: scale(1.025); }
.cn-related-copy { padding: 14px; }
.cn-related-kicker { color: var(--cn-red); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.cn-related-copy h3 { margin: 6px 0 10px; font-size: 16px; line-height: 1.25; }
.cn-related-copy h3 a { text-decoration: none; }

/* Comentários compactos */
.cn-comments-wrap { max-width: 860px; margin: 42px auto 0; padding-top: 26px; border-top: 1px solid var(--cn-line); }
.cn-comments { width: 100%; }
.cn-comment-title { margin: 0 0 14px; font-size: 25px; letter-spacing: -.02em; }
.cn-comment-list { list-style: none; padding: 0; margin: 16px 0 30px; }
.cn-comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--cn-line); }
.cn-comment-form { max-width: 720px; }
.cn-comment-form label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.cn-comment-form textarea, .cn-comment-form input[type="text"], .cn-comment-form input[type="email"], .cn-comment-form input[type="url"] { width: 100%; border: 1px solid #dfe4eb; border-radius: 9px; padding: 12px 14px; background: #fff; color: var(--cn-ink); font: inherit; }
.cn-comment-form textarea { min-height: 150px; resize: vertical; }
.cn-comment-form .form-submit { margin-top: 12px; }
.cn-comment-submit { border: 0; border-radius: 9px; background: var(--cn-red); color: #fff; font-weight: 800; padding: 12px 18px; cursor: pointer; }
.cn-comment-submit:hover { filter: brightness(.94); }

/* Arquivos, categorias e busca */
.cn-archive-header { margin-bottom: 18px; }
.cn-archive-header h1 { font-size: clamp(30px, 3vw, 44px); }
.cn-archive-description { color: var(--cn-muted); }
.cn-archive-grid { display: grid; gap: 14px; }
.cn-archive-card { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; padding: 14px; border: 1px solid var(--cn-line); border-radius: 12px; background: #fff; }
.cn-archive-thumb { aspect-ratio: 16/9; overflow: hidden; border-radius: 9px; background: var(--cn-soft); }
.cn-archive-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-archive-copy h2 { margin: 7px 0 6px; font-size: 22px; line-height: 1.16; }
.cn-archive-copy h2 a { text-decoration: none; }
.cn-archive-copy p { margin: 0 0 10px; color: var(--cn-muted); }
.cn-standard-header h1 { font-size: clamp(32px, 3.6vw, 50px); }

@media (max-width: 1240px) {
  .cn-page-grid { grid-template-columns: 1fr; }
  .cn-portal-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-portal-sidebar > :first-child { grid-column: 1 / -1; }
  .cn-portal-sidebar > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .cn-page-grid { padding-top: 20px; gap: 22px; }
  .cn-article-header h1 { font-size: 36px; }
  .cn-article-body { font-size: 17px; line-height: 1.7; }
  .cn-related-grid { grid-template-columns: 1fr; }
  .cn-archive-card { grid-template-columns: 1fr; }
  .cn-portal-sidebar { grid-template-columns: 1fr; }
  .cn-portal-sidebar > :first-child, .cn-portal-sidebar > :last-child { grid-column: auto; }
}


@media (max-width: 800px) {
  .cn-search-panel {
    right: 14px;
    width: min(390px, calc(100vw - 28px));
  }
}

@media (max-width: 520px) {
  .cn-search-panel form.search-form {
    grid-template-columns: 1fr;
  }
  .cn-search-panel input[type="submit"],
  .cn-search-panel button[type="submit"] {
    width: 100% !important;
  }
}

.cn-hero-card .cn-hero-copy h1,
.cn-secondary-card .cn-secondary-copy h2 { color: #f8fbff !important; }

@media (max-width: 1080px) {
  .cn-editorial-top { height: auto; }
  .cn-hero-card { height: auto; min-height: 300px; }
  .cn-secondary-grid { height: auto; }
  .cn-secondary-card { height: auto; min-height: 155px; }
}

/* ===== v1.6.0: tighten ranking + pull timeline upward ===== */
@media (min-width: 1025px) {
  .cn-ranking-card {
    padding: 14px !important;
  }

  .cn-ranking-card .cn-rank-panel .wpp-list li,
  .cn-ranking-card .cn-ranking-fallback li {
    min-height: 52px !important;
    padding: 3px 0 3px 30px !important;
    grid-template-columns: 74px minmax(0, 1fr) !important;
    column-gap: 6px !important;
    row-gap: 0 !important;
  }

  .cn-ranking-card .wpp-thumbnail,
  .cn-ranking-card .cn-rank-thumb img {
    width: 74px !important;
    height: 50px !important;
    border-radius: 6px !important;
  }

  .cn-ranking-card .wpp-post-title,
  .cn-ranking-card .cn-rank-title {
    font-size: 9.6px !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
  }

  .cn-ranking-card .wpp-meta,
  .cn-ranking-card .cn-rank-meta {
    margin: 0 !important;
    font-size: 8.4px !important;
    line-height: 1 !important;
  }

  .cn-ranking-card .cn-rank-panel .wpp-list li::before,
  .cn-ranking-card .cn-ranking-fallback li::before {
    font-size: 15px !important;
  }

  .cn-content-grid {
    margin-top: -112px !important;
    padding-top: 0 !important;
  }

  .cn-content-grid > .cn-timeline-area {
    position: relative;
    z-index: 2;
  }

  .cn-content-grid > .cn-portal-sidebar {
    margin-top: 112px !important;
  }

  .cn-section-head {
    margin-top: 0 !important;
  }
}

@media (max-width: 1024px) {
  .cn-content-grid {
    margin-top: 0 !important;
  }

  .cn-content-grid > .cn-portal-sidebar {
    margin-top: 0 !important;
  }
}


/* ===== v1.7.0: ranking text truly compact + consistent sidebar ===== */
.cn-ranking-card .wpp-list,
.cn-ranking-card .wpp-list li,
.cn-ranking-card .wpp-list li > *,
.cn-ranking-card .wpp-list li > * > * {
  box-sizing: border-box !important;
}

.cn-ranking-card .wpp-list li {
  min-height: 54px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  margin: 0 !important;
}

.cn-ranking-card a.wpp-post-title,
.cn-ranking-card .wpp-post-title,
.cn-ranking-card .cn-rank-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  white-space: normal !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 10px !important;
  line-height: 1.14 !important;
  letter-spacing: -0.01em !important;
  font-weight: 800 !important;
}

.cn-ranking-card a.wpp-post-title br,
.cn-ranking-card .wpp-post-title br,
.cn-ranking-card .cn-rank-title br {
  line-height: 1.14 !important;
}

.cn-ranking-card a.wpp-post-title *,
.cn-ranking-card .wpp-post-title *,
.cn-ranking-card .cn-rank-title * {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.14 !important;
}

.cn-ranking-card .wpp-meta,
.cn-ranking-card .wpp-meta *,
.cn-ranking-card .cn-rank-meta,
.cn-ranking-card .cn-rank-meta * {
  margin: 2px 0 0 !important;
  padding: 0 !important;
  font-size: 8.5px !important;
  line-height: 1 !important;
}

/* Mesma lateral da Home em posts, páginas, arquivos e busca. */
.cn-page-grid .cn-portal-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

@media (min-width: 1241px) {
  .cn-single-layout .cn-portal-sidebar,
  .cn-page-grid .cn-portal-sidebar {
    position: sticky;
    top: 88px;
  }
}


/* ===== v1.8.0: Home independent columns + archive scroll/pagination ===== */
.cn-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(280px, .72fr);
  gap: 18px;
  align-items: start;
  padding-top: 18px;
  padding-bottom: 44px;
}
.cn-home-primary { min-width: 0; }
.cn-home-timeline { padding-top: 18px; }
.cn-home-rail { min-width: 0; display: grid; align-content: start; gap: 14px; }
.cn-home-rail > .cn-portal-sidebar { position: static !important; top: auto !important; margin: 0 !important; }

/* Remove o ajuste negativo da v1.6/v1.7. */
.cn-content-grid { margin-top: 0 !important; padding-top: 24px !important; }
.cn-content-grid > .cn-portal-sidebar { margin-top: 0 !important; }

/* Ranking: neutraliza espaçamento do WP Popular Posts. */
.cn-ranking-card .wpp-list li { font-size: 0 !important; line-height: 1 !important; }
.cn-ranking-card .wpp-list li br { display: none !important; }
.cn-ranking-card .wpp-list li a.wpp-post-title,
.cn-ranking-card .wpp-list li > a:not(.wpp-thumbnail),
.cn-ranking-card .cn-rank-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 9.7px !important;
  line-height: 11px !important;
  white-space: normal !important;
}
.cn-ranking-card .wpp-list li .wpp-meta,
.cn-ranking-card .wpp-list li .post-stats,
.cn-ranking-card .cn-rank-meta {
  display: block !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  font-size: 8.5px !important;
  line-height: 9px !important;
}

/* Categoria/arquivo/busca: rolagem natural, sem sidebar presa. */
@media (min-width: 1241px) {
  .cn-page-grid:not(.cn-single-layout) .cn-portal-sidebar { position: static !important; top: auto !important; }
  .cn-single-layout .cn-portal-sidebar { position: sticky; top: 88px; }
}

/* Paginação de categorias/arquivos. */
.cn-archive-area .cn-pagination { width: 100%; margin-top: 22px; }
.cn-archive-area .cn-pagination .navigation.pagination,
.cn-archive-area .cn-pagination .nav-links { width: 100% !important; }
.cn-archive-area .cn-pagination .nav-links,
.cn-archive-area .cn-pagination ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.cn-archive-area .cn-pagination li {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.cn-archive-area .cn-pagination a.page-numbers,
.cn-archive-area .cn-pagination span.page-numbers,
.cn-archive-area .cn-pagination .page-numbers {
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--cn-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: var(--cn-ink) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.cn-archive-area .cn-pagination .page-numbers.current {
  background: var(--cn-red) !important;
  border-color: var(--cn-red) !important;
  color: #fff !important;
}
.cn-archive-area .cn-pagination .page-numbers.dots {
  border-color: transparent !important;
  background: transparent !important;
}

@media (max-width: 1240px) {
  .cn-home-layout { grid-template-columns: 1fr; }
  .cn-home-rail { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cn-home-rail > .cn-ranking-card,
  .cn-home-rail > .cn-portal-sidebar { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .cn-home-layout { gap: 22px; padding-top: 14px; }
  .cn-home-timeline { padding-top: 14px; }
  .cn-home-rail { grid-template-columns: 1fr; }
}

/* ===== v1.9.0: natural post scroll + imported media normalization ===== */
.cn-single-layout .cn-portal-sidebar,
.cn-page-grid .cn-portal-sidebar {
  position: static !important;
  top: auto !important;
  align-self: start !important;
}
.cn-article-body .cn-inline-media,
.cn-article-body > img.cn-inline-media {
  display: block;
  width: min(100%, 760px);
  margin: 30px auto;
  text-align: center;
}
.cn-article-body .cn-inline-media img,
.cn-article-body > img.cn-inline-media {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}
@media (max-width: 760px) {
  .cn-article-body .cn-inline-media,
  .cn-article-body > img.cn-inline-media { width: 100%; margin: 22px auto; }
}


/* ===== v2.0.0: mídia importada reparada no conteúdo ===== */
.cn-article-body .cn-imported-embed {
  width: min(100%, 820px);
  margin: 28px auto;
}
.cn-article-body .cn-imported-embed .cn-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #07111f;
  box-shadow: 0 8px 28px rgba(8, 19, 33, .12);
}
.cn-article-body .cn-imported-embed.cn-embed-vertical {
  width: min(100%, 430px);
}
.cn-article-body .cn-imported-embed.cn-embed-vertical .cn-embed-frame {
  aspect-ratio: 9 / 16;
}
.cn-article-body .cn-imported-embed iframe,
.cn-article-body .cn-imported-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cn-article-body .cn-imported-embed video {
  object-fit: contain;
  background: #000;
}
.cn-article-body .cn-inline-media,
.cn-article-body figure.cn-inline-media {
  margin: 28px auto;
  max-width: 100%;
}
.cn-article-body .cn-inline-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}


/* ===== v2.1.0: newsletter lateral ===== */
.cn-newsletter-card {
  position: relative;
  overflow: hidden;
  padding: 17px 17px 16px;
  border-color: #dce3ec;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 24, 75, .08), transparent 42%),
    #fff;
}

.cn-newsletter-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--cn-red);
}

.cn-newsletter-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.cn-newsletter-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff0f3;
  color: var(--cn-red);
  font-size: 15px;
  line-height: 1;
}

.cn-newsletter-kicker {
  display: block;
  margin: 0 0 2px;
  color: var(--cn-red);
  font-size: 9px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cn-newsletter-head h2 {
  margin: 0;
  color: var(--cn-ink);
  font-size: 15px;
  line-height: 1.18;
  letter-spacing: -.015em;
  text-transform: none;
}

.cn-newsletter-copy {
  margin: 10px 0 12px !important;
  color: #687487 !important;
  font-size: 11.5px !important;
  line-height: 1.45;
}

.cn-newsletter-form {
  margin-top: 0;
}

.cn-newsletter-form form {
  margin: 0 !important;
}

.cn-newsletter-form p {
  margin: 7px 0 0 !important;
}

.cn-newsletter-form label {
  display: block;
  margin-bottom: 5px;
  color: #59667a;
  font-size: 10px;
  font-weight: 800;
}

.cn-newsletter-form input[type="email"],
.cn-newsletter-form input[type="text"] {
  width: 100% !important;
  min-height: 38px !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 11px !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--cn-ink) !important;
  box-shadow: none !important;
  font-size: 12px !important;
}

.cn-newsletter-form input[type="email"]:focus,
.cn-newsletter-form input[type="text"]:focus {
  outline: none;
  border-color: var(--cn-red) !important;
  box-shadow: 0 0 0 3px rgba(255, 24, 75, .08) !important;
}

.cn-newsletter-form input[type="submit"],
.cn-newsletter-form button,
.cn-newsletter-form .wp-block-button__link {
  width: 100% !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 7px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--cn-red) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer;
}

.cn-newsletter-form input[type="submit"]:hover,
.cn-newsletter-form button:hover,
.cn-newsletter-form .wp-block-button__link:hover {
  filter: brightness(.94);
}

.cn-newsletter-note {
  display: block;
  margin-top: 8px;
  color: #8a95a5;
  font-size: 9.5px;
  line-height: 1.35;
}

.cn-newsletter-card .cn-admin-hint {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px dashed #d9e0ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #637084;
  font-size: 10px;
  line-height: 1.35;
}

.cn-newsletter-card .cn-admin-hint strong {
  color: #344054;
  font-size: 10.5px;
}

@media (max-width: 800px) {
  .cn-newsletter-head h2 { font-size: 16px; }
  .cn-newsletter-copy { font-size: 12px !important; }
}


/* ===== v2.2.0: ícones do portal + pesquisa compacta + sem voltar ao topo duplicado ===== */
.cn-ui-icon,
.cn-section-icon,
.cn-category-tile-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.cn-ui-icon svg,
.cn-section-icon svg,
.cn-category-tile-icon svg {
  display: block;
  width: 21px;
  height: 21px;
}

.cn-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cn-card-heading h2 {
  margin: 0;
}

.cn-ui-icon-red,
.cn-newsletter-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff1744, #ff315f);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 23, 68, .22);
}

.cn-ui-icon-soft-red,
.cn-ui-icon-soft-orange {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.cn-ui-icon-soft-red {
  background: #fff0f3;
  color: var(--cn-red);
}

.cn-ui-icon-soft-orange {
  background: #fff3e7;
  color: var(--cn-orange);
}

/* Pesquisa: markup próprio para não herdar botões/ícones gigantes do Astra. */
.cn-search-panel {
  top: calc(100% + 10px);
  right: max(18px, calc((100vw - var(--cn-shell)) / 2));
  width: min(470px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
  background: #091523;
  border: 1px solid #1b2b41;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

.cn-search-card {
  padding: 15px;
}

.cn-search-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  color: #fff;
}

.cn-search-card-head strong {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.cn-search-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 9px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.cn-search-form .cn-search-field {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #dfe5ed !important;
  border-radius: 9px !important;
  outline: 0 !important;
  background: #fff !important;
  color: #182130 !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 44px !important;
}

.cn-search-form .cn-search-field:focus {
  border-color: var(--cn-red) !important;
  box-shadow: 0 0 0 3px rgba(255, 23, 68, .10) !important;
}

.cn-search-form .cn-search-submit {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 104px !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 17px !important;
  border: 0 !important;
  border-radius: 9px !important;
  outline: 0 !important;
  background: var(--cn-red) !important;
  color: #fff !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-transform: none !important;
  cursor: pointer !important;
}

.cn-search-form .cn-search-submit:hover {
  filter: brightness(.96);
}

/* Garante que estilos globais do Astra não criem um segundo botão/ícone. */
.cn-search-panel .search-submit,
.cn-search-panel .ast-search-submit,
.cn-search-panel .search-icon {
  max-width: 110px !important;
  max-height: 44px !important;
}

/* Achados Nerd */
.cn-achados-promo {
  min-height: 190px;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 100%, rgba(88, 64, 255, .40), transparent 42%),
    linear-gradient(135deg, #081625 0%, #0c1930 60%, #2c1260 100%);
}

.cn-achados-promo::after {
  width: 210px;
  height: 210px;
  right: -78px;
  bottom: -105px;
  border-width: 30px;
}

.cn-achados-promo > .cn-achados-content {
  position: relative;
  z-index: 3;
  max-width: 78%;
}

.cn-achados-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cn-ui-icon-achados {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4058ff, #6b48ff);
  color: #fff;
  box-shadow: 0 8px 22px rgba(66, 82, 255, .27);
}

.cn-achados-head h2 {
  margin: 0 !important;
  color: #fff;
  font-size: 19px !important;
  line-height: 1.1;
}

.cn-achados-head h2 strong {
  color: #6f72ff;
}

.cn-achados-promo p {
  margin: 12px 0 8px;
}

.cn-achados-art {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 12px;
  width: 84px;
  height: 84px;
  color: rgba(148, 134, 255, .94);
  transform: rotate(-7deg);
  filter: drop-shadow(0 10px 16px rgba(15, 8, 46, .38));
  pointer-events: none;
}

.cn-achados-art svg {
  width: 100%;
  height: 100%;
}

/* Newsletter */
.cn-newsletter-card .cn-newsletter-head {
  grid-template-columns: 40px minmax(0, 1fr);
}

.cn-newsletter-card .cn-newsletter-icon {
  font-size: 0;
}

.cn-newsletter-card .cn-newsletter-icon svg {
  width: 21px;
  height: 21px;
}

/* Ranking */
.cn-ranking-heading {
  margin-bottom: 12px;
}

.cn-ranking-heading h2 {
  color: var(--cn-ink);
  font-size: 17px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -.015em;
}

/* Últimas postagens */
.cn-section-icon-flame {
  width: 32px;
  height: 32px;
  color: var(--cn-orange);
}

.cn-section-icon-flame svg {
  width: 25px;
  height: 25px;
}

/* Categorias em destaque */
.cn-side-title.cn-card-heading {
  margin-bottom: 12px;
}

.cn-side-title.cn-card-heading h2 {
  font-size: 16px;
  line-height: 1.15;
}

.cn-category-tile {
  min-height: 92px;
}

.cn-category-tile-icon {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(6, 15, 28, .72);
  color: #fff;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.cn-category-tile-icon svg {
  width: 16px;
  height: 16px;
}

/* Remove o direcional duplicado para o topo do child theme e neutraliza o nativo do Astra. */
.cn-back-top,
#ast-scroll-top,
.ast-scroll-to-top-right,
.ast-scroll-to-top-left,
.ast-scroll-top-icon {
  display: none !important;
}

@media (max-width: 800px) {
  .cn-search-panel {
    right: 14px;
    width: min(470px, calc(100vw - 28px));
  }
}

@media (max-width: 520px) {
  .cn-search-card {
    padding: 13px;
  }

  .cn-search-card-head strong {
    font-size: 14px;
  }

  .cn-search-form {
    grid-template-columns: 1fr !important;
  }

  .cn-search-form .cn-search-submit {
    width: 100% !important;
  }

  .cn-achados-promo > .cn-achados-content {
    max-width: 82%;
  }

  .cn-achados-art {
    width: 70px;
    height: 70px;
    opacity: .75;
  }
}


/* ===== v2.3.0: newsletter simples e nativa (MailPoet API) ===== */
.cn-newsletter-native-form {
  margin: 0;
}

.cn-newsletter-native-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.cn-newsletter-email {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--cn-ink) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

.cn-newsletter-email::placeholder {
  color: #98a2b3;
  opacity: 1;
}

.cn-newsletter-email:focus {
  outline: none !important;
  border-color: var(--cn-red) !important;
  box-shadow: 0 0 0 3px rgba(255, 24, 75, .09) !important;
}

.cn-newsletter-submit {
  min-height: 42px;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--cn-red) !important;
  color: #fff !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap;
  cursor: pointer;
}

.cn-newsletter-submit:hover {
  filter: brightness(.94);
}

.cn-newsletter-submit:focus-visible {
  outline: 3px solid rgba(255, 24, 75, .22);
  outline-offset: 2px;
}

.cn-newsletter-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.cn-newsletter-message {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 10.5px;
  line-height: 1.35;
}

.cn-newsletter-message.is-success {
  border: 1px solid #bbebcc;
  background: #effcf3;
  color: #176638;
}

.cn-newsletter-message.is-error {
  border: 1px solid #ffd0d8;
  background: #fff3f5;
  color: #9d1c35;
}

@media (max-width: 420px) {
  .cn-newsletter-native-row {
    grid-template-columns: 1fr;
  }

  .cn-newsletter-submit {
    width: 100%;
  }
}



/* ===== v2.3.1: correção do botão de pesquisa do cabeçalho ===== */
.cn-header-actions {
  position: relative;
}

.cn-search-toggle {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 36px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1 !important;
}

.cn-search-toggle:hover,
.cn-search-toggle:focus-visible,
.cn-search-toggle[aria-expanded="true"] {
  background: #142235 !important;
}

.cn-search-toggle::before,
.cn-search-toggle::after {
  content: none !important;
  display: none !important;
}

.cn-search-toggle svg {
  display: block !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.cn-search-toggle .ast-icon,
.cn-search-toggle .search-icon,
.cn-search-toggle .ast-search-icon,
.cn-search-toggle .icon-search {
  display: none !important;
}


/* ===== v2.4.0: página Achados Nerd ===== */
.cn-achados-page {
  padding: 22px 0 56px;
  background:
    radial-gradient(circle at 88% 4%, rgba(83, 64, 255, .055), transparent 24%),
    linear-gradient(#fff, #fbfcfe);
}

.cn-achados-hero-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #1d2c43;
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 35%, rgba(86, 58, 255, .38), transparent 32%),
    linear-gradient(135deg, #071422 0%, #0b1b31 58%, #2c1260 100%);
  box-shadow: 0 18px 50px rgba(7, 17, 31, .13);
  color: #fff;
}

.cn-achados-hero-page::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -125px;
  bottom: -180px;
  border: 42px solid rgba(36, 119, 255, .18);
  border-radius: 50%;
  pointer-events: none;
}

.cn-achados-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 44px 48px;
}

.cn-achados-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: #b9c8de;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cn-achados-hero-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3769ff, #7044ff);
  color: #fff;
  box-shadow: 0 9px 24px rgba(71, 77, 255, .28);
}

.cn-achados-hero-icon svg {
  width: 21px;
  height: 21px;
}

.cn-achados-hero-copy h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.cn-achados-hero-copy h1 strong {
  color: #5f72ff;
}

.cn-achados-hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: #dbe4ef;
  font-size: 16px;
  line-height: 1.6;
}

.cn-achados-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.cn-achados-hero-pills > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #e8eef7;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.cn-achados-pill-icon,
.cn-achados-pill-icon svg {
  width: 15px;
  height: 15px;
}

.cn-achados-hero-visual {
  position: relative;
  z-index: 1;
  min-height: 330px;
  overflow: hidden;
}

.cn-achados-hero-visual > a,
.cn-achados-hero-visual > p,
.cn-achados-hero-visual > figure {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.cn-achados-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: center;
  filter: saturate(.98) contrast(1.03);
}

.cn-achados-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b1b31 0%, rgba(11, 27, 49, .22) 32%, rgba(11, 27, 49, .03) 100%);
  pointer-events: none;
}

.cn-achados-hero-gamepad {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 210px;
  height: 210px;
  color: #7584ff;
  transform: translate(-50%, -50%) rotate(-8deg);
  opacity: .85;
}

.cn-achados-hero-gamepad svg {
  width: 100%;
  height: 100%;
}

.cn-achados-category-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cn-line);
}

.cn-achados-category-title {
  flex: 0 0 auto;
  color: #6b778a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cn-achados-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cn-achados-category-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #e0e5ec;
  border-radius: 999px;
  background: #fff;
  color: #243148;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  transition: .18s ease;
}

.cn-achados-category-links a:hover {
  border-color: #cbd4e1;
  background: #f6f8fb;
  color: var(--cn-red);
  transform: translateY(-1px);
}

.cn-achados-sections {
  padding-top: 30px;
}

.cn-achados-group {
  scroll-margin-top: 96px;
  margin-bottom: 38px;
}

.cn-achados-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.cn-achados-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cn-achados-group-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: #edf1ff;
  color: #4f63ff;
}

.cn-achados-group-icon svg {
  width: 22px;
  height: 22px;
}

.cn-achados-group-title span {
  display: block;
  margin-bottom: 2px;
  color: #8994a5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cn-achados-group-title h2 {
  margin: 0;
  color: #121a28;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.cn-achados-count {
  color: #8792a3;
  font-size: 11px;
  font-weight: 800;
}

.cn-achados-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cn-achado-card {
  overflow: hidden;
  border: 1px solid #e2e7ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(13, 25, 42, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cn-achado-card:hover {
  transform: translateY(-3px);
  border-color: #d2d9e5;
  box-shadow: 0 14px 34px rgba(13, 25, 42, .09);
}

.cn-achado-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f3f7;
}

.cn-achado-media > a,
.cn-achado-media > p,
.cn-achado-media > figure {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.cn-achado-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.cn-achado-card:hover .cn-achado-media img {
  transform: scale(1.025);
}

.cn-achado-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
  padding: 14px 15px;
}

.cn-achado-card-foot > div {
  min-width: 0;
}

.cn-achado-card-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--cn-red);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cn-achado-card-foot strong {
  display: block;
  color: #273246;
  font-size: 11.5px;
  line-height: 1.25;
}

.cn-achado-card-cta,
.cn-achados-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  background: var(--cn-red);
  color: #fff;
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 900;
}

.cn-achado-card-cta:hover,
.cn-achados-edit-link:hover {
  color: #fff;
  filter: brightness(.95);
}

.cn-achado-card-admin {
  max-width: 155px;
  color: #a06d00;
  font-size: 8.5px;
  line-height: 1.3;
}

.cn-achados-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 10px;
  padding: 18px 20px;
  border: 1px solid #e2e6ee;
  border-radius: 14px;
  background: #f8fafc;
}

.cn-achados-disclosure-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: #eef2ff;
  color: #5367ff;
}

.cn-achados-disclosure-icon svg {
  width: 19px;
  height: 19px;
}

.cn-achados-disclosure strong {
  display: block;
  margin-bottom: 3px;
  color: #29364a;
  font-size: 12px;
}

.cn-achados-disclosure p {
  margin: 0;
  color: #6d788a;
  font-size: 11px;
  line-height: 1.5;
}

.cn-achados-empty,
.cn-achados-fallback {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #e1e6ed;
  border-radius: 14px;
  background: #fff;
}

.cn-achados-empty p {
  color: #6c7788;
}

@media (max-width: 980px) {
  .cn-achados-hero-page {
    grid-template-columns: 1fr;
  }

  .cn-achados-hero-visual {
    min-height: 260px;
  }

  .cn-achados-hero-visual img {
    min-height: 260px;
  }

  .cn-achados-hero-visual::after {
    background: linear-gradient(180deg, #0b1b31 0%, rgba(11, 27, 49, .08) 42%, transparent 100%);
  }

  .cn-achados-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cn-achados-page {
    padding-top: 12px;
  }

  .cn-achados-hero-page {
    border-radius: 15px;
  }

  .cn-achados-hero-copy {
    padding: 30px 24px;
  }

  .cn-achados-hero-copy h1 {
    font-size: 40px;
  }

  .cn-achados-hero-copy > p {
    font-size: 14px;
  }

  .cn-achados-category-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .cn-achados-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .cn-achados-grid {
    grid-template-columns: 1fr;
  }

  .cn-achado-card-foot {
    align-items: flex-start;
  }
}


/* ===== v2.5.0: Achados Nerd — curadoria visual aprimorada ===== */
.cn-achados-page {
  padding: 18px 0 42px;
  background:
    radial-gradient(circle at 12% 5%, rgba(121, 40, 255, .05), transparent 22%),
    linear-gradient(180deg, #fff 0%, #fff 72%, #fafbfe 100%);
}

.cn-achados-hero-page {
  min-height: 330px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(120deg, #26116d 0%, #111f78 44%, #0a1730 100%);
  box-shadow: 0 18px 48px rgba(20, 30, 70, .13);
}

.cn-achados-hero-copy {
  position: relative;
  z-index: 3;
  padding: 44px 42px;
}

.cn-achados-hero-label {
  width: fit-content;
  padding: 7px 11px 7px 7px;
  border-radius: 999px;
  background: rgba(255, 23, 68, .96);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 23, 68, .24);
}

.cn-achados-hero-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255,255,255,.14);
}

.cn-achados-hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: -.045em;
}

.cn-achados-hero-copy h1 strong {
  color: #fff;
}

.cn-achados-hero-copy > p {
  max-width: 650px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
}

.cn-achados-hero-pills {
  gap: 8px;
  margin-top: 22px;
}

.cn-achados-hero-pills > span {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(4,12,33,.55);
  backdrop-filter: blur(5px);
}

.cn-achados-hero-visual {
  position: relative;
  min-height: 330px;
  background:
    radial-gradient(circle at 70% 35%, rgba(255, 23, 68, .28), transparent 28%),
    radial-gradient(circle at 35% 75%, rgba(22, 119, 255, .24), transparent 32%);
}

.cn-achados-hero-visual::after {
  background: linear-gradient(90deg, #101c69 0%, rgba(16,28,105,.48) 14%, rgba(10,23,48,.06) 55%, rgba(10,23,48,.15) 100%);
}

.cn-achados-hero-visual img {
  min-height: 330px;
}

.cn-achados-category-nav {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e8ebf2;
  border-radius: 14px;
  background: #f8f9fc;
}

.cn-achados-category-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cn-red);
  font-size: 11px;
}

.cn-achados-filter-title-icon,
.cn-achados-filter-icon {
  display: inline-grid;
  place-items: center;
}

.cn-achados-filter-title-icon svg,
.cn-achados-filter-icon svg {
  width: 16px;
  height: 16px;
}

.cn-achados-category-links {
  gap: 9px;
}

.cn-achados-filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e0e5ec;
  border-radius: 999px;
  background: #fff;
  color: #243148;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.cn-achados-filter:hover {
  border-color: #cfd6e2;
  transform: translateY(-1px);
}

.cn-achados-filter.is-active {
  border-color: #17243a;
  background: #111d30;
  color: #fff;
  box-shadow: 0 6px 16px rgba(17,29,48,.12);
}

.cn-achados-filter:first-child.is-active {
  border-color: var(--cn-red);
  background: var(--cn-red);
}

.cn-achados-sections {
  padding-top: 32px;
}

.cn-achados-group[hidden] {
  display: none !important;
}

.cn-achados-group {
  margin-bottom: 44px;
}

.cn-achados-group-head {
  align-items: center;
  margin-bottom: 17px;
}

.cn-achados-group-title {
  align-items: flex-start;
}

.cn-achados-group-icon {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  color: #fff;
  background: linear-gradient(145deg, #7940ff 0%, #335dff 100%);
  box-shadow: 0 8px 20px rgba(75, 84, 255, .18);
}

.cn-achados-group-title h2 {
  font-size: 25px;
}

.cn-achados-group-title p {
  margin: 4px 0 0;
  max-width: 720px;
  color: #69758a;
  font-size: 11.5px;
  line-height: 1.45;
}

.cn-achados-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef1ff;
  color: #5362c8;
  font-size: 10.5px;
}

.cn-achados-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.cn-achado-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 14px;
  box-shadow: 0 7px 24px rgba(13,25,42,.055);
}

.cn-achado-media {
  aspect-ratio: 1 / .78;
}

.cn-achado-selected {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--cn-red);
  color: #fff;
  box-shadow: 0 5px 12px rgba(255,23,68,.2);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .02em;
}

.cn-achado-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 13px 13px 14px;
}

.cn-achado-card-body h3 {
  margin: 0;
  color: #172033;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.cn-achado-card-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: 46px;
  margin: 6px 0 12px;
  color: #69758a;
  font-size: 10.5px;
  line-height: 1.42;
}

.cn-achado-card-cta {
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  border-radius: 8px;
  font-size: 10.5px;
  box-shadow: 0 7px 16px rgba(255,23,68,.15);
}

.cn-achado-card-admin {
  display: block;
  margin-top: auto;
  padding: 8px 9px;
  border: 1px dashed #efd99f;
  border-radius: 8px;
  background: #fffaf0;
  max-width: none;
}

.cn-achados-disclosure {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  padding: 22px 24px;
  border-color: #dde2f3;
  border-left: 4px solid #6038ff;
  background: linear-gradient(90deg, #f5f4ff 0%, #f9fbff 100%);
}

.cn-achados-disclosure-icon {
  border-radius: 50%;
  background: #5d3cff;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.cn-achados-disclosure strong {
  color: #202a3d;
  font-size: 14px;
}

.cn-achados-disclosure p {
  max-width: 1050px;
  color: #657188;
  font-size: 11.5px;
}

@media (max-width: 1180px) {
  .cn-achados-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .cn-achados-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-achados-category-nav { align-items: flex-start; }
}

@media (max-width: 680px) {
  .cn-achados-page { padding-top: 10px; }
  .cn-achados-hero-copy { padding: 30px 24px; }
  .cn-achados-hero-copy h1 { font-size: 42px; }
  .cn-achados-hero-pills { flex-wrap: wrap; }
  .cn-achados-category-nav { margin-top: 10px; }
  .cn-achados-category-links { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .cn-achados-filter { flex: 0 0 auto; }
  .cn-achados-group-head { align-items: flex-start; }
  .cn-achados-count { margin-left: 58px; }
  .cn-achados-grid { grid-template-columns: 1fr; }
  .cn-achado-media { aspect-ratio: 16 / 10; }
}


/* ===== v2.6.0: Achados Nerd — cards compactos de vitrine ===== */
.cn-achados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 260px));
  justify-content: start;
  align-items: start;
  gap: 14px;
}

.cn-achado-card {
  width: 100%;
  max-width: 260px;
  border-radius: 13px;
}

.cn-achado-media {
  aspect-ratio: 4 / 3;
  max-height: 195px;
  background: #f5f6f9;
}

.cn-achado-media img {
  object-fit: contain;
  padding: 7px;
  background: #f5f6f9;
}

.cn-achado-card:hover .cn-achado-media img {
  transform: scale(1.018);
}

.cn-achado-selected {
  left: 9px;
  bottom: 9px;
  min-height: 22px;
  padding: 0 8px;
  font-size: 8px;
}

.cn-achado-card-body {
  padding: 11px 12px 12px;
}

.cn-achado-card-body h3 {
  font-size: 13px;
  line-height: 1.22;
}

.cn-achado-card-body p {
  -webkit-line-clamp: 2;
  min-height: 30px;
  margin: 5px 0 10px;
  font-size: 10px;
  line-height: 1.4;
}

.cn-achado-card-cta {
  min-height: 35px;
  border-radius: 7px;
  font-size: 10px;
}

.cn-achado-card-admin {
  padding: 7px 8px;
  font-size: 9px;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .cn-achados-grid {
    grid-template-columns: repeat(auto-fill, minmax(215px, 250px));
  }

  .cn-achado-card {
    max-width: 250px;
  }
}

@media (max-width: 760px) {
  .cn-achados-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .cn-achado-card {
    max-width: none;
  }

  .cn-achado-media {
    max-height: none;
  }
}

@media (max-width: 520px) {
  .cn-achados-grid {
    grid-template-columns: 1fr;
  }

  .cn-achado-card {
    max-width: 360px;
  }

  .cn-achado-media {
    aspect-ratio: 16 / 10;
  }
}

