/* ============================================================
   Conexão Cosmópolis — NEWS OS Framework
   Main Stylesheet v1.3.0 — Fixed Layout Edition
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand */
  --nos-accent:        #0891b2; /* cyan-600 */
  --nos-accent-light:  #e0f2fe; /* cyan-50  */
  --nos-accent-hover:  #0e7490; /* cyan-700 */
  --nos-live:          #dc2626; /* red-600  */
  --nos-live-light:    #fef2f2; /* red-50   */

  /* Neutrals */
  --nos-white:    #ffffff;
  --nos-bg:       #ffffff;
  --nos-surface:  #f9fafb; /* zinc-50  */
  --nos-border:   #e4e4e7; /* zinc-200 */
  --nos-border-2: #d1d5db; /* zinc-300 */

  /* Text */
  --nos-text:        #09090b; /* zinc-950 */
  --nos-text-2:      #3f3f46; /* zinc-700 */
  --nos-text-muted:  #71717a; /* zinc-500 */
  --nos-text-faint:  #a1a1aa; /* zinc-400 */

  /* Layout */
  --nos-navbar-h:        3.5rem;
  --nos-sidebar-left-w:  5rem;
  --nos-sidebar-right-w: 20rem;
  --nos-max-feed:        42rem;
  --nos-content-max:     90rem;
  --nos-mobile-nav-h:    3.25rem;

  /* Typography */
  --nos-font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --nos-font-serif: 'Playfair Display', Georgia, serif;

  /* Radius */
  --nos-radius-sm:   0.25rem;
  --nos-radius:      0.5rem;
  --nos-radius-lg:   0.75rem;
  --nos-radius-full: 9999px;

  /* Shadow */
  --nos-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --nos-shadow:    0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);

  /* Transition */
  --nos-transition: 150ms ease;

  /* Ads */
  --nos-ad-bg: #fffbeb;
  --nos-ad-border: #fde68a;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--nos-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--nos-text);
  background-color: var(--nos-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--nos-accent); }
img, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Layout — Fixed Chrome ───────────────────────────────────── */
/* Todos os painéis fixos; apenas #nos-feed rola */
.nos-layout {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* ── Navbar — Fixo no topo ──────────────────────────────────── */
.nos-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nos-navbar-h);
  background: var(--nos-white);
  border-bottom: 1px solid var(--nos-border);
  box-shadow: var(--nos-shadow-sm);
}

.nos-navbar__inner {
  max-width: var(--nos-content-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem 0 calc(var(--nos-sidebar-left-w) + 0.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nos-navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nos-navbar__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--nos-accent);
  color: var(--nos-white);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  border-radius: var(--nos-radius-sm);
}

.nos-navbar__logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nos-text);
  letter-spacing: -0.01em;
}

.nos-navbar__logo-text strong { color: var(--nos-accent); }

.nos-navbar__search { flex: 1; max-width: 28rem; }

.nos-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.nos-search-form__icon {
  position: absolute;
  left: 0.75rem;
  color: var(--nos-text-faint);
  pointer-events: none;
}

.nos-search-form__input {
  width: 100%;
  height: 2.25rem;
  padding: 0 1rem 0 2.5rem;
  border: 1px solid var(--nos-border);
  border-radius: var(--nos-radius-full);
  background: var(--nos-surface);
  font-size: 0.875rem;
  color: var(--nos-text);
  outline: none;
  transition: border-color var(--nos-transition), box-shadow var(--nos-transition);
}

.nos-search-form__input::placeholder { color: var(--nos-text-faint); }

.nos-search-form__input:focus {
  border-color: var(--nos-accent);
  box-shadow: 0 0 0 3px rgb(8 145 178 / 0.15);
}

.nos-navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nos-navbar__icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--nos-radius-full);
  color: var(--nos-text-muted);
  transition: background var(--nos-transition), color var(--nos-transition);
}

.nos-navbar__icon-btn:hover { background: var(--nos-surface); color: var(--nos-text); }

