/* ==========================================================================
   TalHora — Notas de Atualização
   Estilos públicos
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --surface: #101010;
  --surface-2: #151515;
  --surface-3: #1b1b1b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f1f1;
  --text-soft: #cfcfcf;
  --muted: #9a9a9a;
  --muted-2: #6f6f6f;
  --gold: #f9b300;
  --gold-strong: #ffc531;
  --gold-soft: rgba(249, 179, 0, 0.12);
  --danger: #ff5d5d;
  --success: #3ddc97;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 16px 40px rgba(249, 179, 0, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(249, 179, 0, 0.08), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(249, 179, 0, 0.04), transparent 55%),
    linear-gradient(180deg, #070707 0%, #050505 40%, #050505 100%);
  pointer-events: none;
}

::selection {
  background: var(--gold);
  color: #101010;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.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: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--gold);
  color: #101010;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.site-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
}

.site-glow--1 {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
  background: rgba(249, 179, 0, 0.14);
}

.site-glow--2 {
  width: 380px;
  height: 380px;
  bottom: -180px;
  left: -160px;
  background: rgba(249, 179, 0, 0.07);
}

/* ---------- Tipografia auxiliar ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.text-gradient {
  background: linear-gradient(100deg, var(--gold-strong), var(--gold) 55%, #ffdf8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
  display: inline-block;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.8rem;
}

.btn--md {
  padding: 13px 22px;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 0.95rem;
}

.btn--full {
  width: 100%;
}

.btn--gold {
  background: var(--gold);
  color: #101010;
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  background: var(--gold-strong);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn--danger {
  background: rgba(255, 93, 93, 0.12);
  border-color: rgba(255, 93, 93, 0.35);
  color: #ff8a8a;
}

.btn--danger:hover {
  background: var(--danger);
  color: #180404;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    backdrop-filter 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.82);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.site-brand img {
  width: 132px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s var(--ease);
}

.site-nav-link:hover,
.site-nav-link.is-active {
  color: var(--text);
}

.site-nav-link.is-active {
  position: relative;
}

.site-nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.site-nav-cta {
  margin-left: 4px;
}

/* ---------- Hero ---------- */

.notes-hero {
  padding: 78px 0 54px;
}

.notes-title {
  margin-top: 18px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.notes-lead {
  max-width: 640px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.notes-hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-stat strong {
  color: var(--text);
  font-family: var(--font-head);
}

.hero-stat-sep {
  width: 1px;
  height: 16px;
  background: var(--border-strong);
}

/* ---------- Destaque ---------- */

.featured-wrap {
  padding-bottom: 18px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(249, 179, 0, 0.08), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}

.featured-media {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  background: #0b0b0b;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.featured-card:hover .featured-media img {
  transform: scale(1.03);
}

.featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(16, 16, 16, 0.55));
}

.featured-flag {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.7);
  border: 1px solid rgba(249, 179, 0, 0.35);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.featured-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 320px;
  background:
    radial-gradient(400px 260px at 30% 20%, rgba(249, 179, 0, 0.14), transparent 60%),
    linear-gradient(135deg, #101010, #0a0a0a);
}

.featured-ghost {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.06);
  user-select: none;
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 42px;
}

.featured-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.featured-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 700;
}

.featured-title a:hover {
  color: var(--gold);
}

