/* ============================================================
   NTell World Ink — site index page
   site-index.css  ·  page styles for /index/

   Built on the design tokens in styles.css, which supplies the
   header, breadcrumb, masthead, footer and the pill classes.
   ============================================================ */

.si-wrap { max-width: 1040px; }


/* --- Controls --------------------------------------------- */

.si-controls { margin-bottom: 28px; }

.si-search { position: relative; }

.si-search input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  padding: 15px 18px 15px 44px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease;
}

.si-search input::placeholder { color: var(--text-3); }
.si-search input:focus { outline: none; border-color: var(--accent); }
.si-search input::-webkit-search-cancel-button,
.si-search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }

.si-search svg {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.6;
  pointer-events: none;
}

.si-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.si-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.si-chip:hover { border-color: var(--accent); color: var(--text); }

.si-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(26, 201, 201, 0.12);
  color: var(--accent-2);
}


/* --- Count line ------------------------------------------- */

.si-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}


/* --- Groups ----------------------------------------------- */

.si-group { margin-top: 40px; }

.si-group-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 8px;
}

.si-group-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}

.si-group-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.si-group-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}


/* --- Rows ------------------------------------------------- */

.si-row {
  display: grid;
  grid-template-columns: 1fr 320px 130px;
  gap: 20px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--bg-3);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.si-row:hover { background: rgba(26, 201, 201, 0.035); }

.si-row-title {
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}

.si-row-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.si-row .idx-pills {
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

/* On this page the type pill is outline only; the search dropdown fills it. */
.si-row .idx-pill {
  background: transparent;
  border-color: rgba(26, 201, 201, 0.3);
}

.si-row .idx-pill-hidden {
  border-color: var(--rule-2);
  padding: 4px 8px;
}


/* --- Empty state ------------------------------------------ */

.si-empty {
  padding: 40px 0;
  font-size: 15px;
  color: var(--text-2);
}


/* --- Small screens ---------------------------------------- */

@media (max-width: 900px) {
  .si-row {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
    padding: 14px 0;
  }
  .si-row-title { grid-column: 1 / -1; }
  .si-row-url { grid-column: 1; }
  .si-row .idx-pills { grid-column: 2; }
  .si-group-head h2 { font-size: 22px; }
}
