/* Home heatmap and search results. */

/* Home */
.heat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.heat-head .section-title { margin: 0 0 12px; }
.heat-head .heat-legend { margin-bottom: 14px; }
.heat-wrap { min-width: 620px; }
.heat-grid { table-layout: fixed; }
.heat-grid col.heat-name { width: 270px; }
.heat-grid th.heat-pool { text-align: center; padding: 10px 6px; }
.heat-grid th.heat-domain {
  text-align: left; font-weight: normal; font-size: 14px; color: var(--white); padding: 0 14px;
  border-bottom: 1px solid var(--page); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.heat-grid th.heat-domain a { text-decoration: none; display: block; padding: 9px 0; }
.heat-code { display: inline-block; width: 30px; color: var(--gray); font-size: 11px; }
.heat-grid td.cell { border-bottom: 0; }
.heat-more > summary { padding: 12px 14px; color: var(--soft); font-size: 13px; background: var(--panel); border-top: 1px solid var(--rule); }
.heat-more > summary:hover { color: var(--yellow); }
.heat-more[open] > summary { border-bottom: 1px solid var(--rule); }

/* Search */
.modes { display: flex; gap: 24px; margin: 4px 0 18px; border-bottom: 1px solid var(--rule); }
.modes a { text-decoration: none; color: var(--soft); padding: 8px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.modes a:hover { color: var(--white); }
.modes a.active { color: var(--white); border-bottom-color: var(--yellow); font-weight: bold; }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; margin-top: 22px; align-items: start; }
.filters { background: var(--panel); padding: 16px; font-size: 13px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.filters legend { padding: 0; margin-bottom: 8px; font-size: 12px; color: var(--gray); }
.filters .opt { display: block; padding: 3px 0; color: var(--soft); }
.filters .opt:hover { color: var(--white); }
.filters .opt input { margin-right: 6px; }
.filters .opt-code { display: inline-block; width: 22px; color: var(--gray); font-size: 11px; }
.filters .field { display: block; color: var(--soft); margin: 8px 0 4px; }
.filters .field:first-of-type { margin-top: 0; }
.filters input[type=text], .filters select { width: 100%; font-size: 13px; padding: 7px 9px; }
.filters .hint { color: var(--gray); font-size: 11px; margin: 6px 0 0; }
.filters .btn { width: 100%; }
.bid-help { color: var(--soft); font-size: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.results-count { margin: 0; font-size: 16px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sort select { font-size: 13px; padding: 6px 9px; }

.active-filters { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 12px; }
.active-filters a { display: inline-block; padding: 4px 8px; border: 1px solid var(--gray); text-decoration: none; color: var(--white); }
.active-filters a:hover { border-color: var(--yellow); color: var(--yellow); }
.active-filters .clear a { border-color: transparent; color: var(--soft); text-decoration: underline; }

.result { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px 14px; align-items: start; }
.result-check { padding-top: 2px; }
.result-name { font-size: 16px; font-weight: bold; overflow-wrap: anywhere; }
.result-name a { text-decoration: none; }
.result-name a:hover { text-decoration: underline; }
.result-name .status { font-weight: normal; margin-left: 4px; }
.result .meta { margin-top: 2px; }
.result-pools { margin-top: 7px; }
.result-strip { padding-top: 3px; }

@media (max-width: 1080px) {
  .result { grid-template-columns: 22px minmax(0, 1fr); }
  .result-strip { grid-column: 2; overflow-x: auto; padding-bottom: 2px; }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .heat-grid col.heat-name { width: 210px; }
  .tray { gap: 10px; flex-wrap: wrap; }
}
