:root {
  --yj-teal: #2A9D8F;
  --yj-teal-dark: #1D7A6F;
  --yj-mist: #E6F6F3;
  --yj-ink: #1A2E2A;
  --yj-muted: #6B7C78;
  --yj-line: #D7E8E4;
  --yj-bg: #F4F7F5;
  --yj-paper: #FFFFFF;
  --yj-radius: 20px;
  --yj-wrap: 1100px;
  --yj-font: "Palatino Linotype", "Book Antiqua", "PingFang SC", "Microsoft YaHei", serif;
  --yj-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--yj-sans);
  color: var(--yj-ink);
  background: var(--yj-bg);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s; }
a:hover { color: var(--yj-teal); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; font-family: var(--yj-font); }

.yj-wrap {
  width: min(100% - 32px, var(--yj-wrap));
  margin-inline: auto;
}

/* Header */
.yj-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--yj-line);
}

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

.yj-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.yj-logo img { height: 40px; width: auto; }

.yj-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 12px;
  display: grid;
  place-items: center;
  background: var(--yj-teal);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--yj-font);
}

.yj-logo strong { display: block; font-size: 18px; font-family: var(--yj-font); }
.yj-logo em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--yj-muted);
  margin-top: 2px;
  font-family: var(--yj-sans);
}

.yj-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.yj-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.yj-nav > ul > li { position: relative; }

.yj-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.yj-nav > ul > li.is-active > a,
.yj-nav > ul > li > a:hover {
  background: var(--yj-mist);
  color: var(--yj-teal-dark);
}

.yj-subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  padding: 8px;
  background: var(--yj-paper);
  border: 1px solid var(--yj-line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(26, 46, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .2s;
}

.yj-nav > ul > li:hover > .yj-subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.yj-subnav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.yj-subnav a:hover,
.yj-subnav .is-active a {
  background: var(--yj-mist);
  color: var(--yj-teal);
}

.yj-search {
  display: flex;
  border: 1px solid var(--yj-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.yj-search input {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  width: 130px;
  outline: none;
  font: inherit;
  font-size: 13px;
}

.yj-search button {
  border: 0;
  background: var(--yj-teal);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.yj-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--yj-line);
  border-radius: 12px;
  background: var(--yj-paper);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.yj-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--yj-ink);
  border-radius: 2px;
}

.yj-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 46, 42, 0.35);
  z-index: 90;
}

body.nav-open .yj-nav-mask { display: block; }

/* Leaf hero */
.yj-leaf {
  position: relative;
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 55% 70% at 90% 30%, rgba(42, 157, 143, 0.16), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, var(--yj-bg) 100%);
  overflow: hidden;
}

.yj-leaf-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.yj-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--yj-teal);
  font-weight: 700;
  font-family: var(--yj-sans);
}

.yj-leaf h1 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 10em;
  color: var(--yj-ink);
}

.yj-leaf-desc {
  margin: 16px 0 28px;
  color: var(--yj-muted);
  max-width: 34em;
  font-size: 15px;
  font-family: var(--yj-sans);
}

.yj-leaf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.yj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--yj-sans);
}

.yj-btn-primary {
  background: var(--yj-teal);
  color: #fff;
}

.yj-btn-primary:hover {
  background: var(--yj-teal-dark);
  color: #fff;
  transform: translateY(-1px);
}

.yj-btn-ghost {
  border: 1px solid var(--yj-line);
  background: #fff;
  color: var(--yj-ink);
}

.yj-btn-ghost:hover {
  border-color: var(--yj-teal);
  color: var(--yj-teal);
}

.yj-leaf-art {
  position: relative;
  height: 260px;
}

