/* ============================================================
   BLOG PAGE - Frontora AI V2-Pre
   Article grid with category filters
   ============================================================ */

.bl-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(16,185,129,0.1);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
}

.bl-h1 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--neutral-900);
}

.bl-h1-accent {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== HERO ===== */
.bl-hero {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(16,185,129,0.08), transparent 60%),
    var(--neutral-0);
  text-align: center;
}

.bl-hero-inner { max-width: 760px; margin: 0 auto; }

.bl-lede {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0 auto;
  max-width: 600px;
}

/* ===== FILTERS ===== */
.bl-grid-section {
  padding: clamp(40px, 5vw, 70px) 0 clamp(60px, 8vw, 100px);
  background: var(--neutral-0);
}

.bl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 40px;
  max-width: 900px;
}

.bl-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--neutral-700);
  cursor: pointer;
  transition: all 0.15s ease;
}

.bl-filter-pill:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
}

.bl-filter-pill.is-active {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px -2px rgba(16,185,129,0.4);
}

.bl-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--neutral-600);
  font-size: 10.5px;
  font-weight: 700;
}

.bl-filter-pill.is-active .bl-filter-count {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* ===== ARTICLE GRID ===== */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.bl-card {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.08);
  border-color: var(--brand-500);
}

/* Featured (first) card spans 2 columns on desktop */
.bl-card-featured {
  grid-column: span 2;
  flex-direction: row;
}

.bl-card-image {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bl-card-featured .bl-card-image {
  aspect-ratio: 1 / 1;
  width: 280px;
  height: auto;
}

.bl-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bl-card-image-placeholder {
  color: var(--neutral-400);
}

.bl-card-image-placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.5;
}

.bl-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bl-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
}

.bl-cat-pill {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(16,185,129,0.12);
  color: var(--brand-700);
  font-weight: 700;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.bl-card-time {
  color: var(--neutral-500);
  font-weight: 500;
}

.bl-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--neutral-900);
  margin: 0 0 10px;
}

.bl-card-featured .bl-card-title {
  font-size: 24px;
  margin-bottom: 14px;
}

.bl-card-excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0 0 18px;
  flex: 1;
}

.bl-card-featured .bl-card-excerpt {
  font-size: 14.5px;
}

.bl-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--neutral-200);
}

.bl-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.bl-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bl-author-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bl-author-info strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--neutral-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bl-author-info span {
  font-size: 11px;
  color: var(--neutral-500);
}

.bl-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  background: var(--neutral-100);
  color: var(--brand-700);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.bl-card-cta:hover {
  background: var(--brand-700);
  color: white;
}

.bl-card-cta svg {
  transition: transform 0.15s ease;
}

.bl-card-cta:hover svg {
  transform: translateX(2px);
}

/* Hidden by filter */
.bl-card.is-hidden {
  display: none;
}

/* Empty state */
.bl-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--neutral-600);
}

.bl-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--neutral-100);
  color: var(--neutral-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.bl-empty-icon svg { width: 32px; height: 32px; }

.bl-empty h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--neutral-900);
  margin: 0 0 8px;
}

.bl-empty p {
  font-size: 14px;
  color: var(--neutral-600);
  margin: 0;
}

/* ===== FINAL CTA ===== */
.bl-final-cta {
  background: var(--neutral-950, #0a0a0a);
  color: white;
  padding: clamp(60px, 8vw, 100px) 0;
}

.bl-final-cta .bl-eyebrow {
  background: rgba(16,185,129,0.18);
  color: var(--brand-500);
}

.bl-final-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.bl-final-h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: white;
  margin: 0 0 12px;
}

.bl-final-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 540px;
}

.bl-final-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bl-final-cta .btn-ghost-light {
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.bl-final-cta .btn-ghost-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--brand-500);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .bl-card-featured {
    grid-column: span 1;
    flex-direction: column;
  }
  .bl-card-featured .bl-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .bl-card-featured .bl-card-title {
    font-size: 20px;
  }
  .bl-final-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bl-final-actions { align-items: center; }
}

