/* ==== 00-tokens.css ==== */
/*
 * 星港手帐 · Design tokens
 * Every colour, shadow, radius and font used by the visual layer is defined
 * here once. Change the palette in this file only; components read the
 * --lm-* tokens, and Butterfly's own variables are mapped onto them below.
 */

:root {
  /* Paper & ink */
  --lm-paper: #f6f4ef;
  --lm-paper-grid: rgba(31, 36, 64, 0.045);
  --lm-surface: #ffffff;
  --lm-surface-2: #faf8f4;
  --lm-glass: rgba(250, 248, 244, 0.78);
  --lm-ink: #1f2440;
  --lm-ink-2: #4a5170;
  --lm-ink-3: #7c8199;
  --lm-line: rgba(31, 36, 64, 0.1);
  --lm-line-strong: rgba(31, 36, 64, 0.18);

  /* Accents taken from the banners: lantern coral, dusk violet, sky cyan */
  --lm-coral: #e8665b;
  --lm-violet: #6656d8;
  --lm-sky: #2f97c1;
  --lm-violet-soft: rgba(102, 86, 216, 0.1);
  --lm-coral-soft: rgba(232, 102, 91, 0.1);
  --lm-grad: linear-gradient(90deg, var(--lm-coral), var(--lm-violet) 55%, var(--lm-sky));
  --lm-grad-v: linear-gradient(180deg, var(--lm-coral), var(--lm-violet) 55%, var(--lm-sky));
  /* Supporting inks for theme tags (labels, buttons) that ask for green/orange */
  --lm-moss: #3f9573;
  --lm-amber: #c98226;

  /* Depth */
  --lm-shadow-1: 0 1px 2px rgba(31, 36, 64, 0.05), 0 10px 28px -16px rgba(31, 36, 64, 0.22);
  --lm-shadow-2: 0 2px 6px rgba(31, 36, 64, 0.06), 0 22px 44px -20px rgba(70, 56, 160, 0.38);
  --lm-hero-scrim: linear-gradient(180deg, rgba(14, 16, 34, 0.5) 0%, rgba(14, 16, 34, 0.16) 34%, rgba(14, 16, 34, 0.12) 62%, rgba(14, 16, 34, 0) 100%);
  --lm-post-scrim: linear-gradient(180deg, rgba(14, 16, 34, 0.48) 0%, rgba(14, 16, 34, 0.14) 32%, rgba(14, 16, 34, 0.3) 62%, rgba(14, 16, 34, 0.72) 100%);

  /* Shape & motion */
  --lm-radius: 18px;
  --lm-radius-sm: 10px;
  --lm-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --lm-dur: 0.45s;

  /* Type. CJK falls back to the system sans; the serif is for Latin accents. */
  --lm-font-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lm-font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --lm-font-mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --lm-paper: #11121a;
  --lm-paper-grid: rgba(255, 255, 255, 0.035);
  --lm-surface: #191b26;
  --lm-surface-2: #1f2231;
  --lm-glass: rgba(20, 22, 32, 0.78);
  --lm-ink: #e8e9f3;
  --lm-ink-2: #b7bad0;
  --lm-ink-3: #8a8ea8;
  --lm-line: rgba(255, 255, 255, 0.08);
  --lm-line-strong: rgba(255, 255, 255, 0.16);

  --lm-coral: #ff8d7e;
  --lm-violet: #a596ff;
  --lm-sky: #6ccbec;
  --lm-violet-soft: rgba(165, 150, 255, 0.14);
  --lm-coral-soft: rgba(255, 141, 126, 0.12);
  --lm-moss: #6fcfa5;
  --lm-amber: #f0b45e;

  --lm-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px -18px rgba(0, 0, 0, 0.7);
  --lm-shadow-2: 0 2px 8px rgba(0, 0, 0, 0.45), 0 24px 48px -22px rgba(120, 100, 255, 0.35);
  --lm-hero-scrim: linear-gradient(180deg, rgba(6, 7, 14, 0.62) 0%, rgba(6, 7, 14, 0.32) 40%, rgba(6, 7, 14, 0.3) 70%, rgba(6, 7, 14, 0) 100%);
  --lm-post-scrim: linear-gradient(180deg, rgba(6, 7, 14, 0.62) 0%, rgba(6, 7, 14, 0.3) 35%, rgba(6, 7, 14, 0.45) 62%, rgba(6, 7, 14, 0.82) 100%);
}

/* Butterfly variables mapped onto the tokens, so theme widgets follow along. */
:root,
[data-theme="dark"] {
  --global-bg: var(--lm-paper);
  --font-color: var(--lm-ink);
  --card-bg: var(--lm-surface);
  --sidebar-bg: var(--lm-surface);
  --search-bg: var(--lm-surface);
  --search-input-color: var(--lm-ink);
  --search-a-color: var(--lm-ink-2);
  --preloader-bg: var(--lm-paper);
  --preloader-color: var(--lm-ink);
  --btn-bg: var(--lm-violet);
  --btn-color: #fff;
  --btn-hover-color: var(--lm-coral);
  --text-bg-hover: var(--lm-violet-soft);
  /* --light-grey / --white stay theme defaults: they colour text over images. */
  --text-highlight-color: var(--lm-ink);
  --blockquote-color: var(--lm-ink-2);
  --blockquote-bg: var(--lm-surface-2);
  --reward-pop: var(--lm-surface);
  --toc-link-color: var(--lm-ink-2);
  --card-box-shadow: var(--lm-shadow-1);
  --card-hover-box-shadow: var(--lm-shadow-2);
  --pseudo-hover: var(--lm-violet);
  --headline-presudo: var(--lm-ink-3);
  --hr-border: var(--lm-line-strong);
  --hr-before-color: var(--lm-violet);
  --scrollbar-color: var(--lm-line-strong);
  --default-bg-color: var(--lm-violet);
  --tab-border-color: var(--lm-line);
  --tab-botton-bg: var(--lm-surface-2);
  --tab-botton-color: var(--lm-ink-2);
  --tab-button-hover-bg: var(--lm-violet-soft);
  --tab-button-active-bg: var(--lm-surface);
  --timeline-bg: var(--lm-surface-2);
  --zoom-bg: var(--lm-paper);

  /* Code highlight (highlight_theme: light) */
  --hl-color: var(--lm-ink);
  --hl-bg: var(--lm-surface-2);
  --hltools-bg: var(--lm-surface);
  --hltools-color: var(--lm-ink-3);
  --hlnumber-bg: var(--lm-surface-2);
  --hlnumber-color: var(--lm-ink-3);
  --hlscrollbar-bg: var(--lm-line-strong);
  --hlexpand-bg: linear-gradient(180deg, transparent, var(--lm-surface-2));
}

/* Legacy aliases still used by the project / cloud / build-log page styles. */
:root,
[data-theme="dark"] {
  --neon-blue: var(--lm-violet);
  --neon-purple: var(--lm-violet);
  --glass-bg: var(--lm-surface);
  --glass-border: var(--lm-line);
  --text-primary: var(--lm-ink);
  --text-secondary: var(--lm-ink-3);
  --surface-soft: var(--lm-surface-2);
  --surface-tint: var(--lm-violet-soft);
  --shadow-soft: var(--lm-shadow-1);
  --card-radius: var(--lm-radius-sm);
  --transition-speed: 0.3s;
}

/* ==== 10-base.css ==== */
/* Paper, type and global affordances. */

body {
  background-color: var(--lm-paper);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, var(--lm-violet-soft), transparent 70%),
    radial-gradient(900px 500px at -10% 30%, var(--lm-coral-soft), transparent 70%),
    linear-gradient(var(--lm-paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--lm-paper-grid) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  color: var(--lm-ink);
  font-family: var(--lm-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--lm-violet-soft);
  color: var(--lm-ink);
}

:focus-visible {
  outline: 2px solid var(--lm-violet);
  outline-offset: 3px;
  border-radius: 6px;
}

code,
kbd,
pre,
samp {
  font-family: var(--lm-font-mono);
}

/* Slim, quiet scrollbar */
* {
  scrollbar-color: var(--lm-line-strong) transparent;
  scrollbar-width: thin;
}

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

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--lm-line-strong) padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--lm-violet) padding-box;
}

/* ==== 20-chrome.css ==== */
/* Site chrome: navigation, banners, footer, floating buttons, search. */

/* ---------- Navigation ---------- */
#nav {
  transition: background-color var(--lm-dur) var(--lm-ease), box-shadow var(--lm-dur) var(--lm-ease), transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* Over a banner: transparent with a soft top scrim for legibility. */
#page-header:not(.not-top-img):not(.nav-fixed) #nav {
  background: linear-gradient(180deg, rgba(10, 12, 28, 0.42), rgba(10, 12, 28, 0));
}

#page-header:not(.not-top-img):not(.nav-fixed) #nav a,
#page-header:not(.not-top-img):not(.nav-fixed) #nav .site-name,
#page-header:not(.not-top-img):not(.nav-fixed) #nav button.site-page {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* Scrolled, or on pages without a banner: frosted paper. */
#page-header.nav-fixed #nav,
#page-header.not-top-img #nav {
  background: var(--lm-glass);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 1px 0 var(--lm-line), 0 12px 30px -24px rgba(31, 36, 64, 0.5);
}

#page-header.nav-fixed #nav a,
#page-header.nav-fixed #nav .site-name,
#page-header.nav-fixed #nav #toggle-menu,
#page-header.nav-fixed #nav button.site-page,
#page-header.not-top-img #nav a,
#page-header.not-top-img #nav .site-name,
#page-header.not-top-img #nav button.site-page {
  color: var(--lm-ink);
  text-shadow: none;
}

#page-header.nav-fixed #nav a:hover,
#page-header.not-top-img #nav a:hover,
#page-header.nav-fixed #nav button.site-page:hover,
#page-header.not-top-img #nav button.site-page:hover {
  color: var(--lm-violet);
}

#nav .site-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

#nav #blog-info img,
#nav .site-icon {
  border-radius: 50%;
}

/* Menu underline drawn with the accent gradient. */
#nav .menus_items .menus_item > .site-page:not(.child)::after {
  height: 2px;
  border-radius: 2px;
  background: var(--lm-grad);
}

/* Dropdown menus as small paper cards. */
#nav .menus_items .menus_item .menus_item_child {
  overflow: hidden;
  border: 1px solid var(--lm-line);
  border-radius: 14px;
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-2);
}

#nav .menus_items .menus_item .menus_item_child li a {
  color: var(--lm-ink-2) !important;
  text-shadow: none !important;
}

#nav .menus_items .menus_item .menus_item_child li:hover {
  background: var(--lm-violet-soft);
}

#nav .menus_items .menus_item .menus_item_child li:hover a {
  color: var(--lm-violet) !important;
}

/* Native <button> menu triggers (see luomo-navigation.js). */
#nav button.site-page,
#sidebar-menus button.site-page {
  border: 0;
  background: transparent;
  font-family: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

#nav button.site-page { font-size: 0.78em; }
#sidebar-menus button.site-page { width: 100%; font-size: 1.15em; }

/* Disclosure state drives visibility for pointer and keyboard users. */
#nav .menus_items .menus_item[data-nav-menu] > .menus_item_child { display: none; }
#nav .menus_items .menus_item[data-nav-menu].is-open > .menus_item_child { display: block; }
#nav .menus_items .menus_item > button.group > i:last-child { padding: 4px; transition: transform 0.3s; }
#nav .menus_items .menus_item > button.group[aria-expanded="true"] > i:last-child { transform: rotate(180deg); }

#nav.hide-menu #search-button button,
#nav.hide-menu #toggle-menu button { min-width: 36px; min-height: 40px; }

/* Mobile drawer */
#sidebar #sidebar-menus {
  background: var(--lm-surface);
}

#sidebar #sidebar-menus .menus_items .site-page:hover {
  background: var(--lm-violet-soft);
  color: var(--lm-violet);
}

/* ---------- Banners ---------- */
#page-header:not(.not-top-img)::before {
  background: var(--lm-hero-scrim);
}

/* The banner melts into the paper instead of ending on a hard edge. */
#page-header.full_page::after,
#page-header.not-home-page::after,
#page-header.post-bg::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--lm-paper));
  content: "";
  pointer-events: none;
}

#page-header.full_page::after { height: 34%; }

