/* ══════════════════════════════════════════
   NOISE FLOOR — Theme v1.3.7
   ══════════════════════════════════════════ */

:root {
  --nf-bg: #ffffff;
  --nf-bg-warm: #fefcf9;
  --nf-header-bg: #f4f1eb;
  --nf-text: #1a1a1a;
  --nf-text-secondary: #555555;
  --nf-text-muted: #888888;
  --nf-green: #0a9e5e;
  --nf-green-hover: #087d4a;
  --nf-border: #e0dbd2;

  --nf-font-title: 'Instrument Serif', Georgia, serif;
  --nf-font-body: 'DM Sans', -apple-system, sans-serif;
  --nf-font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Section colors */
  --nf-hk: #c4382a;
  --nf-anf: #0a9e5e;
  --nf-ent: #3366cc;
  --nf-els: #c48a1a;
  --nf-lau: #5C2D91;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: var(--nf-font-body);
  background: var(--nf-bg);
  color: var(--nf-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ══════════════════════════
   HEADER
   ══════════════════════════ */
.nf-header {
  background: var(--nf-header-bg);
  border-bottom: 1px solid var(--nf-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nf-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nf-logo {
  font-family: var(--nf-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nf-text);
  transition: color 0.2s;
  white-space: nowrap;
}
.nf-logo:hover { color: var(--nf-green); }

.nf-nav {
  display: flex;
  gap: 1.5rem;
}
.nf-nav a {
  font-family: var(--nf-font-body);
  font-size: 0.85rem;
  color: var(--nf-text-secondary);
  transition: color 0.2s;
}
.nf-nav a:hover { color: var(--nf-green); }

.nf-header-actions {
  /* spacer before subscribe */
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nf-search-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--nf-text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.nf-search-btn:hover { color: var(--nf-green); }

.nf-signin {
  font-family: var(--nf-font-body);
  font-size: 0.82rem;
  color: var(--nf-text-muted);
  transition: color 0.2s;
  cursor: pointer;
}
.nf-signin:hover { color: var(--nf-text); }

.nf-subscribe-btn {
  font-family: var(--nf-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--nf-green);
  color: #fff;
  padding: 0.55rem 1.5rem;
  border-radius: 2px;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  margin-left: auto;
  white-space: nowrap;
}
.nf-subscribe-btn:hover { background: var(--nf-green-hover); }

/* ══════════════════════════
   HERO
   ══════════════════════════ */
.nf-hero {
  position: relative;
  background: var(--nf-bg-warm);
  padding-bottom: 9rem;
  overflow: hidden;
}

#nf-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.nf-filter-box {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.nf-filter-box h1 {
  font-family: var(--nf-font-title);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: normal;
  color: var(--nf-text);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

/* Subscribe form */
.nf-subscribe-form {
  display: flex;
  max-width: 380px;
  margin: 0 auto;
}

.nf-subscribe-form input[type="email"] {
  flex: 1;
  font-family: var(--nf-font-body);
  font-size: 0.88rem;
  border: 1px solid var(--nf-border);
  border-right: none;
  border-radius: 3px 0 0 3px;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.92);
  color: var(--nf-text);
  caret-color: var(--nf-green);
  outline: none;
  transition: border-color 0.2s;
}
.nf-subscribe-form input[type="email"]::placeholder { color: #bbb; }
.nf-subscribe-form input[type="email"]:focus { border-color: var(--nf-green); }

.nf-subscribe-form button,
.nf-subscribe-form a.nf-subscribe-btn {
  font-family: var(--nf-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--nf-green);
  color: #fff;
  border: 1px solid var(--nf-green);
  border-radius: 0 3px 3px 0;
  padding: 0.65rem 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.nf-subscribe-form button:hover,
.nf-subscribe-form a.nf-subscribe-btn:hover { background: var(--nf-green-hover); }

.nf-form-msg {
  font-family: var(--nf-font-mono);
  font-size: 0.72rem;
  color: #c4382a;
  margin-top: 0.6rem;
  min-height: 1.2em;
}
.nf-form-success {
  font-family: var(--nf-font-mono);
  font-size: 0.72rem;
  color: var(--nf-green);
  margin-top: 0.6rem;
}

/* ══════════════════════════
   HERO LABELS (ruído / filtro / sinal limpo)
   ══════════════════════════ */
.nf-hero-labels {
  position: absolute;
  bottom: 5rem;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  pointer-events: none;
}
.nf-hero-label-item {
  font-family: var(--nf-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nf-green);
  opacity: 0.4;
}
.nf-hero-label-item--center {
  opacity: 0.22;
  text-align: center;
}
.nf-hero-label-item--left  { text-align: left; }
.nf-hero-label-item--right { text-align: right; }

/* ══════════════════════════
   WAVE INFO BAR
   ══════════════════════════ */
.nf-wave-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(254,252,249,0.96);
}

.nf-wave-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nf-wave-title {
  font-family: var(--nf-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nf-green);
}

.nf-wave-domain {
  font-family: var(--nf-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
}

.nf-wave-desc {
  font-family: var(--nf-font-body);
  font-size: 0.78rem;
  color: var(--nf-text-secondary);
  max-width: 480px;
  line-height: 1.4;
}

.nf-wave-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nf-wave-counter {
  font-family: var(--nf-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--nf-text-muted);
}

.nf-refresh-btn {
  background: none;
  border: 1px solid var(--nf-border);
  border-radius: 3px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--nf-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.nf-refresh-btn:hover { color: var(--nf-green); border-color: var(--nf-green); }

/* ══════════════════════════
   FEED / POST CARDS
   ══════════════════════════ */
.nf-feed {
  padding: 3rem 1.5rem;
}

.nf-feed-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.nf-card {
  border-bottom: 1px solid var(--nf-border);
  padding-bottom: 2.5rem;
}
.nf-card:last-child { border-bottom: none; }

.nf-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.nf-card-date,
.nf-card-reading {
  font-family: var(--nf-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
}

.nf-card-title {
  font-family: var(--nf-font-title);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.nf-card-title a { transition: color 0.2s; }
.nf-card-title a:hover { color: var(--nf-green); }

.nf-card-excerpt {
  font-family: var(--nf-font-body);
  font-size: 0.92rem;
  color: var(--nf-text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════
   TAGS (seção badges)
   ══════════════════════════ */
.nf-tag {
  font-family: var(--nf-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nf-tag:hover { opacity: 0.75; }

.nf-tag-hypekiller       { background: rgba(196,56,42,0.1);  color: var(--nf-hk);  }
.nf-tag-acima-do-noise-floor { background: rgba(10,158,94,0.1);  color: var(--nf-anf); }
.nf-tag-entropia         { background: rgba(51,102,204,0.1); color: var(--nf-ent); }
.nf-tag-elefante-na-sala { background: rgba(196,138,26,0.1); color: var(--nf-els); }
.nf-tag-laudo            { background: rgba(92,45,145,0.1);  color: var(--nf-lau); }

/* ══════════════════════════
   POST SINGLE
   ══════════════════════════ */
.nf-post {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.nf-post-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--nf-border);
  padding-bottom: 2rem;
}

.nf-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.nf-post-date,
.nf-post-reading {
  font-family: var(--nf-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
}

.nf-post-title {
  font-family: var(--nf-font-title);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.nf-post-excerpt {
  font-family: var(--nf-font-body);
  font-size: 1rem;
  color: var(--nf-text-secondary);
  line-height: 1.6;
}

/* Post content typography */
.nf-post-content {
  font-family: var(--nf-font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--nf-text);
}
.nf-post-content h2 {
  font-family: var(--nf-font-title);
  font-size: 1.55rem;
  font-weight: 400;
  margin: 3rem 0 0.8rem;
  color: var(--nf-text);
  position: relative;
  padding-top: 1.25rem;
  border-top: 1px solid var(--nf-border);
}
.nf-post-content h3 {
  font-family: var(--nf-font-title);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  margin: 2rem 0 0.6rem;
  position: relative;
  color: var(--nf-text-secondary);
}
.nf-post-content p { margin-bottom: 1.25rem; }
.nf-post-content strong { font-weight: 600; }
.nf-post-content em { font-style: italic; }
.nf-post-content blockquote {
  border-left: 3px solid var(--nf-green);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--nf-text-secondary);
  font-style: italic;
}
.nf-post-content code {
  font-family: var(--nf-font-mono);
  font-size: 0.85em;
  background: rgba(10,158,94,0.06);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}
.nf-post-content a {
  color: var(--nf-green);
  border-bottom: 1px solid rgba(10,158,94,0.3);
  transition: border-color 0.2s;
}
.nf-post-content a:hover { border-color: var(--nf-green); }
.nf-post-content hr {
  border: none;
  border-top: 1px solid var(--nf-border);
  margin: 2.5rem 0;
}

.nf-post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nf-border);
}
.nf-back {
  font-family: var(--nf-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
  transition: color 0.2s;
}
.nf-back:hover { color: var(--nf-green); }

/* ══════════════════════════
   PAGE (manifesto, sobre)
   ══════════════════════════ */
.nf-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.nf-page-header { margin-bottom: 2rem; }
.nf-page-title {
  font-family: var(--nf-font-title);
  font-size: 2rem;
  font-weight: 400;
}
.nf-page-content {
  font-family: var(--nf-font-body);
  font-size: 1rem;
  line-height: 1.75;
}
.nf-page-content p { margin-bottom: 1.25rem; }
.nf-page-content h2 {
  font-family: var(--nf-font-title);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 2rem 0 0.8rem;
}
.nf-page-content a { color: var(--nf-green); }

/* ══════════════════════════
   ARCHIVE (tag pages)
   ══════════════════════════ */
.nf-archive { padding: 3rem 1.5rem; }
.nf-archive-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--nf-border);
}
.nf-archive-label {
  font-family: var(--nf-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
  margin-bottom: 0.4rem;
}
.nf-archive-title {
  font-family: var(--nf-font-title);
  font-size: 1.8rem;
  font-weight: 400;
}
.nf-archive-title.nf-tag-hypekiller       { color: var(--nf-hk);  }
.nf-archive-title.nf-tag-acima-do-noise-floor { color: var(--nf-anf); }
.nf-archive-title.nf-tag-entropia         { color: var(--nf-ent); }
.nf-archive-title.nf-tag-elefante-na-sala { color: var(--nf-els); }
.nf-archive-title.nf-tag-laudo            { color: var(--nf-lau); }
.nf-archive-desc {
  font-size: 0.92rem;
  color: var(--nf-text-secondary);
  margin-top: 0.5rem;
}

/* ══════════════════════════
   PAGINATION
   ══════════════════════════ */
.pagination {
  max-width: 720px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--nf-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
}
.pagination a { color: var(--nf-green); }

/* ══════════════════════════
   FOOTER
   ══════════════════════════ */
.nf-footer {
  background: var(--nf-header-bg);
  border-top: 1px solid var(--nf-border);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}

.nf-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.nf-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nf-footer-col a {
  font-family: var(--nf-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
  transition: color 0.2s;
}
.nf-footer-col a:hover { color: var(--nf-text); }

/* Hover por cor de seção no footer */
.nf-footer-col a.nf-tag-hk:hover  { color: var(--nf-hk);  }
.nf-footer-col a.nf-tag-anf:hover { color: var(--nf-anf); }
.nf-footer-col a.nf-tag-ent:hover { color: var(--nf-ent); }
.nf-footer-col a.nf-tag-els:hover { color: var(--nf-els); }
.nf-footer-col a.nf-tag-lau:hover { color: var(--nf-lau); }

.nf-footer-right { margin-left: auto; }
.nf-footer-tagline {
  font-family: var(--nf-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nf-green);
}

/* ══════════════════════════
   ERROR
   ══════════════════════════ */
.nf-error {
  text-align: center;
  padding: 6rem 1.5rem;
}
.nf-error-code {
  font-family: var(--nf-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
  margin-bottom: 1rem;
}
.nf-error h1 {
  font-family: var(--nf-font-title);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.nf-error a {
  font-family: var(--nf-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nf-green);
}

/* ══════════════════════════
   GHOST KOENIG EDITOR — required classes
   ══════════════════════════ */
.kg-width-wide {
  margin-left: calc(50% - 50vw + 2rem);
  margin-right: calc(50% - 50vw + 2rem);
  max-width: 1000px;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

.kg-image { max-width: 100%; height: auto; display: block; margin: 0 auto; }

.kg-card { margin: 2rem 0; }

.kg-bookmark-card {
  border: 1px solid var(--nf-border);
  border-radius: 4px;
  overflow: hidden;
}

.kg-video-card video { width: 100%; }

.kg-gallery-card .kg-gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.kg-gallery-image img { width: 100%; height: auto; display: block; }


.nf-tip {
  border-bottom: 2px solid var(--nf-green);
  background: rgba(10,158,94,0.08);
  border-radius: 2px;
  padding: 0 2px;
  cursor: help;
  position: relative;
  color: inherit;
}
.nf-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #e0e0e0;
  font-family: var(--nf-font-body);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 4px;
  width: 240px;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
  white-space: normal;
}
.nf-tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 100;
}
.nf-tip:hover::after,
.nf-tip:hover::before { opacity: 1; }

/* ══════════════════════════
   RESPONSIVE — MOBILE
   v1.4.7: wave-bar visível no mobile, só contador escondido
   ══════════════════════════ */
@media (max-width: 768px) {
  /* Mantém botão ↻ visível, esconde apenas o contador "X / 23" */
  .nf-wave-bar { display: flex; padding: 0.75rem 1rem; }
  .nf-wave-counter { display: none; }

  /* Hero padding mobile */
  .nf-hero { padding-bottom: 5.5rem; }

  .nf-filter-box {
    padding: 2rem 1.2rem 2rem;
  }

  .nf-filter-box h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .nf-header-inner {
    padding: 0 1rem;
    gap: 1rem;
  }

  .nf-nav { display: none; }

  .nf-subscribe-btn { display: none; } /* FAB faz esse papel no mobile */

  .nf-post,
  .nf-page,
  .nf-archive {
    padding: 2rem 1rem 3rem;
  }

  .nf-post-title { font-size: 1.75rem; }

  .nf-footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .nf-footer-right { margin-left: 0; }

  .nf-subscribe-form { max-width: 100%; }

  .nf-hero-labels { bottom: 2rem; }
}

/* ══════════════════════════
   SIGNUP PAGE
   ══════════════════════════ */
.nf-signup-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 4rem 1.5rem;
}
.nf-signup-inner {
  text-align: center;
  max-width: 480px;
}
.nf-signup-inner h1 {
  font-family: var(--nf-font-title);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.nf-signup-inner > p {
  font-size: 0.95rem;
  color: var(--nf-text-secondary);
  margin-bottom: 1.5rem;
}

/* ══════════════════════════
   SEARCH PAGE (Pagefind)
   ══════════════════════════ */
.nf-search-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.nf-search-page h1 {
  font-family: var(--nf-font-title);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--nf-text);
}

/* Pagefind UI overrides — alinha com o visual NF */
.pagefind-ui {
  --pagefind-ui-scale: 0.85;
  --pagefind-ui-primary: #0a9e5e;
  --pagefind-ui-text: #1a1a1a;
  --pagefind-ui-background: #f8f5f0;
  --pagefind-ui-border: rgba(0,0,0,0.12);
  --pagefind-ui-tag: #0a9e5e;
  --pagefind-ui-font: 'DM Sans', -apple-system, sans-serif;
}

.pagefind-ui__search-input {
  font-family: var(--nf-font-body) !important;
  border-radius: 3px !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  background: #fff !important;
}

.pagefind-ui__search-input:focus {
  border-color: var(--nf-green) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(10,158,94,0.12) !important;
}

.pagefind-ui__result-title a {
  font-family: var(--nf-font-title) !important;
  color: var(--nf-text) !important;
  text-decoration: none !important;
  font-size: 1.1rem !important;
}

.pagefind-ui__result-title a:hover {
  color: var(--nf-green) !important;
}

.pagefind-ui__result-excerpt {
  font-size: 0.875rem !important;
  color: var(--nf-text-secondary) !important;
  line-height: 1.6 !important;
}

.pagefind-ui__result-tag {
  font-family: var(--nf-font-mono) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background: rgba(10,158,94,0.08) !important;
  color: var(--nf-green) !important;
  border: none !important;
}

.pagefind-ui__button {
  font-family: var(--nf-font-mono) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background: var(--nf-green) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 3px !important;
}

.nf-search-empty {
  font-family: var(--nf-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
  margin-top: 3rem;
  text-align: center;
}

/* ══════════════════════════════════════════
   CTA PANEL — FAB fixo bottom-right em todas as telas
   v1.6.0
   ══════════════════════════════════════════ */

/* Post wrap — single column em todas as telas */
.nf-post-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem; /* bottom padding pro FAB */
  display: block;
}

.nf-post-wrap .nf-post {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Sidebar desativada em todas as telas */
.nf-cta-col { display: none; }

/* ══════════════════════════
   FAB — fixo bottom-right, todas as telas
   ══════════════════════════ */
.nf-mobile-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex; /* sempre visível após scroll, todas as telas */
}
.nf-mobile-fab.nf-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cada botão FAB */
.nf-fab-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.nf-fab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.24);
}
.nf-fab-btn:active { transform: translateY(0); }

/* Subscribe — verde */
.nf-fab-subscribe {
  background: var(--nf-green);
  color: #fff;
}
.nf-fab-subscribe svg { width: 18px; height: 18px; }

/* Share — branco com borda */
.nf-fab-share {
  background: #fff;
  color: rgba(26,26,26,0.5);
  border: 1px solid rgba(0,0,0,0.12) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.nf-fab-share svg { width: 16px; height: 16px; }

/* Dropdown do FAB share — abre pra cima, alinhado à direita */
.nf-mobile-share-wrap {
  position: relative;
}
.nf-mobile-share-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 4px;
  overflow: hidden;
  width: 170px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
  z-index: 400;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nf-mobile-share-dropdown.nf-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.nf-mobile-share-dropdown .nf-share-item { padding: 11px 14px; }

.nf-share-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  font-family: var(--nf-font-body);
  font-size: 0.78rem;
  color: rgba(26,26,26,0.65);
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  transition: background 0.1s;
}
.nf-share-item:last-child { border-bottom: none; }
.nf-share-item:hover { background: rgba(0,0,0,0.03); }
.nf-share-item svg { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.45; }
.nf-share-copy { color: var(--nf-green); }
.nf-share-copy svg { opacity: 0.8; color: var(--nf-green); }

/* ══════════════════════════
   RESPONSIVE — só ajuste de padding
   ══════════════════════════ */
@media (max-width: 768px) {
  .nf-post-wrap {
    max-width: 100%;
    padding: 2rem 1.25rem 5rem;
  }
}

/* ══════════════════════════════════════════
   NAV DROPDOWN — Categorias
   ══════════════════════════════════════════ */

.nf-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nf-nav-item {
  position: relative;
}

.nf-nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--nf-font-body);
  font-size: 0.85rem;
  color: var(--nf-text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.nf-nav-item > a:hover { color: var(--nf-text); }

.nf-nav-item > a svg {
  width: 10px;
  height: 10px;
  opacity: 0.4;
  transition: transform 0.2s;
}
.nf-nav-item:hover > a svg {
  transform: rotate(180deg);
}

.nf-nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 3px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  overflow: hidden;
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 500;
}
.nf-nav-item:hover .nf-nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* triangle */
.nf-nav-dropdown::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top: none;
  border-bottom-color: rgba(0,0,0,0.08);
}
.nf-nav-dropdown::after {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top: none;
  border-bottom-color: #fff;
}

.nf-nav-dropdown a {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.1s;
  text-decoration: none;
}
.nf-nav-dropdown a:last-child { border-bottom: none; }
.nf-nav-dropdown a:hover { background: rgba(0,0,0,0.02); }

/* Tag chips inside dropdown — same pattern as post tags */
.nf-dd-tag {
  font-family: var(--nf-font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  flex-shrink: 0;
}
.nf-dd-hk  { background: rgba(196,56,42,0.1);  color: var(--nf-hk);  }
.nf-dd-anf { background: rgba(10,158,94,0.1);  color: var(--nf-anf); }
.nf-dd-ent { background: rgba(51,102,204,0.1); color: var(--nf-ent); }
.nf-dd-els { background: rgba(196,138,26,0.1); color: var(--nf-els); }
.nf-dd-lau { background: rgba(92,45,145,0.1);  color: var(--nf-lau); }

@media (max-width: 768px) {
  .nf-nav-item { display: none; }
}

/* ══════════════════════════════════════════
   NF-SUBHEAD — subtítulo de seção inline nos posts
   Classe CSS para subheadings dentro do corpo do artigo
   Substituir o inline style com font-size:11px por esta classe
   v1.6.9
   ══════════════════════════════════════════ */

.nf-subhead {
  font-family: var(--nf-font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nf-text-secondary);
  margin: 2.5rem 0 1rem;
  display: block;
}

/* Cor por seção — aplica a cor certa ao span interno */
.nf-subhead-hk  { color: var(--nf-hk);  }
.nf-subhead-anf { color: var(--nf-anf); }
.nf-subhead-ent { color: var(--nf-ent); }
.nf-subhead-els { color: var(--nf-els); }
.nf-subhead-lau { color: var(--nf-lau); }

/* ══════════════════════════════════════════
   MOBILE NAV — Hamburger + Drawer lateral
   v1.6.9
   ══════════════════════════════════════════ */

/* Botão hamburger — só mobile */
.nf-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
  color: var(--nf-text-secondary);
  transition: color 0.2s;
}
.nf-hamburger:hover { color: var(--nf-green); }
.nf-hamburger svg { display: block; }

/* Overlay escuro */
.nf-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.25s;
}
.nf-drawer-overlay.nf-open {
  display: block;
  opacity: 1;
}

/* Drawer lateral */
.nf-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  background: var(--nf-header-bg);
  border-left: 1px solid var(--nf-border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0 2rem;
  overflow-y: auto;
}
.nf-drawer.nf-open {
  transform: translateX(0);
}

/* Header do drawer — logo + fechar */
.nf-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid var(--nf-border);
  margin-bottom: 0.75rem;
}
.nf-drawer-logo {
  font-family: var(--nf-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nf-text);
}
.nf-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--nf-text-secondary);
  transition: color 0.2s;
}
.nf-drawer-close:hover { color: var(--nf-green); }

/* Links principais */
.nf-drawer-link {
  display: block;
  font-family: var(--nf-font-body);
  font-size: 0.9rem;
  color: var(--nf-text-secondary);
  padding: 0.7rem 1.25rem;
  transition: color 0.2s, background 0.2s;
  border-radius: 0;
}
.nf-drawer-link:hover {
  color: var(--nf-text);
  background: rgba(0,0,0,0.03);
}

/* Label "Categorias" no drawer */
.nf-drawer-section-label {
  font-family: var(--nf-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
  padding: 1.25rem 1.25rem 0.5rem;
}

/* Chips de categoria no drawer */
.nf-drawer-cats {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.75rem;
}
.nf-drawer-cats a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.5rem;
  border-radius: 3px;
  transition: background 0.2s;
}
.nf-drawer-cats a:hover { background: rgba(0,0,0,0.04); }

@media (max-width: 768px) {
  .nf-hamburger { display: flex; align-items: center; }
  /* Esconde nav e botão assinar no header mobile */
  .nf-nav { display: none !important; }
  .nf-header-actions .nf-subscribe-btn { display: none; }
  /* Remove margin-left: auto do actions pra não empurrar hamburger */
  .nf-header-actions { margin-left: 0; }
  /* Logo fica à esquerda, search no meio, hamburger à direita */
  .nf-header-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
  }
}


/* ══════════════════════════════════════════
   v1.8.0 — ADIÇÕES
   ══════════════════════════════════════════ */

/* ── READING WIDTH
   760px → ~72 chars/linha @ 16px DM Sans
   Melhor ergonomia para textos 2k–4.5k palavras
   Override do 900px do wrap original
   ────────────────────────────────────────── */
.nf-post-wrap {
  max-width: 760px;
}

/* ── READING PROGRESS BAR
   Linha verde de 2px no topo. Só aparece em posts.
   JS em default.hbs alimenta a largura via CSS var.
   ────────────────────────────────────────── */
#nf-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--nf-green);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: width 0.08s linear;
  box-shadow: 0 1px 8px rgba(10,158,94,0.55);
}
.post-template #nf-progress {
  opacity: 1;
}

/* ── NF-DETAILS — colapsáveis
   Resolve o CSS inline em cada post do dossiê.
   Artigos existentes: os inline styles do <div> interno
   convivem sem conflito (inline > cascata).
   Novas ocorrências: zero inline CSS necessário.
   ────────────────────────────────────────── */
.nf-details {
  border: 1px solid rgba(92, 45, 145, 0.18);
  border-radius: 4px;
  margin: 20px 0;
  overflow: hidden;
}
.nf-details summary {
  font-family: var(--nf-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nf-lau);
  padding: 11px 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  user-select: none;
  background: rgba(92, 45, 145, 0.04);
  transition: background 0.15s;
}
.nf-details summary::-webkit-details-marker { display: none; }
.nf-details summary::before {
  content: '▶';
  font-size: 7px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
  opacity: 0.7;
}
.nf-details[open] > summary::before {
  transform: rotate(90deg);
}
.nf-details summary:hover {
  background: rgba(92, 45, 145, 0.08);
}
.nf-details[open] > summary {
  border-bottom: 1px solid rgba(92, 45, 145, 0.12);
}
/* Conteúdo dentro do details quando não tem div wrapper */
.nf-details > p,
.nf-details > ul,
.nf-details > ol {
  padding: 14px 16px;
  font-family: var(--nf-font-body);
  font-size: 14px;
  color: var(--nf-text);
  line-height: 1.7;
  margin: 0;
}

/* ── NF-ESSENCIAL — bloco de highlights
   Replica exatamente o CSS inline atual dos posts.
   A partir de agora: só classe, sem inline.
   ────────────────────────────────────────── */
.nf-essencial {
  border-left: 4px solid var(--nf-lau);
  background: rgba(92, 45, 145, 0.05);
  padding: 16px 20px;
  margin: 32px 0;
  border-radius: 0 4px 4px 0;
}
.nf-essencial-label {
  font-family: var(--nf-font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--nf-lau);
  margin-bottom: 10px;
  display: block;
}
.nf-essencial ul {
  margin: 0;
  padding-left: 18px;
}
.nf-essencial li {
  font-family: var(--nf-font-body);
  font-size: 15px;
  color: var(--nf-text);
  line-height: 1.65;
  margin-bottom: 6px;
}
.nf-essencial li:last-child { margin-bottom: 0; }
.nf-essencial > p {
  font-family: var(--nf-font-body);
  font-size: 15px;
  color: var(--nf-text);
  line-height: 1.65;
  margin: 0;
}

/* ── TABLES
   Post-content tables sem estilo anteriormente.
   Ghost não injeta classes — aplica via descendant.
   ────────────────────────────────────────── */
.nf-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.88rem;
  line-height: 1.5;
}
.nf-post-content th {
  font-family: var(--nf-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
  padding: 0.55rem 0.9rem;
  border-bottom: 2px solid var(--nf-border);
  text-align: left;
  font-weight: 400;
}
.nf-post-content td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--nf-border);
  vertical-align: top;
}
.nf-post-content tr:last-child td { border-bottom: none; }
.nf-post-content tbody tr:hover td {
  background: rgba(0, 0, 0, 0.018);
}

