/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --brand-black:  #0A0A0A;
  --brand-dark:   #111111;
  --brand-dark2:  #1A1A1A;
  --green:        #22C55E;
  --green-dark:   #16A34A;
  --green-dim:    #DCFCE7;
  --green-mid:    rgba(34,197,94,.15);
  --green-glow:   rgba(34,197,94,.14);
  --bg-page:      #F7F6F3;
  --bg-card:      #FFFFFF;
  --bg-alt:       #EFEDE8;
  --bg-section:   #F2F0EB;
  --ink:          #111111;
  --ink-2:        #2D2D2D;
  --ink-3:        #5C5C5C;
  --ink-4:        #8F8F8F;
  --border:       #E0DDD6;
  --border-2:     #CBC7BE;
  --yellow:       #F59E0B;
  --yellow-dim:   #FEF3C7;
  --blue:         #3B82F6;
  --blue-dim:     #EFF6FF;
  --purple:       #8B5CF6;
  --purple-dim:   #EDE9FE;
  --purple-dark:  #6D28D9;
  --ff-head: 'Lexend', sans-serif;
  --ff-body: 'Be Vietnam Pro', sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;
  --shadow-xs:    0 1px 3px rgba(0,0,0,.07);
  --shadow-sm:    0 4px 14px rgba(0,0,0,.09);
  --shadow-md:    0 8px 28px rgba(0,0,0,.11);
  --shadow-green: 0 6px 24px rgba(34,197,94,.28);
  --ease: cubic-bezier(.4,0,.2,1);
  --t: .22s var(--ease);
  --banner-aspect: 16 / 9;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-page);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }
input { font: inherit; }

/* ============================================================
   UTILITIES
============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.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; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--ff-head); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-full);
}
.badge--green  { background: var(--green-dim);  color: var(--green-dark); }
.badge--yellow { background: var(--yellow-dim); color: #92400E; }
.badge--blue   { background: var(--blue-dim);   color: #1D4ED8; }
.badge--purple { background: var(--purple-dim); color: var(--purple-dark); }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--brand-black);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex; align-items: center; gap: 8px;
  height: 66px;
}
.nav__logo {
  display: flex; align-items: center; gap: 0;
  flex-shrink: 0; margin-right: 12px;
  transition: opacity var(--t);
}
.nav__logo:hover { opacity: .85; }
.nav__logo img {
  height: 44px; width: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.nav__logo-text {
  font-family: var(--ff-head); font-weight: 800; font-size: 17px;
  color: #fff; margin-left: 10px; letter-spacing: -.01em;
}
.nav__logo-text span { color: var(--green); }
.nav__links {
  display: flex; align-items: center; gap: 2px; flex: 1;
}
.nav__link {
  font-family: var(--ff-head); font-weight: 500; font-size: 14px;
  color: rgba(255,255,255,.65); padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.nav__link:hover, .nav__link--active {
  color: #fff; background: rgba(255,255,255,.08);
}
.nav__link--active { color: var(--green); }

/* Course CTA — primary call-to-action in header */
.nav__link--course {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-head); font-weight: 700; font-size: 13.5px;
  color: #fff !important;
  background: var(--green);
  padding: 9px 18px;
  border-radius: var(--r-full);
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(34,197,94,.3);
  position: relative;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.nav__link--course svg { flex-shrink: 0; }
.nav__link--course::after {
  content: 'HOT';
  position: absolute; top: -8px; right: -6px;
  background: var(--yellow); color: #7c2d12;
  font-family: var(--ff-head); font-size: 9px; font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 6px; border-radius: var(--r-full);
  box-shadow: 0 2px 6px rgba(245,158,11,.45);
  animation: ctaPulse 2.2s ease-in-out infinite;
}
.nav__link--course:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__link--course::after { animation: none; }
}

/* Dropdown item */
.nav__item { position: relative; }
.nav__link--btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; font: inherit;
}
.nav__link--btn svg { transition: transform var(--t); flex-shrink: 0; }
.nav__link--btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--brand-dark2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 6px;
  min-width: 210px;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.nav__dropdown.is-open,
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__dropdown li { list-style: none; }
.nav__dropdown-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  font-family: var(--ff-head); font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,.65);
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.nav__dropdown-link::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); opacity: 0; flex-shrink: 0;
  transition: opacity var(--t);
}
.nav__dropdown-link:hover {
  color: #fff; background: rgba(255,255,255,.07);
}
.nav__dropdown-link:hover::before { opacity: 1; }

/* Search box */
.nav__search { position: relative; display: flex; align-items: center; }
.nav__search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.35); pointer-events: none; flex-shrink: 0;
}
.nav__search-input {
  width: 260px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--r-full);
  color: #fff; padding: 8px 16px 8px 36px;
  font-family: var(--ff-body); font-size: 13.5px;
  outline: none;
  transition: border-color var(--t), background var(--t), width var(--t);
}
.nav__search-input:focus {
  border-color: var(--green);
  background: rgba(34,197,94,.06);
  width: 320px;
}
.nav__search-input::placeholder { color: rgba(255,255,255,.28); }
.nav__search--mobile {
  margin-bottom: 6px;
}
.nav__search--mobile .nav__search-input {
  width: 100%; border-radius: var(--r-md);
}

/* Mobile submenu — clean vertical stack */
.nav__drawer-series-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  font-family: var(--ff-head); font-weight: 500; font-size: 16px;
  color: rgba(255,255,255,.75);
  padding: 11px 16px; border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.nav__drawer-series-toggle:hover,
.nav__drawer-series-toggle.is-open {
  color: #fff; background: rgba(255,255,255,.08);
}
.nav__drawer-series-toggle svg { transition: transform var(--t); flex-shrink: 0; }
.nav__drawer-series-toggle.is-open svg { transform: rotate(180deg); color: var(--green); }