/* Post banners carry the title and meta at the bottom, so they darken there
   for contrast and keep only a thin paper edge. */
#page-header.post-bg::before {
  background: var(--lm-post-scrim);
}

#page-header.post-bg::after { height: 40px; }

#page-header.post-bg #post-info { bottom: 58px; }

#page-header.full_page {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 64vh;
  min-height: 380px;
  padding: 76px 24px 72px;
  background-attachment: scroll;
}

#page-header.full_page #site-info {
  position: relative;
  top: auto;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  padding: 0;
}

#page-header.full_page::before { inset: 0; }

/* Eyebrow above the site title. */
#page-header.full_page #site-info::before {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-family: var(--lm-font-serif);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.3em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 18px rgba(20, 16, 60, 0.6);
  content: "— Star Harbor Journal —";
}

#page-header #site-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 30px rgba(20, 16, 60, 0.45), 0 1px 2px rgba(0, 0, 0, 0.25);
}

#page-header.full_page #site-subtitle {
  margin: 14px auto 0;
  max-width: 40em;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.98rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  white-space: normal;
  overflow-wrap: anywhere;
}

#page-header.full_page #subtitle { white-space: normal; }

/* Scroll cue as a small glass pill. */
#page-header #scroll-down {
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 2;
  text-align: center;
}

#page-header #scroll-down .scroll-down-effects {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  color: var(--lm-ink-2);
  text-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 18px;
  line-height: 1;
}

/* Page and post titles over banners. */
#page-header #page-site-info #site-title,
#page-header .page-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

/* Keep titles above the paper fade drawn by ::after. */
#page-header #page-site-info,
#page-header #post-info {
  z-index: 1;
}

#page-header #post-info .post-title {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  /* The theme clamps this title with overflow:hidden, so a wide glow would be
     clipped into a visible box; keep the shadow tight. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(20, 16, 60, 0.35);
}

#page-header #post-info #post-meta {
  color: rgba(255, 255, 255, 0.9);
}

#page-header #post-info #post-meta > div {
  display: inline-block;
}

#page-header #post-info #post-meta a {
  color: inherit;
}

#page-header.full_page + #content-inner { padding-top: 8px; }

/* ---------- Footer: the journal's colophon ----------
   4.13 renders #footer-wrap; 5.x renders .footer-flex (footer.nav columns)
   and .footer-other (copyright, framework, custom text). */
#footer {
  margin-top: 40px;
  background: transparent !important;
}

#footer::before {
  display: none;
}

#footer > * {
  color: var(--lm-ink-3);
}

#footer a {
  color: var(--lm-ink-2);
}

#footer a:hover {
  color: var(--lm-violet);
}

/* Signature line above the columns. */
#footer::after {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 0 18px;
  background: var(--lm-paper);
  color: var(--lm-violet);
  font-family: var(--lm-font-serif);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.32em;
  white-space: nowrap;
  content: "✦ 循此苦旅 · 直抵群星 ✦";
  transform: translate(-50%, -50%);
}

#footer {
  border-top: 1px solid var(--lm-line);
}

#footer .footer-flex {
  max-width: 1120px;
  padding: 56px 40px 28px;
  gap: 28px 40px;
}

#footer .footer-flex .footer-flex-items {
  flex: 1 1 160px;
}

#footer .footer-flex .footer-flex-title {
  margin-bottom: 14px;
  color: var(--lm-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

#footer .footer-flex .footer-flex-title::after {
  display: block;
  width: 1.6em;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--lm-grad);
  content: "";
}

#footer .footer-flex .footer-flex-item {
  margin: 6px 0;
}

#footer .footer-flex .footer-flex-content a {
  position: relative;
  display: inline-block;
  padding: 3px 0;
  color: var(--lm-ink-2);
  font-size: 0.92rem;
}

#footer .footer-flex .footer-flex-content a::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--lm-violet);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--lm-ease);
}

#footer .footer-flex .footer-flex-content a:hover::after {
  transform: scaleX(1);
}

#footer .footer-other,
#footer-wrap {
  padding: 22px 20px 34px;
  background: transparent;
  color: var(--lm-ink-3);
  font-size: 0.86rem;
  line-height: 1.9;
}

#footer .footer-other .copyright,
#footer-wrap .copyright {
  color: var(--lm-ink-2);
  font-weight: 600;
}

#footer .footer-other .framework-info {
  margin-left: 10px;
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.footer-beian a { text-decoration: none; }
.beian-separator { opacity: 0.6; }

/* ---------- Floating buttons ---------- */
#rightside > div > button,
#rightside > div > a {
  border: 1px solid var(--lm-line);
  border-radius: 12px;
  background: var(--lm-glass);
  color: var(--lm-ink-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--lm-shadow-1);
  transition: color 0.2s, background-color 0.2s, transform 0.2s var(--lm-ease);
}

#rightside > div > button:hover,
#rightside > div > a:hover {
  background: var(--lm-violet);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Search ---------- */
#local-search .search-dialog {
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  box-shadow: var(--lm-shadow-2);
}

#local-search .search-dialog hr {
  border-color: var(--lm-line);
}

#local-search .search-dialog .local-search-box input {
  border: 1px solid var(--lm-line-strong);
  border-radius: 12px;
  background: var(--lm-surface-2);
  color: var(--lm-ink);
}

#local-search .search-dialog .local-search-box input:focus {
  border-color: var(--lm-violet);
}

#local-search .search-dialog .search-result-title {
  color: var(--lm-ink);
  font-weight: 600;
}

#local-search mark,
#local-search .search-keyword {
  border-radius: 3px;
  background: var(--lm-coral-soft);
  color: var(--lm-coral);
}

#search-mask {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  #page-header.full_page {
    height: 54vh;
    height: 54svh;
    min-height: 340px;
    padding: 70px 20px 60px;
  }

  #page-header.full_page #site-info::before {
    margin-bottom: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.26em;
  }

  #page-header.full_page #site-subtitle { margin-top: 10px; }
}

/* Footer columns list their links vertically; the credits link sits centred. */
#footer .footer-flex .footer-flex-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

#footer .footer-image-credits {
  padding: 0 20px 30px;
  text-align: center;
}

#footer .footer-other + .footer-image-credits { margin-top: -22px; }

/* ==== 30-home.css ==== */
/* Home: post list as journal entries, pagination, entry cards. */

#recent-posts {
  counter-reset: lm-entry;
}

#recent-posts .recent-post-item {
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 220px;
  margin-top: 18px;
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-1);
  counter-increment: lm-entry;
  transition: transform var(--lm-dur) var(--lm-ease), box-shadow var(--lm-dur) var(--lm-ease), border-color var(--lm-dur);
}

#recent-posts .recent-post-item:first-of-type { margin-top: 0; }

/* Accent hairline that draws in on hover. */
#recent-posts .recent-post-item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 3px;
  background: var(--lm-grad);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--lm-ease);
}

#recent-posts .recent-post-item:hover {
  border-color: var(--lm-line-strong);
  box-shadow: var(--lm-shadow-2);
  transform: translateY(-3px);
}

#recent-posts .recent-post-item:hover::before {
  transform: scaleX(1);
}

/* Covers */
#recent-posts .recent-post-item .post_cover {
  width: 40%;
}

#recent-posts .recent-post-item .post_cover .post-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--lm-ease), filter 0.6s;
}

#recent-posts .recent-post-item:hover .post_cover .post-bg {
  transform: scale(1.05);
}

/* Text */
#recent-posts .recent-post-item > .recent-post-info {
  width: 60%;
  padding: 26px 32px;
}

#recent-posts .recent-post-item > .recent-post-info.no-cover {
  width: 100%;
  padding-right: clamp(32px, 16%, 150px);
}

#recent-posts .recent-post-item .article-title {
  color: var(--lm-ink);
  font-size: 1.32rem;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: 0.01em;
  transition: color 0.25s;
}

#recent-posts .recent-post-item .article-title:hover {
  color: var(--lm-violet);
}

#recent-posts .recent-post-item .article-meta-wrap {
  margin: 8px 0 10px;
  color: var(--lm-ink-3);
  font-size: 0.86rem;
}

#recent-posts .recent-post-item .article-meta-wrap a {
  color: var(--lm-ink-3);
}

#recent-posts .recent-post-item .article-meta-wrap a.article-meta__categories {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lm-violet-soft);
  color: var(--lm-violet);
}

#recent-posts .recent-post-item .content {
  color: var(--lm-ink-2);
  font-size: 0.95rem;
  line-height: 1.85;
}

#recent-posts .recent-post-item .sticky {
  color: var(--lm-coral);
}

/* Large outlined entry number on text-only cards. */
#recent-posts .recent-post-item > .recent-post-info.no-cover::after {
  position: absolute;
  right: 28px;
  bottom: -18px;
  color: transparent;
  font-family: var(--lm-font-serif);
  font-size: 7.5rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  content: counter(lm-entry, decimal-leading-zero);
  -webkit-text-stroke: 1.5px var(--lm-line-strong);
  pointer-events: none;
  transition: -webkit-text-stroke-color var(--lm-dur);
}

#recent-posts .recent-post-item:hover > .recent-post-info.no-cover::after {
  -webkit-text-stroke-color: var(--lm-violet);
}

/* ---------- Pagination ---------- */
#pagination .page-number,
#pagination .extend {
  border-radius: 10px;
  transition: background-color 0.2s, color 0.2s;
}

#pagination .page-number.current {
  background: var(--lm-violet);
  color: #fff;
}

#pagination .page-number:not(.current):hover,
#pagination .extend:hover {
  background: var(--lm-violet-soft);
  color: var(--lm-violet);
}

/* ---------- Entry cards (used inside pages) ---------- */
.luomo-entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.luomo-entry-card {
  display: block;
  padding: 24px 18px;
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-1);
  text-align: center;
  text-decoration: none;
  transition: transform var(--lm-dur) var(--lm-ease), box-shadow var(--lm-dur), border-color var(--lm-dur);
}
.luomo-entry-card:hover { border-color: var(--lm-line-strong); box-shadow: var(--lm-shadow-2); transform: translateY(-4px); }
.luomo-entry-icon { margin-bottom: 8px; font-size: 2.4rem; }
.luomo-entry-title { margin-bottom: 6px; color: var(--lm-violet); font-size: 1.05rem; font-weight: 600; }
.luomo-entry-desc { color: var(--lm-ink-3); font-size: 0.85rem; line-height: 1.5; }

@media (max-width: 768px) {
  #recent-posts .recent-post-item { min-height: 0; }
  #recent-posts .recent-post-item:hover { transform: none; }
  #recent-posts .recent-post-item .post_cover { width: 100%; height: 180px; }
  #recent-posts .recent-post-item > .recent-post-info { width: 100%; padding: 20px 22px; }
  #recent-posts .recent-post-item > .recent-post-info.no-cover { padding-right: 76px; }
  #recent-posts .recent-post-item .article-title { font-size: 1.15rem; }

  #recent-posts .recent-post-item > .recent-post-info.no-cover::after {
    top: 14px;
    right: 16px;
    bottom: auto;
    font-size: 3.4rem;
    -webkit-text-stroke-width: 1px;
  }

  .luomo-entry-card:hover { transform: none; }
}

/* ---------- Section headings (rendered by scripts/luomo-home.js) ---------- */
.lm-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 4px 14px;
}

.lm-section-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--lm-ink);
  font-size: 1.22rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.lm-section-head .lm-eyebrow {
  order: 1;
  color: var(--lm-violet);
  font-family: var(--lm-font-serif);
  font-size: 0.92rem;
  font-style: italic;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.lm-section-head::after {
  flex: 1;
  order: 2;
  align-self: center;
  height: 1px;
  background: linear-gradient(90deg, var(--lm-line-strong), transparent);
  content: "";
}

.lm-list-head {
  margin-top: 30px;
}

/* ---------- 星港入口 gates (data: source/_data/home.yml) ---------- */
.lm-gates-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lm-gate {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--lm-line);
  border-radius: 16px;
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-1);
  color: var(--lm-ink);
  text-decoration: none;
  transition: transform var(--lm-dur) var(--lm-ease), box-shadow var(--lm-dur), border-color var(--lm-dur);
}

.lm-gate::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--lm-violet-soft), transparent 60%);
  content: "";
  opacity: 0;
  transition: opacity var(--lm-dur);
}

