/* ==========================================================================
   Blog article pages (/blog/...) – shared design.
   Loaded only by blog-*.html, after /assets/css/shared.css.
   JS counterpart: /assets/js/blog-post.js (TOC highlight + reading progress)
   ========================================================================== */

.rn-post {
  --rn-post-navy: #0B1220;
  --rn-post-grey: #475467;
  --rn-post-blue: #1ABEF5;
  --rn-post-blue-text: #0A789F;
  --rn-post-alt: #F8FAFF;
  --rn-post-tint: #F0F9FF;
  --rn-post-line: #EAECF0;
  --rn-post-green: #10B981;
  --rn-post-col: 720px;
  --rn-post-aside: 260px;
  --rn-post-gap: 64px;
  display: block;
  padding-top: var(--rn-header-height, 80px);
}

html { scroll-padding-top: 100px; }

/* overflow-x: hidden on the wrapper would turn it into a scroll container and break position: sticky */
.rn-wrapper { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Focus ring: 3px brand blue on every article page element */
.rn-wrapper *:focus-visible { outline: 3px solid #1ABEF5; outline-offset: 2px; }

/* --- Buttons: min. 44px touch target, pill shape (colours from shared.css) --- */
.rn-wrapper .rn-btn-primary { min-height: 44px; border-radius: 100px; }

/* --- Reading progress: 3px line at the bottom edge of the fixed header --- */
.rn-post-progress {
  position: fixed; left: 0; right: 0; top: var(--rn-header-height, 80px);
  height: 3px; z-index: 1001; pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.rn-post-progress span { display: block; height: 100%; background: #1ABEF5; transform-origin: 0 50%; transform: scaleX(0); }
.rn-header.rn-header-hidden + .rn-post-progress { transform: translateY(calc(-1 * var(--rn-header-height, 80px))); }

/* --- 1. Article head --- */
.rn-post-head { background: linear-gradient(180deg, #F0F9FF 0%, #ffffff 100%); border-bottom: 1px solid #EAECF0; }
.rn-post-head-inner { max-width: calc(var(--rn-post-col) + var(--rn-post-aside) + var(--rn-post-gap) + 48px); margin: 0 auto; padding: 40px 24px 40px; }
.rn-post-head-content { max-width: var(--rn-post-col); }
.rn-post-crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: #475467; }
.rn-post-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.rn-post-crumbs li + li::before { content: '/'; color: #475467; opacity: 0.6; }
.rn-wrapper .rn-post-crumbs a { color: #475467; text-decoration: underline; text-underline-offset: 3px; }
.rn-wrapper .rn-post-crumbs a:hover { color: #0A789F; }
.rn-post-chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 100px; background: #fff; border: 1px solid rgba(26,190,245,0.3); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #0A789F; margin-bottom: 16px; }
.rn-wrapper .rn-post-title { font-size: clamp(1.875rem, 4.6vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #0B1220; max-width: 22ch; margin: 0 0 16px; }
.rn-wrapper .rn-post-teaser { font-size: 1.125rem; line-height: 1.6; color: #475467; margin: 0 0 24px; max-width: 640px; }
.rn-post-byline { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: #475467; }
.rn-wrapper .rn-post-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex-shrink: 0; }
.rn-post-byline-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 2px; }
.rn-post-byline-who { display: flex; flex-direction: column; line-height: 1.35; }
.rn-post-byline-name { font-weight: 700; color: #0B1220; }
.rn-post-byline-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rn-post-byline-meta .rn-post-sep { opacity: 0.5; }
@media (max-width: 640px) {
  .rn-post-byline { align-items: flex-start; }
  .rn-post-byline-text { flex-direction: column; }
  .rn-post-byline-meta { column-gap: 12px; }
  .rn-post-byline-meta .rn-post-sep { display: none; }
}

/* --- 2. Layout --- */
.rn-post-shell { max-width: calc(var(--rn-post-col) + var(--rn-post-aside) + var(--rn-post-gap) + 48px); margin: 0 auto; padding: 40px 24px 80px; }
.rn-post-grid { display: block; }
.rn-post-main { min-width: 0; max-width: var(--rn-post-col); }
.rn-post-aside { display: none; }
@media (min-width: 1100px) {
  .rn-post-grid { display: grid; grid-template-columns: minmax(0, var(--rn-post-col)) var(--rn-post-aside); gap: var(--rn-post-gap); align-items: start; }
  .rn-post-aside { display: block; position: sticky; top: 96px; }
  .rn-post-toc--mobile { display: none; }
}

/* TOC: mobile/tablet collapsible */
.rn-post-toc--mobile { border: 1px solid #EAECF0; border-radius: 16px; background: #fff; margin: 0 0 32px; }
.rn-post-toc--mobile summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 20px; font-weight: 700; color: #0B1220; }
.rn-post-toc--mobile summary::-webkit-details-marker { display: none; }
.rn-post-toc--mobile summary svg { flex-shrink: 0; color: #475467; transition: transform 0.2s; }
.rn-post-toc--mobile[open] summary svg { transform: rotate(180deg); }
.rn-post-toc--mobile .rn-post-toc-list { padding: 0 20px 16px; }

/* Articles with fewer than two H2 get an empty list from build-posts.mjs: no TOC then */
.rn-post-toc--mobile:has(.rn-post-toc-list:empty), .rn-post-aside nav:has(.rn-post-toc-list:empty) { display: none; }

/* TOC list (shared) */
.rn-post-toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rn-wrapper .rn-post-toc-list a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid #EAECF0; font-size: 0.9rem; line-height: 1.4; color: #475467; text-decoration: none; }
.rn-wrapper .rn-post-toc-list a:hover { color: #0A789F; }
.rn-wrapper .rn-post-toc-list a.is-active { border-left-color: #1ABEF5; color: #0A789F; font-weight: 700; }

/* TOC: desktop sidebar */
.rn-post-toc-title { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #475467; margin: 0 0 12px; }
.rn-post-aside .rn-post-toc-list { max-height: calc(100vh - 380px); overflow-y: auto; }
.rn-post-aside-cta { margin-top: 28px; background: #F0F9FF; border: 1px solid rgba(26,190,245,0.2); border-radius: 16px; padding: 20px; }
.rn-wrapper .rn-post-aside-cta p { margin: 0 0 14px; font-weight: 800; color: #0B1220; font-size: 1rem; }
.rn-post-aside-cta .rn-btn { width: 100%; padding: 0 16px; font-size: 0.9rem; }

/* --- 3. Body text --- */
.rn-post-body { font-size: 1.125rem; line-height: 1.75; color: #0B1220; }
.rn-wrapper .rn-post-body p { color: #0B1220; margin: 0 0 22px; }
.rn-wrapper .rn-post-body h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; color: #0B1220; margin: 56px 0 18px; }
.rn-wrapper .rn-post-body h3 { font-size: 1.125rem; font-weight: 700; color: #0B1220; margin: 32px 0 12px; }
.rn-post-body strong { font-weight: 700; color: #0B1220; }
.rn-wrapper .rn-post-body a:not(.rn-btn) { color: #0A789F; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rn-wrapper .rn-post-body a:not(.rn-btn):hover { color: #0B1220; }
.rn-post-body > ul:not([class]), .rn-post-body > ol:not([class]) { padding-left: 24px; margin: 0 0 22px; }
.rn-post-body > ul:not([class]) { list-style: disc; }
.rn-post-body > ul:not([class]) li, .rn-post-body > ol:not([class]) li { margin-bottom: 8px; }

/* --- 4. Building blocks --- */

/* Short answer */
.rn-post-answer { background: #F0F9FF; border: 1px solid rgba(26,190,245,0.2); border-left: 4px solid #1ABEF5; border-radius: 16px; padding: 22px 24px; margin: 0 0 32px; }
.rn-post-answer-label { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #0A789F; margin-bottom: 8px; }
.rn-wrapper .rn-post-answer p { margin: 0 0 14px; }
.rn-wrapper .rn-post-answer > :last-child { margin-bottom: 0; }
.rn-wrapper .rn-post-answer ul { margin-bottom: 14px; }

/* "Term: explanation" list */
.rn-post-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rn-post-list li { position: relative; background: #F8FAFF; border-radius: 12px; padding: 14px 18px 14px 38px; font-size: 1.0625rem; line-height: 1.6; }
.rn-post-list li::before { content: ''; position: absolute; left: 18px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: #1ABEF5; }

/* Numbered steps / tips */
.rn-post-steps { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: rn-post-step; display: flex; flex-direction: column; gap: 12px; }
.rn-post-steps li { counter-increment: rn-post-step; position: relative; background: #fff; border: 1px solid #EAECF0; border-radius: 16px; padding: 18px 20px 18px 76px; min-height: 76px; color: #475467; font-size: 1.0625rem; line-height: 1.6; }
.rn-post-steps li::before { content: counter(rn-post-step); position: absolute; left: 20px; top: 18px; width: 40px; height: 40px; border-radius: 50%; background: #F0F9FF; color: #0A789F; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rn-post-steps li strong { display: block; color: #0B1220; margin-bottom: 2px; }

/* Term definitions (2-up grid) */
.rn-post-terms { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 22px; }
@media (min-width: 640px) { .rn-post-terms { grid-template-columns: 1fr 1fr; } }
.rn-post-terms > * { background: #fff; border: 1px solid #EAECF0; border-radius: 16px; padding: 18px 20px; }

/* A vs. B */
.rn-post-vs { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 22px; }
@media (min-width: 640px) { .rn-post-vs { grid-template-columns: 1fr 1fr; } }
.rn-post-vs > * { background: #fff; border: 1px solid #EAECF0; border-radius: 16px; padding: 20px; }
.rn-post-vs > .is-recommended { background: #F0F9FF; border-color: rgba(26,190,245,0.3); }

/* Tables */
.rn-post-table-wrap { border: 1px solid #EAECF0; border-radius: 20px; overflow: hidden; margin: 8px 0 28px; }
.rn-post-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.55; }
.rn-post-table th { background: #F8FAFF; text-align: left; padding: 14px 18px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: #475467; border-bottom: 1px solid #EAECF0; }
.rn-post-table td { padding: 16px 18px; border-bottom: 1px solid #EAECF0; color: #0B1220; vertical-align: top; }
.rn-post-table tr:last-child td { border-bottom: 0; }
@media (max-width: 639px) {
  .rn-post-table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .rn-post-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rn-post-table, .rn-post-table tbody, .rn-post-table tr, .rn-post-table td { display: block; width: 100%; }
  .rn-post-table tr { border: 1px solid #EAECF0; border-radius: 16px; padding: 4px 16px; margin-bottom: 12px; background: #fff; }
  .rn-post-table td { padding: 12px 0; }
  .rn-post-table tr td:last-child { border-bottom: 0; }
  .rn-post-table td::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: #475467; margin-bottom: 4px; }
}

/* Notes */
.rn-wrapper .rn-post-note { border-left: 3px solid #EAECF0; padding: 2px 0 2px 16px; color: #475467; font-size: 1rem; margin: 0 0 22px; }

/* Interactive tools (calculators) */
.rn-post-tool { background: #fff; border: 1px solid #EAECF0; border-radius: 20px; padding: 28px; margin: 8px 0 28px; }
.rn-post-tool-inputs { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
@media (min-width: 560px) { .rn-post-tool-inputs { grid-template-columns: 1fr 1fr; } }
.rn-post-tool-field label { display: block; font-size: 0.875rem; font-weight: 700; color: #0B1220; margin-bottom: 6px; }
.rn-post-tool-field input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #EAECF0; border-radius: 12px; font: inherit; font-size: 1rem; color: #0B1220; background: #fff; }
.rn-post-tool-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; background: #F8FAFF; border-radius: 16px; padding: 12px; }
@media (min-width: 640px) { .rn-post-tool-results { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .rn-post-tool-results { grid-template-columns: repeat(5, 1fr); } }
.rn-post-tool-tile { background: #fff; border: 1px solid #EAECF0; border-radius: 12px; padding: 14px 10px; text-align: center; }
.rn-post-tool-val { font-size: 1.25rem; font-weight: 800; color: #0B1220; line-height: 1.2; margin-bottom: 4px; }
.rn-post-tool-lbl { font-size: 0.75rem; color: #475467; line-height: 1.3; }
.rn-wrapper .rn-post-tool .rn-post-note { margin: 16px 0 0; font-size: 0.875rem; }

/* Interim summary ("Was du bis hier weißt") – same look as the short answer box */
.rn-post-summary { background: #F0F9FF; border: 1px solid rgba(26,190,245,0.2); border-left: 4px solid #1ABEF5; border-radius: 16px; padding: 22px 24px; margin: 8px 0 32px; }
.rn-wrapper .rn-post-summary > p:first-child,
.rn-wrapper .rn-post-body .rn-post-summary h3,
.rn-wrapper .rn-post-body .rn-post-summary h4,
.rn-post-summary-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #0A789F; margin: 0 0 10px; display: block; line-height: 1.4; }

/* Plain checklist / question card */
.rn-post-checklist { background: #fff; border: 1px solid #EAECF0; border-radius: 16px; padding: 22px 24px; margin: 8px 0 28px; }
.rn-wrapper .rn-post-body .rn-post-checklist h4 { font-size: 1.0625rem; font-weight: 800; color: #0B1220; margin: 0 0 12px; }

/* Bullet lists inside boxes: small blue dot instead of the default bullet */
.rn-post-summary ul, .rn-post-checklist ul, .rn-post-numcard ul, .rn-post-tip ul, .rn-post-answer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rn-post-summary li, .rn-post-checklist li, .rn-post-numcard li, .rn-post-tip li, .rn-post-answer ul li { position: relative; padding-left: 20px; font-size: 1.0625rem; line-height: 1.6; color: #0B1220; }
.rn-post-summary li::before, .rn-post-checklist li::before, .rn-post-numcard li::before, .rn-post-tip li::before, .rn-post-answer ul li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: #1ABEF5; }

/* Steps whose items carry a title + paragraph */
.rn-wrapper .rn-post-steps li p { margin: 0; color: #475467; }

/* Numbered cards with explicit number (factors, metrics, errors) */
.rn-post-numcards { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 28px; }
.rn-post-numcard { position: relative; background: #fff; border: 1px solid #EAECF0; border-radius: 16px; padding: 20px 22px 20px 78px; margin: 0 0 12px; min-height: 80px; }
.rn-post-numcards > .rn-post-numcard { margin: 0; }
.rn-post-num { position: absolute; left: 22px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: #F0F9FF; color: #0A789F; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rn-post-numcard-title, .rn-post-numcard-content > strong { display: block; font-size: 1.125rem; font-weight: 700; color: #0B1220; line-height: 1.4; margin: 6px 0 8px; }
.rn-wrapper .rn-post-numcard p { color: #475467; font-size: 1.0625rem; margin: 0 0 12px; }
.rn-wrapper .rn-post-numcard p:last-child { margin-bottom: 0; }
.rn-post-numcard-section { margin-top: 12px; }
.rn-post-numcard-label, .rn-post-tip-label, .rn-post-card-label { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #0A789F; margin-bottom: 6px; }
.rn-post-tip { background: #F8FAFF; border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
@media (max-width: 480px) {
  .rn-post-numcard { padding: 72px 18px 18px; }
  .rn-post-num { left: 18px; top: 18px; }
}

/* Term / metric cards */
.rn-post-card { background: #fff; border: 1px solid #EAECF0; border-radius: 16px; padding: 20px 22px; margin: 0 0 12px; }
.rn-post-card-title { font-size: 1.125rem; font-weight: 700; color: #0B1220; line-height: 1.4; margin-bottom: 8px; }
.rn-post-card-chip { display: inline-block; background: #F0F9FF; color: #0A789F; font-size: 0.8125rem; font-weight: 700; border-radius: 100px; padding: 4px 12px; margin-bottom: 10px; }
.rn-wrapper .rn-post-card p { color: #475467; font-size: 1.0625rem; margin: 0; }

/* Key figures */
.rn-post-stats { display: grid; grid-template-columns: 1fr; gap: 10px; background: #F8FAFF; border-radius: 16px; padding: 12px; margin: 8px 0 28px; }
@media (min-width: 560px) { .rn-post-stats { grid-template-columns: repeat(3, 1fr); } }
.rn-post-stat { background: #fff; border: 1px solid #EAECF0; border-radius: 12px; padding: 16px 12px; text-align: center; }
.rn-post-stat-val { font-size: 1.5rem; font-weight: 800; color: #0B1220; line-height: 1.2; margin-bottom: 4px; }
.rn-post-stat-lbl { font-size: 0.8125rem; color: #475467; line-height: 1.4; }

/* Worked example / calculation rows */
.rn-post-calc { background: #fff; border: 1px solid #EAECF0; border-radius: 20px; padding: 24px; margin: 8px 0 28px; }
.rn-post-calc-title { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #0A789F; margin-bottom: 12px; }
.rn-post-calc ul { list-style: none; margin: 0 0 14px; padding: 0; }
.rn-post-calc-row, .rn-post-calc li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 14px; border-radius: 10px; font-size: 1rem; line-height: 1.5; color: #475467; }
.rn-post-calc-row:nth-of-type(odd), .rn-post-calc li:nth-child(odd) { background: #F8FAFF; }
.rn-post-calc-row > span:last-child, .rn-post-calc li strong { font-weight: 700; color: #0B1220; text-align: right; white-space: nowrap; }
.rn-post-calc-row.is-highlight { background: #F0F9FF; color: #0B1220; }
.rn-post-calc-row.is-success { background: #F0F9FF; color: #0B1220; border-left: 3px solid #10B981; border-radius: 0 10px 10px 0; }
.rn-post-calc-row.is-danger { background: #fff; color: #0B1220; font-weight: 700; border-top: 2px solid #0B1220; border-radius: 0; margin-top: 4px; }
.rn-wrapper .rn-post-calc p { color: #475467; font-size: 0.9375rem; margin: 0; }
@media (max-width: 480px) {
  .rn-post-calc-row, .rn-post-calc li { flex-direction: column; gap: 2px; }
  .rn-post-calc-row > span:last-child, .rn-post-calc li strong { text-align: left; white-space: normal; }
}

/* Impact badges inside tables */
.rn-post-badge { display: inline-block; border-radius: 100px; padding: 3px 10px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.rn-post-badge.is-high { background: #F0F9FF; color: #0A789F; }
.rn-post-badge.is-mid { background: #F8FAFF; color: #475467; border: 1px solid #EAECF0; }

/* Timeline */
.rn-post-timeline { margin: 8px 0 28px; }
.rn-post-timeline-item { display: flex; gap: 16px; }
.rn-post-timeline-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 14px; }
.rn-post-timeline-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #1ABEF5; margin-top: 6px; flex-shrink: 0; }
.rn-post-timeline-line { flex: 1; width: 2px; background: #EAECF0; margin: 4px 0; }
.rn-post-timeline-item:last-child .rn-post-timeline-line { display: none; }
.rn-post-timeline-content { padding-bottom: 22px; min-width: 0; }
.rn-post-timeline-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #0A789F; margin-bottom: 4px; line-height: 2; }
.rn-post-timeline-text { font-size: 1.0625rem; line-height: 1.6; color: #0B1220; }

/* FAQ accordion – same look as the homepage FAQ (.rn-faq-*); toggle in blog-post.js */
.rn-post-body .rn-faq-wrapper { margin: 8px 0 28px; border-top: 1px solid #EAECF0; }
.rn-post-body .rn-faq-item { border-bottom: 1px solid #EAECF0; }
.rn-post-body .rn-faq-summary { width: 100%; min-height: 44px; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: 0; text-align: left; font: inherit; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: #0B1220; cursor: pointer; transition: color 0.2s; }
.rn-post-body .rn-faq-summary:hover { color: #0A789F; }
.rn-post-body .rn-faq-icon { width: 28px; height: 28px; border-radius: 50%; background: #F8FAFF; color: #1ABEF5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; font-weight: 300; line-height: 1; transition: transform 0.3s, background 0.3s, color 0.3s; }
.rn-post-body .rn-faq-summary[aria-expanded="true"] .rn-faq-icon { transform: rotate(45deg); background: #1ABEF5; color: #fff; }
.rn-wrapper .rn-post-body .rn-faq-content { margin: 0; padding: 0 0 22px; font-size: 1.0625rem; line-height: 1.7; color: #475467; }
.rn-post-body .rn-faq-content[hidden] { display: none; }

/* Quotes, inline code, minor headings */
.rn-wrapper .rn-post-body blockquote { margin: 8px 0 28px; padding: 4px 0 4px 20px; border-left: 4px solid #1ABEF5; font-size: 1.25rem; line-height: 1.55; font-weight: 600; color: #0B1220; }
.rn-post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875em; background: #F8FAFF; border: 1px solid #EAECF0; border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.rn-wrapper .rn-post-body h4 { font-size: 1.0625rem; font-weight: 800; color: #0B1220; margin: 24px 0 10px; }

/* Mid-article CTA */
.rn-post-cta-mid { background: #F0F9FF; border: 1px solid rgba(26,190,245,0.2); border-radius: 16px; padding: 20px 24px; margin: 0 0 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.rn-wrapper .rn-post-cta-mid p { margin: 0; font-weight: 700; font-size: 1.0625rem; color: #0B1220; max-width: 420px; }

/* --- 5. Article end --- */
.rn-post-cta { background: #0B1220; border-radius: 20px; padding: 36px; margin: 56px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.rn-wrapper .rn-post-cta h3 { color: #fff; font-size: 1.375rem; font-weight: 800; line-height: 1.3; margin: 0 0 8px; }
.rn-wrapper .rn-post-cta p { color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.6; margin: 0; }
.rn-wrapper .rn-post-cta p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rn-wrapper .rn-post-cta p a:hover { color: #1ABEF5; }
.rn-post-cta .rn-btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .rn-post-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

.rn-post-author { display: flex; gap: 20px; align-items: flex-start; border-top: 1px solid #EAECF0; margin-top: 48px; padding-top: 32px; }
.rn-wrapper .rn-post-author img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #1ABEF5; object-fit: cover; object-position: center 15%; flex-shrink: 0; }
.rn-post-author-name { display: block; font-weight: 800; color: #0B1220; font-size: 1.0625rem; }
.rn-post-author-role { display: block; font-size: 0.9rem; color: #475467; margin-bottom: 8px; }
.rn-wrapper .rn-post-author p { font-size: 1rem; line-height: 1.6; color: #475467; margin: 0 0 8px; }
.rn-wrapper .rn-post-author a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: #0A789F; text-decoration: underline; text-underline-offset: 3px; }

.rn-post-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #EAECF0; }
.rn-wrapper .rn-post-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.95rem; font-weight: 700; color: #475467; }
.rn-wrapper .rn-post-nav a:hover { color: #0A789F; }

/* Related posts (markup from scripts/build-blog.mjs) */
.rn-post-related { background: #F8FAFF; border-top: 1px solid #EAECF0; padding: 64px 0; }
.rn-post-related-inner { max-width: calc(var(--rn-post-col) + var(--rn-post-aside) + var(--rn-post-gap) + 48px); margin: 0 auto; padding: 0 24px; }
.rn-wrapper .rn-post-related h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 800; color: #0B1220; margin: 0 0 24px; }
.rn-post-related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .rn-post-related-grid { grid-template-columns: repeat(3, 1fr); } }
.rn-wrapper .rn-post-rel-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #EAECF0; border-radius: 20px; padding: 24px; color: inherit; text-decoration: none; transition: border-color 0.2s; }
.rn-wrapper .rn-post-rel-card:hover { border-color: #1ABEF5; }
.rn-post-rel-cat { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #0A789F; margin-bottom: 10px; }
.rn-wrapper .rn-post-rel-title { font-size: 1.125rem; font-weight: 700; line-height: 1.35; color: #0B1220; margin: 0 0 8px; }
.rn-wrapper .rn-post-rel-teaser { font-size: 0.9375rem; line-height: 1.55; color: #475467; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rn-post-rel-meta { margin-top: auto; font-size: 0.85rem; color: #475467; }

/* --- Reduced motion: no transitions, no smooth scroll --- */
@media (prefers-reduced-motion: reduce) {
  .rn-post *, .rn-post-progress, .rn-post-progress span { transition: none !important; }
}
