/* ================================================================
   EasyHang (eh-binance.com) — Amber/Orange Theme Stylesheet
   Brand: #7132f5 (amber), hover #5b21b6, bg #f5f3ff, border #c4b5fd
   Radius: 14px, Font: Inter + system
   Layout: Centered header, full-width article, two-column home
   ================================================================ */

/* ── Reset & Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  color: #292524;
  background: #f5f3ff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: #7132f5;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #5b21b6;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: #1c1917;
}

h1 { font-size: 2.125rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.5rem;
}

/* ── Container ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn--primary {
  background: #7132f5;
  color: #fff;
  border-color: #7132f5;
}

.btn--primary:hover {
  background: #5b21b6;
  border-color: #5b21b6;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn--outline {
  background: transparent;
  color: #7132f5;
  border-color: #7132f5;
}

.btn--outline:hover {
  background: #7132f5;
  color: #fff;
  transform: translateY(-1px);
}

.btn--white {
  background: #fff;
  color: #7132f5;
  border-color: #fff;
  font-weight: 700;
}

.btn--white:hover {
  background: #ede9fe;
  border-color: #ede9fe;
  color: #5b21b6;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 6px 16px;
  font-size: 0.8125rem;
  border-radius: 10px;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn--full {
  width: 100%;
}

/* ── Header — Centered brand + horizontal nav below ────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #c4b5fd;
  transition: box-shadow 0.3s, background 0.3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 20px rgba(217, 119, 6, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

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

.site-brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-brand__name {
  font-size: 1.375rem;
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.02em;
}

.site-brand:hover .site-brand__name {
  color: #7132f5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2378716c'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid #c4b5fd;
  border-radius: 10px;
  padding: 6px 28px 6px 10px;
  font-size: 0.8125rem;
  color: #44403c;
  cursor: pointer;
  transition: border-color 0.2s;
}

.lang-select:hover {
  border-color: #7132f5;
}

.lang-select:focus {
  outline: none;
  border-color: #7132f5;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.header-nav__link {
  padding: 6px 18px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #57534e;
  border-radius: 10px;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}

.header-nav__link:hover {
  color: #7132f5;
  background: rgba(217, 119, 6, 0.06);
}

.header-nav__link--active {
  color: #7132f5;
  font-weight: 600;
  background: rgba(217, 119, 6, 0.08);
}

.header-nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #7132f5;
  border-radius: 3px;
}

.header-cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #44403c;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #7132f5 0%, #5b21b6 50%, #4c1d95 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero__desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Home Two-Column Layout ────────────────────────────────────── */
.home-content {
  padding: 56px 0 40px;
}

.home-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* Section heading */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-head__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1917;
}

.section-head__link {
  font-size: 0.9375rem;
  color: #7132f5;
  font-weight: 500;
  transition: color 0.2s;
}

.section-head__link:hover {
  color: #5b21b6;
}

/* Feed card list (left column) */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-card {
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  padding: 20px 24px;
  transition: all 0.25s ease;
}

.feed-card:hover {
  border-color: #7132f5;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.08);
  transform: translateY(-2px);
}

.feed-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.feed-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.feed-card__title a {
  color: #1c1917;
  text-decoration: none;
}

.feed-card__title a:hover {
  color: #7132f5;
}

.feed-card__excerpt {
  color: #78716c;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: #a8a29e;
}

.feed-card__read-time {
  color: #a8a29e;
}

.feed-more {
  text-align: center;
  margin-top: 24px;
}

/* Sidebar */
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 120px;
}

.sidebar-section {
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  padding: 20px;
}

.sidebar-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c4b5fd;
}

.sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-cat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #44403c;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.sidebar-cat-card:hover {
  background: #f5f3ff;
  color: #7132f5;
}

.sidebar-cat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f5f3ff;
  color: #7132f5;
  flex-shrink: 0;
}

.sidebar-cat-card:hover .sidebar-cat-card__icon {
  background: #ede9fe;
}

.sidebar-cta {
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}

.sidebar-cta__icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.sidebar-cta__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 8px;
}

.sidebar-cta__desc {
  font-size: 0.875rem;
  color: #78716c;
  margin-bottom: 16px;
  line-height: 1.6;
}

