/* ==========================================================================
   vault by thejojiz — app layer
   Loaded after main.css. Restructures the site into an app-like interface:
   bento home, command palette, reading HUD, ripples, tilt, transitions.
   Every animation is disabled under prefers-reduced-motion (see end of file).
   ========================================================================== */

/* ---- Motion & surface tokens ------------------------------------------- */

:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.42s;
  --r-lg: 1.4rem;
  --r-md: 1rem;
  --glass: blur(18px) saturate(1.6);
  --edge: rgba(255, 255, 255, 0.07);
}
html[data-theme='light'] { --edge: rgba(23, 35, 58, 0.06); }

/* ---- Page enter / view transitions --------------------------------------- */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 0.24s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.34s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px) scale(0.995); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px) scale(0.995); } }

main { animation: page-in 0.5s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

/* ---- Ripple ---------------------------------------------------------------- */

.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--glow-c) 0%, transparent 65%);
  opacity: 0.85;
  transform: scale(0);
  animation: ripple 0.62s var(--ease-out) forwards;
  z-index: 0;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.btn, .chip-filter, .flow-opt, .related-card, .pn, .on-page a, .cmdk-item, .rail a, .qa { position: relative; overflow: hidden; }

/* press feedback everywhere */
.btn:active, .chip-filter:active, .flow-opt:active, .qa:active { transform: scale(0.975) translateY(0); }

/* ---- Magnetic + tilt ---------------------------------------------------------- */

[data-magnetic] { transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform 0.25s var(--ease); }
[data-magnetic]:active { transition: none; }

.topic-card article, .tool-card article, .bento-item {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
}

/* ---- App shell: header ----------------------------------------------------------- */

.site-head { background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-head::after { display: none; }
.head-in {
  margin-top: 0.7rem;
  border-radius: 99px;
  background: var(--surface);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--edge);
  box-shadow: 0 10px 40px -22px rgba(0, 0, 0, 0.7);
  padding: 0.35rem 0.4rem 0.35rem 0.9rem;
  min-height: 3.4rem;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
body.scrolled .head-in { box-shadow: 0 14px 44px -20px rgba(0, 0, 0, 0.8); }
.site-nav a { border-radius: 99px; position: relative; }
.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0.28rem;
  width: 14px; height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--g1), var(--g2));
}

/* search trigger looks like a real input */
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--edge);
  background: var(--surface-2);
  border-radius: 99px;
  padding: 0.42rem 0.5rem 0.42rem 0.85rem;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.search-trigger:hover { border-color: var(--glow-c); color: var(--text); }
.search-trigger svg { width: 1rem; height: 1rem; }
.search-trigger .kbd-hint { margin-left: 0.4rem; }
@media (max-width: 62rem) { .search-trigger .st-label { display: none; } }

/* ---- Hero: bento ------------------------------------------------------------------- */

.hero { padding-top: clamp(2.5rem, 7vw, 5rem); }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.4rem); letter-spacing: -0.03em; }

.hero-badge {
  border-radius: 99px;
  background: var(--surface-2);
  border-color: var(--edge);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bento {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(2rem, 5vw, 3.2rem) 0 0;
  text-align: left;
}
.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--edge);
  background: var(--surface);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text);
  min-height: 8.5rem;
}
.bento-item::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--glow-soft), transparent 70%);
}
.bento-item:hover::after { opacity: 1; }
.bento-item:hover { border-color: var(--glow-c); box-shadow: 0 20px 50px -30px var(--glow-c); }
.bento-span-2 { grid-column: span 2; }
.bento-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: lowercase; color: var(--accent); }
.bento-item h3 { margin: 0.1rem 0 0; font-size: 1.15rem; letter-spacing: -0.01em; }
.bento-item p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.bento-item .go { margin-top: auto; font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent); }
.bento-num { font-family: var(--font-mono); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 60rem) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-span-2 { grid-column: span 2; } }
@media (max-width: 34rem) { .bento { grid-template-columns: 1fr; } .bento-span-2 { grid-column: span 1; } }

/* ---- Category rail ---------------------------------------------------------------- */

.cat-rail {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.8rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-rail .chip-filter { scroll-snap-align: start; white-space: nowrap; flex: none; }

/* ---- Topic cards --------------------------------------------------------------------- */

.topic-card article, .tool-card article {
  border-radius: var(--r-lg);
  border-color: var(--edge);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.topic-card article:hover { box-shadow: 0 26px 60px -34px var(--glow-c); }
.topic-card h3 a::after, .tool-card a::after { border-radius: var(--r-lg); }

/* ---- Reading HUD --------------------------------------------------------------------- */

.hud {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.hud.show { opacity: 1; transform: none; pointer-events: auto; }
.hud button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem; height: 2.9rem;
  border-radius: 50%;
  border: 1px solid var(--edge);
  background: var(--surface-2);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}
.hud button:hover { transform: translateY(-2px); border-color: var(--glow-c); }
.hud svg { width: 1.15rem; height: 1.15rem; }
.ring {
  position: relative;
  width: 2.9rem; height: 2.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--g2) calc(var(--p, 0) * 360deg), transparent 0),
    var(--surface-2);
  border: 1px solid var(--edge);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text);
}
.ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--surface-solid);
}
.ring span { position: relative; }

