/* ==========================================================================
   TEPS Newsletter Stylesheet (List View + Full View)
   ========================================================================== */

:root {
  --nl-primary: #094d33;
  --nl-primary-dark: #063724;
  --nl-accent: #1aa05b;
  --nl-accent-light: #e8f5ec;
  --nl-bg: #f8faf8;
  --nl-surface: #ffffff;
  --nl-text-main: #192a20;
  --nl-text-muted: #5d6f65;
  --nl-text-subtle: #87998f;
  --nl-border: #e2e8e2;
  --nl-border-light: #edf2ed;
  --nl-heart: #e02424;
  --nl-heart-bg: #fde8e8;
  --nl-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --nl-radius: 12px;
  --nl-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --nl-shadow-md: 0 4px 16px rgba(9, 77, 51, 0.08);
}

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

body.newsletter-body {
  margin: 0;
  padding: 0;
  background-color: var(--nl-bg);
  color: var(--nl-text-main);
  font-family: var(--nl-font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── Top Navigation Bar ───────────────────────────────────────────────────── */
.nl-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nl-surface);
  border-bottom: 1px solid var(--nl-border);
  box-shadow: var(--nl-shadow-sm);
}

.nl-navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nl-brand-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nl-brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.nl-brand-logo-link:hover {
  opacity: 0.85;
}

.nl-brand-sentence {
  font-size: 14px;
  font-weight: 700;
  color: var(--nl-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  user-select: none;
  cursor: default;
}

.nl-logo {
  height: 38px;
  width: auto;
  display: block;
}

.nl-divider-v {
  width: 1px;
  height: 24px;
  background-color: var(--nl-border);
}

.nl-brand-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--nl-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nl-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nl-guest-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nl-auth-nav-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nl-auth-nav-btn.secondary {
  background: #f0f4f1;
  color: var(--nl-primary);
  border: 1px solid var(--nl-border);
}

.nl-auth-nav-btn.secondary:hover {
  background: var(--nl-accent-light);
  border-color: var(--nl-accent);
}

.nl-auth-nav-btn.primary {
  background: var(--nl-primary);
  color: #fff;
  border: 1px solid var(--nl-primary);
}

.nl-auth-nav-btn.primary:hover {
  background: var(--nl-primary-dark);
}

.nl-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #f0f4f1;
  color: var(--nl-primary);
  border: 1px solid var(--nl-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nl-back-btn:hover {
  background-color: var(--nl-accent-light);
  border-color: var(--nl-accent);
}

.nl-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: #f7f9f7;
  border: 1px solid var(--nl-border);
  border-radius: 30px;
}

.nl-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--nl-primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--nl-text-main);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.nl-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px 48px;
}

/* ── Immediate View-State Switching (Zero Flicker) ───────────────────────── */
html.nl-view-article-mode #nlListView {
  display: none !important;
}

html.nl-view-article-mode #nlArticleView {
  display: block !important;
}

/* ── VIEW 1: Published Newsletters Listing (Matches Image 2) ─────────────── */
.nl-list-view {
  background: var(--nl-surface);
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius);
  padding: 28px 36px;
  box-shadow: var(--nl-shadow-sm);
}

.nl-list-header {
  margin-bottom: 12px;
}

.nl-list-title {
  font-size: 28px;
  font-weight: 800;
  color: #11281e;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.nl-list-subtitle {
  color: var(--nl-text-muted);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.4;
}

/* Filter Bar: Year, Month, Edition & Search */
.nl-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 8px 12px;
  background: #f8faf8;
  border: 1px solid var(--nl-border-light);
  border-radius: 10px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.nl-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--nl-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2px;
}

.nl-filter-label svg {
  color: var(--nl-accent);
}

.nl-filter-select {
  width: auto !important;
  min-width: 120px;
  max-width: 160px;
  height: 38px;
  padding: 0 30px 0 12px !important;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 600;
  color: var(--nl-text-main);
  background: #fff;
  border: 1px solid var(--nl-border);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23366a4f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  box-sizing: border-box;
}

.nl-filter-select:hover {
  border-color: var(--nl-accent);
}

