/* Final visual layer; legacy custom.css still supplies specialized page components. */
:root,
[data-theme="light"] {
  --minimal-bg: #fff;
  --minimal-surface: #f7f8fa;
  --minimal-text: #20232b;
  --minimal-muted: #606773;
  --minimal-border: #e5e7eb;
  --minimal-brand: #1b1f4c;
  --minimal-link: #354a9f;
  --minimal-tint: #eef1fa;
  --minimal-selection-bg: #e6ebfa;
  --minimal-selection-text: #1b1f4c;
  --readable-link-color: var(--minimal-link);
  --readable-link-hover-color: var(--minimal-brand);
  --global-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --global-font-size: 16px;
  --font-color: var(--minimal-text);
  --global-bg: var(--minimal-bg);
  --card-bg: var(--minimal-bg);
  --theme-color: var(--minimal-brand);
  --btn-bg: var(--minimal-brand);
  --btn-hover-color: var(--minimal-link);
  --btn-color: #fff;
  --text-highlight-color: var(--minimal-brand);
  --light-grey: var(--minimal-border);
  --white: #fff;
  --hr-border: var(--minimal-border);
  --search-bg: var(--minimal-bg);
  --search-result-title: var(--minimal-text);
  --search-result-text: var(--minimal-muted);
  --search-input-color: var(--minimal-text);
  --trans-light: #fff;
  --trans-dark: #17191f;
  --backdrop-filter: none;
  --border-style: 1px solid var(--minimal-border);
}
[data-theme="dark"] {
  --minimal-bg: #17191f;
  --minimal-surface: #20232b;
  --minimal-text: #e8eaf0;
  --minimal-muted: #adb3c1;
  --minimal-border: #353944;
  --minimal-brand: #b6c2f2;
  --minimal-link: #b6c2f2;
  --minimal-tint: #292f46;
  --minimal-selection-bg: #35415e;
  --minimal-selection-text: #f2f5ff;
  --global-bg: var(--minimal-bg);
  --card-bg: var(--minimal-bg);
  --font-color: var(--minimal-text);
  --theme-color: var(--minimal-brand);
  --btn-bg: #354a9f;
  --btn-hover-color: #455cb8;
  --text-highlight-color: var(--minimal-brand);
  --light-grey: var(--minimal-border);
  --hr-border: var(--minimal-border);
  --search-bg: var(--minimal-bg);
  --search-result-title: var(--minimal-text);
  --search-result-text: var(--minimal-muted);
  --search-input-color: var(--minimal-text);
}
html { scroll-padding-top: 100px; }
body {
  background: var(--minimal-bg) !important;
  color: var(--minimal-text) !important;
  font-family: var(--global-font) !important;
  font-size: 16px;
  line-height: 1.7;
  cursor: auto !important;
}
body #web_bg { background: var(--minimal-bg) !important; }
body #web_bg::before { display: none !important; }
body a, body button { cursor: pointer !important; }
body a { color: var(--minimal-link); transition: color .18s, background-color .18s, border-color .18s; }
body :is(h1,h2,h3,h4,h5,h6) { color: var(--minimal-text); font-family: var(--global-font) !important; }
body :is(a,button,input,summary):focus-visible { outline: 2px solid var(--minimal-link); outline-offset: 4px; }
html body *::selection { background: var(--minimal-selection-bg) !important; color: var(--minimal-selection-text) !important; text-shadow: none !important; }
html body *::-moz-selection { background: var(--minimal-selection-bg) !important; color: var(--minimal-selection-text) !important; text-shadow: none !important; }
body :is(#page-header,#site-name,#site-title,#post-info) { animation: none !important; text-shadow: none !important; }
body #page-header { height: 72px !important; background: var(--minimal-bg) !important; }
body #page-header::before { display: none !important; }
body #nav {
  position: fixed !important;
  inset: 0 0 auto !important;
  display: flex !important;
  align-items: center;
  height: 72px !important;
  padding: 0 max(32px, calc((100vw - 1120px) / 2)) !important;
  background: var(--minimal-bg) !important;
  color: var(--minimal-text) !important;
  border-bottom: 1px solid var(--minimal-border);
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  opacity: 1 !important;
}
html[data-theme] body #page-header.nav-fixed #nav,
html[data-theme] body #page-header.nav-visible #nav {
  top: 0 !important;
  transform: none !important;
  background: var(--minimal-bg) !important;
  box-shadow: none !important;
}
body #nav :is(a,button) { color: var(--minimal-muted); text-shadow: none !important; }
body #nav #site-name { display: flex; align-items: center; gap: 10px; font-size: 18px !important; font-weight: 650; color: var(--minimal-text) !important; white-space: nowrap; }
body #nav #site-name::before { display: none !important; }
.minimal-brand-icon { object-fit: contain; border-radius: 4px; }
body #nav #menus { display: flex !important; align-items: center; justify-content: flex-end; flex: 1; }
body #nav .menus_items { display: flex !important; position: static !important; transform: none !important; gap: 24px; width: auto !important; }
body #nav .menus_item { margin: 0 !important; padding: 0 !important; }
body #nav .site-page { display: flex; align-items: center; min-height: 44px; gap: 6px; }
body #nav .site-page::after { display: none !important; }
body #nav .menu_word { font-size: 14px !important; }
body #nav .site-page[aria-current], body #nav .site-page:hover { color: var(--minimal-link) !important; }
body #nav .menus_item:focus-within .menus_item_child { display: block; }
body #nav .menus_item_child { background: var(--minimal-bg); border: 1px solid var(--minimal-border); border-radius: 8px; box-shadow: 0 8px 24px #0000000a; }
body #nav .menus_items .menus_item .menus_item_child {
  left: auto !important;
  right: 0 !important;
  transform: none !important;
  width: 180px !important;
  max-width: calc(100vw - 40px);
  padding: 6px !important;
  margin-top: 4px;
  flex-direction: column !important;
  box-shadow: 0 8px 24px #0000000a !important;
}
body #nav .menus_items .menus_item:hover .menus_item_child,
body #nav .menus_items .menus_item:focus-within .menus_item_child { display: block !important; }
body #nav .menus_items .menus_item .menus_item_child li { display: block; width: 100%; border-radius: 4px; }
body #nav .menus_items .menus_item .menus_item_child a { display: flex; width: 100%; padding: 10px 12px; min-height: 44px; }
body #nav .menus_items .menus_item .menus_item_child li:is(:hover,:focus-within) { background: var(--minimal-tint) !important; }
body #nav .menus_items .menus_item .menus_item_child a:is(:hover,:focus-visible) { color: var(--minimal-link) !important; background: var(--minimal-tint) !important; border-radius: 4px; }
body #nav #nav-right { display: flex; align-items: center; gap: 10px; margin-left: 24px; }
body #nav button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; background: transparent; font: inherit; font-size: 14px; border-radius: 6px; }
body #nav button:hover { background: var(--minimal-surface); }
body #nav #toggle-menu { display: none; }
body #content-inner.layout { display: block !important; width: calc(100% - 80px) !important; max-width: 1120px !important; margin: 0 auto !important; padding: 56px 0 80px !important; }
body #body-wrap.home #content-inner.layout { max-width: 960px !important; }
body #recent-posts { width: 100% !important; }
.minimal-intro { max-width: 760px; padding: 0 0 40px; text-align: left; }
.minimal-eyebrow { margin: 0 0 24px; font-size: 12px; letter-spacing: .16em; font-weight: 600; color: var(--minimal-muted); }
body .minimal-intro h1 { margin: 0 0 20px; font-size: 48px; line-height: 1.25; font-weight: 700; letter-spacing: -.035em; }
.minimal-intro__description { max-width: 620px; margin: 0 0 24px; font-size: 18px; line-height: 1.8; color: var(--minimal-muted); }
.minimal-text-link { font-size: 15px; font-weight: 500; }
.minimal-topics { margin-bottom: 48px; }
.minimal-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
body .minimal-section-heading h2 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 600; }
.minimal-section-heading > a { flex-shrink: 0; font-size: 14px; }
.minimal-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body .minimal-topic { display: block; padding: 24px; background: var(--minimal-bg); border: 1px solid var(--minimal-border); border-radius: 10px; color: var(--minimal-text); }
body .minimal-topic:hover { background: var(--minimal-surface); border-color: var(--minimal-link); }
.minimal-topic__number { font-size: 12px; color: var(--minimal-muted); font-family: Consolas, monospace; }
body .minimal-topic h3 { margin: 16px 0 10px; font-size: 18px; font-weight: 600; }
.minimal-topic p { margin: 0 0 20px; font-size: 14px; line-height: 1.75; color: var(--minimal-muted); }
.minimal-topic__action { color: var(--minimal-link); font-size: 13px; }
.minimal-articles { max-width: 840px; }
.minimal-article { padding: 28px 0; border-top: 1px solid var(--minimal-border); }
.minimal-article__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--minimal-muted); }
.minimal-article__meta a { color: var(--minimal-muted); }
body .minimal-article h3 { margin: 10px 0; font-size: 23px; font-weight: 600; line-height: 1.5; }
.minimal-article h3 a { color: var(--minimal-text); }
.minimal-article h3 a:hover { color: var(--minimal-link); }
.minimal-article p { margin: 0 0 12px; font-size: 16px; line-height: 1.75; color: var(--minimal-muted); overflow-wrap: anywhere; }
.minimal-article__read { font-size: 13px; }
.minimal-pill { padding: 1px 7px; background: var(--minimal-tint); color: var(--minimal-link); border-radius: 4px; }
/* Reading layout replaces the old fixed three-column geometry. */
body #body-wrap.post #content-inner.layout { max-width: 1120px !important; padding-top: 56px !important; }
body #body-wrap.post #content-inner.layout > .post-article-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 760px) minmax(0, 220px) !important;
  justify-content: center;
  gap: 48px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