.featured-summary {
  color: var(--muted);
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-cta {
  align-self: flex-start;
  margin-top: 4px;
}

/* ---------- Badges e versão ---------- */

.rn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.rn-badge--category {
  --badge: var(--gold);
  --badge-bg: rgba(249, 179, 0, 0.12);
  --badge-border: rgba(249, 179, 0, 0.3);
  color: var(--badge);
  background: var(--badge-bg);
  border-color: var(--badge-border);
}

.rn-badge--category[data-category="melhorias"] {
  --badge: #64b5ff;
  --badge-bg: rgba(100, 181, 255, 0.12);
  --badge-border: rgba(100, 181, 255, 0.3);
}

.rn-badge--category[data-category="correcoes"] {
  --badge: #4fe0a4;
  --badge-bg: rgba(79, 224, 164, 0.12);
  --badge-border: rgba(79, 224, 164, 0.3);
}

.rn-badge--category[data-category="manutencao"] {
  --badge: #b79cff;
  --badge-bg: rgba(183, 156, 255, 0.12);
  --badge-border: rgba(183, 156, 255, 0.3);
}

.rn-badge--category[data-category="seguranca"] {
  --badge: #ff8080;
  --badge-bg: rgba(255, 128, 128, 0.12);
  --badge-border: rgba(255, 128, 128, 0.3);
}

.rn-version {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.rn-version--lg {
  font-size: 0.9rem;
}

/* ---------- Grid de cards ---------- */

.notes-list-section {
  padding: 58px 24px 90px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  margin-top: 12px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
}

.section-count {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.release-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.release-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 179, 0, 0.3);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

.release-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b0b0b;
}

.release-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.release-card:hover .release-card-media img {
  transform: scale(1.04);
}

.release-card-media .rn-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(6px);
}

.release-card-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  background:
    radial-gradient(300px 180px at 30% 20%, rgba(249, 179, 0, 0.12), transparent 65%),
    linear-gradient(135deg, #111, #0a0a0a);
}

.release-card-ghost {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.07);
}

.release-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  flex: 1;
}

.release-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
}

.release-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.release-card-title a:hover {
  color: var(--gold);
}

.release-card-summary {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.release-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
}

.release-card-link svg {
  transition: transform 0.2s var(--ease);
}

.release-card:hover .release-card-link svg {
  transform: translateX(4px);
}

/* ---------- Filtros ---------- */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 16, 16, 0.7);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.filter-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.filter-chip.is-active {
  background: var(--gold);
  color: #101010;
}

.filter-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
  flex: 1;
  max-width: 360px;
}

.filter-search-icon {
  position: absolute;
  left: 14px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  pointer-events: none;
}

.filter-search input {
  width: 100%;
  padding: 11px 96px 11px 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.85rem;
  transition: border-color 0.18s var(--ease);
}

.filter-search input::placeholder {
  color: var(--muted-2);
}

.filter-search input:focus {
  border-color: rgba(249, 179, 0, 0.5);
  outline: none;
}

.filter-search-btn {
  position: absolute;
  right: 5px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #101010;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.82rem;
}

.filter-active a {
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Paginação ---------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
}

.page-btn {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
    background 0.18s var(--ease);
}

.page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #101010;
}

.page-btn--nav {
  padding: 0 16px;
}

.page-dots {
  color: var(--muted-2);
  padding: 0 4px;
}

/* ---------- Estado vazio ---------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 72px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(16, 16, 16, 0.4);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--gold-soft);
  color: var(--gold);
}

.empty-state h3 {
  font-size: 1.3rem;
}

.empty-state p {
  max-width: 440px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Artigo ---------- */

.article-page {
  padding-bottom: 90px;
}

.page-preview .site-header {
  position: static;
}

.preview-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 10px 0;
  background: var(--gold);
  color: #101010;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
}

.preview-bar .container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-bar a {
  margin-left: auto;
  text-decoration: underline;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #101010;
  animation: pulse 1.6s infinite;
}

.article-topbar {
  padding-top: 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.18s var(--ease);
}

.back-link:hover {
  color: var(--gold);
}

