/* ═══════════════════════════════════════════════════════════════
   Amber Phosphor — custom design system for 编译日志 | The Build Log
   Loaded after all theme CSS (see themes/terminal head.html).
   Design notes: development_notes/2026-07-10-amber-phosphor-redesign.md
   ═══════════════════════════════════════════════════════════════ */

:root {
  --background: #100e09;
  --foreground: #efe6d5;
  --accent: #ffd97a;

  --phos-panel: #14110b;
  --phos-border: #3a3123;
  --phos-line: #2c2517;
  --phos-muted: #a89877;
  --phos-dim: #6f6347;
  --phos-faint: #8a7c5e;
  --phos-green: #7ba05b;
  --phos-glow: 0 0 12px rgba(255, 217, 122, 0.3);
  --phos-glow-soft: 0 0 14px rgba(255, 217, 122, 0.22);
  --phos-glow-text: 0 0 10px rgba(255, 217, 122, 0.45);
  --phos-tint: rgba(238, 195, 94, 0.07);
  --phos-hover: rgba(238, 195, 94, 0.05);
  --phos-shadow: 0 0 40px rgba(238, 195, 94, 0.06);
  --phos-selection: rgba(255, 217, 122, 0.25);
  --phos-overlay: rgba(5, 4, 2, 0.7);
}

/* Warm Paper light theme — toggled via the [dark]/[light] button in the
   terminal title bar; persisted in localStorage, default is dark. */
:root[data-theme="light"] {
  --background: #ece3d0;
  --foreground: #3c3426;
  --accent: #9c6f10;

  --phos-panel: #f4ede0;
  --phos-border: #cbbc9d;
  --phos-line: #ddd0b8;
  --phos-muted: #6b5f47;
  --phos-dim: #a2947a;
  --phos-faint: #8d7f63;
  --phos-green: #5c7d3c;
  --phos-glow: none;
  --phos-glow-soft: none;
  --phos-glow-text: none;
  --phos-tint: rgba(156, 111, 16, 0.10);
  --phos-hover: rgba(156, 111, 16, 0.07);
  --phos-shadow: 0 2px 24px rgba(120, 95, 40, 0.18);
  --phos-selection: rgba(156, 111, 16, 0.18);
  --phos-overlay: rgba(60, 50, 30, 0.35);
}

/* ── base ── */

body {
  font-family: "Roboto Mono", "Fira Code", Monaco, Consolas, monospace;
  font-weight: 300;
  background-color: var(--background);
  background-image: radial-gradient(ellipse at 50% -10%, var(--phos-tint), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6, b, strong, th {
  font-weight: 500;
}

::selection {
  background: var(--phos-selection);
}

a {
  color: var(--accent);
}

a:hover {
  text-shadow: var(--phos-glow-text);
}

hr {
  border: none;
  background: var(--phos-line);
  height: 1px;
}

.container {
  border-right: none;
}

/* ── terminal window header ── */

.term-window {
  border: 1px solid var(--phos-border);
  border-radius: 10px;
  background: var(--phos-panel);
  box-shadow: var(--phos-shadow);
  margin-top: 8px;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--phos-line);
}

.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--phos-border);
}

.term-dot--r { background: #d3654f; }
.term-dot--y { background: #eec35e; }
.term-dot--g { background: var(--phos-green); }

.term-bar__title {
  color: var(--phos-faint);
  font-size: 0.72rem;
  margin-left: 10px;
}

.theme-toggle {
  margin-left: auto;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--phos-dim);
  background: transparent;
  border: 1px solid var(--phos-border);
  border-radius: 5px;
  padding: 2px 9px;
  cursor: pointer;
  transition: color 0.15s linear, border-color 0.15s linear;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
  text-shadow: none;
}

.term-body {
  padding: 22px 26px 20px;
}

/* logo: yellow block → glowing prompt line with blinking cursor */
.header__logo::after {
  display: none;
}

.logo {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  font-size: 1.15rem;
  padding: 0;
  text-shadow: var(--phos-glow);
}

.logo::before {
  content: "$\00a0";
  color: var(--phos-green);
  text-shadow: none;
}

.logo::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 1.05em;
  margin-left: 8px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: phos-blink 1.1s steps(1) infinite;
}

@keyframes phos-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logo::after { animation: none; }
}

/* nav links: ./lowercase with green prefix */
.navigation-menu {
  margin: 18px 1px 0;
}