.lm-gate:hover {
  border-color: var(--lm-line-strong);
  box-shadow: var(--lm-shadow-2);
  color: var(--lm-ink);
  transform: translateY(-3px);
}

.lm-gate:hover::before { opacity: 1; }

.lm-gate > * { position: relative; }

.lm-gate-icon {
  display: inline-flex;
  flex: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--lm-grad);
  box-shadow: 0 8px 18px -10px rgba(102, 86, 216, 0.8);
  color: #fff;
  font-size: 1.05rem;
}

.lm-gate-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.lm-gate-text strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lm-gate-text small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--lm-ink-3);
  font-size: 0.8rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lm-gate-go {
  color: var(--lm-ink-3);
  font-size: 0.8rem;
  transition: transform 0.3s var(--lm-ease), color 0.3s;
}

.lm-gate:hover .lm-gate-go {
  color: var(--lm-violet);
  transform: translateX(3px);
}

@media (max-width: 1100px) {
  .lm-gates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .lm-gates-grid { gap: 10px; }
  .lm-gate { min-height: 0; padding: 12px; gap: 10px; }
  .lm-gate:hover { transform: none; }
  .lm-gate-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 0.95rem; }
  .lm-gate-go { display: none; }
  .lm-list-head { margin-top: 24px; }
}

/* ==== 35-home-artwork.css ==== */
/*
 * Home "夜航书" edition: issue strip, cover story, star index, and the
 * home-only layout balance. Markup comes from scripts/luomo-home.js and only
 * exists on the first home page. Home-only rules key off #body-wrap:has(.lm-starmap)
 * rather than a <body> class, because Pjax swaps #body-wrap but not <body>.
 */

/* ---------- Layout balance (home only) ----------
   The cover story already shows the newest post, and the star index below
   the list replaces the sidebar's recent posts / tags / categories / archives. */
#body-wrap:has(.lm-starmap) #recent-posts .recent-post-item:first-of-type { display: none; }

#body-wrap:has(.lm-starmap) #aside-content .card-recent-post,
#body-wrap:has(.lm-starmap) #aside-content .card-tags,
#body-wrap:has(.lm-starmap) #aside-content .card-categories,
#body-wrap:has(.lm-starmap) #aside-content .card-archives { display: none; }

/* ---------- Issue strip under the hero title ---------- */
.lm-issue {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 0;
  margin: 26px auto 0;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(16, 14, 40, 0.28);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

#page-header.full_page #site-info { text-align: center; }

.lm-issue > span {
  padding: 0 14px;
  white-space: nowrap;
}

.lm-issue > span + span { border-left: 1px solid rgba(255, 255, 255, 0.24); }

.lm-issue b {
  margin-right: 4px;
  color: #fff;
  font-family: var(--lm-font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.lm-issue .lm-issue-vol {
  color: #fff;
  font-family: var(--lm-font-serif);
  font-style: italic;
  letter-spacing: 0.22em;
}

/* ---------- Cover story ---------- */
.lm-feature {
  --lm-feature-radius: 24px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-feature-radius);
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-2);
  isolation: isolate;
}

/* Thin gradient frame that glows in on hover. */
.lm-feature::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: var(--lm-grad);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--lm-ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.lm-feature:hover::before,
.lm-feature:focus-within::before { opacity: 1; }

/* Gallery mount: the whole picture sits on a blurred, enlarged copy of itself,
   so captions baked into post images are never cropped at any card height. */
.lm-feature-cover {
  --lm-cover-corner: calc(var(--lm-feature-radius) - 1px);
  --lm-cover-radius: var(--lm-cover-corner) 0 0 var(--lm-cover-corner);
  position: relative;
  align-self: stretch;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--lm-cover-radius);
  background: var(--lm-surface-2);
}

.lm-feature-cover-blur {
  position: absolute;
  /* Bake the existing 24px bleed and 1.1× zoom into the layer's box. */
  inset: calc(-26.4px - 5%);
  background: var(--lm-cover) center / cover no-repeat;
  filter: blur(24.2px) saturate(1.25);
  opacity: 0.75;
  /* Clip the enlarged layer back to the cover after blurring. */
  clip-path: inset(calc(24px + 100% / 22) round var(--lm-cover-radius));
  pointer-events: none;
}

.lm-feature-cover img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  transform: scale(1);
  transition: transform 2.4s var(--lm-ease), filter 0.8s;
}

.lm-feature:hover .lm-feature-cover img { transform: scale(1.04); }

/* Lantern light leak across the picture, fading into the paper. */
.lm-feature-cover-light {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(232, 102, 91, 0.28), transparent 55%),
    linear-gradient(90deg, transparent 78%, var(--lm-surface) 100%);
  pointer-events: none;
}

.lm-feature-cover--empty {
  display: grid;
  place-items: center;
  background: var(--lm-grad);
}

.lm-feature-cover--empty span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 5rem;
}

.lm-feature-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 38px 46px 38px 30px;
}

/* Vertical magazine spine on the right edge. */
.lm-feature-body::after {
  position: absolute;
  top: 34px;
  right: 16px;
  color: var(--lm-ink-3);
  font-family: var(--lm-font-serif);
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  content: "NO.01 · LATEST";
  opacity: 0.7;
  writing-mode: vertical-rl;
}

.lm-feature-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.lm-feature-kicker .lm-eyebrow {
  color: var(--lm-violet);
  font-family: var(--lm-font-serif);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.14em;
}

.lm-feature-label {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lm-coral-soft);
  color: var(--lm-coral);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.lm-feature-title {
  margin: 0;
  font-size: clamp(1.42rem, 2.1vw, 1.95rem);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: 0.01em;
}

/* Ink underline that draws in under the title. */
.lm-feature-title a {
  background: linear-gradient(var(--lm-violet), var(--lm-violet)) 0 100% / 0 2px no-repeat;
  color: var(--lm-ink);
  transition: background-size 0.6s var(--lm-ease), color 0.3s;
}

.lm-feature-title a:hover {
  background-size: 100% 2px;
  color: var(--lm-violet);
}

.lm-feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--lm-ink-3);
  font-size: 0.86rem;
}

.lm-feature-meta time {
  font-family: var(--lm-font-serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.lm-feature-cat {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lm-violet-soft);
  color: var(--lm-violet);
}

.lm-feature-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--lm-ink-2);
  font-size: 0.96rem;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.lm-feature-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--lm-grad);
  box-shadow: 0 12px 26px -14px rgba(102, 86, 216, 0.85);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 0.35s var(--lm-ease), box-shadow 0.35s;
}

.lm-feature-cta:hover {
  color: #fff;
  box-shadow: 0 16px 30px -14px rgba(232, 102, 91, 0.8);
  transform: translateY(-2px);
}

.lm-feature-cta i { transition: transform 0.35s var(--lm-ease); }
.lm-feature-cta:hover i { transform: translateX(4px); }

/* ---------- Star index ---------- */
.lm-starmap { margin-top: 40px; }

.lm-starmap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas:
    "tags log"
    "tags cats";
  gap: 16px;
}

.lm-starmap-panel {
  position: relative;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid var(--lm-line);
  border-radius: 20px;
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-1);
}

.lm-starmap-panel h3 {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: var(--lm-ink);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.lm-starmap-panel h3::before { display: none; }

.lm-starmap-tags { grid-area: tags; }
.lm-starmap-log { grid-area: log; }
.lm-starmap-cats { grid-area: cats; }

/* Faint constellation behind the tag nebula. */
.lm-starmap-tags::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 24%, var(--lm-violet) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 16%, var(--lm-coral) 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 62%, var(--lm-sky) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 82%, var(--lm-violet) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 48%, var(--lm-sky) 50%, transparent 51%);
  content: "";
  opacity: 0.55;
  pointer-events: none;
}

.lm-star-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 8px;
}

.lm-star-tag {
  --lm-tag-color: var(--lm-violet);
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lm-tag-color) 11%, transparent);
  color: var(--lm-tag-color);
  font-size: var(--lm-tag-size, 0.9rem);
  font-weight: 600;
  line-height: 1.5;
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--lm-ease), box-shadow 0.3s;
}

.lm-star-tag:hover {
  background: var(--lm-tag-color);
  box-shadow: 0 8px 18px -10px var(--lm-tag-color);
  color: #fff;
  transform: translateY(-2px);
}

[data-theme="dark"] .lm-star-tag {
  background: color-mix(in srgb, var(--lm-tag-color) 20%, transparent);
  color: color-mix(in srgb, var(--lm-tag-color) 55%, #fff);
}

[data-theme="dark"] .lm-star-tag:hover { color: #fff; }

/* Voyage log: month, a light trail sized by post count, count. */
.lm-log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lm-log li { margin: 0; padding: 0; }
.lm-log li::before { display: none; }

.lm-log a {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  border-radius: 10px;
  color: var(--lm-ink-2);
  transition: background-color 0.25s;
}

.lm-log a:hover { background: var(--lm-violet-soft); color: var(--lm-violet); }

.lm-log-date {
  color: var(--lm-ink-3);
  font-family: var(--lm-font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.lm-log-date b {
  margin-right: 6px;
  color: var(--lm-ink);
  font-size: 1.15rem;
  font-style: italic;
}

.lm-log-bar {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--lm-line), var(--lm-line));
  overflow: hidden;
}

.lm-log-bar::after {
  display: block;
  width: min(100%, calc(var(--lm-log) * 22%));
  height: 100%;
  border-radius: inherit;
  background: var(--lm-grad);
  content: "";
}

.lm-log-count {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.lm-starmap-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--lm-violet);
  font-size: 0.86rem;
}

.lm-starmap-more i { transition: transform 0.3s var(--lm-ease); }
.lm-starmap-more:hover i { transform: translateX(4px); }

.lm-star-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

.lm-star-cat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--lm-line);
  border-radius: 14px;
  color: var(--lm-ink-2);
  transition: border-color 0.3s, transform 0.3s var(--lm-ease), box-shadow 0.3s;
}

.lm-star-cat b {
  background: var(--lm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--lm-font-serif);
  font-size: 2rem;
  font-style: italic;
  line-height: 1.1;
}

.lm-star-cat span { font-size: 0.88rem; letter-spacing: 0.08em; }

.lm-star-cat:hover {
  border-color: var(--lm-line-strong);
  box-shadow: var(--lm-shadow-1);
  color: var(--lm-violet);
  transform: translateY(-2px);
}

.lm-index-head { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lm-feature { grid-template-columns: 1fr; }
  .lm-feature-cover { --lm-cover-radius: var(--lm-cover-corner) var(--lm-cover-corner) 0 0; min-height: 0; aspect-ratio: 3 / 2; }
  .lm-feature-cover img { object-fit: cover; }
  .lm-feature-cover-light { background: radial-gradient(120% 80% at 0% 0%, rgba(232, 102, 91, 0.28), transparent 55%), linear-gradient(180deg, transparent 60%, var(--lm-surface) 100%); }
  .lm-feature-body { padding: 26px 30px 30px; }
  .lm-feature-body::after { display: none; }
}

@media (max-width: 768px) {
  .lm-issue { margin-top: 18px; font-size: 0.74rem; }
  .lm-issue > span { padding: 0 9px; }
  .lm-issue b { font-size: 0.98rem; }

  .lm-feature { --lm-feature-radius: 20px; margin-bottom: 26px; }
  .lm-feature-body { gap: 10px; padding: 18px 20px 24px; }

  .lm-starmap-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "tags" "log" "cats";
  }

  .lm-starmap-panel { padding: 18px; }
}

/* ==== 40-article.css ==== */
/* Reading surfaces: posts, pages, archives, and article typography. */

/* ---------- Paper containers ---------- */
#post,
#page,
#archive,
#tag,
#category {
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-1);
}

#page .page-title,
#archive .article-sort-title,
#tag .article-sort-title,
#category .article-sort-title {
  color: var(--lm-ink);
  font-weight: 750;
  letter-spacing: 0.02em;
}

/* ---------- Article typography ---------- */
#article-container {
  color: var(--lm-ink);
  font-size: 16.5px;
  line-height: 1.9;
}

#article-container p {
  margin: 0 0 1.05em;
}

#article-container h1,
#article-container h2,
#article-container h3,
#article-container h4,
#article-container h5,
#article-container h6 {
  position: relative;
  color: var(--lm-ink);
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

#article-container > h2 {
  margin: 2.1em 0 0.9em;
  padding-bottom: 0.45em;
  font-size: 1.5em;
}

