/* Avisos oficiais (/avisos e /aviso/:id): lista no formato de fórum e a página de leitura do aviso, com as cores e fontes da página inicial
   (home.css, body.hn). Tudo dentro de body.nt. */
body.nt {
  --nt-maint: oklch(0.78 0.13 55);
  --nt-update: oklch(0.8 0.12 160);
  --nt-notice: #a3abbd;
}
.nt-main { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; padding-bottom: 56px; }
.nt .maint { --kind: var(--nt-maint); }
.nt .update { --kind: var(--nt-update); }
.nt .notice { --kind: var(--nt-notice); }

/* etiqueta do tipo e data (a mesma da página inicial) */
.nt-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.nt-tag {
  flex: none; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--kind, var(--nt-notice)); background: color-mix(in srgb, var(--kind, var(--nt-notice)) 14%, transparent);
}
.nt-meta time { font-size: 12px; color: var(--hn-faint); }
.nt-new {
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: oklch(0.9 0.12 85);
  text-shadow: 0 0 4px oklch(0.82 0.11 85 / 0.9), 0 0 9px oklch(0.82 0.11 85 / 0.6);
}

/* ---------- lista ---------- */
.nt-hero h1 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); letter-spacing: 0.02em; }
.nt-hero p { margin: 0; color: var(--hn-muted); font-size: 15px; max-width: 70ch; }

.nt-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-filter {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--hn-line-3); color: var(--hn-soft); background: var(--hn-panel);
}
.nt-filter span { font-size: 12px; color: var(--hn-faint); }
.nt-filter:hover { border-color: oklch(0.82 0.11 85 / 0.5); color: var(--hn-strong); }
.nt-filter[aria-current] { border-color: var(--gold); background: var(--gold-soft); color: var(--hn-strong); font-weight: 600; }
.nt-filter[aria-current] span { color: var(--gold); }

.nt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nt-row {
  display: flex; align-items: stretch; min-width: 0; background: var(--hn-panel); border: 1px solid var(--hn-line);
  border-left: 3px solid var(--kind); border-radius: 12px; transition: background .12s, border-color .12s;
}
.nt-row:hover { background: var(--hn-hover); border-color: var(--hn-line-3); border-left-color: var(--kind); }
.nt-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; }
.nt-title { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--hn-strong); overflow-wrap: anywhere; }
.nt-row-main:hover .nt-title { color: var(--gold); }
.nt-excerpt {
  font-size: 14px; line-height: 1.5; color: var(--hn-muted);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nt-count {
  flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-left: 1px solid var(--hn-line); color: var(--hn-faint); font-size: 11px;
}
.nt-count b { font-size: 22px; line-height: 1; color: var(--hn-strong); font-variant-numeric: proportional-nums; }
.nt-count.zero b { color: var(--hn-faint); }
.nt-count:hover b { color: var(--gold); }
.nt-empty { margin: 0; padding: 24px; text-align: center; color: var(--hn-muted); background: var(--hn-panel); border: 1px solid var(--hn-line); border-radius: 12px; }
.nt-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; font-size: 14px; color: var(--hn-muted); }
.nt-pager a { color: var(--hn-soft); }
.nt-pager a:hover { color: var(--gold); }
.nt-pager a[rel="next"] { justify-self: end; }
.nt-source { margin: 4px 0 0; font-size: 12px; color: var(--hn-faint); }
.nt-source a { color: var(--hn-muted); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 560px) {
  .nt-row-main { padding: 12px 14px; }
  .nt-title { font-size: 16px; }
  .nt-count { width: 64px; }
  .nt-count span { display: none; }
}

/* ---------- um aviso ---------- */
.nt-back { align-self: flex-start; font-size: 14px; color: var(--hn-muted); }
.nt-back:hover { color: var(--gold); }
.nt-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1024px) {
  .nt-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
}
.nt-article {
  min-width: 0; padding: 28px 32px 32px; background: var(--hn-panel); border: 1px solid var(--hn-line); border-radius: 14px;
  border-top: 3px solid var(--kind);
}
@media (max-width: 640px) {
  .nt-article { padding: 20px 16px 24px; border-radius: 12px; }
}
.nt-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--hn-line); }
.nt-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.25; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.nt-byline { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--hn-muted); }
.nt-official { align-self: flex-start; font-size: 13px; color: var(--hn-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hn-line-3); }
.nt-official:hover { color: var(--gold); text-decoration-color: currentColor; }

/* horário do evento em Brasília */
.nt-event {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 12px 16px; border-radius: 10px;
  background: var(--gold-soft); border: 1px solid oklch(0.82 0.11 85 / 0.35); color: var(--gold);
}
.nt-event svg { flex: none; }
.nt-event div { display: flex; flex-direction: column; gap: 2px; }
.nt-event span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nt-event strong { font-size: 16px; color: var(--hn-strong); }
.nt-event strong::first-letter { text-transform: uppercase; }

/* índice das seções: dentro do aviso no celular, na coluna do lado no computador */
.nt-toc { padding: 14px 16px; border-radius: 10px; background: var(--hn-panel-2); border: 1px solid var(--hn-line-2); }
.nt-toc h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hn-muted); }
.nt-toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.nt-toc a { color: var(--hn-soft); }
.nt-toc a:hover { color: var(--gold); }
.nt-toc.inline { margin-top: 18px; }
.nt-toc.side { display: none; }
@media (min-width: 1024px) {
  .nt-toc.inline { display: none; }
  .nt-toc.side { display: block; }
}