.nos-navbar__badge {
  position: absolute;
  top: 0.125rem;
  right: 0.125rem;
  min-width: 0.75rem;
  height: 0.75rem;
  background: var(--nos-accent);
  border: 2px solid var(--nos-white);
  border-radius: var(--nos-radius-full);
}

.nos-navbar__avatar-btn { display: flex; align-items: center; }
.nos-navbar__avatar { width: 2.25rem; height: 2.25rem; border-radius: var(--nos-radius-full); object-fit: cover; }

/* ── Sidebar Esquerda — Fixa ────────────────────────────────── */
.nos-sidebar-left {
  position: fixed;
  left: 0;
  top: var(--nos-navbar-h);
  width: var(--nos-sidebar-left-w);
  height: calc(100vh - var(--nos-navbar-h));
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--nos-white);
  border-right: 1px solid var(--nos-border);
  padding: 1.5rem 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.nos-sidebar-left::-webkit-scrollbar { display: none; }

.nos-sidebar-left__nav { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; width: 100%; }

.nos-sidebar-left__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--nos-radius-lg);
  color: var(--nos-text-muted);
  transition: background var(--nos-transition), color var(--nos-transition);
}

.nos-sidebar-left__item:hover { background: var(--nos-surface); color: var(--nos-text); }
.nos-sidebar-left__item--active { background: var(--nos-accent-light); color: var(--nos-accent); }
.nos-sidebar-left__divider { width: 2rem; height: 1px; background: var(--nos-border); }

/* ── Sidebar Direita — Fixa ─────────────────────────────────── */
.nos-sidebar-right {
  position: fixed;
  right: 0;
  top: var(--nos-navbar-h);
  width: var(--nos-sidebar-right-w);
  height: calc(100vh - var(--nos-navbar-h));
  z-index: 150;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--nos-border) transparent;
  padding: 1.5rem 1.25rem 0;
  border-left: 1px solid var(--nos-border);
  background: var(--nos-white);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nos-sidebar-right::-webkit-scrollbar { width: 4px; }
.nos-sidebar-right::-webkit-scrollbar-track { background: transparent; }
.nos-sidebar-right::-webkit-scrollbar-thumb { background: var(--nos-border); border-radius: 4px; }

/* ── Área de Conteúdo — Fixo no meio ───────────────────────── */
#nos-content,
.nos-content {
  position: fixed;
  left: var(--nos-sidebar-left-w);
  right: var(--nos-sidebar-right-w);
  top: var(--nos-navbar-h);
  height: calc(100vh - var(--nos-navbar-h));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--nos-border);
  border-right: 1px solid var(--nos-border);
  background: var(--nos-white);
  min-width: 0;
}

/* Centra o feed dentro da coluna de conteúdo em telas largas */
#nos-content > *:not(.nos-breaking):not(.nos-feed-filters),
#nos-content .nos-feed {
  max-width: var(--nos-max-feed);
  width: 100%;
  align-self: center;
}

/* ── Widgets ────────────────────────────────────────────────── */
.nos-widget { display: flex; flex-direction: column; gap: 1rem; }

.nos-widget__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--nos-text);
  letter-spacing: 0;
}

/* Trending */
.nos-trending__list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.nos-trending__item { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; }
.nos-trending__item:hover .nos-trending__topic { color: var(--nos-accent); }

.nos-trending__rank {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--nos-text-faint);
  width: 1rem;
  flex-shrink: 0;
  padding-top: 0.0625rem;
}

.nos-trending__data { display: flex; flex-direction: column; }
.nos-trending__topic { font-size: 0.875rem; font-weight: 700; color: var(--nos-text); transition: color var(--nos-transition); }
.nos-trending__count { font-size: 0.75rem; color: var(--nos-text-muted); }

/* Live */
.nos-live-list { display: flex; flex-direction: column; gap: 0.5rem; }

.nos-live-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--nos-border);
  border-radius: var(--nos-radius);
  background: var(--nos-surface);
  transition: border-color var(--nos-transition), background var(--nos-transition);
}