.sidebar-cta__dl {
  margin-top: 8px;
}

/* ── FAQ Section ───────────────────────────────────────────────── */
.home-faq {
  padding: 48px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.faq-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  color: #1c1917;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
}

.faq-card:hover {
  border-color: #7132f5;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
  color: #7132f5;
  transform: translateY(-1px);
}

.faq-card__arrow {
  flex-shrink: 0;
  color: #a8a29e;
  transition: color 0.2s, transform 0.2s;
}

.faq-card:hover .faq-card__arrow {
  color: #7132f5;
  transform: translateX(3px);
}

/* ── Bottom CTA ────────────────────────────────────────────────── */
.home-cta {
  padding: 56px 0;
}

.home-cta__box {
  background: linear-gradient(135deg, #7132f5 0%, #5b21b6 100%);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-cta__box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.home-cta__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.home-cta__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.home-cta__btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── Page Wrapper (generic) ────────────────────────────────────── */
.page-wrapper {
  padding: 40px 0 60px;
  min-height: 50vh;
}

.page-header {
  margin-bottom: 32px;
}

.page-header__title {
  font-size: 2rem;
  font-weight: 800;
  color: #1c1917;
  margin-bottom: 6px;
}

.page-header__meta {
  color: #78716c;
  font-size: 0.9375rem;
}

/* ── Filter Bar ────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #c4b5fd;
}

.filter-btn {
  padding: 7px 18px;
  border: 1px solid #c4b5fd;
  border-radius: 10px;
  background: #fff;
  color: #57534e;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #7132f5;
  color: #7132f5;
}

.filter-btn--active {
  background: #7132f5;
  color: #fff;
  border-color: #7132f5;
}

.filter-btn--active:hover {
  background: #5b21b6;
  border-color: #5b21b6;
  color: #fff;
}

/* ── Post Grid (3-column cards) ────────────────────────────────── */
.post-grid {
  display: grid;
  gap: 20px;
}

.post-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.post-card {
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  padding: 22px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: #7132f5;
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.1);
  transform: translateY(-3px);
}

.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.post-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  flex-grow: 1;
}

.post-card__title a {
  color: #1c1917;
  text-decoration: none;
}

.post-card__title a:hover {
  color: #7132f5;
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: #78716c;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #a8a29e;
  margin-top: auto;
}

.post-card__read-time {
  color: #a8a29e;
}

/* ── Tag Pills ─────────────────────────────────────────────────── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ede9fe;
  color: #5b21b6;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-pill:hover {
  background: #7132f5;
  color: #fff;
}

.tag-pill--sm {
  padding: 2px 8px;
  font-size: 0.6875rem;
}

/* ── Tags Grid ─────────────────────────────────────────────────── */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tag-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s;
  text-align: center;
}

.tag-card:hover {
  border-color: #7132f5;
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.1);
  transform: translateY(-3px);
}

.tag-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f5f3ff;
  color: #7132f5;
  margin-bottom: 12px;
}

.tag-card:hover .tag-card__icon {
  background: #ede9fe;
}

.tag-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 4px;
}

.tag-card__count {
  font-size: 0.8125rem;
  color: #a8a29e;
}

/* ── Tag Page Header ───────────────────────────────────────────── */
.tag-page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #c4b5fd;
}

.tag-page-header__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1c1917;
  margin-bottom: 4px;
}

.tag-page-header__count {
  font-size: 0.9375rem;
  color: #78716c;
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8125rem;
  color: #a8a29e;
  margin-bottom: 24px;
  padding: 28px 0 0;
}

.breadcrumb a {
  color: #78716c;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #7132f5;
}

.breadcrumb__sep {
  color: #d6d3d1;
  margin: 0 4px;
}

.breadcrumb__current {
  color: #44403c;
  font-weight: 500;
}

/* ── Post Page — Full Width Centered Article ───────────────────── */
.post-page {
  padding-bottom: 60px;
}

.post-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.post-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 2px solid #c4b5fd;
}

.post-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.post-header__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1c1917;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.post-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: #78716c;
}

