/* debian-search channel - styled to the CRT theme.
 *
 * The page body is wrapped by the SSG's page template, so it inherits the
 * cabinet, scanlines and sidebar. This file only styles the tool itself, and
 * uses the theme's own colour tokens (--crt-color, --crt-dim, --crt-glow)
 * rather than hard-coded phosphor values, so it tracks the active colour mode.
 */

.ds-head {
  margin-bottom: 1.4rem;
}

.ds-head h1 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--crt-color);
  text-shadow: 0 0 6px var(--crt-glow);
}

.ds-sub {
  margin: 0;
  max-width: 62ch;
  line-height: 1.55;
  color: var(--crt-color);
  opacity: 0.85;
}

.ds-mono {
  font-family: "Courier New", Courier, monospace;
}

.ds-dim {
  opacity: 0.6;
}

/* ---- query panel ---- */
.ds-panel {
  margin: 1.2rem 0 1.6rem;
}

.ds-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--crt-color);
  opacity: 0.7;
}

.ds-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

.ds-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  color: var(--crt-color);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--crt-dim);
  border-radius: 3px;
  outline: none;
}

.ds-input::placeholder {
  color: var(--crt-color);
  opacity: 0.35;
}

.ds-input:focus {
  border-color: var(--crt-color);
  box-shadow: 0 0 8px var(--crt-dim) inset, 0 0 8px var(--crt-dim);
}

.ds-btn {
  flex: 0 0 auto;
  padding: 0.7rem 1.2rem;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--crt-color);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--crt-dim);
  border-radius: 3px;
  cursor: pointer;
  text-shadow: 0 0 5px var(--crt-glow);
}

.ds-btn:hover,
.ds-btn:focus-visible {
  border-color: var(--crt-color);
  box-shadow: 0 0 8px var(--crt-dim);
}

.ds-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--crt-color);
  opacity: 0.6;
}

/* ---- status line ---- */
.ds-status {
  margin-top: 0.75rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  border-left: 2px solid var(--crt-dim);
  color: var(--crt-color);
  opacity: 0.85;
}

.ds-status.ds-ok {
  border-left-color: var(--crt-color);
}

.ds-status.ds-warn {
  border-left-color: var(--phosphor-amber, #ffb000);
  color: var(--phosphor-amber, #ffb000);
}

.ds-status.ds-err {
  border-left-color: #ff5555;
  color: #ff5555;
}

/* ---- results ---- */
.ds-h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crt-color);
  opacity: 0.7;
}

.ds-results {
  overflow-x: auto;
}

.ds-empty {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--crt-color);
  opacity: 0.65;
}

.ds-example {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  color: var(--crt-color);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--crt-dim);
  border-radius: 2px;
  padding: 0.1rem 0.35rem;
  cursor: pointer;
}

.ds-example:hover {
  border-color: var(--crt-color);
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.ds-table th {
  text-align: left;
  padding: 0.35rem 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--crt-dim);
  color: var(--crt-color);
  opacity: 0.7;
  font-weight: normal;
}

.ds-table td {
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--crt-color);
  vertical-align: top;
}

.ds-path {
  word-break: break-all;
}

.ds-cmd {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  padding: 0.1rem 0.35rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--crt-dim);
  border-radius: 2px;
  white-space: nowrap;
}

/* ---- scope notes ---- */
.ds-dl {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.6;
}

.ds-dl dt {
  margin-top: 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crt-color);
  opacity: 0.6;
}

.ds-dl dd {
  margin: 0.15rem 0 0;
  color: var(--crt-color);
  opacity: 0.9;
}

@media (max-width: 640px) {
  .ds-row {
    flex-direction: column;
  }
  .ds-btn {
    width: 100%;
  }
}