/* o texto do aviso */
.nt-body { margin-top: 8px; font-size: 15.5px; line-height: 1.7; color: var(--hn-text); overflow-wrap: anywhere; }
.nt-body > :first-child { margin-top: 18px; }
.nt-body p { margin: 0.75em 0; }
.nt-body strong { color: var(--hn-strong); }
.nt-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: oklch(0.82 0.11 85 / 0.4); }
.nt-body a:hover { text-decoration-color: currentColor; }
.nt-body u { text-decoration-color: oklch(0.82 0.11 85 / 0.5); text-underline-offset: 3px; }
.nt-body s { color: var(--hn-faint); }
.nt-body mark { background: var(--gold-soft); color: var(--gold); padding: 0 3px; border-radius: 3px; }
.nt-body h2, .nt-body h3, .nt-body h4 { color: var(--hn-strong); line-height: 1.3; scroll-margin-top: 76px; }
.nt-body h2 {
  margin: 1.8em 0 0.6em; padding: 0 0 8px 12px; font-size: 21px; border-left: 3px solid var(--gold); border-bottom: 1px solid var(--hn-line);
}
.nt-body h3 { margin: 1.5em 0 0.5em; font-size: 18px; }
.nt-body h4 { margin: 1.3em 0 0.4em; font-size: 16px; }
.nt-body p.sub { margin: 1.4em 0 0.4em; font-weight: 700; color: var(--hn-strong); }
.nt-body p.sub::before { content: ''; display: inline-block; width: 10px; height: 2px; margin: 0 8px 0.3em 0; background: var(--gold); vertical-align: middle; }
.nt-body ul, .nt-body ol { margin: 0.6em 0; padding-left: 1.4em; }
.nt-body li { margin: 0.3em 0; }
.nt-body li::marker { color: var(--hn-faint); }
.nt-body li > p { margin: 0; }
.nt-body li > ul, .nt-body li > ol { margin: 0.3em 0; }
.nt-body figure { margin: 18px 0; }
.nt-body img { max-width: 100%; height: auto; border-radius: 10px; }
.nt-body hr { margin: 28px 0; border: 0; border-top: 1px dashed var(--hn-line-3); }
.nt-body .table-scroll { margin: 14px 0; overflow-x: auto; border: 1px solid var(--hn-line-2); border-radius: 10px; }
.nt-body table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.nt-body th, .nt-body td { padding: 8px 12px; border: 1px solid var(--hn-line-2); text-align: left; vertical-align: top; }
.nt-body tr:first-child > * { border-top: 0; }
.nt-body tr > :first-child { border-left: 0; }
.nt-body tr > :last-child { border-right: 0; }
.nt-body tr:last-child > * { border-bottom: 0; }
.nt-body th { background: var(--hn-raised); color: var(--hn-strong); font-weight: 600; }
.nt-body .c { text-align: center; }
.nt-body .r { text-align: right; }
.nt-body td p, .nt-body th p { margin: 0; }
.nt-body td p + p, .nt-body th p + p { margin-top: 4px; }
.nt-body td p.sub, .nt-body th p.sub { margin: 0; }
.nt-body td p.sub::before, .nt-body th p.sub::before { display: none; }
.nt-copy { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--hn-line); font-size: 12px; color: var(--hn-faint); }

/* anterior e seguinte */
.nt-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.nt-nav a {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: 10px;
  background: var(--hn-panel-2); border: 1px solid var(--hn-line-2); font-size: 14px;
}
.nt-nav a:hover { border-color: oklch(0.82 0.11 85 / 0.5); }
.nt-nav span { font-size: 12px; color: var(--hn-faint); }
.nt-nav strong { color: var(--hn-soft); font-weight: 500; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.nt-nav-newer { text-align: right; }
@media (max-width: 560px) {
  .nt-nav { grid-template-columns: 1fr; }
  .nt-nav-newer { text-align: left; }
}

/* comentários (as mensagens usam o visual do tópico da comunidade, style.css) */
.nt-comments { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hn-line); display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 70px; }
.nt-comments-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nt-comments-head h2 { margin: 0; font-size: 20px; color: var(--hn-strong); }
.nt-comments-head h2 span { color: var(--hn-faint); font-weight: 500; }
.nt-comments-head .btn-ghost { height: 32px; display: inline-flex; align-items: center; }
/* cada comentário num cartão, com espaço entre eles (pedido do dono) */
.nt-comments .topic-messages { margin: 0; display: flex; flex-direction: column; gap: 10px; background: none; border: 0; border-radius: 0; }
.nt-comments .topic-messages > li { background: var(--hn-panel-2); border: 1px solid var(--hn-line-2); border-radius: 12px; }
.nt-comments .topic-messages > li + li { border-top: 1px solid var(--hn-line-2); }
.nt-comments .topic-messages > li.empty, .nt-comments .topic-messages > li.loading { padding: 18px 16px; color: var(--hn-muted); font-size: 14px; }
.nt-comments .community-bar { margin: 0; }
.nt-reply textarea { min-height: 96px; }
.nt-comments-note { margin: 0; font-size: 12px; color: var(--hn-faint); }

/* coluna do lado */
.nt-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nt-side-card { padding: 16px; border-radius: 12px; background: var(--hn-panel); border: 1px solid var(--hn-line); }
.nt-side-card h2 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hn-muted); }
.nt-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nt-recent a { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; font-size: 14px; line-height: 1.35; color: var(--hn-soft); }
.nt-recent a:hover { background: var(--hn-hover); color: var(--hn-strong); }
.nt-side-all { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--hn-muted); }
.nt-side-all:hover { color: var(--gold); }
