/* Site search: header suggestions, mobile search panel, results pages.
   Spec: docs/superpowers/specs/2026-10-11-two-row-header-and-search-design.md */

/* Header suggestion list (used from Task 4) */
.hdr-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 320px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; z-index: 1060; max-height: 70vh; overflow-y: auto; }
.hdr-suggest-label { font-size: 12px; color: var(--muted); padding: 10px 14px 4px; display: flex; justify-content: space-between; }
.hdr-suggest-item { display: flex; align-items: baseline; gap: 10px; padding: 7px 14px; color: var(--ink); text-decoration: none; }
.hdr-suggest-item:hover, .hdr-suggest-item.is-active { background: var(--navy-tint); color: var(--ink); text-decoration: none; }
.hdr-suggest-item mark { background: none; color: inherit; font-weight: 500; padding: 0; }
.hdr-suggest-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.hdr-suggest-meta { margin-left: auto; flex: 0 1 auto; max-width: 45%; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-suggest-all { display: block; border-top: 1px solid var(--rule); padding: 9px 14px; color: var(--action); font-size: 14px; }
.hdr-suggest-empty { padding: 14px; color: var(--body); font-size: 14px; }

/* Results pages.
   The structure comes from the listing pages (subExamList/index.php): .single,
   .crumbs, a navy .job_header band, white .col_1 panels headed by
   .main-content-heading, and .se-list tiles. Only what those classes do not
   already cover lives here. */
.srch-page .job_header { margin: 0 0 .4em; }
.srch-panel { padding: 14px; }
.srch-section { padding: 10px 10px 12px; }
.srch-box { position: relative; display: flex; gap: 8px; margin: 0; }
.srch-box input { flex: 1; min-width: 0; height: 44px; padding: 0 12px 0 38px; border: 1.5px solid var(--navy); border-radius: 6px; font-size: 16px; color: var(--ink); }
.srch-box-glyph { position: absolute; left: 14px; top: 14px; color: var(--muted); }
.srch-box .hdr-btn { height: 44px; }
.srch-tabs { display: flex; gap: 4px; margin: 12px -14px 0; padding: 0 14px; border-top: 1px solid var(--rule); overflow-x: auto; }
.srch-tabs a { padding: 10px 12px; color: var(--body); white-space: nowrap; text-decoration: none; }
.srch-tabs a span { font-size: 12px; color: var(--muted); margin-left: 2px; }
/* Tabs that close the panel sit on its bottom edge, like a tab strip. */
.srch-panel > .srch-tabs:last-child { margin-bottom: -14px; }
.srch-tabs a.is-active { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--orange); }
.srch-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 -14px; padding: 12px 14px 0; border-top: 1px solid var(--rule); font-size: 14px; color: var(--body); }
.srch-filters label { margin: 0; font-weight: 400; }
.srch-filters select { margin-left: 6px; height: 34px; color: var(--ink); }

/* The heading bar. .single h2 centres an h2, sizes it at 2em and hangs a navy
   bar under it; inside the bar the h2 must read as the bar's own text. */
.srch-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.srch-page .srch-section-head h2 { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); text-align: left; margin: 0; }
.srch-page .srch-section-head h2:after { content: none; }
.srch-section-head a { font-size: 13px; font-weight: 600; text-transform: none; white-space: nowrap; }
.srch-section-note { font-size: 13px; font-weight: 400; color: var(--muted); text-transform: none; white-space: nowrap; }

/* Tiles. .se-list supplies the border, padding and colour; the grid replaces
   its .2em float margin. */
.srch-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.srch-page .se-list { margin: 0; color: var(--ink); text-decoration: none; }
.srch-page .se-list:hover, .srch-page .se-list:focus { border-color: var(--navy); background: var(--navy-tint); color: var(--ink); text-decoration: none; }
.srch-card-title { display: block; font-weight: 600; }
.srch-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.srch-row { display: flex; align-items: baseline; gap: 12px; }
.srch-meta { display: block; font-size: 13px; color: var(--muted); }
.srch-rows .srch-meta { margin-left: auto; white-space: nowrap; }
.srch-empty { padding: 14px; color: var(--body); }
.srch-empty p:last-child { margin-bottom: 0; }
.srch-empty-head { font-weight: 600; color: var(--ink); margin-bottom: 4px; }

@media (max-width: 767px) {
  .srch-cards { grid-template-columns: minmax(0, 1fr); }
  .srch-row { flex-direction: column; gap: 2px; }
  .srch-rows .srch-meta { margin-left: 0; white-space: normal; }
  .srch-page .job_header { font-size: 20px; }
  .srch-box .hdr-btn { display: none; }
  .srch-filters label { flex: 1 1 100%; }
  .srch-filters label select { width: 100%; margin: 4px 0 0; }
  .srch-section-head { flex-wrap: wrap; }
  /* Tabs wrap onto a second line instead of clipping off the edge. */
  .srch-tabs { flex-wrap: wrap; overflow-x: visible; gap: 0 2px; }
  .srch-tabs a { padding: 10px 10px; }
}