.nl-filter-select:focus {
  border-color: var(--nl-accent);
  box-shadow: 0 0 0 3px rgba(26, 160, 91, 0.12);
}

.nl-search-input {
  flex: 1 1 auto;
  min-width: 160px;
  width: auto !important;
  height: 38px;
  padding: 0 12px 0 34px !important;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--nl-text-main);
  background: #fff;
  border: 1px solid var(--nl-border);
  border-radius: 8px;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f8277' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 11px center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.nl-search-input:hover {
  border-color: var(--nl-accent);
}

.nl-search-input:focus {
  border-color: var(--nl-accent);
  box-shadow: 0 0 0 3px rgba(26, 160, 91, 0.12);
}

.nl-search-input::placeholder {
  color: #8c9e93;
}

/* Published Newsletters Rows (Exact Match to User Image 2) */
.nl-published-list {
  display: flex;
  flex-direction: column;
}

.nl-list-item-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--nl-border-light);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nl-list-item-row:last-child {
  border-bottom: none;
}

.nl-list-item-row:hover .nl-edition-col h3 {
  color: var(--nl-primary);
}

.nl-list-item-row:hover .nl-item-title {
  color: var(--nl-primary);
}

.nl-list-item-row:hover .nl-read-more-tag {
  color: var(--nl-primary);
  text-decoration: underline;
}

.nl-edition-col h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--nl-accent);
  line-height: 1.3;
  transition: color 0.15s;
}

.nl-latest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background-color: #eaf8ef;
  border: 1px solid #c4e6d0;
  color: #117c47;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  line-height: 1.4;
  vertical-align: middle;
}

.nl-edition-col .nl-latest-badge {
  margin-top: 6px;
}

.nl-latest-badge .nl-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #1aa05b;
  display: inline-block;
  flex-shrink: 0;
}

.nl-details-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nl-date-header {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}

.nl-item-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--nl-text-main);
  line-height: 1.4;
  transition: color 0.15s ease;
}

.nl-snippet-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #333333;
}

.nl-read-more-tag {
  color: var(--nl-accent);
  font-weight: 700;
  margin-left: 4px;
  display: inline-block;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s;
}

/* ── Pagination / Load More Bar with Progress ────────────────────────────── */
.nl-pagination-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--nl-border-light);
  gap: 16px;
}

.nl-pagination-progress-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.nl-pagination-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--nl-text-muted);
}

.nl-pagination-progress-track {
  width: 100%;
  height: 6px;
  background-color: #edf2ed;
  border-radius: 999px;
  overflow: hidden;
}

.nl-pagination-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1aa05b, #094d33);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.nl-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--nl-primary);
  border: 1px solid var(--nl-primary);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--nl-shadow-sm);
  transition: all 0.2s ease;
}

.nl-load-more-btn:hover {
  background-color: var(--nl-primary-dark);
  border-color: var(--nl-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(9, 77, 51, 0.18);
}

.nl-load-more-btn:active {
  transform: translateY(0);
}

.nl-all-loaded-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--nl-primary);
  background-color: var(--nl-accent-light);
  border-radius: 20px;
  border: 1px solid #d2e8d8;
}

/* ── VIEW 2: Full Opened Newsletter View (NO "All Editions" sidebar) ──────── */
.nl-article-view {
  max-width: 1020px;
  margin: 0 auto;
  width: 100%;
}

.nl-view-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.nl-back-to-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: var(--nl-surface);
  color: var(--nl-primary);
  border: 1px solid var(--nl-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--nl-shadow-sm);
  transition: all 0.2s ease;
}

.nl-back-to-list-btn:hover {
  background-color: var(--nl-accent-light);
  border-color: var(--nl-accent);
}

.nl-full-article-card {
  background: var(--nl-surface);
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius);
  box-shadow: var(--nl-shadow-sm);
  padding: 44px 52px;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.nl-meta-header {
  margin-bottom: 24px;
}

.nl-edition-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.nl-edition-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background-color: var(--nl-accent-light);
  color: var(--nl-primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nl-date-text {
  font-size: 14px;
  color: var(--nl-text-muted);
  font-weight: 500;
}

.nl-author-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--nl-primary-dark);
  background-color: var(--nl-bg);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--nl-border-light);
}

