/* Add tags to the original homepage without replacing its layout or palette. */
.home-entry-content{min-width:0}
.entry-top-tags{display:flex;flex-wrap:wrap;gap:5px 8px;margin-bottom:7px}
.entry-top-tags .tag{font:11px/1.5 var(--sans);padding:1px 6px;background:var(--accent-dim);color:var(--accent);border:0;border-radius:4px}
.home-collection .note-chips{margin-bottom:18px}
.notebook-series-list { display: grid; gap: 12px; }
.notebook-series { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text); text-decoration: none; }
.notebook-series strong { grid-column: 1; font-size: 17px; font-weight: 600; }
.notebook-series > span:not(.directory-arrow) { grid-column: 1; color: var(--text-dim); font-size: 13px; }
.notebook-series .directory-arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); font-size: 20px; }
.notebook-series:is(:hover, :focus-visible) { border-color: var(--accent); }
.notebook-series:is(:hover, :focus-visible) strong { color: var(--accent); }
#hero-term { padding: clamp(16px, 4vw, 26px); }
#hero-term .coffee-welcome { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; margin: 5px 0 15px; }
#hero-term .hello { font: 600 clamp(17px, 4.5vw, 23px)/1.5 var(--sans); color: var(--text); margin: 0 0 5px; }
#hero-term .intro { font: 15px/1.6 var(--sans); color: var(--text-dim); margin: 0; word-break: normal; }
#hero-term .coffee { font: bold clamp(7.6px, 2.25vw, 11px)/1.08 'Courier New', monospace; color: var(--text-dim); margin: 0; padding: 0; white-space: pre; user-select: none; background: none; border: 0; }
.coffee .rim { color: var(--accent); }
.coffee .steam { display: block; color: var(--text-faint); animation: coffee-drift 3.8s ease-in-out infinite alternate; transform-origin: 48% 100%; }
@keyframes coffee-drift { from { transform: skewX(-9deg) translateY(1px); opacity: .68; } to { transform: skewX(10deg) translateY(-2px); opacity: 1; } }
#hero-term:focus-within .steam { animation-play-state: paused; }
#hero-term .input-hint { font: 12px/1.5 var(--sans); margin: 0 0 4px; }
#term-input-line { min-height: 32px; align-items: center; }
#term-input-line:focus-within { box-shadow: 0 1px var(--accent); }
@media(max-width:600px) { #term-input { font-size: 16px; } }
@media(prefers-reduced-motion:reduce) { .coffee .steam { animation: none; } }
.hero-term-body{white-space:normal}.hero-term-body p{white-space:pre-wrap;margin-bottom:6px}.hero-term-body .output{margin-bottom:12px}
.article-tags{margin:0 0 14px}
.collection-search{display:block;color:var(--text-dim);font:13px var(--sans);margin:20px 0}
.collection-search input{display:block;width:100%;padding:11px 14px;margin-top:8px;background:var(--input-bg);color:var(--text);border:1px solid var(--border);border-radius:8px;font:14px var(--sans)}
@media(max-width:600px){.home-entry-content{grid-column:1;grid-row:2}.entry-top-tags .tag{font-size:10px}.home-collection .note-chips{gap:6px}.note-chip{font-size:11px}}
/* Preserve the actual old site navigation and footer inside the monitor. */
html.in-computer{--sans:"Noto Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;scroll-padding-top:84px}
.in-computer .nav{display:flex!important}.in-computer .footer{display:flex!important}
.in-computer .article>p:has(.back-link){display:block}.in-computer .back-link{display:inline!important}
.in-computer .article{padding-top:40px}
.in-computer .article-body h2,.in-computer .article-body h3{scroll-margin-top:86px}
.in-computer .toc{scroll-margin-top:78px}
@media(min-width:1100px){.in-computer .toc{top:100px;max-height:calc(100vh - 130px)}.in-computer .toc-links{max-height:calc(100vh - 180px)}}

html[data-computer-page="blog-home.html"] body,html[data-computer-page="posts.html"] body,html[data-computer-page="notes.html"] body{background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:56px 56px}