.nos-live-item:hover { border-color: rgb(220 38 38 / 0.4); background: var(--nos-live-light); }
.nos-live-item__title { font-size: 0.875rem; font-weight: 500; color: var(--nos-text); line-height: 1.4; }
.nos-live-item__updates { font-size: 0.75rem; color: var(--nos-text-muted); }

/* Tags */
.nos-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.nos-tag {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--nos-border);
  border-radius: var(--nos-radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--nos-text-muted);
  background: var(--nos-white);
  transition: border-color var(--nos-transition), color var(--nos-transition);
}

.nos-tag:hover { border-color: var(--nos-accent); color: var(--nos-accent); }

/* Widget: Mais Lidas */
.nos-widget__most-read-list { list-style: none; display: flex; flex-direction: column; gap: 0.875rem; }

.nos-widget__most-read-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
}

.nos-widget__most-read-item:hover .nos-widget__most-read-title { color: var(--nos-accent); }

.nos-widget__most-read-rank {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--nos-border-2);
  width: 1rem;
  flex-shrink: 0;
}

.nos-widget__most-read-thumb {
  width: 3.5rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: var(--nos-radius-sm);
  overflow: hidden;
  background: var(--nos-surface);
}

.nos-widget__most-read-thumb img { width: 100%; height: 100%; object-fit: cover; }

.nos-widget__most-read-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--nos-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color var(--nos-transition);
}

.nos-widget__most-read-meta {
  display: block;
  font-size: 0.6875rem;
  color: var(--nos-text-faint);
  margin-top: 0.125rem;
}

/* ── Ad Widget (Sidebar) ────────────────────────────────────── */
.nos-widget--ad {
  background: var(--nos-ad-bg);
  border: 1px solid var(--nos-ad-border);
  border-radius: var(--nos-radius-lg);
  padding: 1rem;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nos-widget--ad .nos-widget__title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--nos-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nos-ad-banner {
  display: block;
  width: 100%;
  border-radius: var(--nos-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: #fff;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: opacity var(--nos-transition);
}

.nos-ad-banner:hover { opacity: 0.9; color: #fff; }
.nos-ad-banner__label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.375rem; }
.nos-ad-banner__title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.375rem; }
.nos-ad-banner__sub { font-size: 0.75rem; opacity: 0.85; }
.nos-ad-banner__cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.375rem 1rem;
  background: #fff;
  color: var(--nos-accent);
  border-radius: var(--nos-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── Feed ───────────────────────────────────────────────────── */
.nos-feed {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--nos-border) transparent;
  width: 100%;
  max-width: var(--nos-max-feed);
  align-self: center;
}

.nos-feed::-webkit-scrollbar { width: 4px; }
.nos-feed::-webkit-scrollbar-track { background: transparent; }
.nos-feed::-webkit-scrollbar-thumb { background: var(--nos-border); border-radius: 4px; }

.nos-feed__stream { display: flex; flex-direction: column; }

/* ── Ad Card (Feed) ─────────────────────────────────────────── */
.nos-card--ad {
  background: var(--nos-ad-bg);
  border-bottom: 1px solid var(--nos-ad-border);
  padding: 1.25rem;
  cursor: default;
}

.nos-card--ad:hover { background: var(--nos-ad-bg); }

.nos-card--ad .nos-ad-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nos-text-faint);
  margin-bottom: 0.75rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--nos-ad-border);
  border-radius: var(--nos-radius-sm);
  background: rgb(255 255 255 / 0.8);
}

.nos-card--ad .nos-ad-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, #0891b2 0%, #164e63 100%);
  border-radius: var(--nos-radius-lg);
  padding: 1.25rem;
  color: #fff;
}

