/* ==========================================================================
   RAMSTAT Blog Design System Stylesheet
   ========================================================================== */

:root {
  --ram-orange: #f76505;
  --ram-orange-hover: #e95a00;
  --ram-orange-light: #fff3ec;
  --ram-orange-glow: rgba(247, 101, 5, 0.18);
  --ram-black: #171411;
  --ram-gray-dark: #2c2724;
  --ram-gray-body: #5e5751;
  --ram-gray-muted: #8e8780;
  --ram-border-light: #edeae4;
  --ram-bg-main: #f6f5f2;
  --ram-bg-card: #ffffff;
  --ram-radius-sm: 12px;
  --ram-radius-md: 20px;
  --ram-radius-lg: 28px;
  --ram-radius-pill: 9999px;
  --ram-font-title: 'Onest', 'Inter', -apple-system, sans-serif;
  --ram-font-body: 'Inter', 'Onest', -apple-system, sans-serif;
}

/* Base page wrapper & sticky container fix */
body.blog-page,
html:has(body.blog-page) {
  overflow-x: clip !important;
}

.blog-page {
  background-color: var(--ram-bg-main);
  color: var(--ram-black);
  font-family: var(--ram-font-body);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background ambient glow effect matching RAMSTAT hero style */
.blog-ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  height: 680px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blog-ambient-glow::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 15%;
  width: 520px;
  height: 440px;
  background: radial-gradient(circle, rgba(247, 101, 5, 0.12) 0%, rgba(255, 140, 55, 0.04) 50%, transparent 70%);
  filter: blur(60px);
}

.blog-ambient-glow::after {
  content: '';
  position: absolute;
  top: 60px;
  right: 12%;
  width: 460px;
  height: 380px;
  background: radial-gradient(circle, rgba(247, 101, 5, 0.08) 0%, rgba(255, 190, 140, 0.03) 55%, transparent 70%);
  filter: blur(50px);
}

/* Main Container */
.blog-container {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 96px 24px 70px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.blog-hero {
  text-align: center;
  margin-bottom: 36px;
  padding: 16px 0 6px;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--ram-radius-pill);
  background: #ffffff;
  border: 1px solid rgba(247, 101, 5, 0.22);
  color: var(--ram-orange);
  font-family: var(--ram-font-title);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(247, 101, 5, 0.08);
}

.blog-badge__icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ram-orange);
  box-shadow: 0 0 8px var(--ram-orange);
  animation: blogPulse 2s infinite ease-in-out;
}

@keyframes blogPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.blog-hero__title {
  font-family: var(--ram-font-title);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.16;
  color: var(--ram-black);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.blog-hero__title-accent {
  background: linear-gradient(135deg, #f76505 0%, #ff8c37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-hero__subtitle {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ram-gray-body);
  max-width: 720px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Search & Categories Bar */
.blog-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.blog-search {
  position: relative;
  width: 100%;
  max-width: 620px;
}

.blog-search__input {
  width: 100%;
  height: 52px;
  padding: 0 54px 0 24px;
  border-radius: var(--ram-radius-pill);
  border: 2px solid var(--ram-border-light);
  background: #ffffff;
  font-family: var(--ram-font-body);
  font-size: 15px;
  color: var(--ram-black);
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.blog-search__input:focus {
  border-color: var(--ram-orange);
  box-shadow: 0 6px 24px var(--ram-orange-glow);
}

.blog-search__submit {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--ram-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.blog-search__submit:hover {
  background: var(--ram-orange-hover);
  transform: translateY(-50%) scale(1.04);
}

.blog-search__submit svg {
  width: 18px;
  height: 18px;
}

/* Category Filter Pills */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 4px;
}

.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--ram-radius-pill);
  background: #ffffff;
  border: 1px solid var(--ram-border-light);
  color: var(--ram-gray-dark);
  font-family: var(--ram-font-title);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.blog-cat-pill:hover {
  background: #fff8f3;
  border-color: #ffd9b3;
  color: var(--ram-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 101, 5, 0.08);
}

.blog-cat-pill.is-active {
  background: #1e1b18;
  border-color: #1e1b18;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(23, 20, 17, 0.16);
}

/* Мягкие пастельные цвета категорий (цветовая система уведомлений RAMSTAT) */
.blog-cat-pill[data-filter="wb"]:hover {
  background: #fdf5fb;
  border-color: #f6def1;
  color: #89287a;
}
.blog-cat-pill[data-filter="wb"].is-active {
  background: #fbf0f8;
  border-color: #f3d4ed;
  color: #89287a;
  box-shadow: 0 4px 12px rgba(137, 40, 122, 0.12);
}

.blog-cat-pill[data-filter="ozon"]:hover {
  background: #f5f9ff;
  border-color: #e2eeff;
  color: #1d4ed8;
}
.blog-cat-pill[data-filter="ozon"].is-active {
  background: #f0f6ff;
  border-color: #dbeafe;
  color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.12);
}

.blog-cat-pill[data-filter="unit"]:hover {
  background: #f7faf2;
  border-color: #dff0d5;
  color: #3f6212;
}
.blog-cat-pill[data-filter="unit"].is-active {
  background: #f3f8eb;
  border-color: #d6ebc8;
  color: #3f6212;
  box-shadow: 0 4px 12px rgba(63, 98, 18, 0.12);
}

.blog-cat-pill[data-filter="marketing"]:hover {
  background: #fdfaff;
  border-color: #f2e3fc;
  color: #6b21a8;
}
.blog-cat-pill[data-filter="marketing"].is-active {
  background: #fbf7ff;
  border-color: #edd8fc;
  color: #6b21a8;
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.12);
}

.blog-cat-pill[data-filter="ai"]:hover {
  background: #fff8f2;
  border-color: #ffe2c6;
  color: #c2410c;
}
.blog-cat-pill[data-filter="ai"].is-active {
  background: #fff4e8;
  border-color: #ffd9b3;
  color: #c2410c;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.12);
}

.blog-cat-pill[data-filter="analytics"]:hover {
  background: #f4fdf7;
  border-color: #ccf9dc;
  color: #166534;
}
.blog-cat-pill[data-filter="analytics"].is-active {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.12);
}

