:root {
  --article-max-width: 760px;
  --article-text: #1f2937;
  --article-muted: #6b7280;
  --article-heading: #0f172a;
  --article-bg-soft: #f8fafc;
  --article-border: #e5e7eb;
  --article-accent: #1d4ed8;
}

.n24-p {
  max-width: 72ch;
}

.entry-content,
.post-content,
article .content {
  max-width: var(--article-max-width);
  margin: 0 auto;
  color: var(--article-text);
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.entry-content p,
.post-content p {
  margin: 0 0 1.05em;
}

.entry-content h1,
.post-content h1 {
  color: var(--article-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

.entry-content h2,
.post-content h2 {
  color: var(--article-heading);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.25;
  margin: 1.45em 0 0.55em;
}

.entry-content h3,
.post-content h3 {
  color: var(--article-heading);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.3;
  margin: 1.2em 0 0.45em;
}

.entry-content a,
.post-content a {
  color: var(--article-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.entry-content a:hover,
.post-content a:hover {
  text-decoration-thickness: 2px;
}

.n24-grid-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0 1.25rem;
}

.n24-grid-item {
  border: 1px solid var(--article-border);
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  line-height: 1.55;
  font-size: 0.95em;
}

.n24-grid-item strong {
  color: var(--article-heading);
}

.n24-insights {
  margin: 0 0 1.2rem 1.15rem;
  padding: 0;
}

.n24-insights li {
  margin: 0.35rem 0;
}

.n24-data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--article-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  font-size: 0.95em;
}

.n24-data-table thead th {
  background: var(--article-bg-soft);
  color: var(--article-heading);
  font-weight: 700;
}

.n24-data-table th,
.n24-data-table td {
  border-bottom: 1px solid var(--article-border);
  padding: 0.62rem 0.72rem;
  text-align: left;
  vertical-align: top;
}

.n24-tip,
.n24-warning,
.n24-note {
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--article-border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem 0.8rem;
}

.n24-tip {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.n24-warning {
  background: #fff7ed;
  border-color: #fed7aa;
}

.n24-note {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.n24-tip-label,
.n24-warning-label,
.n24-note-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0f172a;
}

.n24-timeline {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  border-left: 2px solid #dbeafe;
}

.n24-timeline li {
  position: relative;
  margin: 0 0 0.7rem 0;
  padding: 0 0 0 0.95rem;
}

.n24-timeline li::before {
  content: "";
  position: absolute;
  left: -0.39rem;
  top: 0.42rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #2563eb;
}

.n24-timeline time {
  font-weight: 700;
  color: #1e3a8a;
}

.n24-blockquote {
  margin: 1.1rem 0 1.2rem;
  border-left: 4px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
}

.n24-blockquote p {
  margin: 0 0 0.45rem;
  font-style: italic;
}

.n24-blockquote cite {
  display: block;
  font-style: normal;
  color: var(--article-muted);
  font-size: 0.92em;
}

.n24-faq {
  margin: 0 0 0.65rem;
  border: 1px solid var(--article-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.n24-faq summary {
  cursor: pointer;
  padding: 0.62rem 0.78rem;
  font-weight: 600;
  color: #111827;
}

.n24-faq[open] summary {
  border-bottom: 1px solid var(--article-border);
  background: #fafafa;
}

.n24-faq p {
  margin: 0;
  padding: 0.62rem 0.78rem 0.75rem;
}

/* Compatibility layer for variant block names from n8n */
.n24-overview-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.7rem !important;
  margin: 1rem 0 1.25rem !important;
}

.n24-overview-grid > div {
  border: 1px solid var(--article-border);
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  line-height: 1.55;
  font-size: 0.95em;
}

.n24-grid-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--article-muted);
  margin-bottom: 0.2rem;
}

.n24-grid-value {
  font-weight: 700;
  color: var(--article-heading);
}

.n24-key-insights,
.n24-key-insights ul,
.n24-insights-list,
.n24-insights-list ul {
  margin: 0 0 1.2rem 1.15rem;
  padding: 0;
}

.n24-key-insights li,
.n24-insights-list li {
  margin: 0.35rem 0;
}

.n24-fact-table,
.n24-clarity-table,
.entry-content table,
.post-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--article-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  font-size: 0.95em;
}

.n24-fact-table th,
.n24-fact-table td,
.n24-clarity-table th,
.n24-clarity-table td,
.entry-content table th,
.entry-content table td,
.post-content table th,
.post-content table td {
  border-bottom: 1px solid var(--article-border);
  padding: 0.62rem 0.72rem;
  text-align: left;
  vertical-align: top;
}

.n24-fact-table thead th,
.n24-clarity-table thead th,
.entry-content table thead th,
.post-content table thead th {
  background: var(--article-bg-soft);
  color: var(--article-heading);
  font-weight: 700;
}

.n24-timeline-list {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  border-left: 2px solid #dbeafe;
}

.n24-timeline-list li {
  position: relative;
  margin: 0 0 0.7rem 0;
  padding: 0 0 0 0.95rem;
}

.n24-timeline-list li::before {
  content: "";
  position: absolute;
  left: -0.39rem;
  top: 0.42rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #2563eb;
}

.n24-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.1rem 0 1.3rem;
}

.n24-confirmed,
.n24-unclear {
  border: 1px solid var(--article-border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: #fff;
}

.n24-confirmed {
  border-color: #86efac;
  background: #f0fdf4;
}

.n24-unclear {
  border-color: #fde68a;
  background: #fffbeb;
}

.n24-confirmed h4,
.n24-unclear h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--article-heading);
}

.n24-quote,
.entry-content blockquote,
.post-content blockquote {
  margin: 1.1rem 0 1.2rem;
  border-left: 4px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
}

.n24-quote p,
.entry-content blockquote p,
.post-content blockquote p {
  margin: 0 0 0.45rem;
  font-style: italic;
}

.n24-quote cite,
.entry-content blockquote cite,
.post-content blockquote cite {
  display: block;
  font-style: normal;
  color: var(--article-muted);
  font-size: 0.92em;
}

.n24-faq-item,
.entry-content details,
.post-content details {
  margin: 0 0 0.65rem;
  border: 1px solid var(--article-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.n24-faq-item summary,
.entry-content details summary,
.post-content details summary {
  cursor: pointer;
  padding: 0.62rem 0.78rem;
  font-weight: 600;
  color: #111827;
}

.n24-faq-item[open] summary,
.entry-content details[open] summary,
.post-content details[open] summary {
  border-bottom: 1px solid var(--article-border);
  background: #fafafa;
}

.n24-faq-item p,
.entry-content details p,
.post-content details p,
.n24-faq-item .n24-p {
  margin: 0;
  padding: 0.62rem 0.78rem 0.75rem;
}

@media (max-width: 780px) {
  .n24-grid-overview {
    grid-template-columns: 1fr;
  }

  .n24-overview-grid,
  .n24-comparison {
    grid-template-columns: 1fr !important;
  }

  .entry-content,
  .post-content,
  article .content {
    font-size: 17px;
    line-height: 1.72;
  }

  .n24-data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
