/* ================================================
   Journal — Beyond Young Academy
   New styles only. Reuses design-system vars/classes
   from styles.css (topbar, nav, page-hero, eyebrow,
   section, btn…). All new selectors prefixed jl-.
   ================================================ */

/* ---------- filter chips ---------- */
.jl-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 40px;
}
.jl-chips button {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.jl-chips button:hover { border-color: var(--awning); }
.jl-chips button.is-on {
  background: var(--awning);
  color: #fff;
  border-color: var(--awning);
}

/* ---------- featured post ---------- */
.jl-featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  text-decoration: none;
  color: inherit;
}
.jl-featured:hover { color: inherit; }
.jl-featured .jl-fimg { position: relative; min-height: 300px; background: var(--ivory-100); }
.jl-featured .jl-fimg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.jl-featured .jl-fbody {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jl-featured h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.2;
  color: var(--awning-dark);
}
.jl-featured .jl-fbody p {
  color: var(--stone-600);
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.6;
  flex: 1;
}
.jl-featured .jl-read {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--awning);
}
.jl-featured:hover .jl-read { color: var(--awning-dark); }

/* ---------- badges ---------- */
.jl-badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}
.jl-b-article { background: #e9f2ec; color: var(--awning); }
.jl-b-video   { background: #fdf3d5; color: #8a6d10; }
.jl-b-update  { background: #eceef6; color: #3f4c8c; }
.jl-b-zh      { background: #f6e9ec; color: #9c3d55; }
.jl-b-gallery { background: #e9f2ec; color: var(--awning); }
.jl-b-comp    { background: #fdf3d5; color: #8a6d10; }

/* ---------- card grid ---------- */
.jl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.jl-card {
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.jl-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.jl-card.jl-hide { display: none; }
.jl-card .jl-pimg {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ivory-100);
}
.jl-card .jl-pimg img { width: 100%; height: 100%; object-fit: cover; }
.jl-card .jl-pbody {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.jl-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.3;
  color: var(--awning-dark);
}
.jl-card p {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--stone-600);
  flex: 1;
}
.jl-card .jl-meta {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--stone-400);
}
.jl-card.jl-note {
  background: linear-gradient(180deg, #fffdf4, #fdf7e2);
  border-color: #eadfb4;
}
.jl-card.jl-note .jl-pbody { padding-top: 24px; }
.jl-card.jl-note h4 { font-size: 16.5px; }

/* ---------- subscribe band ---------- */
.jl-subscribe {
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-lg);
  padding: 38px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 56px;
}
.jl-subscribe h2 { font-size: 26px; }
.jl-subscribe p {
  color: var(--stone-600);
  font-family: var(--font-serif);
  font-size: 14.5px;
  margin-top: 8px;
}
.jl-subscribe .jl-wechat {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--stone-400);
  margin-top: 10px;
}
.jl-subform { display: flex; gap: 8px; }
.jl-subform input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 15px;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  background: var(--ivory-50);
}
.jl-subform .btn {
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  white-space: nowrap;
}

/* ---------- post detail page ---------- */
.jl-crumb {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  color: var(--stone-400);
  padding: 26px var(--gutter) 0;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
}
.jl-crumb a { color: var(--awning); }
.jl-post-head {
  max-width: 46rem;
  margin: 0 auto;
  padding: 22px var(--gutter) 8px;
}
.jl-post-head h1 {
  margin-top: 14px;
  font-size: clamp(30px, 4.6vw, 44px);
}
.jl-post-head .jl-dek {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--stone-600);
}
.jl-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.jl-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--awning);
  color: var(--chair-yellow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex: none;
}
.jl-byline .jl-who { font-family: var(--font-sans); font-weight: 700; font-size: 13.5px; color: var(--ink-800); }
.jl-byline .jl-when { font-family: var(--font-sans); font-weight: 500; font-size: 12px; color: var(--stone-400); }

.jl-post-hero {
  max-width: 46rem;
  margin: 28px auto 8px;
  padding: 0 var(--gutter);
}
.jl-post-hero .jl-hero-inner { border-radius: var(--radius-lg); overflow: hidden; }
.jl-post-hero img { width: 100%; max-height: 460px; object-fit: cover; }
.jl-post-hero .jl-credit {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--stone-400);
  padding: 8px 2px 0;
}

.jl-article-grid {
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px minmax(0, 46rem);
  gap: 48px;
  padding: 24px var(--gutter) 8px;
  justify-content: center;
}
.jl-toc {
  position: sticky;
  top: 90px;
  align-self: start;
  border-left: 2px solid var(--stone-300);
  padding-left: 16px;
}
.jl-toc .jl-t {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-400);
  margin-bottom: 10px;
}
.jl-toc a {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--stone-600);
  padding: 4px 0;
}
.jl-toc a.is-on { color: var(--awning); font-weight: 700; }

.jl-prose { font-family: var(--font-sans); font-size: 17px; line-height: 1.75; }
.jl-prose p { margin-bottom: 18px; color: #2b342e; }
.jl-prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  margin: 34px 0 12px;
  color: var(--awning-dark);
}
.jl-prose .jl-answer {
  background: #fff;
  border: 1px solid var(--stone-300);
  border-left: 3px solid var(--chair-yellow);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 22px;
  font-size: 15.5px;
}
.jl-prose .jl-answer b { color: var(--awning-dark); }
.jl-pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 23px;
  line-height: 1.4;
  color: var(--awning-dark);
  border-left: 3px solid var(--chair-yellow);
  padding: 6px 0 6px 22px;
  margin: 28px 0;
}
.jl-inline-cta {
  background: var(--awning);
  color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.jl-inline-cta p { margin: 0; color: #d4e4d8; font-size: 14.5px; flex: 1; min-width: 220px; }
.jl-inline-cta b { color: #fff; }
.jl-inline-cta .btn { flex: none; }

.jl-authorbox {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--stone-300);
  border-radius: 12px;
  padding: 20px 22px;
  margin-top: 38px;
}
.jl-authorbox .jl-avatar { width: 52px; height: 52px; }
.jl-authorbox h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--awning-dark); }
.jl-authorbox p { font-family: var(--font-serif); font-size: 13.5px; color: var(--stone-600); margin-top: 4px; }

.jl-related {
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
}
.jl-related h2 { font-size: 24px; margin-bottom: 20px; }

@media (max-width: 900px) {
  .jl-article-grid { grid-template-columns: 1fr; gap: 0; }
  .jl-toc { display: none; }
}
@media (max-width: 900px) {
  .jl-featured, .jl-subscribe { grid-template-columns: 1fr; }
  .jl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .jl-grid { grid-template-columns: 1fr; }
  .jl-subform { flex-direction: column; }
}