/* ── FIGCAPTION / IMAGE CAPTIONS
   ────────────────────────────────────────── */
.nf-post-content figcaption,
.kg-image-card figcaption,
.kg-gallery-card figcaption {
  font-family: var(--nf-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--nf-text-muted);
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ── CODE BLOCKS (Koenig editor)
   Estilo anterior: herdava padrão do browser.
   ────────────────────────────────────────── */
.kg-code-card {
  margin: 2rem 0;
}
.kg-code-card pre {
  background: #f0ede7;
  border: 1px solid var(--nf-border);
  border-radius: 3px;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 0;
}
.kg-code-card pre code {
  font-family: var(--nf-font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--nf-text);
  background: none;
  padding: 0;
  border-radius: 0;
}

/* ── HEADING ANCHORS
   JS em post.hbs injeta .nf-anchor em cada h2/h3.
   Hover revela o link de seção.
   ────────────────────────────────────────── */
.nf-anchor {
  opacity: 0;
  margin-left: 0.45em;
  color: var(--nf-green);
  font-family: var(--nf-font-mono);
  font-size: 0.6em;
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.15s;
  vertical-align: middle;
  line-height: 1;
}
.nf-post-content h2:hover .nf-anchor,
.nf-post-content h3:hover .nf-anchor {
  opacity: 0.6;
}
.nf-anchor:hover {
  opacity: 1 !important;
}

/* ── NF-CALLOUT — novo componente
   Para artigos futuros. Não exige reescrita.
   3 variantes: padrão / warn / alert / signal
   Uso: <div class="nf-callout nf-callout--warn">
          <span class="nf-callout-icon">⚠</span>
          <div class="nf-callout-body"><p>Texto</p></div>
        </div>
   ────────────────────────────────────────── */
.nf-callout {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  margin: 2rem 0;
  border-radius: 3px;
  border: 1px solid var(--nf-border);
  background: var(--nf-bg-warm);
}
.nf-callout-icon {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.7;
  opacity: 0.75;
}
.nf-callout-body {
  font-family: var(--nf-font-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--nf-text-secondary);
}
.nf-callout-body p { margin: 0; }
.nf-callout--warn {
  border-color: rgba(196, 138, 26, 0.28);
  background: rgba(196, 138, 26, 0.04);
}
.nf-callout--alert {
  border-color: rgba(196, 58, 42, 0.22);
  background: rgba(196, 58, 42, 0.04);
}
.nf-callout--signal {
  border-color: rgba(10, 158, 94, 0.22);
  background: rgba(10, 158, 94, 0.04);
}

/* ── NF-MODAL — overrides de contraste (v1.8.1)
   .nf-modal-eyebrow tem color:#5C2D91 inline nos posts —
   roxo escuro em fundo #1a1a1a é ilegível.
   Override aqui: roxo claro suficiente pra fundo dark.
   ────────────────────────────────────────── */
.nf-modal-header .nf-modal-eyebrow {
  color: #b388ff !important;
}
html {
  scroll-behavior: smooth;
}

/* ── FOCUS STATES — acessibilidade básica
   ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--nf-green);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── PRINT STYLES
   Oculta UI, otimiza tipografia.
   Útil para imprimir/exportar PDF do dossiê.
   ────────────────────────────────────────── */
@media print {
  .nf-header,
  .nf-footer,
  .nf-mobile-fab,
  #nf-progress,
  .nf-post-footer,
  .nf-anchor,
  .nf-drawer,
  .nf-drawer-overlay { display: none !important; }

  body { background: #fff; color: #000; }

  .nf-post-wrap {
    max-width: 100%;
    padding: 0;
  }

  .nf-post-content {
    font-size: 11pt;
    line-height: 1.75;
    color: #000;
  }
  .nf-post-title {
    font-size: 20pt;
    color: #000;
  }
  .nf-post-content a {
    color: #000;
    border-bottom: none;
  }
  .nf-post-content a[href]::after {
    content: " [" attr(href) "]";
    font-size: 0.72em;
    color: #666;
    font-family: var(--nf-font-mono);
  }
  /* Suprime tooltips no print */
  .nf-tip::after,
  .nf-tip::before { display: none !important; }
  /* Abre todos os details automaticamente no print */
  .nf-details[open],
  .nf-details { overflow: visible; }
  .nf-details summary { background: none; border: none; }
  .nf-essencial {
    border-left: 3px solid #333;
    background: #f5f5f5;
  }
  .nf-post-content table { page-break-inside: avoid; }
}


/* ══════════════════════════════════════════
   v1.8.1 — FIXES
   ══════════════════════════════════════════ */

/* ── FIX 1: Progress bar — espessura 2px → 4px
   ────────────────────────────────────────── */
#nf-progress {
  height: 4px;
}

/* ── FIX 2: Modal eyebrow — contraste no fundo escuro
   .nf-modal-header { background: #1a1a1a } está inline no artigo.
   #5C2D91 nesse fundo = WCAG fail (ratio ~3.1).
   Override com especificidade maior que o <style> do post:
   roxo claro com ratio >4.5 em #1a1a1a.
   ────────────────────────────────────────── */
.nf-modal-header .nf-modal-eyebrow {
  color: #c4a0f0 !important;
}

/* ── FIX 3: Print — cabeçalho com nome + blog
   body::before injeta linha de identidade no topo.
   Fontes do Google Fonts não carregam no print —
   fallback para monospace nativo (aceita degrade).
   ────────────────────────────────────────── */
@media print {
  body::before {
    content: 'NOISE FLOOR  ×  Anna Graboski';
    display: block;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 8pt;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #333;
    padding-bottom: 10pt;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20pt;
  }

  /* FIX 4: Print — details colapsáveis
     CSS sozinho não abre <details> fechados.
     Force display do conteúdo não-summary.
     O JS beforeprint em default.hbs faz o open,
     este CSS é o fallback de segurança.
  ────────────────────────────────────────── */
  .nf-details > *:not(summary) {
    display: block !important;
  }
  .nf-details summary::before {
    display: none;
  }
  .nf-details summary {
    background: none !important;
    border: none !important;
    padding-left: 0 !important;
    font-weight: 600;
  }

  /* FIX 5: Print — post-index (flex inline colapsa)
     Os cards do índice usam display:flex com inline styles.
     No print, força block para evitar colapso.
     Aplica via .nf-post-content que é o container.
  ────────────────────────────────────────── */
  .nf-post-content [style*="display: flex"],
  .nf-post-content [style*="display:flex"] {
    display: block !important;
  }
  /* Restaura os numerinhos do índice como texto inline */
  .nf-post-content [style*="width: 32px"],
  .nf-post-content [style*="width: 28px"],
  .nf-post-content [style*="min-width: 32px"],
  .nf-post-content [style*="min-width: 28px"] {
    display: inline !important;
    width: auto !important;
    min-width: auto !important;
    padding-right: 8px;
  }
}


/* ══════════════════════════════════════════
   v1.8.2 — FIXES
   ══════════════════════════════════════════ */

/* ── FIX: Progress bar — abaixo do header (não escondida por ele)
   Header tem 52px de altura. Bar fica em top: 52px.
   Espessura 5px. box-shadow acentua a visibilidade.
   ────────────────────────────────────────── */
#nf-progress {
  top: 52px;
  height: 5px;
  box-shadow: 0 1px 10px rgba(10,158,94,0.60);
  border-radius: 0 3px 3px 0;
}