body #body-wrap.post .post-article-grid > .post-main-panel {
  position: static !important;
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--minimal-bg) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
}
body #body-wrap.post .post-article-grid > .post-main-panel > #post,
body #body-wrap.post .post-main-panel > .post-after {
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body #body-wrap.post .post-main-panel > .post-after { padding-top: 40px !important; }
body #body-wrap.post .post-article-grid > #aside-content {
  grid-column: 2 !important;
  grid-row: 1 !important;
  position: sticky !important;
  top: 104px !important;
  align-self: start;
  width: 100% !important;
  height: auto !important;
  max-height: calc(100vh - 128px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow-y: auto;
}
body #body-wrap.post #aside-content .sticky_layout { position: static !important; }
body #body-wrap.post #aside-content #card-toc { min-height: 0 !important; margin: 0 !important; padding: 0 0 0 20px !important; border: 0 !important; border-left: 1px solid var(--minimal-border) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
body #card-toc .item-headline { font-size: 14px; }
body #card-toc :is(svg,.toc-percentage) { display: none; }
body #card-toc .toc-content { font-size: 13px; }
body #card-toc .toc-link { color: var(--minimal-muted); line-height: 1.7; border-radius: 4px; }
body #card-toc .toc-link.active { background: var(--minimal-tint); color: var(--minimal-link); }
body #body-wrap.post #post-info { margin: 0 0 36px !important; text-align: left !important; color: var(--minimal-text) !important; }
body #body-wrap.post #post-info .post-title { margin: 0 0 16px !important; font-size: 38px !important; line-height: 1.35 !important; font-weight: 700; color: var(--minimal-text) !important; }
body #body-wrap.post #post-info #post-meta, body #body-wrap.post #post-info #post-meta a { color: var(--minimal-muted) !important; font-size: 13px !important; line-height: 1.8; }
body #post-info #post-meta svg { display: none; }
body #article-container { font-family: var(--global-font) !important; font-size: 17px !important; line-height: 1.8 !important; text-align: left; overflow-wrap: anywhere; }
body #article-container p { margin: 0 0 1.2em; }
body #article-container h2 { margin: 44px 0 18px; padding: 0; font-size: 27px; line-height: 1.4; }
body #article-container h1 { margin: 44px 0 18px; padding: 0; font-size: 28px; line-height: 1.4; }
body #article-container h3 { margin: 32px 0 16px; font-size: 22px; line-height: 1.45; }
body #article-container :is(h1,h2,h3,h4,h5,h6)::before { display: none !important; }
body #article-container a:not(.btn):not(.tab) { color: var(--minimal-link); text-decoration: underline; text-underline-offset: 3px; }
body #article-container blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--minimal-link); border-radius: 0 6px 6px 0; background: var(--minimal-tint); color: var(--minimal-text); }
body #article-container blockquote p:last-child { margin-bottom: 0; }
body #article-container :is(pre,code) { font-family: Consolas, Menlo, monospace !important; }
body #article-container code { background: var(--minimal-surface); color: var(--minimal-link); font-size: .88em; }
body #article-container figure.highlight { margin: 24px 0; border: 1px solid var(--minimal-border); border-radius: 8px; background: var(--minimal-surface); box-shadow: none !important; font-size: 14px; }
body #article-container figure.highlight :is(pre,.highlight-tools,.gutter) { background: var(--minimal-surface); color: var(--minimal-muted); }
body #article-container figure.highlight .code pre { color: var(--minimal-text); }
body #article-container :is(img,video,iframe) { max-width: 100%; }
body #article-container img { border-radius: 6px; }
body #article-container .table-wrap { overflow-x: auto; }
body #article-container table { border-color: var(--minimal-border); }
body #article-container :is(th,td) { border-color: var(--minimal-border); }
body #article-container th { background: var(--minimal-surface); }
body hr { border: 0 !important; border-top: 1px solid var(--minimal-border) !important; margin: 32px 0; }
body hr::before { display: none !important; }
body :is(#page,#archive,#tag,#category) { width: 100% !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body .page-title { margin-bottom: 32px; font-size: 36px; line-height: 1.35; color: var(--minimal-text); }
body :is(.about-container,.about-header,.about-section,.hero-section,.category-card,.tool-card,.topic-card,.app-card) { background: var(--minimal-bg) !important; color: var(--minimal-text); box-shadow: none !important; backdrop-filter: none !important; }
body :is(.about-section,.category-card,.tool-card,.topic-card,.app-card) { border: 1px solid var(--minimal-border) !important; border-radius: 10px !important; }
body :is(.about-title,.about-section h2,.hero-title,.hero-description,.about-subtitle) { color: var(--minimal-text) !important; background: none !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; }
body :is(.about-header,.hero-section) { padding-top: 16px; padding-bottom: 40px; }
body #page .about-container { padding: 0; max-width: 800px; margin: auto; }
body #page .about-header { margin-bottom: 32px; padding: 16px 0 24px; }
body #page .about-header .about-title { font-size: 28px; margin: 12px 0; }
body #page .about-section h2 { margin: 8px 0 18px; font-size: 22px; }
body :is(.about-avatar,.hero-icon) { animation: none !important; box-shadow: none !important; }
body .about-section:hover { transform: none !important; }
body .about-section h2 { border-bottom: 1px solid var(--minimal-border) !important; }
body .about-section p { color: var(--minimal-muted) !important; }
body #page .about-content { min-width: 0; }
body #page .about-section { overflow-wrap: anywhere; }
body #page .about-journey p { white-space: normal; line-height: 1.8; }
body :is(.category-card,.tool-card,.topic-card,.app-card):hover { transform: none !important; border-color: var(--minimal-link) !important; }
body #footer { background: var(--minimal-bg) !important; border-top: 1px solid var(--minimal-border); color: var(--minimal-muted); }
body #footer #footer-wrap { padding: 32px 40px !important; color: var(--minimal-muted); }
.minimal-footer { max-width: 1120px; margin: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 13px; text-align: left; }
.minimal-footer__identity, .minimal-footer__links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
body #footer a { color: var(--minimal-muted); }
body #footer .framework-info { display: flex; gap: 8px; width: 100%; font-size: 12px; }
body #pagination .page-number { border-radius: 6px; box-shadow: none; }
.minimal-pagination-caption { margin: 24px 0 12px; color: var(--minimal-muted); font-size: 13px; text-align: center; }
body #pagination .page-number.current { background: var(--minimal-brand); color: var(--minimal-bg); }
body #post .post-copyright, body .post-after .post-copyright { padding: 20px; border: 1px solid var(--minimal-border); border-radius: 8px; background: var(--minimal-surface) !important; font-size: 13px; box-shadow: none !important; }
body .post-meta__tags { border-color: var(--minimal-border); color: var(--minimal-link); border-radius: 4px; }
body #body-wrap.post nav#pagination.minimal-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 32px 0 !important;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}
body #pagination.minimal-post-navigation .minimal-post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px 24px;
  border: 1px solid var(--minimal-border);
  border-radius: 8px;
  background: var(--minimal-surface);
  color: var(--minimal-text) !important;
  text-align: left;
  text-decoration: none;
  text-shadow: none;
}
body #pagination.minimal-post-navigation .minimal-post-nav__link:hover { background: var(--minimal-tint); border-color: var(--minimal-link); }
.minimal-post-nav__link--next { grid-column: 2; }
.minimal-post-nav__label { color: var(--minimal-muted); font-size: 13px; font-weight: 400; }
.minimal-post-nav__title { color: var(--minimal-text); font-size: 16px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.minimal-post-navigation--single .minimal-post-nav__link { grid-column: 1 / -1; }
@media (max-width: 600px) {
  body #body-wrap.post nav#pagination.minimal-post-navigation { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body #pagination.minimal-post-navigation .minimal-post-nav__link { padding: 18px 20px; grid-column: 1; }
}
body .relatedPosts > .relatedPosts-list > div { background: var(--minimal-surface); border: 1px solid var(--minimal-border); border-radius: 8px; }
body .relatedPosts .cover { display: none; }
body .relatedPosts :is(.content,.title,.date) { color: var(--minimal-text) !important; text-shadow: none; }
body #rightside :is(button,a) { background: var(--minimal-surface); color: var(--minimal-muted); border: 1px solid var(--minimal-border); border-radius: 6px; box-shadow: none; }
body #rightside :is(button,a):hover { background: var(--minimal-tint); color: var(--minimal-link); }
body .pace { top: 0; width: 100%; height: 2px; border: 0; border-radius: 0; background: transparent; }
body .pace .pace-progress { max-width: none; background: var(--minimal-link) !important; animation: none !important; }
body .article-sort-title { font-size: 30px; font-weight: 600; }
body .article-sort { max-width: 880px; }
body .article-sort-item { height: auto !important; min-height: 72px; margin: 0 0 24px 20px; }
body .article-sort-item.year { min-height: 0; margin-top: 32px; font-size: 22px; }
body .article-sort-item-title { font-size: 18px; line-height: 1.6; }
body .article-sort-item-time { color: var(--minimal-muted); font-size: 13px; }
body .article-sort-item-time i { display: none; }
body #twikoo :is(.tk-content,.tk-master .tk-content) { background: var(--minimal-surface) !important; color: var(--minimal-text) !important; border: 1px solid var(--minimal-border); box-shadow: none !important; border-radius: 8px; }
body #twikoo :is(.tk-content::before,.tk-master .tk-content::before) { display: none !important; }
/* A quiet writing panel with one blue accent, without character artwork. */
body #twikoo {
  --tk-theme-color: var(--minimal-link);
  --tk-accent-color: var(--minimal-link);
  --tk-border-color: var(--minimal-border);
}
body #twikoo .tk-submit {
  padding: 20px;
  border: 1px solid var(--minimal-border);
  border-top: 2px solid var(--minimal-link);
  border-radius: 8px;
  background: var(--minimal-surface);
  box-shadow: none;
}
body #twikoo .tk-submit :is(.el-textarea__inner,.el-input__inner) {
  background: var(--minimal-bg) !important;
  background-image: none !important;
  border-color: var(--minimal-border) !important;
  color: var(--minimal-text) !important;
  border-radius: 6px;
}
body #twikoo .tk-submit :is(.el-textarea__inner,.el-input__inner):focus {
  background-image: none !important;
  border-color: var(--minimal-link) !important;
  box-shadow: 0 0 0 2px var(--minimal-tint);
}
body #twikoo .el-input-group__prepend { background: var(--minimal-surface); border-color: var(--minimal-border); color: var(--minimal-muted); }
body #twikoo .tk-submit .el-button--primary {
  background: #354a9f !important;
  border-color: #354a9f !important;
  color: #fff !important;
  border-radius: 6px;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}
