/* Homepage assets rail + /assets/ library page styles.
   Kept out of style.css so docs pages that share /style.css stay inside the
   verify-docs-bundle critical-path budget. */
.assets-nav { display: flex; gap: 8px; justify-content: center; }
.assets-nav button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  cursor: pointer; font: inherit; line-height: 1;
}
.assets-nav button[disabled] { opacity: .4; cursor: default; }
/* Stack kicker/title/description and center the prev/next under them so phone
   widths do not park the arrows beside the copy. Desktop keeps the same
   centered column as every other section head. */
.assets-head-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.assets-head-copy { max-width: 640px; }
.assets-head-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.assets-see-all {
  color: var(--blueprint);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.assets-see-all:hover { text-decoration: underline; }
.assets-category-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.assets-category-row::-webkit-scrollbar { display: none; }
.assets-category-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.assets-category-chip:hover,
.assets-category-chip.is-active {
  border-color: var(--blueprint);
  color: var(--blueprint);
}
/* Asset library page */
.asset-library-page { margin: 0 0 96px; padding: 0; }
.asset-library-page .section-title { font-size: clamp(2rem, 4vw, 2.75rem); }
.asset-library-page .section-head { margin-bottom: 18px; }
.live-assets {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 6px 0; color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums;
}
#live-assets-total { display: inline-block; }
.live-assets-state {
  display: inline-flex; gap: 5px; align-items: center;
  color: var(--ink-soft); font: 500 12px/1.3 var(--sans, sans-serif);
}
.live-assets-state::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.live-assets[data-state="live"] .live-assets-state::before { background: #25764e; }
#library-film-link { display: inline-block; margin-top: 8px; }
#library-film { border: 0; border-radius: 10px; background: #141414; color: white; padding: 8px; }
#library-film::backdrop { background: rgb(10 16 24 / .8); }
#library-film form { text-align: right; }
#library-film button { background: transparent; color: white; border: 0; padding: 6px 10px; cursor: pointer; }
#library-film video { display: block; width: min(76vw, 720px); max-height: 76dvh; }
.asset-library-search {
  display: block; width: min(100%, 34rem); margin: 0 auto; padding: 11px 14px;
  border-radius: 8px; border: 1px solid var(--rule); background: var(--paper);
  color: var(--ink); font: inherit;
}
.asset-library-more { display: block; margin: 24px auto; padding: 10px 16px; cursor: pointer; }
.asset-library-more[hidden] { display: none; }
.asset-library-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin: 12px 0 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.asset-library-toolbar::-webkit-scrollbar { display: none; }
.asset-library-toolbar button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.asset-library-toolbar button.is-active,
.asset-library-toolbar button:hover {
  border-color: var(--blueprint);
  color: var(--blueprint);
}
.asset-library-count {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin: 8px 0 28px;
}
.asset-library-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.asset-library-grid .asset-card { width: auto; }
.asset-library-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 48px 16px;
}
.asset-card-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #eef2f7, #dfe7f1);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 16px;
  text-align: center;
}
@media (max-width: 1000px) {
  .asset-library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .asset-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .asset-library-page { margin-bottom: 72px; }
  .library-landing .nav { padding-bottom: 26px; }
  .library-landing .nav-links a:not(.app-link) { display: none; }
}
@media (max-width: 420px) {
  .asset-library-toolbar button { padding: 0 9px; }
  .asset-library-grid .asset-card-body { padding: 9px; }
}