.article-header {
  max-width: 860px;
  margin-top: 34px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.article-title {
  margin-top: 18px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.article-summary {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.article-share-label {
  margin-right: 4px;
  color: var(--muted-2);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.share-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background 0.18s var(--ease), transform 0.18s var(--ease);
}

.share-btn:hover {
  color: var(--gold);
  border-color: rgba(249, 179, 0, 0.4);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.share-btn.is-copied {
  color: #101010;
  background: var(--success);
  border-color: var(--success);
}

.article-cover {
  max-width: 980px;
  margin-top: 40px;
}

.article-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
  margin-top: 52px;
}

.article-content {
  min-width: 0;
}

.article-side {
  position: sticky;
  top: 96px;
}

.article-side-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-facts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.article-facts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.article-facts dt {
  color: var(--muted-2);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-facts dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
}

.article-empty {
  padding: 30px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.related-section {
  margin-top: 72px;
}

/* ---------- Conteúdo rico ---------- */

.rn-content {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.8;
}

.rn-content > *:first-child {
  margin-top: 0;
}

.rn-content > *:last-child {
  margin-bottom: 0;
}

.rn-content p {
  margin: 0 0 1.15em;
}

.rn-content h2,
.rn-content h3,
.rn-content h4 {
  margin: 1.9em 0 0.7em;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rn-content h2 {
  font-size: 1.7rem;
}

.rn-content h3 {
  font-size: 1.3rem;
}

.rn-content h4 {
  font-size: 1.08rem;
}

.rn-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(249, 179, 0, 0.4);
  text-underline-offset: 3px;
}

.rn-content a:hover {
  text-decoration-color: var(--gold);
}

.rn-content strong,
.rn-content b {
  color: var(--text);
  font-weight: 700;
}

.rn-content ul,
.rn-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.rn-content li {
  margin-bottom: 0.5em;
}

.rn-content li::marker {
  color: var(--gold);
}

.rn-content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gold-soft);
  color: var(--text-soft);
  font-style: italic;
}

.rn-content blockquote p:last-child {
  margin-bottom: 0;
}

.rn-content hr {
  margin: 2.2em 0;
  border: 0;
  height: 1px;
  background: var(--border);
}

.rn-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 1.6em auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rn-content figure {
  margin: 1.8em 0;
}

.rn-content figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.rn-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  color: var(--gold-strong);
}

.rn-content pre {
  margin: 1.6em 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #0a0a0a;
}

.rn-content pre code {
  padding: 0;
  background: transparent;
  color: var(--text-soft);
}

.rn-callout {
  margin: 1.7em 0;
  padding: 18px 20px;
  border: 1px solid rgba(249, 179, 0, 0.3);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--text-soft);
}

.rn-callout--warn {
  border-color: rgba(255, 176, 77, 0.35);
  border-left-color: #ffb04d;
  background: rgba(255, 176, 77, 0.1);
}

.rn-callout--success {
  border-color: rgba(61, 220, 151, 0.35);
  border-left-color: var(--success);
  background: rgba(61, 220, 151, 0.1);
}

.rn-callout--danger {
  border-color: rgba(255, 93, 93, 0.35);
  border-left-color: var(--danger);
  background: rgba(255, 93, 93, 0.1);
}

.rn-callout p:last-child {
  margin-bottom: 0;
}

.rn-highlight {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(249, 179, 0, 0.22);
  color: var(--gold-strong);
}