#article-container > h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.6em;
  height: 3px;
  border-radius: 3px;
  background: var(--lm-grad);
  content: "";
}

#article-container > h3 {
  margin: 1.7em 0 0.7em;
  padding-left: 0.95em;
  font-size: 1.24em;
}

#article-container > h3::before {
  position: absolute;
  top: 0.62em;
  left: 0.05em;
  width: 0.42em;
  height: 0.42em;
  border-radius: 2px;
  background: var(--lm-violet);
  content: "";
  transform: rotate(45deg);
}

/* Links inside running text */
#article-container p a:not(.fancybox),
#article-container li a:not(.fancybox),
#article-container td a {
  color: var(--lm-violet);
  text-decoration: underline;
  text-decoration-color: var(--lm-violet-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

#article-container p a:not(.fancybox):hover,
#article-container li a:not(.fancybox):hover,
#article-container td a:hover {
  color: var(--lm-coral);
  text-decoration-color: currentColor;
}

#article-container strong {
  color: var(--lm-ink);
  font-weight: 700;
}

#article-container ul > li::marker,
#article-container ol > li::marker {
  color: var(--lm-violet);
}

/* Images */
#article-container img {
  border-radius: 12px;
}

/* Quotes */
#article-container blockquote {
  margin: 1.4em 0;
  padding: 0.9em 1.2em;
  border: 0;
  border-left: 3px solid var(--lm-violet);
  border-radius: 0 14px 14px 0;
  background: var(--lm-surface-2);
  color: var(--lm-ink-2);
}

#article-container blockquote p:last-child { margin-bottom: 0; }

/* Divider: a hairline with a small star instead of the dashed scissors. */
#content-inner hr {
  width: 100%;
  height: 1px;
  margin: 2.6em auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--lm-line-strong) 20%, var(--lm-line-strong) 80%, transparent);
}

#content-inner hr::before {
  top: 50%;
  left: 50%;
  padding: 0 0.7em;
  background: var(--lm-surface);
  color: var(--lm-violet);
  font-family: var(--lm-font-serif);
  font-size: 14px;
  font-weight: 400;
  content: "✦";
  transform: translate(-50%, -50%);
  transition: none;
}

#content-inner hr:hover::before {
  left: 50%;
}

/* Inline code & blocks */
#article-container :not(pre) > code {
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: var(--lm-violet-soft);
  color: var(--lm-violet);
  font-size: 0.88em;
}

#article-container figure.highlight,
#article-container > pre {
  overflow: hidden;
  border: 1px solid var(--lm-line);
  border-radius: 14px;
  background: var(--lm-surface-2);
  box-shadow: none;
}

#article-container figure.highlight pre {
  border: 0;
  border-radius: 0;
  background: transparent;
}

#article-container figure.highlight .highlight-tools {
  border-bottom: 1px solid var(--lm-line);
}

/* Tables */
#article-container table {
  overflow: hidden;
  border: 1px solid var(--lm-line);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--lm-surface);
}

#article-container table th,
#article-container table td {
  border: 0;
  border-bottom: 1px solid var(--lm-line);
  color: var(--lm-ink-2);
}

#article-container table th {
  background: var(--lm-violet-soft);
  color: var(--lm-ink);
  font-weight: 650;
}

#article-container table tr:last-child td { border-bottom: 0; }
#article-container table tr:nth-child(even) td { background: var(--lm-surface-2); }

/* ---------- Post footer blocks ---------- */
#post .tag_share .post-meta__tag-list a,
#post .post-meta__tags {
  border: 1px solid var(--lm-line);
  border-radius: 999px;
  color: var(--lm-ink-2);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

#post .post-meta__tags:hover {
  border-color: var(--lm-violet);
  background: var(--lm-violet);
  color: #fff;
}

#post .post-copyright {
  border: 1px dashed var(--lm-line-strong);
  border-radius: 14px;
  background: var(--lm-surface-2);
  box-shadow: none;
}

#post .post-copyright:hover {
  box-shadow: none;
}

#post .post-copyright::before {
  color: var(--lm-violet);
}

#post .post-copyright .post-copyright-meta {
  color: var(--lm-violet);
}

#post .post-reward .reward-button {
  border-radius: 999px;
  background: var(--lm-grad);
  box-shadow: 0 8px 20px -10px rgba(102, 86, 216, 0.7);
}

#post .post-reward .reward-main .reward-all {
  border: 1px solid var(--lm-line);
  border-radius: 14px;
  box-shadow: var(--lm-shadow-2);
}

/* Prev / next and related posts */
#pagination.pagination-post,
.relatedPosts > .relatedPosts-list > div,
.relatedPosts .pagination-related {
  overflow: hidden;
  border-radius: 14px;
}

#pagination.pagination-post {
  border: 1px solid var(--lm-line);
  box-shadow: var(--lm-shadow-1);
}

/* Posts without a cover: the theme paints div.cover with --default-bg-color
   at low opacity over black; use the palette gradient and let it show. */
#pagination.pagination-post,
.relatedPosts {
  --default-bg-color: linear-gradient(120deg, #3a2d78, #6656d8 55%, #2f97c1);
}

#pagination.pagination-post .prev-post div.cover,
#pagination.pagination-post .next-post div.cover,
#pagination.pagination-post .pagination-related div.cover,
.relatedPosts .relatedPosts-list > div > a > div.cover {
  opacity: 0.88;
}

#pagination .pagination-related .label,
.relatedPosts .pagination-related .label {
  letter-spacing: 0.08em;
}

.relatedPosts > .headline,
#post-comment .comment-head .comment-headline {
  color: var(--lm-ink);
  font-weight: 700;
}

/* ---------- Read-only buttons from theme tags ---------- */
#post .post-button a.btn,
#article-container .btn-beautify {
  border-radius: 10px;
}

/* ---------- Archives / tag / category lists: 航线日志 ----------
   One route (gradient line) with a stop per post; years are large serif
   numerals, posts are paper rows. Theme positions the stops with ::before
   at a fixed offset from each row, so rows keep the theme's left margin. */
.article-sort {
  border-left: 2px solid transparent;
  border-image: var(--lm-grad-v) 1;
}

.article-sort-title {
  color: var(--lm-ink);
  font-weight: 750;
  letter-spacing: 0.02em;
}

.article-sort-title::before,
.article-sort-item::before {
  box-sizing: border-box;
  border: 2px solid var(--lm-violet) !important;
  background: var(--lm-surface) !important;
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.25s var(--lm-ease);
}

.article-sort-title::before {
  left: -8px;
  width: 18px;
  height: 18px;
  border-width: 4px !important;
  background: var(--lm-surface) !important;
}

.article-sort-title::after { background: var(--lm-coral); opacity: 0.5; }

.article-sort-item.year {
  width: fit-content;
  margin: 18px 0 14px 10px;
  padding-right: 0.15em;
  color: transparent;
  background: var(--lm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--lm-font-serif);
  font-size: 2.1em;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.article-sort-item.year::before {
  left: -38px;
  width: 14px;
  height: 14px;
  border-color: var(--lm-coral) !important;
  background: var(--lm-coral) !important;
  box-shadow: 0 0 0 4px var(--lm-coral-soft);
}

.article-sort-item:not(.year) {
  min-height: 0;
  height: auto;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--lm-line);
  border-radius: 14px;
  background: var(--lm-surface-2);
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.3s var(--lm-ease), background-color 0.25s;
}

.article-sort-item:not(.year)::before {
  width: 12px;
  height: 12px;
  /* Centred on the route: the theme offset plus this row's 1px border. */
  left: -38px;
}

.article-sort-item:not(.year):hover {
  border-color: color-mix(in srgb, var(--lm-violet) 40%, transparent);
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-2);
  transform: translateX(4px);
}

.article-sort-item:not(.year):hover::before {
  background: var(--lm-violet) !important;
  box-shadow: 0 0 0 4px var(--lm-violet-soft), 0 0 12px rgba(102, 86, 216, 0.45);
  transform: translateX(-4px) scale(1.15);
}

.article-sort-item.no-article-cover { height: auto; min-height: 76px; }
.article-sort-item.no-article-cover .article-sort-item-info { padding: 0 2px; }

.article-sort-item-info { padding: 0 4px 0 16px; }

.article-sort-item-time {
  color: var(--lm-violet);
  font-family: var(--lm-font-serif);
  font-size: 0.86em;
  font-style: italic;
  letter-spacing: 0.06em;
}

.article-sort-item-time i { display: none; }
.article-sort-item-time time { padding-left: 0; }

.article-sort-item .article-sort-item-title {
  margin-top: 2px;
  color: var(--lm-ink);
  font-weight: 600;
  line-height: 1.55;
}

.article-sort-item .article-sort-item-title:hover {
  color: var(--lm-violet);
  transform: none;
}

.article-sort-item-img {
  flex: 0 0 auto;
  width: 112px;
  height: 76px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--lm-line), 0 6px 14px -8px rgba(31, 36, 64, 0.45);
}

@media (max-width: 768px) {
  .article-sort-item:not(.year) { padding: 10px; }
  .article-sort-item-img { width: 76px; height: 64px; }
  .article-sort-item-info { padding-left: 12px; }
  .article-sort-item.year { font-size: 1.8em; }
}

/* Tag cloud & category list pages */
.tag-cloud-list a {
  margin: 4px 6px;
  padding: 2px 6px;
  border-radius: 8px;
  transition: background-color 0.2s, transform 0.2s var(--lm-ease);
}

/* 4.13-style text tags only; 5.x capsules keep their colour (see below). */
.tag-cloud-list a:not(.tag-cloud-item):not([style*="background-color"]):hover {
  background: var(--lm-violet-soft);
  transform: translateY(-2px);
}

.category-lists .category-list a {
  color: var(--lm-ink);
}

.category-lists .category-list a:hover {
  color: var(--lm-violet);
}

.category-lists .category-list .category-list-count {
  color: var(--lm-ink-3);
}

@media (max-width: 768px) {
  #article-container { font-size: 15.5px; line-height: 1.85; }
  #article-container > h2 { font-size: 1.32em; }

  #article-container table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #article-container table th,
  #article-container table td { min-width: 120px; }
}

/* Butterfly 5.x tag capsules: colours come from custom_colors in
   source/tags/index.md; keep the white text readable and lift on hover. */
.tag-cloud-list a.tag-cloud-item,
.tag-cloud-list a[style*="background-color"] {
  margin: 5px 4px;
  padding: 3px 12px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 6px 14px -10px rgba(31, 36, 64, 0.8);
  transition: transform 0.25s var(--lm-ease), box-shadow 0.25s, filter 0.25s;
}

.tag-cloud-list a.tag-cloud-item:hover,
.tag-cloud-list a[style*="background-color"]:hover {
  background-image: none;
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(31, 36, 64, 0.9);
  filter: brightness(1.08) saturate(1.05);
  transform: translateY(-2px);
}

[data-theme="dark"] .tag-cloud-list a.tag-cloud-item,
[data-theme="dark"] .tag-cloud-list a[style*="background-color"] {
  filter: brightness(1.12);
}

/* ==== 45-post.css ==== */
/*
 * 航海日志 · the post page. Hero chips, numbered sections, the theme's tag
 * plugins (labels, buttons, toggles, timelines, code blocks) in the journal
 * palette, the closing mark, and the TOC drawn as a route.
 * luomo-reading.js adds the section links, the TOC route fill and the
 * remaining reading time.
 */

/* ---------- Hero: kicker, meta as glass chips ---------- */
/* The theme sizes every child of #post-info (max-width, centring, padding);
   a pseudo-element is not matched by "> *", so mirror it here. */
#page-header.post-bg #post-info::before {
  display: block;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto 10px;
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--lm-font-serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.28em;
  content: "✦ 航海日志 · VOYAGE LOG";
  text-shadow: 0 1px 6px rgba(10, 10, 30, 0.5);
}

@media (min-width: 768px) and (max-width: 1300px) {
  #page-header.post-bg #post-info::before { padding: 0 30px; }
}

@media (min-width: 2000px) {
  #page-header.post-bg #post-info::before { max-width: 70%; }
}

#page-header #post-info #post-meta {
  margin-top: 14px;
  font-size: 13px;
}

#page-header #post-info #post-meta > div {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 8px 8px 0;
  vertical-align: top;
}

