/* XYZTech v8 - detail pages (posts, pages, archives, search, 404).
   Same look as the redesigned home page, dark by default / light by system or toggle.
   Scoped with html[data-theme] so nothing leaks onto the home page. */

:root{color-scheme:dark}
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}

html[data-theme],html[data-theme="dark"]{
  --xt-bg:#05060a;--xt-surface:#0e0f17;--xt-surface2:#141622;--xt-ink:#f4f6fb;--xt-soft:#c9d0de;--xt-muted:#a1a9bc;
  --xt-line:rgba(255,255,255,.10);--xt-line2:rgba(255,255,255,.16);--xt-acc:#7c8cff;--xt-link:#a9b8ff;--xt-link-h:#d3dbff;
  --xt-head-bg:rgba(5,6,10,.78);--xt-shadow:0 24px 60px -28px rgba(0,0,0,.8);--xt-btn-bg:#fff;--xt-btn-ink:#05060a;--xt-ring:#9db1ff;
  --xt-glow1:rgba(109,92,255,.42);--xt-glow2:rgba(31,123,255,.22);--xt-grid:rgba(255,255,255,.04);--xt-mark-sh:rgba(109,92,255,.55);
  --xt-brand-a:#8ea2ff;--xt-brand-b:#5ee0ff;--xt-code:#e5e9ff;--xt-hover:rgba(255,255,255,.07);
}
html[data-theme="light"]{
  --xt-bg:#f5f6fb;--xt-surface:#ffffff;--xt-surface2:#eef0f8;--xt-ink:#0f1220;--xt-soft:#2b3246;--xt-muted:#4d566b;
  --xt-line:rgba(15,18,32,.12);--xt-line2:rgba(15,18,32,.20);--xt-acc:#4f46e5;--xt-link:#4338ca;--xt-link-h:#312e81;
  --xt-head-bg:rgba(245,246,251,.84);--xt-shadow:0 20px 50px -30px rgba(15,18,32,.35);--xt-btn-bg:#0f1220;--xt-btn-ink:#ffffff;--xt-ring:#4338ca;
  --xt-glow1:rgba(109,92,255,.20);--xt-glow2:rgba(34,160,255,.12);--xt-grid:rgba(15,18,32,.045);--xt-mark-sh:rgba(79,70,229,.35);
  --xt-brand-a:#4338ca;--xt-brand-b:#0e7490;--xt-code:#1e1b4b;--xt-hover:rgba(15,18,32,.06);
}

