/* =====================================================================
   Selah Screens product page (/selah-screens)
   Page-specific styles only. Builds on /assets/style.css tokens.
   ===================================================================== */

/* ---------- Screenshot frame ---------- */

.sel-shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(30, 30, 30, 0.04),
    0 30px 60px -30px rgba(30, 30, 30, 0.22),
    0 14px 28px -14px rgba(30, 30, 30, 0.1);
}

.sel-shot__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.sel-shot__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}

.sel-shot__bar i:first-child { background: var(--accent); }

.sel-shot__bar span {
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sel-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.sel-shot--dark {
  background: #0d0d0f;
  border-color: #1f1f22;
}

.sel-shot--dark .sel-shot__bar {
  background: #18181b;
  border-bottom-color: #26262a;
}

.sel-shot--dark .sel-shot__bar i { background: #3a3a40; }
.sel-shot--dark .sel-shot__bar i:first-child { background: var(--accent); }
.sel-shot--dark .sel-shot__bar span { color: #a1a1aa; }

.sel-caption {
  margin: 12px 4px 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* The two-up visual column must be allowed to shrink below the image width. */
.two-up__visual,
.hero__visual {
  min-width: 0;
}

/* ---------- Diagram ---------- */

.sel-diagram {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.sel-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.sel-diagram .sel-diagram__mobile { display: none; }

.sel-diagram figcaption {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Keyboard strip ---------- */

.sel-keys {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sel-keys li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sel-keys__caps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sel-keys kbd,
.sel-inline-kbd {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 3px;
  border-radius: 8px;
  padding: 3px 9px;
  line-height: 1.4;
  min-width: 30px;
  text-align: center;
}

.sel-inline-kbd {
  font-size: 0.8rem;
  padding: 1px 7px;
  border-bottom-width: 2px;
  border-radius: 6px;
}

.sel-keys span.sel-keys__what {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.sel-keys-note {
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Remote API code panel ---------- */

.sel-code {
  margin: 0;
  background: var(--text);
  color: #EDEDED;
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.sel-code b {
  color: var(--accent);
  font-weight: 600;
}

.sel-code i {
  color: #9C9C9C;
  font-style: normal;
}

/* ---------- Status panels ---------- */

.sel-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .sel-keys { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .sel-diagram { padding: 18px 14px; }
  .sel-diagram .sel-diagram__desktop { display: none; }
  .sel-diagram .sel-diagram__mobile { display: block; }
  .sel-keys { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sel-keys li { padding: 14px 12px; }
  .sel-code { padding: 18px 16px; font-size: 0.8rem; }
}