#page-header #post-info #post-meta .post-meta-separator { display: none; }

#page-header #post-info #post-meta > div > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(14, 16, 34, 0.32);
  line-height: 1.6;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#page-header #post-info #post-meta .post-meta-label { opacity: 0.72; }
#page-header #post-info #post-meta .post-meta-icon { margin-right: 0; opacity: 0.85; }
#page-header #post-info #post-meta .post-meta-date .fa-history { margin-left: 0.7em; }

#page-header #post-info #post-meta span.post-meta-categories {
  border-color: transparent;
  background: linear-gradient(120deg, rgba(232, 102, 91, 0.82), rgba(102, 86, 216, 0.82));
}

/* ---------- Numbered sections ---------- */
#post #article-container { counter-reset: lm-section; }
#post #article-container > h2 { counter-increment: lm-section; }

/* Headings the author numbered (scripts/luomo-headings.js) keep their own. */
#post #article-container > h2:not(.lm-own-number)::before {
  display: inline-block;
  margin-right: 0.5em;
  color: var(--lm-coral);
  font-family: var(--lm-font-serif);
  font-size: 0.72em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  content: counter(lm-section, decimal-leading-zero);
  vertical-align: 0.16em;
}

/* Section link (luomo-reading.js): appears on hover or keyboard focus. */
.lm-anchor {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  margin-left: 0.35em;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lm-ink-3);
  font-family: var(--lm-font-serif);
  font-size: 0.7em;
  font-weight: 400;
  vertical-align: 0.18em;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

#article-container h2:hover .lm-anchor,
#article-container h3:hover .lm-anchor,
.lm-anchor:focus-visible {
  opacity: 1;
}

.lm-anchor:hover {
  background: var(--lm-violet-soft);
  color: var(--lm-violet);
}

@media (hover: none) {
  .lm-anchor { opacity: 0.55; }
}

/* ---------- Labels: a highlighter stroke instead of a solid sticker ---------- */
#article-container mark.hl-label {
  --lm-mark: var(--lm-violet);
  margin: 0 0.12em;
  padding: 0 0.28em;
  border-radius: 0.3em;
  background: var(--lm-violet-soft);
  background: linear-gradient(transparent 50%, color-mix(in srgb, var(--lm-mark) 26%, transparent) 50%);
  color: var(--lm-ink);
  font-weight: 650;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

#article-container .hl-label.blue { --lm-mark: var(--lm-sky); }
#article-container .hl-label.pink,
#article-container .hl-label.red { --lm-mark: var(--lm-coral); }
#article-container .hl-label.orange { --lm-mark: var(--lm-amber); }
#article-container .hl-label.green { --lm-mark: var(--lm-moss); }

/* ---------- Buttons: paper tickets tinted by their colour ---------- */
#article-container .btn-beautify {
  --lm-btn: var(--lm-violet);
  border: 1px solid color-mix(in srgb, var(--lm-btn) 38%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--lm-btn) 10%, var(--lm-surface));
  color: color-mix(in srgb, var(--lm-btn) 80%, var(--lm-ink));
  font-weight: 600;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--lm-ease), box-shadow 0.25s;
}

#article-container .btn-beautify.blue { --lm-btn: var(--lm-sky); }
#article-container .btn-beautify.pink,
#article-container .btn-beautify.red { --lm-btn: var(--lm-coral); }
#article-container .btn-beautify.orange { --lm-btn: var(--lm-amber); }
#article-container .btn-beautify.green { --lm-btn: var(--lm-moss); }

#article-container .btn-beautify:hover,
#article-container .btn-beautify:focus-visible {
  border-color: var(--lm-btn);
  background: var(--lm-btn);
  color: #fff !important;
  box-shadow: 0 10px 22px -14px var(--lm-btn);
  transform: translateY(-2px);
}

[data-theme="dark"] #article-container .btn-beautify:hover,
[data-theme="dark"] #article-container .btn-beautify:focus-visible {
  color: #14151f !important;
}

/* ---------- Toggles: a folded page, not a coloured bar ----------
   The tag writes its colours inline, hence !important. */
#article-container details.toggle {
  overflow: hidden;
  border: 1px solid var(--lm-line) !important;
  border-radius: 14px;
  background: var(--lm-surface-2);
}

#article-container details.toggle > summary.toggle-button {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.75em 1.1em;
  background: transparent !important;
  color: var(--lm-ink) !important;
  font-weight: 650;
  transition: background-color 0.2s;
}

#article-container details.toggle > summary.toggle-button::before {
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  margin: 0;
  border-radius: 50%;
  background: var(--lm-violet-soft);
  color: var(--lm-violet);
  font-size: 0.8em;
}

#article-container details.toggle > summary.toggle-button:hover { background: var(--lm-violet-soft) !important; }
#article-container details.toggle[open] > summary.toggle-button { border-bottom: 1px dashed var(--lm-line-strong); }
#article-container details.toggle > .toggle-content { margin: 1.1em 1.3em; }

/* ---------- Timeline tag: a route with stops ---------- */
#article-container .timeline:not(:has(.timeline-dot)) {
  --timeline-color: var(--lm-violet);
  --timeline-bg: var(--lm-surface-2);
  border-left: 2px solid transparent;
  border-image: var(--lm-grad-v) 1;
}

#article-container .timeline:not(:has(.timeline-dot)) .item-circle::before {
  border-color: var(--lm-violet);
  background: var(--lm-surface);
}

#article-container .timeline:not(:has(.timeline-dot)) .timeline-item:hover .item-circle::before {
  border-color: var(--lm-coral);
  box-shadow: 0 0 0 4px var(--lm-coral-soft);
}

#article-container .timeline:not(:has(.timeline-dot)) .headline .item-circle > p {
  color: var(--lm-ink);
  font-family: var(--lm-font-serif);
  font-style: italic;
}

#article-container .timeline:not(:has(.timeline-dot)) .timeline-item-content {
  border: 1px solid var(--lm-line);
  border-radius: 12px;
  background: var(--lm-surface-2);
  color: var(--lm-ink-2);
}

/* ---------- Code blocks: three palette dots and a quiet language tag ---------- */
#article-container figure.highlight .highlight-tools {
  gap: 2px;
  padding: 0 10px;
  background: var(--lm-surface);
}

#article-container figure.highlight .highlight-tools::before {
  flex: 0 0 auto;
  order: -1;
  width: 40px;
  height: 10px;
  margin-right: 6px;
  background:
    radial-gradient(circle at 5px 5px, var(--lm-coral) 4px, transparent 4.5px),
    radial-gradient(circle at 20px 5px, var(--lm-violet) 4px, transparent 4.5px),
    radial-gradient(circle at 35px 5px, var(--lm-sky) 4px, transparent 4.5px);
  content: "";
  opacity: 0.85;
}

#article-container figure.highlight .highlight-tools .code-lang {
  color: var(--lm-ink-3);
  font-family: var(--lm-font-mono);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ---------- Closing mark ---------- */
#post #article-container::after {
  display: block;
  margin: 3em 0 0.5em;
  color: var(--lm-ink-3);
  font-family: var(--lm-font-serif);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.4em;
  text-align: center;
  content: "✦  本篇完  ✦";
}

/* ---------- TOC: a route; luomo-reading.js fills it up to the active stop ---------- */
#aside-content #card-toc .toc-content .toc {
  position: relative;
}

#aside-content #card-toc .toc-content .toc::before,
#aside-content #card-toc .toc-content .toc::after {
  position: absolute;
  top: 8px;
  left: 7px;
  width: 2px;
  border-radius: 2px;
  content: "";
}

#aside-content #card-toc .toc-content .toc::before {
  bottom: 8px;
  background: var(--lm-line-strong);
}

#aside-content #card-toc .toc-content .toc::after {
  height: var(--lm-toc-fill, 0px);
  background: var(--lm-grad-v);
  transition: height 0.35s var(--lm-ease);
}

#aside-content #card-toc .toc-content .toc > .toc-item > .toc-child,
#aside-content #card-toc .toc-content .toc-child {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

#aside-content #card-toc .toc-content .toc-link {
  position: relative;
  padding-left: 24px;
  border-left: 0 !important;
}

#aside-content #card-toc .toc-content .toc-child .toc-link { padding-left: 38px; }

#aside-content #card-toc .toc-content .toc-link::before {
  position: absolute;
  top: calc(0.85em - 1px);
  left: 3px;
  z-index: 1;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 2px solid var(--lm-line-strong);
  border-radius: 50%;
  background: var(--lm-surface);
  content: "";
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.25s var(--lm-ease);
}

#aside-content #card-toc .toc-content .toc-child .toc-link::before {
  left: 4px;
  width: 8px;
  height: 8px;
  margin-top: 1px;
}

#aside-content #card-toc .toc-content .toc-link.active::before {
  border-color: var(--lm-surface);
  background: var(--lm-violet);
  box-shadow: 0 0 0 3px var(--lm-violet-soft), 0 0 12px rgba(102, 86, 216, 0.45);
  transform: scale(1.15);
}

#aside-content #card-toc .toc-content .toc-number {
  color: var(--lm-ink-3);
  font-family: var(--lm-font-serif);
  font-style: italic;
}

#aside-content #card-toc .toc-content .toc-link.active .toc-number { color: inherit; }
#aside-content #card-toc .lm-toc-own-numbers > .toc-item > .toc-link > .toc-number { display: none; }

.lm-toc-remaining {
  display: block;
  margin: -4px 0 8px;
  color: var(--lm-ink-3);
  font-size: 12px;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  #page-header #post-info #post-meta { font-size: 12px; }
  #page-header #post-info #post-meta > div { gap: 6px; }
  #page-header #post-info #post-meta > div > span { padding: 3px 10px; }
  #page-header.post-bg #post-info::before { display: none; }
  #page-header #post-info #post-meta .post-meta-label { display: none; }
  #page-header #post-info #post-meta > div { display: flex; margin: 0 0 6px; }
}

/* ==== 50-aside.css ==== */
/* Sidebar widgets. */

#aside-content .card-widget {
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-1);
  transition: box-shadow var(--lm-dur) var(--lm-ease), border-color var(--lm-dur);
}

#aside-content .card-widget:hover {
  border-color: var(--lm-line-strong);
  box-shadow: var(--lm-shadow-2);
}

/* Widget headings with a short gradient stroke. */
#aside-content .item-headline {
  position: relative;
  padding-bottom: 8px;
  color: var(--lm-ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

#aside-content .item-headline::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1.8em;
  height: 2px;
  border-radius: 2px;
  background: var(--lm-grad);
  content: "";
}

#aside-content .item-headline i {
  color: var(--lm-violet);
}

/* Preserve the label box and its spacing when the renderer captures it. */
#aside-content .item-headline > i + span,
#aside-content #card-info-btn > i + span {
  display: inline-block;
}

/* ---------- Author card ---------- */
#aside-content .card-info {
  position: relative;
  overflow: hidden;
}

#aside-content .card-info::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(120deg, var(--lm-coral-soft), var(--lm-violet-soft) 55%, rgba(47, 151, 193, 0.12));
  content: "";
}

#aside-content .card-info > * {
  position: relative;
}

#aside-content .card-info .avatar-img {
  padding: 3px;
  border-radius: 50%;
  background: var(--lm-grad);
  box-shadow: 0 10px 24px -12px rgba(102, 86, 216, 0.7);
}

#aside-content .card-info .avatar-img img {
  border: 3px solid var(--lm-surface);
  border-radius: 50%;
}

#aside-content .card-info :is(.author-info__name, .author-info-name) {
  color: var(--lm-ink);
  font-weight: 750;
  letter-spacing: 0.03em;
}

#aside-content .card-info :is(.author-info__description, .author-info-description) {
  color: var(--lm-ink-2);
  line-height: 1.7;
}

#aside-content .card-info .site-data a .headline {
  color: var(--lm-ink-3);
}

#aside-content .card-info .site-data a .length-num {
  color: var(--lm-ink);
  font-family: var(--lm-font-serif);
  font-weight: 700;
}

#aside-content .card-info #card-info-btn {
  border-radius: 999px;
  background: var(--lm-grad);
  box-shadow: 0 10px 22px -12px rgba(102, 86, 216, 0.8);
  transition: transform 0.25s var(--lm-ease), box-shadow 0.25s;
}

#aside-content .card-info #card-info-btn:hover {
  box-shadow: 0 14px 26px -12px rgba(232, 102, 91, 0.7);
  transform: translateY(-2px);
}