.nav__drawer-submenu {
  display: flex; flex-direction: column; gap: 2px;
  margin: 4px 0 6px 28px;
  padding: 4px 0 4px 14px;
  border-left: 2px solid rgba(34,197,94,.35);
}
.nav__link--sub {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  font-family: var(--ff-head); font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.6);
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t), padding-left var(--t);
}
.nav__link--sub::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); opacity: .5; flex-shrink: 0;
  transition: opacity var(--t), transform var(--t);
}
.nav__link--sub:hover {
  color: #fff; background: rgba(34,197,94,.08);
  padding-left: 18px;
}
.nav__link--sub:hover::before { opacity: 1; transform: scale(1.3); }

.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-btn {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  transition: color var(--t), background var(--t);
}
.search-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__cta {
  font-family: var(--ff-head); font-weight: 700; font-size: 13.5px;
  background: var(--green); color: #fff;
  padding: 9px 20px; border-radius: var(--r-full);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.nav__cta:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-green); }
.nav__burger {
  display: none; width: 38px; height: 38px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; color: rgba(255,255,255,.7);
  transition: background var(--t);
}
.nav__burger:hover { background: rgba(255,255,255,.1); }
.nav__drawer {
  display: none; flex-direction: column; gap: 3px;
  padding: 16px 20px 22px;
  /* Lighter background + subtle green tint — distinct from header's pure black */
  background:
    linear-gradient(180deg, rgba(34,197,94,.04) 0%, transparent 120px),
    var(--brand-dark2);
  border-top: 1px solid rgba(34,197,94,.25);
  box-shadow: inset 0 14px 24px -14px rgba(0,0,0,.6), 0 12px 28px rgba(0,0,0,.5);
  animation: drawerSlide .22s var(--ease);
}
.nav__drawer.is-open { display: flex; }
@keyframes drawerSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav__drawer .nav__link { font-size: 16px; padding: 11px 16px; color: rgba(255,255,255,.75); }
.nav__drawer .nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__drawer .nav__link--course {
  margin-top: 8px; justify-content: center;
  font-size: 14.5px; padding: 13px 24px;
}
.nav__drawer .nav__link--course::after { top: -10px; right: 10px; }

/* ============================================================
   HERO
============================================================ */
.hero {
  background: var(--brand-black);
  padding: 64px 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.09) 0%, transparent 65%);
  top: -200px; right: -100px; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.06) 0%, transparent 65%);
  bottom: -150px; left: -80px; pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.hero__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px rgba(34,197,94,.6);
}
.hero__eyebrow-text {
  font-family: var(--ff-head); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--green);
}
.hero__title {
  font-family: var(--ff-head); font-weight: 800;
  font-size: clamp(28px, 3.8vw, 46px); line-height: 1.12;
  color: #fff; margin-bottom: 18px;
}
.hero__title em { font-style: normal; color: var(--green); }
.hero__excerpt {
  font-size: 16.5px; line-height: 1.72;
  color: rgba(255,255,255,.58);
  margin-bottom: 28px; max-width: 460px;
}
.hero__meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero__meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.45);
}
.hero__meta-item svg { width: 14px; height: 14px; }
.hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero__btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 700; font-size: 15px;
  background: var(--green); color: #fff;
  padding: 13px 26px; border-radius: var(--r-full);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.hero__btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-green); }
.hero__btn-primary svg { width: 16px; height: 16px; transition: transform var(--t); }
.hero__btn-primary:hover svg { transform: translateX(3px); }
.hero__btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-head); font-weight: 600; font-size: 14.5px;
  color: rgba(255,255,255,.65); padding: 13px 22px;
  border: 1.5px solid rgba(255,255,255,.18); border-radius: var(--r-full);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.hero__btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.hero__card {
  background: var(--brand-dark2);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.hero__card-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0d1f14 0%, #112010 50%, #0a1a0e 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero__card-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(34,197,94,.18) 0%, transparent 60%);
}
.hero__card-thumb-icon { width: 64px; height: 64px; opacity: .35; color: var(--green); }
.hero__card-thumb-icon svg { width: 100%; height: 100%; }
.hero__card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: transform .5s var(--ease);
}
.hero__card {
  text-decoration: none; display: block;
  transition: transform var(--t), box-shadow var(--t);
}
.hero__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.hero__card:hover .hero__card-thumb img { transform: scale(1.05); }
.hero__card:hover .hero__card-title { color: var(--green); }
.hero__card-body { padding: 20px 22px 22px; }
.hero__card-badge { margin-bottom: 10px; }
.hero__card-title {
  font-family: var(--ff-head); font-weight: 700; font-size: 16.5px;
  color: #fff; line-height: 1.35; margin-bottom: 10px;
}
.hero__card-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.hero__card-meta span {
  font-size: 12.5px; color: rgba(255,255,255,.4);
  display: flex; align-items: center; gap: 5px;
}
.hero__card-meta span svg { width: 13px; height: 13px; }

/* ============================================================
   STATS STRIP
============================================================ */
.stats-strip {
  background: var(--brand-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 24px 0;
}
.stats-strip__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.stat {
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 130px;
}
.stat__icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.2);
  display: flex; align-items: center; justify-content: center;
}
.stat__icon svg { width: 17px; height: 17px; color: var(--green); }
.stat__num {
  font-family: var(--ff-head); font-weight: 800; font-size: 20px;
  color: #fff; line-height: 1; display: block;
}
.stat__label { font-size: 12px; color: rgba(255,255,255,.4); display: block; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.08); }

/* ============================================================
   SECTION COMMON
============================================================ */
.section-label {
  font-family: var(--ff-head); font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: ''; display: block; width: 18px; height: 3px;
  background: var(--green); border-radius: 2px;
}
.section-title {
  font-family: var(--ff-head); font-weight: 800;
  font-size: clamp(22px, 2.8vw, 34px); color: var(--ink); line-height: 1.2;
}
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.view-all-link {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--ff-head); font-weight: 600; font-size: 13.5px;
  color: var(--green-dark); white-space: nowrap;
  transition: gap var(--t);
}
.view-all-link:hover { gap: 10px; }
.view-all-link svg { width: 15px; height: 15px; }