.yj-blade {
  position: absolute;
  width: 90px;
  height: 220px;
  background: linear-gradient(160deg, #5EC4B6, var(--yj-teal-dark));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0.85;
  right: 40%;
  top: 10%;
  transform: rotate(-18deg);
  animation: yj-sway 5s ease-in-out infinite;
}

.yj-blade-2 {
  width: 70px;
  height: 180px;
  right: 18%;
  top: 20%;
  transform: rotate(12deg);
  opacity: 0.55;
  animation-delay: 0.6s;
  background: linear-gradient(160deg, #A8E6CF, #2A9D8F);
}

.yj-blade-3 {
  width: 56px;
  height: 150px;
  right: 55%;
  top: 35%;
  transform: rotate(-40deg);
  opacity: 0.4;
  animation-delay: 1.1s;
}

@keyframes yj-sway {
  0%, 100% { transform: rotate(-18deg) translateY(0); }
  50% { transform: rotate(-12deg) translateY(-8px); }
}

.yj-blade-2 { animation-name: yj-sway-2; }
@keyframes yj-sway-2 {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(18deg) translateY(-6px); }
}

.yj-blade-3 { animation-name: yj-sway-3; }
@keyframes yj-sway-3 {
  0%, 100% { transform: rotate(-40deg) translateY(0); }
  50% { transform: rotate(-34deg) translateY(-5px); }
}

/* Mag nav */
.yj-mag {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 8px 0 40px;
}

.yj-mag a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 18px;
  background: var(--yj-paper);
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-radius);
}

.yj-mag a:hover {
  border-color: var(--yj-teal);
  box-shadow: 0 12px 28px rgba(42, 157, 143, 0.12);
  color: inherit;
  transform: translateY(-2px);
}

.yj-mag span {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--yj-font);
}

.yj-mag em {
  font-style: normal;
  font-size: 12px;
  color: var(--yj-muted);
  letter-spacing: 0.06em;
}

/* Sections */
.yj-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.yj-section-hd h2 { font-size: 26px; }

.yj-section-hd span,
.yj-section-hd a {
  font-size: 13px;
  color: var(--yj-muted);
  font-family: var(--yj-sans);
}

.yj-section-hd a:hover { color: var(--yj-teal); }

.yj-edit,
.yj-journal,
.yj-split {
  margin: 44px 0;
}

/* Editorial strips */
.yj-strips {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yj-strip {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0;
  background: var(--yj-paper);
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-radius);
  overflow: hidden;
}

.yj-strip:nth-of-type(even) {
  background: linear-gradient(90deg, var(--yj-mist), #fff);
}

.yj-strip:hover {
  border-color: var(--yj-teal);
  box-shadow: 0 12px 28px rgba(42, 157, 143, 0.1);
  color: inherit;
  transform: translateX(4px);
}

.yj-strip-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--yj-teal);
  color: #fff;
  padding: 20px 12px;
}

.yj-strip:nth-of-type(even) .yj-strip-date {
  background: var(--yj-teal-dark);
}

.yj-strip-date strong {
  font-size: 28px;
  font-family: var(--yj-font);
  line-height: 1;
}

.yj-strip-date span {
  font-size: 11px;
  opacity: 0.85;
  font-family: var(--yj-sans);
}

.yj-strip-body {
  padding: 20px 22px;
}

.yj-strip-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.yj-strip-body p {
  margin: 0;
  font-size: 14px;
  color: var(--yj-muted);
  font-family: var(--yj-sans);
}

/* Journal cards */
.yj-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.yj-jcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  background: var(--yj-paper);
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-radius);
  min-height: 200px;
}

.yj-jcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(42, 157, 143, 0.12);
  color: inherit;
  border-color: var(--yj-teal);
}

.yj-jcard em {
  font-style: normal;
  font-size: 12px;
  color: var(--yj-teal);
  font-weight: 600;
  font-family: var(--yj-sans);
}

.yj-jcard h3 { font-size: 18px; flex: 1; }
.yj-jcard p { margin: 0; font-size: 13px; color: var(--yj-muted); font-family: var(--yj-sans); }
.yj-jcard time { font-size: 12px; color: var(--yj-muted); font-family: var(--yj-sans); }

/* Split */
.yj-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.yj-split-col {
  background: var(--yj-paper);
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-radius);
  padding: 24px;
}

