/* ============================================================
   PostKeno Blog — Shared Design System
   blog-common.css
   ============================================================ */

/* ------------------------------------------------------------
   1. RESET
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------------
   2. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --cream: #1A1A1A;
  --steel: #6B6B6B;
  --blue: #C4826D;
  --orange: #C4826D;
  --orange-dark: #A8604B;
  --bg: #FDFBF7;
  --bg2: #F7F4F0;
  --bg3: #FFFFFF;
  --border: #E8E4DF;
  --muted: #9A9A9A;
  --success: #16A34A;
  --danger: #DC2626;

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Radius */
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-cta: 0 8px 24px rgba(196, 130, 109, 0.25);

  /* Layout */
  --content-width: 760px;
  --wide-width: 1120px;
  --nav-height: 68px;
}

/* ------------------------------------------------------------
   3. BASE TYPOGRAPHY
   ------------------------------------------------------------ */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--cream);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------
   4. NAVIGATION BAR
   ------------------------------------------------------------ */
.blog-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: var(--nav-height);
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

/* Logo */
.blog-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.blog-nav__logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.blog-nav__logo-text {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--cream);
}

.blog-nav__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Language switcher */
.blog-nav__langs {
  display: flex;
  gap: 4px;
  align-items: center;
}

.blog-nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}

.blog-nav__lang:hover,
.blog-nav__lang--active {
  background: var(--orange);
  color: #FFFFFF;
  border-color: var(--orange);
}

.blog-nav__lang-flag {
  font-size: 13px;
  line-height: 1;
}

/* CTA Button */
.blog-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  background: var(--orange);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-nav__cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
}

/* ------------------------------------------------------------
   5. BREADCRUMBS
   ------------------------------------------------------------ */
.breadcrumbs {
  padding: 16px 0 0;
  margin-bottom: 32px;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: '/';
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs__link {
  font-size: 13px;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.breadcrumbs__link:hover {
  color: var(--orange);
}

.breadcrumbs__current {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* ------------------------------------------------------------
   6. ARTICLE HEADER
   ------------------------------------------------------------ */
.article-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.article-header__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 20px;
}

.article-header__excerpt {
  font-size: 18px;
  color: var(--steel);
  line-height: 1.75;
  font-weight: 400;
  max-width: 640px;
  margin-bottom: 28px;
}

.article-header__info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.article-header__info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Date */
.article-header__date {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Read time */
.article-header__read-time {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ------------------------------------------------------------
   7. CATEGORY BADGES
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

/* Workflow — blue */
.badge--workflow {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Comparison / Porownanie — orange */
.badge--comparison,
.badge--porownanie {
  background: rgba(196, 130, 109, 0.10);
  color: var(--orange-dark);
  border: 1px solid rgba(196, 130, 109, 0.20);
}

/* Feature / Funkcje — purple */
.badge--feature,
.badge--funkcje {
  background: rgba(124, 58, 237, 0.08);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

/* Guide / Przewodnik — green */
.badge--guide,
.badge--przewodnik {
  background: rgba(22, 163, 74, 0.08);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.15);
}

/* Tips / Porady — teal */
.badge--tips,
.badge--porady {
  background: rgba(13, 148, 136, 0.08);
  color: #0D9488;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

/* ------------------------------------------------------------
   8. ARTICLE BODY
   ------------------------------------------------------------ */
.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--steel);
}

.article-body h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--cream);
  margin-top: 56px;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 700;
  color: var(--cream);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article-body h4 {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--cream);
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-body p {
  margin-bottom: 20px;
  color: var(--steel);
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body strong {
  color: var(--cream);
  font-weight: 600;
}

.article-body em {
  font-style: italic;
}

.article-body a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.article-body a:hover {
  color: var(--orange-dark);
}

/* Lists */
.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body ul li,
.article-body ol li {
  color: var(--steel);
  line-height: 1.75;
  padding-left: 4px;
}

.article-body ul {
  list-style: none;
  padding-left: 0;
}

.article-body ul li {
  position: relative;
  padding-left: 20px;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.article-body ol {
  list-style: decimal;
  padding-left: 20px;
}

.article-body ol li::marker {
  color: var(--orange);
  font-weight: 700;
}

/* Blockquote */
.article-body blockquote {
  margin: 32px 0;
  padding: 20px 24px 20px 28px;
  border-left: 3px solid var(--orange);
  background: rgba(196, 130, 109, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body blockquote p {
  font-size: 17px;
  color: var(--cream);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0;
}

.article-body blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

/* Inline code */
.article-body code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 13.5px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--orange-dark);
}

/* Code block */
.article-body pre {
  background: #1A1A1A;
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: #E8D5C4;
  font-size: 13.5px;
  line-height: 1.7;
}

/* Horizontal rule */
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Images */
.article-body figure {
  margin: 32px 0;
}

.article-body figure img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: 100%;
}

.article-body figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}

/* Tables in article body */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-body table th {
  background: var(--bg2);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--cream);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.article-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--steel);
  vertical-align: middle;
}

.article-body table tr:last-child td {
  border-bottom: none;
}

.article-body table tr:nth-child(even) td {
  background: rgba(247, 244, 240, 0.5);
}

/* ------------------------------------------------------------
   9. COMPARISON TABLES
   ------------------------------------------------------------ */
.comparison-table-wrap {
  margin: 36px 0 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Sticky header wrapper */
.comparison-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table thead {
  position: sticky;
  top: var(--nav-height);
  z-index: 10;
}

.comparison-table thead th {
  background: var(--bg3);
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--cream);
  border-bottom: 2px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.comparison-table thead th:not(:first-child) {
  text-align: center;
  min-width: 120px;
}

/* PostKeno column highlight */
.comparison-table thead th.col-postkeno {
  background: rgba(196, 130, 109, 0.06);
  color: var(--orange-dark);
}

.comparison-table tbody td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--steel);
  vertical-align: middle;
}