/* ============================================================
   CONTENT SECTION
============================================================ */
.content-section { padding: 68px 0 72px; background: var(--bg-page); }
.filter-tabs {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 36px; flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
}
.filter-tab {
  font-family: var(--ff-head); font-weight: 600; font-size: 13.5px;
  color: var(--ink-3); padding: 10px 16px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  display: flex; align-items: center; gap: 7px;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.filter-tab:hover { color: var(--ink); background: var(--bg-section); }
.filter-tab.active { color: var(--green-dark); border-bottom-color: var(--green); background: var(--green-dim); }
.filter-tab__count {
  background: var(--bg-alt); color: var(--ink-4);
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: var(--r-full);
}
.filter-tab.active .filter-tab__count { background: var(--green); color: #fff; }
.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

/* ============================================================
   POST CARD
============================================================ */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  box-shadow: var(--shadow-xs);
}
.post-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow), var(--shadow-md);
  transform: translateY(-3px);
}
.post-card__thumb {
  position: relative; aspect-ratio: var(--banner-aspect); overflow: hidden;
  background: var(--bg-section); flex-shrink: 0;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.thumb-placeholder {
  width: 100%; height: 100%; min-height: 170px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.thumb-placeholder svg { width: 38px; height: 38px; opacity: .35; }
.thumb-placeholder--green { background: linear-gradient(135deg, #e8f5ee, #d4edd9); color: var(--green-dark); }
.thumb-placeholder--yellow { background: linear-gradient(135deg, #fdf6e3, #faecc4); color: #92400E; }
.thumb-placeholder--blue   { background: linear-gradient(135deg, #e8f0fd, #d4e4f9); color: #1D4ED8; }
.thumb-placeholder--purple { background: linear-gradient(135deg, #f3eefe, #e2d6fc); color: var(--purple-dark); }
.thumb-placeholder--dark   { background: linear-gradient(135deg, var(--brand-dark2), #1e1e1e); color: rgba(255,255,255,.3); }
.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
  opacity: 0; transition: opacity var(--t);
}
.post-card:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t), background var(--t);
}
.play-btn:hover { transform: scale(1.12); background: var(--green); }
.play-btn svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.duration-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.78); color: #fff; border-radius: 5px;
  font-size: 11.5px; font-weight: 700; font-family: var(--ff-head);
  padding: 2px 8px;
}
.download-badge {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--green); color: #fff; border-radius: var(--r-full);
  font-size: 10.5px; font-weight: 700; font-family: var(--ff-head);
  padding: 3px 10px; display: flex; align-items: center; gap: 4px;
  text-transform: uppercase; letter-spacing: .04em;
}
.download-badge svg { width: 11px; height: 11px; fill: #fff; }
.download-badge--purple { background: var(--purple); }
.post-card__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.post-card__title {
  font-family: var(--ff-head); font-weight: 700;
  font-size: 16px; line-height: 1.35; color: var(--ink);
  margin-bottom: 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--t);
}
.post-card:hover .post-card__title { color: var(--green-dark); }
.post-card__excerpt {
  font-size: 13.5px; color: var(--ink-3); line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 16px; flex: 1;
}
.post-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto;
}
.post-card__date { font-size: 12px; color: var(--ink-4); }
.post-card__stat {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--ink-4);
}
.post-card__stat svg { width: 12px; height: 12px; }
.post-card--wide { grid-column: span 2; flex-direction: row; }
.post-card--wide .post-card__thumb { flex: 0 0 44%; aspect-ratio: auto; min-height: 240px; }
.post-card--wide .post-card__body { padding: 26px 26px; }
.post-card--wide .post-card__title { font-size: 20px; -webkit-line-clamp: 3; }
.post-card--wide .post-card__excerpt { font-size: 14.5px; -webkit-line-clamp: 3; }

/* ============================================================
   TOPICS
============================================================ */
.topics-section { padding: 0 0 68px; background: var(--bg-page); }
.topics-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.topic-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 8px 18px;
  font-family: var(--ff-head); font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  transition: border-color var(--t), background var(--t), color var(--t);
  box-shadow: var(--shadow-xs);
}
.topic-pill:hover { border-color: var(--green); background: var(--green-dim); color: var(--green-dark); }
.topic-pill__count { font-size: 11px; color: var(--ink-4); font-weight: 500; }

/* ============================================================
   EXERCISES SECTION
============================================================ */
.exercises-section { padding: 68px 0; background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.exercises-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.exercise-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  box-shadow: var(--shadow-xs);
}
.exercise-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow), var(--shadow-sm);
  transform: translateY(-2px);
}
.exercise-card__icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--green-dim);
}
.exercise-card__icon svg { width: 22px; height: 22px; color: var(--green-dark); }
.exercise-card__title {
  font-family: var(--ff-head); font-weight: 700; font-size: 15.5px;
  color: var(--ink); line-height: 1.35;
}
.exercise-card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.exercise-card__meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--ink-3);
}
.exercise-card__meta-item svg { width: 13px; height: 13px; }
.exercise-card__desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; flex: 1; }
.exercise-card__download {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto;
}
.exercise-card__dl-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--ff-head); font-weight: 700; font-size: 13px;
  color: var(--green-dark); padding: 8px 16px;
  background: var(--green-dim); border-radius: var(--r-full);
  transition: background var(--t), color var(--t), transform var(--t);
}
.exercise-card__dl-btn:hover { background: var(--green); color: #fff; transform: translateY(-1px); }
.exercise-card__dl-btn svg { width: 13px; height: 13px; }
.exercise-card__level { font-size: 12px; color: var(--ink-4); font-weight: 500; }

/* ============================================================
   NEWSLETTER
============================================================ */
.newsletter-section {
  padding: 80px 0;
  background: var(--brand-black);
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.1) 0%, transparent 65%);
  top: -300px; right: -150px; pointer-events: none;
}
.newsletter-section::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.07) 0%, transparent 65%);
  bottom: -200px; left: -100px; pointer-events: none;
}
.newsletter-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.newsletter-label {
  font-family: var(--ff-head); font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.newsletter-label::before { content: ''; display: block; width: 18px; height: 3px; background: var(--green); border-radius: 2px; }
.newsletter-title {
  font-family: var(--ff-head); font-weight: 800;
  font-size: clamp(22px, 2.8vw, 38px); color: #fff; line-height: 1.2;
  margin-bottom: 14px;
}
.newsletter-title span { color: var(--green); }
.newsletter-desc { font-size: 15.5px; color: rgba(255,255,255,.5); line-height: 1.72; }
.newsletter-perks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.newsletter-perk { display: flex; align-items: center; gap: 12px; }
.newsletter-perk__icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: rgba(34,197,94,.15); display: flex; align-items: center; justify-content: center;
}
.newsletter-perk__icon svg { width: 15px; height: 15px; color: var(--green); }
.newsletter-perk__text { font-size: 14px; color: rgba(255,255,255,.72); }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 210px;
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--r-full); color: #fff; padding: 13px 20px; font-size: 14.5px;
  outline: none; transition: border-color var(--t), background var(--t);
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.3); }
.newsletter-form input[type="email"]:focus { border-color: var(--green); background: rgba(34,197,94,.06); }
.newsletter-form button {
  font-family: var(--ff-head); font-weight: 700; font-size: 14.5px;
  background: var(--green); color: #fff; padding: 13px 24px;
  border-radius: var(--r-full); white-space: nowrap;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.newsletter-form button:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-green); }
