/* ================================================================
   BabiaApp (babiaapp.com) — Emerald Green Theme Stylesheet
   Brand: #059669 (emerald), hover #047857, border #a7f3d0, bg #f8fafc
   Radius: 16px, Font: system stack
   Two-row header, full-width article, 3-col footer
   ================================================================ */

/* ── 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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: #059669;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #047857;
}

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

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

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

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

::selection {
  background: #a7f3d0;
  color: #064e3b;
}

/* ── 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: 16px;
  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: #059669;
  color: #fff;
  border-color: #059669;
}

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

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

.btn--outline:hover {
  background: #059669;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.btn--white {
  background: #fff;
  color: #059669;
  border-color: #fff;
}

.btn--white:hover {
  background: #ecfdf5;
  border-color: #ecfdf5;
  color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.btn svg {
  flex-shrink: 0;
}

/* ── Top Bar ───────────────────────────────────────────────────── */
.top-bar {
  background: #059669;
  color: #fff;
  font-size: 0.8125rem;
  padding: 6px 0;
  position: relative;
  z-index: 1001;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar__left span {
  opacity: 0.9;
}

.top-bar__left svg {
  vertical-align: middle;
  margin-right: 4px;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar__lang {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}

.top-bar__lang option {
  color: #1e293b;
  background: #fff;
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
}

.top-bar__contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.top-bar__contact a:hover {
  color: #d1fae5;
}

/* ── Site Header (Row 2 — Main Nav) ───────────────────────────── */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  border-bottom: 1px solid #e2e8f0;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

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

.site-logo__text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #059669;
  letter-spacing: -0.02em;
}

.site-logo:hover .site-logo__text {
  color: #047857;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: #059669;
  background: #ecfdf5;
}

.nav-link--active {
  color: #059669;
  background: #ecfdf5;
  font-weight: 600;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-lang {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: .8rem;
  color: #475569;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.header-lang:hover {
  border-color: #059669;
}

.lang-select {
  display: none;
}

.header-cta {
  font-size: 0.8125rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: #ecfdf5;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Nav overlay (for mobile) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* ── Hero Section ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero__desc {
  font-size: 1.125rem;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__search {
  margin-top: 32px;
  position: relative;
  max-width: 480px;
}

.hero__search-input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.hero__search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.hero__search-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.18);
}

.hero__search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero__search-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero__decoration {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.08;
  pointer-events: none;
}

.hero__decoration svg {
  width: 320px;
  height: 320px;
}

/* ── Quick Access Grid ─────────────────────────────────────────── */
.quick-section {
  padding: 60px 0 40px;
}

.quick-section__title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.quick-section__desc {
  text-align: center;
  color: #64748b;
  margin-bottom: 36px;
  font-size: 1rem;
}

.home-quick{padding:24px 0 0}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-card:hover {
  border-color: #a7f3d0;
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.1);
  transform: translateY(-4px);
}

.quick-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #059669;
  transition: all 0.3s ease;
}

.quick-card:hover .quick-card__icon {
  background: #059669;
  color: #fff;
}

.quick-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.quick-card__desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

/* ── Tab Browser (Category Filter) ─────────────────────────────── */
.tab-section {
  padding: 40px 0 60px;
}

.tab-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.tab-section__title {
  font-size: 1.5rem;
  font-weight: 700;
}

.tab-section__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tab-section__link:hover {
  color: #047857;
}

.tab-browser {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tab-browser::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  color: #059669;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.tab-btn--active {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.tab-btn--active:hover {
  background: #047857;
  color: #fff;
  border-color: #047857;
}

/* ── Post Grid (Article Cards) ─────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.post-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: #a7f3d0;
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.08);
  transform: translateY(-3px);
}

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

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ecfdf5;
  color: #059669;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

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

.post-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}

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

.post-card__excerpt {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #94a3b8;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.post-card__read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── FAQ Accordion ─────────────────────────────────────────────── */
.faq-section {
  padding: 60px 0;
  background: #fff;
}

.faq-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.faq-section__desc {
  color: #64748b;
  font-size: 1rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.open {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  text-align: left;
  gap: 12px;
  font-family: inherit;
}

.faq-question:hover {
  color: #059669;
}

.faq-question__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s ease;
  color: #64748b;
}

.faq-item.open .faq-question__icon {
  background: #059669;
  color: #fff;
  transform: rotate(180deg);
}

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

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

