/* v4 compare: mode toggle + live before/after layers */
.cmp-modes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2, 8px); margin: 0 0 var(--s-3, 12px); }
.cmp-mode { min-height: 44px; min-width: 44px; padding: 0 1.1em; cursor: pointer; font: inherit; color: var(--cream, #fff6e8); background: transparent; }
.cmp-mode[aria-pressed="true"] { background: var(--cyan); color: #04201f; border-color: var(--cyan); }
.cmp-mode:disabled { opacity: .55; cursor: not-allowed; }
.cmp-mode.is-offered:not([aria-pressed="true"]) { box-shadow: var(--glow-cyan, 0 0 14px rgba(62,230,224,.5)); }
.cmp-mode:focus-visible { outline: 3px solid var(--cream, #fff6e8); outline-offset: 2px; }
.cmp-mode-hint { flex-basis: 100%; text-align: center; font-size: .85rem; color: var(--text-dim); }
.cmp-mode-hint[hidden] { display: none; }
html.theme-day .cmp-mode { color: inherit; }
html.theme-day .cmp-mode[aria-pressed="true"] { color: #04201f; }

.cmp-live { display: none; position: absolute; inset: 0; overflow: hidden; box-sizing: border-box; padding: 2.4em 1em 1em; }
.cmp-mode-live .cmp-live { display: flex; flex-direction: column; gap: .7em; }
.cmp-mode-live .mb-wrap, .cmp-mode-live .ma-wrap { display: none; }
.cmp-mode-live .cmp-before { background: #0a1208; }
.cmp-mode-live .cmp-after { background: #fff6e8; }

/* BEFORE: CRT */
.cmp-live-before { font-family: var(--font-mono, ui-monospace, monospace); color: #7dff8a; background: #0a1208;
  border: .55em solid #1c1c1c; box-shadow: inset 0 0 3em rgba(0,0,0,.8); text-shadow: 0 0 6px rgba(125,255,138,.55); }
.cmp-live-before::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }
.clb-bar { display: flex; justify-content: space-between; gap: .6em; border-bottom: 1px solid rgba(125,255,138,.4); padding-bottom: .4em; font-size: .85em; }
.clb-dom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clb-led { color: #ffb000; text-shadow: 0 0 6px rgba(255,176,0,.6); flex: none; }
.clb-title { color: #ffb000; text-shadow: 0 0 6px rgba(255,176,0,.5); font-size: 1.15em; font-weight: 700; text-transform: uppercase; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.clb-h1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.clb-sw { display: flex; flex-wrap: wrap; gap: .4em .8em; font-size: .85em; }
.clb-chip { display: inline-flex; align-items: center; gap: .35em; }
.clb-chip i { width: 1.1em; height: 1.1em; border: 1px solid #7dff8a; display: inline-block; }
.clb-chip b { font-weight: 400; }
.clb-none { color: #ffb000; }
.clb-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; font-size: .9em; }
.clb-notes li { color: #ffb000; overflow: hidden; overflow-wrap: anywhere; }
.clb-notes li::before { content: "! "; }
.clb-cur { animation: clb-blink 1s steps(1) infinite; }
@keyframes clb-blink { 50% { opacity: 0; } }
html.fx-off .clb-cur { animation: none; }
@media (prefers-reduced-motion: reduce) { .clb-cur { animation: none; } }

/* AFTER: mood board homepage */
.cmp-live-after { font-family: var(--font-body, system-ui, sans-serif); }
.cla-nav { display: flex; justify-content: space-between; gap: .6em; border-bottom: 2px solid; padding-bottom: .5em; font-size: .85em; font-weight: 700; }
.cla-dom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cla-links { display: flex; gap: .8em; flex: none; font-weight: 500; }
.cla-hero { display: grid; gap: .8em; justify-items: start; padding: .5em 0; }
.cla-h { font-size: 1.7em; line-height: 1.15; font-family: var(--font-display, inherit); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; max-width: 100%; }
.cla-btn { display: inline-block; padding: .55em 1.1em; border-radius: 999px; font-weight: 700; font-size: .95em; }
.cla-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.cla-card { border: 1px solid; border-radius: .7em; padding: .6em; font-size: .82em; line-height: 1.3; overflow: hidden; overflow-wrap: anywhere; }
.cla-tag { align-self: flex-start; padding: .25em .7em; border-radius: 999px; font: 600 .75em var(--font-mono, monospace); letter-spacing: .06em; text-transform: uppercase; }
.cla-sw { display: flex; gap: .3em; margin-top: auto; }
.cla-sw i { width: 1.4em; height: 1.4em; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); display: inline-block; }
@media (max-width: 520px) {
  .cla-cards { grid-template-columns: 1fr; }
  .cla-card { padding: .45em .6em; }
  .cmp-live { padding-top: 2.8em; }
}
