/* =====================================================================================
   THE SITE INDEX - page-specific layout only
   =====================================================================================
   style.css is the shared design system and stays byte-identical to
   https://orion269.com/brand.css, so every site can load the same file. Everything the
   list needs on top of that lives here: the search panel, the domain sections and the
   card grid. No colours are declared here - they all come from the brand tokens.
   ===================================================================================== */

.search-card { margin: 20px 0 28px; }
.search-card input { margin-bottom: 14px; }
.search-card .filters { display: flex; gap: 8px; flex-wrap: wrap; }
.search-card .filter { min-height: 44px; padding: 8px 16px; font-size: var(--step-2); }
.search-card .filter[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.search-card .status { margin: 14px 0 0; }

/* --- one section per domain --------------------------------------------------------- */
.domain { margin: 0 0 34px; scroll-margin-top: 16px; }
.domain-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  border-bottom: 2px solid var(--accent); padding-bottom: 8px; margin-bottom: 16px;
}
.domain-head h2 { margin: 0; font-size: var(--step-4); }
.domain-head .pill { color: var(--accent); border-color: var(--accent); background: transparent; }

.group { margin: 0 0 20px; }
.group-head {
  font-size: var(--step-2); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px;
}
.group-head .pill { text-transform: none; letter-spacing: 0; }

/* --- the cards ---------------------------------------------------------------------- */
.sites {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.site {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-1);
  border-left: 4px solid var(--line-strong);
}
[data-kind="public"].site { border-left-color: var(--accent); }
[data-kind="internal"].site { border-left-color: var(--state-warn); background: var(--bg-raised); }

.site-host { display: inline-block; font-size: var(--step-2); word-break: break-all; }
.site-title { margin: 6px 0 4px; font-weight: 700; font-size: var(--step-2); }
.site-desc { margin: 0; font-size: var(--step-1); line-height: 1.45; }

/* the word "internal" is the signal, not the colour alone */
.site[data-kind="internal"] .site-host::after {
  content: "internal"; margin-left: 8px; padding: 1px 8px; border-radius: var(--radius-pill);
  border: 1px solid var(--state-warn); color: var(--state-warn);
  font-family: var(--font); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  vertical-align: 1px; white-space: nowrap;
}

.empty { text-align: center; color: var(--text-muted); padding: 30px 0; }

@media (max-width: 520px) {
  .domain-head h2 { font-size: var(--step-3); }
  .sites { grid-template-columns: 1fr; }
}

@media print {
  .search-card, .empty { display: none; }
  .sites { grid-template-columns: 1fr 1fr; }
  .site { break-inside: avoid; }
}