.faq-answer__content {
  padding: 0 24px 18px;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── CTA Banner ────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-radius: 20px;
  padding: 48px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.cta-banner__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.cta-banner__desc {
  font-size: 1rem;
  opacity: 0.92;
  margin-bottom: 0;
}

.cta-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ── Page Header & Wrapper ───────────────────── */
.page-wrapper{padding:24px 0 48px}
.page-header{margin-bottom:24px}
.page-header__title{font-size:1.5rem;font-weight:800;color:#0f172a;margin-bottom:4px}
.page-header__meta{font-size:.9rem;color:#64748b}

/* ── Filter Buttons ───────────────────── */
.filter-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.filter-btn{display:inline-block;padding:8px 20px;border-radius:20px;font-size:.85rem;font-weight:500;color:#475569;background:#f1f5f9;border:1px solid transparent;cursor:pointer;transition:all .15s}
.filter-btn:hover{border-color:#059669;color:#059669;background:#ecfdf5}
.filter-btn--active{background:#059669;color:#fff;border-color:#059669}
.filter-btn--active:hover{background:#047857;border-color:#047857;color:#fff}

/* ── Post Grid 3col ───────────────────── */
.post-grid--3col{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:1024px){.post-grid--3col{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.post-grid--3col{grid-template-columns:1fr}}

/* ── Portal Category Boxes ───────────────────── */
.portal-section{padding:0;margin:0}
.portal-grid-2col{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.cat-box{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}
.cat-box__header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:linear-gradient(135deg,#059669,#047857);color:#fff}
.cat-box__title{font-size:1rem;font-weight:700;margin:0;color:#fff}
.cat-box__more{font-size:.8rem;color:rgba(255,255,255,.85);text-decoration:none;white-space:nowrap}
.cat-box__more:hover{color:#fff}
.cat-box__list{list-style:none;padding:0;margin:0}
.cat-box__list li{border-bottom:1px solid #f1f5f9}
.cat-box__list li:last-child{border-bottom:none}
.cat-box__list a{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;font-size:.88rem;color:#334155;text-decoration:none;transition:background .15s,color .15s;gap:12px}
.cat-box__link-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.cat-box__link-date{font-size:.75rem;color:#94a3b8;white-space:nowrap;flex-shrink:0}
.cat-box__list a:hover{background:#ecfdf5;color:#059669}
@media(max-width:768px){.portal-grid-2col{grid-template-columns:1fr}}

/* ── Download Page ───────────────────── */
.dl-page{padding:0 0 48px}
.dl-page-header{margin-bottom:32px}
.dl-page-header h1{font-size:1.8rem;font-weight:800;margin-bottom:8px}
.dl-page-header__desc{color:#64748b;font-size:1rem;line-height:1.6}
.dl-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:40px}
.dl-box{background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden}
.dl-box__header{display:flex;align-items:center;gap:16px;padding:20px 24px;background:#ecfdf5;border-bottom:1px solid #a7f3d0}
.dl-box__icon{flex-shrink:0}
.dl-box__platform{font-size:1.1rem;font-weight:700;color:#0f172a}
.dl-box__sub-text{font-size:.82rem;color:#64748b;margin-top:2px}
.dl-box__body{padding:24px}
.dl-box__body p{font-size:.88rem;color:#475569;line-height:1.7;margin-bottom:16px}
.dl-box__body .btn{margin-bottom:20px}
.dl-box__steps{margin-bottom:16px}
.dl-box__step{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px;font-size:.86rem;color:#475569;line-height:1.6}
.dl-box__step:last-child{margin-bottom:0}
.dl-box__step-num{width:24px;height:24px;border-radius:50%;background:#059669;color:#fff;font-size:.75rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}
.dl-box__note{background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:12px 16px;font-size:.82rem;color:#92400e;line-height:1.6;margin-top:12px}
.dl-extra{margin-bottom:32px}
.dl-extra h2{font-size:1.2rem;font-weight:700;margin-bottom:16px}
.dl-extra__grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dl-extra__item{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px}
.dl-extra__item strong{font-size:.95rem;color:#0f172a;display:block;margin-bottom:6px}
.dl-extra__item p{font-size:.85rem;color:#475569;line-height:1.6;margin:0}
.dl-faq{margin-bottom:32px}
.dl-faq h2{font-size:1.2rem;font-weight:700;margin-bottom:16px}
.dl-faq__list{display:flex;flex-direction:column;gap:12px}
.dl-faq__item{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px}
.dl-faq__item strong{font-size:.92rem;color:#0f172a;display:block;margin-bottom:6px}
.dl-faq__item p{font-size:.85rem;color:#475569;line-height:1.7;margin:0}
.dl-cta{text-align:center;padding:40px;background:#ecfdf5;border-radius:16px;border:1px solid #a7f3d0}
.dl-cta strong{font-size:1.1rem;display:block;margin-bottom:8px;color:#0f172a}
.dl-cta p{font-size:.9rem;color:#475569;margin-bottom:20px}
@media(max-width:768px){.dl-grid{grid-template-columns:1fr}.dl-extra__grid{grid-template-columns:1fr}}

/* ── About Page ───────────────────── */
.about-page h1{font-size:1.8rem;font-weight:800;margin-bottom:12px}
.about-page h2{font-size:1.2rem;font-weight:700;margin:32px 0 12px;color:#0f172a}
.about-page p{font-size:.92rem;color:#475569;line-height:1.8;margin-bottom:12px}
.about-page ul{padding-left:20px;margin-bottom:16px}
.about-page li{font-size:.92rem;color:#475569;line-height:1.8;margin-bottom:4px}
.about-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}
.about-stat{text-align:center;padding:20px;background:#ecfdf5;border-radius:12px}
.about-stat__num{font-size:1.5rem;font-weight:800;color:#059669}
.about-stat__label{font-size:.85rem;color:#64748b;margin-top:4px}

/* ── Home CTA Banner ───────────────────── */
.home-cta{padding:60px 0}
.home-cta__box{background:linear-gradient(135deg,#059669 0%,#047857 100%);border-radius:20px;padding:48px 40px;color:#fff;text-align:center;position:relative;overflow:hidden}
.home-cta__box::before{content:'';position:absolute;top:-50%;right:-10%;width:300px;height:300px;background:radial-gradient(circle,rgba(255,255,255,.1) 0%,transparent 70%);border-radius:50%;pointer-events:none}
.home-cta__title{font-size:1.5rem;font-weight:700;margin-bottom:8px;color:#fff;position:relative;z-index:1}
.home-cta__desc{font-size:1rem;opacity:.92;margin-bottom:24px;color:#fff;position:relative;z-index:1}
.home-cta__btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;position:relative;z-index:1}
@media(max-width:768px){.home-cta__box{padding:32px 20px}.home-cta__title{font-size:1.2rem}.home-cta__btns{flex-direction:column;align-items:center}}

/* ── CTA Banner (full-width section variant) ───────────────────── */
.cta-section {
  padding: 60px 0;
}

.cta-section .cta-banner {
  margin: 0;
}

/* ── Archive Page (Article Listing) ────────────────────────────── */
.archive-header {
  padding: 40px 0 20px;
}

.archive-header__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.archive-header__desc {
  color: #64748b;
  font-size: 1.0625rem;
}

.archive-header__count {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-top: 4px;
}

.archive-grid {
  padding-bottom: 60px;
}

/* ── Article Page (Full-Width, No Sidebar) ─────────────────────── */
.article-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── Article Layout (sidebar + main) ──── */
.article-layout{display:grid;grid-template-columns:260px 1fr;gap:28px;padding:20px 0 48px}
.article-sidebar{position:sticky;top:80px;align-self:start}
.sidebar-block{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;margin-bottom:16px}
.sidebar-block__title{font-size:.9rem;font-weight:700;color:#0f172a;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #f1f5f9}
.sidebar-tags{display:flex;flex-wrap:wrap;gap:6px}
.tag-pill--active{background:#059669;color:#fff;border-color:#059669}
.sidebar-list{list-style:none;padding:0;margin:0}
.sidebar-list li{border-bottom:1px solid #f8f8f8;padding:7px 0;font-size:.82rem;line-height:1.5}
.sidebar-list li:last-child{border-bottom:none}
.sidebar-list a{color:#334155;text-decoration:none;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-list a:hover{color:#059669}
.sidebar-cta{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:12px;padding:20px;text-align:center}
.sidebar-cta__brand{font-size:1rem;font-weight:800;color:#059669;margin-bottom:6px}
.sidebar-cta__desc{font-size:.8rem;color:#475569;margin-bottom:14px;line-height:1.5}
.sidebar-cta .btn{margin-bottom:8px;font-size:.8rem}
.article-main{min-width:0}
.article-highlight{background:#ecfdf5;border-left:4px solid #059669;padding:14px 18px;border-radius:0 8px 8px 0;font-size:.9rem;color:#334155;line-height:1.7;margin-bottom:20px}
.article-inline-cta{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:12px 16px;font-size:.85rem;color:#475569;margin-bottom:24px}
.article-inline-cta a{color:#059669;font-weight:600}
.related-section{margin-top:40px;padding-top:24px;border-top:1px solid #e2e8f0}
.related-section h3{font-size:1.1rem;font-weight:700;margin-bottom:16px}
.related-grid{display:flex;flex-direction:column;gap:8px}
.related-item{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#f8fafc;border-radius:8px;text-decoration:none;gap:12px;transition:background .15s}
.related-item:hover{background:#ecfdf5}
.related-item__title{font-size:.85rem;color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.related-item__date{font-size:.75rem;color:#94a3b8;flex-shrink:0}
@media(max-width:860px){.article-layout{grid-template-columns:1fr}.article-sidebar{position:static;order:2}}

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

.article-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.article-header__title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #64748b;
  font-size: 0.875rem;
}

.article-header__meta svg {
  vertical-align: middle;
  margin-right: 4px;
}

.article-header__sep {
  color: #cbd5e1;
}

.article-header__desc {
  margin-top: 24px;
  padding: 20px 24px;
  background: #ecfdf5;
  border-left: 4px solid #059669;
  border-radius: 0 16px 16px 0;
  color: #064e3b;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Article Content Typography */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #334155;
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ecfdf5;
  position: relative;
}

.article-content h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #059669;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.article-content h4 {
  font-size: 1.125rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content a {
  color: #059669;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #a7f3d0;
}

.article-content a:hover {
  color: #047857;
  text-decoration-color: #059669;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-content li::marker {
  color: #059669;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 16px 24px;
  border-left: 4px solid #059669;
  background: #ecfdf5;
  border-radius: 0 16px 16px 0;
  color: #064e3b;
  font-style: italic;
}

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

.article-content pre {
  margin: 1.5rem 0;
  padding: 20px 24px;
  background: #1e293b;
  border-radius: 16px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-content code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.875em;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 6px;
  color: #047857;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: #e2e8f0;
  border-radius: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.article-content th {
  background: #ecfdf5;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: #064e3b;
  border-bottom: 2px solid #a7f3d0;
}

.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9375rem;
}

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

.article-content tr:hover td {
  background: #f8fafc;
}

.article-content img {
  border-radius: 16px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.article-content hr {
  border: none;
  height: 1px;
  background: #e2e8f0;
  margin: 2rem 0;
}

.article-content strong {
  font-weight: 700;
  color: #1e293b;
}

/* Heading anchors */
.article-content h2 .heading-anchor,
.article-content h3 .heading-anchor,
.article-content h4 .heading-anchor {
  color: #a7f3d0;
  text-decoration: none;
  margin-left: 8px;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.2s;
}

.article-content h2:hover .heading-anchor,
.article-content h3:hover .heading-anchor,
.article-content h4:hover .heading-anchor {
  opacity: 1;
  color: #059669;
}

/* Inline CTA Card */
.article-cta {
  margin: 32px 0;
  padding: 28px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.article-cta__content {
  flex: 1;
}

.article-cta__content strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #064e3b;
  margin-bottom: 4px;
}

.article-cta__content p {
  color: #047857;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

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

/* Related Posts (Horizontal Scroll) */
.related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #ecfdf5;
}

.related-posts__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.related-posts__grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #a7f3d0 #ecfdf5;
}

.related-posts__grid::-webkit-scrollbar {
  height: 6px;
}

.related-posts__grid::-webkit-scrollbar-track {
  background: #ecfdf5;
  border-radius: 3px;
}

.related-posts__grid::-webkit-scrollbar-thumb {
  background: #a7f3d0;
  border-radius: 3px;
}

.related-card {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  border-color: #a7f3d0;
  box-shadow: 0 6px 24px rgba(5, 150, 105, 0.08);
  transform: translateY(-2px);
}

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

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

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

/* ── Tags Page ─────────────────────────────────────────────────── */
.tags-header {
  padding: 40px 0 10px;
  text-align: center;
}

.tags-header__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.tags-header__desc {
  color: #64748b;
  font-size: 1.0625rem;
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 0 60px;
}

.tag-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tag-card:hover {
  border-color: #a7f3d0;
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.1);
  transform: translateY(-4px);
}

.tag-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #059669;
  transition: all 0.3s ease;
}

.tag-card:hover .tag-card__icon {
  background: #059669;
  color: #fff;
}

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

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

/* ── Tag Detail Page ───────────────────────────────────────────── */
.tag-page-header {
  padding: 20px 0 30px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.tag-page-header__title {
  font-size: 1.75rem;
  font-weight: 800;
}

.tag-page-header__count {
  color: #64748b;
  font-size: 0.9375rem;
}

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 16px 0 8px;
  font-size: 0.8125rem;
  color: #94a3b8;
}

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

.breadcrumb a:hover {
  color: #059669;
}

.breadcrumb__sep {
  color: #cbd5e1;
  margin: 0 2px;
}

.breadcrumb__current {
  color: #1e293b;
  font-weight: 500;
}

/* ── Footer (3-Column Layout) ──────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 0;
  margin-top: 60px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-brand__logo svg {
  flex-shrink: 0;
}

.footer-brand__logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
}

.footer-nav-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 20px;
}

.footer-nav-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.footer-nav-label {
  font-size: .85rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-right: 4px;
}

.footer-nav-group a {
  color: #64748b;
  font-size: .85rem;
  text-decoration: none;
  transition: color .2s;
}

.footer-nav-group a:hover {
  color: #34d399;
}

/* Footer Lang Row */
.footer-lang-row {
  padding: 16px 0;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-lang-row span {
  font-size: 0.8125rem;
  color: #475569;
}

.footer-lang-row a {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.footer-lang-row a:hover {
  color: #34d399;
  background: #1e293b;
}

.footer-lang-row a.active {
  color: #34d399;
  background: #1e293b;
}

/* Footer Bottom */
.footer-bottom {
  padding: 20px 0;
}

.footer-bottom__risk {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-bottom__risk strong {
  color: #94a3b8;
}

.footer-bottom__copy {
  font-size: 0.75rem;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Mobile Nav (Bottom Fixed) ─────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  z-index: 999;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.mobile-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  font-size: 0.6875rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
  border-radius: 8px;
}

.mobile-nav__item:hover {
  color: #059669;
}

.mobile-nav__item--active {
  color: #059669;
  font-weight: 600;
}

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

/* ── Mobile Overlay (Slide-in Menu) ────────────────────────────── */
.mobile-overlay {
  display: none;
}

/* ── Back to Top ───────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #059669;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

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

/* ── Post Page Wrapper ─────────────────────────────────────────── */
.post-page {
  min-height: 60vh;
}

/* ── Download Page ─────────────────────────────────────────────── */
.download-hero {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.download-hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.download-hero__desc {
  font-size: 1.125rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.download-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.download-features {
  padding: 60px 0;
}

.download-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-feature {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.download-feature:hover {
  border-color: #a7f3d0;
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.08);
  transform: translateY(-3px);
}

.download-feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #059669;
}

.download-feature__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.download-feature__desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

.download-steps {
  padding: 40px 0 60px;
}

.download-steps__title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 36px;
}

.download-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.download-step {
  text-align: center;
  padding: 24px 16px;
  background: #ecfdf5;
  border-radius: 16px;
  position: relative;
}

.download-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}

.download-step__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.download-step__desc {
  font-size: 0.8125rem;
  color: #64748b;
}

/* ── About Page ────────────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, #059669 0%, #065f46 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.about-hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.about-hero__desc {
  font-size: 1.125rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.about-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ecfdf5;
}

.about-content p {
  color: #475569;
  line-height: 1.8;
}

.about-values {
  padding: 40px 0 60px;
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.about-value {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.about-value__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.about-value__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.about-value__desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

/* ── 404 Page ──────────────────────────────────────────────────── */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-page__code {
  font-size: 8rem;
  font-weight: 800;
  color: #ecfdf5;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.error-page__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-page__desc {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.error-page__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ── Disclaimer Page ───────────────────────────────────────────── */
.disclaimer-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.disclaimer-page h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.disclaimer-page h2 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.disclaimer-page p {
  color: #475569;
  line-height: 1.8;
}

/* ── Section Divider ───────────────────────────────────────────── */
.section-divider {
  border: none;
  height: 1px;
  background: #e2e8f0;
  margin: 0;
}

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

/* ── Loading Skeleton ──────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 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; }
}

/* ── Post Inline CTA (for post.njk) ───────────────────────────── */
.post-inline-cta {
  margin: 32px 0;
  padding: 28px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.post-inline-cta__content strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #064e3b;
  margin-bottom: 4px;
}

.post-inline-cta__content p {
  color: #047857;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

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

/* ── Utility Classes ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.pt-0 { padding-top: 0; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 2rem; }
.pt-6 { padding-top: 3rem; }

.pb-0 { padding-bottom: 0; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 2rem; }
.pb-6 { padding-bottom: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.fs-xs { font-size: 0.75rem; }
.fs-sm { font-size: 0.875rem; }
.fs-md { font-size: 1rem; }
.fs-lg { font-size: 1.125rem; }
.fs-xl { font-size: 1.25rem; }
.fs-2xl { font-size: 1.5rem; }

.text-primary { color: #059669; }
.text-muted { color: #64748b; }
.text-dark { color: #1e293b; }
.text-light { color: #94a3b8; }
.text-white { color: #fff; }

.bg-primary { background-color: #059669; }
.bg-light { background-color: #ecfdf5; }
.bg-white { background-color: #fff; }
.bg-dark { background-color: #0f172a; }

.rounded { border-radius: 16px; }
.rounded-sm { border-radius: 8px; }
.rounded-lg { border-radius: 20px; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); }
.shadow-lg { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12); }

.overflow-hidden { overflow: hidden; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
}

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

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

.border { border: 1px solid #e2e8f0; }
.border-green { border-color: #a7f3d0; }
.border-none { border: none; }

.transition { transition: all 0.3s ease; }

/* Visually hidden but accessible */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── Portal Sections (Homepage Category Blocks) ──────────────── */
.portal-section {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.portal-section:last-of-type {
  border-bottom: none;
}

.portal-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.portal-section__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #059669;
  font-size: 1.1rem;
}

.portal-section__icon--rocket::before { content: "\1F680"; }
.portal-section__icon--smartphone::before { content: "\1F4F1"; }
.portal-section__icon--shield::before { content: "\1F6E1"; }
.portal-section__icon--wallet::before { content: "\1F4B0"; }
.portal-section__icon--chart::before { content: "\1F4C8"; }
.portal-section__icon--trending::before { content: "\1F4C8"; }
.portal-section__icon--coin::before { content: "\1FA99"; }
.portal-section__icon--book::before { content: "\1F4D6"; }

.portal-section__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.portal-section__link:hover {
  color: #047857;
  text-decoration: none;
}

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

.portal-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 22px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.portal-card:hover {
  border-color: #a7f3d0;
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.08);
  transform: translateY(-3px);
  text-decoration: none;
}

.portal-card__tag {
  margin-bottom: 10px;
}

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

.portal-card:hover .portal-card__title {
  color: #059669;
}

.portal-card__desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.portal-card__meta {
  font-size: 0.75rem;
  color: #94a3b8;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.portal-section__empty {
  color: #94a3b8;
  font-size: 0.875rem;
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 0;
}

/* Print styles */
@media print {
  .top-bar,
  .site-header,
  .mobile-nav,
  .site-footer,
  .back-to-top,
  .nav-overlay,
  .post-inline-cta,
  .article-cta,
  .cta-banner,
  .cta-section {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .article-page {
    max-width: 100%;
    padding: 0;
  }

  .article-content a {
    text-decoration: underline;
  }
}

/* ── Responsive: 1024px ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

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

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }

  .cta-banner__actions {
    justify-content: center;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__decoration {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .site-nav.open .nav-link {
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .header-actions .header-cta {
    display: none;
  }

  .about-values__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Responsive: 768px ─────────────────────────────────────────── */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

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

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__desc {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__search {
    max-width: 100%;
  }

  .quick-section {
    padding: 40px 0 24px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .quick-card {
    padding: 20px 16px;
  }

  .tab-section {
    padding: 24px 0 40px;
  }

  .tab-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portal-section {
    padding: 28px 0;
  }

  .portal-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }

  .portal-card {
    padding: 18px;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-card {
    padding: 20px;
  }

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

  .tag-card {
    padding: 18px 14px;
  }

  .tag-page-header {
    flex-direction: column;
    gap: 4px;
  }

  .article-page {
    padding: 20px 16px 60px;
  }

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

  .article-header__meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .article-header__desc {
    padding: 16px 18px;
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.25rem;
    margin-top: 36px;
  }

  .article-content h3 {
    font-size: 1.125rem;
    margin-top: 28px;
  }

  .article-cta,
  .post-inline-cta {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }

  .article-cta__buttons,
  .post-inline-cta__buttons {
    flex-direction: column;
    width: 100%;
  }

  .article-cta__buttons .btn,
  .post-inline-cta__buttons .btn {
    width: 100%;
  }

  .related-card {
    min-width: 240px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.9375rem;
  }

  .faq-answer__content {
    padding: 0 18px 16px;
    font-size: 0.875rem;
  }

  .cta-banner {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .cta-banner__title {
    font-size: 1.25rem;
  }

  .cta-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner__actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .download-hero__title {
    font-size: 1.75rem;
  }

  .download-hero__actions {
    flex-direction: column;
  }

  .download-features__grid {
    grid-template-columns: 1fr;
  }

  .download-steps__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .about-hero__title {
    font-size: 1.75rem;
  }

  .about-values__grid {
    grid-template-columns: 1fr;
  }

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

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

  .top-bar__left {
    display: none;
  }

  .top-bar__inner {
    justify-content: flex-end;
  }

  .mobile-nav {
    display: block;
  }

  body {
    padding-bottom: 60px;
  }

  .back-to-top {
    bottom: 80px;
  }

  .breadcrumb {
    font-size: 0.75rem;
  }

  .site-header__inner {
    height: 56px;
  }

  .site-logo__text {
    font-size: 1.0625rem;
  }
}

/* ── Responsive: 480px ─────────────────────────────────────────── */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

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

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .quick-card {
    padding: 16px 12px;
  }

  .quick-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .quick-card__title {
    font-size: 0.875rem;
  }

  .quick-card__desc {
    font-size: 0.75rem;
  }

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

  .post-card {
    padding: 16px;
  }

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

  .post-card__excerpt {
    -webkit-line-clamp: 2;
  }

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

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

  .tag-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

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

  .article-content {
    font-size: 1rem;
  }

  .article-content pre {
    padding: 14px 16px;
    font-size: 0.8125rem;
    border-radius: 12px;
  }

  .article-content table {
    font-size: 0.8125rem;
  }

  .article-content th,
  .article-content td {
    padding: 8px 12px;
  }

  .related-card {
    min-width: 200px;
    padding: 16px;
  }

  .related-card__title {
    font-size: 0.875rem;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

  .faq-answer__content {
    padding: 0 16px 14px;
    font-size: 0.8125rem;
  }

  .cta-banner {
    padding: 24px 16px;
  }

  .footer-bottom__copy {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .download-hero {
    padding: 40px 0;
  }

  .download-hero__title {
    font-size: 1.5rem;
  }

  .download-steps__grid {
    grid-template-columns: 1fr;
  }

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

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

  .btn {
    padding: 8px 18px;
    font-size: 0.875rem;
  }

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

  .site-logo__img {
    width: 30px;
    height: 30px;
  }
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth scrollbar for the body */
@supports (scrollbar-width: thin) {
  html {
    scrollbar-width: thin;
    scrollbar-color: #a7f3d0 #ecfdf5;
  }
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: #ecfdf5;
}

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

html::-webkit-scrollbar-thumb:hover {
  background: #6ee7b7;
}

/* ── Article Layout (Left Sidebar) ───────────────────────────── */
.article-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 24px 0 48px; }
.article-sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-cta { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 16px; padding: 24px; margin-bottom: 24px; text-align: center; }
.sidebar-cta__brand { font-size: 1.2rem; font-weight: 800; color: #059669; margin-bottom: 8px; }
.sidebar-cta__desc { font-size: .85rem; color: #475569; margin-bottom: 16px; }
.sidebar-cta .btn { margin-bottom: 8px; }
.sidebar-block { background: #fff; border: 1px solid #f0f0f0; border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.sidebar-block__title { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: #0f172a; }
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li { padding: 8px 0; border-bottom: 1px solid #f8f8f8; font-size: .88rem; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: #334155; text-decoration: none; }
.sidebar-list a:hover { color: #059669; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-main { min-width: 0; }
@media(max-width:860px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { position: static; } }