.comparison-table tbody td:not(:first-child) {
  text-align: center;
}

.comparison-table tbody td.col-postkeno {
  background: rgba(196, 130, 109, 0.03);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:nth-child(odd) td:first-child,
.comparison-table tbody tr:nth-child(even) td:first-child {
  font-weight: 500;
  color: var(--cream);
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(247, 244, 240, 0.4);
}

.comparison-table tbody tr:hover td {
  background: rgba(196, 130, 109, 0.03);
}

/* Check and X marks */
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.10);
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.partial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.10);
  color: #B45309;
  font-size: 13px;
  font-weight: 800;
}

/* Table category label row */
.comparison-table .table-section-row td {
  background: var(--bg2);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 8px 20px;
  border-bottom: 1px solid var(--border);
}

/* ------------------------------------------------------------
   10. CTA BLOCKS
   ------------------------------------------------------------ */

/* Mid-article CTA */
.cta-block {
  margin: 44px 0;
  padding: 32px 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(196, 130, 109, 0.07) 0%, rgba(196, 130, 109, 0.03) 100%);
  border: 1px solid rgba(196, 130, 109, 0.20);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(196, 130, 109, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-block__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-block__title {
  font-family: var(--font-heading);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.cta-block__text {
  font-size: 15px;
  color: var(--steel);
  line-height: 1.7;
  margin-bottom: 20px;
}

.cta-block__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-block__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-lg);
  background: var(--orange);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.cta-block__btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
}

.cta-block__btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--border);
}

.cta-block__btn--outline:hover {
  border-color: var(--orange);
  background: rgba(196, 130, 109, 0.05);
  box-shadow: none;
  transform: none;
}

.cta-block__note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* End-of-article CTA (larger, full prominence) */
.cta-block--end {
  padding: 48px 44px;
  text-align: center;
  background: linear-gradient(135deg, rgba(196, 130, 109, 0.09) 0%, rgba(168, 96, 75, 0.05) 100%);
  border: 1.5px solid rgba(196, 130, 109, 0.22);
}

.cta-block--end::before {
  top: -80px;
  right: 50%;
  transform: translateX(50%);
  width: 300px;
  height: 300px;
}

.cta-block--end .cta-block__title {
  font-size: clamp(22px, 4vw, 32px);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
}