.blog-cat-pill[data-filter="cases"]:hover {
  background: #fffdf2;
  border-color: #fff7da;
  color: #854d0e;
}
.blog-cat-pill[data-filter="cases"].is-active {
  background: #fffbe8;
  border-color: #fff3ce;
  color: #854d0e;
  box-shadow: 0 4px 12px rgba(133, 77, 14, 0.12);
}

.blog-cat-pill[data-filter="news"]:hover {
  background: #f5fbff;
  border-color: #ccecfd;
  color: #0369a1;
}
.blog-cat-pill[data-filter="news"].is-active {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.12);
}

.blog-cat-pill--roadmap {
  background: #fff8f3;
  border-color: #ffd9b3;
  color: #c2410c;
  font-weight: 600;
}

.blog-cat-pill--roadmap:hover {
  background: #fff4e8;
  border-color: var(--ram-orange);
  color: var(--ram-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 101, 5, 0.12);
}

/* ==========================================================================
   Featured Article Card (Slim Banner with 16:9 Photo Media)
   ========================================================================== */
.featured-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  border-radius: var(--ram-radius-lg);
  background: #ffffff;
  border: 1px solid var(--ram-border-light);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 12px 32px rgba(33, 24, 18, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(247, 101, 5, 0.10), 0 8px 20px rgba(23, 20, 17, 0.04);
}

.featured-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1d1916;
  overflow: hidden;
}

.featured-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover .featured-card__img {
  transform: scale(1.04);
}

.featured-card__media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(19, 16, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  z-index: 2;
}

/* Featured Content Right Side */
.featured-card__content {
  padding: 22px 28px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--ram-radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  line-height: 1.35;
  white-space: nowrap;
}

/* WB: мягкий пастельный сиренево-ягодный оттенок */
.tag-badge--wb {
  background: #fbf0f8;
  border-color: #f3d4ed;
  color: #89287a;
}

/* Ozon: мягкий пастельный небесно-синий оттенок */
.tag-badge--ozon {
  background: #f0f6ff;
  border-color: #dbeafe;
  color: #1d4ed8;
}

/* Юнит-экономика: мягкий пастельный травяной (цвета уведомлений) */
.tag-badge--unit {
  background: #f3f8eb;
  border-color: #d6ebc8;
  color: #3f6212;
}

/* Аналитика рынка: мягкий пастельный мятный */
.tag-badge--analytics {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* Продвижение & Реклама: мягкий пастельный лавандовый */
.tag-badge--marketing {
  background: #fbf7ff;
  border-color: #edd8fc;
  color: #6b21a8;
}

/* Нейросети & AI: мягкий теплый персиковый (цвета уведомлений) */
.tag-badge--ai {
  background: #fff4e8;
  border-color: #ffd9b3;
  color: #c2410c;
}

/* Кейсы: мягкий пастельный песочный (цвета уведомлений) */
.tag-badge--cases {
  background: #fffbe8;
  border-color: #fff3ce;
  color: #854d0e;
}

/* Новости & Дайджесты: мягкий пастельный аквамарин */
.tag-badge--news {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.featured-meta__date,
.featured-meta__read {
  font-size: 12.5px;
  color: var(--ram-gray-muted);
}

.featured-meta__dot {
  color: var(--ram-border-light);
}

.featured-card__title {
  display: block;
  font-family: var(--ram-font-title);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ram-black);
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-card:hover .featured-card__title {
  color: var(--ram-orange);
}

.featured-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ram-gray-body);
  margin-bottom: 14px;
}

.featured-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--ram-border-light);
  flex-wrap: wrap;
  gap: 12px;
}

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

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ram-black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--ram-border-light);
}

.author-avatar--orange {
  background: linear-gradient(135deg, #f76505 0%, #ff8c37 100%);
}

.author-info__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ram-black);
}

.author-info__role {
  font-size: 12px;
  color: var(--ram-gray-muted);
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--ram-radius-pill);
  background: var(--ram-black);
  color: #ffffff;
  font-family: var(--ram-font-title);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
}

.btn-read svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.featured-card:hover .btn-read {
  background: var(--ram-orange);
}

.featured-card:hover .btn-read svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Blog Posts Grid
   ========================================================================== */
.blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.blog-section-title {
  font-family: var(--ram-font-title);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 800;
  color: var(--ram-black);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.post-card {
  background: #ffffff;
  border-radius: var(--ram-radius-md);
  border: 1px solid var(--ram-border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(23, 20, 17, 0.03);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(247, 101, 5, 0.09), 0 4px 14px rgba(23, 20, 17, 0.04);
  border-color: rgba(247, 101, 5, 0.35);
}

/* Card Visual Header (16:9 Photo Thumbnail) */
.post-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #1d1916;
}

.post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card__img {
  transform: scale(1.05);
}

/* Article Hero Media (16:9) for Detail View */
.article-hero-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--ram-radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  background: #1d1916;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card Body */
.post-card__body {
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.post-card__date,
.post-card__read {
  font-size: 12px;
  color: var(--ram-gray-muted);
}

.post-card__title {
  font-family: var(--ram-font-title);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ram-black);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.post-card:hover .post-card__title {
  color: var(--ram-orange);
}

.post-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ram-gray-body);
  margin-bottom: 20px;
  flex: 1;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--ram-border-light);
  font-size: 12px;
  color: var(--ram-gray-muted);
}