.nos-card--ad .nos-ad-copy { flex: 1; }
.nos-card--ad .nos-ad-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.25rem; }
.nos-card--ad .nos-ad-sub { font-size: 0.8125rem; opacity: 0.85; margin-bottom: 0.75rem; }
.nos-card--ad .nos-ad-cta {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: #fff;
  color: var(--nos-accent);
  border-radius: var(--nos-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.nos-card--ad .nos-ad-img {
  width: 5rem;
  height: 5rem;
  flex-shrink: 0;
  border-radius: var(--nos-radius);
  object-fit: cover;
  opacity: 0.9;
}

/* ── Cards — Base ───────────────────────────────────────────── */
.nos-card {
  padding: 1.25rem;
  background: var(--nos-white);
  border-bottom: 1px solid var(--nos-border);
  cursor: pointer;
  transition: background var(--nos-transition);
}

.nos-card:hover { background: var(--nos-surface); }

.nos-card__title { font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--nos-text); }
.nos-card__title a { transition: color var(--nos-transition); }
.nos-card__title a:hover { color: var(--nos-accent); }

.nos-card__meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.nos-card__category { font-size: 0.75rem; font-weight: 700; color: var(--nos-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.nos-card__category:hover { color: var(--nos-accent); }
.nos-card__time { font-size: 0.75rem; color: var(--nos-text-faint); }

.nos-card__excerpt { margin-top: 0.375rem; font-size: 0.875rem; color: var(--nos-text-2); line-height: 1.5; }
.nos-card__footer { margin-top: 1rem; }

/* Card Feature */
.nos-card--feature .nos-card__section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.nos-card--feature .nos-card__section-label a {
  display: inline-flex;
  padding: 0.125rem 0.5rem;
  background: var(--nos-accent-light);
  border: 1px solid rgb(8 145 178 / 0.2);
  border-radius: var(--nos-radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--nos-accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nos-card__thumbnail--feature {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--nos-radius);
  margin-bottom: 1rem;
  background: var(--nos-surface);
}

.nos-card__thumbnail--feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.nos-card--feature:hover .nos-card__thumbnail--feature img { transform: scale(1.03); }

.nos-card__title--feature { font-size: 1.375rem; }
.nos-card__title--event { font-size: 1.125rem; }

/* Card Standard */
.nos-card__row { display: flex; gap: 1rem; align-items: flex-start; }
.nos-card__body { flex: 1; min-width: 0; }

.nos-card__thumb-col {
  width: 6rem;
  height: 5rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--nos-radius);
  background: var(--nos-surface);
}

.nos-card__thumb-col img { width: 100%; height: 100%; object-fit: cover; }

/* Card Event */
.nos-card--event { border-left: 3px solid transparent; }
.nos-card--live  { border-left-color: var(--nos-live); }

.nos-card__event-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.625rem; }

.nos-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.625rem;
  border-radius: var(--nos-radius-full);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nos-event-badge--live    { background: var(--nos-live); color: #fff; }
.nos-event-badge--ongoing { background: #fef9c3; color: #92400e; }
.nos-event-badge--closed  { background: var(--nos-surface); color: var(--nos-text-muted); }

.nos-card__update-list { display: flex; flex-direction: column; gap: 0.75rem; }

.nos-card__update {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.nos-card__update-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--nos-radius-full);
  background: var(--nos-accent);
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.nos-card__update-text { font-size: 0.875rem; font-weight: 500; color: var(--nos-text-2); }
.nos-card__update-meta { font-size: 0.75rem; color: var(--nos-text-faint); margin-top: 0.125rem; }

/* Card Video */
.nos-card__video-thumb {
  position: relative;
  display: block;
  margin-top: 0.75rem;
  border-radius: var(--nos-radius);
  overflow: hidden;
  background: var(--nos-text);
  aspect-ratio: 16/9;
}

.nos-card__video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }

.nos-card__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nos-card__play-btn svg {
  width: 3rem;
  height: 3rem;
  background: rgb(255 255 255 / 0.9);
  color: var(--nos-text);
  border-radius: var(--nos-radius-full);
  padding: 0.625rem 0.625rem 0.625rem 0.75rem;
  box-shadow: var(--nos-shadow);
  transition: transform var(--nos-transition);
}

.nos-card--video:hover .nos-card__play-btn svg { transform: scale(1.1); }

.nos-card__video-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.125rem 0.375rem;
  background: rgb(0 0 0 / 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--nos-radius-sm);
}

/* Card Poll */
.nos-poll { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }

.nos-poll__option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--nos-border);
  border-radius: var(--nos-radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--nos-transition);
}