.navigation-menu__inner > li > a {
  color: var(--foreground);
  text-decoration: none;
  text-transform: lowercase;
  font-size: 0.9rem;
}

.navigation-menu__inner > li > a::before {
  content: "./";
  color: var(--phos-green);
}

.navigation-menu__inner > li > a:hover {
  color: var(--accent);
}

.menu--mobile .menu__trigger {
  border-width: 1px;
  font-size: 0.85rem;
}

.menu__dropdown {
  border: 1px solid var(--phos-border);
  background: var(--phos-panel);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  min-width: 150px;
}

.menu__dropdown a {
  text-decoration: none;
  white-space: nowrap;
}

/* ── headings ── */

h1, h2, h3 {
  color: var(--accent);
  text-shadow: var(--phos-glow-soft);
}

.post-content h2::before {
  content: "❯ ";
  color: var(--phos-green);
  text-shadow: none;
}

/* homepage section headers: small-caps label + hairline to the edge */
.index-content h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  text-shadow: none;
  margin: 52px 0 14px;
}

.index-content h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--phos-line);
}

/* ── posts (single + list) ── */

/* article pages: match the homepage type scale (theme default is 16px
   body / 23px title, which reads bulky next to the compact homepage) */
.post {
  font-size: 0.9rem;
}

.post-content {
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1rem;
}

.post-content h3 {
  font-size: 0.95rem;
}

.post-title,
.post-title a {
  color: var(--accent);
  text-decoration: none;
  text-shadow: var(--phos-glow);
  font-weight: 500;
  font-size: 1.1rem;
}

.post-title {
  border-bottom: 1px solid var(--phos-line);
  padding-bottom: 18px;
}

.post-title::after {
  display: none;
}

.post .post-title::before,
.posts .post-title::before {
  content: "$\00a0";
  color: var(--phos-green);
  text-shadow: none;
}

/* index-style pages (Letters, Podcasts): title matches the homepage
   small-caps section labels instead of the $-prefixed article title */
.post.index-page .post-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  text-shadow: none;
  border-bottom: none;
  padding-bottom: 0;
}

.post.index-page .post-title::before {
  content: none;
}

.post.index-page .post-title::after {
  content: "";
  display: block;
  position: static;
  flex: 1;
  height: 1px;
  border: none;
  background: var(--phos-line);
}

.post.index-page .post-title a {
  text-shadow: none;
}

/* sub-sections inside index pages (e.g. "The Build Log", the foldable
   "土汪遛弯儿"): muted comment-style labels, subordinate to the page title */
.post.index-page .post-content h2,
.post.index-page .post-content summary {
  color: var(--phos-muted);
  font-size: 0.85rem;
  font-weight: 300;
  text-shadow: none;
  margin: 40px 0 12px;
}

.post.index-page .post-content h2::before,
.post.index-page .post-content summary::before {
  content: "// ";
  color: var(--phos-dim);
}

.post.index-page .post-content summary {
  cursor: pointer;
  list-style: none;
}

.post.index-page .post-content summary::-webkit-details-marker {
  display: none;
}

.post.index-page .post-content summary::after {
  content: "\00a0[+]";
  color: var(--phos-green);
}

.post.index-page .post-content details[open] summary::after {
  content: "\00a0[-]";
}

/* images: theme frames them in an 8px accent border — soften */
img {
  border: 1px solid var(--phos-border);
  border-radius: 8px;
  padding: 0;
}

/* letter images synced from Substack (hosted locally on Cloudflare Pages) */
figure.letter-image {
  margin: 25px 0;
}

figure.letter-image img {
  margin: 0 auto;
}

figure figcaption,
figure.letter-image figcaption {
  background: transparent;
  color: var(--phos-dim);
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
}

.post-meta,
.post-date,
.post-author,
.post-reading-time {
  color: var(--phos-dim);
  font-size: 0.8rem;
}

.post-tags,
.post-tags a {
  color: var(--phos-faint);
  font-size: 0.85rem;
}

blockquote {
  border: none;
  border-left: 2px solid var(--phos-green);
  margin: 25px 0;
  padding: 4px 0 4px 20px;
  color: var(--phos-muted);
  font-style: italic;
}

/* the theme prepends a floating ">" glyph — remove it */
blockquote::before {
  content: none;
}

/* code */
code {
  background: var(--phos-panel);
  border: 1px solid var(--phos-line);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--accent);
  font-weight: 300;
}