@media (max-width: 600px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-filters { gap: 6px; }
  .bl-filter-pill { font-size: 12.5px; padding: 7px 14px; }
  .bl-card-body { padding: 18px; }
  .bl-card-title { font-size: 17px; }
}

/* ============================================================
   BASH 1566 - SVG cover generation styles
   ============================================================ */

/* Image link wrapper - kills default link styles */
html .bl-card-image-link,
html .bl-card-image-link:link,
html .bl-card-image-link:visited {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

/* SVG cover sizing - fills image container */
.bl-cover-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bl-card:hover .bl-cover-svg {
  transform: scale(1.04);
}

/* Card image container needs overflow hidden for the zoom effect */
html .bl-card-image {
  overflow: hidden;
  position: relative;
}

/* Title link - inherit title color, no underline */
html .bl-card-title a,
html .bl-card-title a:link,
html .bl-card-title a:visited {
  color: var(--neutral-900);
  text-decoration: none;
  transition: color 0.15s ease;
}

html .bl-card-title a:hover {
  color: var(--brand-700);
}

/* Featured card - cover takes full image area */
.bl-card-featured .bl-cover-svg {
  height: 100%;
  width: 100%;
}

/* ============================================================
   BASH 1567 - Article page styles (reading-optimized)
   ============================================================ */

.ar-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(16,185,129,0.1);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ===== HERO with auto-cover background ===== */
.ar-hero {
  position: relative;
  padding: clamp(40px, 6vw, 70px) 0 clamp(60px, 8vw, 100px);
  color: white;
  overflow: hidden;
  isolation: isolate;
}

.ar-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.ar-hero-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ar-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

html .ar-back-link,
html .ar-back-link:link,
html .ar-back-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  margin-bottom: 22px;
  transition: color 0.15s ease, transform 0.15s ease;
}

html .ar-back-link:hover {
  color: white;
  transform: translateX(-3px);
}

.ar-hero-cat {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 999px;
  margin-bottom: 18px;
}

.ar-hero-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
  margin: 0 0 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.ar-hero-excerpt {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin: 0 0 28px;
  max-width: 720px;
  font-weight: 500;
}

.ar-hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ar-author-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ar-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-author-info {
  display: flex;
  flex-direction: column;
  color: white;
}

.ar-author-info strong {
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.ar-author-info span {
  font-size: 12.5px;
  color: rgba(255,255,255,0.78);
}

/* ===== ARTICLE BODY ===== */
.ar-body {
  background: var(--neutral-0);
  padding: clamp(50px, 7vw, 80px) 0 clamp(40px, 5vw, 60px);
}

.ar-body-grid {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

/* Share rail */
.ar-share-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 100px;
  align-self: start;
}

.ar-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 4px;
  text-align: center;
}

html .ar-share-btn,
html .ar-share-btn:link,
html .ar-share-btn:visited {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--neutral-200);
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: inherit;
  padding: 0;
}

html .ar-share-btn:hover {
  background: var(--brand-700);
  color: white;
  border-color: var(--brand-700);
  transform: translateY(-2px);
}

.ar-share-btn svg {
  width: 16px;
  height: 16px;
}

.ar-share-copy.is-copied {
  background: var(--brand-500) !important;
  color: white !important;
  border-color: var(--brand-500) !important;
}

/* ===== READING-OPTIMIZED ARTICLE CONTENT ===== */
.ar-content {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--neutral-800);
}

.ar-content > * {
  max-width: 100%;
}

.ar-content h1,
.ar-content h2,
.ar-content h3,
.ar-content h4 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--neutral-900);
  line-height: 1.25;
  margin: 1.8em 0 0.6em;
}

.ar-content h1 { font-size: 32px; margin-top: 0; }
.ar-content h2 { font-size: 26px; }
.ar-content h3 { font-size: 21px; }
.ar-content h4 { font-size: 18px; }

.ar-content p {
  margin: 0 0 1.4em;
}

.ar-content p:first-child {
  font-size: 19px;
  line-height: 1.6;
  color: var(--neutral-700);
  font-weight: 400;
}