.nos-poll__option:hover { border-color: var(--nos-accent); }
.nos-poll__option-bar {
  position: absolute;
  inset: 0;
  background: var(--nos-accent-light);
  transform-origin: left;
  transition: transform 600ms ease;
}

.nos-poll__option-label,
.nos-poll__option-pct { position: relative; z-index: 1; font-size: 0.875rem; }
.nos-poll__option-label { font-weight: 500; }
.nos-poll__option-pct { font-size: 0.75rem; color: var(--nos-text-muted); }

.nos-poll__votes { font-size: 0.75rem; color: var(--nos-text-faint); margin-top: 0.25rem; text-align: right; }

/* ── Reactions ──────────────────────────────────────────────── */
.nos-reactions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nos-reactions__btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--nos-text-faint);
  padding: 0.25rem 0.5rem;
  border-radius: var(--nos-radius-sm);
  transition: color var(--nos-transition), background var(--nos-transition);
}

.nos-reactions__btn:hover                 { color: var(--nos-text-muted); background: var(--nos-surface); }
.nos-reactions__btn--like:hover           { color: #e11d48; background: #fff1f2; }
.nos-reactions__btn--like.is-active       { color: #e11d48; }
.nos-reactions__btn--dislike:hover        { color: #6366f1; background: #eef2ff; }
.nos-reactions__btn--dislike.is-active    { color: #6366f1; }
.nos-reactions__btn--comment:hover        { color: var(--nos-accent); background: var(--nos-accent-light); }
.nos-reactions__btn--share:hover          { color: #16a34a; background: #f0fdf4; }
.nos-reactions__btn--bookmark             { margin-left: auto; }
.nos-reactions__btn--bookmark:hover       { color: #d97706; background: #fffbeb; }
.nos-reactions__btn--bookmark.is-saved    { color: #d97706; }

/* ── Status dot ─────────────────────────────────────────────── */
.nos-status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--nos-radius-full);
  background: var(--nos-live);
}

.nos-status-dot--pulse { animation: nos-pulse 1.5s ease-in-out infinite; }

@keyframes nos-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* ── Article (single post) ──────────────────────────────────── */
.nos-article { padding: 1.5rem; }
.nos-article__header { margin-bottom: 1.5rem; }

.nos-article__section {
  margin-bottom: 0.625rem;
}
.nos-article__section a {
  display: inline-flex;
  padding: 0.125rem 0.5rem;
  background: var(--nos-accent-light);
  border-radius: var(--nos-radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nos-accent-hover);
}

.nos-article__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.nos-article__excerpt {
  font-size: 1.125rem;
  color: var(--nos-text-2);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.nos-article__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.nos-article__author { display: flex; align-items: center; gap: 0.625rem; }
.nos-article__avatar { width: 2.5rem; height: 2.5rem; border-radius: var(--nos-radius-full); }
.nos-article__author-name { display: block; font-size: 0.875rem; font-weight: 600; }
.nos-article__date { display: block; font-size: 0.75rem; color: var(--nos-text-muted); }

.nos-article__thumbnail { margin: 1.5rem 0; }
.nos-article__thumbnail img { width: 100%; border-radius: var(--nos-radius-lg); }
.nos-article__caption { font-size: 0.75rem; color: var(--nos-text-muted); margin-top: 0.5rem; text-align: center; }

/* Prose */
.nos-prose { font-size: 1rem; line-height: 1.75; color: var(--nos-text-2); }
.nos-prose h2, .nos-prose h3 { color: var(--nos-text); font-weight: 700; margin: 1.5rem 0 0.75rem; }
.nos-prose p { margin-bottom: 1.25rem; }
.nos-prose a { color: var(--nos-accent); text-decoration: underline; }
.nos-prose blockquote { border-left: 3px solid var(--nos-accent); padding-left: 1rem; color: var(--nos-text-muted); font-style: italic; margin: 1.5rem 0; }

/* ── Event Page ─────────────────────────────────────────────── */
.nos-event { padding: 1.5rem; position: relative; }
.nos-event__header { margin-bottom: 1.5rem; }

.nos-event__status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--nos-radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.nos-event__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.nos-event__meta { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.75rem; color: var(--nos-text-muted); }

.nos-event__timeline { display: flex; flex-direction: column; gap: 0; }

.nos-event__update {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--nos-border);
}

.nos-event__update-time {
  font-size: 0.75rem;
  color: var(--nos-text-faint);
  white-space: nowrap;
  padding-top: 0.2rem;
}

.nos-event__update-content { display: flex; flex-direction: column; gap: 0.375rem; }
.nos-event__update-text { font-size: 0.9375rem; font-weight: 500; color: var(--nos-text); line-height: 1.5; }

.nos-event__load-more {
  padding: 0.75rem 1.5rem;
  background: var(--nos-white);
  border-top: 1px solid var(--nos-border);
  box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.05);
  margin-top: 2rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.nos-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--nos-radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--nos-transition), color var(--nos-transition), box-shadow var(--nos-transition);
}

.nos-btn--primary { background: var(--nos-accent); color: var(--nos-white); }
.nos-btn--primary:hover { background: var(--nos-accent-hover); color: var(--nos-white); }
.nos-btn--ghost { background: transparent; border: 1px solid var(--nos-border); color: var(--nos-text-2); }
.nos-btn--ghost:hover { background: var(--nos-surface); }
.nos-btn--sm { padding: 0.25rem 0.75rem; font-size: 0.8125rem; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.nos-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--nos-text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.nos-breadcrumb a:hover { color: var(--nos-accent); }

/* ── Skeleton loader ────────────────────────────────────────── */
.nos-skeleton {
  background: linear-gradient(90deg, var(--nos-surface) 25%, var(--nos-border) 50%, var(--nos-surface) 75%);
  background-size: 200% 100%;
  animation: nos-shimmer 1.5s infinite;
  border-radius: var(--nos-radius);
}

.nos-skeleton--card { height: 12rem; margin-bottom: 1px; }

@keyframes nos-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ── Footer — Dentro do Sidebar Direito ─────────────────────── */
.nos-sidebar-footer {
  margin-top: auto;
  padding: 1.25rem 0;
  border-top: 1px solid var(--nos-border);
  flex-shrink: 0;
}

.nos-sidebar-footer__brand {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nos-text);
  margin-bottom: 0.25rem;
}

.nos-sidebar-footer__brand strong { color: var(--nos-accent); }

.nos-sidebar-footer__tagline {
  font-size: 0.6875rem;
  color: var(--nos-text-muted);
  margin-bottom: 0.75rem;
}

.nos-sidebar-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.nos-sidebar-footer__nav a,
.nos-sidebar-footer__menu a {
  font-size: 0.6875rem;
  color: var(--nos-text-faint);
  transition: color var(--nos-transition);
}

.nos-sidebar-footer__nav a:hover,
.nos-sidebar-footer__menu a:hover { color: var(--nos-accent); }

/* WordPress menu list reset */
.nos-sidebar-footer__menu { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nos-sidebar-footer__menu li { display: inline; }
.nos-sidebar-footer__menu li::after { content: '·'; margin-left: 0.5rem; color: var(--nos-border-2); }
.nos-sidebar-footer__menu li:last-child::after { display: none; }

.nos-sidebar-footer__copy {
  font-size: 0.625rem;
  color: var(--nos-text-faint);
}

/* ── 404 ────────────────────────────────────────────────────── */
.nos-404 { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.nos-404__inner { text-align: center; }
.nos-404__code { font-size: 6rem; font-weight: 900; color: var(--nos-border); display: block; }
.nos-404__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.nos-404__message { color: var(--nos-text-muted); margin-bottom: 1.5rem; }

/* ── Autocomplete ───────────────────────────────────────────── */
.nos-autocomplete {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  background: var(--nos-white);
  border: 1px solid var(--nos-border);
  border-radius: var(--nos-radius-lg);
  box-shadow: var(--nos-shadow);
  z-index: 200;
  overflow: hidden;
}

/* ── Barra de navegação mobile (bottom) ─────────────────────── */
.nos-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nos-mobile-nav-h);
  background: var(--nos-white);
  border-top: 1px solid var(--nos-border);
  box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.05);
  z-index: 200;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
}

.nos-mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.25rem 0.75rem;
  color: var(--nos-text-faint);
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: var(--nos-radius);
  transition: color var(--nos-transition);
}

.nos-mobile-nav__item:hover,
.nos-mobile-nav__item.active { color: var(--nos-accent); }

/* ── Responsive — 1200px: esconde sidebar-right ─────────────── */
@media (max-width: 1200px) {
  .nos-sidebar-right { display: none; }

  #nos-content,
  .nos-content {
    right: 0;
    border-right: none;
  }

  .nos-navbar__inner {
    padding-right: 1rem;
  }
}

/* ── Responsive — 768px: esconde sidebar-left, ativa bottom nav */
@media (max-width: 768px) {
  :root {
    --nos-sidebar-left-w: 0px;
  }

  .nos-sidebar-left { display: none; }

  .nos-mobile-nav { display: flex; }

  #nos-content,
  .nos-content {
    left: 0;
    right: 0;
    border: none;
    height: calc(100vh - var(--nos-navbar-h) - var(--nos-mobile-nav-h));
  }

  .nos-navbar__inner {
    padding-left: 1rem;
  }

  .nos-navbar__logo-text { display: none; }

  .nos-navbar__search { max-width: none; }

  /* Barra de filtros: horizontal scroll sem scrollbar */
  .nos-feed-filters {
    top: 0 !important; /* relativo ao nos-content fixo */
    padding: 0.625rem 1rem;
  }

  .nos-feed {
    padding-bottom: 0.5rem;
  }

  /* Ad cards menores no mobile */
  .nos-card--ad .nos-ad-inner { flex-direction: column; text-align: center; }
  .nos-card--ad .nos-ad-img { display: none; }
}

/* ── Screen reader only ─────────────────────────────────────── */
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

/* ── Skip link (acessibilidade / ARIA) ─────────────────────────── */
.nos-skip-link {
  background: #111827;
  color: #fff;
  font-weight: 600;
  left: 0.5rem;
  padding: 0.75rem 1.25rem;
  position: fixed;
  top: -100px;
  transition: top 0.15s ease-in-out;
  z-index: 100000;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
}
.nos-skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  margin: 0;
  overflow: visible;
  top: 0;
  width: auto;
}