pre {
  background: var(--phos-panel);
  border: 1px solid var(--phos-line);
  border-radius: 8px;
}

pre code {
  background: transparent;
  border: none;
  color: inherit;
}

/* ── content tables → prompt rows ──
   Homepage preview tables and the letters index are markdown/HTML
   tables in content files (with their own inline <style> borders);
   the `body` prefix out-specifies those rules. */

body table.preview-table:not(:has(iframe)),
body table.letters-table {
  display: block;
  width: 100%;
  border: none;
  border-collapse: collapse;
}

body table.preview-table:not(:has(iframe)) tbody,
body table.letters-table tbody,
body table.preview-table:not(:has(iframe)) tr,
body table.letters-table tr {
  display: block;
}

body table.preview-table:not(:has(iframe)) td,
body table.letters-table td {
  display: block;
  width: 100% !important;
  border: none;
  border-left: 2px solid var(--phos-line);
  padding: 13px 16px;
  margin: 6px 0;
  color: var(--phos-faint);
  font-size: 0.85rem;
  transition: border-color 0.15s linear, background 0.15s linear;
}

body table.preview-table:not(:has(iframe)) td:hover,
body table.letters-table td:hover {
  border-left-color: var(--accent);
  background: var(--phos-hover);
}

body table.preview-table:not(:has(iframe)) td:empty,
body table.letters-table td:empty {
  display: none;
}

body table.preview-table:not(:has(iframe)) td a,
body table.letters-table td a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.95rem;
}

body table.preview-table:not(:has(iframe)) td:hover a,
body table.letters-table td:hover a {
  color: var(--accent);
}

/* ── letters list (section index + homepage preview) ── */

.letters-intro {
  color: var(--phos-faint);
  font-size: 0.8rem;
  margin-bottom: 24px;
}

.letters-intro a {
  color: var(--phos-muted);
}

.letters-list {
  margin: 18px 0 6px;
}

a.letter-row {
  display: block;
  border-left: 2px solid var(--phos-line);
  padding: 13px 16px;
  margin: 6px 0;
  text-decoration: none;
  transition: border-color 0.15s linear, background 0.15s linear;
}

a.letter-row:hover {
  border-left-color: var(--accent);
  background: var(--phos-hover);
  text-shadow: none;
}

a.letter-row[hidden] {
  display: none;
}

.letter-row .lr-title {
  display: block;
  color: var(--foreground);
  font-size: 0.95rem;
  font-weight: 500;
}

.letter-row:hover .lr-title {
  color: var(--accent);
}

.letter-row .lr-desc {
  display: block;
  color: var(--phos-faint);
  font-size: 0.85rem;
  margin-top: 2px;
}

.letters-empty {
  color: var(--phos-dim);
  font-size: 0.8rem;
  padding: 13px 16px;
}

/* tag filter chips */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 4px;
}

.tag-chip {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--phos-muted);
  background: transparent;
  border: 1px solid var(--phos-border);
  border-radius: 6px;
  padding: 3px 12px;
  cursor: pointer;
  transition: all 0.15s linear;
}

.tag-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

.tag-chip.active {
  color: var(--background);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 500;
}

.tag-filter-spacer {
  flex: 1;
}

.tag-chip--lang {
  border-style: dashed;
}

/* "view all" command row appended by the preview_table shortcode */
a.preview-more {
  display: block;
  padding: 13px 16px;
  border-left: 2px solid transparent;
  margin: 6px 0;
  font-size: 0.85rem;
  color: var(--phos-green);
  text-decoration: none;
  transition: border-color 0.15s linear, background 0.15s linear;
}

a.preview-more .cmd {
  color: var(--phos-dim);
  transition: color 0.15s linear;
}

a.preview-more:hover {
  border-left-color: var(--accent);
  background: var(--phos-hover);
}

a.preview-more:hover .cmd {
  color: var(--accent);
}

/* embed tables (Spotify iframes): keep the 2-col grid, strip harsh borders */
body table.podcast-table,
body table.podcast-table td,
body table.preview-table:has(iframe),
body table.preview-table:has(iframe) td {
  border: none;
  padding: 6px;
}

/* homepage social rows: "Listen:" / "Connect:" as quiet lowercase labels */
.social-row p,
.social-row p strong {
  color: var(--phos-dim);
  font-weight: 300;
  font-size: 0.8rem;
  text-transform: lowercase;
}

