@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

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

/* ─── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --green:       #078037;
  --green-light: #ebf5f0;
  --green-mid:   #a8d5bb;
  --green-dark:  #055a27;
  --orange:      #fc8600;
  --orange-light:#fff4e0;
  --dark:        #2c3440;

  /* Section identity — each section owns exactly one color */
  --learn-color: #0e7490;   /* teal  */
  --learn-light: #ecfeff;
  --learn-mid:   #a5f3fc;
  --grow-color:  #b45309;   /* amber */
  --grow-light:  #fffbeb;
  --grow-mid:    #fcd34d;
  --ask-color:   #4338ca;   /* indigo */
  --ask-light:   #eef2ff;
  --ask-mid:     #a5b4fc;

  /* Platform chips — two distinct signals */
  --web-bg:      var(--green-light);
  --web-text:    var(--green-dark);
  --web-border:  var(--green-mid);
  --mob-bg:      #eef0f4;
  --mob-text:    var(--dark);
  --mob-border:  #c8cdd8;
  --both-bg:     var(--orange-light);
  --both-text:   #7a4500;
  --both-border: #fcd09a;

  /* Neutrals */
  --white:  #ffffff;
  --bg:     #f7f8f7;
  --b1:     #e2e5e2;
  --b2:     #c4c9c4;
  --tx:     #1a241a;
  --t2:     #374437;
  --t3:     #596159;

  /* Radii */
  --r6:  6px;
  --r10: 10px;
  --r14: 14px;
  --r20: 20px;

  /* Typography */
  --sans:  'DM Sans', system-ui, sans-serif;
  --serif: 'Lora', Georgia, serif;
}

/* ─── BASE ───────────────────────────────────────────────────────────────── */
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--tx);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.65;
  min-width: 320px;
}

/* ─── NAV ────────────────────────────────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1.5px solid var(--b1);
  position: sticky;
  top: 0;
  z-index: 200;
}
.ni {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-mark img {
  height: 32px;
  width: auto;
  display: block;
}
.logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -.2px;
  white-space: nowrap;
}
.logo-text span { color: var(--b2); font-weight: 400; }
.nav-divider { width: 1px; height: 20px; background: var(--b1); flex-shrink: 0; }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.search-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: var(--bg);
  border: 1.5px solid var(--b1);
  border-radius: var(--r6);
  color: var(--t2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--sans);
  white-space: nowrap;
}
.search-trigger:hover { border-color: var(--b2); background: var(--white); color: var(--dark); }
.search-trigger svg { width: 14px; height: 14px; color: var(--t3); flex-shrink: 0; }
.back-link {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  height: 36px;
  padding: 0 16px;
  background: var(--green);
  border: 1.5px solid var(--green);
  border-radius: var(--r6);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
  white-space: nowrap;
}
.back-link svg { color: rgba(255,255,255,.75); }
.back-link:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

/* ─── TABS ───────────────────────────────────────────────────────────────── */
.tabs-wrap { background: var(--white); border-bottom: 1.5px solid var(--b1); }
.tabs { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; }
.tab {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--t3);
  text-decoration: none;
  padding: 13px 20px;
  border-bottom: 2.5px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.tab:hover { color: var(--dark); }
.tab.on { color: var(--green); border-bottom-color: var(--green); }

/* ─── PLATFORM CHIPS ─────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px 3px 6px;
  border-radius: 100px;
  width: fit-content;
}
.chip svg { width: 12px; height: 12px; flex-shrink: 0; }
.chip-web  { background: var(--web-bg);  color: var(--web-text);  border: 1px solid var(--web-border); }
.chip-mob  { background: var(--mob-bg);  color: var(--mob-text);  border: 1px solid var(--mob-border); }
.chip-both { background: var(--both-bg); color: var(--both-text); border: 1px solid var(--both-border); }

/* ─── BREADCRUMB ─────────────────────────────────────────────────────────── */
.bc {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--t3);
  flex-wrap: wrap;
}
.bc a { color: var(--t3); text-decoration: none; transition: color .15s; }
.bc a:hover { color: var(--green); }
.bc-sep { color: var(--b2); }
.bc-cur { color: var(--t2); font-weight: 500; }