.newsletter-note { font-size: 12px; color: rgba(255,255,255,.28); margin-top: 12px; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--brand-dark); padding: 56px 0 28px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px;
  margin-bottom: 44px;
}
.footer__brand-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.footer__brand-logo img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }
.footer__brand-logo-text {
  font-family: var(--ff-head); font-weight: 800; font-size: 17px; color: #fff;
}
.footer__brand-logo-text span { color: var(--green); }
.footer__brand-desc { font-size: 13.5px; color: rgba(255,255,255,.38); line-height: 1.7; max-width: 280px; margin-bottom: 20px; }
.footer__socials { display: flex; gap: 9px; }
.footer__social {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.footer__social:hover { background: var(--green); color: #fff; border-color: var(--green); }
.footer__social svg { width: 15px; height: 15px; fill: currentColor; }
.footer__col-title {
  font-family: var(--ff-head); font-weight: 700; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link { font-size: 13.5px; color: rgba(255,255,255,.4); transition: color var(--t); }
.footer__link:hover { color: var(--green); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06); flex-wrap: wrap;
}
.footer__copy { font-size: 12.5px; color: rgba(255,255,255,.25); }
.footer__copy span { color: var(--green); }
.footer__policy { display: flex; gap: 18px; }
.footer__policy a { font-size: 12.5px; color: rgba(255,255,255,.25); transition: color var(--t); }
.footer__policy a:hover { color: rgba(255,255,255,.5); }

/* ============================================================
   TAB SYSTEM
============================================================ */
.tab-content { display: none; }
.tab-content.active { display: grid; }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .48s var(--ease), transform .48s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   POST DETAIL PAGE
============================================================ */
.post-hero {
  background: var(--brand-black);
  padding: 52px 0 60px;
  position: relative; overflow: hidden;
}
.post-hero::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.08) 0%, transparent 65%);
  top: -200px; right: -100px; pointer-events: none;
}
.post-hero__inner { position: relative; z-index: 1; max-width: 800px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumb a {
  font-family: var(--ff-head); font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,.4);
  transition: color var(--t);
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb__sep { color: rgba(255,255,255,.2); font-size: 12px; }
.breadcrumb__current {
  font-family: var(--ff-head); font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px;
}
.post-hero__badge { margin-bottom: 18px; }
.post-hero__title {
  font-family: var(--ff-head); font-weight: 800;
  font-size: clamp(24px, 3.5vw, 44px); line-height: 1.15;
  color: #fff; margin-bottom: 18px;
}
.post-hero__excerpt {
  font-size: 17px; line-height: 1.72;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px; max-width: 680px;
}
.post-hero__meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.post-hero__meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.4);
}
.post-hero__meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Post hero banner (below meta) */
.post-hero__banner {
  margin-top: 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  aspect-ratio: 16 / 7;
  background: var(--brand-dark2);
}
.post-hero__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero--has-banner { padding-bottom: 40px; }
@media (max-width: 768px) {
  .post-hero__banner { aspect-ratio: 16 / 9; margin-top: 22px; border-radius: var(--r-md); }
}

.post-layout {
  padding: 56px 0 80px;
  background: var(--bg-page);
}

/* Post banner — matches homepage card 16:10 ratio */
.post-banner {
  margin: 0 0 32px;
  aspect-ratio: var(--banner-aspect);
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .post-banner { margin-bottom: 22px; border-radius: var(--r-md); }
}
.post-layout__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.post-layout__inner > main { min-width: 0; }

/* Post content body (rendered from Editor.js) */
.post-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 48px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-2);
}
.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
  font-family: var(--ff-head); font-weight: 700; color: var(--ink);
  margin-top: 2em; margin-bottom: .7em; line-height: 1.3;
}
.post-content h2 { font-size: 1.55em; }
.post-content h3 { font-size: 1.28em; }
.post-content h4 { font-size: 1.1em; }
.post-content p { margin-bottom: 1.3em; }
.post-content a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--green); }
.post-content ul, .post-content ol {
  margin-bottom: 1.3em; padding-left: 1.6em;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .4em; }
