/* ══════════════════════════════════════
   BLOG PLAIN — EDITORIAL STYLE
   Mobile-first, scoped to article area
   ══════════════════════════════════════ */

:root {
  --bp-bg: #FBFBF9;
  --bp-text: #1a1a1a;
  --bp-text-sub: #4a4a4a;
  --bp-text-muted: #999;
  --bp-accent-line: #0171e4;
  --bp-border: #E0E0DC;
  --bp-border-light: #EEEEEA;
  --bp-ff-display: 'Lora', Georgia, serif;
  --bp-ff-body: 'Lora', Georgia, serif;
  --bp-ff-ui: 'Source Sans 3', -apple-system, sans-serif;
  --bp-content-w: 740px;
  --bp-content-wide: 1000px;
}

/* ── Background for the page ── */
.bp-page {
  background: var(--bp-bg);
}

/* ── Progress bar ── */
.bp-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1100;
}
.bp-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--bp-accent-line);
  transition: width 80ms linear;
}

/* ── Breadcrumbs ── */
.bp-crumbs {
  max-width: var(--bp-content-wide);
  margin: 0 auto;
  padding: 16px 20px 0;
  font-family: var(--bp-ff-ui);
  font-size: 0.72rem;
  color: var(--bp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bp-crumbs a {
  color: var(--bp-text-muted);
  text-decoration: none;
}
.bp-crumbs a:hover {
  color: var(--bp-accent-line);
}
.bp-crumbs .bp-sep {
  margin: 0 4px;
  opacity: 0.4;
}

/* ── Article container ── */
.bp-article {
  max-width: var(--bp-content-w);
  margin: 0 auto;
  padding: 0 20px 64px;
  font-family: var(--bp-ff-body);
  color: var(--bp-text);
  line-height: 1.75;
}

/* ── Hero ── */
.bp-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--bp-border);
  margin-bottom: 36px;
}
.bp-hero-category {
  font-family: var(--bp-ff-ui);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bp-accent-line);
  margin-bottom: 16px;
  display: inline-block;
}
.bp-hero h1 {
  font-family: var(--bp-ff-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bp-text);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.bp-hero-meta {
  font-family: var(--bp-ff-ui);
  font-size: 0.78rem;
  color: var(--bp-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bp-hero-meta .bp-meta-sep {
  opacity: 0.3;
}

/* Accent rule */
.bp-hero::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--bp-accent-line);
  margin-top: 28px;
}

/* ── Article body typography ── */
.bp-body {
  font-family: var(--bp-ff-body);
}

.bp-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.6em;
  color: var(--bp-text);
}