/* ── FIX: .nf-subhead — padroniza o estilo de subtítulo de seção
   Resolve inconsistência entre class vs inline styles nos artigos existentes.
   Os inline styles nos artigos antigos continuam ganhando da cascata —
   este fix é para artigos novos e garante que a classe está correta.
   ────────────────────────────────────────── */
.nf-subhead {
  font-family: var(--nf-font-mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.20em !important;
  text-transform: uppercase !important;
  color: var(--nf-text-muted) !important;
  margin: 2.5rem 0 0.9rem !important;
  display: block !important;
  line-height: 1.4 !important;
}
/* Cores por seção sobrescrevem o muted padrão */
.nf-subhead.nf-subhead-hk  { color: var(--nf-hk)  !important; }
.nf-subhead.nf-subhead-anf { color: var(--nf-anf) !important; }
.nf-subhead.nf-subhead-ent { color: var(--nf-ent) !important; }
.nf-subhead.nf-subhead-els { color: var(--nf-els) !important; }
.nf-subhead.nf-subhead-lau { color: var(--nf-lau) !important; }


/* ══════════════════════════════════════════
   SEARCH MODAL — v1.8.5
   ══════════════════════════════════════════ */

.nf-smodal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(20, 18, 14, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  padding-left: 1rem;
  padding-right: 1rem;
  animation: nf-smodal-in 0.15s ease;
}
.nf-smodal-overlay[hidden] { display: none; }

@keyframes nf-smodal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nf-smodal {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22), 0 2px 12px rgba(0,0,0,0.10);
  overflow: hidden;
  animation: nf-smodal-slide 0.15s ease;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

@keyframes nf-smodal-slide {
  from { transform: translateY(-8px); opacity: 0.8; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Input row */
.nf-smodal-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--nf-border);
  flex-shrink: 0;
}
.nf-smodal-icon {
  color: var(--nf-text-muted);
  flex-shrink: 0;
}
#nf-smodal-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--nf-font-body);
  font-size: 1.05rem;
  color: var(--nf-text);
  padding: 1rem 0;
  background: none;
  caret-color: var(--nf-green);
}
#nf-smodal-input::placeholder { color: #bbb; }
#nf-smodal-input::-webkit-search-cancel-button { display: none; }