.post-content strong, .post-content b { font-weight: 700; color: var(--ink); }
.post-content em, .post-content i { font-style: italic; }
.post-content code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: .88em;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--green-dark);
}
.post-content pre {
  background: var(--brand-dark);
  border-radius: var(--r-md);
  padding: 22px 26px;
  overflow-x: auto;
  margin-bottom: 1.5em;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.post-content pre code {
  background: none; border: none; padding: 0;
  color: rgba(255,255,255,.85);
  font-size: .9em; line-height: 1.65;
  white-space: pre;
  word-break: normal;
}
.post-content blockquote {
  border-left: 4px solid var(--green);
  background: var(--green-dim);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 22px;
  margin-bottom: 1.5em;
  color: var(--ink-2);
  font-style: italic;
}
.post-content img {
  max-width: 100%; border-radius: var(--r-md);
  margin: 1.5em auto; display: block;
  border: 1px solid var(--border);
}
.post-content figure { margin-bottom: 1.5em; }
.post-content figcaption {
  text-align: center; font-size: 13px; color: var(--ink-4);
  margin-top: 8px; font-style: italic;
}
/* Wrap tables in a horizontal scroll container on narrow screens */
.post-content table {
  width: 100%; border-collapse: collapse;
  margin-bottom: 1.5em; font-size: .92em;
  display: block; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.post-content th, .post-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.post-content th {
  background: var(--bg-section);
  font-family: var(--ff-head); font-weight: 700; font-size: .88em;
}
.post-content tr:nth-child(even) { background: var(--bg-page); }

/* Video embed */
.post-content .video-embed {
  position: relative; padding-bottom: 56.25%;
  height: 0; overflow: hidden;
  border-radius: var(--r-md); margin-bottom: 1.5em;
}
.post-content .video-embed iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Post sidebar */
.post-sidebar { position: sticky; top: 82px; }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 18px;
}
.sidebar-card__title {
  font-family: var(--ff-head); font-weight: 700; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 14px;
}
.sidebar-cta {
  background: var(--brand-black); padding: 24px;
  border-radius: var(--r-lg); text-align: center;
}
.sidebar-cta__title {
  font-family: var(--ff-head); font-weight: 800; font-size: 15px;
  color: #fff; margin-bottom: 10px; line-height: 1.35;
}
.sidebar-cta__desc { font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 18px; line-height: 1.6; }
.sidebar-cta__btn {
  display: block; font-family: var(--ff-head); font-weight: 700; font-size: 13.5px;
  background: var(--green); color: #fff; padding: 11px 20px;
  border-radius: var(--r-full); text-align: center;
  transition: background var(--t), transform var(--t);
}
.sidebar-cta__btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.related-post {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post__thumb {
  width: 64px; height: 48px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden; background: var(--bg-section);
  display: flex; align-items: center; justify-content: center;
}
.related-post__thumb svg { width: 20px; height: 20px; opacity: .35; }
.related-post__thumb--green { background: linear-gradient(135deg, #e8f5ee, #d4edd9); color: var(--green-dark); }
.related-post__thumb--yellow { background: linear-gradient(135deg, #fdf6e3, #faecc4); color: #92400E; }
.related-post__thumb--purple { background: linear-gradient(135deg, #f3eefe, #e2d6fc); color: var(--purple-dark); }
.related-post__thumb--dark { background: linear-gradient(135deg, var(--brand-dark2), #1e1e1e); color: rgba(255,255,255,.3); }
.related-post__title {
  font-family: var(--ff-head); font-weight: 600; font-size: 13px;
  color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--t);
}
.related-post:hover .related-post__title { color: var(--green-dark); }
.tags-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--ff-head); font-size: 11.5px; font-weight: 600;
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 5px 12px;
  color: var(--ink-3);
  transition: border-color var(--t), background var(--t), color var(--t);
}
.tag:hover { border-color: var(--green); background: var(--green-dim); color: var(--green-dark); }

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 60px 20px;
  color: var(--ink-3);
}
.empty-state p { font-size: 15px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--wide { grid-column: span 2; }
  .exercises-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .newsletter-inner { gap: 40px; }
  .post-layout__inner { grid-template-columns: minmax(0, 1fr); }
  .post-sidebar { position: static; }
}
@media (max-width: 768px) {
  /* Header: hide desktop search + nav links, show only logo + burger */
  .nav__links, .nav__cta, .nav__search { display: none; }
  .nav__burger { display: flex; }
  .nav__logo img { height: 36px; width: 36px; }
  .nav__logo-text { font-size: 15px; margin-left: 8px; }
  .nav__actions { gap: 0; }

  /* Hero */
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 40px 0 48px; }
  .hero__card { order: -1; }

  /* Posts grid — 2 columns on mobile */
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .post-card--wide { grid-column: span 2; flex-direction: column; }
  .post-card--wide .post-card__thumb { flex: none; aspect-ratio: 16/9; min-height: unset; }
  .post-card--wide .post-card__body { padding: 16px 18px 18px; }
  .post-card--wide .post-card__title { font-size: 16px; -webkit-line-clamp: 2; }
  .post-card--wide .post-card__excerpt { display: -webkit-box; font-size: 13px; }

  /* Compact card content for 2-col mobile grid */
  .post-card__body { padding: 12px 12px 14px; }
  .post-card__title { font-size: 13.5px; line-height: 1.32; margin-bottom: 6px; -webkit-line-clamp: 3; }
  .post-card__excerpt { display: none; }
  .post-card__footer { padding-top: 8px; gap: 4px; flex-wrap: wrap; }
  .post-card__date, .post-card__stat { font-size: 10.5px; }
  .post-card__stat svg { width: 10px; height: 10px; }
  .thumb-placeholder { min-height: 0; }
  .thumb-placeholder svg { width: 30px; height: 30px; }
  .duration-badge { font-size: 10px; padding: 1px 6px; bottom: 6px; right: 6px; }
  .download-badge { font-size: 9px; padding: 2px 7px; bottom: 6px; left: 6px; }
  .download-badge svg { width: 9px; height: 9px; }

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

  /* Stats strip — 2x2 grid */
  .stats-strip { padding: 20px 0; }
  .stats-strip__inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px 18px; justify-content: normal;
  }
  .stat { min-width: 0; flex: none; }
  .stat-divider { display: none; }

  /* Filter tabs — horizontal scroll instead of wrap */
  .filter-tabs {
    flex-wrap: nowrap; overflow-x: auto;
    margin-bottom: 24px; padding-bottom: 1px;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex-shrink: 0; white-space: nowrap; }

  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 28px; }
  .post-content { padding: 22px 18px; font-size: 15.5px; }
  .post-content h2 { font-size: 1.4em; }
  .post-content h3 { font-size: 1.18em; }
  .post-content pre { padding: 16px 18px; font-size: .85em; }
  .post-layout { padding: 32px 0 56px; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .filter-tab { padding: 8px 12px; font-size: 12.5px; }
  .hero__title { font-size: 26px; }
  .nav__logo img { height: 32px; width: 32px; }
  .nav__logo-text { font-size: 14px; margin-left: 7px; }

  /* Tighter on very small screens */
  .posts-grid { gap: 10px; }
  .post-card__body { padding: 10px 10px 12px; }
  .post-card__title { font-size: 12.5px; }
  .stat__num { font-size: 18px; }
  .stat__label { font-size: 11px; }
  .stat__icon { width: 32px; height: 32px; }
  .stat__icon svg { width: 15px; height: 15px; }
}

/* ───────────────────────────────────────────────────────────────────
   Mobile course CTAs — header pill + bottom sticky bar
   ─────────────────────────────────────────────────────────────────── */

/* Pill button — hidden on desktop by default */
.nav__pill-cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #34d671 100%);
  color: #fff;
  border-radius: 12px;
  font-family: var(--ff-head);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 300ms ease;
  box-shadow: 0 4px 12px rgba(22, 163, 74, .35), inset 0 1px 0 rgba(255,255,255,.18);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.nav__pill-cta:active { transform: scale(0.96); }
.nav__pill-cta-icon { flex-shrink: 0; opacity: .92; }
.nav__pill-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  letter-spacing: 0.2px;
}
.nav__pill-cta-eyebrow {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: .82;
}
.nav__pill-cta-main {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1px;
}

@keyframes navPillPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(22, 163, 74, .35), inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 0 rgba(22, 163, 74, 0.55); }
  50%      { box-shadow: 0 4px 12px rgba(22, 163, 74, .35), inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 10px rgba(22, 163, 74, 0); }
}

/* Bottom sticky course bar */
.course-bar {
  display: none; /* desktop hidden */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
  transition: transform 250ms ease-out;
}
.course-bar.is-visible { transform: translateY(0); }
.course-bar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  padding-right: 36px; /* leave room for close button */
  -webkit-tap-highlight-color: transparent;
}
.course-bar__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}
.course-bar__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.course-bar__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  color: #fff;
}
.course-bar__sub {
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}
.course-bar__arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transition: transform 200ms ease;
}
.course-bar__link:active .course-bar__arrow { transform: translateX(2px); }
.course-bar__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  opacity: 0.6;
  cursor: pointer;
  border-radius: 8px;
  transition: opacity 150ms ease;
}
.course-bar__close:hover,
.course-bar__close:focus-visible { opacity: 1; outline: none; }
.course-bar__close:focus-visible { box-shadow: 0 0 0 2px #fff inset; }

@media (max-width: 768px) {
  .nav__pill-cta {
    display: inline-flex;
    margin-right: 4px;
    animation: navPillPulse 4s ease-out infinite;
  }
  /* Khi pill xuất hiện, ẩn text logo để dành chỗ */
  .nav__logo-text { display: none; }

  .course-bar { display: block; }

  /* Tránh bar che footer khi cuộn xuống đáy */
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__pill-cta { animation: none; transition: none; }
  .course-bar { transition: none; }
}

/* ───────────────────────────────────────────────────────────────────
   Share — inline section, sticky vertical rail, mobile FAB
   ─────────────────────────────────────────────────────────────────── */

.share-section {
  margin-top: 28px;
  padding: 14px 18px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.share-section__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.share-section__title svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }
.share-section__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.share-section__live {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.share-btn:hover,
.share-btn:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  outline: none;
}
.share-btn:focus-visible { box-shadow: 0 0 0 3px rgba(22,163,74,.25); }
.share-btn:active { transform: scale(.97); }

.share-btn--copy.is-copied {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.share-btn--copy.is-error {
  background: rgba(210, 63, 49, .08);
  border-color: rgba(210, 63, 49, .35);
  color: #b53224;
}

/* ── Sticky vertical rail (desktop only) ─────────────────────── */
.share-rail {
  display: none;
}
@media (min-width: 1100px) {
  .share-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    top: 50%;
    left: 24px;
    transform: translateY(-50%) translateX(-12px);
    z-index: 40;
    padding: 12px 8px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms ease;
  }
  .share-rail.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }
}
.share-rail__btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 150ms ease;
  text-decoration: none;
}
.share-rail__btn svg { width: 18px; height: 18px; }
.share-rail__btn:hover,
.share-rail__btn:focus-visible {
  background: var(--green);
  color: #fff;
  outline: none;
}
.share-rail__btn:focus-visible { box-shadow: 0 0 0 3px rgba(22,163,74,.25); }
.share-rail__btn:active { transform: scale(.94); }
.share-rail__btn--copy.is-copied {
  background: var(--green);
  color: #fff;
}
.share-rail__btn--copy.is-error {
  background: rgba(210, 63, 49, .12);
  color: #b53224;
}