.post-card__author {
  font-weight: 500;
  color: var(--ram-gray-dark);
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ram-orange);
  font-weight: 600;
  transition: transform 0.2s ease;
}

.post-card:hover .post-card__link {
  transform: translateX(4px);
}

/* ==========================================================================
   Telegram Community Banner Card
   ========================================================================== */
.community-banner {
  background: radial-gradient(circle at 90% 10%, rgba(247, 101, 5, 0.25), transparent 40%),
              linear-gradient(135deg, #1d1713 0%, #171310 100%);
  border-radius: var(--ram-radius-lg);
  padding: 44px 48px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  margin-bottom: 64px;
  box-shadow: 0 20px 48px rgba(23, 20, 17, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.community-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247, 101, 5, 0.2);
  border: 1px solid rgba(247, 101, 5, 0.4);
  color: #ff9345;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--ram-radius-pill);
  margin-bottom: 16px;
}

.community-banner__title {
  font-family: var(--ram-font-title);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.community-banner__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  line-height: 1.6;
}

.community-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ram-orange);
  color: #ffffff;
  padding: 16px 32px;
  border-radius: var(--ram-radius-pill);
  font-family: var(--ram-font-title);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 10px 24px rgba(247, 101, 5, 0.35);
  white-space: nowrap;
}

.community-banner__btn:hover {
  background: #ff771a;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(247, 101, 5, 0.45);
}

.community-banner__btn svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Article Detail View Styles
   ========================================================================== */
.article-shell {
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ram-gray-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.article-breadcrumbs a {
  color: var(--ram-gray-body);
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumbs a:hover {
  color: var(--ram-orange);
}

.article-header {
  margin-bottom: 36px;
}

.article-title {
  font-family: var(--ram-font-title);
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ram-black);
  margin: 16px 0 20px;
  letter-spacing: -0.02em;
}

.article-lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--ram-gray-body);
  margin-bottom: 28px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--ram-border-light);
  border-bottom: 1px solid var(--ram-border-light);
  flex-wrap: wrap;
  gap: 16px;
}

.article-meta-bar__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.article-meta-bar__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-meta-bar__info {
  font-size: 13.5px;
  color: var(--ram-gray-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-meta-bar__dot {
  opacity: 0.5;
}

.article-meta-bar__views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-meta-bar__views svg {
  flex-shrink: 0;
  opacity: 0.65;
}

.article-meta-bar__ai-tag {
  color: #a855f7;
  font-weight: 500;
  font-size: 12.5px;
  background: rgba(168, 85, 247, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

.article-meta-bar__right {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Native RAMSTAT Share Button & Modal Dialog (Blog Detail)
   ========================================================================== */
.calc-share {
  position: relative;
  display: inline-flex;
}

.calc-share__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  padding: 0 16px;
  background: var(--ram-black);
  color: #fff;
  box-shadow: 0 4px 14px rgba(23, 20, 17, 0.16);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}

.calc-share__button svg {
  flex-shrink: 0;
  stroke: #ffffff;
}

.calc-share__button:hover {
  background: #2b2622;
  box-shadow: 0 6px 18px rgba(23, 20, 17, 0.26);
  transform: translateY(-1px);
}

.calc-share__overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: calcShareFadeIn 0.2s ease;
}

.calc-share__overlay[hidden],
.calc-share__dialog[hidden] {
  display: none !important;
}

@keyframes calcShareFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes calcShareSlideUp {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.calc-share__dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10000;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 32px 24px 26px;
  border: 1px solid rgba(255, 109, 0, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
  text-align: center;
  transform: translate(-50%, -50%);
  animation: calcShareSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.calc-share__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.calc-share__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.calc-share__badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #fff3e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-share__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
  font-family: var(--ram-font-title, "Onest", system-ui, sans-serif);
}

.calc-share__subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
  font-family: var(--ram-font-title, "Onest", system-ui, sans-serif);
}

.calc-share__social-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.calc-share__social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.calc-share__social-item:hover {
  transform: translateY(-2px);
}

.calc-share__social-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.calc-share__social-circle svg {
  width: 100%;
  height: 100%;
  display: block;
}

.calc-share__social-item:hover .calc-share__social-circle {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  filter: brightness(1.06);
}

.calc-share__social-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  letter-spacing: -0.1px;
  font-family: var(--ram-font-title, "Onest", system-ui, sans-serif);
}

.calc-share__link-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 5px 6px 5px 14px;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.calc-share__link-box:focus-within {
  border-color: #ff6d00;
  box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.12);
  background: #fff;
}

.calc-share__link-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: #334155;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  outline: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.calc-share__copy {
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff6d00 0%, #ff8c00 100%);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(255, 109, 0, 0.28);
}

.calc-share__copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(255, 109, 0, 0.38);
}

.calc-share__copy.copied {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.28);
}

.calc-share__native-btn {
  margin-top: 14px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.calc-share__native-btn:hover {
  color: #0f172a;
}

.calc-share__toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10001;
  min-width: 150px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  transform: translateX(-50%);
}

.calc-share__toast[hidden] {
  display: none !important;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
  position: relative;
  width: 100%;
}

.article-main-col {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Rich text typography & Markdown styling */
.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: #2b2623;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-body h1 {
  font-family: var(--ram-font-title);
  font-size: 32px;
  font-weight: 800;
  margin: 44px 0 18px;
  color: var(--ram-black);
  scroll-margin-top: 100px;
}