body #twikoo .tk-submit .el-button--primary:not(.is-disabled):hover { background: #293b83 !important; border-color: #293b83 !important; }
body #twikoo .tk-submit .el-button--primary.is-disabled { background: #c6d0ed !important; border-color: #c6d0ed !important; color: #35415e !important; opacity: 1; }
body #twikoo .tk-submit .el-button:not(.el-button--primary):not(.el-button--text) { background: var(--minimal-bg); border-color: var(--minimal-border); color: var(--minimal-muted); border-radius: 6px; }
@media (max-width: 600px) { body #twikoo .tk-submit { padding: 14px; } }
/* Series navigation is optional, never a permanent third column. */
body #body-wrap.post .post-article-grid > .knowledge-post-sidebar {
  display: block !important;
  position: static !important;
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  padding: 20px !important;
  margin: 0 !important;
  background: var(--minimal-surface) !important;
  border: 1px solid var(--minimal-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body #body-wrap.post .post-article-grid:has(.knowledge-post-sidebar) > .post-main-panel,
body #body-wrap.post .post-article-grid:has(.knowledge-post-sidebar) > #aside-content { grid-row: 2 !important; }
body #body-wrap.post .knowledge-post-sidebar__brand { color: var(--minimal-text); }
body #body-wrap.post .knowledge-post-sidebar__links a { color: var(--minimal-muted) !important; }
body #body-wrap.post .knowledge-post-sidebar__links a.is-current { color: var(--minimal-link) !important; background: var(--minimal-tint) !important; border-color: var(--minimal-border) !important; box-shadow: inset 2px 0 0 var(--minimal-link) !important; font-weight: 600; }
body #body-wrap.post .knowledge-post-sidebar__links a:hover { color: var(--minimal-link) !important; background: var(--minimal-tint) !important; }
body #body-wrap.post .knowledge-post-sidebar__collection > summary { color: var(--minimal-text) !important; }
body #body-wrap.post .knowledge-post-sidebar__mark { background: var(--minimal-brand) !important; color: var(--minimal-bg) !important; }
body #body-wrap.post .knowledge-post-sidebar__close { display: block !important; position: absolute !important; top: 14px !important; right: 14px !important; color: var(--minimal-muted) !important; }
body #body-wrap.post .post-article-grid > .knowledge-post-sidebar { position: relative !important; }
body #body-wrap.post.knowledge-sidebar-collapsed .post-article-grid > .knowledge-post-sidebar { display: none !important; }
body #body-wrap.post .post-article-grid > .knowledge-post-sidebar__reopen { position: static !important; grid-column: 1 / -1 !important; grid-row: 1 !important; width: 44px; height: 44px; color: var(--minimal-muted) !important; background: var(--minimal-surface) !important; border: 1px solid var(--minimal-border) !important; }
body .knowledge-post-sidebar__reopen[hidden] { display: none !important; }
body .knowledge-post-sidebar__reopen:not([hidden]) { display: block !important; }
body #body-wrap.post .knowledge-post-sidebar__reopen { width: 112px !important; font-size: 13px !important; }
body .minimal-series-label { margin-left: 8px; }
@media (min-width: 1400px) {
  body #body-wrap.post #content-inner.layout:has(.knowledge-post-sidebar) { max-width: 1360px !important; }
  body #body-wrap.post #content-inner.layout > .post-article-grid:has(.knowledge-post-sidebar) { grid-template-columns: 280px minmax(0, 760px) 200px !important; gap: 32px !important; }
  body #body-wrap.post .post-article-grid > .knowledge-post-sidebar { position: sticky !important; top: 104px !important; grid-column: 1 !important; grid-row: 1 !important; max-height: calc(100vh - 128px) !important; overflow-y: auto; }
  body #body-wrap.post .post-article-grid:has(.knowledge-post-sidebar) > .post-main-panel { grid-column: 2 !important; grid-row: 1 !important; }
  body #body-wrap.post .post-article-grid:has(.knowledge-post-sidebar) > #aside-content { grid-column: 3 !important; grid-row: 1 !important; }
  body #body-wrap.post.knowledge-sidebar-collapsed #content-inner.layout > .post-article-grid:has(.knowledge-post-sidebar) { grid-template-columns: 44px minmax(0, 760px) 220px !important; }
  body #body-wrap.post .post-article-grid > .knowledge-post-sidebar__reopen { grid-column: 1 !important; }
  body #body-wrap.post .knowledge-post-sidebar__reopen { width: 44px !important; }
  body .minimal-series-label { display: none; }
}
@media (max-width: 900px) {
  body #nav { padding: 0 24px !important; }
  body #nav #menus .menus_items { display: none !important; }
  body #nav #toggle-menu { display: block; }
  body #nav #nav-right { margin-left: 12px; gap: 4px; }
  body #content-inner.layout { width: calc(100% - 48px) !important; padding: 40px 0 56px !important; }
  body #body-wrap.post #content-inner.layout > .post-article-grid,
  body #body-wrap.post.knowledge-sidebar-collapsed #content-inner.layout > .post-article-grid { display: block !important; }
  body #body-wrap.post .post-article-grid > .post-main-panel { margin: 0 !important; }
  body #body-wrap.post .post-article-grid > .knowledge-post-sidebar { margin-bottom: 32px !important; }
  body #body-wrap.post .post-article-grid > #aside-content { display: block !important; position: static !important; height: auto !important; overflow: visible !important; }
  body #body-wrap.post #aside-content #card-toc { padding: 20px !important; border: 1px solid var(--minimal-border) !important; border-radius: 8px !important; background: var(--minimal-bg) !important; }
  body #body-wrap.post .knowledge-post-sidebar__reopen:not([hidden]) { margin-bottom: 24px; }
  .minimal-topic { padding: 20px; }
}
@media (max-width: 600px) {
  body #page-header, body #nav { height: 64px !important; }
  body #nav { padding: 0 16px !important; }
  body #nav #site-name { font-size: 15px !important; gap: 6px; }
  body #nav #nav-right { gap: 0; margin-left: 4px; }
  body #nav #search-button span { display: none; }
  body #content-inner.layout { width: calc(100% - 40px) !important; padding-top: 32px !important; }
  body #body-wrap.post #content-inner.layout { padding-top: 32px !important; }
  .minimal-intro { padding: 8px 0 44px; }
  .minimal-eyebrow { margin-bottom: 20px; font-size: 11px; }
  body .minimal-intro h1 { font-size: 36px; line-height: 1.3; }
  body .minimal-intro h1 span { display: block; }
  .minimal-intro__description { font-size: 16px; }
  .minimal-topic-grid { grid-template-columns: 1fr; gap: 12px; }
  .minimal-topic p { margin-bottom: 14px; }
  body .minimal-topic h3 { margin-top: 10px; }
  .minimal-topics { margin-bottom: 40px; }
  body .minimal-section-heading h2 { font-size: 20px; }
  .minimal-section-heading > a { font-size: 13px; }
  body .minimal-article h3 { font-size: 21px; }
  body #body-wrap.post #post-info .post-title { font-size: 29px !important; }
  body #article-container { font-size: 16px !important; }
  body #article-container h2 { font-size: 24px; margin-top: 36px; }
  body #article-container h1 { font-size: 24px; margin-top: 36px; }
  body #article-container h3 { font-size: 20px; }
  body #footer #footer-wrap { padding: 28px 20px !important; }
  .minimal-footer { flex-direction: column; align-items: flex-start; }
  .minimal-footer__identity { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Flat series navigation: reserve width for titles rather than nested controls. */
body #body-wrap.post .post-article-grid > .knowledge-post-sidebar {
  padding: 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  scrollbar-width: thin;
  scrollbar-color: var(--minimal-border) transparent;
}
body #body-wrap.post .knowledge-post-sidebar__brand { padding-right: 36px; font-size: 16px; gap: 10px; margin-bottom: 24px; }
body #body-wrap.post .minimal-series-heading { margin: 0 0 12px; color: var(--minimal-muted); font-size: 13px; font-weight: 500; }
body #body-wrap.post .knowledge-post-sidebar__links { display: grid; gap: 4px; margin: 0; }
body #body-wrap.post .knowledge-post-sidebar__links a {
  display: block !important;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 6px;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 400;
  text-decoration: none !important;
}
body #body-wrap.post .knowledge-post-sidebar__links a.is-current { box-shadow: inset 2px 0 0 var(--minimal-link) !important; }
body #body-wrap.post .knowledge-post-sidebar__close { top: 12px !important; right: 12px !important; }
body #body-wrap.post .knowledge-post-sidebar::-webkit-scrollbar { width: 4px; }
body #body-wrap.post .knowledge-post-sidebar::-webkit-scrollbar-thumb { background: var(--minimal-border); border-radius: 4px; }
body #body-wrap.post .knowledge-post-sidebar::-webkit-scrollbar-track { background: transparent; }
body #page:has(.minimal-guestbook) { max-width: 840px !important; margin: 0 auto; }
body #article-container .minimal-guestbook { margin-bottom: 36px; }
body #article-container .minimal-guestbook__eyebrow { margin: 0 0 16px; font-size: 12px; letter-spacing: .12em; color: var(--minimal-muted); }
body #article-container .minimal-guestbook h2 { margin: 0 0 16px; font-size: 30px; line-height: 1.4; }
.minimal-guestbook__lead { color: var(--minimal-muted); font-size: 16px; }
.minimal-guestbook__note { padding: 18px 20px; border: 1px solid var(--minimal-border); border-left: 3px solid var(--minimal-link); border-radius: 6px; background: var(--minimal-surface); }
.minimal-guestbook__note > span { color: var(--minimal-text); font-size: 14px; font-weight: 600; }
body #article-container .minimal-guestbook__note p { margin: 8px 0 0; font-size: 14px; line-height: 1.8; color: var(--minimal-muted); }

/* Category tree, sharing the same taxonomy as the browsing pages. */
body #body-wrap.post .minimal-tree-branch { margin: 0 0 6px; }
body #body-wrap.post .minimal-tree-branch > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 8px; border-radius: 6px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--minimal-muted); }
body #body-wrap.post .minimal-tree-branch > summary > span:first-child { flex: 1; }
body #body-wrap.post .minimal-tree-branch > summary::after { content: '›'; flex: 0 0 12px; font-size: 18px; color: var(--minimal-muted); }
body #body-wrap.post .minimal-tree-branch > summary:hover { background: var(--minimal-surface); color: var(--minimal-text); }
body #body-wrap.post .minimal-tree-branch[open] > summary { color: var(--minimal-text); }
.minimal-tree-count { color: var(--minimal-muted); font-size: 11px; font-weight: 400; }
.minimal-tree-children { margin: 4px 0 12px 8px; padding-left: 10px; border-left: 1px solid var(--minimal-border); }
body #body-wrap.post .minimal-tree-children .knowledge-post-sidebar__links a { padding: 9px 10px !important; font-size: 13px; }
.minimal-tree-all { display: block; margin-top: 20px; padding: 10px 8px; font-size: 13px; }
/* One flight, then a quiet landing at the right edge. */
.guestbook-flight { position: relative; width: 100%; height: 140px; margin: 12px 0 24px; overflow: hidden; color: var(--minimal-link); }
.guestbook-flight__route { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; }
.guestbook-flight__plane { position: absolute; width: 48px; height: 48px; left: calc(100% - 52px); top: 46%; transform: rotate(0deg); animation: guestbook-paper-flight 3.6s cubic-bezier(.25,.65,.3,1) 1 both; }
.guestbook-flight__plane svg { display: block; width: 100%; height: 100%; }
@keyframes guestbook-paper-flight {
  0% { left: 0; top: 62%; transform: rotate(-12deg); opacity: 0; }
  8% { opacity: 1; }
  48% { left: 48%; top: 10%; transform: rotate(8deg); }
  78% { left: 78%; top: 42%; transform: rotate(14deg); }
  100% { left: calc(100% - 52px); top: 46%; transform: rotate(0deg); opacity: 1; }
}
.minimal-taxonomy-lead { margin: 0 0 32px; font-size: 16px; line-height: 1.8; color: var(--minimal-muted); }
.minimal-category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.minimal-category-card { min-width: 0; padding: 24px; border: 1px solid var(--minimal-border); border-radius: 10px; background: var(--minimal-bg); }
body .minimal-category-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; font-size: 23px; font-weight: 600; color: var(--minimal-text) !important; }
.minimal-taxonomy-count { flex-shrink: 0; font-size: 13px; font-weight: 400; color: var(--minimal-muted); }
.minimal-category-children { display: grid; gap: 4px; }
.minimal-category-children a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 6px; background: var(--minimal-surface); font-size: 15px; }
.minimal-category-children a:hover { background: var(--minimal-tint); }
.minimal-category-preview { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--minimal-border); }
.minimal-category-preview a { font-size: 14px; line-height: 1.7; }
.minimal-tag-grid { display: flex; flex-wrap: wrap; gap: 12px; }
body .minimal-tag-link { display: inline-flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--minimal-border); border-radius: 8px; background: var(--minimal-bg); color: var(--minimal-text) !important; font-size: 15px; }
body .minimal-tag-link:hover { border-color: var(--minimal-link); background: var(--minimal-tint); }
@media(max-width:600px) { .minimal-category-grid { grid-template-columns: 1fr; gap: 16px; } .minimal-category-card { padding: 20px; } .guestbook-flight { height: 110px; } }
@media(prefers-reduced-motion:reduce) { .guestbook-flight__plane { animation: none !important; } }