/* ── Mobile FAB ──────────────────────────────────────────────── */
.share-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 88px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 24px rgba(22, 163, 74, .35);
  cursor: pointer;
  z-index: 80;
  transform: translateY(20px) scale(.9);
  opacity: 0;
  transition: opacity 250ms ease, transform 250ms ease, background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.share-fab svg { width: 22px; height: 22px; display: block; margin: 0 auto; }
.share-fab.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.share-fab:hover { background: #0f8a3f; }
.share-fab:active { transform: translateY(0) scale(.95); }

@media (max-width: 767px) {
  .share-fab { display: block; }
  /* Inline section gets a tighter padding on small screens */
  .share-section { padding: 18px 16px; margin-top: 24px; }
  .share-section__title { font-size: 13px; }
  .share-btn { padding: 9px 14px; font-size: 13px; }
  .share-btn span { /* keep label visible — remove this if you want icons-only */ }
}

@media (prefers-reduced-motion: reduce) {
  .share-rail,
  .share-fab,
  .share-btn,
  .share-rail__btn { transition: none; }
}

/* ───────────────────────────────────────────────────────────────────
   Tủ Tài Liệu — gallery + folder-tab card + detail
   ─────────────────────────────────────────────────────────────────── */

/* Nav vault link */
.nav__link--vault {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__link--vault svg { color: var(--green); }

/* Hero */
.doc-hero {
  background: var(--brand-black);
  color: #fff;
  padding: 56px 0 44px;
  position: relative;
  overflow: hidden;
}
.doc-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 0%, rgba(22,163,74,.18), transparent 60%);
  pointer-events: none;
}
.doc-hero > .container { position: relative; z-index: 1; }
.doc-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--green);
  margin: 0 0 16px;
  padding: 6px 12px;
  border: 1px solid rgba(22,163,74,.4);
  border-radius: 999px;
  background: rgba(22,163,74,.08);
}
.doc-hero__title {
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.1;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.02em;
}
.doc-hero__title em {
  font-style: normal;
  color: var(--green);
  position: relative;
}
.doc-hero__title em::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 6px;
  background: var(--green);
  opacity: 0.22;
  border-radius: 3px;
  z-index: -1;
}
.doc-hero__sub {
  font-size: 15px;
  color: rgba(255,255,255,.72);
  margin: 0;
}
.doc-hero__sub strong { color: #fff; font-weight: 700; }

/* Filters */
.doc-filters {
  background: var(--bg-card, #fff);
  border-bottom: 1px solid var(--border);
  padding: 22px 0 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.doc-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 16px;
  transition: border-color 200ms ease;
}
.doc-search:focus-within { border-color: var(--green); }
.doc-search__icon { color: var(--ink-3); flex-shrink: 0; }
.doc-search__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--ink-1);
  padding: 6px 0;
  min-width: 0;
}
.doc-search__input::placeholder { color: var(--ink-3); }