/* ─── SEARCH MODAL ───────────────────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 36, 28, .55);
  z-index: 500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { display: flex; }
.search-modal {
  background: var(--white);
  border-radius: var(--r20);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  overflow: hidden;
  margin: 0 16px;
}
.search-modal-top {
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--b1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-modal-top svg { color: var(--t3); flex-shrink: 0; width: 17px; height: 17px; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--tx);
  background: transparent;
}
.search-input::placeholder { color: var(--b2); }
.search-close {
  font-size: 12px;
  color: var(--t3);
  background: var(--bg);
  border: 1.5px solid var(--b1);
  border-radius: var(--r6);
  padding: 3px 8px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  white-space: nowrap;
}
.search-close:hover { color: var(--dark); border-color: var(--b2); }
.search-results { max-height: 420px; overflow-y: auto; }
.search-empty { padding: 40px 20px; text-align: center; color: var(--t3); font-size: 14px; }
.search-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--b1);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.search-result:hover { background: var(--green-light); }
.search-result:last-child { border-bottom: none; }
.sr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sr-cat { font-size: 12px; color: var(--t3); font-weight: 500; }
.sr-title { font-size: 14.5px; font-weight: 600; color: var(--dark); line-height: 1.35; }
.sr-excerpt { font-size: 13px; color: var(--t2); line-height: 1.5; }
.search-footer {
  padding: 10px 20px;
  background: var(--bg);
  border-top: 1.5px solid var(--b1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-footer-note { font-size: 12px; color: var(--t3); }
.search-footer-count { font-size: 12px; font-weight: 600; color: var(--t3); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1.5px solid var(--b1);
  padding: 26px 24px;
  background: var(--white);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { font-size: 12.5px; color: var(--t3); font-weight: 500; }
.footer-brand span { color: var(--green); font-weight: 600; }
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 12px; color: var(--t3); text-decoration: none; transition: color .15s; }
.footer-link:hover { color: var(--dark); }

/* ─── SECTION CARDS (homepage hub) ──────────────────────────────────────── */
.hub { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 52px; }
.hub-card {
  background: var(--white);
  border: 1.5px solid var(--b1);
  border-radius: var(--r20);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all .2s;
}
.hub-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.hub-card:hover .hub-arrow { color: var(--green); background: var(--green-light); border-color: var(--green); }

/* Each section card gets its own hover border color */
.hub-card.card-learn:hover { border-color: var(--learn-color); }
.hub-card.card-grow:hover  { border-color: var(--grow-color); }
.hub-card.card-ask:hover   { border-color: var(--ask-color); }

.hub-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r10);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
/* Section icon backgrounds — distinct, never green/orange */
.icon-learn { background: var(--learn-color); }
.icon-grow  { background: var(--grow-color); }
.icon-ask   { background: var(--ask-color); }
.hub-icon svg { width: 22px; height: 22px; }

.hub-card h2 { font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.hub-card p { font-size: 13.5px; color: var(--t2); line-height: 1.6; }
.hub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1.5px solid var(--bg);
  margin-top: auto;
}
.hub-count { font-size: 12px; color: var(--t3); font-weight: 500; }
.hub-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--b1);
  display: grid;
  place-items: center;
  color: var(--t3);
  transition: all .15s;
}