/* ---------- Lists ---------- */
#aside-content .aside-list > .aside-list-item .thumbnail {
  border-radius: 10px;
}

#aside-content .aside-list > .aside-list-item .content > .title {
  color: var(--lm-ink);
}

#aside-content .aside-list > .aside-list-item .content > .title:hover {
  color: var(--lm-violet);
}

#aside-content .aside-list > .aside-list-item .content > time {
  color: var(--lm-ink-3);
}

#aside-content .card-archives ul.card-archive-list > .card-archive-list-item a,
#aside-content .card-categories ul.card-category-list > .card-category-list-item a {
  border-radius: 10px;
  color: var(--lm-ink-2);
}

#aside-content .card-archives ul.card-archive-list > .card-archive-list-item a:hover,
#aside-content .card-categories ul.card-category-list > .card-category-list-item a:hover {
  background: var(--lm-violet-soft);
  color: var(--lm-violet);
}

#aside-content .card-tag-cloud a {
  border-radius: 6px;
  transition: background-color 0.2s;
}

#aside-content .card-tag-cloud a:hover {
  background: var(--lm-violet-soft);
}

#aside-content .card-webinfo .webinfo .webinfo-item {
  color: var(--lm-ink-2);
}

/* ---------- Table of contents ---------- */
#aside-content #card-toc .toc-percentage {
  color: var(--lm-violet);
  font-family: var(--lm-font-serif);
  font-style: italic;
}

#aside-content #card-toc .toc-content .toc-link {
  border-radius: 0 8px 8px 0;
}

#aside-content #card-toc .toc-content .toc-link.active {
  border-left: 2px solid var(--lm-violet);
  background: var(--lm-violet-soft);
  color: var(--lm-violet);
}

/* ---------- Visitor star-map globe (source/js/luomo-globe.js) ---------- */
#aside-content #user-map .item-content { padding: 4px 0 0; }

.lm-globe { position: relative; }

.lm-globe-stage {
  position: relative;
  display: flex;
  justify-content: center;
  touch-action: pan-y;
}

.lm-globe canvas {
  display: block;
  cursor: grab;
}

.lm-globe.is-dragging canvas { cursor: grabbing; }

.lm-globe.is-loading canvas { opacity: 0.5; }

/* Unavailable: the chart stays as a quiet ornament under a frosted label. */
.lm-globe.is-unavailable canvas { opacity: 0.55; filter: saturate(0.6); }

.lm-globe-status {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--lm-line);
  border-radius: 14px;
  background: var(--lm-glass);
  box-shadow: var(--lm-shadow-1);
  color: var(--lm-ink-3);
  font-size: 0.78rem;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lm-globe-status:empty { display: none; }

.lm-globe-status b {
  color: var(--lm-ink);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.lm-globe-tip {
  position: absolute;
  z-index: 3;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 8px);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lm-ink);
  color: var(--lm-paper);
  font-size: 0.76rem;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.lm-globe-tip[hidden] { display: none; }

.lm-globe-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.lm-globe-list li {
  display: grid;
  grid-template-columns: 5.5em 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 2px;
  color: var(--lm-ink-2);
  font-size: 0.84rem;
}

.lm-globe-list li::before { display: none; }

.lm-globe-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lm-globe-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--lm-line);
  overflow: hidden;
}

.lm-globe-bar::after {
  display: block;
  width: calc(var(--lm-share, 0) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--lm-grad);
  content: "";
}

.lm-globe-list b {
  color: var(--lm-ink);
  font-family: var(--lm-font-serif);
  font-variant-numeric: tabular-nums;
}

.lm-globe-meta {
  margin: 8px 0 0;
  color: var(--lm-ink-3);
  font-size: 0.74rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.lm-globe-meta:empty { display: none; }

/* ---------- Announcement ---------- */
#aside-content .card-announcement .announcement_content {
  color: var(--lm-ink-2);
  font-size: 0.9rem;
  line-height: 1.8;
}

#aside-content .card-announcement .announcement_content a {
  color: var(--lm-violet);
  text-decoration: underline;
  text-decoration-color: var(--lm-violet-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

#aside-content .card-announcement .announcement_content a:hover {
  color: var(--lm-coral);
}

#aside-content .card-announcement .item-headline i {
  color: var(--lm-coral);
}

/* ---------- Newest comments (Waline) ---------- */
#aside-content #card-newest-comments .aside-list-item .thumbnail {
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--lm-surface), 0 0 0 3px var(--lm-violet-soft);
}

#aside-content #card-newest-comments .aside-list-item .content > .comment {
  color: var(--lm-ink);
}

#aside-content #card-newest-comments .aside-list-item .content > .name {
  color: var(--lm-ink-3);
}

/* ==== 60-pages.css ==== */
/*
 * Custom pages: projects, cloud dashboard / status, build-log timeline,
 * friend links, 404. Class names are used by the Markdown in source/*,
 * so rename them only together with those pages.
 */

/* ---------- Shared page hero ---------- */
.luomo-hero { padding: 32px 16px 20px; text-align: center; }
.luomo-hero-title { margin-bottom: 6px; color: var(--lm-ink); font-size: 1.7rem; font-weight: 750; letter-spacing: 0.03em; }
.luomo-hero-sub { color: var(--lm-ink-3); font-size: 0.95rem; }
.luomo-section-footer { padding: 32px 16px; color: var(--lm-ink-3); font-family: var(--lm-font-serif); font-style: italic; text-align: center; opacity: 0.85; }

/* Shared card recipe */
.project-card,
.cloud-card,
.timeline:has(.timeline-dot) .timeline-content {
  border: 1px solid var(--lm-line);
  border-radius: 14px;
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-1);
  transition: transform var(--lm-dur) var(--lm-ease), box-shadow var(--lm-dur), border-color var(--lm-dur);
}

.project-card:hover,
.cloud-card:hover,
.timeline:has(.timeline-dot) .timeline-content:hover {
  border-color: var(--lm-line-strong);
  box-shadow: var(--lm-shadow-2);
  transform: translateY(-3px);
}

