/* Community Insider (tracker feat_community_insider). Own file for the same
   reason community-insider.js is: styles.css is written by several sessions
   at once. The one input here is a text search box, which the global
   `input, select, textarea` rule styles correctly. */

.ci-panel {
  display: grid;
  gap: 12px;
}

.ci-head h3 {
  margin: 0;
}

.ci-head p {
  margin: 2px 0 0;
  color: var(--sv-text-muted);
  font-size: 0.86rem;
}

.ci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.ci-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(8, 112, 122, 0.16);
  border-radius: 10px;
  text-align: left;
}

.ci-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ci-card-head h4 {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.ci-card-head small {
  color: var(--sv-text-muted);
}

.ci-card-actions {
  display: inline-flex;
  gap: 10px;
  flex-shrink: 0;
}

.ci-link {
  padding: 0;
  background: none;
  border: 0;
  color: #08707a;
  font-size: 0.84rem;
  text-decoration: underline;
  cursor: pointer;
}

.ci-link:disabled {
  opacity: 0.5;
  cursor: default;
}

.ci-big {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ci-big > div {
  display: grid;
  padding: 8px 10px;
  background: #f8fbfa;
  border-radius: 8px;
}

.ci-big strong {
  font-size: 1.4rem;
  line-height: 1.1;
}

.ci-big span {
  color: var(--sv-text-muted);
  font-size: 0.8rem;
}

.ci-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.ci-table th,
.ci-table td {
  padding: 5px 4px;
  border-top: 1px solid rgba(8, 112, 122, 0.1);
  text-align: left;
  vertical-align: top;
}

.ci-table th {
  font-weight: 600;
  white-space: nowrap;
}

.ci-muted {
  margin: 0;
  color: var(--sv-text-muted);
  font-size: 0.84rem;
}

.ci-card-empty {
  place-content: center;
  justify-items: center;
  min-height: 150px;
  color: #08707a;
  font-weight: 600;
  border-style: dashed;
  background: #fbfdfd;
  cursor: pointer;
  text-align: center;
}

.ci-card-empty span {
  font-size: 1.6rem;
  line-height: 1;
}

.ci-options {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
}

.ci-option {
  display: grid;
  width: 100%;
  padding: 8px 10px;
  background: #f8fbfa;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.ci-option:hover,
.ci-option:focus-visible {
  border-color: rgba(8, 112, 122, 0.4);
}

.ci-option small {
  color: var(--sv-text-muted);
}

.ci-note {
  margin: 0;
  color: var(--sv-text-muted);
  font-size: 0.8rem;
}

.ci-notice {
  margin: 0;
  color: #9a3412;
  font-size: 0.86rem;
}

/* Readability fix (2026-10-15, Matt: "can't read the headings"). The cards are
   white but sit inside a dark panel whose --sv-text tokens are LIGHT, so every
   inherited colour was pale-on-white. Cards set their own dark ink; the panel
   heading and footnotes outside the cards keep the panel's light colours. */
.ci-panel .ci-card,
.ci-panel .ci-card h4,
.ci-panel .ci-card strong,
.ci-panel .ci-card .ci-table th,
.ci-panel .ci-card .ci-table td,
.ci-panel .ci-option {
  color: #17211d;
}

.ci-panel .ci-card small,
.ci-panel .ci-card .ci-muted,
.ci-panel .ci-card .ci-big span,
.ci-panel .ci-option small {
  color: #455350;
}

.ci-panel .ci-card-empty,
.ci-panel .ci-card-empty span {
  color: #08707a;
}

.ci-panel .ci-card .ci-search {
  color: #17211d;
}