.yj-split-soft {
  background: linear-gradient(165deg, var(--yj-teal) 0%, #1D7A6F 100%);
  border-color: transparent;
  color: #fff;
}

.yj-split-soft .yj-section-hd h2 { color: #fff; }
.yj-split-soft .yj-section-hd a { color: rgba(255, 255, 255, 0.7); }
.yj-split-soft .yj-section-hd a:hover { color: #fff; }

.yj-plain li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--yj-line);
}

.yj-plain a { display: block; }
.yj-plain a:hover { color: inherit; }
.yj-plain h3 { font-size: 16px; margin-bottom: 6px; }
.yj-plain p { margin: 0 0 8px; font-size: 13px; color: var(--yj-muted); font-family: var(--yj-sans); }
.yj-plain span { font-size: 12px; color: var(--yj-teal); font-weight: 600; font-family: var(--yj-sans); }

.yj-svc li + li { margin-top: 10px; }

.yj-svc a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.yj-svc a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.yj-svc strong { font-size: 14px; font-weight: 600; font-family: var(--yj-sans); }
.yj-svc span { font-size: 12px; opacity: 0.7; flex-shrink: 0; }

/* Inner */
.yj-crumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--yj-muted);
  background: var(--yj-paper);
  border-bottom: 1px solid var(--yj-line);
  font-family: var(--yj-sans);
}

.yj-crumb span { margin: 0 6px; color: #A8B8B4; }

.yj-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 28px 0 48px;
  align-items: start;
}

.yj-panel {
  background: var(--yj-paper);
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-radius);
  padding: 22px;
  margin-bottom: 18px;
}

.yj-panel-hd {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--yj-line);
}

.yj-panel-hd h3 { font-size: 16px; }

.yj-page-title {
  font-size: 26px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--yj-line);
}

.yj-article-list li + li {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--yj-line);
}

.yj-article-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
}

.yj-article-list a:not(:has(img)) { grid-template-columns: 1fr; }

.yj-article-list img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.yj-article-list h2 { font-size: 18px; margin-bottom: 6px; }
.yj-article-list p { margin: 0 0 8px; color: var(--yj-muted); font-size: 14px; font-family: var(--yj-sans); }

.yj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--yj-muted);
  font-family: var(--yj-sans);
}

.yj-meta.center { justify-content: center; margin: 12px 0 24px; }

.yj-empty {
  padding: 40px;
  text-align: center;
  color: var(--yj-muted);
}

.yj-detail h1 {
  font-size: 28px;
  text-align: center;
}

.yj-richtext {
  font-size: 16px;
  line-height: 1.85;
  font-family: var(--yj-sans);
}

.yj-richtext p { margin: 0 0 1em; }
.yj-richtext img { margin: 1em auto; border-radius: 14px; }

.yj-pagerow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--yj-line);
  font-size: 13px;
  font-family: var(--yj-sans);
}

.yj-pagerow a { color: var(--yj-teal); }
.yj-pagerow span { color: var(--yj-muted); }

.yj-rank { counter-reset: yj-rank; }
.yj-rank li {
  counter-increment: yj-rank;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--yj-line);
  font-size: 14px;
  font-family: var(--yj-sans);
}

.yj-rank li::before {
  content: counter(yj-rank);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--yj-mist);
  color: var(--yj-muted);
  font-size: 12px;
  font-weight: 700;
}

.yj-rank li:nth-child(-n+3)::before {
  background: var(--yj-teal);
  color: #fff;
}

.yj-side-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--yj-line);
  font-size: 14px;
  font-family: var(--yj-sans);
}

.yj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.yj-tags a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--yj-mist);
  border: 1px solid var(--yj-line);
  font-size: 12px;
  color: var(--yj-teal-dark);
  font-family: var(--yj-sans);
}

.yj-tags a:hover {
  background: var(--yj-teal);
  border-color: var(--yj-teal);
  color: #fff;
}

.yj-ad { font-size: 14px; color: var(--yj-muted); font-family: var(--yj-sans); }

.yj-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.yj-page li a,
.yj-page li span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--yj-line);
  background: var(--yj-paper);
  font-size: 13px;
  font-family: var(--yj-sans);
}

