/* Discovery and saved-search additions to the shared forest/ivory system. */
.board-head { position: relative; }
.board-head h1 { margin-bottom: 8px; letter-spacing: -.035em; }
.board-intro { margin-bottom: 20px; font-size: 15px; }
.board-tools { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.board-tools .btn { min-height: 40px; padding: 8px 14px; }
.board-tools .linkbtn { font-size: 13px; }
.editing-search { margin: 16px 0 0; }
.rail { scrollbar-width: thin; }
.salary-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 10px; }
.salary-fields label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; }
.salary-fields input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; }
.filter-hint { font-size: 12px; line-height: 18px; color: var(--muted); margin: 8px 0; }
#salaryError:not(:empty) { color: var(--error); }
.salary-facet .toggle { font-size: 12px; line-height: 18px; }
.tag.new-tag { background: var(--subtle); color: var(--forest); border: 1px solid var(--border); }
.match-evidence { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; font-size: 13px; line-height: 21px; }
.fit-details summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.fit-details summary::-webkit-details-marker { display: none; }
.fit-details summary::after { content: "+"; margin-left: auto; color: var(--muted); }
.fit-details[open] summary::after { content: "−"; }
.fit-badge { padding: 2px 9px; background: var(--subtle); border-radius: 5px; color: var(--forest); font-weight: 650; }
.fit-coverage { color: var(--muted); font-size: 12px; }
.fit-why { color: var(--forest); font-size: 12px; font-weight: 600; }
.fit-details ul { padding: 12px 0 6px 20px; list-style: disc; }
.fit-details li { margin-bottom: 4px; }
.fit-details p { margin: 5px 0 0; }
.card .meta { overflow-wrap: anywhere; }
.card .menu-pop button { min-height: 44px; }
.saved-search-list { list-style: none; display: grid; gap: 16px; }
.saved-search { display: flex; align-items: flex-start; gap: 20px; padding: 24px 26px; }
.saved-search-main { flex: 1; min-width: 0; }
.saved-search-title { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.saved-search-title h2 { margin: 0; }
.search-title-button { font: inherit; font-weight: 650; color: var(--ink); background: transparent; border: 0; padding: 0; text-align: left; cursor: pointer; min-height: 32px; }
.search-title-button:hover { color: var(--forest); text-decoration: underline; }
.search-summary { font-size: 14px; line-height: 23px; color: var(--muted); margin-bottom: 10px; overflow-wrap: anywhere; }
.search-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.search-meta span + span::before { content: "·"; margin-right: 12px; }
.search-reorder { display: flex; flex-direction: column; gap: 7px; }
.searches-overview { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--border); margin: 0 0 24px; padding-bottom: 12px; }
.searches-overview p { margin-bottom: 0; }
.searches-overview strong { font-variant-numeric: tabular-nums; font-size: 14px; }
.new-search-count { background: var(--accent); color: #16372E; }
.search-criteria { border: 1px solid var(--border); border-radius: 10px; background: var(--subtle); padding: 14px 16px; }
.search-criteria h3 { font-size: 13px; margin-bottom: 5px; }
.search-criteria p { font-size: 13px; line-height: 21px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.search-criteria .linkbtn { display: inline-block; margin-top: 8px; }
.search-dialog .note { margin: 0; font-weight: 400; }
@media (max-width: 1023px) {
  .rail.sheet-open { padding-bottom: 120px; }
  .sheet-open .rail-head { position: sticky; top: -16px; background: var(--surface); z-index: 2; padding-block: 10px; border-bottom: 1px solid var(--border); }
  .sheet-open .facet-find { min-height: 44px; }
  .sheet-open .opt label { padding-block: 11px; min-height: 44px; }
  .sheet-open .toggle { min-height: 44px; padding-block: 10px; }
}
@media (max-width: 767px) {
  .board-tools { gap: 12px; flex-wrap: wrap; }
  .results-bar { gap: 10px; }
  .view-toggle { gap: 2px; }
  .fit-details summary { gap: 7px; }
  .fit-why { width: 100%; }
  .fit-details summary::after { display: none; }
  .saved-search { padding: 20px 16px; gap: 12px; }
  .saved-search-title h2 { font-size: 18px; line-height: 25px; }
  .search-meta { gap: 4px; flex-direction: column; }
  .search-meta span + span::before { display: none; }
  .searches-overview { display: block; }
  .searches-overview p + p { margin-top: 6px; }
  .saved-search .actions { gap: 8px; }
  .saved-search .actions .btn { padding-inline: 12px; }
}

/* Confirmed facts stay compact; missing values do not take a card row. */
.card .card-location { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.card .meta .pay-stated { color: var(--ink); font-weight: 650; }
.card .card-notes { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.match-sort-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.match-sort-status a { display: inline-flex; align-items: center; min-height: 28px; min-width: 24px; padding: 4px; margin-block: 4px; }
/* Starting paths and the same filter controls at both screen sizes. */
.starting-paths { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.starting-paths .btn[aria-pressed="true"] { background: var(--forest); color: white; }
.board-head .starting-paths { margin-block: 12px 18px; }
.more-filters > summary { font-weight: 650; padding-block: 14px; cursor: pointer; }
.mobile-shortcuts, .sheet-chips { display: none; }
.match-summary { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.match-details { font-size: 13px; margin-bottom: 10px; }
.match-details > summary { cursor: pointer; min-height: 28px; padding-block: 4px; color: var(--forest); }
.match-details ul { margin: 8px 0; padding-left: 20px; }
.card .meta [data-card-fact="audience"] { font-weight: 700; }
.before-apply-eligibility { margin: 12px 0 0; display: grid; gap: 8px; }
.before-apply-eligibility > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 10px; }
.before-apply-eligibility dt { font-weight: 650; font-size: 13px; }
.before-apply-eligibility dd { margin: 0; font-size: 13px; }
@media (max-width: 1023px) {
  .mobile-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .mobile-shortcuts .btn { font-size: 13px; min-height: 36px; }
  .sheet-chips { display: flex; margin-block: 12px; }
  .starting-paths .btn { font-size: 13px; padding: 9px 12px; }
}
.unknown-match-line { font-size: 13px; line-height: 1.5; margin: 10px 0; }
.unknown-match-line .linkbtn { min-height: 28px; padding: 2px; text-decoration: underline; }
.remote-eligibility { margin-top: 14px; }
.remote-eligibility h3 { font-size: 14px; margin-bottom: 6px; }
.remote-eligibility blockquote { margin: 8px 0 0; padding-left: 12px; border-left: 2px solid var(--border-strong); font-size: 13px; }
@media (max-width: 1023px) {
  .board-head .starting-paths { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; min-width: 0; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .starting-paths .btn { flex: 0 0 auto; white-space: nowrap; }
  .starting-paths .btn, .mobile-shortcuts .btn { height: 40px; min-height: 40px; padding: 7px 12px; }
}

/* A failed enhancement leaves the HTML cards available. */
#listLoadStatus:not([hidden]), #filterLoadStatus:not([hidden]) {padding:12px;margin-block:8px;background:var(--surface);border:1px solid var(--border);border-radius:8px;font-size:.9rem;}

.pagination {display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;}
.pagination [aria-current="page"] {background:var(--ink);color:var(--surface);}
#resultCount {scroll-margin-top:200px;}

/* Saved uses the shared board, with a quiet archive and file tools. */
.hidden-jobs,.saved-file-tools {font-size:13px;margin:10px 0;border:0;padding:0;}
.hidden-jobs > summary,.saved-file-tools > summary {color:var(--muted);cursor:pointer;min-height:28px;}
.hidden-jobs ul {display:grid;gap:10px;margin:12px 0;}
.hidden-jobs li {display:flex;justify-content:space-between;align-items:center;gap:12px;}

body[data-page=saved] .saved-search-chips {order:-1;}
.map-layout #savedPersistence,.map-layout #savedPersistenceHint,.map-layout .saved-file-tools,.map-layout .hidden-jobs {display:none;}

/* Native horizontal scrollbars get their own space, below every shortcut. */
.starting-paths,.saved-search-chips,.mobile-shortcuts {padding-block:2px 10px;scroll-padding-inline:0;}
.board-head .starting-paths {margin-inline:0;padding-inline:0;}
/* A wrapped title stays one continuous link target, including between its lines. */
.card h3 a {display:block;}