/* ---------- Project archive ---------- */
.projects-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.filter-btn { padding: 6px 16px; border: 1px solid var(--lm-line-strong); border-radius: 999px; background: var(--lm-surface); color: var(--lm-ink-2); font-size: 0.88rem; cursor: pointer; transition: all 0.25s var(--lm-ease); }
.filter-btn:hover { border-color: var(--lm-violet); color: var(--lm-violet); }
.filter-btn.active { border-color: var(--lm-violet); background: var(--lm-violet); color: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.project-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; }
.project-card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.project-name { margin: 0; color: var(--lm-ink); font-size: 1.05rem; font-weight: 700; }
.project-desc { margin: 0; color: var(--lm-ink-3); font-size: 0.88rem; line-height: 1.6; }
.project-status { padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.status-online { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.status-building { background: rgba(234, 179, 8, 0.12); color: #ca8a04; }
.status-debug { background: rgba(249, 115, 22, 0.12); color: #ea580c; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tech-tag { padding: 2px 8px; border: 1px solid var(--lm-line); border-radius: 6px; background: var(--lm-violet-soft); color: var(--lm-violet); font-size: 0.75rem; }
.project-link { display: inline-block; margin-top: auto; color: var(--lm-violet); font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
.project-link:hover { color: var(--lm-coral); }

/* ---------- Cloud dashboard / status ---------- */
.cloud-dashboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cloud-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; }
.cloud-card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.cloud-name { margin: 0; color: var(--lm-ink); font-size: 1.02rem; font-weight: 700; }
.cloud-desc { margin: 0; color: var(--lm-ink-3); font-size: 0.85rem; }
.status-indicator { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 600; }
.status-indicator.status-online { color: #15803d; }
.status-indicator.status-building { color: #ca8a04; }
.status-indicator.status-debug { color: #ea580c; }
.status-unknown { background: rgba(100, 116, 139, 0.1); color: var(--lm-ink-3); }
.status-degraded { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.status-indicator.status-unknown,
.status-indicator.status-degraded { padding: 2px 9px; border-radius: 999px; }
.status-label { line-height: 1.45; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.status-online .status-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.status-building .status-dot { background: #eab308; }
.status-debug .status-dot { background: #f97316; }
.status-unknown .status-dot { background: #94a3b8; }
.status-degraded .status-dot { background: #f59e0b; }
.status-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
#status-summary { flex: 1 1 240px; margin: 0; color: var(--lm-ink-3); font-size: 0.88rem; line-height: 1.6; }
.status-refresh { padding: 7px 16px; border: 1px solid var(--lm-violet); border-radius: 999px; background: var(--lm-violet-soft); color: var(--lm-violet); font: inherit; font-size: 0.88rem; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.status-refresh:hover { background: var(--lm-violet); color: #fff; }
.status-refresh:disabled { cursor: wait; opacity: 0.65; }
.status-scope { margin: 0 0 18px; padding: 10px 14px; border-left: 3px solid var(--lm-violet); border-radius: 0 10px 10px 0; background: var(--lm-surface-2); color: var(--lm-ink-3); font-size: 0.85rem; line-height: 1.65; }
.cloud-url a { color: var(--lm-ink-3); font-size: 0.8rem; text-decoration: none; }
.cloud-url a:hover { color: var(--lm-violet); }
.check-time { color: var(--lm-ink-3); font-size: 0.75rem; }
.cloud-card[data-service-id] .time-value { font: inherit; font-variant-numeric: tabular-nums; }

/* ---------- Build-log timeline ---------- */
/* Shares the .timeline class with Butterfly's {% timeline %} tag, so every
   rule is scoped to this page's dotted variant; posts keep the tag's look. */
#article-container .timeline:has(.timeline-dot) { position: relative; max-width: 680px; margin: 0 auto; padding: 16px 0; border-left: 0; }
.timeline:has(.timeline-dot)::before { position: absolute; top: 0; bottom: 0; left: 100px; width: 2px; background: linear-gradient(180deg, var(--lm-coral), var(--lm-violet), var(--lm-sky)); content: ""; opacity: 0.45; }
#article-container .timeline:has(.timeline-dot) .timeline-item { position: relative; display: flex; align-items: flex-start; gap: 16px; margin: 0; padding: 14px 0; }
.timeline-dot { position: absolute; top: 20px; left: 94px; z-index: 1; width: 10px; height: 10px; border: 2px solid var(--lm-surface); border-radius: 50%; background: var(--lm-violet); box-shadow: 0 0 0 3px var(--lm-violet-soft); }
.timeline-date { flex-shrink: 0; width: 80px; padding-top: 2px; color: var(--lm-violet); font-family: var(--lm-font-serif); font-size: 0.9rem; font-style: italic; font-weight: 600; text-align: right; }
.timeline:has(.timeline-dot) .timeline-content { flex: 1; margin-left: 16px; padding: 12px 16px; }
.timeline:has(.timeline-dot) .timeline-content h3 { margin: 0 0 4px; border: none; color: var(--lm-ink); font-size: 0.98rem; }
.timeline:has(.timeline-dot) .timeline-content p { margin: 0; color: var(--lm-ink-3); font-size: 0.86rem; line-height: 1.6; }

/* ---------- Friend links ---------- */
.flink .flink-list > .flink-list-item {
  border: 1px solid var(--lm-line);
  border-radius: 14px;
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-1);
  transition: transform var(--lm-dur) var(--lm-ease), box-shadow var(--lm-dur), border-color var(--lm-dur);
}

.flink .flink-list > .flink-list-item:hover {
  border-color: var(--lm-line-strong);
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-2);
  transform: translateY(-3px);
}

.flink .flink-list > .flink-list-item:hover .flink-item-name,
.flink .flink-list > .flink-list-item:hover .flink-item-desc {
  color: var(--lm-violet);
}

.flink .flink-list > .flink-list-item a img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--lm-surface), 0 0 0 4px var(--lm-violet-soft);
}

.flink .flink-list > .flink-list-item .flink-item-name { color: var(--lm-ink); font-weight: 650; }
.flink .flink-list > .flink-list-item .flink-item-desc { color: var(--lm-ink-3); }

/* This neighbor provides a wide wordmark; keep the entire mark visible. */
.flink a[href="https://xn--9krq6q.xn--vqqq8jxym.ink/"] .flink-item-icon img { object-fit: contain; background: #fff; }

.lm-friend-guide { margin-top: 36px; scroll-margin-top: 90px; }
.lm-friend-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.lm-friend-panel { min-width: 0; padding: 22px; border: 1px solid var(--lm-line); border-radius: var(--lm-radius); background: var(--lm-surface); box-shadow: var(--lm-shadow-1); }
.lm-friend-profile { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
#article-container .lm-friend-profile img { flex: 0 0 72px; width: 72px; height: 72px; margin: 0; border-radius: 50%; object-fit: cover; }
#article-container .lm-friend-panel h3 { margin: 0 0 8px; padding: 0; color: var(--lm-ink); font-size: 1.1rem; }
#article-container .lm-friend-profile p { margin: 0; color: var(--lm-ink-3); font-size: 0.86rem; line-height: 1.7; }
.lm-friend-facts { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 10px 12px; margin: 0 0 18px; font-size: 0.88rem; line-height: 1.7; }
.lm-friend-facts dt { color: var(--lm-ink-3); font-weight: 500; }
.lm-friend-facts dd { min-width: 0; margin: 0; color: var(--lm-ink); overflow-wrap: anywhere; }
.lm-friend-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
#article-container .lm-friend-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 16px; border: 1px solid var(--lm-violet); border-radius: 999px; background: var(--lm-violet-soft); color: var(--lm-violet); font: inherit; font-size: 0.88rem; line-height: 1.5; text-decoration: none; cursor: pointer; }
#article-container .lm-friend-button:hover,
#article-container .lm-friend-button-primary { background: var(--lm-violet); color: #fff; }
#article-container .lm-friend-button[hidden] { display: none; }
#article-container .lm-friend-code { max-width: 100%; margin: 14px 0; padding: 14px; border: 1px solid var(--lm-line); border-radius: 12px; background: var(--lm-surface-2); color: var(--lm-ink-2); font-size: 0.8rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
#article-container .lm-friend-code code { padding: 0; background: transparent; color: inherit; font-size: inherit; }
.lm-friend-details { margin-top: 18px; }
.lm-friend-details summary { color: var(--lm-violet); font-size: 0.88rem; cursor: pointer; }
#article-container .lm-friend-steps { display: grid; gap: 18px; margin: 18px 0; padding-left: 1.5em; }
.lm-friend-steps li { padding-left: 4px; }
.lm-friend-steps strong { display: block; margin-bottom: 4px; color: var(--lm-ink); }
.lm-friend-steps span { display: block; color: var(--lm-ink-2); font-size: 0.9rem; line-height: 1.8; }
#article-container .lm-friend-note { color: var(--lm-ink-3); font-size: 0.84rem; line-height: 1.8; }
.lm-friend-feedback { min-height: 1.8em; color: var(--lm-violet); font-size: 0.88rem; }

@media (max-width: 1100px) {
  .lm-friend-columns { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 404 (4.13: .error404 #error-wrap, 5.x: .type-404 #page.nc) ---------- */
.type-404 #page.nc {
  border: 0;
  background: transparent;
  box-shadow: none;
}

:is(.error404 #error-wrap, .type-404) .error-content {
  overflow: hidden;
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  box-shadow: var(--lm-shadow-2);
}

:is(.error404 #error-wrap, .type-404) .error-content .error-img img {
  background: #fff;
  object-fit: contain;
}

:is(.error404 #error-wrap, .type-404) .error-content .error-info .error_title {
  background: var(--lm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--lm-font-serif);
}

@media (max-width: 768px) {
  .projects-grid,
  .cloud-dashboard { grid-template-columns: 1fr; }

  .project-card:hover,
  .cloud-card:hover,
  .timeline-content:hover,
  .flink .flink-list > .flink-list-item:hover { transform: none; }

  .timeline::before { left: 16px; }
  .timeline-dot { left: 10px; }
  .timeline-date { width: auto; padding-left: 32px; font-size: 0.82rem; text-align: left; }
  .timeline-item { flex-direction: column; gap: 4px; }
  .timeline-content { margin-left: 0; }
}

/* ==== 70-motion.css ==== */
/*
 * Motion. Content is always visible without JavaScript:
 * - every browser gets a short fade-up when content is inserted (page load
 *   or a Pjax swap);
 * - browsers with scroll-driven animations reveal cards as they scroll in.
 * Fill mode is "backwards" so no transform lingers afterwards (a leftover
 * transform would break fixed/sticky children such as the mobile TOC).
 */

@keyframes lm-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

#recent-posts .recent-post-item,
#recent-posts .lm-feature,
#recent-posts > .lm-gates,
.lm-starmap-panel,
#aside-content .card-widget,
#post,
#page,
#archive,
#tag,
#category,
.project-card,
.cloud-card,
.timeline-item,
.flink .flink-list > .flink-list-item {
  animation: lm-rise 0.7s var(--lm-ease) backwards;
}

#recent-posts .recent-post-item:nth-of-type(2) { animation-delay: 0.06s; }
#recent-posts .recent-post-item:nth-of-type(3) { animation-delay: 0.12s; }
#recent-posts .recent-post-item:nth-of-type(4) { animation-delay: 0.18s; }
#recent-posts .recent-post-item:nth-of-type(n + 5) { animation-delay: 0.24s; }
#aside-content .card-widget { animation-delay: 0.1s; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    #recent-posts .recent-post-item,
    #aside-content .sticky_layout > .card-widget:not(#card-toc),
    .lm-starmap-panel,
    .project-card,
    .cloud-card,
    .timeline-item,
    .flink .flink-list > .flink-list-item {
      animation: lm-rise linear backwards;
      animation-delay: 0s;
      animation-range: entry 0% entry 40%;
      animation-timeline: view();
    }
  }
}

/* Reading progress (element added by luomo-ui.js on posts). */
#lm-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 102;
  height: 3px;
  background: var(--lm-grad);
  box-shadow: 0 0 12px rgba(102, 86, 216, 0.45);
  pointer-events: none;
  transform: scaleX(var(--lm-progress, 0));
  transform-origin: 0 50%;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Spotlight: a soft light that follows the pointer ----------
   luomo-ui.js sets --lm-mx / --lm-my and .lm-lit (fine pointers only). */
.lm-feature,
.lm-gate,
.lm-starmap-panel,
#recent-posts .recent-post-item,
#aside-content .card-widget {
  position: relative;
}

.lm-feature::after,
.lm-gate::after,
.lm-starmap-panel::after,
#recent-posts .recent-post-item::after,
#aside-content .card-widget::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--lm-mx, 50%) var(--lm-my, 50%), rgba(102, 86, 216, 0.1), rgba(232, 102, 91, 0.05) 40%, transparent 70%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--lm-ease);
}

[data-theme="dark"] .lm-feature::after,
[data-theme="dark"] .lm-gate::after,
[data-theme="dark"] .lm-starmap-panel::after,
[data-theme="dark"] #recent-posts .recent-post-item::after,
[data-theme="dark"] #aside-content .card-widget::after {
  background: radial-gradient(360px circle at var(--lm-mx, 50%) var(--lm-my, 50%), rgba(165, 150, 255, 0.14), rgba(255, 141, 126, 0.06) 40%, transparent 70%);
}

.lm-lit::after { opacity: 1 !important; }

/* ---------- Pjax: content breathes out while the next page loads ---------- */
#content-inner,
#page-header #site-info,
#page-header #page-site-info,
#page-header #post-info {
  transition: opacity 0.28s var(--lm-ease), filter 0.28s var(--lm-ease);
}

.lm-swapping #content-inner,
.lm-swapping #page-header #site-info,
.lm-swapping #page-header #page-site-info,
.lm-swapping #page-header #post-info {
  filter: blur(2px);
  opacity: 0.35;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    /* The cover title drifts up and fades as the reader scrolls into the journal. */
    @keyframes lm-hero-drift {
      to {
        opacity: 0;
        transform: translateY(-46px) scale(0.98);
      }
    }

    #page-header.full_page #site-info {
      animation: lm-hero-drift linear both;
      animation-range: 0 62vh;
      animation-timeline: scroll(root);
    }

    /* Section rules draw in from the title as they enter the view. */
    @keyframes lm-rule-draw {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }

    .lm-section-head::after {
      animation: lm-rule-draw linear both;
      animation-range: entry 10% cover 30%;
      animation-timeline: view();
      transform-origin: left;
    }
  }
}

/* ==== 80-command.css ==== */
/*
 * 星港指令台 · command palette, shortcut sheet, G-key hint, toast, the nav
 * trigger (luomo-command.js / luomo-ui.js) and the view transitions for
 * dark mode and Pjax page swaps.
 */

/* ---------- Layer & panel ---------- */
.lm-cmd {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 16px 16px;
}

.lm-cmd[hidden] { display: none; }

.lm-cmd-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 34, 0.38);
  opacity: 0;
  transition: opacity 0.22s var(--lm-ease);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lm-cmd-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(560px, 76vh);
  overflow: hidden;
  border: 1px solid var(--lm-line-strong);
  border-radius: var(--lm-radius);
  background-color: var(--lm-surface);
  background-image:
    linear-gradient(var(--lm-paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--lm-paper-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  box-shadow: var(--lm-shadow-2), 0 40px 90px -40px rgba(17, 18, 34, 0.55);
  color: var(--lm-ink);
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  transition: opacity 0.22s var(--lm-ease), transform 0.28s var(--lm-ease);
}

.lm-cmd-panel:focus { outline: none; }
.lm-cmd.is-open .lm-cmd-backdrop { opacity: 1; }
.lm-cmd.is-open .lm-cmd-panel { opacity: 1; transform: none; }
html.lm-cmd-open { overflow: hidden; }

.lm-cmd kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.7em;
  height: 1.7em;
  margin: 0 2px;
  padding: 0 0.4em;
  border: 1px solid var(--lm-line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--lm-surface-2);
  color: var(--lm-ink-2);
  font-family: var(--lm-font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

/* ---------- Search field ---------- */
.lm-cmd-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--lm-surface);
}

.lm-cmd-field::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--lm-grad);
  content: "";
  opacity: 0.75;
}

.lm-cmd-star {
  color: var(--lm-violet);
  font-family: var(--lm-font-serif);
  font-size: 20px;
  line-height: 1;
}

.lm-cmd-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lm-ink);
  font: 500 17px/1.4 var(--lm-font-sans);
  outline: none;
}

.lm-cmd-input::placeholder { color: var(--lm-ink-3); }

.lm-cmd-esc {
  flex: 0 0 auto;
  height: 1.9em;
  padding: 0 0.55em;
  border: 1px solid var(--lm-line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--lm-surface-2);
  color: var(--lm-ink-2);
  font: 600 11px/1 var(--lm-font-mono);
  cursor: pointer;
}

.lm-cmd-esc:hover,
.lm-cmd-esc:focus-visible { border-color: var(--lm-violet); color: var(--lm-violet); }

/* ---------- Results ---------- */
.lm-cmd-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px 10px;
  overscroll-behavior: contain;
  background: color-mix(in srgb, var(--lm-surface) 82%, transparent);
}

.lm-cmd-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 12px 6px;
  color: var(--lm-ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.lm-cmd-label span {
  color: var(--lm-ink-3);
  font-family: var(--lm-font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.lm-cmd-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  scroll-margin: 8px;
}

.lm-cmd-item.is-active {
  background: var(--lm-violet-soft);
}

.lm-cmd-item.is-active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--lm-grad-v);
  content: "";
}

.lm-cmd-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--lm-line);
  border-radius: 9px;
  background: var(--lm-surface);
  color: var(--lm-violet);
  font-size: 13px;
}

