/* Topics — search over the eight rooms, then the two-column grid.
   Tile tints come from the three ramps; hover is one step down each ramp and
   :active one further, so a tap reads even without the pointer. */

.ro-topics {
  background: var(--color-bg);
  padding: 66px 18px 14px;
  gap: 14px;
}

/* — title, subtitle, search — */

.ro-topics-head {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ro-topics-title { font-size: 21px; line-height: 1.1; }

.ro-topics-sub {
  font-size: 11.5px;
  color: var(--color-neutral-700);
  margin-top: 3px;
}

/* The field's label: read by a screen reader, out of the flex flow. */
.ro-topics-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.ro-topics-search {
  min-height: 46px;
  font-size: 14px;
}

/* — search results — */

.ro-topics-results {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ro-topics-result {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border-radius: 22px;
  padding: 15px 16px;
}
.ro-topics-result:hover { background: var(--color-neutral-300); }
.ro-topics-result:active { background: var(--color-neutral-400); }

.ro-topics-result-text {
  flex: 1;
  min-width: 0;
}

.ro-topics-result-title { font-size: 15.5px; line-height: 1.2; }

.ro-topics-result-count {
  font-size: 11px;
  color: var(--color-neutral-700);
  margin-top: 3px;
}

.ro-topics-resultnote {
  font-size: 11.5px;
  color: var(--color-neutral-700);
  text-align: center;
  padding-top: 4px;
}

/* — the grid of rooms — */

.ro-topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.ro-topics-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
  padding: 16px;
  border-radius: 24px;
  text-align: left;
}

.ro-topics-tile-title { font-size: 16px; line-height: 1.18; }

.ro-topics-tile-count {
  font-size: 10.5px;
  opacity: .8;
}

.ro-topics-tile--accent { background: var(--color-accent-200); }
.ro-topics-tile--accent:hover { background: var(--color-accent-300); }
.ro-topics-tile--accent:active { background: var(--color-accent-400); }
.ro-topics-tile--accent .ro-topics-tile-title { color: var(--color-accent-900); }
.ro-topics-tile--accent .ro-topics-tile-count { color: var(--color-accent-800); }

.ro-topics-tile--accent-2 { background: var(--color-accent-2-200); }
.ro-topics-tile--accent-2:hover { background: var(--color-accent-2-300); }
.ro-topics-tile--accent-2:active { background: var(--color-accent-2-400); }
.ro-topics-tile--accent-2 .ro-topics-tile-title { color: var(--color-accent-2-900); }
.ro-topics-tile--accent-2 .ro-topics-tile-count { color: var(--color-accent-2-800); }

.ro-topics-tile--neutral { background: var(--color-neutral-200); }
.ro-topics-tile--neutral:hover { background: var(--color-neutral-300); }
.ro-topics-tile--neutral:active { background: var(--color-neutral-400); }
.ro-topics-tile--neutral .ro-topics-tile-title { color: var(--color-neutral-900); }
.ro-topics-tile--neutral .ro-topics-tile-count { color: var(--color-neutral-800); }

/* — the way out of the app, one tap from a tab — */
.ro-topics-help {
  background: var(--color-accent-200);
  border-radius: 26px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
}
.ro-topics-help:hover { background: var(--color-accent-300); }
.ro-topics-help:active { background: var(--color-accent-400); }
.ro-topics-helptext { flex: 1; min-width: 0; }
.ro-topics-helptitle {
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-accent-900);
}
.ro-topics-helpnote {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--color-accent-800);
  margin-top: 3px;
}