.doc-chip-group { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.doc-chip-group__label {
  flex-shrink: 0;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.doc-chip-row::-webkit-scrollbar { display: none; }
.doc-chip {
  --chip-color: var(--green);
  scroll-snap-align: start;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.doc-chip:hover {
  border-color: var(--ink-3);
  color: var(--ink-1);
}
.doc-chip.is-active {
  background: var(--chip-color);
  border-color: var(--chip-color);
  color: #fff;
}
.doc-chip:active { transform: scale(.97); }

/* Results */
.doc-results { padding: 32px 0 64px; background: var(--bg-page); min-height: 60vh; }
.doc-results__count {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 20px;
}
.doc-results__count strong { color: var(--ink-1); font-weight: 700; }
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Folder Tab card */
.doc-card {
  --card-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.04);
  --card-shadow-hover: 0 4px 8px rgba(15,23,42,.06), 0 16px 32px rgba(15,23,42,.08);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  overflow: visible;
  box-shadow: var(--card-shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
  margin-top: 14px; /* room for tab to peek above */
}
.doc-card:hover,
.doc-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  outline: none;
}
.doc-card:focus-visible { box-shadow: var(--card-shadow-hover), 0 0 0 3px rgba(22,163,74,.25); }
.doc-card:active { transform: translateY(-2px) scale(.99); }

.doc-card__tab {
  --tab-color: #64748B;
  position: absolute;
  top: -10px;
  left: 18px;
  padding: 5px 11px;
  background: var(--tab-color);
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 4px 4px 6px 6px;
  box-shadow: 0 2px 4px rgba(15,23,42,.08);
  z-index: 1;
  white-space: nowrap;
  max-width: calc(100% - 36px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-card__tab::before {
  content: "";
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 3px;
  background: var(--tab-color);
  filter: brightness(.85);
  z-index: -1;
  border-radius: 0 0 6px 6px;
}

.doc-card__banner {
  aspect-ratio: var(--banner-aspect);
  background: var(--bg-page);
  border-radius: 13px 13px 0 0;
  overflow: hidden;
  position: relative;
}
.doc-card__banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.doc-card__banner-fallback {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
}
.doc-card__banner-fallback svg { width: 48px; height: 48px; }

.doc-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.doc-card__num {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.doc-card__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.32;
  color: var(--ink-1);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-card__divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}
.doc-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
}
.doc-card__file { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.doc-card__opens { font-variant-numeric: tabular-nums; }

/* Empty state */
.doc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-3);
}
.doc-empty svg { color: var(--ink-3); margin-bottom: 12px; }
.doc-empty__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 6px;
}
.doc-empty__sub { margin: 0; font-size: 14px; }
.doc-empty__sub a { color: var(--green); font-weight: 600; }

/* Load more */
.doc-loadmore { text-align: center; margin-top: 32px; }
.doc-loadmore__btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--bg-card, #fff);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-1);
  text-decoration: none;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.doc-loadmore__btn:hover { border-color: var(--green); color: var(--green); }

/* Detail */
.doc-detail {
  background: var(--bg-page);
  padding: 36px 0 12px;
}
.doc-detail .breadcrumb { margin-bottom: 28px; }

.doc-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 12px;
}
.doc-detail__cover {
  aspect-ratio: var(--banner-aspect);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(15,23,42,.08);
}
.doc-detail__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.doc-detail__banner-fallback {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
}
.doc-detail__banner-fallback svg { width: 96px; height: 96px; }

