/* Loaded after legacy styles. Keep the configured accent and dark palette. */
html {
  --radius-wrap: 18px;
  --radius-inner: 10px;
  --radius-img: 12px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05), 0 2px 4px -1px rgba(0, 0, 0, .03);
  --block-shadow: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -2px rgba(0, 0, 0, .04);
}
body { background: var(--page-background); }
html[data-mode="dark"] {
  --box-shadow: 0 8px 16px rgba(0, 0, 0, .4);
  --block-shadow: 0 16px 32px rgba(0, 0, 0, .5);
}
.joe_header { border-bottom: 1px solid var(--classC); box-shadow: 0 4px 24px rgba(20, 35, 55, .04); }
.joe_main_container { gap: 24px; }
.joe_main_container > .joe_aside { margin-left: 0; }
.joe_main { min-width: 0; }
html .joe_aside__item, html .joe_detail, html .joe_comment, html .toc-container {
  border: 1px solid var(--classC);
  border-radius: var(--radius-wrap);
  box-shadow: var(--box-shadow);
}
.joe_aside__item { margin-bottom: 20px; }
.joe_aside__item-title { letter-spacing: .04em; }
.joe_aside__item.author .user .link { font-weight: 700; letter-spacing: .03em; }
.joe_detail { padding: clamp(20px, 3vw, 40px); }
.joe_detail__title { letter-spacing: -.025em; line-height: 1.45; }
.joe_detail__article { line-height: 1.9; }
.joe_list__item { border-bottom: 1px solid var(--classC); transition: background .2s; }
.joe_list__item:hover { background: var(--sub-background); }
.joe_list__item-title { line-height: 1.55; }
.joe_list__item .thumb { border-radius: 12px; overflow: hidden; }
.sixteen-reward { box-sizing: border-box; padding: 22px; background: var(--background); color: var(--main); text-align: center; }
.sixteen-reward__heading { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 20px; }
.sixteen-reward__heading > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--classH); color: var(--theme); font-size: 28px; flex-shrink: 0; }
.sixteen-reward__heading h3 { margin: 0; color: var(--main); font-size: 16px; font-weight: 700; }
.sixteen-reward__heading p { margin: 4px 0 0; color: var(--minor); font-size: 11px; }
.sixteen-reward__choices { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--classC); border-radius: 12px; background: var(--sub-background); }
.sixteen-reward__choices button { flex: 1; padding: 8px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--routine); font: inherit; font-size: 13px; cursor: pointer; }
.sixteen-reward__choices button[aria-pressed="true"] { background: var(--background); color: var(--theme); box-shadow: 0 2px 7px rgba(0,0,0,.08); font-weight: 700; }
.sixteen-reward__choices button:focus-visible { outline: 2px solid var(--theme); outline-offset: 2px; }
.sixteen-reward figure { margin: 18px 0 0; }
.sixteen-reward [hidden] { display: none !important; }
.sixteen-reward figure img { box-sizing: border-box; display: block; margin: auto; width: 184px; height: 184px; max-width: 100%; padding: 8px; object-fit: contain; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
html[data-mode="dark"] .sixteen-reward figure img { filter: none; opacity: 1; }
.sixteen-reward figcaption { margin-top: 10px; font-size: 12px; color: var(--minor); }
.sixteen-reward__phrase { margin: 16px 0 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.sixteen-reward__thanks { margin: 9px 0 0; font-size: 11px; color: var(--minor); }
.sixteen-reward__custom { margin-top: 15px; overflow-wrap: anywhere; }
.sixteen-reward__custom img { max-width: 100%; }
/* Retain footer content, statistics hooks and visibility switches. */
html .sixteen-footer { position: relative; z-index: 0; margin-top: 30px; border-top: 1px solid var(--classC); background: var(--background); }
html .sixteen-footer::before { content: ''; position: absolute; top: -1px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, transparent, var(--theme), transparent); opacity: .45; }
html .sixteen-footer .joe_container { display: flex; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding: 30px 24px; line-height: 1.9; }
html .sixteen-footer .joe_container > .item { flex: 1 1 300px; text-align: left; }
html .sixteen-footer .joe_container .side-col { gap: 14px; align-items: flex-end; max-width: 100%; }
html .sixteen-footer .side-col > .item:first-child:not(.busuanzi-statistic) { display: flex; gap: 8px; }
html .sixteen-footer .side-col > .item:first-child:not(.busuanzi-statistic) a { padding: 5px 12px; margin: 0; border: 1px solid var(--classC); border-radius: 8px; font-size: 12px; }
html .sixteen-footer .joe_container .busuanzi-statistic { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; opacity: 1; }
html .sixteen-footer .joe_container .busuanzi-statistic span { display: inline-flex; align-items: center; margin: 0; padding: 6px 10px 6px 27px; height: auto; background: var(--sub-background); color: var(--routine); border: 1px solid var(--classC); border-radius: 9px; font-weight: 400; }
html .sixteen-footer .joe_container .busuanzi-statistic span[class] em { padding: 0; margin-left: 8px; background: transparent; color: var(--main); font-weight: 700; font-variant-numeric: tabular-nums; }
html .sixteen-footer .joe_container .site_life { margin-top: 8px; }
html .sixteen-footer .site_life strong { color: var(--main); font-variant-numeric: tabular-nums; }
html .sixteen-footer.fixed { position: fixed; margin-top: 0; z-index: 2; max-height: 40vh; overflow-y: auto; }
html .sixteen-footer.fixed .joe_container { padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 992px) {
  html .page-post.joe_main_container { flex-direction: column; gap: 20px; }
  html .page-post > .sixteen-post-aside { display: block; width: 100%; margin: 0; padding: 0 15px; box-sizing: border-box; }
  html .sixteen-post-aside > .author, html .sixteen-post-aside > .joe_aside_post { display: none; }
  html .sixteen-post-aside > .sixteen-reward { position: static; width: 100%; max-width: 420px; margin: 0 auto 20px; }
}
@media (max-width: 768px) {
  html .sixteen-footer .joe_container { flex-direction: column; gap: 18px; padding: 24px 18px; }
  html .sixteen-footer .joe_container > .item { flex: auto; text-align: center; }
  html .sixteen-footer .joe_container .side-col { align-items: center; }
  html .sixteen-footer .joe_container .busuanzi-statistic { justify-content: center; }
  .joe_main_container { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .joe_list__item { transition: none; }
}

/* Palette reference: https://www.16uni.com/svgtool/ (2026-09-17). */
html:not([data-mode="dark"]) {
  color-scheme: light;
  --page-background: #f0f2f5;
  --background: #ffffff;
  --sub-background: #f9fafb;
  --sib-background: #ffffff;
  --main: #111827;
  --title: #111827;
  --routine: #6b7280;
  --minor: #6b7280;
  --sib: #f3f4f6;
  --classB: #e5e7eb;
  --classC: #e5e7eb;
  --classG: #e5e7eb;
  --classH: #eff6ff;
  --glass-background: rgba(255, 255, 255, .9);
}
html[data-mode="dark"] {
  color-scheme: dark;
  --page-background: #0f172a;
  --background: #1e293b;
  --sub-background: #334155;
  --sib-background: #1e293b;
  --main: #f8fafc;
  --title: #f8fafc;
  --routine: #94a3b8;
  --minor: #94a3b8;
  --sib: #475569;
  --classB: #334155;
  --classC: #334155;
  --classG: #334155;
  --classH: rgba(59, 130, 246, .15);
  --glass-background: rgba(30, 41, 59, .9);
}
html body, html body::before, html body::after { background-color: var(--page-background); }
html .joe_header, html .joe_footer, html .joe_aside__item { background-color: var(--background); }
html .joe_aside__item.author > .image { object-fit: cover; object-position: center; }