/* ---- Command palette ------------------------------------------------------------------- */

.cmdk {
  border: none;
  padding: 0;
  width: min(44rem, 94vw);
  margin: 8vh auto auto;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--edge);
  backdrop-filter: blur(24px) saturate(1.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.cmdk::backdrop { background: rgba(6, 10, 20, 0.6); backdrop-filter: blur(6px); }
.cmdk[open] { animation: cmdk-in 0.28s var(--ease-out); }
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-10px) scale(0.985); } }

.cmdk-top { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
.cmdk-top svg { width: 1.15rem; height: 1.15rem; color: var(--muted); flex: none; }
.cmdk-top input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  padding: 0.3rem 0;
}
.cmdk-top input:focus-visible { outline: none; }
.cmdk-list { list-style: none; margin: 0; padding: 0.4rem; max-height: 52vh; overflow-y: auto; }
.cmdk-list li { margin: 0; }
.cmdk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.cmdk-list li[aria-selected='true'] .cmdk-item { background: var(--accent-soft); border-color: var(--glow-c); }
.cmdk-item:hover { background: var(--accent-soft); }
.cmdk-c { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.cmdk-item mark { background: var(--mark); color: inherit; border-radius: 0.2em; }
.cmdk-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}
.cmdk-foot kbd {
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 0.3rem;
  padding: 0.05rem 0.35rem;
  margin: 0 0.15rem;
}

/* ---- Shortcuts dialog --------------------------------------------------------------------- */

.shortcuts {
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: 0;
  width: min(34rem, 92vw);
  background: var(--surface-2);
  color: var(--text);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
}
.shortcuts::backdrop { background: rgba(6, 10, 20, 0.55); }
.shortcuts-in { padding: 1.3rem 1.5rem 1.5rem; }
.shortcuts h2 { font-size: 1.1rem; }
.shortcuts dl { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1.2rem; margin: 0 0 1rem; align-items: baseline; }
.shortcuts dt { font-family: var(--font-mono); font-size: 0.8rem; }
.shortcuts dt kbd {
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  padding: 0.1rem 0.4rem;
  background: var(--surface);
}
.shortcuts dd { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---- Toasts ------------------------------------------------------------------------------------ */

.toast-host {
  position: fixed;
  left: 50%;
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}
.toast {
  border: 1px solid var(--edge);
  background: var(--surface-2);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  color: var(--text);
  padding: 0.6rem 1.1rem;
  border-radius: 99px;
  font-size: 0.9rem;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.in { opacity: 1; transform: none; }
.toast-warn { border-color: var(--warn-line); }

/* ---- Guided reader: section rail ------------------------------------------------------------------ */

.reader { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 68rem) {
  .article-wrap.reader-wrap { max-width: 70rem; }
  .reader { grid-template-columns: 13.5rem 1fr; }
  .rail-col { position: sticky; top: 6.5rem; align-self: start; max-height: calc(100dvh - 8rem); overflow-y: auto; }
}
@media (max-width: 67.99rem) { .rail-col { display: none; } }

.rail { border-left: 1px solid var(--line); padding-left: 0.9rem; }
.rail-tag { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; color: var(--muted); display: block; margin-bottom: 0.6rem; }
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.rail a {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.83rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -0.95rem;
  padding-left: 0.85rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.rail a:hover { color: var(--text); }
.rail a.active { color: var(--text); border-left-color: var(--g2); font-weight: 620; }
.rail a i { font-family: var(--font-mono); font-style: normal; font-size: 0.72rem; color: var(--accent); }

/* ---- Sections as cards ------------------------------------------------------------------------------ */

.section {
  border-radius: var(--r-md);
  border-color: var(--edge);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.section[open] { box-shadow: 0 20px 50px -38px var(--glow-c); }
.section summary { transition: background-color 0.2s ease; }

/* ---- Next-step deck --------------------------------------------------------------------------------- */

.deck { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1rem; }
.deck a {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--edge);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.deck a:hover { transform: translateY(-3px); border-color: var(--glow-c); box-shadow: 0 24px 50px -34px var(--glow-c); }
.deck .d-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.13em; color: var(--accent); }
.deck strong { font-size: 1.02rem; }
.deck p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* ---- Quick actions row -------------------------------------------------------------------------------- */

.qa-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 0; }
.qa {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  border: 1px solid var(--edge);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
.qa:hover { border-color: var(--glow-c); transform: translateY(-1px); }
.qa svg { width: 0.95rem; height: 0.95rem; }

/* ---- Reduced motion: stop everything ------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  main, .cmdk[open] { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .ripple { display: none !important; }
  .topic-card article, .tool-card article, .bento-item { transform: none !important; }
  [data-magnetic] { transform: none !important; }
}

/* ==========================================================================
   Editorial layer — sharp geometry, oversized display type, lime accent.
   Matches the reference design language and pushes it further.
   ========================================================================== */

/* ---- Type: huge, tightly tracked display headlines ---------------------- */

h1 { letter-spacing: -0.045em; font-weight: 680; }
h2 { letter-spacing: -0.03em; font-weight: 660; }
.hero h1 {
  font-size: clamp(2.6rem, 1rem + 7.2vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.hero .lead { font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.28rem); max-width: 44rem; }
.topic-head h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem); line-height: 1.02; }
.section-head h2 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem); line-height: 1.05; }