.yj-page li.active a,
.yj-page li a:hover {
  background: var(--yj-teal);
  border-color: var(--yj-teal);
  color: #fff;
}

.yj-page .dots { border: 0; background: transparent; }

/* Footer */
.yj-footer {
  margin-top: 24px;
  padding: 40px 0 28px;
  background: #1A2E2A;
  color: rgba(255, 255, 255, 0.75);
}

.yj-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.yj-footer h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.yj-footer h4 { color: #5EC4B6; font-size: 14px; margin-bottom: 12px; font-family: var(--yj-sans); }
.yj-footer p { margin: 0 0 6px; font-size: 13px; font-family: var(--yj-sans); }

.yj-foot-links li { margin-bottom: 6px; }
.yj-foot-links a { font-size: 13px; color: rgba(255, 255, 255, 0.7); font-family: var(--yj-sans); }
.yj-foot-links a:hover { color: #5EC4B6; }

.yj-friendlinks {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-family: var(--yj-sans);
}

.yj-friendlinks a {
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.yj-friendlinks a:hover { color: #5EC4B6; }

.yj-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--yj-sans);
}

.yj-copy a { color: rgba(255, 255, 255, 0.5); }

@media (max-width: 992px) {
  .yj-leaf-inner { grid-template-columns: 1fr; }
  .yj-leaf-art { height: 160px; }
  .yj-mag { grid-template-columns: repeat(2, 1fr); }
  .yj-journal-grid { grid-template-columns: 1fr; }
  .yj-split { grid-template-columns: 1fr; }
  .yj-layout { grid-template-columns: 1fr; }
  .yj-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .yj-nav-toggle { display: flex; }

  .yj-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100vh;
    background: var(--yj-paper);
    flex-direction: column;
    align-items: stretch;
    padding: 72px 20px 24px;
    gap: 20px;
    transform: translateX(105%);
    transition: transform .28s ease;
    z-index: 95;
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(26, 46, 42, 0.14);
  }

  .yj-nav.is-open { transform: none; }

  .yj-nav > ul { flex-direction: column; align-items: stretch; }
  .yj-nav > ul > li > a { border-radius: 12px; padding: 12px 14px; }

  .yj-subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 12px;
  }

  .yj-nav > ul > li.is-open > .yj-subnav { display: block; }

  .yj-search { width: 100%; }
  .yj-search input { flex: 1; width: auto; }

  .yj-leaf { padding: 36px 0; }
  .yj-edit, .yj-journal, .yj-split { margin: 32px 0; }
  .yj-strip { grid-template-columns: 72px 1fr; }
  .yj-article-list a { grid-template-columns: 1fr; }
  .yj-article-list img { height: 160px; }
  .yj-detail h1 { font-size: 22px; text-align: left; }
  .yj-pagerow { flex-direction: column; }
  .yj-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .yj-mag { grid-template-columns: 1fr; }
  .yj-section-hd { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Dark theme — appended; does not alter existing rules above.
   Default (no data-theme or data-theme="light") stays light.
   Activated when html or body has data-theme="dark".
   ============================================================ */

/* Smooth color transition when switching themes (color props only,
   so existing transform/box-shadow animations are unaffected) */
*,
*::before,
*::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

/* Layout: push nav right so the theme toggle sits at the right edge
   alongside it. No-op for the existing 2-item layout (logo + nav). */
.yj-nav { margin-left: auto; }

/* Dark variable overrides */
html[data-theme="dark"],
body[data-theme="dark"] {
  --yj-teal: #5EC4B6;
  --yj-teal-dark: #3FA89A;
  --yj-mist: rgba(94, 196, 182, 0.12);
  --yj-ink: #E8EDF5;
  --yj-muted: #94A3B8;
  --yj-line: rgba(148, 163, 184, 0.18);
  --yj-bg: #0F1620;
  --yj-paper: rgba(26, 33, 44, 0.8);
}

/* Page background gradient */
html[data-theme="dark"] body,
body[data-theme="dark"] {
  background: linear-gradient(180deg, #0F1620 0%, #0B0F14 100%);
  min-height: 100vh;
}

/* Frosted glass for card-like surfaces in dark mode */
html[data-theme="dark"] .yj-strip,
html[data-theme="dark"] .yj-jcard,
html[data-theme="dark"] .yj-panel,
html[data-theme="dark"] .yj-mag a,
html[data-theme="dark"] .yj-split-col,
body[data-theme="dark"] .yj-strip,
body[data-theme="dark"] .yj-jcard,
body[data-theme="dark"] .yj-panel,
body[data-theme="dark"] .yj-mag a,
body[data-theme="dark"] .yj-split-col {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Header */
html[data-theme="dark"] .yj-header,
body[data-theme="dark"] .yj-header {
  background: rgba(15, 22, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Subnav dropdown */
html[data-theme="dark"] .yj-subnav,
body[data-theme="dark"] .yj-subnav {
  background: #1A212C;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Search box */
html[data-theme="dark"] .yj-search,
body[data-theme="dark"] .yj-search {
  background: rgba(26, 33, 44, 0.6);
}

html[data-theme="dark"] .yj-search input,
body[data-theme="dark"] .yj-search input {
  color: var(--yj-ink);
}

/* Nav toggle (mobile) */
html[data-theme="dark"] .yj-nav-toggle,
body[data-theme="dark"] .yj-nav-toggle {
  background: rgba(26, 33, 44, 0.6);
}

html[data-theme="dark"] .yj-nav-toggle span,
body[data-theme="dark"] .yj-nav-toggle span {
  background: var(--yj-ink);
}

/* Mobile nav drawer */
@media (max-width: 768px) {
  html[data-theme="dark"] .yj-nav,
  body[data-theme="dark"] .yj-nav {
    background: #131B26;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  }
}

/* Leaf hero */
html[data-theme="dark"] .yj-leaf,
body[data-theme="dark"] .yj-leaf {
  background:
    radial-gradient(ellipse 55% 70% at 90% 30%, rgba(94, 196, 182, 0.18), transparent 55%),
    linear-gradient(180deg, #131B26 0%, #0F1620 100%);
}

/* Editorial strip — even rows */
html[data-theme="dark"] .yj-strip:nth-of-type(even),
body[data-theme="dark"] .yj-strip:nth-of-type(even) {
  background: linear-gradient(90deg, var(--yj-mist), rgba(26, 33, 44, 0.6));
}

/* Ghost button */
html[data-theme="dark"] .yj-btn-ghost,
body[data-theme="dark"] .yj-btn-ghost {
  background: rgba(26, 33, 44, 0.6);
}

/* Crumb bar */
html[data-theme="dark"] .yj-crumb,
body[data-theme="dark"] .yj-crumb {
  background: var(--yj-paper);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Footer — already dark; nudge to match the theme */
html[data-theme="dark"] .yj-footer,
body[data-theme="dark"] .yj-footer {
  background: #0B0F14;
}

/* Theme toggle button */
.yj-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--yj-line);
  border-radius: 12px;
  background: var(--yj-paper);
  color: var(--yj-ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}

.yj-theme-toggle:hover {
  color: var(--yj-teal);
  border-color: var(--yj-teal);
  transform: translateY(-1px);
}

.yj-theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Icon swap: sun in light, moon in dark */
.yj-theme-toggle .yj-icon-sun { display: block; }
.yj-theme-toggle .yj-icon-moon { display: none; }

html[data-theme="dark"] .yj-theme-toggle .yj-icon-sun,
body[data-theme="dark"] .yj-theme-toggle .yj-icon-sun { display: none; }
html[data-theme="dark"] .yj-theme-toggle .yj-icon-moon,
body[data-theme="dark"] .yj-theme-toggle .yj-icon-moon { display: block; }

/* Mobile: nav is off-canvas, so cluster toggle + nav-toggle on the right */
@media (max-width: 768px) {
  .yj-theme-toggle { margin-left: auto; }
}