.lm-cmd-badge {
  font-family: var(--lm-font-serif);
  font-size: 12px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lm-cmd-item.is-active .lm-cmd-icon {
  border-color: transparent;
  background: var(--lm-violet);
  color: #fff;
}

[data-theme="dark"] .lm-cmd-item.is-active .lm-cmd-icon { color: #15161f; }

.lm-cmd-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.lm-cmd-title,
.lm-cmd-hint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lm-cmd-title { font-size: 14.5px; font-weight: 600; }
.lm-cmd-hint { margin-top: 1px; color: var(--lm-ink-3); font-size: 12px; }

.lm-cmd mark {
  padding: 0 1px;
  border-radius: 3px;
  background: linear-gradient(transparent 55%, color-mix(in srgb, var(--lm-coral) 32%, transparent) 55%);
  color: inherit;
}

.lm-cmd-keys { flex: 0 0 auto; }

.lm-cmd-enter {
  flex: 0 0 auto;
  color: var(--lm-ink-3);
  font-size: 13px;
  opacity: 0;
}

.lm-cmd-item.is-active .lm-cmd-enter { opacity: 1; }

.lm-cmd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 16px 30px;
  color: var(--lm-ink-2);
  text-align: center;
}

.lm-cmd-empty > span {
  color: var(--lm-violet);
  font-family: var(--lm-font-serif);
  font-size: 28px;
}

.lm-cmd-empty small { color: var(--lm-ink-3); font-size: 12px; }

/* ---------- Footer ---------- */
.lm-cmd-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--lm-line);
  background: var(--lm-surface-2);
  color: var(--lm-ink-3);
  font-size: 12px;
}

.lm-cmd-brand {
  margin-left: auto;
  font-family: var(--lm-font-serif);
  font-style: italic;
  letter-spacing: 0.12em;
}

/* ---------- Shortcut sheet ---------- */
.lm-keys .lm-cmd-panel { width: min(600px, 100%); padding: 22px 26px 20px; overflow-y: auto; }

.lm-keys-head { position: relative; margin-bottom: 14px; }

.lm-keys-kicker {
  margin: 0 0 2px;
  color: var(--lm-coral);
  font-family: var(--lm-font-serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.18em;
}

.lm-keys-head h2 { margin: 0; color: var(--lm-ink); font-size: 1.45rem; font-weight: 750; }

.lm-keys-close {
  position: absolute;
  top: -4px;
  right: -8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--lm-ink-3);
  font-size: 22px;
  cursor: pointer;
}

.lm-keys-close:hover,
.lm-keys-close:focus-visible { background: var(--lm-violet-soft); color: var(--lm-violet); }

.lm-keys-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px 26px;
}

.lm-keys-body h3 {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--lm-line-strong);
  color: var(--lm-violet);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.lm-keys-body dl { margin: 0; }

.lm-keys-body dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
}

.lm-keys-body dt { flex: 0 0 auto; order: 2; }
.lm-keys-body dd { margin: 0; color: var(--lm-ink-2); font-size: 13.5px; }

.lm-keys-note {
  margin: 16px 0 0;
  color: var(--lm-ink-3);
  font-size: 12px;
  text-align: center;
}

/* ---------- G-key hint & toast ---------- */
.lm-gchip,
#lm-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 1150;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--lm-line-strong);
  border-radius: 999px;
  background: var(--lm-glass);
  box-shadow: var(--lm-shadow-2);
  color: var(--lm-ink-2);
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.22s var(--lm-ease), transform 0.28s var(--lm-ease);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lm-gchip kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  height: 1.6em;
  margin-left: 6px;
  padding: 0 0.35em;
  border: 1px solid var(--lm-line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--lm-surface);
  color: var(--lm-violet);
  font: 600 11px var(--lm-font-mono);
}

.lm-gchip kbd:first-child { margin-left: 0; color: var(--lm-coral); }

.lm-gchip.is-shown,
#lm-toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

#lm-toast::before {
  color: var(--lm-violet);
  font-family: var(--lm-font-serif);
  content: "✦";
}

/* ---------- Nav trigger (desktop) ---------- */
#lm-cmd-button { display: inline-block; margin-left: 6px; }

#nav .lm-cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

#nav .lm-cmd-trigger kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 0.35em;
  border: 1px solid currentColor;
  border-radius: 6px;
  font: 600 10.5px/1 var(--lm-font-mono);
  opacity: 0.8;
}

@media (max-width: 900px), (hover: none) {
  #lm-cmd-button { display: none; }
}

@media (max-width: 600px) {
  .lm-cmd { padding: 10px 10px 16px; }
  .lm-cmd-panel { max-height: 82vh; }
  .lm-cmd-foot span:not(.lm-cmd-brand):nth-child(3) { display: none; }
}

/* ---------- View transitions ----------
   Dark mode: luomo-ui.js clips the new view to a growing circle. */
:root.lm-vt-theme::view-transition-old(root),
:root.lm-vt-theme::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

:root.lm-vt-theme *,
:root.lm-vt-theme *::before,
:root.lm-vt-theme *::after {
  transition: none !important;
}

/* Pjax: the old page breathes out, the new one rises in; the nav and the
   right-side buttons stay put, and a clicked post title flies into place. */
@keyframes lm-vt-out {
  to {
    filter: blur(3px);
    opacity: 0;
    transform: translateY(-10px) scale(0.995);
  }
}

@keyframes lm-vt-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

:root.lm-vt-page::view-transition-old(root) {
  animation: lm-vt-out 0.24s cubic-bezier(0.4, 0, 1, 1) both;
}

:root.lm-vt-page::view-transition-new(root) {
  animation: lm-vt-in 0.46s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both;
}

:root.lm-vt-page #nav { view-transition-name: lm-nav; }
:root.lm-vt-page #rightside { view-transition-name: lm-rightside; }

:root.lm-vt-page::view-transition-group(lm-title) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root.lm-vt-page::view-transition-old(lm-title),
:root.lm-vt-page::view-transition-new(lm-title) {
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* ==== 85-swarm.css ==== */
/* Fixed helpers only. No live-page geometry, typography, overflow or transforms. */
.lm-swarm-entry{margin-top:19px}.lm-swarm-entry[hidden]{display:none}
.lm-swarm-entry button{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;padding:10px 17px;border:1px solid #ffffff8c;border-radius:12px;background:#100e286b;color:#fff;font:inherit;font-size:.85rem;cursor:pointer;backdrop-filter:blur(10px);box-shadow:0 6px 22px #0002;transition:background .2s}
.lm-swarm-entry button:hover{background:#6656d8b3}.lm-swarm-entry button>span:first-child{font-size:1.35rem;line-height:1;color:#f8d69c}.lm-swarm-entry small{padding-left:6px;border-left:1px solid #fff6;color:#ffffffd9;font-size:.72rem}
.lm-swarm-entry button:focus-visible{outline:3px solid var(--lm-sky);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.lm-swarm-entry button{transition:none!important}}

/* Explicit Font Awesome glyphs keep their existing face and size in the capture. */
.lm-feature-cta [data-lm-fa-glyph]::before,
.lm-gate [data-lm-fa-glyph]::before,
#card-info-btn [data-lm-fa-glyph]::before { content: none; }

/* Text snapshots retain the foreground, while clipped backgrounds are drawn separately. */
html:has(> head > style[data-swarm-capture-wake]) :is(
  .lm-star-cat > b,
  .article-sort-item.year,
  :is(.error404 #error-wrap, .type-404) .error-content .error-info .error_title
) {
  background: none;
  color: var(--lm-violet);
}

/* ==== 86-swarm-boot.css ==== */
/* Inline before page assets as well as bundled; JavaScript opts into the guard. */
html.lm-swarm-pending body>:not(script):not(style):not(link):not(template):not(noscript){opacity:0!important;transition:none!important}
html.lm-swarm-restoring body>:not(script):not(style):not(link):not(template):not(noscript){transition:none!important}
#lm-swarm-boot{all:initial;position:fixed;inset:0;z-index:2147483647;display:grid;place-items:center;background:#f3f0e9;color:#353535;font:500 12px/1.4 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;pointer-events:auto;contain:strict}
#lm-swarm-boot .lm-sb-center{position:relative;display:grid;place-items:center;width:220px;height:190px}
#lm-swarm-boot .lm-sb-mark{display:grid;place-items:center;width:60px;height:60px;border-radius:16px;background:#d7dade;color:#fff;font-size:30px;font-weight:700}
#lm-swarm-boot .lm-sb-cursor{position:absolute;width:24px;height:28px;animation:lm-swarm-boot-orbit 2.8s ease-in-out infinite;filter:drop-shadow(0 1px 1.5px #0004)}
#lm-swarm-boot .lm-sb-cursor.a{left:38px;top:28px;color:#f24e1e}
#lm-swarm-boot .lm-sb-cursor.b{right:30px;top:65px;color:#a259ff;animation-delay:-.9s}
#lm-swarm-boot .lm-sb-cursor.c{left:65px;bottom:20px;color:#1abcfe;animation-delay:-1.8s}
#lm-swarm-boot .lm-sb-label{position:absolute;top:161px;left:0;width:100%;text-align:center;color:#777}
#lm-swarm-boot .lm-sb-hud{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;box-sizing:border-box;max-width:calc(100vw - 16px);padding:6px 6px 6px 12px;border-radius:12px;background:rgba(30,30,30,.94);color:#cfcfcf;box-shadow:0 10px 30px #0004,inset 0 0 0 1px #ffffff12;white-space:nowrap}
#lm-swarm-boot button{all:unset;box-sizing:border-box;padding:7px 10px;border-radius:8px;background:#0d99ff;color:#fff;cursor:pointer;font:500 12px/1.2 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
#lm-swarm-boot button:focus-visible{outline:2px solid #8fd0ff;outline-offset:3px}
html[data-theme=dark] #lm-swarm-boot{background:#17191d;color:#ddd}
@keyframes lm-swarm-boot-orbit{0%,100%{transform:translate(0,0) rotate(-8deg)}50%{transform:translate(18px,-14px) rotate(11deg)}}
@media(prefers-color-scheme:dark){html:not([data-theme=light]) #lm-swarm-boot{background:#17191d;color:#ddd}}
@media(prefers-reduced-motion:reduce){#lm-swarm-boot .lm-sb-cursor{animation:none}}

/* ==== 90-banners.css ==== */
/*
 * Banner focal points. Butterfly writes the banner as an inline
 * background-image, so each image is matched by its file name.
 * When adding a banner: put the WebP in source/img/banner/, point the theme
 * config at it, and add one line here (x% y% of the subject's face).
 */

#page-header[style*="home-lantern"] { background-position: 56% 10%; }
#page-header[style*="default-sky"] { background-position: 50% 15%; }
#page-header[style*="archive-quartet"] { background-position: 53% 28%; }
#page-header[style*="tags-elaina"] { background-position: 53% 33%; }
#page-header[style*="kv-pooka"] { background-position: 70% 30%; }

/* ==== 95-image-credits.css ==== */
/* Keep the attribution next to the picture, with full details one tap away. */
#page-header .banner-credit {
  position: absolute;
  right: 20px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(18, 21, 38, 0.78);
  color: #fff;
  font-size: 11px;
  line-height: 1.6;
  text-shadow: none;
}

#page-header .banner-credit a { color: #fff; }
#page-header .banner-credit a:hover { text-decoration: underline; }
#page-header .banner-credit a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#page-header .banner-credit-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#page-header .banner-credit-details { flex-shrink: 0; }
.banner-credit-separator { opacity: 0.6; }
.footer-image-credits { margin-top: 6px; font-size: 0.9em; }

#page.image-credits-page { max-width: 1120px; margin: 0 auto; }
.image-credits-intro { margin: 12px 0 28px; color: var(--lm-ink-2); }
.image-credits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.image-credit-card {
  overflow: hidden;
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  background: var(--lm-surface);
  scroll-margin-top: 90px;
}
.image-credit-preview { aspect-ratio: 16 / 9; background: var(--lm-paper); }
.image-credit-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-credit-body { padding: 20px; }
.image-credit-usage { margin: 0 0 8px; color: var(--lm-violet); font-size: 0.8em; }
.image-credit-body h2 { margin: 0 0 10px; color: var(--lm-ink); font-size: 1.18em; line-height: 1.5; }
.image-credit-creator { margin: 0 0 12px; color: var(--lm-ink); font-weight: 600; }
.image-credit-creator a, .image-credit-links a { color: var(--lm-violet); text-decoration: underline; text-underline-offset: 3px; }
.image-credit-note { margin: 0 0 12px; color: var(--lm-ink-2); font-size: 0.9em; line-height: 1.8; }
.image-credit-rights { margin: 0 0 12px; color: var(--lm-ink-3); font-size: 0.75em; overflow-wrap: anywhere; }
.image-credit-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.85em; }
.image-credits-footnote { margin: 28px 0 0; color: var(--lm-ink-3); font-size: 0.8em; line-height: 1.8; }

@media (max-width: 640px) {
  #page-header .banner-credit { right: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 4px 8px; font-size: 10px; }
  .image-credits-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .image-credit-body { padding: 18px; }
}