/* ---- Shape: squared geometry replaces the pill/rounded language ---------- */

:root { --r-lg: 4px; --r-md: 3px; }

.head-in { border-radius: 6px; }
.btn, .btn-lg, .btn-small, .card, .section, .callout, .note-strip,
.topic-card article, .tool-card article, .bento-item, .related-card, .pn,
.flow, .flow-opt, .flow-result, .worked, .keypoints, .cmdk, .shortcuts,
.deck a, input[type='search'], input[type='text'] { border-radius: 4px; }
.topic-card h3 a::after, .tool-card a::after { border-radius: 4px; }
.chip, .chip-filter, .qa, .on-page a, .search-trigger, .toast, .hero-badge { border-radius: 3px; }
.hud button, .ring { border-radius: 4px; }
.btn-primary { clip-path: none; border-radius: 4px; }

/* ---- Accent: lime as the primary action colour ---------------------------- */

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 680;
  border: 1px solid var(--accent);
}
.btn-primary:hover { filter: brightness(1.06) drop-shadow(0 0 22px var(--glow-c)); }
.btn-primary .kbd-hint { color: var(--accent-ink); border-color: rgba(10, 13, 8, 0.35); opacity: 0.8; }
.btn-primary svg { color: var(--accent-ink); }

.chip-filter.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-filter.is-active .chip-count { color: rgba(10, 13, 8, 0.7); }

.grad {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--accent);
  animation: none;
}
.s-num { -webkit-text-fill-color: var(--accent); background: none; color: var(--accent); }
.bento-num { background: none; -webkit-text-fill-color: var(--accent); color: var(--accent); }
.four-r .r-num { background: none; -webkit-text-fill-color: var(--accent); color: var(--accent); }
.keypoints { border-image: none; border-left: 2px solid var(--accent); }
.progress-bar { background: var(--accent); }
.site-head::after { background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--accent) 50%, var(--line-strong) 70%, transparent); opacity: 0.6; }
.site-nav a[aria-current='page']::after { background: var(--accent); }
.rail a.active { border-left-color: var(--accent); }
.section[open] { border-left: 2px solid var(--accent); }
.cue { border-left-color: var(--accent); }
.cue-tag { color: var(--accent); }
li::marker { color: var(--accent); }
.aurora i:last-child { background: radial-gradient(circle at 70% 60%, var(--accent), transparent 62%); opacity: 0.5; }

/* worked example: static lime hairline instead of the rainbow spin */
.worked {
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--accent);
  animation: none;
}

/* ---- Editorial section headers ---------------------------------------------- */

.section-head { position: relative; padding-top: 1.6rem; }
.section-head::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3rem; height: 2px;
  background: var(--accent);
}

/* ---- Bento: flat panels with a hairline grid ---------------------------------- */

.bento { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.bento-item { border: 0; border-radius: 0; background: var(--surface-solid); }
.bento-item:hover { background: var(--surface-2); box-shadow: none; border-color: transparent; }
.bento-tag { color: var(--accent); }
.bento-item .go { color: var(--accent); }

/* ---- Topic cards: flat, hairline, lime on hover --------------------------------- */

.topic-card article, .tool-card article {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.topic-card article:hover, .tool-card article:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -40px var(--glow-c);
  transform: translateY(-2px);
}
.card-idx { color: var(--dim); }
.topic-card article:hover .card-idx { color: var(--accent); }

/* ---- Header pill becomes a flat bar --------------------------------------------- */

.head-in {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
}
.search-trigger:hover { border-color: var(--accent); }

/* ---- HUD in the new language ------------------------------------------------------- */

.hud button:hover { border-color: var(--accent); color: var(--accent); }
.ring { background: conic-gradient(var(--accent) calc(var(--p, 0) * 360deg), var(--line) 0), var(--surface-2); }

/* ---- Command palette accents --------------------------------------------------------- */

.cmdk-list li[aria-selected='true'] .cmdk-item { background: var(--accent-soft); border-color: var(--accent); }
.cmdk-item mark { background: var(--mark); }

/* ---- Emergency + danger use the coral ---------------------------------------------------- */

.emergency-strip { border-left-color: var(--danger); }
.emergency-strip strong { color: var(--danger); }
.brand-by .tj-the { color: var(--danger); }

/* ---- Print ---------------------------------------------------------------------------------------------- */

@media print {
  .hud, .cmdk, .shortcuts, .toast-host, .rail-col, .qa-row, .bento, .cat-rail { display: none !important; }
  .reader { grid-template-columns: 1fr; }
}