/* ── Footer Fallback — visível em ≤1200px e em páginas sem sidebar-right ─── */
/* Em desktop (>1200px) o footer está no .nos-sidebar-footer dentro do sidebar.
   O .nos-footer--fallback garante footer em tablets, mobile e páginas de evento. */
.nos-footer--fallback {
  display: none; /* oculto por padrão em desktop (sidebar-right já tem o footer) */
  border-top: 1px solid var(--nos-border);
  padding: 1.5rem 1rem;
  background: var(--nos-surface);
  /* posicionado fora do .nos-layout fixo, abaixo do layout */
  clear: both;
}

.nos-footer__inner {
  max-width: var(--nos-content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nos-footer__logo { font-weight: 600; font-size: 0.9375rem; }
.nos-footer__logo strong { color: var(--nos-accent); }
.nos-footer__tagline { font-size: 0.75rem; color: var(--nos-text-muted); margin-top: 0.25rem; }
.nos-footer__copy { font-size: 0.75rem; color: var(--nos-text-faint); margin-left: auto; }
.nos-footer__menu { list-style: none; display: flex; gap: 1rem; flex-wrap: wrap; }
.nos-footer__menu a { font-size: 0.8125rem; color: var(--nos-text-muted); }
.nos-footer__menu a:hover { color: var(--nos-accent); }

/* Em tablet (≤1200px): sidebar-right some → mostra fallback footer */
@media (max-width: 1200px) {
  .nos-footer--fallback {
    display: block;
  }
}

/* Em mobile (≤768px): ajusta padding para não colidir com bottom nav */
@media (max-width: 768px) {
  .nos-footer--fallback {
    padding-bottom: calc(var(--nos-mobile-nav-h) + 1.5rem);
  }
}