/* Homepage console: the same reading palette, with monospace accents. */
.home-console-grid { display: grid; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 20px; margin: 0 0 48px; }
.home-console-card { min-width: 0; border: 1px solid var(--minimal-border); border-radius: 10px; background: var(--minimal-bg); overflow: hidden; }
.home-console-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--minimal-border); background: var(--minimal-surface); font-family: Consolas, monospace; }
.home-console-label { color: var(--minimal-link); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.home-console-caption { color: var(--minimal-muted); font-size: 12px; }
.home-console-body { padding: 20px; font: 14px/1.8 Consolas, var(--global-font); }
.home-command-output { height: 190px; overflow-y: auto; overflow-wrap: anywhere; scrollbar-width: thin; }
.home-command-output > * { display: block; margin-bottom: 8px; }
.home-command-form { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--minimal-border); }
.home-command-form label { color: var(--minimal-link); }
.home-command-form input { width: 100%; min-width: 0; border: 0; padding: 8px 4px; color: var(--minimal-text); background: transparent; font: inherit; }
.home-command-form button { flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--minimal-border); border-radius: 6px; color: var(--minimal-link); background: var(--minimal-surface); font: inherit; }
.home-monitor-clock { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; }
#home-monitor-clock { color: var(--minimal-text); font: 28px Consolas, monospace; font-variant-numeric: tabular-nums; }
.home-monitor-zone { font-size: 11px; color: var(--minimal-muted); }
.home-monitor-metrics { padding: 0 20px; display: grid; gap: 12px; }
.home-monitor-metric-label, .home-monitor-footer { display: flex; justify-content: space-between; color: var(--minimal-muted); font: 12px Consolas, monospace; }
.home-monitor-bar { margin-top: 6px; height: 4px; border-radius: 4px; overflow: hidden; background: var(--minimal-border); }
.home-monitor-bar span { display: block; height: 100%; background: var(--minimal-link); transition: width .5s; }
.home-monitor-wave { display: block; width: calc(100% - 40px); height: 32px; margin: 18px 20px 12px; color: var(--minimal-link); opacity: .7; }
.home-monitor-footer { padding: 12px 20px; border-top: 1px solid var(--minimal-border); }
@media(max-width:600px) { .home-console-grid { grid-template-columns: minmax(0,1fr); gap: 16px; margin-bottom: 40px; } .home-command-output { height: 160px; } }
@media(prefers-reduced-motion:reduce) { .home-monitor-bar span { transition: none; } }