.nf-smodal-esc {
  font-family: var(--nf-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--nf-text-muted);
  border: 1px solid var(--nf-border);
  border-radius: 3px;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  transition: border-color 0.15s, color 0.15s;
}
.nf-smodal-esc:hover {
  border-color: var(--nf-text-muted);
  color: var(--nf-text);
}

/* Status */
.nf-smodal-status {
  font-family: var(--nf-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
  padding: 0.6rem 1.25rem 0;
  min-height: 1.4rem;
  flex-shrink: 0;
}
.nf-smodal-status.loading { color: var(--nf-green); }
.nf-smodal-status.error   { color: var(--nf-hk); }

/* Results scrollable */
.nf-smodal-results {
  overflow-y: auto;
  padding: 0.5rem 0 0.75rem;
  flex: 1;
}

.nf-smodal-result {
  display: block;
  padding: 0.8rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.1s;
}
.nf-smodal-result:last-child { border-bottom: none; }
.nf-smodal-result:hover {
  background: rgba(10,158,94,0.04);
}
.nf-smodal-result:hover .nf-smodal-rtitle {
  color: var(--nf-green);
}

.nf-smodal-rmeta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}
.nf-smodal-date {
  font-family: var(--nf-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
}
.nf-smodal-rtitle {
  font-family: var(--nf-font-title);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--nf-text);
  line-height: 1.3;
  margin-bottom: 0.2rem;
  transition: color 0.1s;
}
.nf-smodal-rexcerpt {
  font-family: var(--nf-font-body);
  font-size: 0.82rem;
  color: var(--nf-text-secondary);
  line-height: 1.55;
}
.nf-smodal-rtitle mark,
.nf-smodal-rexcerpt mark {
  background: rgba(10,158,94,0.14);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}

.nf-smodal-empty {
  font-family: var(--nf-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--nf-text-muted);
  text-align: center;
  padding: 2rem 1.25rem;
}

/* Tags dentro do modal — herdam o .nf-tag do tema */
.nf-smodal-rmeta .nf-tag {
  font-size: 0.52rem;
  padding: 0.15rem 0.45rem;
}

@media (max-width: 768px) {
  .nf-smodal-overlay { padding-top: 60px; }
  .nf-smodal { max-height: calc(100vh - 80px); }
}