.doc-detail__num {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.doc-detail__title {
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.18;
  color: var(--ink-1);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.doc-detail__excerpt {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.doc-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.doc-detail__tag {
  --tag-color: var(--green);
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--tag-color);
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  border-radius: 999px;
}
.doc-detail__tag--neutral {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--border);
}
.doc-detail__divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.doc-detail__file {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.doc-detail__file strong { color: var(--ink-1); font-weight: 700; }
.doc-detail__file li { font-variant-numeric: tabular-nums; }

.doc-detail__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: var(--green);
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.3px;
  border-radius: 12px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 200ms ease, transform 150ms ease, box-shadow 250ms ease;
  box-shadow: 0 6px 18px rgba(22,163,74,.3);
}
.doc-detail__cta:hover {
  background: #0f8a3f;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22,163,74,.36);
}
.doc-detail__cta:active { transform: translateY(0) scale(.98); }
.doc-detail__cta svg { width: 20px; height: 20px; }
.doc-detail__cta--disabled {
  background: var(--bg-page);
  color: var(--ink-3);
  border: 1.5px dashed var(--border);
  box-shadow: none;
  cursor: not-allowed;
}
.doc-detail__cta-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

/* Related docs in sidebar */
.related-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: padding-left 180ms ease;
}
.related-doc:last-child { border-bottom: 0; }
.related-doc:hover { padding-left: 4px; }
.related-doc__num {
  flex-shrink: 0;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  background: rgba(22,163,74,.08);
  padding: 4px 8px;
  border-radius: 6px;
}
.related-doc__title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Breadcrumb override on light backgrounds (doc detail) */
.breadcrumb--light a { color: var(--ink-3); }
.breadcrumb--light a:hover { color: var(--green-dark); }
.breadcrumb--light .breadcrumb__sep { color: var(--ink-4); }
.breadcrumb--light .breadcrumb__current { color: var(--ink-2); }

/* Cover — industry color accent strip */
.doc-detail__cover { position: relative; }
.doc-detail__cover-strip {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--industry-color, var(--green));
  z-index: 2;
}

/* N° / total */
.doc-detail__num-total {
  color: var(--ink-4);
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* Outcomes — what reader will be able to do */
.doc-detail__outcomes {
  margin: 4px 0 18px;
  padding: 14px 16px;
  background: rgba(34, 197, 94, .06);
  border: 1px solid rgba(34, 197, 94, .18);
  border-radius: 12px;
}
.doc-detail__outcomes-title {
  font-family: var(--ff-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 8px;
}
.doc-detail__outcomes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.doc-detail__outcomes li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.doc-detail__outcomes svg {
  flex-shrink: 0;
  width: 16px; height: 16px;
  color: var(--green);
  margin-top: 2px;
}

/* Trust pills under primary CTA */
.doc-detail__trust {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.doc-detail__trust li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.doc-detail__trust li::before {
  content: '';
  width: 14px; height: 14px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
}

/* Sidebar — sticky wrapper + mini CTA + spec rows + TOC */
.post-sidebar__sticky { display: flex; flex-direction: column; gap: 16px; }

.sidebar-doc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  background: var(--green);
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(22,163,74,.28);
  transition: background-color 200ms ease, transform 150ms ease, box-shadow 250ms ease;
}
.sidebar-doc-cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22,163,74,.34);
}
.sidebar-doc-cta svg { width: 16px; height: 16px; }

.sidebar-card--spec {
  background: var(--bg-card);
  color: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.sidebar-card--spec .sidebar-card__title {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.doc-spec { display: grid; gap: 10px; }
.doc-spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}
.doc-spec__row:last-child { border-bottom: 0; padding-bottom: 0; }
.doc-spec__label {
  color: var(--ink-3);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.4px;
}
.doc-spec__value {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.doc-spec__value strong { font-weight: 700; }
.doc-spec__new {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Sidebar TOC */
.doc-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.doc-toc__title {
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}
.doc-toc__list {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.doc-toc__list li { counter-increment: toc; }
.doc-toc__list a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.doc-toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--ink-4);
  flex-shrink: 0;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.doc-toc__list a:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green-dim);
}

/* Mobile sticky FAB */
.doc-fab {
  display: none;
}
@media (max-width: 768px) {
  .doc-fab {
    display: block;
    position: fixed;
    left: 16px; right: 16px;
    bottom: 16px;
    z-index: 75;
    transform: translateY(120%);
    transition: transform 280ms cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
  }
  .doc-fab.is-visible { transform: translateY(0); pointer-events: auto; }
  .doc-fab__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--green);
    color: #fff;
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.3px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(22,163,74,.4);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .doc-detail__hero { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .doc-hero { padding: 36px 0 28px; }
  .doc-grid { grid-template-columns: 1fr; gap: 22px; }
  .doc-card { margin-top: 12px; }
  .doc-card__title { font-size: 17px; -webkit-line-clamp: 3; line-clamp: 3; }
  .doc-filters { padding: 14px 0 12px; }

  /* Filter chips: horizontal scroll with sticky-feeling label,
     instead of wrapping into multi-row pile that eats viewport. */
  .doc-chip-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    min-width: 0;
  }
  .doc-chip-group__label {
    flex-shrink: 0;
    font-size: 10.5px;
    letter-spacing: 0.9px;
    padding-left: 0;
  }
  .doc-chip-row {
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    padding: 4px 24px 6px 0;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
  }
  .doc-chip { padding: 7px 13px; font-size: 12.5px; }

  .doc-detail { padding: 24px 0 8px; }
  .doc-detail__cta { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .doc-detail__hero { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .doc-card,
  .doc-chip,
  .doc-detail__cta,
  .doc-fab,
  .related-doc { transition: none; }
}
