/* Samples page additions — tokens come from styles.css. */

.hero-window {
  color: var(--muted);
  font-size: 0.9rem;
}

/* downloads table: scroll inside wrapper on narrow screens */
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.downloads-table th,
.downloads-table td {
  vertical-align: top;
  white-space: nowrap;
}

.downloads-table .sym-name {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: normal;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  margin: 0.1rem 0.2rem 0.1rem 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.files-row td {
  padding-top: 0;
  border-top: none;
}

.file-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  font-size: 0.8rem;
}

.file-list li {
  margin-bottom: 0.25rem;
  word-break: break-all;
}

.file-list .hash {
  color: var(--muted);
  font-size: 0.72rem;
}

.samples-error {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* skeleton shimmer */
.skeleton-row td {
  padding: 0.9rem 0.75rem;
}

.skeleton {
  display: block;
  height: 0.9rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

/* preview */
.preview-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.preview-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.preview-controls select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
}

.preview-status {
  color: var(--muted);
  font-size: 0.85rem;
}

.preview-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.preview-table th,
.preview-table td {
  padding: 0.3rem 0.6rem;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.preview-table th:first-child,
.preview-table td:first-child {
  text-align: left;
}

.preview-table thead th {
  font-weight: 700;
  position: sticky;
  top: 0;
  background: var(--bg);
}

/* format section */
.code-block {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

.format-notes dt {
  font-weight: 600;
  margin-top: 1rem;
}

.format-notes dd {
  margin: 0.25rem 0 0;
  padding-left: 0;
  color: var(--text);
}

/* coverage */
#coverage-search {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  width: 100%;
  max-width: 26rem;
  margin-bottom: 0.75rem;
}

.closing-band .btn + .btn {
  margin-left: 0.5rem;
}

@media (max-width: 760px) {
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
