/* Sky theming reference page. Loaded by sky-theming.html after site.css.
   Styles the schema table, field list and built-in theme chips. */

.sky-fields {
  margin: 0.85rem 0;
  padding-left: 1.2rem;
  list-style: disc;
}
.sky-fields li { margin: 0.35rem 0; }
.sky-fields code,
.sky-default code {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.86em;
  padding: 0.1rem 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: #e8eaf2;
}

.sky-table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.sky-schema-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.sky-schema-table th,
.sky-schema-table td {
  padding: 0.55rem 0.7rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.sky-schema-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #10131c;
  color: #fff;
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.sky-schema-table tbody tr:last-child td { border-bottom: 0; }
.sky-schema-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }

.sky-prop-name code { color: #cfe0c7; }
.sky-prop-type { color: #8b90a5; font-size: 0.8rem; }
.sky-prop-range { color: #8b90a5; font-size: 0.8rem; }
.sky-prop-group { color: #8b90a5; font-size: 0.8rem; }

.sky-default {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.sky-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.sky-schema-empty {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.07);
  border-radius: 10px;
  color: #fcd34d;
}
.sky-schema-empty[hidden] { display: none; }

.sky-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0;
}
.sky-preset {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #dfe7db;
  background: rgba(141, 165, 127, 0.1);
  border: 1px solid rgba(141, 165, 127, 0.32);
  border-radius: 999px;
}
.sky-presets-empty {
  font-size: 0.85rem;
  color: #8b90a5;
  font-style: italic;
}
.sky-presets-empty[hidden] { display: none; }

@media (max-width: 720px) {
  .sky-schema-table { font-size: 0.78rem; }
  .sky-schema-table th,
  .sky-schema-table td { padding: 0.45rem 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sky-schema-table tbody tr { transition: none; }
}