.article-body h2 {
  font-family: var(--ram-font-title);
  font-size: 26px;
  font-weight: 800;
  margin: 40px 0 16px;
  color: var(--ram-black);
  scroll-margin-top: 100px;
}

.article-body h3 {
  font-family: var(--ram-font-title);
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--ram-black);
  scroll-margin-top: 100px;
}

.article-body h4 {
  font-family: var(--ram-font-title);
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 10px;
  color: var(--ram-black);
  scroll-margin-top: 100px;
}

.article-body p {
  margin-bottom: 20px;
}

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

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

.article-body ul, 
.article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 10px;
}

/* Blockquotes */
.article-body blockquote {
  border-left: 4px solid var(--ram-orange);
  padding: 14px 22px;
  margin: 24px 0;
  background: #faf8f5;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #44403c;
  line-height: 1.6;
}

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

/* Inline Code & Code Blocks (Syntax Highlighting via Pygments) */
.article-body code:not(pre code) {
  background: #f3f1ee;
  color: #b43b00;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #e7e2d9;
}

.highlight,
.article-body pre {
  background: #191614;
  color: #f3f4f6;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(23, 20, 17, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.highlight pre {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Pygments syntax colors */
.highlight .c, .highlight .ch, .highlight .cm, .highlight .c1, .highlight .cs { color: #8892b0; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr { color: #ff9345; font-weight: 700; }
.highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx, .highlight .sr, .highlight .s1, .highlight .ss { color: #a5d6a7; }
.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .mo, .highlight .il { color: #fed7aa; }
.highlight .na, .highlight .nc, .highlight .nd, .highlight .ne, .highlight .nf, .highlight .nn { color: #60a5fa; font-weight: 600; }
.highlight .nt, .highlight .nv, .highlight .vc, .highlight .vg, .highlight .vi { color: #f472b6; }
.highlight .o, .highlight .ow { color: #fb923c; }
.highlight .nb, .highlight .bp { color: #38bdf8; }

/* Admonitions & GitHub Alerts */
.admonition,
.article-callout {
  border-radius: 14px;
  padding: 20px 24px;
  margin: 28px 0;
  border: 1px solid var(--ram-border-light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.admonition-title,
.article-callout__title {
  font-family: var(--ram-font-title);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admonition p:last-child,
.article-callout p:last-child {
  margin-bottom: 0;
}

/* Note / Info (Pastel Blue) */
.admonition.note,
.article-callout--note {
  background: #f0f6ff;
  border-color: #dbeafe;
  color: #1e3a8a;
}
.admonition.note .admonition-title,
.article-callout--note .article-callout__title {
  color: #1d4ed8;
}

/* Tip (Pastel Green) */
.admonition.tip,
.article-callout--tip {
  background: #f3f8eb;
  border-color: #d6ebc8;
  color: #166534;
}
.admonition.tip .admonition-title,
.article-callout--tip .article-callout__title {
  color: #3f6212;
}

/* Warning (Pastel Amber/Yellow) */
.admonition.warning,
.article-callout--warning {
  background: #fffbe8;
  border-color: #fef08a;
  color: #854d0e;
}
.admonition.warning .admonition-title,
.article-callout--warning .article-callout__title {
  color: #a16207;
}

/* Important (Pastel Purple/Violet) */
.admonition.important,
.article-callout--important {
  background: #fbf7ff;
  border-color: #edd8fc;
  color: #581c87;
}
.admonition.important .admonition-title,
.article-callout--important .article-callout__title {
  color: #7e22ce;
}

/* Caution / Danger (Pastel Rose/Red) */
.admonition.caution,
.admonition.danger,
.article-callout--danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.admonition.caution .admonition-title,
.admonition.danger .admonition-title,
.article-callout--danger .article-callout__title {
  color: #be123c;
}

/* Task lists (Checklists) */
.article-body .task-list-item {
  list-style-type: none;
  margin-left: -18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s ease;
}

.article-body .task-list-item:hover {
  opacity: 0.88;
}

.article-body .task-list-item input[type="checkbox"] {
  accent-color: var(--ram-orange);
  width: 17px;
  height: 17px;
  margin-top: 2px;
  cursor: pointer;
  pointer-events: auto;
}

/* Inline Strikethrough & Highlight */
.article-body del {
  color: var(--ram-gray-muted);
  text-decoration: line-through;
}

.article-body mark {
  background: #fff3cd;
  color: #212529;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Images in Markdown Content */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 24px 0;
  display: block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.article-body figure {
  margin: 28px 0;
  text-align: center;
}

.article-body figcaption {
  font-size: 13px;
  color: var(--ram-gray-muted);
  margin-top: 8px;
}

.article-body hr {
  border: 0;
  height: 1px;
  background: var(--ram-border-light);
  margin: 36px 0;
}

/* Embedded Table */
.article-table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--ram-radius-sm);
  border: 1px solid var(--ram-border-light);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.article-table th {
  background: #faf8f5;
  padding: 14px 18px;
  font-family: var(--ram-font-title);
  font-weight: 700;
  color: var(--ram-black);
  border-bottom: 2px solid var(--ram-border-light);
}

.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ram-border-light);
  color: var(--ram-gray-dark);
}

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

.article-table tr:hover td {
  background: #faf9f7;
}

/* In-article CTA Widget */
.article-cta-box {
  background: linear-gradient(135deg, #1d1815 0%, #28201b 100%);
  border-radius: var(--ram-radius-md);
  padding: 32px;
  color: #ffffff;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

.article-cta-box__title {
  font-family: var(--ram-font-title);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.article-cta-box__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

.article-cta-box__btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: var(--ram-radius-pill);
  background: var(--ram-orange);
  color: #fff;
  font-family: var(--ram-font-title);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.article-cta-box__btn:hover {
  background: #ff771a;
  transform: translateY(-2px);
}

/* ==========================================================================
   Article Footer Navigation (Back to blog & Bottom Share)
   ========================================================================== */
.article-footer-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ram-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-footer-nav__back,
.article-body .article-footer-nav__back,
.article-body a.article-footer-nav__back,
a.article-footer-nav__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #d0cbc4;
  background: transparent;
  color: #6c6660 !important;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.article-footer-nav__back span,
.article-body .article-footer-nav__back span {
  color: inherit !important;
  text-decoration: none !important;
}

.article-footer-nav__back svg,
.article-body .article-footer-nav__back svg {
  flex-shrink: 0;
  stroke: #7a736c !important;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.article-footer-nav__back:hover,
.article-body .article-footer-nav__back:hover,
.article-body a.article-footer-nav__back:hover,
a.article-footer-nav__back:hover {
  border-color: #171411;
  color: #171411 !important;
  background: rgba(23, 20, 17, 0.04);
  text-decoration: none !important;
  transform: translateX(-2px);
}

.article-footer-nav__back:hover svg,
.article-body .article-footer-nav__back:hover svg {
  stroke: #171411 !important;
  transform: translateX(-2px);
}

.article-footer-nav__share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  padding: 0 16px;
  background: var(--ram-orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(247, 101, 5, 0.25);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}

.article-footer-nav__share svg {
  flex-shrink: 0;
  stroke: #ffffff;
}

.article-footer-nav__share:hover {
  background: var(--ram-orange-hover);
  box-shadow: 0 6px 18px rgba(247, 101, 5, 0.35);
  transform: translateY(-1px);
}

.article-footer-nav__share:active {
  transform: translateY(0);
}

@media (max-width: 580px) {
  .article-footer-nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }

  .article-footer-nav__back,
  .article-footer-nav__share {
    width: 100%;
    justify-content: center;
  }
}

/* Sidebar Table of Contents (Sticky) */
.article-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  align-self: start;
  background: #ffffff;
  border: 1px solid var(--ram-border-light);
  border-radius: var(--ram-radius-md);
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
  z-index: 20;
}

.article-sidebar::-webkit-scrollbar {
  width: 4px;
}

.article-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.article-toc-title {
  font-family: var(--ram-font-title);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ram-black);
}

.article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-toc-item {
  margin-bottom: 10px;
}

.article-toc-item--level-3 {
  padding-left: 14px;
}

.article-toc-item--level-3 .article-toc-link {
  font-size: 12px;
  opacity: 0.85;
}

.article-toc-link {
  font-size: 13px;
  color: var(--ram-gray-body);
  text-decoration: none;
  display: block;
  line-height: 1.4;
  transition: color 0.18s ease, transform 0.18s ease;
}

.article-toc-link:hover {
  color: var(--ram-orange);
  transform: translateX(3px);
}

/* ==========================================================================
   Responsive Breakpoints (Macs, Laptops, Tablets, Mobile)
   ========================================================================== */

/* 1. Macs & Compact Laptops (1025px – 1440px: MacBook Air 13", MacBook Pro 14", 125%/150% Windows scaling) */
@media (max-width: 1440px) and (min-width: 1025px) {
  .blog-page .header-container {
    padding: 0 16px;
    gap: 8px;
  }

  .blog-page .logo {
    width: 110px;
    min-width: 110px;
  }

  .blog-page .header-nav {
    gap: 4px;
    justify-content: center;
  }

  .blog-page .nav-item {
    font-size: 14.5px;
    padding: 6px 8px;
    gap: 5px;
    height: 40px;
  }

  .blog-page .nav-icon,
  .blog-page .nav-icon svg {
    width: 16px;
    height: 16px;
  }

  .blog-page .header-right {
    gap: 8px;
  }

  .blog-page .btn-pro-header {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .blog-page .btn-pro-icon {
    display: block;
    width: 20px;
    height: 20px;
  }

  .blog-page .btn-pro-text {
    display: none;
  }
}

/* 2. Tablets & Small Laptops (769px – 1080px: iPads, Android tablets) */
@media (max-width: 1080px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  
  .featured-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px;
    width: 100%;
  }

  .article-main-col {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .article-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin-top: 16px;
    margin-bottom: 32px;
    padding: 20px;
    background: #faf8f5;
    border-radius: 14px;
    box-sizing: border-box;
  }

  .article-toc-title {
    margin-bottom: 10px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .blog-page .header-container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    gap: 12px;
  }

  .blog-page .header-left {
    display: flex !important;
    flex-shrink: 0;
  }

  .blog-page .logo {
    width: 100px;
    min-width: 100px;
  }

  .blog-page .header-nav {
    display: flex !important;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .blog-page .header-nav::-webkit-scrollbar {
    display: none;
  }

  .blog-page .nav-item {
    width: auto;
    height: 42px;
    padding: 0 10px;
    font-size: 0 !important;
    justify-content: center;
    border-radius: 12px;
  }

  .blog-page .nav-icon,
  .blog-page .nav-icon svg {
    width: 20px;
    height: 20px;
  }

  .blog-page .header-right {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: auto !important;
  }

  .blog-page .btn-pro-header {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
  }
}

/* 3. Mobile & Compact Tablets (≤ 768px down to 320px) */
@media (max-width: 768px) {
  .blog-page .header-container {
    padding: 0 max(4px, env(safe-area-inset-right)) 0 max(4px, env(safe-area-inset-left));
  }

  .blog-page .header-nav {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }

  .blog-page .nav-item {
    height: 48px;
  }

  .blog-page .nav-icon,
  .blog-page .nav-icon svg {
    width: 20px;
    height: 20px;
  }

  .blog-container {
    padding: 88px 16px 40px;
  }

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

  .community-banner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .featured-card__content {
    padding: 16px 14px;
  }

  .article-cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 18px;
  }
}

/* 4. Ultra-compact mobile screens (≤ 480px) */
@media (max-width: 480px) {
  .blog-hero {
    margin-bottom: 24px;
  }

  .blog-search__input {
    height: 48px;
    font-size: 14px;
    padding: 0 46px 0 18px;
  }

  .blog-search__submit {
    width: 34px;
    height: 34px;
    right: 6px;
  }

  .blog-cat-pill {
    padding: 7px 14px;
    font-size: 12.5px;
  }

  .article-title {
    font-size: clamp(22px, 6.5vw, 32px);
  }

  .article-lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .article-meta-bar__right {
    width: 100%;
  }

  .calc-share__button {
    width: 100%;
    justify-content: center;
  }

  .article-cta-box__btn,
  .community-banner__btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14.5px;
  }

  .article-footer-nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .article-footer-nav__back,
  .article-footer-nav__share {
    width: 100%;
    justify-content: center;
  }

  .article-body pre {
    padding: 14px 16px;
    font-size: 12px;
    border-radius: 10px;
  }
}

/* ==========================================================================
   Compact Service Footer for Registered Users
   ========================================================================== */
.app-compact-footer {
  background: #191512;
  color: #ffffff;
  padding: 56px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--ram-font-body);
}

.app-compact-footer__inner {
  max-width: 1360px;
  margin: 0 auto;
}

.app-compact-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-compact-footer__brand-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.app-compact-footer__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 20px;
  max-width: 320px;
  line-height: 1.5;
}

/* Split Format CTA Button ("Попробовать бесплатно" - Orange main + White arrow, compact scale) */
.app-compact-footer__cta-wrap {
  display: flex;
  align-items: center;
}

.app-compact-footer__trial-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  transition: transform 0.22s ease, filter 0.22s ease;
  width: fit-content;
}

.app-compact-footer__trial-cta:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 18px rgba(255, 132, 11, 0.28));
}

.app-compact-footer__trial-cta:active {
  transform: translateY(0);
}

.app-compact-footer__trial-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.app-compact-footer__trial-svg {
  display: block;
  height: 45px;
  width: auto;
}

.app-compact-footer__trial-bg {
  fill: #f76505;
  transition: fill 0.22s ease;
}

.app-compact-footer__trial-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 18px;
  padding-left: 10px;
  color: #ffffff;
  font-family: var(--ram-font-title);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: color 0.22s ease, text-shadow 0.22s ease;
}

.app-compact-footer__arrow-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.app-compact-footer__arrow-svg {
  display: block;
  /* Slightly smaller than main button (41px vs 45px) so it never feels bigger */
  height: 41px;
  width: auto;
}

.app-compact-footer__arrow-bg {
  fill: #ffffff;
  transition: fill 0.22s ease;
}

.app-compact-footer__arrow-lines {
  stroke: #f76505;
  stroke-width: 4.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.22s ease, transform 0.22s ease;
}

.app-compact-footer__arrow-lines line,
.app-compact-footer__arrow-lines polyline {
  stroke: #f76505;
  stroke-width: 4.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.22s ease;
}

/* Hover color swap:
   - Большая кнопка: становится белой, текст внутри - рыжим (#f76505)
   - Маленькая кнопка со стрелкой: становится рыжей (#f76505), стрелка внутри - белой (#ffffff) */
.app-compact-footer__trial-cta:hover .app-compact-footer__trial-bg {
  fill: #ffffff;
}

.app-compact-footer__trial-cta:hover .app-compact-footer__trial-label {
  color: #f76505;
  text-shadow: none;
}

.app-compact-footer__trial-cta:hover .app-compact-footer__arrow-bg {
  fill: #f76505;
}

.app-compact-footer__trial-cta:hover .app-compact-footer__arrow-lines {
  stroke: #ffffff;
  transform: translateX(6px);
}

.app-compact-footer__trial-cta:hover .app-compact-footer__arrow-lines line,
.app-compact-footer__trial-cta:hover .app-compact-footer__arrow-lines polyline {
  stroke: #ffffff;
}

.app-compact-footer__social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.app-compact-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.app-compact-footer__social a:hover {
  background: var(--ram-orange);
  transform: translateY(-2px);
}

.app-compact-footer__social img {
  width: 16px;
  height: 16px;
}

.app-compact-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.app-compact-footer__col h4 {
  font-family: var(--ram-font-title);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.app-compact-footer__col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.18s;
}

.app-compact-footer__col a:hover {
  color: var(--ram-orange);
}

.app-compact-footer__support {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.app-compact-footer__support-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 680px;
  margin: 0;
  line-height: 1.5;
}

.app-compact-footer__logo {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease;
}

.app-compact-footer__logo:hover {
  transform: translateY(-1px);
}

.app-compact-footer__logo img {
  height: 34px;
  width: auto;
  display: block;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

/* Fallback filter for black logo-ru.svg to signature brand orange #f76505 */
.app-compact-footer__logo img:not([src*="orange"]) {
  filter: invert(47%) sepia(91%) saturate(2135%) hue-rotate(360deg) brightness(102%) contrast(106%);
}

.app-compact-footer__support-logos {
  display: flex;
  align-items: center;
  gap: 28px;
}

.app-compact-footer__support-logos img {
  height: 44px;
  max-height: 46px;
  width: auto;
  object-fit: contain;
  /* Monochrome soft white matching text color */
  filter: brightness(0) invert(1) opacity(0.65);
  transition: filter 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.app-compact-footer__support-logos img:hover {
  filter: brightness(0) invert(1) opacity(0.95);
  transform: translateY(-2px);
}

/* Guest Marketing Footer Support Logos Styling */
.ramftr-block__support-logos {
  gap: 24px !important;
}

.ramftr-block__support-logo {
  /* Monochrome soft white matching footer text */
  filter: brightness(0) invert(1) opacity(0.7) !important;
  transition: opacity 0.22s ease, transform 0.22s ease !important;
}

.ramftr-block__support-logo:hover {
  opacity: 0.95 !important;
  transform: translateY(-2px);
}

.ramftr-block__support-logo--project {
  height: 42px !important;
  max-height: 44px !important;
  width: auto !important;
}

.ramftr-block__support-logo--fasie {
  height: 46px !important;
  max-height: 48px !important;
  width: auto !important;
}

.app-compact-footer__bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 860px) {
  .app-compact-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .app-compact-footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .app-compact-footer__links {
    grid-template-columns: 1fr;
  }
  .app-compact-footer__brand-head {
    justify-content: space-between;
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .app-compact-footer__trial-svg {
    height: 38px;
  }
  .app-compact-footer__arrow-svg {
    height: 34px;
  }
  .app-compact-footer__trial-label {
    font-size: 12px;
    padding-right: 14px;
  }
  .app-compact-footer__trial-cta {
    gap: 6px;
  }
}

/* ==========================================================================
   Empty State for Search & Filters
   ========================================================================== */
.blog-empty-state {
  background: #ffffff;
  border-radius: var(--ram-radius-lg);
  border: 1px solid var(--ram-border-light);
  padding: 56px 32px;
  text-align: center;
  margin: 24px auto 48px;
  max-width: 640px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.blog-empty-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.blog-empty-title {
  font-family: var(--ram-font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--ram-black);
  margin-bottom: 10px;
}

.blog-empty-text {
  font-size: 14px;
  color: var(--ram-gray-body);
  line-height: 1.6;
  margin-bottom: 20px;
}



.post-card__tool-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ram-orange);
  background: rgba(247, 101, 5, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}

.post-card__tool-hint:hover {
  background: rgba(247, 101, 5, 0.15);
  transform: translateX(2px);
}

/* ==========================================================================
   Roadmap Teaser Section in Blog
   ========================================================================== */
.blog-roadmap-teaser {
  background: #faf9f7;
  border-radius: var(--ram-radius-lg);
  border: 1px solid var(--ram-border-light);
  padding: 38px 42px;
  margin: 20px 0 48px;
  color: var(--ram-black);
  display: grid;
  grid-template-columns: 2.66fr 1fr;
  align-items: center;
  gap: 36px;
  box-shadow: 0 4px 16px rgba(23, 20, 17, 0.03), 0 1px 4px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.blog-roadmap-teaser__title {
  font-family: var(--ram-font-title);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ram-black);
  margin-bottom: 10px;
}

.blog-roadmap-teaser__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ram-gray-body);
  margin-bottom: 20px;
}

.blog-roadmap-teaser__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-self: stretch;
}

.roadmap-stat-pill {
  border-radius: 14px;
  padding: 20px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roadmap-stat-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Мягкие пастельные карточки для метрик роадмапа */
.roadmap-stat-pill:nth-child(1) {
  background: #f3f8eb;
  border: 1px solid #d6ebc8;
}

.roadmap-stat-pill:nth-child(2) {
  background: #fff4e8;
  border: 1px solid #ffd9b3;
}

.roadmap-stat-pill:nth-child(3) {
  background: #fbf7ff;
  border: 1px solid #edd8fc;
}

.roadmap-stat-pill:nth-child(4) {
  background: #f0f6ff;
  border: 1px solid #c5daf9;
}

.roadmap-stat-pill__val {
  font-family: var(--ram-font-title);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 3px;
  line-height: 1.1;
}

.roadmap-stat-pill__val--green { color: #3f6212; }
.roadmap-stat-pill__val--orange { color: #c2410c; }
.roadmap-stat-pill__val--purple { color: #6b21a8; }
.roadmap-stat-pill__val--blue { color: #1d4ed8; }

.roadmap-stat-pill__label {
  font-size: 11px;
  color: #57534e;
  font-weight: 500;
  line-height: 1.25;
}

.btn-roadmap-view,
.btn-blog-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--ram-radius-pill);
  background: transparent;
  border: 1.5px solid #c4bdb5;
  color: #6c6660;
  font-family: var(--ram-font-title);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  width: fit-content;
  box-shadow: none;
}

.btn-roadmap-view svg,
.btn-blog-view svg {
  stroke: #7a736c;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.btn-roadmap-view:hover,
.btn-blog-view:hover {
  border-color: var(--ram-black);
  color: var(--ram-black);
  background: rgba(23, 20, 17, 0.04);
  box-shadow: none;
  transform: none;
}

.btn-roadmap-view:hover svg,
.btn-blog-view:hover svg {
  stroke: var(--ram-black);
  transform: translateX(2px);
}

@media (max-width: 880px) {
  .blog-roadmap-teaser {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }
}

/* ==========================================================================
   Full Roadmap Page Styles (/roadmap/)
   ========================================================================== */
.roadmap-page {
  background-color: var(--ram-bg-main);
  color: var(--ram-black);
  font-family: var(--ram-font-body);
  position: relative;
  min-height: 100vh;
}

.roadmap-container {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: 104px 32px 80px;
}

.roadmap-container .article-breadcrumbs {
  margin-bottom: 12px;
}

.roadmap-hero {
  text-align: center;
  margin-bottom: 24px;
  padding: 10px 0 0;
}

.roadmap-hero__title {
  font-family: var(--ram-font-title);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ram-black);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.roadmap-hero__subtitle {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ram-gray-body);
  max-width: 760px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Filter Controls */
.roadmap-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}

.roadmap-status-tabs,
.roadmap-platform-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.roadmap-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--ram-radius-pill);
  background: #ffffff;
  border: 1px solid var(--ram-border-light);
  color: var(--ram-gray-dark);
  font-family: var(--ram-font-title);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.roadmap-tab-btn:hover {
  border-color: var(--ram-orange);
  color: var(--ram-orange);
  transform: translateY(-2px);
}

.roadmap-tab-btn.is-active {
  background: var(--ram-black);
  border-color: var(--ram-black);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(23, 20, 17, 0.18);
}

.roadmap-platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--ram-radius-pill);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--ram-border-light);
  color: var(--ram-gray-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.roadmap-platform-chip:hover,
.roadmap-platform-chip.is-active {
  background: #ffffff;
  border-color: var(--ram-orange);
  color: var(--ram-orange);
}

.roadmap-platform-chip.is-active {
  background: var(--ram-orange-light);
  font-weight: 600;
}

/* 3-Column Kanban / Grid */
.roadmap-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-bottom: 64px;
}

.roadmap-col {
  background: #ffffff;
  border-radius: var(--ram-radius-md);
  border: 1px solid var(--ram-border-light);
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(23, 20, 17, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.roadmap-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ram-border-light);
}

.roadmap-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ram-font-title);
  font-size: 15px;
  font-weight: 800;
  color: var(--ram-black);
}