.social-row p strong::before {
  content: "$\00a0";
  color: var(--phos-green);
}

/* ── buttons, read-more, pagination ── */

button,
.button,
a.read-more.button {
  border-width: 1px;
  font-weight: 300;
  border-radius: 6px;
}

button:hover,
.button:hover {
  background: var(--phos-hover);
  text-shadow: var(--phos-glow-text);
}

.pagination .button {
  border: 1px solid var(--phos-border);
  background: var(--phos-panel);
}

/* letter prev/next: minimal one-liner under a hairline */
.letter-pagination {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 50px;
  border-top: 1px solid var(--phos-line);
  padding-top: 18px;
}

.letter-pagination a {
  color: var(--phos-dim);
  font-size: 0.75rem;
  line-height: 1.6;
  max-width: 46%;
  text-decoration: none;
  transition: color 0.15s linear;
}

.letter-pagination a:hover {
  color: var(--accent);
  text-shadow: var(--phos-glow-text);
}

.letter-pagination .pg-newer {
  margin-left: auto;
  text-align: right;
}

/* ── search overlay (press "/") ── */

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--phos-overlay);
  backdrop-filter: blur(2px);
}

.search-overlay.show {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 0;
}

.search-panel {
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--phos-border);
  border-radius: 10px;
  background: var(--phos-panel);
  box-shadow: var(--phos-shadow), 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--phos-line);
}

.sd { width: 10px; height: 10px; border-radius: 50%; background: var(--phos-border); }
.sd-r { background: #d3654f; }
.sd-y { background: #eec35e; }
.sd-g { background: var(--phos-green); }

.search-bar-title {
  color: var(--phos-faint);
  font-size: 0.7rem;
  margin-left: 8px;
}

.search-hint {
  margin-left: auto;
  color: var(--phos-dim);
  font-size: 0.65rem;
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--phos-line);
}

.search-prompt { color: var(--phos-green); }

.search-input {
  flex: 1;
  font: inherit;
  font-size: 0.9rem;
  color: var(--foreground);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
}

.search-input::placeholder { color: var(--phos-dim); }

.search-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 6px;
}

.search-empty {
  color: var(--phos-dim);
  font-size: 0.75rem;
  padding: 12px 12px 14px;
}

a.search-result {
  display: block;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  border-radius: 4px;
  text-decoration: none;
}

a.search-result:hover,
a.search-result.sel {
  border-left-color: var(--accent);
  background: var(--phos-hover);
  text-shadow: none;
}

.search-result .sr-title {
  display: block;
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 500;
}

.search-result.sel .sr-title { color: var(--accent); }

.search-result .sr-desc {
  display: block;
  color: var(--phos-faint);
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ── letter table of contents ── */

.letter-toc {
  border: 1px solid var(--phos-line);
  border-radius: 8px;
  background: var(--phos-panel);
  padding: 14px 18px;
  margin: 20px 0 30px;
}

.letter-toc .toc-label {
  color: var(--phos-dim);
  font-size: 0.72rem;
  margin-bottom: 8px;
}

.letter-toc .toc-item {
  display: block;
  color: var(--phos-muted);
  font-size: 0.8rem;
  line-height: 1.9;
  text-decoration: none;
}

.letter-toc .toc-item:hover { color: var(--accent); }

.letter-toc .toc-h3 { padding-left: 18px; }

.letter-toc .toc-item::before {
  content: "❯ ";
  color: var(--phos-green);
  opacity: 0.7;
}

/* ── subscribe CTA (end of letters) ── */

.subscribe-box {
  border: 1px solid var(--phos-border);
  border-radius: 10px;
  background: var(--phos-panel);
  box-shadow: var(--phos-shadow);
  margin-top: 55px;
  overflow: hidden;
}

.subscribe-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--phos-line);
}

.subscribe-bar .term-dot {
  width: 10px;
  height: 10px;
}

.subscribe-bar__title {
  color: var(--phos-faint);
  font-size: 0.7rem;
  margin-left: 8px;
}

.subscribe-body {
  padding: 16px 20px 14px;
}

.subscribe-pitch {
  color: var(--phos-muted);
  font-size: 0.82rem;
  margin: 0 0 12px;
}

.subscribe-pitch .g {
  color: var(--phos-green);
}

.subscribe-form {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--phos-line);
  border-radius: 8px;
  background: var(--background);
  padding: 10px 14px;
}

