/* Base kit — dark utility theme */

.tt-root {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: #cbd5e1;
  background: #060a14;
  -webkit-font-smoothing: antialiased;
}

.tt-link {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.tt-link:hover {
  color: #93c5fd;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.copy-sep {
  color: #334155;
  margin: 0 0.35rem;
  user-select: none;
}

.tt-footer {
  border-top: 1px solid rgba(59, 130, 246, 0.12);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
  background: #0b1120;
}

.foot-links { margin-top: 0.5rem; font-size: 0.75rem; }

.tt-footer__langs { margin-top: 0.75rem; font-size: 0.75rem; }
.tt-footer__langs a {
  color: #64748b;
  text-decoration: none;
  margin: 0 0.35rem;
}
.tt-footer__langs a:hover { color: #60a5fa; }

/* Inner page intro */
.tt-page-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.25rem;
  background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.tt-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.tt-page-hero > div {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 72rem;
  margin: 0 auto;
}

.tt-page-hero h1 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.tt-page-hero__text {
  color: #94a3b8;
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.65;
  font-size: 1.0625rem;
}

.path-crumb {
  background: #0b1120;
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
  padding: 0.65rem 0;
}
.path-crumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}
.path-crumb a:hover { color: #60a5fa; }

/* CTA band */
.cta-band {
  padding: 3.5rem 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, #0f172a, #060a14);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  color: #f1f5f9;
}
.cta-band h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.cta-band p {
  color: #94a3b8;
  margin-bottom: 1.75rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 0.375rem;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-neon:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.55);
}

/* Cards */
.panel-card {
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.panel-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
}

.panel-label {
  color: #60a5fa;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "JetBrains Mono", monospace;
}

.panel-check { color: #38bdf8; font-weight: bold; }

.panel-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  font-family: "JetBrains Mono", monospace;
}

.flow-img {
  border-radius: 0.375rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.panel-code {
  background: #020617;
  color: #7dd3fc;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 0.375rem;
  padding: 1rem;
  font-size: 0.8125rem;
  font-family: "JetBrains Mono", monospace;
  overflow-x: auto;
}

/* Changelog cards */
.block-hd {
  background: #0b1120;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.log-card__hd {
  background: rgba(37, 99, 235, 0.12);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  color: #7dd3fc;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
}

.log-card {
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: #0f172a;
  border-radius: 0.375rem;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.log-card:hover {
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.12);
}

.log-card__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}
@media (min-width: 640px) {
  .log-card__grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem 1.125rem;
  }
  [dir="rtl"] .log-card__grid { flex-direction: row-reverse; }
}
.log-card__visual {
  flex-shrink: 0;
  margin: 0;
  width: 100%;
  max-width: 340px;
}
@media (min-width: 640px) {
  .log-card__visual { width: 40%; max-width: 380px; }
}
.log-card__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  border: none;
}
.log-card__copy { flex: 1; min-width: 0; }
.log-mark { color: #34d399; font-weight: bold; margin-right: 0.35rem; }

.block-support {
  padding: 2.5rem 1.25rem;
  background: #0b1120;
  border-top: 1px solid rgba(59, 130, 246, 0.08);
}

/* Lightbox — hidden until .is-open (see surface-base.css / retro-y2k.css) */
.zoom-hit { cursor: zoom-in; }

/* Accordion */
.help-stack__body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.help-stack__item.open .help-stack-icon { transform: rotate(180deg); }
.help-stack-icon { transition: transform 0.35s ease; }

/* 404 */
.view-err .tt-main--error {
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #060a14;
}

.err-card {
  max-width: 28rem;
  width: 100%;
  text-align: center;
  padding: 2.25rem;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 0.5rem;
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.1);
}
.err-card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
}
.err-card p { color: #94a3b8; line-height: 1.65; margin-bottom: 1.75rem; }
.err-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.err-nav a {
  padding: 0.45rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  background: #0b1120;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 0.25rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.err-nav a:hover {
  color: #7dd3fc;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
}

/* Scroll tt-reveal */
.tt-reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tt-reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .foot-links { direction: rtl; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