.roadmap-col-count {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ram-bg-main);
  color: var(--ram-gray-muted);
}

.roadmap-col--done .roadmap-col-title { color: #3f6212; }
.roadmap-col--progress .roadmap-col-title { color: #c2410c; }
.roadmap-col--planned .roadmap-col-title { color: #6b21a8; }
.roadmap-col--suggestions .roadmap-col-title { color: #1d4ed8; }

.roadmap-card__badge--suggestions {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Item Card */
.roadmap-card {
  background: var(--ram-bg-main);
  border: 1px solid var(--ram-border-light);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.roadmap-card:hover {
  background: #ffffff;
  border-color: rgba(247, 101, 5, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(247, 101, 5, 0.08);
}

.roadmap-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.roadmap-card__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 4px;
}

.roadmap-card__badge--wb { background: #fdf4ff; color: #7e22ce; border: 1px solid #f3e8ff; }
.roadmap-card__badge--ozon { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; }
.roadmap-card__badge--ai { background: #fff4e8; color: #c2410c; border: 1px solid #ffd9b3; }
.roadmap-card__badge--analytics { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.roadmap-card__badge--all { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

/* Like / Dislike vote buttons */
.roadmap-card__votes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.roadmap-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--ram-border-light);
  background: transparent;
  color: var(--ram-gray-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ram-font-body);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  line-height: 1;
}

.roadmap-vote-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.roadmap-vote-btn--like:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.roadmap-vote-btn--dislike:hover {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.roadmap-vote-btn--star:hover,
.roadmap-vote-btn--star.is-selected {
  background: #fffbeb;
  border-color: #fbbf24;
  color: #b45309;
}

.roadmap-star-controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.roadmap-vote-btn--star-remove {
  padding-inline: 7px;
  color: #b45309;
}

.roadmap-vote-btn--star-remove:hover {
  background: #fff7ed;
  border-color: #fdba74;
}

.roadmap-vote-btn--like.is-selected {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.roadmap-vote-btn--dislike.is-selected {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.roadmap-vote-btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.roadmap-vote-btn__limit {
  color: inherit;
  font-size: 10px;
  font-weight: 500;
  white-space: normal;
}

.roadmap-vote-score {
  margin-left: 0;
  color: var(--ram-gray-muted);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.roadmap-card__version {
  font-size: 11px;
  font-weight: 600;
  color: var(--ram-gray-muted);
}

.roadmap-card__title {
  font-family: var(--ram-font-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ram-black);
}

.roadmap-card__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ram-gray-body);
}

.roadmap-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ram-orange);
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(247, 101, 5, 0.08);
  border-radius: 6px;
  width: fit-content;
  transition: all 0.18s ease;
  margin-top: 4px;
}

.roadmap-card__action:hover {
  background: var(--ram-orange);
  color: #ffffff;
}

.roadmap-card__action svg {
  width: 12px;
  height: 12px;
}

/* Community Suggest Banner */
.roadmap-suggest-box {
  background: linear-gradient(135deg, #1f1a16 0%, #16120f 100%);
  border-radius: var(--ram-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 40px 48px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
}

.roadmap-suggest-box__title {
  font-family: var(--ram-font-title);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.roadmap-suggest-box__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.55;
}

.roadmap-suggest-box__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--ram-radius-pill);
  background: var(--ram-orange);
  color: #ffffff;
  font-family: var(--ram-font-title);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 6px 20px rgba(247, 101, 5, 0.35);
  white-space: nowrap;
}

.roadmap-suggest-box__btn:hover {
  background: var(--ram-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(247, 101, 5, 0.45);
}

@media (max-width: 1280px) {
  .roadmap-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .roadmap-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .roadmap-suggest-box {
    padding: 32px 24px;
  }
}
