/* Hint above the input line (index only) */
.terminal-footer-hint {
  margin: 0;
  padding: 14px 20px 10px;
  box-sizing: border-box;
  line-height: 1.3em;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #b8c1ec;
}

.terminal-footer-hint .command {
  text-decoration: none;
}

@media (max-width: 700px) {
  .terminal-footer-hint {
    padding: 12px 2vw 8px;
    font-size: 0.95em;
  }
}

/* Projects in nav / home buttons: hidden until that page returns — keep markup, remove this rule to show. */
.site-hide-projects {
  display: none !important;
}

/* CHRIS banner: vertical orange → white, same layout as unstyled pre text */
/* Global * { letter-spacing: 0.05em } widens monospace art; mobile .ascii-art-title uses pre-wrap + break-word and clips art. */
#banner-pane .ascii-art-title {
    letter-spacing: normal;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

#banner-pane .ascii-art-title .ascii-art-gradient {
    letter-spacing: normal;
}

.ascii-art-title .ascii-art-gradient {
    display: block;
    white-space: pre;
    background-image: linear-gradient(180deg, #f6c177 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .ascii-art-title .ascii-art-gradient {
        color: #e0e7ef;
        background-image: none;
        -webkit-text-fill-color: unset;
    }
}

/* Theme Switcher Floating Panel - Collapsible */
#theme-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  align-items: flex-end;
  /* transition: all 0.05s fade-in; */
}

.theme-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px #0008;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  opacity: 1;
  pointer-events: auto;
}

.theme-box:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px #000a;
}

.theme-box span {
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  background: rgba(30,30,30,0.97);
  color: #fff;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px #0007;
  letter-spacing: 0.04em;
  transform: translateY(0%) translateX(0);
}

.theme-box:hover span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Hide all but the active theme unless hovered */
#theme-switcher:not(:hover) .theme-box {
  display: none;
}
#theme-switcher .theme-box.active {
  display: flex;
}

/* When hovered, show all theme boxes */
#theme-switcher:hover .theme-box {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.6s fade-in;
  /* transform: translateY(-50%) translateX(0); */
}

/*
 * Mobile: strip load animations without breaking layout or the ASCII banner gradient.
 * - Theme typing uses width 0→100% on `p` only — reset those with width: auto.
 * - Do NOT set width on `.cursor` (must stay 10px) or on `.ascii-art-gradient` (breaks clip-text in WebKit).
 * - `pre` / banner inner spans are not animated by themes; leave them untouched.
 */
@media (max-width: 700px) {
  #terminal p {
    animation: none !important;
    animation-delay: 0s !important;
    opacity: 1 !important;
    width: auto !important;
  }

  #liner,
  #command .cursor,
  #terminal .prompt {
    animation: none !important;
    animation-delay: 0s !important;
    opacity: 1 !important;
  }
}