.nl-author-byline {
  color: var(--nl-text-muted);
  font-weight: 500;
  font-size: 13px;
}

.nl-article-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--nl-primary-dark);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}

.nl-byline-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--nl-border-light);
  font-size: 14px;
  color: var(--nl-text-muted);
}

.nl-author-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2ede6;
  color: var(--nl-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.nl-author-name {
  font-weight: 600;
  color: var(--nl-text-main);
}

.nl-cover-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 10px;
  margin: 24px 0 28px;
  box-shadow: var(--nl-shadow-sm);
}

.nl-content-body {
  font-size: 17px;
  line-height: 1.8;
  color: #27382f;
  margin-top: 24px;
}

.nl-content-body p {
  margin: 0 0 20px;
}

.nl-content-body h1,
.nl-content-body h2,
.nl-content-body h3,
.nl-content-body h4 {
  color: var(--nl-primary-dark);
  margin: 32px 0 14px;
  font-weight: 700;
  line-height: 1.3;
}

.nl-img-container {
  margin: 28px auto;
  text-align: center;
  max-width: 100%;
  clear: both;
}

.nl-img-container img,
.nl-content-body img {
  max-width: 100%;
  height: auto !important;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
  position: static !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nl-content-body blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  background-color: var(--nl-bg);
  border-left: 4px solid var(--nl-accent);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--nl-text-main);
}

/* Responsive Table Container (Prevents table overflowing outside the UI view) */
.nl-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border: 1px solid var(--nl-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.nl-table-wrap table,
.nl-content-body table {
  width: 100% !important;
  max-width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  margin: 0 !important;
  table-layout: auto !important;
  font-size: 15px;
  line-height: 1.6;
}

.nl-content-body th,
.nl-content-body td {
  padding: 12px 16px !important;
  vertical-align: top;
  border: 1px solid var(--nl-border-light);
  word-break: normal;
  overflow-wrap: break-word;
}

.nl-content-body th {
  background-color: #f7faf7;
  font-weight: 700;
  color: var(--nl-primary-dark);
}

/* ── NYT-Style Article Preview & Gate ────────────────────────────────────── */
.nl-content-body.nl-content-preview {
  max-height: 440px;
  overflow: hidden;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.nl-content-body.nl-content-preview::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 50%, #ffffff 100%);
  pointer-events: none;
}

.nl-preview-gate-card {
  margin: 16px 0 36px;
  padding: 36px 32px;
  background: linear-gradient(135deg, #f7fbf8 0%, #edf7f0 100%);
  border: 1px solid #c8e6d3;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(9, 77, 51, 0.06);
}

.nl-gate-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #c4e6d0;
  color: #117c47;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.nl-gate-title {
  font-size: 24px;
  font-weight: 850;
  color: #11281e;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}

.nl-gate-sub {
  color: #5d6f65;
  font-size: 15px;
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.nl-gate-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nl-gate-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nl-gate-btn.primary {
  background-color: var(--nl-primary);
  color: #ffffff;
  border: 1px solid var(--nl-primary);
  box-shadow: 0 2px 8px rgba(9, 77, 51, 0.2);
}

.nl-gate-btn.primary:hover {
  background-color: var(--nl-primary-dark);
  transform: translateY(-1px);
}

.nl-gate-btn.secondary {
  background-color: #ffffff;
  color: var(--nl-primary);
  border: 1px solid #c8e6d3;
}

.nl-gate-btn.secondary:hover {
  background-color: #f0f7f2;
}

/* ── Social / Engagement Bar ─────────────────────────────────────────────── */
.nl-engagement-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-top: 36px;
  border-top: 1px solid var(--nl-border);
  border-bottom: 1px solid var(--nl-border);
}

.nl-engagement-left,
.nl-engagement-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nl-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--nl-text-muted);
}

.nl-stat-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  stroke: currentColor;
  fill: none;
}

.nl-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--nl-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nl-action-btn:hover {
  background-color: #edf3ee;
  color: var(--nl-primary);
}

