/* ── Article outer ── */
.article_outer {
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 1;
}

/* ── Breadcrumb ── */
.article_breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--border);
}
.article_breadcrumb_list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.article_breadcrumb_item {
  display: flex;
  align-items: center;
}
.article_breadcrumb_link {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 7px;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.article_breadcrumb_link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.article_breadcrumb_sep {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.18);
  flex-shrink: 0;
  pointer-events: none;
}
.article_breadcrumb_current {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  padding: 4px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(380px, 38vw);
}
@media (max-width: 600px) {
  .article_breadcrumb_title_item,
  .article_breadcrumb_title_sep { display: none; }
  .article_breadcrumb_link,
  .article_breadcrumb_current { font-size: 1.25rem; }
}

/* ── Article header ── */
.article_header {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 0 32px;
}

.article_tags {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.article_tag {
  font-size: 1.4rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
  font-family: var(--font-sans);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  touch-action: manipulation;
}
.article_tag:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.28);
}

.article_title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.5vw, 4.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.article_meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.article_author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article_avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(255,255,255,0.35);
}
.article_author_name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}
.article_meta_sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.article_date,
.article_read_time {
  font-size: 1.4rem;
  color: var(--text-mid);
  font-weight: 500;
}

/* ── Hero image ── */
.article_hero {
  max-width: var(--container-max);
  margin: 0 auto 48px;
}
.article_hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--border);
}
.article_hero_caption {
  margin-top: 10px;
  font-size: 1.35rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* ── Article body + sidebar ── */
.article_content_row {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
}
@media (min-width: 1180px) {
  .article_content_row { justify-content: flex-start; }
}

.article_body {
  flex: 1;
  min-width: 0;
  padding: 0 0 72px;
}

.article_sidebar {
  display: none;
  flex-shrink: 0;
  width: 256px;
}
@media (min-width: 1180px) {
  .article_sidebar { display: block; }
}

.sidebar_sticky {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar_divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.sidebar_cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
}

.sidebar_posts_section,
.sidebar_categories_section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar_posts_label {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  margin-bottom: 2px;
}
.sidebar_post_card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  touch-action: manipulation;
}
.sidebar_post_card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.sidebar_post_card_img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.sidebar_post_card:hover .sidebar_post_card_img { transform: scale(1.05); }
.sidebar_post_card_body { padding: 14px 16px; }
.sidebar_post_card_title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar_post_card_meta {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sidebar_categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar_category_tag {
  font-size: 1.3rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  touch-action: manipulation;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.sidebar_category_tag:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.28);
}

.sidebar_cta_logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.sidebar_cta_logo span { color: var(--accent); }

.sidebar_cta_divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}

.sidebar_cta_headline {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.sidebar_cta_body {
  font-size: 1.3rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 18px;
}

.sidebar_cta_btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: var(--cta);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  touch-action: manipulation;
  box-shadow: 0 4px 14px var(--cta-glow);
  transition: background 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
}
.sidebar_cta_btn:hover {
  background: var(--cta-dark);
  box-shadow: 0 6px 20px var(--cta-glow);
}

.sidebar_cta_secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  touch-action: manipulation;
}
.sidebar_cta_secondary:hover { color: var(--text); }

/* ── Article body typography ── */
.article_body p {
  font-size: 1.7rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 36px;
  font-weight: 400;
}

.article_body p:first-child {
  font-size: 1.85rem;
  line-height: 1.75;
}

.article_body h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
}

.article_body h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 12px;
}

.article_body blockquote {
  margin: 36px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-bg);
  border-radius: 0 8px 8px 0;
}
.article_body blockquote p {
  font-size: 1.8rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.7;
}

.article_body code {
  font-family: 'DM Mono', monospace;
  font-size: 1.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--cta);
}

.article_body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.article_body ul, .article_body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.article_body li {
  font-size: 1.7rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.article_body ul li::marker { color: var(--accent); }
.article_body ol li::marker { color: var(--accent); font-weight: 600; }

/* ── Author bio ── */
.author_bio {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 48px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.author_bio_avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.35);
}
.author_bio_content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.article_body .author_bio_name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
  line-height: 1.3;
}
.article_body .author_bio_text {
  font-size: 1.4rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── Post footer / share ── */
.article_footer_tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article_footer_tag {
  font-size: 1.2rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.article_share_section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.share_eyebrow {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.article_share_buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share_btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
  touch-action: manipulation;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.share_btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.28);
}
.share_btn svg {
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.share_btn:hover svg { opacity: 1; }

.share_btn_copied {
  color: var(--accent) !important;
  border-color: var(--accent-border) !important;
  background: var(--accent-bg) !important;
}
.share_btn_copied svg { opacity: 1; }

/* ── Back to top ── */
.back_to_top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  touch-action: manipulation;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s, border-color 0.2s;
}
.back_to_top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back_to_top:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.36);
}

/* ── Related posts ── */
.related {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0 var(--container-pad) 48px;
  position: relative;
  z-index: 1;
}
.related_inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.related_eyebrow_wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 0 24px;
}
.related_eyebrow {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.related_eyebrow_line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(226,198,117,0.35), transparent);
}
.related_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related_card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
  transition: border-color 0.2s, transform 0.22s, box-shadow 0.22s;
}
.related_card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}
.related_card_img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.related_card:hover .related_card_img { transform: scale(1.05); }
.related_card_body { padding: 18px; flex: 1; }
.related_card_title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.related_card_meta {
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Page CTA ── */
.page_cta {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 96px var(--container-pad);
  text-align: center;
  position: relative;
  z-index: 1;
}
.page_cta_card {
  max-width: 680px;
  margin: 0 auto;
}
.page_cta_headline {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.page_cta_body {
  font-size: 1.6rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 36px;
}
.page_cta_buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.page_cta_btn_primary {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans); font-size: 1.6rem; font-weight: 600;
  padding: 14px 32px;
  background: var(--cta); color: #fff;
  border: none; border-radius: 10px; cursor: pointer;
  text-decoration: none; touch-action: manipulation;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 18px var(--cta-glow);
}
.page_cta_btn_primary:hover {
  background: var(--cta-dark);
  box-shadow: 0 6px 28px var(--cta-glow);
  transform: translateY(-1px);
}
.page_cta_btn_secondary {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans); font-size: 1.6rem; font-weight: 500;
  padding: 14px 28px;
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 10px; cursor: pointer;
  text-decoration: none; touch-action: manipulation;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.page_cta_btn_secondary:hover {
  border-color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

/* ── Reading progress bar ── */
.reading_progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--cta);
  z-index: 2000;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(91,156,246,0.5);
}

/* ── Prev/next navigation ── */
.post_nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post_nav_link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.post_nav_link:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.post_nav_link.post_nav_next { text-align: right; }
.post_nav_label {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.post_nav_link.post_nav_next .post_nav_label { justify-content: flex-end; }
.post_nav_title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ── Footer margin override for article pages ── */
.lobby_footer { margin-top: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .related_grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .post_nav { grid-template-columns: 1fr; }
  .post_nav_link.post_nav_next { text-align: left; }
  .post_nav_link.post_nav_next .post_nav_label { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .related_grid { grid-template-columns: 1fr; }
  .article_title { font-size: 2.8rem; }
  .page_cta_headline { font-size: 2.4rem; }
  .page_cta_buttons { flex-direction: column; align-items: center; }
}