.cta-block--end .cta-block__text {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.cta-block--end .cta-block__actions {
  justify-content: center;
}

/* ------------------------------------------------------------
   11. RELATED ARTICLES GRID
   ------------------------------------------------------------ */
.related-articles {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-articles__heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  border-color: rgba(196, 130, 109, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.35;
  letter-spacing: -0.02em;
  flex-grow: 1;
}

.article-card:hover .article-card__title {
  color: var(--orange-dark);
}

.article-card__excerpt {
  font-size: 13.5px;
  color: var(--steel);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.article-card__arrow {
  color: var(--orange);
  font-size: 16px;
  transition: transform 0.2s;
}

.article-card:hover .article-card__arrow {
  transform: translateX(4px);
}

/* ------------------------------------------------------------
   12. BLOG INDEX PAGE
   ------------------------------------------------------------ */
.blog-index {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 60px 24px 96px;
}

.blog-index__header {
  text-align: center;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.blog-index__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(196, 130, 109, 0.08);
  border: 1px solid rgba(196, 130, 109, 0.18);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.blog-index__title {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: 18px;
  color: var(--cream);
}

.blog-index__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--steel);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* Category filter tabs */
.blog-index__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--steel);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.filter-btn:hover,
.filter-btn--active {
  border-color: var(--orange);
  background: rgba(196, 130, 109, 0.06);
  color: var(--orange-dark);
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Featured first card */
.blog-grid__card--featured {
  grid-column: span 2;
}

.blog-grid__card--featured .article-card {
  flex-direction: row;
  gap: 28px;
  align-items: flex-start;
  padding: 32px;
}

.blog-grid__card--featured .article-card__content {
  flex: 1;
}

.blog-grid__card--featured .article-card__title {
  font-size: 22px;
  line-height: 1.25;
}

.blog-grid__card--featured .article-card__excerpt {
  -webkit-line-clamp: 4;
}

/* Index card details */
.article-card__number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  transition: color 0.2s;
  user-select: none;
}

.article-card:hover .article-card__number {
  color: rgba(196, 130, 109, 0.15);
}

/* ------------------------------------------------------------
   13. LAYOUT WRAPPERS
   ------------------------------------------------------------ */
.blog-page-wrap {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

.blog-article-main {
  min-width: 0;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Sticky sidebar */
.blog-article-sidebar {
  padding-top: 40px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

/* Table of contents */
.toc {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.toc__title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc__item a {
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--steel);
  font-weight: 500;
  transition: all 0.2s;
  line-height: 1.5;
  text-decoration: none;
}

.toc__item a:hover,
.toc__item--active a {
  background: rgba(196, 130, 109, 0.07);
  color: var(--orange-dark);
}

.toc__item--sub a {
  padding-left: 22px;
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------ */
.blog-footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  background: var(--bg3);
}

.blog-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wide-width);
  margin: 0 auto;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.blog-footer__brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.blog-footer__brand-text {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--cream);
}

.blog-footer__copy {
  font-size: 13px;
  color: var(--muted);
}

.blog-footer__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-footer__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--steel);
  text-decoration: none;
  transition: all 0.2s;
}

.blog-footer__link:hover {
  color: var(--orange);
  background: rgba(196, 130, 109, 0.06);
}

.blog-footer__sep {
  color: var(--border);
  font-size: 12px;
}

/* ------------------------------------------------------------
   15. UTILITIES
   ------------------------------------------------------------ */
.text-orange { color: var(--orange); }
.text-muted { color: var(--muted); }
.text-steel { color: var(--steel); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* Progress bar (reading indicator) */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  z-index: 300;
  transition: width 0.1s linear;
  width: 0%;
}

/* Highlight box */
.highlight-box {
  background: rgba(196, 130, 109, 0.06);
  border: 1px solid rgba(196, 130, 109, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box p {
  margin-bottom: 0;
  color: var(--cream);
}

/* Tip / Note boxes */
.note-box {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.7;
}

.note-box--tip {
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.15);
  color: var(--success);
}

.note-box--info {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: #2563EB;
}

.note-box--warning {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.20);
  color: #B45309;
}

.note-box__icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.note-box__content {
  color: var(--cream);
}

.note-box__content p {
  color: var(--cream);
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   16. RESPONSIVE — MOBILE FIRST
   ------------------------------------------------------------ */

/* Tablet: 768px */
@media (max-width: 768px) {
  /* Nav */
  .blog-nav {
    padding: 0 16px;
    gap: 8px;
  }

  .blog-nav__label {
    display: none;
  }

  .blog-nav__langs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 3px;
  }

  .blog-nav__langs::-webkit-scrollbar {
    display: none;
  }

  .blog-nav__lang {
    padding: 4px 8px;
    font-size: 10px;
    flex-shrink: 0;
  }

  .blog-nav__lang-flag {
    display: none;
  }

  .blog-nav__cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Article layout — single column */
  .blog-article-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 16px;
  }

  .blog-article-sidebar {
    display: none;
  }

  .blog-article-main {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  /* Breadcrumbs */
  .breadcrumbs__current {
    max-width: 180px;
  }

  /* Article header */
  .article-header__title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .article-header__excerpt {
    font-size: 16px;
  }

  /* Blog index */
  .blog-index {
    padding: 40px 16px 72px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-grid__card--featured {
    grid-column: span 1;
  }

  .blog-grid__card--featured .article-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .blog-grid__card--featured .article-card__title {
    font-size: 18px;
  }

  /* Related articles */
  .related-articles__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* CTA blocks */
  .cta-block {
    padding: 24px 20px;
  }

  .cta-block--end {
    padding: 36px 24px;
  }

  /* Footer */
  .blog-footer {
    padding: 24px 16px;
  }

  .blog-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Comparison table */
  .comparison-table-wrap {
    border-radius: var(--radius-lg);
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 10px 12px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .related-articles__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mid range: 769px–1023px */
@media (min-width: 769px) and (max-width: 1023px) {
  .blog-article-layout {
    grid-template-columns: 1fr;
  }

  .blog-article-sidebar {
    display: none;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .blog-grid__card--featured {
    grid-column: span 2;
  }

  .related-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------
   17. PRINT STYLES
   ------------------------------------------------------------ */
@media print {
  .blog-nav,
  .blog-article-sidebar,
  .cta-block,
  .related-articles,
  .blog-footer,
  .reading-progress {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 12pt;
    line-height: 1.6;
  }

  .blog-article-layout {
    grid-template-columns: 1fr;
  }

  .blog-article-main {
    padding: 0;
  }

  .article-header__title {
    font-size: 24pt;
  }

  .article-body a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  .comparison-table-wrap {
    overflow: visible;
  }

  .comparison-table {
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  p, li {
    orphans: 3;
    widows: 3;
  }
}