.rn-lead {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.7;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: #070707;
  padding-top: 54px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.site-footer-brand img {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.site-footer-brand p {
  max-width: 340px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-title {
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer-col a {
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 0.18s var(--ease);
}

.site-footer-col a:hover {
  color: var(--gold);
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.76rem;
}

/* ---------- 404 ---------- */

.notfound-page {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 80px 0;
  text-align: center;
}

.notfound-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.notfound-code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(249, 179, 0, 0.14);
}

.notfound-title {
  max-width: 560px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.notfound-text {
  max-width: 460px;
  color: var(--muted);
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

/* ---------- Loading ---------- */

.page-loading {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(4px);
}

.loading-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---------- Animações ---------- */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.82); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-media,
  .featured-placeholder {
    min-height: 260px;
  }

  .featured-shade {
    background: linear-gradient(180deg, transparent 55%, rgba(16, 16, 16, 0.6));
  }

  .featured-body {
    padding: 30px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .article-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    padding-inline: 18px;
  }

  .site-header-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding-block: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  .site-nav-link {
    font-size: 0.82rem;
  }

  .site-nav-cta {
    padding: 9px 14px;
    font-size: 0.76rem;
  }

  .notes-hero {
    padding: 48px 0 38px;
  }

  .notes-title {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .notes-lead {
    font-size: 0.95rem;
  }

  .notes-hero-stats {
    gap: 10px;
    font-size: 0.8rem;
  }

  .hero-stat-sep {
    display: none;
  }

  .notes-list-section {
    padding: 40px 18px 70px;
  }

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

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search {
    max-width: none;
    min-width: 0;
  }

  .release-grid {
    grid-template-columns: 1fr;
  }

  .featured-body {
    padding: 24px;
  }

  .featured-cta {
    align-self: stretch;
  }

  .article-title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .article-summary {
    font-size: 0.98rem;
  }

  .article-cover {
    margin-top: 28px;
  }

  .article-layout {
    margin-top: 34px;
  }

  .rn-content {
    font-size: 0.97rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Sugest�es ---------- */

.page-suggestions {
  color-scheme: dark;
}

.suggestions-hero {
  padding: 78px 0 42px;
}

.suggestions-title {
  margin-top: 18px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.suggestions-lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
}

.suggestions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: start;
  gap: 28px;
  padding-bottom: 96px;
}

.suggestion-panel {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 32%),
    var(--surface);
  box-shadow: var(--shadow);
}

.suggestion-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.suggestion-panel-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(249, 179, 0, 0.28);
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold);
}

.suggestion-panel-head h2 {
  font-size: 1.2rem;
}

.suggestion-panel-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
}

.suggestion-panel-head p span {
  color: var(--gold);
}

.suggestion-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.suggestion-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.suggestion-field label {
  color: var(--text-soft);
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.suggestion-field label span[aria-hidden="true"] {
  color: var(--gold);
}

.suggestion-optional {
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
}

.suggestion-field input,
.suggestion-field select,
.suggestion-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  outline: none;
  background: #0a0a0a;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.suggestion-field input::placeholder,
.suggestion-field textarea::placeholder {
  color: #666;
}

.suggestion-field input:focus,
.suggestion-field select:focus,
.suggestion-field textarea:focus {
  border-color: rgba(249, 179, 0, 0.55);
  background: #0c0c0c;
  box-shadow: 0 0 0 3px rgba(249, 179, 0, 0.09);
}

.suggestion-field select {
  cursor: pointer;
}

.suggestion-field textarea {
  min-height: 168px;
  resize: vertical;
  line-height: 1.6;
}

.suggestion-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.suggestion-counter {
  color: var(--muted-2);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.suggestion-field-hint {
  color: var(--muted-2);
  font-size: 0.72rem;
}

.suggestion-field-error {
  color: #ff8a8a;
  font-size: 0.76rem;
}

.suggestion-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.suggestion-alert svg {
  flex: none;
  margin-top: 1px;
}

.suggestion-alert--ok {
  border-color: rgba(61, 220, 151, 0.25);
  background: rgba(61, 220, 151, 0.08);
  color: #9af0c6;
}

.suggestion-alert--err {
  border-color: rgba(255, 93, 93, 0.3);
  background: rgba(255, 93, 93, 0.08);
  color: #ffaaaa;
}

.suggestion-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
}

.suggestion-privacy {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.suggestion-privacy svg {
  flex: none;
  color: var(--muted);
}

.suggestion-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.suggestion-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.suggestion-aside-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.suggestion-aside-card--gold {
  border-color: rgba(249, 179, 0, 0.22);
  background: linear-gradient(160deg, rgba(249, 179, 0, 0.09), rgba(249, 179, 0, 0.015) 60%), var(--surface);
}

.suggestion-aside-label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.suggestion-aside-card h2 {
  font-size: 1.05rem;
}

.suggestion-aside-card > p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.suggestion-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.suggestion-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.suggestion-step-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(249, 179, 0, 0.3);
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
}

.suggestion-steps strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 600;
}

.suggestion-steps p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.suggestion-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  color: var(--muted);
  font-size: 0.8rem;
  transition: color 0.18s var(--ease);
}

.suggestion-back-link:hover {
  color: var(--gold);
}

@media (max-width: 960px) {
  .suggestions-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 72px;
  }

  .suggestion-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-nav-cta {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .suggestions-hero {
    padding: 48px 0 30px;
  }

  .suggestions-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .suggestion-panel {
    padding: 22px;
  }

  .suggestion-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .suggestion-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .suggestion-form-footer .btn {
    width: 100%;
  }
}