.post-header__meta svg {
  vertical-align: -2px;
  margin-right: 2px;
}

.post-header__sep {
  color: #d6d3d1;
}

.post-header__highlight {
  margin-top: 20px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-left: 4px solid #7132f5;
  border-radius: 0 14px 14px 0;
}

.post-header__highlight p {
  margin: 0;
  color: #44403c;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-style: italic;
}

/* ── Post Body ─────────────────────────────────────────────────── */
.post-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #292524;
}

.post-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c4b5fd;
  color: #1c1917;
}

.post-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #1c1917;
}

.post-body h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #292524;
}

.post-body p {
  margin-bottom: 18px;
}

.post-body a {
  color: #7132f5;
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 6, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.post-body a:hover {
  text-decoration-color: #7132f5;
  color: #5b21b6;
}

.post-body ul,
.post-body ol {
  margin-bottom: 18px;
  padding-left: 1.75rem;
}

.post-body li {
  margin-bottom: 6px;
}

.post-body li::marker {
  color: #7132f5;
}

.post-body blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 4px solid #7132f5;
  background: #f5f3ff;
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: #44403c;
}

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

.post-body pre {
  margin: 24px 0;
  padding: 20px;
  background: #1c1917;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-body code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.875em;
}

.post-body pre code {
  color: #ede9fe;
  background: none;
  padding: 0;
}

.post-body :not(pre) > code {
  background: #ede9fe;
  color: #4c1d95;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.85em;
}

.post-body img {
  border-radius: 14px;
  margin: 24px 0;
  border: 1px solid #c4b5fd;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9375rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #c4b5fd;
}

.post-body thead {
  background: #f5f3ff;
}

.post-body th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #1c1917;
  border-bottom: 2px solid #c4b5fd;
}

.post-body td {
  padding: 10px 16px;
  border-bottom: 1px solid #c4b5fd;
  color: #44403c;
}

.post-body tbody tr:last-child td {
  border-bottom: none;
}

.post-body tbody tr:hover {
  background: #f5f3ff;
}

.post-body hr {
  border: none;
  border-top: 2px solid #c4b5fd;
  margin: 36px 0;
}

/* Heading anchors */
.post-body h2[id],
.post-body h3[id],
.post-body h4[id] {
  scroll-margin-top: 100px;
}