.bp-body h1 {
  font-family: var(--bp-ff-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 2.5em 0 0.7em;
  color: var(--bp-text);
}

.bp-body h2 {
  font-family: var(--bp-ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 2.8em 0 0.7em;
  color: var(--bp-text);
}

.bp-body h3 {
  font-family: var(--bp-ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 2.2em 0 0.5em;
  color: var(--bp-text);
}

.bp-body strong { font-weight: 700; }
.bp-body em { font-style: italic; }

.bp-body a {
  color: var(--bp-accent-line);
  text-decoration: underline;
  text-decoration-color: rgba(1, 113, 228, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.bp-body a:hover {
  text-decoration-color: var(--bp-accent-line);
}

.bp-body ul, .bp-body ol {
  margin: 0 0 1.6em;
  padding-left: 1.3em;
}
.bp-body li {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 0.5em;
}
.bp-body li::marker {
  color: var(--bp-text-muted);
}

.bp-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2.5em auto;
}

.bp-body .caption,
.bp-body .wp-caption-text {
  text-align: center;
  font-family: var(--bp-ff-ui);
  font-size: 0.75rem;
  color: var(--bp-text-muted);
  margin: -1.5em 0 2.5em;
  font-style: italic;
}

.bp-body hr {
  border: none;
  text-align: center;
  margin: 3em 0;
}
.bp-body hr::after {
  content: '• • •';
  color: var(--bp-border);
  font-size: 0.9rem;
  letter-spacing: 0.5em;
}

.bp-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
.bp-body table td,
.bp-body table th {
  padding: 8px 12px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--bp-border-light);
  text-align: left;
}

/* ── Drop cap ── */
.bp-body > p:first-child::first-letter {
  font-family: var(--bp-ff-display);
  font-size: 3.6em;
  float: left;
  line-height: 0.8;
  margin: 0.05em 0.1em 0 0;
  color: var(--bp-accent-line);
  font-weight: 700;
}

/* ── Read next (rows with badges) ── */
.bp-read-next {
  max-width: var(--bp-content-w);
  margin: 0 auto;
  padding: 48px 20px 64px;
  border-top: 1px solid var(--bp-border);
}
.bp-read-next-title {
  font-family: var(--bp-ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bp-text);
  margin-bottom: 20px;
  text-align: center;
}
.bp-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--bp-border-light);
  text-decoration: none;
  transition: padding-left 0.2s;
}
.bp-row:first-of-type {
  border-top: 1px solid var(--bp-border-light);
}
.bp-row:last-of-type {
  border-bottom: none;
}
.bp-row:hover {
  padding-left: 8px;
}
.bp-row:hover .bp-row-title {
  color: var(--bp-accent-line);
}
.bp-row.is-featured {
  background: rgba(1,113,228,0.04);
  border-radius: 8px;
  padding: 18px 16px;
  margin: 0 -16px;
}
.bp-row.is-featured:hover {
  padding-left: 22px;
}
.bp-row-content {
  flex: 1;
  min-width: 0;
}
.bp-row-title {
  font-family: var(--bp-ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bp-text);
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.bp-row-excerpt {
  font-family: var(--bp-ff-ui);
  font-size: 0.82rem;
  color: var(--bp-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bp-row-badge {
  font-family: var(--bp-ff-ui);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 2px;
}
.bp-badge-featured {
  background: rgba(1,113,228,0.07);
  color: var(--bp-accent-line);
}
.bp-badge-popular {
  background: var(--bp-border-light);
  color: var(--bp-text-sub);
}

/* ── Responsive ── */

/* Tablet */
@media (min-width: 600px) {
  .bp-article { font-size: 17px; }
  .bp-hero h1 { font-size: 2.5rem; }
  .bp-hero { padding: 48px 0 36px; }
  .bp-body > p:first-child::first-letter { font-size: 4em; }
}

/* Desktop */
@media (min-width: 960px) {
  .bp-article { font-size: 18px; }
  .bp-hero { padding: 64px 0 40px; margin-bottom: 44px; }
  .bp-hero h1 { font-size: 2.8rem; line-height: 1.18; }
  .bp-body p, .bp-body li { font-size: 1.1rem; }
  .bp-body h2 { font-size: 1.6rem; }
  .bp-body h3 { font-size: 1.2rem; }
  .bp-read-next { padding: 56px 20px 72px; }
  .bp-read-next-title { font-size: 1.6rem; margin-bottom: 24px; }
  .bp-row-title { font-size: 1.1rem; }
}

/* Large desktop */
@media (min-width: 1280px) {
  .bp-hero h1 { font-size: 3rem; }
}

/* Mobile small */
@media (max-width: 500px) {
  .bp-row { flex-wrap: wrap; gap: 6px; }
  .bp-row-badge { order: -1; }
}

@media (max-width: 380px) {
  .bp-hero h1 { font-size: 1.7rem; }
}

/* Print */
@media print {
  .bp-progress, .bp-crumbs, .bp-read-next { display: none; }
  .bp-article { max-width: 100%; padding: 0; }
  .bp-body > p:first-child::first-letter { float: none; font-size: 1em; color: inherit; margin: 0; }
}