.subscribe-prompt {
  color: var(--phos-green);
}

.subscribe-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--foreground);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
}

.subscribe-input::placeholder {
  color: var(--phos-dim);
}

.subscribe-input:focus,
.subscribe-input:focus-visible,
.subscribe-input:active {
  outline: none;
  border: none;
  box-shadow: none;
}

.subscribe-btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--phos-border);
  border-radius: 6px;
  padding: 5px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s linear;
}

.subscribe-btn:hover {
  border-color: var(--accent);
  background: var(--phos-hover);
  text-shadow: var(--phos-glow-text);
}

.subscribe-status {
  font-size: 0.8rem;
  color: #d3654f;
  margin: 12px 0 0;
}

.subscribe-status.ok {
  color: var(--phos-green);
}

.subscribe-alt {
  color: var(--phos-dim);
  font-size: 0.72rem;
  margin: 10px 0 0;
}

.subscribe-alt a {
  color: var(--phos-muted);
}

.subscribe-alt a:hover {
  color: var(--accent);
}

/* ── related letters ── */

.related-letters {
  margin-top: 40px;
}

.related-label {
  color: var(--phos-dim);
  font-size: 0.75rem;
  margin-bottom: 8px;
}

/* ── letters archive year dividers ── */

.year-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 8px;
}

.year-divider:first-child {
  margin-top: 20px;
}

.yd-txt {
  color: var(--phos-dim);
  font-size: 0.75rem;
}

.yd-line {
  flex: 1;
  height: 1px;
  background: var(--phos-line);
}

/* ── TIL log ── */

.til-cmd {
  color: var(--foreground);
  font-size: 0.85rem;
  margin: 30px 0 6px;
}

.til-cmd .cmd-dim { color: var(--phos-green); }

.til-entry {
  border-left: 2px solid var(--phos-line);
  padding: 14px 18px;
  margin: 10px 0;
}

.til-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.72rem;
}

.til-date { color: var(--phos-green); }
.til-tag { color: var(--phos-dim); }

.til-anchor {
  margin-left: auto;
  color: var(--phos-dim);
  text-decoration: none;
}

.til-anchor:hover { color: var(--accent); }

.til-title {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 6px;
}

.til-body {
  color: var(--phos-muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

.til-body p { margin: 10px 0 0; }

/* ── 404 page ── */

.e404 {
  padding: 40px 0 80px;
  font-size: 0.9rem;
}

.e404 .g { color: var(--phos-green); }
.e404 .dim { color: var(--phos-dim); }
.e404-cmd { color: var(--foreground); }
.e404-err { color: #d3654f; }
.e404-hint { font-size: 0.8rem; margin-top: 30px; }

.e404-nav {
  display: flex;
  gap: 24px;
  margin: 14px 0;
}

.e404-nav a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.9rem;
}

.e404-nav a::before { content: ""; }
.e404-nav a:hover { color: var(--accent); }

/* ── homepage terminal cli easter egg ── */

.term-window { cursor: text; }
.term-window a, .term-window .menu__trigger { cursor: pointer; }

.term-cli { margin-top: 16px; border-top: 1px solid var(--phos-line); padding-top: 12px; }

.term-cli-output:empty { display: none; }

.term-cli-output {
  margin: 0 0 6px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--phos-muted);
  font-size: 0.78rem;
  line-height: 1.7;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.term-cli-row { display: flex; align-items: center; gap: 8px; }
.term-cli-prompt { color: var(--phos-green); }

.term-cli-input {
  flex: 1;
  font: inherit;
  font-size: 0.85rem;
  color: var(--foreground);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
}

.term-cli-input::placeholder { color: var(--phos-dim); }

.term-cli-input:focus,
.term-cli-input:focus-visible,
.term-cli-input:active {
  outline: none;
  border: none;
  box-shadow: none;
}

pre.term-cli-output {
  background: transparent;
  border: none;
  border-radius: 0;
}

/* CRT scanlines (toggled via `crt` command) */
:root.crt body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}

/* ── footer ── */

.footer-hint {
  color: var(--phos-dim);
  font-size: 0.7rem;
  margin-left: 14px;
}

.footer {
  color: var(--phos-dim);
}

.footer .copyright,
.footer .copyright span {
  color: var(--phos-dim) !important;
  font-size: 0.75rem;
}

.footer__inner {
  border-top: 1px solid var(--phos-line);
  padding-top: 18px;
}