.heading-anchor {
  color: #d6d3d1;
  text-decoration: none;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.post-body h2:hover .heading-anchor,
.post-body h3:hover .heading-anchor,
.post-body h4:hover .heading-anchor {
  opacity: 1;
  color: #7132f5;
}

/* ── Post Inline CTA ──────────────────────────────────────────── */
.post-inline-cta {
  margin: 40px 0;
  padding: 28px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.post-inline-cta__content {
  flex: 1;
}

.post-inline-cta__content strong {
  display: block;
  font-size: 1.125rem;
  color: #1c1917;
  margin-bottom: 6px;
}

.post-inline-cta__content p {
  color: #57534e;
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

.post-inline-cta__buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Related Posts ─────────────────────────────────────────────── */
.related-posts {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid #c4b5fd;
}

.related-posts__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1c1917;
}

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

.related-card {
  display: block;
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.related-card:hover {
  border-color: #7132f5;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.1);
  transform: translateY(-2px);
}

.related-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.related-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1c1917;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card:hover .related-card__title {
  color: #7132f5;
}

.related-card__date {
  font-size: 0.75rem;
  color: #a8a29e;
}

/* ── Footer — Compact Two-Row ──────────────────────────────────── */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 0;
  margin-top: auto;
}

.footer-row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid rgba(214, 211, 209, 0.12);
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-brand span {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.footer-brand:hover span {
  color: #fbbf24;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #a8a29e;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-lang {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.footer-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 26px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #a8a29e;
  background: rgba(214, 211, 209, 0.08);
  text-decoration: none;
  transition: all 0.2s;
}

.footer-lang a:hover,
.footer-lang a.active {
  background: #7132f5;
  color: #fff;
}

.footer-row-2 {
  padding: 16px 0;
}

.footer-risk {
  font-size: 0.75rem;
  color: #78716c;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-risk strong {
  color: #7132f5;
}

.footer-copy {
  font-size: 0.75rem;
  color: #57534e;
  margin: 0;
}

/* ── 404 Error Page ────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 80px 0;
}

.error-page__code {
  font-size: 6rem;
  font-weight: 900;
  color: #7132f5;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.7;
}

.error-page__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 12px;
}

.error-page__desc {
  font-size: 1.0625rem;
  color: #78716c;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Empty State ───────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: #a8a29e;
  font-size: 1rem;
}

/* ── Mobile Bottom Nav ─────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #c4b5fd;
  padding: 6px 0;
  padding-bottom: env(safe-area-inset-bottom, 6px);
}

.mobile-nav {
  display: none;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  font-size: 0.625rem;
  color: #78716c;
  text-decoration: none;
  transition: color 0.2s;
  flex: 1;
}

.mobile-nav__item:hover,
.mobile-nav__item--active {
  color: #7132f5;
}

.mobile-nav__item svg {
  flex-shrink: 0;
}

/* ── Sidebar Tags Cloud (for post sidebar variant) ─────────────── */
.sidebar-tags {
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  padding: 20px;
}

.sidebar-tags__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #f5f3ff;
  color: #57534e;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-tag:hover {
  background: #7132f5;
  color: #fff;
}

/* Sidebar related */
.sidebar-related {
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  padding: 20px;
}

.sidebar-related__list {
  list-style: none;
  padding: 0;
}

.sidebar-related__list li {
  padding: 10px 0;
  border-bottom: 1px solid #c4b5fd;
}

.sidebar-related__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-related__list a {
  display: block;
  color: #1c1917;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 4px;
  line-height: 1.4;
}

.sidebar-related__list a:hover {
  color: #7132f5;
}

.sidebar-related__list time {
  font-size: 0.75rem;
  color: #a8a29e;
}

/* ── Scroll to top ─────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #7132f5;
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  transition: all 0.2s;
}

.scroll-top:hover {
  background: #5b21b6;
  transform: translateY(-2px);
}

.scroll-top.visible {
  display: flex;
}

/* ── Feature Grid (home) ───────────────────────────────────────── */
.home-features {
  padding: 48px 0 16px;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: #7132f5;
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.1);
  transform: translateY(-3px);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f5f3ff;
  color: #7132f5;
  margin-bottom: 16px;
}

.feature-card:hover .feature-card__icon {
  background: #ede9fe;
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.875rem;
  color: #78716c;
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #7132f5;
  transition: gap 0.2s;
}

.feature-card:hover .feature-card__link {
  gap: 8px;
}

/* ── Utilities ─────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Selection color ───────────────────────────────────────────── */
::selection {
  background: rgba(217, 119, 6, 0.2);
  color: #1c1917;
}

::-moz-selection {
  background: rgba(217, 119, 6, 0.2);
  color: #1c1917;
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f3ff;
}

::-webkit-scrollbar-thumb {
  background: #c4b5fd;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7132f5;
}

/* ── FAQ Accordion ─────────────────────────────────────────────── */
.faq-item {
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover,
.faq-item.open {
  border-color: #7132f5;
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  color: #1c1917;
  text-align: left;
  line-height: 1.4;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: #7132f5;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer__inner {
  padding: 0 22px 18px;
  font-size: 0.9375rem;
  color: #57534e;
  line-height: 1.7;
}

/* ── Print Styles ──────────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .mobile-nav,
  .nav-overlay,
  .post-inline-cta,
  .sidebar-cta,
  .home-cta,
  .scroll-top {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .post-article {
    max-width: 100%;
  }

  .post-body a {
    text-decoration: underline;
  }

  .post-body a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.75em;
    color: #666;
  }
}

/* ── Responsive: Tablet (<=1024px) ─────────────────────────────── */
@media (max-width: 1024px) {
  .home-layout {
    grid-template-columns: 1fr 280px;
    gap: 28px;
  }

  .post-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

  .hero__title {
    font-size: 2rem;
  }

  .hero {
    padding: 60px 0 52px;
  }
}

/* ── Responsive: Large Mobile (<=768px) ────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.375rem; }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-sidebar {
    position: static;
  }

  .post-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  /* Header mobile */
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 24px 40px;
    gap: 4px;
    z-index: 999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav__link {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .header-nav__link--active::after {
    display: none;
  }

  /* Mobile: add lang & register inside nav drawer */
  .header-nav::after {
    content: '';
    display: block;
    height: 1px;
    background: #c4b5fd;
    margin: 16px 0;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__desc {
    font-size: 1rem;
  }

  .hero__btns {
    flex-direction: column;
    align-items: center;
  }

  .hero__btns .btn {
    width: 100%;
    max-width: 280px;
  }

  .post-inline-cta {
    flex-direction: column;
    text-align: center;
  }

  .post-inline-cta__buttons {
    justify-content: center;
  }

  .home-cta__box {
    padding: 40px 24px;
  }

  .home-cta__title {
    font-size: 1.5rem;
  }

  .home-cta__btns {
    flex-direction: column;
    align-items: center;
  }

  .home-cta__btns .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer-row-1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    gap: 14px;
  }

  /* Show mobile nav */
  .mobile-nav {
    display: flex;
  }

  body {
    padding-bottom: 64px;
  }

  .site-footer {
    margin-bottom: 0;
    padding-bottom: 64px;
  }

  .post-header__title {
    font-size: 1.75rem;
  }

  .page-header__title {
    font-size: 1.625rem;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8125rem;
  }
}

/* ── Responsive: Small Mobile (<=480px) ────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 1.375rem; }
  h2 { font-size: 1.25rem; }

  .container {
    padding: 0 16px;
  }

  .post-grid--3col {
    grid-template-columns: 1fr;
  }

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

  .related-posts__grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    padding: 18px;
  }

  .feed-card {
    padding: 16px 18px;
  }

  .post-header__title {
    font-size: 1.5rem;
  }

  .post-article {
    padding: 0 16px;
  }

  .post-body {
    font-size: 1rem;
  }

  .post-body h2 {
    font-size: 1.25rem;
  }

  .post-body h3 {
    font-size: 1.125rem;
  }

  .post-body pre {
    padding: 16px;
    border-radius: 10px;
    font-size: 0.8125rem;
  }

  .post-body table {
    font-size: 0.8125rem;
  }

  .post-body th,
  .post-body td {
    padding: 8px 10px;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__desc {
    font-size: 0.9375rem;
  }

  .btn--lg {
    padding: 12px 24px;
    font-size: 0.9375rem;
  }

  .home-content {
    padding: 36px 0 28px;
  }

  .home-cta__box {
    padding: 32px 20px;
    border-radius: 14px;
  }

  .home-cta__title {
    font-size: 1.375rem;
  }

  .error-page__code {
    font-size: 4rem;
  }

  .error-page__title {
    font-size: 1.375rem;
  }

  .sidebar-cta {
    padding: 20px 16px;
  }

  .tag-card {
    padding: 22px 16px;
  }

  .faq-card {
    padding: 14px 16px;
  }

  .breadcrumb {
    padding-top: 20px;
    font-size: 0.75rem;
  }
}

/* ── Dark Mode (follows system preference) ─────────────────────── */
@media (prefers-color-scheme: dark) {
  /* Intentionally left empty — amber theme looks best in light mode.
     Dark mode can be added later if needed. */
}

/* ── Focus styles for accessibility ────────────────────────────── */
:focus-visible {
  outline: 2px solid #7132f5;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #7132f5;
  outline-offset: 2px;
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content {
  animation: fadeInUp 0.6s ease-out;
}

.feed-card,
.post-card,
.tag-card,
.feature-card {
  animation: fadeInUp 0.4s ease-out both;
}

.feed-card:nth-child(1),
.post-card:nth-child(1) { animation-delay: 0.05s; }
.feed-card:nth-child(2),
.post-card:nth-child(2) { animation-delay: 0.1s; }
.feed-card:nth-child(3),
.post-card:nth-child(3) { animation-delay: 0.15s; }
.feed-card:nth-child(4),
.post-card:nth-child(4) { animation-delay: 0.2s; }
.feed-card:nth-child(5),
.post-card:nth-child(5) { animation-delay: 0.25s; }
.feed-card:nth-child(6),
.post-card:nth-child(6) { animation-delay: 0.3s; }
.feed-card:nth-child(7) { animation-delay: 0.35s; }
.feed-card:nth-child(8) { animation-delay: 0.4s; }

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Smooth transitions for interactive elements ───────────────── */
.post-card,
.feed-card,
.tag-card,
.faq-card,
.related-card,
.feature-card,
.sidebar-cat-card {
  will-change: transform;
}

/* ── Container Query Support (progressive) ─────────────────────── */
@supports (container-type: inline-size) {
  .home-feed {
    container-type: inline-size;
  }

  @container (max-width: 500px) {
    .feed-card__excerpt {
      display: none;
    }
  }
}

/* ── High-contrast mode support ────────────────────────────────── */
@media (forced-colors: active) {
  .btn--primary {
    border: 2px solid ButtonText;
  }

  .tag-pill {
    border: 1px solid ButtonText;
  }

  .post-card,
  .feed-card,
  .tag-card {
    border: 1px solid ButtonText;
  }
}

/* ── Touch device optimizations ────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  .post-card:hover,
  .feed-card:hover,
  .tag-card:hover,
  .related-card:hover,
  .feature-card:hover {
    transform: none;
    box-shadow: none;
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.97);
  }

  .post-card:active,
  .feed-card:active,
  .tag-card:active {
    transform: scale(0.98);
  }
}

/* ── Additional spacing utilities ──────────────────────────────── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ── Notice/Alert boxes in post body ───────────────────────────── */
.post-body .notice,
.post-body .alert {
  padding: 18px 22px;
  border-radius: 14px;
  margin: 24px 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.post-body .notice {
  background: #f5f3ff;
  border: 1px solid #c4b5fd;
  color: #4c1d95;
}

.post-body .notice strong {
  color: #7132f5;
}

.post-body .alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.post-body .alert strong {
  color: #dc2626;
}

/* ── Step-by-step numbered lists ───────────────────────────────── */
.post-body .steps {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

.post-body .steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 48px;
  margin-bottom: 20px;
  min-height: 36px;
  display: flex;
  align-items: flex-start;
}

.post-body .steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: #7132f5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* ── Tooltip ───────────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 6px 12px;
  background: #1c1917;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

/* ── Loading skeleton ──────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #ede9fe 25%, #c4b5fd 50%, #ede9fe 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Badge ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge--amber {
  background: #ede9fe;
  color: #7132f5;
}

.badge--green {
  background: #dcfce7;
  color: #16a34a;
}

.badge--red {
  background: #fef2f2;
  color: #dc2626;
}

/* ── Divider ───────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid #c4b5fd;
  margin: 32px 0;
}

.divider--thick {
  border-top-width: 2px;
}

/* ── Aspect ratio box ──────────────────────────────────────────── */
.aspect-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.aspect-box--16x9 {
  padding-top: 56.25%;
}

.aspect-box--4x3 {
  padding-top: 75%;
}

.aspect-box > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Flex utilities ────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ── Grid utilities ────────────────────────────────────────────── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── Visually hidden but focusable ─────────────────────────────── */
.visually-hidden:not(:focus):not(:active) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Image caption ─────────────────────────────────────────────── */
.post-body figure {
  margin: 24px 0;
}

.post-body figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: #a8a29e;
  margin-top: 8px;
  font-style: italic;
}

/* ── KBD tag ───────────────────────────────────────────────────── */
.post-body kbd {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.8125em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #44403c;
  background: #fff;
  border: 1px solid #d6d3d1;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ── Abbreviation ──────────────────────────────────────────────── */
.post-body abbr[title] {
  text-decoration: underline dotted #7132f5;
  cursor: help;
}

/* ── Mark / Highlight ──────────────────────────────────────────── */
.post-body mark {
  background: #ede9fe;
  color: #4c1d95;
  padding: 1px 4px;
  border-radius: 4px;
}

/* ── Details/Summary ───────────────────────────────────────────── */
.post-body details {
  margin: 24px 0;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #c4b5fd;
  border-radius: 14px;
}

.post-body summary {
  cursor: pointer;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 0;
  list-style: none;
}

.post-body summary::-webkit-details-marker {
  display: none;
}

.post-body summary::before {
  content: '+ ';
  color: #7132f5;
  font-weight: 700;
}

.post-body details[open] summary::before {
  content: '- ';
}

.post-body details[open] summary {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #c4b5fd;
}

/* ── Video embed ───────────────────────────────────────────────── */
.post-body .video-embed {
  position: relative;
  padding-top: 56.25%;
  margin: 24px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #1c1917;
}

.post-body .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Footnotes ─────────────────────────────────────────────────── */
.post-body .footnotes {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid #c4b5fd;
  font-size: 0.875rem;
  color: #78716c;
}

.post-body .footnotes ol {
  padding-left: 1.25rem;
}

.post-body .footnotes li {
  margin-bottom: 8px;
}

.post-body sup a {
  color: #7132f5;
  font-weight: 600;
  text-decoration: none;
}

.post-body sup a:hover {
  text-decoration: underline;
}

/* ── Progress bar (reading progress) ───────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #7132f5;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Cookie consent bar (placeholder) ──────────────────────────── */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1c1917;
  color: #d6d3d1;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9998;
  font-size: 0.8125rem;
}

.cookie-bar__text {
  flex: 1;
}

.cookie-bar__btn {
  padding: 6px 16px;
  border-radius: 8px;
  background: #7132f5;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
}

.cookie-bar__btn:hover {
  background: #5b21b6;
}

/* ── End of stylesheet ─────────────────────────────────────────── */

/* ── App Landing / Download Page ──── */
.app-landing{padding:0 0 48px}
.app-hero{background:linear-gradient(135deg,#7132f5 0%,#5b21b6 100%);color:#fff;padding:60px 0;border-radius:0 0 24px 24px;margin-bottom:48px;text-align:center}
.app-hero__info{max-width:640px;margin:0 auto;padding:0 20px}
.app-hero__badge{display:inline-block;background:rgba(255,255,255,.15);padding:6px 16px;border-radius:20px;font-size:.8rem;font-weight:600;margin-bottom:16px}
.app-hero__title{font-size:2.2rem;font-weight:800;margin-bottom:12px;color:#fff}
.app-hero__desc{font-size:1.05rem;opacity:.9;line-height:1.7;margin-bottom:24px}
.app-hero__stats{display:flex;justify-content:center;gap:32px;margin-bottom:28px}
.app-stat{text-align:center}
.app-stat strong{display:block;font-size:1.3rem;font-weight:800}
.app-stat span{font-size:.78rem;opacity:.7}
.app-hero__btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.app-hero__btns .btn{display:inline-flex;align-items:center;gap:8px}
.app-hero__btns .btn--primary{background:#fff;color:#7132f5;border-color:#fff}
.app-hero__btns .btn--primary:hover{background:#f5f3ff;color:#5b21b6}
.app-hero__btns .btn--outline{border-color:rgba(255,255,255,.5);color:#fff}
.app-hero__btns .btn--outline:hover{background:rgba(255,255,255,.1)}
.app-section-title{font-size:1.4rem;font-weight:700;text-align:center;margin-bottom:28px;color:#1c1917}
.app-features{margin-bottom:48px}
.app-features__grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.app-feature{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:24px}
.app-feature__icon{width:48px;height:48px;border-radius:12px;background:#f5f3ff;display:flex;align-items:center;justify-content:center;color:#7132f5;margin-bottom:14px}
.app-feature h3{font-size:1rem;font-weight:700;margin-bottom:8px;color:#1c1917}
.app-feature p{font-size:.88rem;color:#6b7280;line-height:1.6;margin:0}
.app-download-section{margin-bottom:48px}
.app-dl-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px}
.app-dl-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:24px;display:flex;flex-direction:column}
.app-dl-card__header{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.app-dl-card__header strong{display:block;font-size:1rem;color:#1c1917}
.app-dl-card__header span{display:block;font-size:.78rem;color:#6b7280;margin-top:2px}
.app-dl-card .btn{margin-bottom:16px}
.app-dl-steps{padding-left:18px;margin:0;font-size:.84rem;color:#6b7280;line-height:1.8}
.app-dl-steps li{margin-bottom:4px}
.app-cta{text-align:center;background:#f5f3ff;border:1px solid #c4b5fd;border-radius:16px;padding:40px 20px}
.app-cta h2{font-size:1.2rem;font-weight:700;margin-bottom:8px;color:#1c1917}
.app-cta p{font-size:.9rem;color:#6b7280;margin-bottom:20px}
@media(max-width:768px){.app-features__grid{grid-template-columns:1fr}.app-dl-grid{grid-template-columns:1fr}.app-hero__stats{gap:16px}.app-hero__title{font-size:1.6rem}}

/* ── Page Wrapper ──── */
.page-wrapper{padding:24px 0 48px}
.page-header{margin-bottom:24px}
.page-header__title{font-size:1.5rem;font-weight:800;color:#1c1917}
.page-header__meta{font-size:.9rem;color:#6b7280;margin-top:4px}

/* ── Post Layout (article + right sidebar) ──── */
.post-layout{display:grid;grid-template-columns:1fr 280px;gap:32px;padding:20px 0 48px}
.post-main{min-width:0}
.post-highlight{background:#f5f3ff;border-left:4px solid #7132f5;padding:14px 18px;border-radius:0 12px 12px 0;font-size:.9rem;color:#374151;line-height:1.7;margin-bottom:20px}
.post-inline-cta{background:#fafafa;border:1px solid #e5e7eb;border-radius:12px;padding:12px 16px;font-size:.85rem;color:#6b7280;margin-bottom:24px}
.post-inline-cta a{color:#7132f5;font-weight:600}
.post-related{margin-top:40px;padding-top:24px;border-top:1px solid #e5e7eb}
.post-related h3{font-size:1.1rem;font-weight:700;margin-bottom:16px}
.post-related__grid{display:flex;flex-direction:column;gap:8px}
.post-related__item{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#fafafa;border-radius:10px;text-decoration:none;gap:12px;transition:background .15s}
.post-related__item:hover{background:#f5f3ff}
.post-related__title{font-size:.85rem;color:#374151;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.post-related__date{font-size:.75rem;color:#9ca3af;flex-shrink:0}
.post-sidebar{position:sticky;top:80px;align-self:start}
.post-sidebar__block{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px;margin-bottom:18px}
.post-sidebar__title{font-size:.9rem;font-weight:700;color:#1c1917;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #f3f4f6}
.post-sidebar__tags{display:flex;flex-direction:column;gap:6px}
.post-sidebar__tag{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;font-size:.84rem;color:#4b5563;text-decoration:none;transition:all .15s}
.post-sidebar__tag:hover{background:#f5f3ff;color:#7132f5}
.post-sidebar__tag--active{background:#7132f5;color:#fff}
.post-sidebar__tag--active:hover{background:#5b21b6;color:#fff}
.post-sidebar__list{list-style:none;padding:0;margin:0}
.post-sidebar__list li{border-bottom:1px solid #f3f4f6;padding:8px 0;font-size:.82rem;line-height:1.5}
.post-sidebar__list li:last-child{border-bottom:none}
.post-sidebar__list a{color:#374151;text-decoration:none;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.post-sidebar__list a:hover{color:#7132f5}
.post-bottom-cta{padding:48px 0}
.post-bottom-cta__box{background:linear-gradient(135deg,#7132f5,#5b21b6);border-radius:20px;padding:40px;text-align:center;color:#fff}
.post-bottom-cta__box h2{font-size:1.3rem;font-weight:700;margin-bottom:8px;color:#fff}
.post-bottom-cta__box p{opacity:.9;margin-bottom:20px;color:#fff}
.post-bottom-cta__btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.post-bottom-cta__btns .btn--white{background:#fff;color:#7132f5;border-color:#fff}
.post-bottom-cta__btns .btn--outline-white{border-color:rgba(255,255,255,.5);color:#fff}
@media(max-width:860px){.post-layout{grid-template-columns:1fr}.post-sidebar{position:static;order:2}}
