/*
  Design tokens: edit these values to change the site's colors, fonts, and
  common line color in one place instead of hunting through every rule.
*/
:root {
  --ink: #040912;
  --ink-soft: #100d1d;
  --paper: #ebfeff;
  --muted: #9ec7d1;
  --cyan: #7afaff;
  --cyan-dark: #0f7d8a;
  --pink: #ff59f0;
  --yellow: #ffe66d;
  --line: rgba(122, 250, 255, .52);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --mono: "Courier New", Courier, monospace;
}

/* Global defaults make sizing predictable and prevent horizontal overflow. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Base page: layered gradients and scanlines create the retro terminal look. */
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
  font-family: var(--mono);
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 15% 18%, rgba(122, 250, 255, .32), transparent 22rem),
    radial-gradient(circle at 80% 14%, rgba(255, 89, 240, .26), transparent 20rem),
    radial-gradient(circle at 45% 70%, rgba(122, 250, 255, .13), transparent 28rem),
    linear-gradient(180deg, rgba(7, 11, 22, .77), rgba(7, 11, 22, .94)),
    linear-gradient(135deg, #050914 0%, #0a0f1d 26%, #120d23 55%, #090d1a 100%);
  text-shadow: 0 0 12px rgba(122, 250, 255, .18);
}

/* Coming-soon pages use a separate red/purple signal palette. */
.coming-soon-page {
  --cyan: #ff405f;
  --cyan-dark: #8f163e;
  --pink: #c052ff;
  --yellow: #ffb3c1;
  --line: rgba(255, 64, 95, .52);
  background-image:
    radial-gradient(circle at 15% 18%, rgba(255, 64, 95, .3), transparent 22rem),
    radial-gradient(circle at 80% 14%, rgba(192, 82, 255, .28), transparent 20rem),
    radial-gradient(circle at 45% 70%, rgba(255, 64, 95, .12), transparent 28rem),
    linear-gradient(180deg, rgba(23, 5, 18, .77), rgba(19, 4, 17, .94)),
    linear-gradient(135deg, #10030b 0%, #1a0716 26%, #210c25 55%, #10040f 100%);
  text-shadow: 0 0 12px rgba(255, 64, 95, .18);
}


/* The 404 page uses a clear deep-red warning background. */
.error-page {
  background-color: #3a0712;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 55, 82, .34), transparent 24rem),
    linear-gradient(180deg, rgba(58, 7, 18, .82), rgba(30, 3, 10, .96)),
    linear-gradient(135deg, #5a0b1b 0%, #300611 55%, #180209 100%);
}

/* Faint logo watermark behind the content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: url("assets/images/aclab-logo.jpg");
  background-size: 360px;
  background-position: 85% 70%;
  mix-blend-mode: screen;
  filter: grayscale(1) contrast(2.1) saturate(1.8) brightness(1.1);
}

/* CRT-style scanlines and edge shading. This layer never blocks clicks. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,.08) 0,
    rgba(255,255,255,.08) 1px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0) 4px
  );
  opacity: .28;
  mix-blend-mode: screen;
  box-shadow: inset 0 0 30px rgba(0,0,0,.8), inset 0 0 80px rgba(0,0,0,.55);
}

/* Shared element defaults. */
img { display: block; max-width: 100%; }
/* Keep <picture> out of the box tree so images size against their real parent. */
picture { display: contents; }
a { color: inherit; }

/* Layout and shared header/navigation styles. */
.site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(32px, 7vw, 100px); }
.topbar { min-height: 104px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: center; gap: 0 24px; }
.brand { display: inline-flex; align-items: center; min-height: 82px; color: var(--cyan); text-decoration: none; }
.brand-wordmark { display: block; white-space: nowrap; font-family: var(--display); font-size: clamp(18px, 2vw, 22px); line-height: .9; letter-spacing: .04em; text-shadow: 0 0 12px rgba(122, 250, 255, .95), 0 0 24px rgba(255, 89, 240, .7), 4px 4px 0 rgba(255, 89, 240, .75); }
.status-line, .main-nav, .eyebrow, .service-code, .panel-label, .footer { font-size: 11px; letter-spacing: .14em; }
.status-line { justify-self: end; max-width: 100%; color: var(--muted); text-align: right; }
.status-dot { width: 7px; height: 7px; display: inline-block; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 12px var(--cyan); margin-right: 8px; }
.status-divider { color: var(--pink); margin: 0 8px; }
.main-nav { grid-column: 1 / -1; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px 22px; padding: 14px 0; border-top: 1px solid rgba(122, 250, 255, .22); }
.main-nav a, .footer a { text-decoration: none; color: var(--paper); }
.main-nav a:hover, .footer a:hover, .text-link:hover { color: var(--cyan); }
.footer .classified-link { opacity: .38; font-size: 9px; letter-spacing: .12em; }
.footer .classified-link:hover, .footer .classified-link:focus-visible { opacity: 1; color: var(--pink); }
.home-nav-link { display: inline-flex; align-items: center; padding: 7px 9px; border: 1px solid var(--cyan-dark); color: var(--paper) !important; text-decoration: none; box-shadow: 3px 3px 0 var(--cyan-dark); }
.home-nav-link:hover { background: var(--cyan); color: var(--ink) !important; border-color: var(--cyan); }
.game-nav-link, .archive-nav-link, .hardware-nav-link, .pricing-nav-link, .search-nav-link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--cyan-dark); color: var(--cyan) !important; text-decoration: none; }
.game-nav-link { border-color: var(--yellow); color: var(--yellow) !important; box-shadow: 3px 3px 0 var(--cyan-dark); }
.game-nav-link small { color: var(--ink); background: var(--yellow); padding: 1px 4px; font-size: 8px; font-weight: bold; letter-spacing: .08em; line-height: 1.2; text-shadow: none; }
.archive-nav-link, .hardware-nav-link, .pricing-nav-link, .search-nav-link { color: var(--paper) !important; }
.game-nav-link:hover, .archive-nav-link:hover, .hardware-nav-link:hover, .pricing-nav-link:hover, .search-nav-link:hover { background: var(--cyan); color: var(--ink) !important; border-color: var(--cyan); }
/* Typography and home-page hero controls. */
.hero { min-height: 650px; max-width: 820px; align-items: center; padding: 90px 0 105px; }
.eyebrow { color: var(--cyan); margin: 0 0 18px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; letter-spacing: .03em; }
h1 { font-size: clamp(56px, 8vw, 100px); margin-bottom: 28px; color: var(--paper); text-shadow: 0 0 18px rgba(122, 250, 255, .4), 4px 4px 0 rgba(255, 89, 240, .35); }
h1 span { color: var(--cyan); text-shadow: 0 0 16px rgba(122, 250, 255, .8), 0 0 36px rgba(122, 250, 255, .45); }
h2 { font-size: clamp(42px, 5vw, 68px); margin-bottom: 24px; text-shadow: 0 0 14px rgba(122, 250, 255, .18); }
h3 { font-size: 29px; margin-bottom: 14px; color: var(--cyan); text-shadow: 0 0 12px rgba(122, 250, 255, .5); }
.hero-text { max-width: 480px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 12px 17px; border: 1px solid var(--cyan); color: var(--cyan); text-decoration: none; font-size: 12px; letter-spacing: .08em; transition: background .2s, color .2s, transform .2s; }
.button span, .text-link span { font-size: 20px; line-height: 12px; }
.button-primary { background: var(--cyan); color: var(--ink); font-weight: bold; box-shadow: 0 0 0 1px rgba(122, 250, 255, .8), 0 0 18px rgba(122, 250, 255, .8), 0 0 28px rgba(122, 250, 255, .45), 4px 4px 0 var(--pink); }
.button:hover { background: var(--pink); border-color: var(--pink); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 0 0 20px rgba(255, 89, 240, .9), 0 0 28px rgba(255, 89, 240, .6); }
.button-quiet { border-color: rgba(220, 230, 223, .4); color: var(--paper); }
.button-game { border-color: var(--yellow); color: var(--yellow); box-shadow: 4px 4px 0 var(--cyan-dark); }
.terminal-note { width: fit-content; padding: 15px 18px; border-left: 2px solid var(--pink); background: #000; color: var(--muted); font-size: 12px; }
.prompt { color: var(--pink); }
/* Announcement ticker. The animation moves the duplicated text continuously. */
.ticker { overflow: hidden; color: var(--ink); background: var(--cyan); border-top: 1px solid var(--cyan); border-bottom: 1px solid var(--cyan); white-space: nowrap; font-family: var(--display); letter-spacing: .12em; }
.ticker-track { display: inline-flex; width: max-content; padding: 8px 0; animation: ticker 24s linear infinite; }
.ticker-track span { display: inline-block; white-space: nowrap; padding-right: 2rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Home page service cards. */
.services { padding: 120px 0; display: block; }
.section-heading { max-width: 620px; margin-bottom: 48px; }
.section-heading p:last-child, .about p, .contact p { color: var(--muted); }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { display: flex; flex-direction: column; background: #000; border: 1px solid rgba(220, 230, 223, .2); transition: border-color .2s, transform .2s; }
.service-card:hover { border-color: var(--cyan); transform: translateY(-5px); }
.service-image { aspect-ratio: 1; overflow: hidden; border-bottom: 1px solid rgba(94, 244, 230, .35); background: var(--ink); }
.service-image img { width: 100%; height: 100%; object-fit: contain; }
.service-body { padding: 24px; display: flex; flex: 1; flex-direction: column; }
.service-code { color: var(--pink); margin-bottom: 17px; }
.service-body p:not(.service-code) { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.text-link { color: var(--paper); text-decoration: none; font-size: 12px; letter-spacing: .08em; margin-top: auto; }
/* Home page about and contact sections. */
.about { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 100px 0; align-items: center; }
.about-mark { width: min(100%, 360px); justify-self: center; }
.about-mark img { width: 100%; height: auto; border: 1px solid var(--cyan); box-shadow: 7px 7px 0 var(--pink), 0 0 24px rgba(122, 250, 255, .35); }
.spec-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.spec-grid div { border-top: 2px solid var(--cyan); padding: 12px 18px 0 0; min-width: 120px; }
.spec-grid strong { display: block; color: var(--pink); font-size: 24px; }
.spec-grid span { display: block; color: var(--muted); font-size: 11px; }
.contact { padding: 120px 0; align-items: end; }
.contact-panel { border: 1px solid var(--cyan); padding: 30px; box-shadow: 0 0 0 1px rgba(122, 250, 255, .8), 0 0 24px rgba(122, 250, 255, .35), 7px 7px 0 var(--pink); background: #000; }
.panel-label { color: var(--pink); }
.phone { display: block; color: var(--cyan); font-family: var(--display); font-size: clamp(30px, 4vw, 50px); text-decoration: none; line-height: 1; margin: 25px 0 16px; }
.contact-panel p:not(.panel-label) { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.contact-panel .button { display: flex; width: fit-content; }
.contact-panel .button + .button { margin-top: 14px; }
.social-links { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(122, 250, 255, .3); }
.social-links .panel-label { margin-bottom: 14px; }
.social-link-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social-link-list a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 10px; border: 1px solid rgba(220, 230, 223, .4); color: var(--paper); text-decoration: none; font-size: 10px; letter-spacing: .08em; transition: border-color .2s, transform .2s, background .2s; }
.social-link-list a:hover { border-color: var(--cyan); background: #000; transform: translateY(-2px); }
.social-link-list img { width: auto; max-width: 116px; max-height: 30px; object-fit: contain; }
/* Shared footer. */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 24px 0 34px; color: var(--muted); border-top: 1px solid var(--line); }


.coming-soon { min-height: 620px; display: grid; place-items: center; padding: 80px 0; }
.coming-soon-panel { width: min(720px, 100%); padding: clamp(30px, 7vw, 76px); border: 1px solid var(--cyan); background: #000; box-shadow: 8px 8px 0 var(--pink), 0 0 30px rgba(122, 250, 255, .22); text-align: center; }
.coming-soon-panel h1 { margin-bottom: 24px; }
.coming-soon-panel p:not(.eyebrow) { max-width: 520px; margin: 0 auto 28px; color: var(--muted); font-size: 17px; }
.coming-soon-status { display: inline-block; margin-bottom: 24px; padding: 8px 12px; border: 1px solid var(--yellow); color: var(--yellow); font-size: 11px; letter-spacing: .15em; }


/* Service-area note in the contact panel. */
.service-area { color: var(--muted); font-size: 13px; }
/* Phone link in the shared footer, so contact details are on every page. */
.footer-phone { color: var(--cyan); text-decoration: none; }
.footer-phone:hover { color: var(--pink); }

/* Centred button row for the 404 and "coming soon" panels, so those pages
   can offer more than one way onward instead of a single dead end. */
.panel-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Tablet and phone layout: reduce spacing and collapse multi-column content. */
@media (max-width: 800px) {
  .site-shell { width: min(100% - 28px, 600px); }
  .topbar { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0 0; }
  .brand { min-height: 65px; }
  .brand-wordmark { font-size: 17px; }
  .status-line { display: none; }
  .main-nav { grid-column: 1 / -1; justify-content: space-between; gap: 8px; padding: 12px 0; }
  .home-nav-link { padding: 6px 5px; }
  .game-nav-link, .archive-nav-link, .hardware-nav-link, .pricing-nav-link, .search-nav-link { padding: 6px 5px; gap: 4px; }
  .game-nav-link small { font-size: 7px; }
  .hero, .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero { padding: 72px 0 90px; }
  .services { padding: 88px 0; }
  .service-list { grid-template-columns: 1fr; }
  .service-image { aspect-ratio: 1; }
  .about { padding: 80px 0; }
  .about-mark { order: 2; width: min(100%, 300px); min-width: 0; }
  .contact { padding: 88px 0; }
  .coming-soon { min-height: 520px; padding: 58px 0; }
}

/* Narrow-phone adjustments. */
@media (max-width: 480px) {
  /* Impact headings are wider than a small phone at their default minimum size. */
  h1 { font-size: clamp(34px, 11vw, 56px); }
  h2 { font-size: clamp(28px, 9vw, 42px); }
  .phone { font-size: clamp(26px, 9vw, 30px); }
  .coming-soon-panel { padding: 26px 18px; }
}

/* Long unbroken words in display type must never push the page sideways. */
h1, h2, h3, .phone, .brand-wordmark { overflow-wrap: break-word; }

/* Respect visitors who request less animation in their operating system. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .button, .service-card { transition: none; }
}

/* ==================================================================
   Interactive additions (see scripts/site.js)

   These rules style the pieces the shared script adds to each page:
   the skip link, the mobile menu button, the back-to-top control, and
   the archive filter box. All of them reuse the existing --cyan /
   --pink / --yellow tokens, so each page keeps its own palette.
   ================================================================== */

/* Skip link stays hidden until it receives keyboard focus. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border: 1px solid var(--cyan);
  background: var(--ink);
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: .14em;
  text-decoration: none;
  transition: top .18s;
}
.skip-link:focus { top: 12px; }

/* A consistent, high-contrast focus ring for keyboard navigation. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ---- Mobile menu button (hidden on desktop, shown under 800px) ---- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  justify-self: end;
  padding: 9px 14px;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--cyan); color: var(--ink); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

/* ---- Back-to-top control ---- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--cyan);
  background: var(--ink);
  color: var(--cyan);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s, background .2s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--cyan); color: var(--ink); }

/* ---- Archive filter box ---- */
.archive-filter { margin: 0 0 28px; }
.archive-filter-label {
  display: block;
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 11px;
  letter-spacing: .14em;
}
.archive-filter-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .45);
}
.archive-filter-field:focus-within { border-color: var(--cyan); }
.archive-filter-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 15px;
}
.archive-filter-input::placeholder { color: var(--muted); opacity: .75; }
.archive-filter-input:focus { outline: none; }
/* Hide the browser's own clear button; the script provides its own. */
.archive-filter-input::-webkit-search-cancel-button { display: none; }
.archive-filter-clear {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  cursor: pointer;
}
.archive-filter-clear:hover { border-color: var(--pink); color: var(--pink); }
.archive-filter-count {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
}
.archive-filter-empty {
  margin: 8px 0 0;
  padding: 22px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 800px) {
  /* Collapse the nav behind the menu button on small screens. */
  .nav-toggle { display: inline-flex; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }
  .main-nav.is-open a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(122, 250, 255, .16);
  }
  .to-top { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link, .to-top { transition: none; }
}

/* ---- Pricing page ---- */
.pricing-hero { padding: 72px 0 40px; max-width: 760px; }
.pricing-hero h1 { margin-bottom: 20px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 20px; align-items: start; }
.pricing-card { display: flex; flex-direction: column; height: 100%; padding: 28px 24px; background: #000; border: 1px solid rgba(220, 230, 223, .2); transition: border-color .2s, transform .2s; }
.pricing-card:hover { border-color: var(--cyan); transform: translateY(-5px); }
.pricing-card-featured { border-color: var(--cyan); box-shadow: 6px 6px 0 var(--pink); }
.pricing-card h2 { font-size: 30px; margin: 10px 0 18px; }
.pricing-amount { font-family: var(--display); font-size: 58px; line-height: 1; color: var(--cyan); text-shadow: 0 0 16px rgba(122, 250, 255, .45), 3px 3px 0 rgba(255, 89, 240, .5); }
.pricing-unit { margin-top: 8px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.pricing-list { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pricing-list li { padding: 11px 0 11px 20px; position: relative; border-bottom: 1px solid var(--line); font-size: 14px; }
.pricing-list li::before { content: "+"; position: absolute; left: 0; color: var(--pink); }
.pricing-note { margin: 18px 0 24px; color: var(--muted); font-size: 13px; }
/* Pushes every card's button to the bottom so they line up across the row. */
.pricing-card .button { margin-top: auto; align-self: flex-start; }

.pricing-faq { padding: 80px 0 40px; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 34px; }
.faq-item h3 { font-size: 20px; margin-bottom: 8px; color: var(--cyan); }
.faq-item p { color: var(--muted); font-size: 14px; }

@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .pricing-hero { padding: 56px 0 32px; }
  .pricing-faq { padding: 64px 0 32px; }
}

/* Price line on the home page service cards. */
.service-price { margin-top: auto; padding-top: 14px; color: var(--cyan); font-size: 13px; letter-spacing: .08em; }
.text-link-inline { color: var(--cyan); }

/* ---- Search page ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.search-page { padding: 72px 0 90px; }
.search-page .hero-text { max-width: 640px; }
.search-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.search-input { flex: 1 1 280px; min-width: 0; padding: 14px 16px; background: #000; border: 1px solid var(--cyan-dark); color: var(--paper); font-family: var(--mono); font-size: 15px; }
.search-input::placeholder { color: var(--muted); opacity: .8; }
.search-input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.search-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.search-filter { padding: 7px 12px; background: transparent; border: 1px solid var(--cyan-dark); color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; cursor: pointer; }
.search-filter:hover { color: var(--paper); border-color: var(--cyan); }
.search-filter[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }

.search-status { margin-top: 22px; color: var(--muted); font-size: 13px; }
.search-results { list-style: none; margin: 18px 0 0; padding: 0; }
.search-result { padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-result-title { display: block; color: var(--paper); font-size: 17px; text-decoration: none; }
.search-result-title:hover { color: var(--cyan); }
.search-result-meta { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.search-fallback { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.search-fallback .panel-actions { justify-content: flex-start; margin-top: 14px; }

@media (max-width: 800px) {
  .search-page { padding: 56px 0 72px; }
}