/* ─── ARTICLE CARDS ──────────────────────────────────────────────────────── */
.article-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 52px; }
.article-card {
  background: var(--white);
  border: 1.5px solid var(--b1);
  border-radius: var(--r14);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s;
}
.article-card:hover { border-color: var(--green-mid); box-shadow: 0 2px 12px rgba(7,128,55,.07); }
.article-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}
.tag-web { background: var(--green); color: #fff; }
.tag-mob { background: var(--dark);  color: #fff; }
.article-title { font-size: 14.5px; font-weight: 600; color: var(--dark); line-height: 1.35; letter-spacing: -.1px; }
.article-desc  { font-size: 13.5px; color: var(--t2); line-height: 1.6; }
.article-foot  { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1.5px solid var(--bg); }
.article-meta  { font-size: 12px; color: var(--t3); font-weight: 500; }
.article-read  { font-size: 12.5px; color: var(--green); font-weight: 600; }

/* ─── TOPIC PILLS ────────────────────────────────────────────────────────── */
.topics { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 52px; }
.topic-pill {
  background: var(--white);
  border: 1.5px solid var(--b1);
  border-radius: var(--r10);
  padding: 14px;
  text-decoration: none;
  color: var(--t2);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all .15s;
}
.topic-pill:hover { background: var(--green-light); border-color: var(--green-mid); color: var(--green); }
.topic-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r6);
  background: var(--bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.topic-icon svg { width: 14px; height: 14px; color: var(--t3); }
.topic-pill:hover .topic-icon { background: rgba(7,128,55,.12); }
.topic-pill:hover .topic-icon svg { color: var(--green); }

/* ─── SECTION HEADER ─────────────────────────────────────────────────────── */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-head-left { display: flex; align-items: center; gap: 8px; }
.section-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }
.see-all { font-size: 13px; font-weight: 600; color: var(--green); text-decoration: none; display: flex; align-items: center; gap: 4px; }
.see-all:hover { opacity: .75; }

/* ─── WAITLIST BANNER ────────────────────────────────────────────────────── */
.waitlist {
  background: var(--dark);
  border-radius: var(--r20);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
}
.waitlist-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.waitlist h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; color: #fff; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 10px; }
.waitlist h2 em { color: var(--orange); font-style: italic; }
.waitlist p { font-size: 14.5px; color: rgba(255,255,255,.6); line-height: 1.65; }
.waitlist-form { display: flex; flex-direction: column; gap: 10px; }
.waitlist-label { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 600; }
.waitlist-row { display: flex; gap: 8px; }
.waitlist-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  font-family: var(--sans);
  font-size: 13.5px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--r6);
  color: #fff;
  outline: none;
  transition: border-color .2s;
}
.waitlist-input::placeholder { color: rgba(255,255,255,.3); }
.waitlist-input:focus { border-color: var(--orange); }
.waitlist-btn {
  height: 42px;
  padding: 0 20px;
  background: var(--orange);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--r6);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
  flex-shrink: 0;
}
.waitlist-btn:hover { opacity: .88; }
.waitlist-note { font-size: 11.5px; color: rgba(255,255,255,.3); }
.waitlist-success { display: none; font-size: 13.5px; color: #6ee7a8; background: rgba(7,128,55,.15); border: 1px solid rgba(7,128,55,.25); border-radius: var(--r6); padding: 12px 16px; }

/* ─── LEARN PAGE ─────────────────────────────────────────────────────────── */
.platform-filter-bar { background: var(--bg); border-bottom: 1.5px solid var(--b1); }
.platform-filter { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label { font-size: 12px; font-weight: 600; color: var(--t3); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.seg { display: flex; background: var(--white); border: 1.5px solid var(--b1); border-radius: 100px; padding: 3px; gap: 2px; }
.seg-btn {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--t3);
  padding: 5px 16px;
  border-radius: 100px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--sans);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.seg-btn svg { width: 13px; height: 13px; }
.seg-btn.on { background: var(--green); color: #fff; }
.seg-btn:hover:not(.on) { background: var(--green-light); color: var(--green); }
.filter-clear {
  font-size: 12px;
  color: var(--t3);
  padding: 5px 10px;
  border: 1.5px solid var(--b1);
  border-radius: 100px;
  cursor: pointer;
  background: none;
  font-family: var(--sans);
  transition: all .15s;
  display: none;
  align-items: center;
  gap: 5px;
}
.filter-clear.vis { display: inline-flex; }
.filter-clear:hover { border-color: var(--b2); color: var(--t2); }

.page-header { max-width: 1200px; margin: 0 auto; padding: 16px 24px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--dark); letter-spacing: -.02em; }
.page-sub { font-size: 14px; color: var(--t3); margin-top: 4px; }
.plat-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 100px; }
.badge-all { background: var(--bg); color: var(--t3); border: 1.5px solid var(--b1); }
.badge-web { background: var(--green); color: #fff; }
.badge-mob { background: var(--dark); color: #fff; }

.learn-layout { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }

/* Sidebar */
.sidebar { position: sticky; top: 112px; }
.sidebar-search { position: relative; margin-bottom: 16px; }
.sidebar-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  font-family: var(--sans);
  font-size: 13px;
  background: var(--white);
  border: 1.5px solid var(--b1);
  border-radius: var(--r6);
  color: var(--tx);
  outline: none;
}
.sidebar-search input:focus { border-color: var(--green); }
.sidebar-search input::placeholder { color: var(--b2); }
.sidebar-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--b2); pointer-events: none; width: 13px; height: 13px; }
.sb-group-label { font-size: 10.5px; font-weight: 600; color: var(--t3); letter-spacing: .07em; text-transform: uppercase; margin: 8px 0 6px; padding: 0 8px; }
.sb-section { margin-bottom: 2px; }
.sb-cat { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: var(--r6); cursor: pointer; transition: all .15s; gap: 8px; user-select: none; }
.sb-cat:hover, .sb-cat.open { background: var(--green-light); }
.sb-cat-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sb-cat-icon { width: 24px; height: 24px; border-radius: var(--r6); background: var(--bg); display: grid; place-items: center; flex-shrink: 0; color: var(--t3); }
.sb-cat-icon svg { width: 12px; height: 12px; }
.sb-cat.open .sb-cat-icon { background: var(--green); color: #fff; }
.sb-cat-name { font-size: 13px; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-cat-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.sb-count { font-size: 10px; font-weight: 600; color: var(--t3); background: var(--bg); border: 1px solid var(--b1); border-radius: 100px; padding: 1px 6px; }
.sb-cat.open .sb-count { background: rgba(7,128,55,.1); color: var(--green); border-color: var(--green-mid); }
.sb-chevron { color: var(--b2); transition: transform .2s; }
.sb-cat.open .sb-chevron { transform: rotate(90deg); }
.sb-subs { display: none; margin-bottom: 2px; }
.sb-subs.open { display: block; }
.sb-sub { display: block; padding: 5px 10px 5px 20px; border-radius: var(--r6); font-size: 12.5px; color: var(--t2); text-decoration: none; transition: all .15s; border-left: 2px solid transparent; margin-left: 10px; }
.sb-sub:hover { color: var(--green); background: var(--green-light); border-left-color: var(--green-mid); }
.sb-divider { height: 1px; background: var(--b1); margin: 12px 0; }

/* Content area */
.content-area { min-width: 0; }
.plat-intro { background: var(--white); border: 1.5px solid var(--b1); border-radius: var(--r14); padding: 18px 22px; margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.pi-icon { width: 42px; height: 42px; border-radius: var(--r10); display: grid; place-items: center; flex-shrink: 0; }
.pi-green { background: var(--green); }
.pi-dark  { background: var(--dark); }
.pi-neutral { background: var(--bg); border: 1.5px solid var(--b1); }
.pi-text h3 { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.pi-text p  { font-size: 13.5px; color: var(--t2); line-height: 1.55; }
.cat-section { margin-bottom: 36px; }
.cat-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-top: 1.5px solid var(--b1); padding-top: 20px; }
.cat-header:first-child { border-top: none; padding-top: 0; }
.cat-icon { width: 32px; height: 32px; border-radius: var(--r10); display: grid; place-items: center; flex-shrink: 0; }
.cat-icon svg { width: 15px; height: 15px; }
.ci-green  { background: var(--green); color: #fff; }
.ci-dark   { background: var(--dark);  color: #fff; }
.ci-orange { background: var(--orange); color: #fff; }
.ci-teal   { background: var(--learn-color); color: #fff; }
.ci-neutral{ background: var(--green-light); border: 1.5px solid var(--green-mid); }
.ci-neutral svg { color: var(--green) !important; }
.cat-title { font-size: 15.5px; font-weight: 600; color: var(--dark); }
.cat-count { font-size: 11.5px; color: var(--t3); background: var(--bg); border: 1px solid var(--b1); border-radius: 100px; padding: 2px 8px; font-weight: 500; margin-left: auto; }
.sub-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.sub-card { background: var(--white); border: 1.5px solid var(--b1); border-radius: var(--r14); padding: 16px 18px; color: inherit; transition: all .2s; display: flex; flex-direction: column; }
.sub-card:hover { border-color: var(--green-mid); box-shadow: 0 2px 12px rgba(7,128,55,.07); }
.sub-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sub-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.sub-arrow-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.sub-arrow { color: var(--b2); flex-shrink: 0; transition: all .15s; }
.sub-arrow-link:hover .sub-arrow { color: var(--green); transform: translateX(2px); }
.sub-arts { display: flex; flex-direction: column; gap: 4px; }
.sub-art { font-size: 12.5px; color: var(--t2); padding-left: 10px; position: relative; line-height: 1.45; }
.sub-art::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--b2); position: absolute; left: 0; top: 7px; }
.sub-art-link { font-size: 12.5px; color: var(--t2); text-decoration: none; padding-left: 10px; position: relative; line-height: 1.55; display: block; }
.sub-art-link::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--b2); position: absolute; left: 0; top: 7px; transition: background .15s; }
.sub-art-link:hover { color: var(--green); }
.sub-art-link:hover::before { background: var(--green); }
.sub-more { font-size: 11.5px; color: var(--t3); font-weight: 500; margin-top: 4px; }
.art-rows { display: flex; flex-direction: column; gap: 10px; }
.art-row { background: var(--white); border: 1.5px solid var(--b1); border-radius: var(--r10); padding: 14px 18px; text-decoration: none; color: inherit; display: flex; align-items: center; gap: 12px; transition: all .2s; }
.art-row:hover { border-color: var(--green-mid); box-shadow: 0 1px 8px rgba(7,128,55,.06); }
.art-row-title { font-size: 13.5px; font-weight: 500; color: var(--dark); flex: 1; min-width: 0; line-height: 1.4; }
.art-row-meta { font-size: 11.5px; color: var(--t3); font-weight: 500; white-space: nowrap; }
.art-row-arrow { color: var(--b2); flex-shrink: 0; transition: all .15s; }
.art-row:hover .art-row-arrow { color: var(--green); transform: translateX(2px); }
.section-divider { font-size: 11px; font-weight: 600; color: var(--t3); letter-spacing: .08em; text-transform: uppercase; margin: 40px 0 24px; display: flex; align-items: center; gap: 8px; }
.section-divider-bar { width: 3px; height: 16px; border-radius: 2px; flex-shrink: 0; }

/* ─── ARTICLE PAGE ───────────────────────────────────────────────────────── */
.article-layout { max-width: 1200px; margin: 0 auto; padding: 24px 24px 80px; display: grid; grid-template-columns: 220px minmax(0,1fr) 190px; gap: 40px; align-items: start; }

/* Left sidebar */
.left-sidebar { position: sticky; top: 112px; min-width: 0; }
.ls-group { font-size: 11px; font-weight: 600; color: var(--t3); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 8px; padding: 0 10px; }
.ls-link { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: var(--r6); font-size: 13px; color: var(--t2); text-decoration: none; transition: all .15s; line-height: 1.45; border-left: 2px solid transparent; word-break: break-word; }
.ls-link:hover { color: var(--green); background: var(--green-light); border-left-color: var(--green-mid); }
.ls-link.on { color: var(--green); font-weight: 600; background: var(--green-light); border-left-color: var(--green); }
.ls-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--b2); flex-shrink: 0; margin-top: 6px; }
.ls-link.on .ls-dot { background: var(--green); }
.ls-divider { height: 1px; background: var(--b1); margin: 14px 0; }

/* Article content */
.article-wrap { min-width: 0; }
.article-header { margin-bottom: 28px; }
.article-plat-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 4px 11px 4px 8px; border-radius: 100px; margin-bottom: 14px; }
.chip-icon { width: 13px; height: 13px; flex-shrink: 0; }
.article-title { font-family: var(--serif); font-size: clamp(22px,3vw,30px); font-weight: 400; color: var(--dark); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1.5px solid var(--b1); }
.meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--t3); font-weight: 500; }
.meta-item svg { width: 13px; height: 13px; color: var(--b2); flex-shrink: 0; }
.meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--b2); }
.article-body { color: var(--t2); }
.article-intro { font-size: 16px; color: var(--t2); line-height: 1.75; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1.5px solid var(--b1); }
.article-section { margin-bottom: 40px; scroll-margin-top: 120px; }
.article-section h2 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--dark); margin-bottom: 14px; line-height: 1.3; display: flex; align-items: center; gap: 10px; }
.sec-num { width: 26px; height: 26px; background: var(--green); color: #fff; border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.article-section p { color: var(--t2); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.article-section p strong { color: var(--dark); font-weight: 600; }
.art-ul { margin: 14px 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.art-ul li { display: flex; gap: 12px; font-size: 15px; color: var(--t2); line-height: 1.7; align-items: flex-start; width: 100%; }
.li-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 9px; }
.li-body { flex: 1; min-width: 0; }
.li-body strong { color: var(--dark); font-weight: 600; }
.img-block { margin: 18px 0 22px; border-radius: var(--r14); overflow: hidden; border: 1.5px solid var(--b1); background: var(--white); }
.img-block img { width: 100%; height: auto; display: block; }
.img-caption { font-size: 12.5px; color: var(--t3); font-style: italic; padding: 9px 16px; background: var(--bg); border-top: 1px solid var(--b1); text-align: center; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r10); margin: 18px 0; border-left: 3px solid; }
.callout-tip  { background: var(--green-light); border-left-color: var(--green); }
.callout-warn { background: var(--orange-light); border-left-color: var(--orange); }
.callout-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.callout-tip  .callout-icon { color: var(--green); }
.callout-warn .callout-icon { color: var(--orange); }
.callout-label { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 5px; }
.callout-tip  .callout-label { color: var(--green-dark); }
.callout-warn .callout-label { color: #7a4500; }
.callout-text { font-size: 13.5px; line-height: 1.65; margin: 0; }
.callout-tip  .callout-text { color: var(--green-dark); }
.callout-warn .callout-text { color: #5a3200; }

/* Feedback */
.feedback { background: var(--white); border: 1.5px solid var(--b1); border-radius: var(--r14); padding: 24px; margin-top: 40px; text-align: center; }
.feedback h4 { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 16px; }
.fb-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fb-btn { display: flex; align-items: center; gap: 7px; padding: 9px 22px; border-radius: 100px; font-size: 14px; font-weight: 500; border: 1.5px solid var(--b1); background: var(--white); cursor: pointer; font-family: var(--sans); color: var(--t2); transition: all .15s; }
.fb-btn:hover { border-color: var(--green-mid); background: var(--green-light); color: var(--green); }
.fb-btn.sel-yes { background: var(--green); color: #fff; border-color: var(--green); }
.fb-btn.sel-no  { background: var(--dark); color: #fff; border-color: var(--dark); }
.fb-thanks { font-size: 13.5px; color: var(--t3); margin-top: 12px; display: none; }

/* Prev/Next */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1.5px solid var(--b1); }
.nav-btn { background: var(--white); border: 1.5px solid var(--b1); border-radius: var(--r14); padding: 16px 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 5px; transition: all .2s; }
.nav-btn:hover { border-color: var(--green-mid); box-shadow: 0 2px 12px rgba(7,128,55,.08); }
.nav-btn.prev { align-items: flex-start; }
.nav-btn.next { align-items: flex-end; text-align: right; }
.nav-dir { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); display: flex; align-items: center; gap: 5px; }
.nav-dir svg { width: 12px; height: 12px; }
.nav-title { font-size: 13.5px; font-weight: 600; color: var(--dark); line-height: 1.35; }
.nav-cat   { font-size: 12px; color: var(--t3); }

/* Right sidebar TOC */
.right-sidebar { position: sticky; top: 112px; min-width: 0; }
.toc-label { font-size: 11px; font-weight: 600; color: var(--t3); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 10px; }
.toc-item { display: block; font-size: 13px; color: var(--t3); text-decoration: none; padding: 6px 10px; border-radius: var(--r6); border-left: 2px solid transparent; transition: all .15s; line-height: 1.45; cursor: pointer; word-break: break-word; }
.toc-item:hover { color: var(--green); border-left-color: var(--green-mid); background: var(--green-light); }
.toc-item.on { color: var(--green); font-weight: 600; border-left-color: var(--green); background: var(--green-light); }
.toc-divider { height: 1px; background: var(--b1); margin: 14px 0; }
.toc-action { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--t3); padding: 6px 10px; border-radius: var(--r6); transition: all .15s; text-decoration: none; font-weight: 500; }
.toc-action:hover { color: var(--green); background: var(--green-light); }
.toc-action svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .article-layout { grid-template-columns: 220px 1fr; }
  .right-sidebar { display: none; }
}
@media (max-width: 860px) {
  .hub { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .topics { grid-template-columns: repeat(2,1fr); }
  .waitlist { grid-template-columns: 1fr; padding: 32px 24px; }
  .learn-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ni { padding: 0 16px; }
  .search-trigger kbd { display: none; }
  .back-link { font-size: 12px; padding: 0 12px; }
  .article-layout { grid-template-columns: 1fr; padding: 20px 16px 60px; gap: 0; }
  .left-sidebar { display: none; }
  .article-nav { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tab { padding: 12px 14px; font-size: 13px; }
  .search-trigger span { display: none; }
  .topics { grid-template-columns: 1fr; }
  .waitlist-row { flex-direction: column; }
  .fb-btns { flex-direction: column; align-items: center; }
  .art-ul li { font-size: 14.5px; }
}