.nl-like-btn {
  color: var(--nl-text-muted);
}

.nl-like-btn:hover {
  background-color: var(--nl-heart-bg);
  color: var(--nl-heart);
}

.nl-like-btn.liked {
  color: var(--nl-heart);
  background-color: var(--nl-heart-bg);
  border-color: #f8b4b4;
}

.nl-like-btn.liked .nl-heart-icon {
  fill: var(--nl-heart);
  stroke: var(--nl-heart);
  transform: scale(1.1);
}

.nl-share-btn {
  background-color: #edf3ee;
  color: var(--nl-primary);
  border-color: var(--nl-border);
}

.nl-share-btn:hover {
  background-color: var(--nl-accent-light);
  border-color: var(--nl-accent);
}

/* ── Comments Section ────────────────────────────────────────────────────── */
.nl-comments-section {
  margin-top: 40px;
}

.nl-comments-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--nl-primary-dark);
  margin: 0 0 20px;
}

.nl-comment-box {
  background: #fbfdfb;
  border: 1px solid var(--nl-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 28px;
}

.nl-comment-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--nl-border);
  border-radius: 8px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.nl-comment-textarea:focus {
  border-color: var(--nl-accent);
  box-shadow: 0 0 0 3px rgba(26, 160, 91, 0.12);
}

.nl-comment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.nl-comment-submit-btn {
  padding: 8px 20px;
  background-color: var(--nl-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nl-comment-submit-btn:hover:not(:disabled) {
  background-color: var(--nl-primary-dark);
}

.nl-comment-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nl-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nl-comment-item {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--nl-border-light);
  border-radius: 8px;
}

.nl-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.nl-comment-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nl-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--nl-accent-light);
  color: var(--nl-primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-comment-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--nl-text-main);
}

.nl-comment-time {
  font-size: 12px;
  color: var(--nl-text-subtle);
}

.nl-comment-text {
  font-size: 14px;
  color: #2c3e34;
  margin: 0;
  white-space: pre-wrap;
}

.nl-comments-empty {
  text-align: center;
  padding: 30px;
  color: var(--nl-text-muted);
  font-size: 14px;
  background: #fff;
  border: 1px dashed var(--nl-border);
  border-radius: 8px;
}

/* ── Toast Notification ─────────────────────────────────────────────────── */
.nl-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: var(--nl-primary-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(9, 77, 51, 0.16);
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.nl-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive Queries ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nl-navbar-inner {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .nl-brand-container {
    gap: 10px;
  }

  .nl-brand-sentence {
    font-size: 13px;
    letter-spacing: 0.03em;
  }

  .nl-logo {
    height: 32px;
  }

  .nl-nav-actions {
    gap: 8px;
  }

  .nl-back-btn span {
    display: none; /* Icon only on mobile */
  }

  .nl-back-btn {
    padding: 8px 10px;
  }

  .nl-auth-nav-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .nl-container {
    padding: 18px 12px 36px;
  }

  .nl-list-view,
  .nl-full-article-card {
    padding: 22px 16px;
    border-radius: 14px;
  }

  .nl-list-title {
    font-size: 24px;
  }

  .nl-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    margin-top: 10px;
    margin-bottom: 16px;
  }

  .nl-filter-label {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .nl-filter-select {
    width: 100% !important;
    max-width: 100%;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    font-size: 13.5px;
    box-sizing: border-box;
    flex: 0 0 auto !important;
  }

  .nl-search-input {
    grid-column: 1 / -1;
    width: 100% !important;
    max-width: 100%;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    font-size: 13.5px;
    box-sizing: border-box;
    flex: 0 0 auto !important;
  }

  .nl-list-item-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .nl-edition-col h3 {
    font-size: 20px;
  }

  .nl-item-title {
    font-size: 17px;
  }

  .nl-article-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .nl-preview-gate-card {
    padding: 24px 18px;
  }

  .nl-gate-title {
    font-size: 20px;
  }

  .nl-gate-btn {
    width: 100%;
  }

  .nl-engagement-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nl-engagement-left,
  .nl-engagement-right {
    justify-content: space-between;
    width: 100%;
  }

  .nl-comments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
