/* RentSignal Blog — matches rentsignal.de landing page */

/* ── Brand tokens (from frontend/rentsignal-landing.html) ── */
:root {
  --rs-teal: #004746;
  --rs-green: #00BC72;
  --rs-green-light: #E6F9F0;
  --rs-green-hover: #00A864;
  --rs-accent: #E8913A;
  --rs-fg: #1A1F2B;
  --rs-fg-muted: #6B7280;
  --rs-fg-light: #9CA3AF;
  --rs-bg: #FAFAFA;
  --rs-bg-warm: #F5F3EF;
  --rs-card: #FFFFFF;
  --rs-border: #E5E7EB;
  --rs-danger: #DC2626;
}

/* ── Typography ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--rs-fg);
  background: var(--rs-bg);
  font-size: 0.95rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  color: var(--rs-fg);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h1 { font-weight: 700; }

code, pre, .sourceCode {
  font-family: 'JetBrains Mono', monospace;
}

/* ── Navbar — dark teal like landing page ── */
.navbar {
  background-color: var(--rs-teal) !important;
  border-bottom: none;
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  color: #ffffff !important;
}

.navbar .nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--rs-green) !important;
}

.navbar .navbar-nav .nav-link.active {
  color: var(--rs-green) !important;
}

/* Search icon in navbar */
.navbar .bi-search,
.navbar .navbar-search {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* GitHub icon */
.navbar .bi-github {
  color: rgba(255, 255, 255, 0.85) !important;
}

.navbar .bi-github:hover {
  color: var(--rs-green) !important;
}

/* ── Article listing ── */
.quarto-listing-default .listing-title {
  font-weight: 600;
  color: var(--rs-fg);
  font-size: 1.15rem;
}

.quarto-listing-default .listing-title:hover {
  color: var(--rs-green);
}

.quarto-listing-default .listing-description {
  color: var(--rs-fg-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.quarto-listing-default .listing-date,
.quarto-listing-default .listing-author {
  font-size: 0.8rem;
  color: var(--rs-fg-light);
}

/* Category badges — green accent like landing page buttons */
.quarto-listing-default .listing-categories .listing-category {
  background-color: var(--rs-green-light);
  color: var(--rs-teal);
  border: 1px solid var(--rs-green);
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
}

/* ── Article body ── */
.content {
  max-width: 780px;
}

/* Links — green accent */
a {
  color: var(--rs-green);
  text-decoration: none;
}

a:hover {
  color: var(--rs-green-hover);
  text-decoration: underline;
}

/* ── Tables — clean, matching dashboard ── */
table {
  font-size: 0.88rem;
  border-collapse: collapse;
  width: 100%;
}

table thead th {
  background-color: var(--rs-bg-warm);
  border-bottom: 2px solid var(--rs-border);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--rs-fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 12px;
}

table tbody td {
  border-bottom: 1px solid var(--rs-border);
  padding: 10px 12px;
}

table tbody tr:hover {
  background-color: rgba(0, 188, 114, 0.04);
}

/* Bold values in tables */
table tbody td strong {
  color: var(--rs-fg);
}

/* ── Code blocks — dark with green accent ── */
pre.sourceCode {
  border-left: 3px solid var(--rs-green);
  background-color: var(--rs-teal);
  color: #e2e8f0;
  border-radius: 4px;
  font-size: 0.85rem;
}

div.sourceCode {
  border-radius: 4px;
}

/* Inline code */
p code, li code {
  background-color: var(--rs-green-light);
  color: var(--rs-teal);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.88em;
}

/* ── Callout boxes — green accent ── */
.callout-note {
  border-left: 4px solid var(--rs-green);
  background-color: var(--rs-green-light);
}

.callout-note .callout-title {
  color: var(--rs-teal);
  font-weight: 600;
}

/* ── Section labels — mono uppercase like landing page ── */
.quarto-title-meta-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rs-fg-muted);
}

/* ── Subtitle ── */
.quarto-title .quarto-title-subtitle {
  color: var(--rs-fg-muted);
  font-size: 1.05rem;
}

/* ── CTA links — make them pop with green ── */
a[href*="rentsignal.de/"] {
  font-weight: 600;
  color: var(--rs-green);
}

a[href*="rentsignal.de/"]:hover {
  color: var(--rs-green-hover);
}

/* ── Footer — dark teal ── */
.nav-footer {
  background-color: var(--rs-teal);
  color: var(--rs-fg-light);
  border-top: none;
  font-size: 0.82rem;
}

/* ── Sidebar (TOC + categories) ── */
.sidebar nav[role="doc-toc"] .active {
  border-left-color: var(--rs-green);
  color: var(--rs-green);
}

.sidebar .quarto-category {
  color: var(--rs-fg-muted);
  font-size: 0.85rem;
}

/* ── Math blocks ── */
.math.display {
  font-size: 1.05em;
  padding: 16px 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  body { font-size: 0.9rem; }
  h1 { font-size: 1.5rem; }
  table { font-size: 0.82rem; }
}