.ar-content a,
.ar-content a:link,
.ar-content a:visited {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

.ar-content a:hover {
  color: var(--brand-500);
  text-decoration-thickness: 2px;
}

.ar-content strong {
  font-weight: 700;
  color: var(--neutral-900);
}

.ar-content ul,
.ar-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.ar-content li {
  margin-bottom: 0.5em;
}

.ar-content blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--brand-500);
  background: linear-gradient(135deg, rgba(16,185,129,0.04), rgba(16,185,129,0.01));
  border-radius: 0 12px 12px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--neutral-700);
}

.ar-content blockquote p:last-child {
  margin-bottom: 0;
}

.ar-content code {
  background: var(--neutral-100);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 14.5px;
  color: var(--brand-700);
}

.ar-content pre {
  background: var(--neutral-950);
  color: white;
  padding: 18px 22px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.4em 0;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 14px;
  line-height: 1.6;
}

.ar-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.ar-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.4em 0;
}

.ar-content hr {
  border: none;
  height: 1px;
  background: var(--neutral-200);
  margin: 2em 0;
}

.ar-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 15px;
}

.ar-content th,
.ar-content td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--neutral-200);
}

.ar-content th {
  font-weight: 700;
  color: var(--neutral-900);
  background: var(--neutral-50, #fafafa);
}

/* ===== IN-ARTICLE CTA ===== */
.ar-mid-cta {
  background: var(--neutral-100);
  padding: clamp(30px, 4vw, 50px) 0;
}

.ar-mid-cta-card {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 28px;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  box-shadow: 0 8px 20px -8px rgba(16,185,129,0.15);
  flex-wrap: wrap;
}

.ar-mid-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(16,185,129,0.4);
}

.ar-mid-cta-icon svg { width: 22px; height: 22px; }

.ar-mid-cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}

.ar-mid-cta-text strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.3;
}

.ar-mid-cta-text span {
  font-size: 13.5px;
  color: var(--neutral-600);
}

/* ===== FOOTER (author bio + tags) ===== */
.ar-footer-section {
  background: var(--neutral-0);
  padding: clamp(40px, 5vw, 70px) 0;
}

.ar-footer-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--neutral-200);
}

.ar-author-bio {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.ar-author-avatar-large {
  width: 56px;
  height: 56px;
  font-size: 22px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border: none;
  flex-shrink: 0;
}

.ar-author-bio-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ar-author-bio-info strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--neutral-900);
}

.ar-author-bio-info p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0;
}

.ar-tags {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ar-tags-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.ar-tags-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ar-tag {
  display: inline-flex;
  padding: 5px 11px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
}

/* ===== FINAL CTA ===== */
.ar-final-cta {
  background: var(--neutral-950, #0a0a0a);
  color: white;
  padding: clamp(60px, 8vw, 100px) 0;
}

.ar-final-cta .ar-eyebrow {
  background: rgba(16,185,129,0.18);
  color: var(--brand-500);
}

.ar-final-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.ar-final-h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: white;
  margin: 0 0 12px;
}

.ar-final-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 540px;
}

.ar-final-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ar-final-cta .btn-ghost-light {
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.ar-final-cta .btn-ghost-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--brand-500);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .ar-body-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ar-share-rail {
    flex-direction: row;
    position: static;
    margin-bottom: 24px;
    justify-content: center;
    align-items: center;
  }
  .ar-share-label {
    margin-bottom: 0;
    margin-right: 8px;
  }
  .ar-final-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ar-final-actions { align-items: center; }
}

