/* Kaiun article palette only. No shared tokens, layout or article components. */
body.lani-section-kaiun-article-theme {
  --kaiun-article-ink: #173e32;
  --kaiun-article-gold: #c3a661;
  --kaiun-article-paper: #fbf7eb;
  --kaiun-article-surface: #fffdf7;
  --kaiun-article-line: #dfd8c5;
  background-color: var(--kaiun-article-paper);
}
body.lani-section-kaiun-article-theme :is(#main, .lani-section-main--article, .lani-section-article) {
  background-color: var(--kaiun-article-surface);
  border-color: var(--kaiun-article-line);
}
body.lani-section-kaiun-article-theme :is(.entry-title, .lani-section-article__header > h1) {
  color: var(--kaiun-article-ink);
}
body.lani-section-kaiun-article-theme :is(.entry-content, .lani-section-article__content) > :is(h2, h3, h4) {
  color: var(--kaiun-article-ink);
  border-color: var(--kaiun-article-gold);
}
body.lani-section-kaiun-article-theme :is(.entry-content, .lani-section-article__content) > h2 {
  background: var(--kaiun-article-ink);
  color: #fff8e7;
  box-shadow: inset 0 -2px 0 var(--kaiun-article-gold);
}
body.lani-section-kaiun-article-theme :is(.entry-content, .lani-section-article__content) > :is(h3, h4)::before {
  background: var(--kaiun-article-gold);
  border-color: var(--kaiun-article-gold);
}
body.lani-section-kaiun-article-theme :is(#toc, .lani-section-toc) {
  background-color: var(--kaiun-article-paper);
  border-color: var(--kaiun-article-line);
}
body.lani-section-kaiun-article-theme :is(#toc .toc-title, .lani-section-toc > summary) {
  color: var(--kaiun-article-ink);
}
/* Keep existing blue, underlined article and contents links unchanged. */
body.lani-section-kaiun-article-theme :is(#header-container, #header, #navi, .lani-section-header, .lani-section-nav) {
  background-color: var(--kaiun-article-surface);
  border-color: var(--kaiun-article-line);
}
body.lani-section-kaiun-article-theme :is(#header a, #header .site-name-text, #header .site-description, #navi a, .lani-section-header a, .lani-section-nav a) {
  color: var(--kaiun-article-ink);
}
body.lani-section-kaiun-article-theme :is(.lani-section-menu__toggle, .mobile-header-menu-buttons, .mobile-footer-menu-buttons) {
  background-color: var(--kaiun-article-surface);
  border-color: var(--kaiun-article-line);
  color: var(--kaiun-article-ink);
}
body.lani-section-kaiun-article-theme :is(.mobile-header-menu-buttons a, .mobile-footer-menu-buttons a) {
  color: var(--kaiun-article-ink);
}
body.lani-section-kaiun-article-theme .mobile-menu-buttons .menu-button-in {
  color: var(--kaiun-article-ink);
}
body.lani-section-kaiun-article-theme .mobile-header-menu-buttons > .menu-button {
  background-color: var(--kaiun-article-surface);
}
body.lani-section-kaiun-article-theme #sidebar-menu-content,
body.lani-section-kaiun-article-theme #sidebar-menu-content .menu-header-sidebar :is(li, a) {
  background: var(--kaiun-article-surface);
  border-color: var(--kaiun-article-line);
  color: var(--kaiun-article-ink);
}
body.lani-section-kaiun-article-theme .lani-section-menu__icon i {
  background-color: var(--kaiun-article-ink);
}
body.lani-section-kaiun-article-theme :is(#breadcrumb, .lani-section-breadcrumb) {
  background-color: var(--kaiun-article-paper);
  border-color: var(--kaiun-article-line);
  color: #626b60;
}
body.lani-section-kaiun-article-theme :is(#breadcrumb a, .lani-section-breadcrumb a) {
  color: #39604b;
}
body.lani-section-kaiun-article-theme :is(#footer, .lani-section-footer) {
  background-color: var(--kaiun-article-ink);
  border-color: var(--kaiun-article-gold);
  color: #dbe2d5;
}
body.lani-section-kaiun-article-theme :is(#footer a, #footer p, .lani-section-footer a, .lani-section-footer p) {
  color: #dbe2d5;
}
body.lani-section-kaiun-article-theme :is(#footer h2, #footer h3, .lani-section-footer h2) {
  background-color: transparent;
  border-color: var(--kaiun-article-gold);
  color: #e4cb89;
}

/* Kaiun-only component colors. Geometry and brand creatives remain unchanged. */
body.lani-section-kaiun-article-theme {
  --lani-section-ink: #243d33;
  --lani-section-muted: #626b60;
  --lani-section-primary: #285442;
  --lani-section-primary-dark: #173e32;
  --lani-section-accent: #39604b;
  --lani-section-blue: #39604b;
  --lani-section-cyan: #e4cb89;
  --lani-section-soft: #f7f3e8;
  --lani-section-line: #dfd8c5;
  --lani-section-focus: #285442;
  --lani-section-shadow: 0 18px 48px rgba(23,62,50,.10);
  --lani-header-soft: #fbf7eb;
  --lani-header-highlight: #e4cb89;
  --lani-header-accent: #c3a661;
  --lani-heading-accent: #c3a661;
  --lani-heading-ink: #173e32;
  --lani-heading-rule: #dfd8c5;
}
body.lani-section-kaiun-article-theme :is(.lani-section-header,.lani-section-nav) {
  background: var(--kaiun-article-surface);
}
body.lani-section-kaiun-article-theme .lani-section-footer {
  background: linear-gradient(135deg,#214c3c,#173e32 65%,#123329);
}
body.lani-section-kaiun-article-theme .lani-section-header .lani-section-brand__label,
body.lani-section-kaiun-article-theme .lani-section-pretitle {
  color: var(--kaiun-article-ink);
}
body.lani-section-kaiun-article-theme :is(.lani-section-header__search,.lani-section-menu__toggle) {
  border-color: var(--kaiun-article-line);
  color: var(--kaiun-article-ink);
}
body.lani-section-kaiun-article-theme .lani-section-nav a:hover {
  background: var(--kaiun-article-paper);
}
body.lani-section-kaiun-article-theme :is(.lani-section-article__footer,.lani-preferred-source) {
  background-color: var(--kaiun-article-paper);
  border-color: var(--kaiun-article-line);
  color: var(--lani-section-muted);
}
body.lani-section-kaiun-article-theme .lani-section-article__footer {
  border-left-color: var(--kaiun-article-gold);
}
body.lani-section-kaiun-article-theme .lani-preferred-source__title {
  color: var(--kaiun-article-ink);
}
body.lani-section-kaiun-article-theme .lani-preferred-source__description {
  color: var(--lani-section-muted);
}
/* Existing inline reading-box rules use article IDs; override colors only. */
body.lani-section-kaiun-article-theme .lani-reading-box {
  border-color: var(--kaiun-article-line) !important;
  background-color: var(--kaiun-article-surface) !important;
  box-shadow: 0 4px 12px rgba(23,62,50,.06) !important;
}
body.lani-section-kaiun-article-theme .lani-reading-box__header {
  background-color: var(--kaiun-article-ink) !important;
  color: #fff8e7 !important;
}
@media(max-width:640px) {
  body.lani-section-kaiun-article-theme .lani-preferred-source { background: transparent; }
}

/* Desktop related articles align with the 780px article and its divider. */
@media (min-width:1024px) {
  body.lani-section-kaiun-article-theme .lani-section-related { max-width:780px; }
}