.home-writing-calendar { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; margin: 0 0 48px; padding: 24px; border: 1px solid var(--minimal-border); border-radius: 10px; background: var(--minimal-bg); }
.home-writing-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
body .home-writing-header h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.home-writing-header p { margin: 0; font-size: 13px; color: var(--minimal-muted); }
.home-writing-header select { padding: 8px 12px; border: 1px solid var(--minimal-border); border-radius: 6px; background: var(--minimal-bg); color: var(--minimal-text); font: inherit; font-size: 13px; }
.home-writing-scroll { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; overflow-x: auto; padding: 4px 4px 10px; scrollbar-width: thin; }
.home-writing-months { display: grid; grid-template-columns: repeat(var(--writing-columns), 12px); gap: 4px; width: max-content; margin-bottom: 8px; color: var(--minimal-muted); font-size: 11px; }
.home-writing-months span { white-space: nowrap; }
.home-writing-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); grid-auto-columns: 12px; gap: 4px; width: max-content; }
.home-writing-cell { display: block; width: 12px; height: 12px; padding: 0; border: 0; border-radius: 3px; background: var(--minimal-surface); box-shadow: inset 0 0 0 1px var(--minimal-border); }
.home-writing-cell[data-level='1'] { background: #c8d2ee; box-shadow: none; }
.home-writing-cell[data-level='2'] { background: #8b9fd4; box-shadow: none; }
.home-writing-cell[data-level='3'] { background: #596fb4; box-shadow: none; }
.home-writing-cell[data-level='4'] { background: #354a9f; box-shadow: none; }
.home-writing-cell.is-future { opacity: .4; }
.home-writing-cell:is(.is-today,.is-selected) { outline: 1px solid var(--minimal-link); outline-offset: 2px; }
.home-writing-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--minimal-muted); }
.home-writing-legend { display: flex; align-items: center; gap: 5px; }
.home-writing-detail:not(:empty) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 24px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--minimal-border); font-size: 13px; line-height: 1.7; }
.home-writing-detail p { grid-column: 1 / -1; margin: 0; color: var(--minimal-muted); }
@media(max-width:600px) { .home-writing-calendar { padding: 18px; } .home-writing-detail:not(:empty) { grid-template-columns: 1fr; } }