@media (max-width: 600px) {
  .ar-content { font-size: 16px; }
  .ar-content h1 { font-size: 26px; }
  .ar-content h2 { font-size: 22px; }
  .ar-content h3 { font-size: 19px; }
  .ar-content p:first-child { font-size: 17px; }
  .ar-mid-cta-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .ar-mid-cta-card .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   BASH 1569 - Mobile fixes for article page + global mobile polish
   ============================================================ */

/* ===== ARTICLE SHARE RAIL - MOBILE FIX ===== */
@media (max-width: 900px) {
  .ar-share-rail {
    flex-direction: row;
    position: static;
    margin: 0 0 24px 0;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--neutral-200);
  }

  .ar-share-label {
    margin-bottom: 0;
    margin-right: 4px;
    font-size: 10.5px;
  }

  html .ar-share-btn,
  html .ar-share-btn:link,
  html .ar-share-btn:visited {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .ar-share-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 600px) {
  .ar-share-rail {
    gap: 6px;
  }

  html .ar-share-btn,
  html .ar-share-btn:link,
  html .ar-share-btn:visited {
    width: 32px;
    height: 32px;
  }

  .ar-share-btn svg {
    width: 13px;
    height: 13px;
  }

  .ar-share-label {
    font-size: 10px;
  }
}

/* ===== ARTICLE HERO MOBILE FIXES ===== */
@media (max-width: 600px) {
  .ar-hero {
    padding: 32px 0 50px;
  }

  .ar-hero-meta {
    gap: 14px;
  }

  .ar-author-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .ar-author-info strong {
    font-size: 13px;
  }

  .ar-author-info span {
    font-size: 11.5px;
  }

  .ar-back-link {
    font-size: 12px;
    margin-bottom: 18px;
  }
}

/* ===== ARTICLE BODY MOBILE FIXES ===== */
@media (max-width: 900px) {
  .ar-body {
    padding: 32px 0 24px;
  }

  .ar-body-grid {
    max-width: 100%;
    padding: 0 4px;
  }
}

@media (max-width: 600px) {
  .ar-content {
    font-size: 15.5px;
    line-height: 1.7;
  }

  .ar-content h1 { font-size: 24px; }
  .ar-content h2 { font-size: 21px; margin-top: 1.6em; }
  .ar-content h3 { font-size: 18px; }
  .ar-content h4 { font-size: 16px; }
  .ar-content p:first-child { font-size: 16.5px; }
  .ar-content blockquote {
    padding: 14px 18px;
    font-size: 16px;
  }
  .ar-content pre {
    padding: 14px 16px;
    font-size: 13px;
    border-radius: 8px;
  }
  .ar-content code {
    font-size: 13.5px;
  }
}

/* ===== ARTICLE FOOTER MOBILE FIXES ===== */
@media (max-width: 600px) {
  .ar-footer-grid {
    gap: 24px;
    padding-top: 24px;
  }

  .ar-author-bio {
    gap: 14px;
  }

  .ar-author-avatar-large {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .ar-author-bio-info strong {
    font-size: 15.5px;
  }

  .ar-author-bio-info p {
    font-size: 13.5px;
  }

  .ar-tags {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .ar-mid-cta {
    padding: 24px 0;
  }

  .ar-mid-cta-card {
    padding: 18px 20px;
    gap: 14px;
  }

  .ar-mid-cta-icon {
    width: 40px;
    height: 40px;
  }

  .ar-mid-cta-text strong {
    font-size: 14.5px;
  }

  .ar-mid-cta-text span {
    font-size: 12.5px;
  }
}

/* ===== BLOG INDEX MOBILE FIXES ===== */
@media (max-width: 600px) {
  .bl-hero {
    padding: 40px 0 28px;
  }

  .bl-h1 {
    font-size: 28px !important;
  }

  .bl-lede {
    font-size: 14px;
  }

  .bl-grid-section {
    padding: 28px 0 50px;
  }

  .bl-filters {
    margin-bottom: 24px;
    gap: 5px;
  }

  .bl-filter-pill {
    font-size: 12px;
    padding: 6px 12px;
  }

  .bl-filter-count {
    font-size: 9.5px;
    height: 16px;
    min-width: 16px;
    padding: 0 5px;
  }

  .bl-card-image {
    aspect-ratio: 16 / 10;
  }

  .bl-card-body {
    padding: 16px 18px;
  }

  .bl-card-title {
    font-size: 16.5px;
    line-height: 1.3;
  }

  .bl-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .bl-card-footer {
    padding-top: 12px;
  }

  .bl-author-avatar {
    width: 28px;
    height: 28px;
    font-size: 11.5px;
  }

  .bl-author-info strong {
    font-size: 11.5px;
  }

  .bl-author-info span {
    font-size: 10.5px;
  }

  .bl-card-cta {
    font-size: 11.5px;
    padding: 6px 11px;
  }

  .bl-card-cta svg {
    width: 12px;
    height: 12px;
  }
}