/* ---------- page canvas ---------- */
html[data-theme] body,
html[data-theme] body #page,
html[data-theme] body .site,
html[data-theme] body .site-content{background:var(--xt-bg)!important;color:var(--xt-soft)}
html[data-theme] body{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  padding-top:68px!important;position:relative;
}
html[data-theme] body.admin-bar{padding-top:68px!important}
html[data-theme] body::before{ /* soft glow + grid behind the top of the page */
  content:"";position:absolute;inset:0 0 auto;height:620px;pointer-events:none;z-index:0;
  background:radial-gradient(520px 260px at 50% 0,var(--xt-glow1),transparent 70%),radial-gradient(420px 260px at 12% 220px,var(--xt-glow2),transparent 70%),
    linear-gradient(var(--xt-grid) 1px,transparent 1px) 0 0/64px 64px,linear-gradient(90deg,var(--xt-grid) 1px,transparent 1px) 0 0/64px 64px;
  -webkit-mask-image:linear-gradient(#000 40%,transparent);mask-image:linear-gradient(#000 40%,transparent);
}
html[data-theme] body #page{position:relative;z-index:1}
html[data-theme] ::selection{background:var(--xt-acc);color:#fff}

/* old native header is replaced by .xt-header */
html[data-theme] body .single-header,
html[data-theme] body .mobile-header,
html[data-theme] body #masthead.site-header,
html[data-theme] body .progress-container{display:none!important}

/* ---------- new header ---------- */
.xt-header{position:fixed;top:0;left:0;right:0;z-index:9990;background:var(--xt-head-bg);-webkit-backdrop-filter:saturate(160%) blur(16px);backdrop-filter:saturate(160%) blur(16px);border-bottom:1px solid var(--xt-line);font:16px/1.4 -apple-system,BlinkMacSystemFont,"SF Pro SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Segoe UI",Roboto,Arial,sans-serif}
body.admin-bar .xt-header{top:32px}
@media (max-width:782px){body.admin-bar .xt-header{top:46px}}
.xt-header *,.xt-header *::before,.xt-header *::after{box-sizing:border-box}
.xt-wrap{width:min(1200px,calc(100% - 40px));margin-inline:auto}
.xt-inner{position:relative;height:67px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.xt-header a{text-decoration:none!important;box-shadow:none!important}
.xt-brand{display:inline-flex;align-items:center;min-height:44px;font-size:22px;font-weight:800;letter-spacing:-.04em;line-height:1;white-space:nowrap;color:var(--xt-ink)!important}
.xt-mark{flex:none;width:26px;height:26px;margin-right:10px;border-radius:8px;background:conic-gradient(from 210deg,#6d5cff,#22d3ee,#a855f7,#6d5cff);box-shadow:0 0 18px var(--xt-mark-sh),inset 0 0 0 1px rgba(255,255,255,.3);font-style:normal}
.xt-brand span{background:linear-gradient(90deg,var(--xt-brand-a),var(--xt-brand-b));-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.xt-nav{display:flex;align-items:center;gap:6px;padding:5px;border:1px solid var(--xt-line);border-radius:999px;background:var(--xt-hover)}
.xt-nav a{display:inline-flex;align-items:center;min-height:36px;padding:6px 16px;border-radius:999px;font-size:14.5px;font-weight:500;color:var(--xt-soft)!important;transition:color .2s,background .2s}
.xt-nav a:hover{color:var(--xt-ink)!important;background:var(--xt-hover)}
.xt-end{display:flex;align-items:center;gap:10px}
.xt-theme{position:relative;display:inline-grid;place-items:center;flex:none;width:38px;height:38px;padding:0;margin:0;border:1px solid var(--xt-line2);border-radius:999px;background:var(--xt-hover);color:var(--xt-soft);cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.xt-theme:hover{color:var(--xt-ink);border-color:var(--xt-muted)}
.xt-theme svg{grid-area:1/1;transition:opacity .2s,transform .35s cubic-bezier(.2,.7,.2,1)}
.xt-theme .xt-i-moon{opacity:0;transform:rotate(-60deg) scale(.6)}
html[data-theme="light"] .xt-theme .xt-i-sun{opacity:0;transform:rotate(60deg) scale(.6)}
html[data-theme="light"] .xt-theme .xt-i-moon{opacity:1;transform:none}
.xt-cta{display:inline-flex;align-items:center;min-height:38px;padding:6px 18px;border-radius:999px;background:var(--xt-btn-bg);color:var(--xt-btn-ink)!important;font-size:14.5px;font-weight:600;transition:transform .2s,box-shadow .2s}
.xt-cta:hover{transform:translateY(-1px);box-shadow:0 8px 24px -8px rgba(124,140,255,.6)!important}
.xt-menu{display:none;align-items:center;gap:8px;min-height:40px;padding:6px 14px;margin:0;border:1px solid var(--xt-line2);border-radius:999px;background:var(--xt-hover);font:inherit;font-size:14px;color:var(--xt-ink);cursor:pointer}
.xt-menu::before{content:"";width:14px;height:10px;background:linear-gradient(currentColor,currentColor) top/100% 1.5px no-repeat,linear-gradient(currentColor,currentColor) center/100% 1.5px no-repeat,linear-gradient(currentColor,currentColor) bottom/100% 1.5px no-repeat}
.xt-header a:focus-visible,.xt-header button:focus-visible{outline:2px solid var(--xt-ring);outline-offset:3px;border-radius:999px}
.xt-progress{position:absolute;left:0;right:0;bottom:-1px;height:2px;pointer-events:none}
.xt-progress i{display:block;height:100%;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#6d5cff,#22d3ee,#a855f7)}
@media (max-width:760px){
  .xt-inner{height:63px}
  html[data-theme] body,html[data-theme] body.admin-bar{padding-top:64px!important}
  .xt-cta{display:none}
  .xt-theme{width:44px;height:44px}
  .xt-menu{display:inline-flex;min-height:44px}
  .xt-nav{display:none;position:absolute;left:0;right:0;top:62px;flex-direction:column;align-items:stretch;gap:2px;padding:8px;border-radius:20px;background:var(--xt-surface);border-color:var(--xt-line2);box-shadow:var(--xt-shadow)}
  .xt-nav.is-open{display:flex}
  .xt-nav a{min-height:46px;padding:10px 16px;border-radius:12px;font-size:16px}
  .xt-brand{font-size:20px}
}

/* ---------- containers ---------- */
html[data-theme] body #content>.container,
html[data-theme] body .breadcrumb-wrapper>.container,
html[data-theme] body .recommended-post>.container,
html[data-theme] body #colophon .container{width:min(1160px,calc(100% - 40px))!important;max-width:none!important;margin-inline:auto!important;padding-left:0!important;padding-right:0!important}
html[data-theme] body .breadcrumb-wrapper{background:transparent!important;border:0!important;padding:26px 0 0!important;margin:0!important}
html[data-theme] body #crumbs{font-size:13.5px;line-height:1.7;color:var(--xt-muted)!important}
html[data-theme] body #crumbs a,html[data-theme] body #crumbs span{color:var(--xt-muted)!important}
html[data-theme] body #crumbs a:hover{color:var(--xt-ink)!important}
html[data-theme] body #crumbs .current,html[data-theme] body #crumbs .current *{color:var(--xt-soft)!important}
html[data-theme] body #crumbs .separator{margin:0 .35em;opacity:.7}
html[data-theme] body #crumbs .separator i{font-style:normal}
html[data-theme] body #crumbs .separator i::before{content:"/";font-family:inherit;font-weight:400}
html[data-theme] body #crumbs .separator svg{display:none}

html[data-theme] body #content{padding:28px 0 56px!important;margin:0!important}
html[data-theme] body #content>.container{display:block}
html[data-theme] body.hassidebar #content>.container{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:36px;align-items:start}
html[data-theme] body #primary{float:none!important;width:auto!important;max-width:none!important;min-width:0;margin:0!important;padding:0!important}
html[data-theme] body:not(.hassidebar) #primary{max-width:880px!important;margin-inline:auto!important}
html[data-theme] body #secondary{float:none!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;min-width:0}
@media (max-width:960px){html[data-theme] body.hassidebar #content>.container{grid-template-columns:minmax(0,1fr)}}

/* ---------- post header / article ---------- */
html[data-theme] body .post-entry-header{margin:0 0 22px!important;padding:0!important;text-align:left!important;background:none!important}
html[data-theme] body .post-entry-header .category,
html[data-theme] body .entry-header .category{display:inline-block;margin:0 0 12px}
html[data-theme] body .category a{display:inline-flex;align-items:center;min-height:26px;padding:2px 12px;border:1px solid var(--xt-line2);border-radius:999px;background:var(--xt-hover);font-size:12.5px;font-weight:600;letter-spacing:.02em;color:var(--xt-link)!important;text-decoration:none!important}
html[data-theme] body .post-entry-header .entry-title,
html[data-theme] body h1.entry-title,
html[data-theme] body .page-title{margin:0!important;font-size:clamp(28px,4.4vw,44px)!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.025em;color:var(--xt-ink)!important;text-align:left!important}

html[data-theme] body #main>article,
html[data-theme] body #main>article .holder{background:transparent!important;border:0!important;box-shadow:none!important;margin:0!important;padding:0!important}
html[data-theme] body.single #main>article>.holder,
html[data-theme] body.page #main>article>.holder{background:var(--xt-surface)!important;border:1px solid var(--xt-line)!important;border-radius:22px;padding:clamp(20px,4vw,44px)!important;box-shadow:var(--xt-shadow)!important}
html[data-theme] body .meta-info{margin:0 0 22px!important;padding:0 0 16px!important;border-bottom:1px solid var(--xt-line)!important;background:none!important}
html[data-theme] body .entry-meta,html[data-theme] body .entry-meta *{font-size:13.5px;color:var(--xt-muted)!important}
html[data-theme] body .entry-meta a:hover{color:var(--xt-ink)!important}
html[data-theme] body .entry-meta .byline,html[data-theme] body .entry-meta .posted-on{margin-right:16px}
html[data-theme] body .entry-meta time.updated:not(.published){display:none}
html[data-theme] body .post-thumbnail{margin:0 0 24px!important;border-radius:16px;overflow:hidden}
html[data-theme] body .post-thumbnail img{border-radius:16px;width:100%;height:auto}

/* ---------- content typography ---------- */
html[data-theme] body .entry-content,
html[data-theme] body .page-content{font-size:16.5px;line-height:1.85;color:var(--xt-soft)!important;overflow-wrap:anywhere;word-break:normal}
html[data-theme] body .entry-content p,html[data-theme] body .entry-content li,html[data-theme] body .entry-content dd,html[data-theme] body .entry-content td,html[data-theme] body .entry-content th,html[data-theme] body .entry-content span{color:inherit}
html[data-theme] body .entry-content>*:first-child{margin-top:0!important}
html[data-theme] body .entry-content p{margin:0 0 1.15em}
html[data-theme] body .entry-content h1,html[data-theme] body .entry-content h2,html[data-theme] body .entry-content h3,html[data-theme] body .entry-content h4,html[data-theme] body .entry-content h5,html[data-theme] body .entry-content h6{color:var(--xt-ink)!important;font-weight:750;line-height:1.3;letter-spacing:-.015em;margin:2em 0 .7em;scroll-margin-top:90px}
html[data-theme] body .entry-content h2{position:relative;padding-top:1.1em;font-size:clamp(22px,2.6vw,27px);border-top:1px solid var(--xt-line)}
html[data-theme] body .entry-content h2:first-child{border-top:0;padding-top:0;margin-top:0}
html[data-theme] body .entry-content h3{font-size:clamp(18.5px,2.1vw,21px)}
html[data-theme] body .entry-content h4{font-size:17.5px}
html[data-theme] body .entry-content ul,html[data-theme] body .entry-content ol{margin:0 0 1.25em;padding-left:1.5em}
html[data-theme] body .entry-content ul{list-style:disc}
html[data-theme] body .entry-content ol{list-style:decimal}
html[data-theme] body .entry-content li{margin:.45em 0;padding-left:.2em}
html[data-theme] body .entry-content li::marker{color:var(--xt-acc);font-weight:600}
html[data-theme] body .entry-content li>ul,html[data-theme] body .entry-content li>ol{margin:.5em 0 .3em}
html[data-theme] body .entry-content strong,html[data-theme] body .entry-content b{color:var(--xt-ink);font-weight:700}
html[data-theme] body .entry-content a{color:var(--xt-link)!important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;text-decoration-color:color-mix(in srgb,var(--xt-link) 45%,transparent);transition:color .15s}
html[data-theme] body .entry-content a:hover{color:var(--xt-link-h)!important;text-decoration-color:currentColor}
html[data-theme] body .entry-content a:focus-visible,html[data-theme] body #secondary a:focus-visible,html[data-theme] body #colophon a:focus-visible,html[data-theme] body .nav-links a:focus-visible,html[data-theme] body #crumbs a:focus-visible{outline:2px solid var(--xt-ring);outline-offset:3px;border-radius:4px}
html[data-theme] body .entry-content hr{height:1px;border:0;background:var(--xt-line);margin:2.2em 0}
html[data-theme] body .entry-content blockquote{margin:1.5em 0;padding:.9em 1.2em;border:1px solid var(--xt-line);border-left:3px solid var(--xt-acc);border-radius:0 14px 14px 0;background:var(--xt-surface2);color:var(--xt-soft)}
html[data-theme] body .entry-content blockquote p:last-child{margin-bottom:0}
html[data-theme] body .entry-content code,html[data-theme] body .entry-content kbd,html[data-theme] body .entry-content samp{padding:.12em .42em;border:1px solid var(--xt-line);border-radius:6px;background:var(--xt-surface2);color:var(--xt-code);font:.9em/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
html[data-theme] body .entry-content pre{margin:1.4em 0;padding:16px 18px;overflow:auto;border:1px solid var(--xt-line);border-radius:14px;background:var(--xt-surface2);color:var(--xt-code);font:14px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-overflow-scrolling:touch}
html[data-theme] body .entry-content pre code{padding:0;border:0;background:none;font:inherit;color:inherit}
html[data-theme] body .entry-content img{max-width:100%;height:auto;border-radius:14px}
html[data-theme] body .entry-content figure{margin:1.6em 0}
html[data-theme] body .entry-content figcaption,html[data-theme] body .entry-content .wp-caption-text{margin-top:.6em;font-size:13.5px;text-align:center;color:var(--xt-muted)}
html[data-theme] body .entry-content .xt-table{margin:1.5em 0;overflow-x:auto;border:1px solid var(--xt-line);border-radius:14px;-webkit-overflow-scrolling:touch}
html[data-theme] body .entry-content table{width:100%;min-width:480px;margin:0;border-collapse:collapse;font-size:15px;line-height:1.6;border:0}
html[data-theme] body .entry-content th,html[data-theme] body .entry-content td{padding:11px 14px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid var(--xt-line);color:var(--xt-soft)}
html[data-theme] body .entry-content tr:last-child td{border-bottom:0}
html[data-theme] body .entry-content th{background:var(--xt-surface2);color:var(--xt-ink);font-weight:700;white-space:nowrap}
html[data-theme] body .entry-content tbody tr:hover td{background:var(--xt-hover)}
html[data-theme] body .entry-content .wp-block-button__link{display:inline-flex;align-items:center;min-height:44px;padding:10px 24px;border-radius:999px;background:var(--xt-btn-bg)!important;color:var(--xt-btn-ink)!important;font-weight:600;text-decoration:none}
html[data-theme] body .entry-content iframe,html[data-theme] body .entry-content video{max-width:100%;border-radius:14px}
html[data-theme] body .entry-content mark{background:rgba(250,204,21,.35);color:inherit;padding:0 .2em;border-radius:3px}
html[data-theme] body .entry-footer,html[data-theme] body .tags,html[data-theme] body .post-tags{margin-top:20px;color:var(--xt-muted)}

/* ---------- forms ---------- */
html[data-theme] body input[type="text"],html[data-theme] body input[type="search"],html[data-theme] body input[type="email"],html[data-theme] body input[type="url"],html[data-theme] body input[type="password"],html[data-theme] body textarea,html[data-theme] body select{width:100%;min-height:44px;padding:9px 14px;border:1px solid var(--xt-line2);border-radius:12px;background:var(--xt-surface2);color:var(--xt-ink);font:inherit;font-size:15.5px;box-shadow:none;-webkit-appearance:none;appearance:none}
html[data-theme] body input::placeholder,html[data-theme] body textarea::placeholder{color:var(--xt-muted);opacity:1}
html[data-theme] body input:focus,html[data-theme] body textarea:focus,html[data-theme] body select:focus{outline:2px solid var(--xt-ring);outline-offset:1px;border-color:transparent}
html[data-theme] body input[type="submit"],html[data-theme] body button[type="submit"],html[data-theme] body .search-submit,html[data-theme] body .comment-form .submit{min-height:44px;padding:9px 22px;border:0;border-radius:999px;background:var(--xt-btn-bg);color:var(--xt-btn-ink);font:inherit;font-size:15px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}
html[data-theme] body input[type="submit"]:hover,html[data-theme] body .search-submit:hover{transform:translateY(-1px);box-shadow:0 10px 26px -10px rgba(124,140,255,.7)}
html[data-theme] body .search-form{display:flex;flex-direction:column;gap:10px;position:relative}
html[data-theme] body .search-form label{display:block;margin:0;width:100%}
html[data-theme] body .search-form label>span{display:none}
html[data-theme] body .search-form .screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
html[data-theme] body .search-form .search-submit{align-self:flex-start;width:auto}

/* ---------- prev / next ---------- */
html[data-theme] body .navigation.post-navigation,html[data-theme] body #primary>.navigation{margin:26px 0 0!important;padding:0!important;border:0!important;background:none!important}
html[data-theme] body .nav-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;padding:0}
html[data-theme] body .nav-links .nav-holder{float:none!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;text-align:left!important}
html[data-theme] body .nav-links .nav-next{grid-column:2;text-align:right!important}
html[data-theme] body .nav-links .nav-previous:only-child{grid-column:1}
html[data-theme] body .nav-links a{display:block;height:100%;padding:16px 18px;border:1px solid var(--xt-line);border-radius:16px;background:var(--xt-surface);color:var(--xt-ink)!important;text-decoration:none!important;transition:border-color .2s,transform .2s,background .2s}
html[data-theme] body .nav-links a:hover{border-color:var(--xt-acc);transform:translateY(-2px)}
html[data-theme] body .nav-links .meta-nav{display:block;margin:0 0 4px;font-size:12.5px;font-weight:600;letter-spacing:.04em;color:var(--xt-muted)!important}
html[data-theme] body .nav-links .post-title{display:block;font-size:15.5px;font-weight:650;line-height:1.4;color:var(--xt-ink)!important}
@media (max-width:640px){html[data-theme] body .nav-links{grid-template-columns:minmax(0,1fr)}html[data-theme] body .nav-links .nav-next{grid-column:1;text-align:left!important}}

/* ---------- sidebar widgets (incl. #custom_html-3 ICP widget on vtlmaker) ---------- */
html[data-theme] body #secondary .widget{margin:0 0 18px!important;padding:20px 22px!important;border:1px solid var(--xt-line)!important;border-radius:18px;background:var(--xt-surface)!important;box-shadow:none!important;color:var(--xt-soft)}
html[data-theme] body #secondary .widget-title{margin:0 0 12px!important;padding:0!important;border:0!important;font-size:13px!important;font-weight:700!important;letter-spacing:.08em;text-transform:uppercase;color:var(--xt-muted)!important;text-align:left!important;background:none!important}
html[data-theme] body #secondary .widget-title::before,html[data-theme] body #secondary .widget-title::after{display:none!important}
html[data-theme] body #secondary .widget ul{margin:0;padding:0;list-style:none}
html[data-theme] body #secondary .widget li{margin:0;padding:8px 0!important;border-bottom:1px solid var(--xt-line);font-size:14.5px;line-height:1.5;color:var(--xt-soft)}
html[data-theme] body #secondary .widget li:last-child{border-bottom:0;padding-bottom:0!important}
html[data-theme] body #secondary .widget li:first-child{padding-top:0!important}
html[data-theme] body #secondary .widget a{color:var(--xt-link)!important;text-decoration:none}
html[data-theme] body #secondary .widget a:hover{color:var(--xt-link-h)!important;text-decoration:underline}
html[data-theme] body #secondary .widget .search-form{gap:8px}
html[data-theme] body #secondary #custom_html-3,
html[data-theme] body #custom_html-3{display:block!important;visibility:visible!important;opacity:1!important;height:auto!important;position:static!important;overflow:visible!important}
html[data-theme] body #custom_html-3 .textwidget a{display:inline-block;font-weight:600;font-size:15px}
@media (max-width:960px){html[data-theme] body #secondary{margin-top:8px!important}}

/* ---------- archive / blog / search cards ---------- */
html[data-theme] body.blog #main,html[data-theme] body.archive #main,html[data-theme] body.search #main{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;height:auto!important;position:static!important}
html[data-theme] body.blog #main>article,html[data-theme] body.archive #main>article,html[data-theme] body.search #main>article{position:static!important;float:none!important;left:auto!important;top:auto!important;width:auto!important;margin:0!important;padding:0!important;border:1px solid var(--xt-line)!important;border-radius:18px;background:var(--xt-surface)!important;transition:border-color .2s,transform .2s}
html[data-theme] body.blog #main>article:hover,html[data-theme] body.archive #main>article:hover,html[data-theme] body.search #main>article:hover{border-color:var(--xt-acc);transform:translateY(-2px)}
html[data-theme] body.blog #main>article .holder,html[data-theme] body.archive #main>article .holder,html[data-theme] body.search #main>article .text-holder{padding:22px 24px!important;background:none!important;border:0!important}
html[data-theme] body.blog #main .entry-title,html[data-theme] body.archive #main .entry-title,html[data-theme] body.search #main .entry-title{margin:0 0 8px!important;font-size:21px!important;line-height:1.35!important;font-weight:750!important}
html[data-theme] body.blog #main .entry-title a,html[data-theme] body.archive #main .entry-title a,html[data-theme] body.search #main .entry-title a{color:var(--xt-ink)!important;text-decoration:none}
html[data-theme] body #main .entry-content p{margin:0 0 10px;font-size:15px;line-height:1.7;color:var(--xt-soft)}
html[data-theme] body #main .read-more{display:inline-flex;align-items:center;min-height:36px;font-weight:600;font-size:14.5px;color:var(--xt-link)!important;text-decoration:none}
html[data-theme] body #main .read-more:hover{color:var(--xt-link-h)!important;text-decoration:underline}
html[data-theme] body #main .posted-on a,html[data-theme] body #main .entry-footer .posted-on{font-size:13px;color:var(--xt-muted)!important}
html[data-theme] body .search-result-page-header,html[data-theme] body .page-header,html[data-theme] body .archive-header{margin:0 0 22px!important;padding:0!important;background:none!important;border:0!important}
html[data-theme] body .search-result-page-header .label,html[data-theme] body .search-per-page-count{font-size:13.5px;color:var(--xt-muted)!important}
html[data-theme] body .page-header .page-title,html[data-theme] body .archive-title{margin-bottom:8px}
html[data-theme] body .pagination,html[data-theme] body .posts-navigation{margin:28px 0 0;text-align:center}
html[data-theme] body .pagination .page-numbers,html[data-theme] body .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:0 12px;margin:3px;border:1px solid var(--xt-line);border-radius:999px;background:var(--xt-surface);color:var(--xt-ink)!important;text-decoration:none}
html[data-theme] body .page-numbers.current{background:var(--xt-btn-bg);color:var(--xt-btn-ink)!important;border-color:transparent}
html[data-theme] body .page-numbers:hover{border-color:var(--xt-acc)}
html[data-theme] body .error-404,html[data-theme] body .no-results{padding:30px 0}
html[data-theme] body .error-404 .page-title,html[data-theme] body .no-results .page-title{margin-bottom:14px!important}

/* ---------- recommended posts ---------- */
html[data-theme] body .recommended-post{padding:6px 0 60px!important;margin:0!important;background:transparent!important;border:0!important}
html[data-theme] body .recommended-post .section-header{margin:0 0 18px;text-align:left!important}
html[data-theme] body .recommended-post .section-title{margin:0;font-size:22px;font-weight:750;color:var(--xt-ink)!important;text-align:left}
html[data-theme] body .recommended-post .post-wrapper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0!important;height:auto!important}
html[data-theme] body .recommended-post .post-wrapper>article{position:static!important;float:none!important;width:auto!important;margin:0!important;padding:0!important;border:1px solid var(--xt-line)!important;border-radius:18px;background:var(--xt-surface)!important;transition:border-color .2s,transform .2s}
html[data-theme] body .recommended-post .post-wrapper>article:hover{border-color:var(--xt-acc);transform:translateY(-2px)}
html[data-theme] body .recommended-post .holder{display:flex;flex-direction:column;justify-content:space-between;gap:14px;height:100%;padding:20px 22px!important;background:none!important;border:0!important}
html[data-theme] body .recommended-post .post-thumbnail{margin:0 0 12px!important}
html[data-theme] body .recommended-post .post-thumbnail:not(:has(img)),html[data-theme] body .recommended-post .post-thumbnail.xt-empty{display:none!important}
html[data-theme] body .recommended-post .entry-title{margin:8px 0 0!important;font-size:17px!important;line-height:1.4!important;font-weight:700!important}
html[data-theme] body .recommended-post .entry-title a{color:var(--xt-ink)!important;text-decoration:none}
html[data-theme] body .recommended-post .posted-on a{font-size:13px;color:var(--xt-muted)!important;text-decoration:none}
@media (max-width:960px){html[data-theme] body .recommended-post .post-wrapper{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){html[data-theme] body .recommended-post .post-wrapper{grid-template-columns:minmax(0,1fr)}}

/* ---------- comments ---------- */
html[data-theme] body .comments-area{margin-top:26px;padding:clamp(18px,3vw,30px);border:1px solid var(--xt-line);border-radius:20px;background:var(--xt-surface);color:var(--xt-soft)}
html[data-theme] body .comments-area a{color:var(--xt-link)!important}
html[data-theme] body .comments-title,html[data-theme] body .comment-reply-title{color:var(--xt-ink)!important;font-size:20px;margin:0 0 14px}
html[data-theme] body .comments-area label{color:var(--xt-soft);font-size:14px}

/* ---------- footer: 备案 (ICP) + 公安 badge preserved ---------- */
html[data-theme] body #colophon,html[data-theme] body .site-footer{position:relative;margin:0!important;padding:0!important;background:var(--xt-surface)!important;border-top:1px solid var(--xt-line)!important;color:var(--xt-muted)!important}
html[data-theme] body #colophon .footer-b,html[data-theme] body #colophon .footer-t{background:transparent!important;border:0!important;padding:26px 0 30px!important}
html[data-theme] body #colophon .site-info{display:block!important;visibility:visible!important;opacity:1!important;font-size:14px;line-height:2;color:var(--xt-muted)!important;text-align:center!important}
html[data-theme] body #colophon .site-info a{color:var(--xt-link)!important;text-decoration:none}
html[data-theme] body #colophon .site-info a:hover{text-decoration:underline;color:var(--xt-link-h)!important}
html[data-theme] body #colophon .copyright{display:inline!important;visibility:visible!important;opacity:1!important;color:var(--xt-muted)!important}
html[data-theme] body #colophon .x-ga{display:inline-block!important;visibility:visible!important;margin-left:14px;white-space:nowrap}
html[data-theme] body #colophon .x-ga a{display:inline-flex;align-items:center;gap:5px;vertical-align:middle}
html[data-theme] body #colophon .x-ga img{display:inline-block!important;visibility:visible!important;width:17px;height:18px;max-width:none;margin:0;vertical-align:middle;border-radius:0;opacity:1}
html[data-theme] body #colophon .footer-nav{display:none}
html[data-theme] body .back-to-top{border:1px solid var(--xt-line2)!important;background:var(--xt-surface)!important;color:var(--xt-ink)!important;box-shadow:var(--xt-shadow)}
html[data-theme] body .back-to-top span,html[data-theme] body .back-to-top i{color:var(--xt-ink)!important}
html[data-theme] body .skip-link:focus{background:var(--xt-btn-bg);color:var(--xt-btn-ink)}
@media (max-width:600px){
  html[data-theme] body #colophon .x-ga{display:block!important;margin:2px 0 0}
  html[data-theme] body #colophon .site-info{font-size:13.5px}
  html[data-theme] body .entry-content{font-size:16px}
}
@media (prefers-reduced-motion:reduce){.xt-header *,html[data-theme] body *{transition:none!important;animation:none!important}}
@media print{.xt-header,html[data-theme] body::before{display:none!important}html[data-theme] body{padding-top:0!important;background:#fff!important}}

/* ---------- v8 fixes: theme icon buttons, counters, category pill ---------- */
html[data-theme] body .category a{background:var(--xt-hover)!important;background-image:none!important;color:var(--xt-link)!important;border-color:var(--xt-line2)!important}
html[data-theme] body .search-form .search-submit,html[data-theme] body input.search-submit{position:static!important;width:auto!important;min-width:92px;height:auto!important;padding:9px 22px!important;background:var(--xt-btn-bg)!important;background-image:none!important;color:var(--xt-btn-ink)!important;font-size:15px!important;text-indent:0!important;text-transform:none!important;letter-spacing:0!important;line-height:1.4;border-radius:999px!important;opacity:1!important;visibility:visible!important;display:inline-block!important}
html[data-theme] body .widget li::before,html[data-theme] body .widget_recent_entries ul li::before,html[data-theme] body .widget_recent_comments ul li::before{content:none!important;display:none!important}
html[data-theme] body .widget ul li{padding-left:0!important}
html[data-theme] body #secondary .widget a{font-family:inherit}
html[data-theme] body h1,html[data-theme] body h2,html[data-theme] body h3,html[data-theme] body h4,html[data-theme] body h5,html[data-theme] body h6,html[data-theme] body .entry-title,html[data-theme] body .widget-title,html[data-theme] body .widget a,html[data-theme] body .widget li,html[data-theme] body .nav-links .post-title,html[data-theme] body #crumbs{font-family:-apple-system,BlinkMacSystemFont,"SF Pro SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Segoe UI",Roboto,Arial,sans-serif!important}
.xt-nav a.xt-nav-contact{display:none}
@media (max-width:760px){
  .xt-nav a.xt-nav-contact{display:inline-flex}
  html[data-theme] body .entry-content h2{font-size:25px!important;line-height:1.3!important}
  html[data-theme] body .entry-content h3{font-size:20px!important}
  html[data-theme] body .post-entry-header .entry-title,html[data-theme] body .entry-header .entry-title{font-size:30px!important;line-height:1.2!important}
}
html[data-theme] body #colophon .footer-b .container{display:block!important;width:min(1160px,100% - 40px);margin:0 auto;padding:22px 0 26px!important;text-align:center!important}
html[data-theme] body #colophon .site-info{width:100%!important;max-width:none!important;float:none!important;margin:0 auto!important;padding:0!important}
html[data-theme] body #colophon .copyright{display:block!important;margin:0 0 4px}
html[data-theme] body .recommended-post article .bottom,html[data-theme] body .recommended-post article .entry-meta{border-top-color:var(--xt-line)!important}
html[data-theme] body #colophon .site-info>a{white-space:nowrap}
/* the theme's image-less owl-carousel banner on blog/archive renders as black slabs; the same posts are listed right below */
html[data-theme] body .banner{display:none!important}
html[data-theme] body .entry-footer,html[data-theme] body .entry-footer>*{border-top-color:var(--xt-line)!important}
html[data-theme] body #main article .entry-footer{border-color:var(--xt-line)!important}
html[data-theme] body #main article .bottom,html[data-theme] body .post-wrapper article .bottom{border-top-color:var(--xt-line)!important}
html[data-theme] body #main article .read-more{border-bottom-color:var(--xt-acc)!important;color:var(--xt-link)!important}

/* =====================================================================
   v9 - sub-page polish (article layout, TOC, sidebar, lists, search,
   contact, prev/next, print, focus). Everything stays scoped to html[data-theme].
   ===================================================================== */
html[data-theme]{scroll-padding-top:84px}
@media (prefers-reduced-motion:no-preference){html[data-theme]{scroll-behavior:smooth}}
.xt-hide,html[data-theme] body .xt-hide{display:none!important}

/* ---- article: one reading column instead of a meta column + content column ---- */
html[data-theme] body.single #main>article>.holder,
html[data-theme] body.page #main>article>.holder{display:block!important;padding:clamp(22px,4.2vw,52px)!important}
html[data-theme] body.single .meta-info,html[data-theme] body.page .meta-info{float:none!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important}
html[data-theme] body.single .post-content,html[data-theme] body.page .post-content{float:none!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important}
html[data-theme] body #main>article .meta-info .entry-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
/* meta row is moved under the title by theme.js (.xt-meta) */
html[data-theme] body .post-entry-header .meta-info{margin:14px 0 0!important}
html[data-theme] body .post-entry-header .entry-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;font-size:13.5px;line-height:1.6}
html[data-theme] body .post-entry-header .entry-meta .byline,
html[data-theme] body .post-entry-header .entry-meta .posted-on{display:inline-flex;align-items:center;margin:0!important;color:var(--xt-muted)!important}
html[data-theme] body .post-entry-header .entry-meta .byline::after{content:"";display:inline-block;width:3px;height:3px;margin:0 12px;border-radius:50%;background:currentColor;opacity:.55}
html[data-theme] body .post-entry-header .entry-meta .byline:only-child::after{display:none}
html[data-theme] body .post-entry-header .entry-meta a{color:inherit!important;text-decoration:none!important}
html[data-theme] body .post-entry-header .entry-meta time.updated:not(.published){display:none!important}
html[data-theme] body .post-entry-header .entry-meta .posted-on[data-xt-upd] a::after{content:" · " attr(data-xt-upd);opacity:.9}
html[data-theme] body .post-entry-header .entry-meta .byline .url,html[data-theme] body .post-entry-header .entry-meta .byline [itemprop=name]{text-transform:none!important;letter-spacing:0!important;font-weight:600}
html[data-theme] body .post-entry-header{max-width:100%}
html[data-theme] body .post-entry-header .entry-title{overflow-wrap:anywhere}
html[data-theme] body.single .post-entry-header,html[data-theme] body.page .post-entry-header{margin-bottom:24px!important}

/* readable, consistent body size (theme forced 15px on p) */
html[data-theme] body .entry-content p,html[data-theme] body .entry-content li{font-size:inherit!important;line-height:inherit!important}
html[data-theme] body.single .entry-content,html[data-theme] body.page .entry-content{font-size:16.5px;line-height:1.85;max-width:72ch;margin-inline:auto}
html[data-theme] body.single .entry-content>*,html[data-theme] body.page .entry-content>*{max-width:100%}
html[data-theme] body.single .entry-content>p:first-child,html[data-theme] body.page .entry-content>p:first-child{font-size:18px;line-height:1.8;color:var(--xt-ink)!important}
html[data-theme] body .entry-content>p:first-child+h2,html[data-theme] body .entry-content>p:first-child+h1{margin-top:1.6em}
html[data-theme] body .entry-content h2{margin-top:1.8em;padding-top:.85em}
html[data-theme] body .entry-content>h1:first-child,html[data-theme] body .entry-content>h2:first-child{margin-top:0}
html[data-theme] body .entry-content h1{font-size:clamp(24px,3vw,32px)}
html[data-theme] body .entry-content ul ul,html[data-theme] body .entry-content ol ul{list-style:circle}
html[data-theme] body .entry-content li p{margin:0 0 .5em}
html[data-theme] body .entry-content p+ul,html[data-theme] body .entry-content p+ol{margin-top:-.3em}
html[data-theme] body .entry-content img{box-shadow:0 8px 28px -16px rgba(0,0,0,.45)}

/* heading anchors (added by theme.js) */
html[data-theme] body .entry-content .xt-anchor{margin-left:.45em;font-size:.7em;font-weight:500;text-decoration:none!important;opacity:0;color:var(--xt-muted)!important;transition:opacity .15s}
html[data-theme] body .entry-content :is(h1,h2,h3,h4):hover .xt-anchor,html[data-theme] body .entry-content .xt-anchor:focus-visible{opacity:.85}
@media (hover:none){html[data-theme] body .entry-content .xt-anchor{display:none}}

/* featured image: a tidy hero instead of a 660px-tall poster */
html[data-theme] body.single .post-content>.post-thumbnail,html[data-theme] body.page .post-content>.post-thumbnail{margin:0 0 30px!important;padding:clamp(10px,2vw,22px);border:1px solid var(--xt-line);border-radius:18px;background:var(--xt-surface2);text-align:center;overflow:hidden}
html[data-theme] body.single .post-content>.post-thumbnail img,html[data-theme] body.page .post-content>.post-thumbnail img{display:inline-block;width:auto!important;max-width:100%;max-height:340px;height:auto;object-fit:contain;border-radius:12px;box-shadow:none}
html[data-theme] body .entry-content figure.xt-dup{display:none!important}
html[data-theme] body .entry-content .wp-block-image img,html[data-theme] body .entry-content figure img{display:block;margin-inline:auto}
@media (max-width:600px){
  html[data-theme] body.single .post-content>.post-thumbnail img{max-height:240px}
}

/* ---- breadcrumb: quieter, never wraps awkwardly ---- */
html[data-theme] body .breadcrumb-wrapper{padding-top:22px!important}
html[data-theme] body #crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:2px 0;white-space:normal}
html[data-theme] body #crumbs>span{display:inline-flex;align-items:center}
html[data-theme] body #crumbs .current{max-width:100%}
html[data-theme] body #crumbs .current a{pointer-events:none;text-decoration:none}
html[data-theme] body #crumbs .current .separator{display:none}
html[data-theme] body #crumbs a{text-decoration:none!important}
html[data-theme] body #crumbs a:hover{text-decoration:underline!important}
@media (max-width:600px){
  html[data-theme] body #crumbs{font-size:12.5px;flex-wrap:nowrap;overflow:hidden}
  html[data-theme] body #crumbs .current{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
  html[data-theme] body #crumbs .current *{white-space:nowrap}
}

/* ---- prev / next as two equal cards aligned with the article ---- */
html[data-theme] body #primary>nav.navigation,html[data-theme] body nav.navigation.post-navigation{float:none!important;clear:both;width:100%!important;max-width:none!important;margin:22px 0 0!important;padding:0!important}
html[data-theme] body nav.navigation .nav-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%!important;margin:0!important}
html[data-theme] body nav.navigation .nav-holder{width:auto!important;max-width:none!important;float:none!important;margin:0!important;padding:0!important}
html[data-theme] body nav.navigation .nav-holder a{position:relative;display:flex!important;flex-direction:column;gap:3px;height:100%;min-height:72px;padding:14px 18px!important;border:1px solid var(--xt-line)!important;border-radius:16px!important;background:var(--xt-surface)!important;text-decoration:none!important;transition:border-color .2s,transform .2s}
html[data-theme] body nav.navigation .nav-holder a:hover{border-color:var(--xt-acc)!important;transform:translateY(-1px)}
html[data-theme] body nav.navigation .nav-next a{text-align:right;align-items:flex-end}
html[data-theme] body nav.navigation .meta-nav{font-size:12.5px!important;color:var(--xt-muted)!important;letter-spacing:.02em}
html[data-theme] body nav.navigation .nav-previous .meta-nav::before{content:"\2190  "}
html[data-theme] body nav.navigation .nav-next .meta-nav::after{content:"  \2192"}
html[data-theme] body nav.navigation .post-title{font-size:15.5px!important;line-height:1.4;font-weight:650;color:var(--xt-ink)!important;overflow-wrap:anywhere}
html[data-theme] body nav.navigation .nav-links:has(.nav-holder:only-child){grid-template-columns:minmax(0,1fr)}
@media (max-width:600px){html[data-theme] body nav.navigation .nav-links{grid-template-columns:minmax(0,1fr)}html[data-theme] body nav.navigation .nav-next a{text-align:left;align-items:flex-start}}

/* ---- sidebar: de-clutter (duplicate search, archive list, login/meta, placeholder Pages) ---- */
html[data-theme] body #secondary #search-3,
html[data-theme] body #secondary #archives-2,
html[data-theme] body #secondary #meta-2,
html[data-theme] body #secondary #pages-1{display:none!important}
html[data-theme] body.hassidebar #content>.container{align-items:start}
html[data-theme] body.single.hassidebar #secondary,html[data-theme] body.page.hassidebar #secondary{position:sticky;top:84px;max-height:calc(100vh - 100px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--xt-line2) transparent}
@media (max-width:960px){html[data-theme] body.single.hassidebar #secondary,html[data-theme] body.page.hassidebar #secondary{position:static;max-height:none;overflow:visible}}
html[data-theme] body #secondary .widget{margin:0 0 16px!important}
html[data-theme] body #secondary .widget:last-child{margin-bottom:0!important}
html[data-theme] body #secondary .widget-title{margin:0 0 12px;font-size:13px!important;letter-spacing:.06em;text-transform:uppercase;color:var(--xt-muted)!important}
html[data-theme] body #secondary .widget li{border-bottom:1px solid var(--xt-line)}
html[data-theme] body #secondary .widget li:last-child{border-bottom:0}
html[data-theme] body #secondary .widget li a{display:block;padding:7px 0;line-height:1.5}
html[data-theme] body #secondary .widget li a:hover{color:var(--xt-link-h)}

/* search form: one inline pill instead of box + button stacked */
html[data-theme] body .search-form{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;margin:0;position:relative}
html[data-theme] body .search-form,html[data-theme] body .widget_search .search-form{border:0!important;background:none!important;padding:0!important;box-shadow:none!important}
html[data-theme] body .search-form>label:not(.screen-reader-text){flex:1 1 auto;min-width:0;margin:0;display:block;border:0!important;background:none!important;padding:0!important;box-shadow:none!important;width:auto!important}
html[data-theme] body .search-form>label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html[data-theme] body .search-form .search-field{display:block;width:100%!important;min-height:44px;padding:8px 16px!important;border:1px solid var(--xt-line2)!important;border-radius:999px!important;background:var(--xt-surface2)!important;color:var(--xt-ink)!important;font:inherit;font-size:15px!important;box-shadow:none!important}
html[data-theme] body .search-form .search-field::placeholder{color:var(--xt-muted);opacity:1}
html[data-theme] body .search-form .search-field:focus-visible{outline:2px solid var(--xt-ring);outline-offset:2px;border-color:transparent!important}
html[data-theme] body .search-form .search-submit,html[data-theme] body input.search-submit{flex:none;min-width:0!important;min-height:44px;padding:8px 20px!important;cursor:pointer}
html[data-theme] body #secondary .search-form{flex-wrap:wrap}
html[data-theme] body #secondary .search-form .search-submit{flex:1 1 100%}
@media (min-width:1100px){html[data-theme] body #secondary .search-form{flex-wrap:nowrap}html[data-theme] body #secondary .search-form .search-submit{flex:none}}

/* ---- TOC (built by theme.js, long documents only) ---- */
.xt-toc{margin:0 0 16px;border:1px solid var(--xt-line);border-radius:18px;background:var(--xt-surface);color:var(--xt-soft);font-size:14px;line-height:1.5}
.xt-toc>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:10px 16px;cursor:pointer;list-style:none;font-weight:700;color:var(--xt-ink);border-radius:18px;-webkit-user-select:none;user-select:none}
.xt-toc>summary::-webkit-details-marker{display:none}
.xt-toc>summary::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s;opacity:.7}
.xt-toc[open]>summary::after{transform:rotate(-135deg) translate(-2px,-1px)}
.xt-toc>summary small{margin-left:auto;margin-right:8px;font-weight:500;color:var(--xt-muted)}
.xt-toc>summary:focus-visible,.xt-toc a:focus-visible,.xt-toc .xt-jump a:focus-visible{outline:2px solid var(--xt-ring);outline-offset:2px}
.xt-toc .xt-toc-body{max-height:min(56vh,520px);overflow:auto;padding:2px 8px 10px;scrollbar-width:thin;scrollbar-color:var(--xt-line2) transparent;overscroll-behavior:contain}
.xt-toc ol{margin:0;padding:0;list-style:none}
.xt-toc li{margin:0;padding:0;border:0!important}
.xt-toc a{display:block;padding:6px 10px;border-radius:10px;color:var(--xt-soft)!important;text-decoration:none!important;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.xt-toc a:hover{background:var(--xt-hover);color:var(--xt-ink)!important}
.xt-toc li.xt-l3 a{padding-left:24px;font-size:13.5px;color:var(--xt-muted)!important}
.xt-toc a[aria-current="true"]{background:var(--xt-hover);color:var(--xt-ink)!important;box-shadow:inset 2px 0 0 var(--xt-acc);font-weight:600}
.xt-toc .xt-jump{display:flex;flex-wrap:wrap;gap:6px;padding:2px 8px 8px}
.xt-toc .xt-jump a{display:inline-flex;width:auto;min-height:32px;align-items:center;padding:4px 12px;border:1px solid var(--xt-line2);border-radius:999px;font-size:13px;font-weight:600;color:var(--xt-link)!important}
html[data-theme] body #secondary .xt-toc{margin-bottom:16px}
html[data-theme] body #secondary .xt-toc .xt-toc-body{max-height:min(34vh,340px)}
html[data-theme] body .post-content>.xt-toc{margin:0 0 26px;background:var(--xt-surface2)}
@media (min-width:961px){html[data-theme] body.hassidebar .post-content>.xt-toc{display:none}}

/* ---- contact page ---- */
html[data-theme] body.xt-contact .entry-content{max-width:none}
html[data-theme] body.xt-contact .entry-content>p:first-child{font-size:inherit;color:inherit!important}
.xt-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin:6px 0 4px}
.xt-contact-card{display:flex;flex-direction:column;gap:6px;padding:18px 20px;border:1px solid var(--xt-line);border-radius:18px;background:var(--xt-surface2);margin:0!important;line-height:1.5!important;min-width:0}
.xt-contact-card .xt-k{font-size:12.5px;font-weight:600;letter-spacing:.04em;color:var(--xt-muted)}
.xt-contact-card .xt-v{font-size:17px;font-weight:700;color:var(--xt-ink);overflow-wrap:anywhere}
.xt-contact-card .xt-v a{color:var(--xt-link)!important}
.xt-contact-card button{align-self:flex-start;margin-top:4px;min-height:36px;padding:4px 14px;border:1px solid var(--xt-line2);border-radius:999px;background:var(--xt-hover);color:var(--xt-ink);font:inherit;font-size:13px;cursor:pointer}
.xt-contact-card button:hover{border-color:var(--xt-acc)}
.xt-contact-card button:focus-visible{outline:2px solid var(--xt-ring);outline-offset:2px}
html[data-theme] body.xt-contact .entry-content{padding-top:2px}

/* ---- lists (blog home, archives, category, search) ---- */
html[data-theme] body .xt-listhead{margin:0 0 20px}
html[data-theme] body .xt-listhead h1{margin:0 0 6px;font-size:clamp(28px,4vw,40px);line-height:1.2;font-weight:800;letter-spacing:-.025em;color:var(--xt-ink)}
html[data-theme] body .xt-listhead p{margin:0;font-size:15px;color:var(--xt-muted)}
html[data-theme] body:not(.single):not(.page) #main{margin-left:0!important;margin-right:0!important;width:auto!important;max-width:none!important}
html[data-theme] body:not(.single):not(.page) #main>article{position:relative;transition:border-color .2s,transform .2s}
html[data-theme] body:not(.single):not(.page) #main>article:hover{border-color:var(--xt-acc)!important;transform:translateY(-1px)}
html[data-theme] body:not(.single):not(.page) #main>article>.holder{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head head" "text text" "date more";align-items:center;gap:0 16px;padding:clamp(18px,3vw,26px)!important}
html[data-theme] body:not(.single):not(.page) #main>article>.holder>.top{display:contents}
html[data-theme] body:not(.single):not(.page) #main>article .entry-header{grid-area:head;margin:0 0 6px!important}
html[data-theme] body:not(.single):not(.page) #main>article .entry-content{grid-area:text;margin:0 0 14px!important;font-size:15px;line-height:1.7;color:var(--xt-muted)!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
html[data-theme] body:not(.single):not(.page) #main>article .entry-content p{margin:0;font-size:inherit!important;color:inherit!important}
html[data-theme] body:not(.single):not(.page) #main>article .entry-footer{grid-area:more;margin:0!important;padding:0!important;border:0!important;text-align:right}
html[data-theme] body:not(.single):not(.page) #main>article .bottom{grid-area:date;margin:0!important;padding:0!important;border:0!important;background:none!important}
html[data-theme] body:not(.single):not(.page) #main>article .read-more{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0!important;border:0!important;font-size:14px;font-weight:650;color:var(--xt-link)!important;text-decoration:none!important}
html[data-theme] body:not(.single):not(.page) #main>article .read-more::after{content:"\2192";transition:transform .2s}
html[data-theme] body:not(.single):not(.page) #main>article:hover .read-more::after{transform:translateX(3px)}
html[data-theme] body:not(.single):not(.page) #main>article .entry-title{margin:0!important;font-size:clamp(19px,2.2vw,22px)!important;line-height:1.35!important}
html[data-theme] body:not(.single):not(.page) #main>article .entry-title a::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
html[data-theme] body:not(.single):not(.page) #main>article .posted-on a{font-size:13px;font-weight:500;color:var(--xt-muted)!important}
html[data-theme] body:not(.single):not(.page) #main>article .read-more{position:relative;z-index:2}
/* search result cards use .text-holder instead of .holder */
html[data-theme] body:is(.search,.archive):not(.single):not(.page) #main>article>.text-holder{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head head" "text text" "date date";gap:0 16px;padding:clamp(18px,3vw,26px)!important}
html[data-theme] body:is(.search,.archive):not(.single):not(.page) #main>article .entry-header{grid-area:head;margin:0 0 6px!important}
html[data-theme] body:is(.search,.archive):not(.single):not(.page) #main>article .entry-content{grid-area:text;margin:0 0 12px!important;font-size:15px;line-height:1.7;color:var(--xt-muted)!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
html[data-theme] body:is(.search,.archive):not(.single):not(.page) #main>article .entry-content p{margin:0;font-size:inherit!important;color:inherit!important}
html[data-theme] body:is(.search,.archive):not(.single):not(.page) #main>article .entry-footer{grid-area:date;margin:0!important;padding:0!important;border:0!important}
html[data-theme] body:is(.search,.archive):not(.single):not(.page) #main>article{position:relative;transition:border-color .2s,transform .2s}
html[data-theme] body:is(.search,.archive):not(.single):not(.page) #main>article:hover{border-color:var(--xt-acc)!important}
html[data-theme] body:is(.search,.archive):not(.single):not(.page) #main>article .entry-title a::after{content:"";position:absolute;inset:0;z-index:1}
html[data-theme] body.search .search-result-page-header{display:block}
html[data-theme] body.search .search-result-page-header .label{display:block;margin:0 0 10px;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--xt-muted)}
html[data-theme] body.search .search-result-page-header .search-form .search-field{font-size:18px!important;min-height:52px;font-weight:600;padding-inline:20px!important}
html[data-theme] body.search .search-result-page-header .search-form .search-submit{min-height:52px;padding-inline:26px!important}
html[data-theme] body.search .search-per-page-count{display:block;margin:0 0 18px;padding-top:14px}
html[data-theme] body .page-header{margin-bottom:20px!important}
html[data-theme] body .archive-description{margin-top:6px;color:var(--xt-muted)}
html[data-theme] body.no-results .search-form,html[data-theme] body .no-results .search-form{max-width:480px;margin-top:16px}

/* ---- related posts: lighter chrome ---- */
html[data-theme] body .recommended-post .section-title{font-size:20px}
html[data-theme] body .recommended-post .holder{padding:18px 20px!important}
html[data-theme] body .recommended-post .top{display:block}
html[data-theme] body .recommended-post .bottom{border-top:0!important;padding-top:0!important;margin-top:10px!important}
html[data-theme] body .entry-content>p:empty,html[data-theme] body .entry-content>p:has(>br:only-child){display:none}
html[data-theme] body .post-content>.post-thumbnail:empty{display:none!important}
html[data-theme] body .entry-footer:empty{display:none}
html[data-theme] body .recommended-post .entry-title a::after{content:"";position:absolute;inset:0}
html[data-theme] body .recommended-post .post-wrapper>article{position:relative!important}

/* ---- footer credit line: quiet, ICP/gongan row untouched ---- */
html[data-theme] body #colophon .site-info{font-size:13.5px}
html[data-theme] body #colophon .site-info>a,html[data-theme] body #colophon .site-info>a:visited{opacity:.85}

/* ---- focus states ---- */
html[data-theme] body a:focus-visible,html[data-theme] body button:focus-visible,html[data-theme] body input:focus-visible,html[data-theme] body summary:focus-visible,html[data-theme] body .page-numbers:focus-visible,html[data-theme] body .back-to-top:focus-visible{outline:2px solid var(--xt-ring)!important;outline-offset:3px}
html[data-theme] body .xt-table:focus-visible{outline:2px solid var(--xt-ring);outline-offset:2px}

/* ---- mobile spacing ---- */
@media (max-width:600px){
  html[data-theme] body .post-entry-header .entry-meta{flex-direction:column;align-items:flex-start}
  html[data-theme] body .post-entry-header .entry-meta .byline::after{display:none}
  html[data-theme] body #content{padding:18px 0 40px!important}
  html[data-theme] body #content>.container,html[data-theme] body .breadcrumb-wrapper>.container,html[data-theme] body .recommended-post>.container,html[data-theme] body #colophon .container{width:calc(100% - 32px)!important}
  html[data-theme] body.single #main>article>.holder,html[data-theme] body.page #main>article>.holder{padding:20px 18px 24px!important;border-radius:18px}
  html[data-theme] body.single .entry-content,html[data-theme] body.page .entry-content{font-size:16px;line-height:1.8}
  html[data-theme] body.single .entry-content>p:first-child{font-size:17px}
  html[data-theme] body .entry-content h2{margin-top:2em}
  html[data-theme] body .post-entry-header{margin-bottom:18px!important}
  html[data-theme] body:not(.single):not(.page) #main>article>.holder{grid-template-columns:minmax(0,1fr) auto;padding:18px!important}
  html[data-theme] body .recommended-post{padding-bottom:40px!important}
  .xt-contact-grid{grid-template-columns:minmax(0,1fr)}
  html[data-theme] body .xt-listhead h1{font-size:28px}
}

/* ---- print: the document, nothing else ---- */
@media print{
  .xt-header,.xt-toc,.xt-contact-card button,html[data-theme] body #secondary,html[data-theme] body nav.navigation,html[data-theme] body .recommended-post,html[data-theme] body .comments-area,html[data-theme] body .back-to-top,html[data-theme] body .breadcrumb-wrapper,html[data-theme] body .xt-anchor,html[data-theme] body .search-form{display:none!important}
  html[data-theme],html[data-theme] body,html[data-theme] body #page,html[data-theme] body .site-content{background:#fff!important;color:#000!important}
  html[data-theme] body.hassidebar #content>.container{display:block}
  html[data-theme] body #primary,html[data-theme] body:not(.hassidebar) #primary{max-width:none!important}
  html[data-theme] body.single #main>article>.holder,html[data-theme] body.page #main>article>.holder{border:0!important;box-shadow:none!important;padding:0!important;background:none!important}
  html[data-theme] body .entry-content,html[data-theme] body .entry-content p,html[data-theme] body .entry-content li,html[data-theme] body .entry-content td,html[data-theme] body .post-entry-header .entry-title,html[data-theme] body .entry-content h1,html[data-theme] body .entry-content h2,html[data-theme] body .entry-content h3{color:#000!important;max-width:none!important}
  html[data-theme] body .entry-content{font-size:11.5pt;line-height:1.6}
  html[data-theme] body .entry-content h2,html[data-theme] body .entry-content h3{break-after:avoid}
  html[data-theme] body .entry-content p,html[data-theme] body .entry-content li{orphans:3;widows:3}
  html[data-theme] body .entry-content a{color:#000!important;text-decoration:underline}
  html[data-theme] body .entry-content a[href^="http"]:not([href*="#"])::after{content:" (" attr(href) ")";font-size:.82em;word-break:break-all}
  html[data-theme] body #colophon{background:none!important;border-top:1px solid #999!important;color:#000!important}
  html[data-theme] body #colophon *{color:#000!important}
}

/* v9 round 2 */
html[data-theme] body:not(.single):not(.page) #main>article .entry-content{max-width:none!important;width:auto!important}
html[data-theme] body:is(.search,.archive):not(.single):not(.page) #main>article .entry-footer,html[data-theme] body:is(.search,.archive):not(.single):not(.page) #main>article .entry-footer .posted-on{text-align:left!important;float:none!important}
html[data-theme] body:is(.search,.archive) #main>article .posted-on a{font-size:13px;font-weight:500;color:var(--xt-muted)!important}
html[data-theme] body.search .search-result-page-header .search-form .search-field{height:52px!important}
html[data-theme] body .search-form .search-field{height:44px}
html[data-theme] body .search-form .search-submit,html[data-theme] body input.search-submit{height:44px!important;line-height:1!important}
html[data-theme] body.search .search-result-page-header .search-form .search-submit{height:52px!important}
html[data-theme] body .search-form{margin:0!important}
html[data-theme] body.search .search-result-page-header .search-form{max-width:100%}

html[data-theme] body:not(.hassidebar) #crumbs{max-width:880px;margin-inline:auto}
html[data-theme] body.xt-contact .post-entry-header .meta-info{display:none}
html[data-theme] body.xt-contact.single #main>article>.holder{padding:clamp(18px,3vw,30px)!important}
html[data-theme] body.xt-contact .entry-content{padding:0;margin:0}
.xt-contact-card:has(a[href^="mailto:"]){grid-column:1/-1}
html[data-theme] body #secondary .search-form .search-field{padding:8px 14px!important;font-size:14.5px!important}
html[data-theme] body #secondary .search-form .search-submit{padding:8px 16px!important}

html[data-theme] body .page-header .pate-title,html[data-theme] body .page-header h1{margin:0 0 4px!important;font-size:clamp(28px,4vw,40px)!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.025em;color:var(--xt-ink)!important;text-align:left!important}
html[data-theme] body .page-header .label{display:block;margin:0 0 8px;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--xt-muted)}
html[data-theme] body .search-per-page-count{font-size:13.5px;color:var(--xt-muted)!important}
html[data-theme] body.xt-contact .entry-footer{display:none}
