/* Northwater: visual layer over the established Grant Discovery controls. */
:root {
  --navy: #173a32;
  --teal: #135f50;
  --ink: #1b352f;
  --muted: #52665f;
  --line: #dce5de;
  --soft: #f2f6f0;
  --teal-soft: #e4eee5;
  --amber: #80500e;
  --page-gutter: clamp(20px, 3.7vw, 54px);
}
body { background: #fbfcf9; }
.header-inner, .discovery-hero, .page-shell, .site-footer {
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.site-header {
  background-color: #163c34;
  background-image: linear-gradient(90deg, rgba(15, 52, 42, .95) 0%, rgba(15, 52, 42, .88) 43%, rgba(15, 52, 42, .25) 78%, rgba(15, 52, 42, .32) 100%), url('./assets/northwater-lake-r1.webp');
  background-position: center, center 54%;
  background-size: cover;
  border-bottom: 4px solid #d3decf;
}
.header-inner { min-height: 64px; border-bottom: 1px solid #ffffff38; }
.brand { font-size: 18px; font-weight: 700; letter-spacing: -.25px; }
.header-inner > span { color: #f3f7f1; font-size: 13px; letter-spacing: 0; }
.header-contact { font-size: 13px; font-weight: 500; }
.discovery-hero { padding-block: 36px 28px; }
.introduction { align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.introduction h1 { color: #fff; font-size: 36px; font-weight: 720; line-height: 1.2; letter-spacing: -1px; margin-bottom: 10px; }
.introduction p { max-width: 970px; font-size: 16px; line-height: 1.6; color: #f3f7f2; }
.introduction .refresh-note { margin-top: 8px; padding: 5px 8px; font-size: 12px; color: #fff; background: #103e32cc; border-radius: 4px; }
.search-form { background: #fff; min-height: 60px; margin: 0; padding: 7px; border: 1px solid #d6e0d8; border-radius: 7px; box-shadow: 0 6px 20px #08281e22, inset 0 1px 0 #fff; }
.search-form svg { color: #24564c; margin-left: 13px; }
.search-form input { color: #1b352f; font-size: 16px; height: 44px; }
.search-form input::placeholder { color: #66796f; opacity: 1; }
.search-form .primary-button { min-height: 44px; min-width: 124px; font-size: 14px; background: #125d4f; box-shadow: inset 0 1px 0 #ffffff24, 0 2px 4px #173a3220; }
.search-form .primary-button:hover { background: #0d4b3e; }
.search-form:focus-within { border-color: #84af9d; box-shadow: 0 0 0 3px #d7e8dd66; }
.page-shell { padding-top: 10px; }
.view-nav { gap: 30px; margin-bottom: 20px; border-color: #d9e3db; }
.view-button { font-size: 14px; font-weight: 550; padding-block: 15px 16px; gap: 10px; color: #374e43; }
.view-button.active { color: #163a30; font-weight: 700; border-bottom-color: #135f50; }
.view-button span { background: #e8eee6; color: #365447; padding: 2px 9px; border-radius: 7px; font-size: 12px; }
.view-button.active span { background: #dce9dc; color: #173e31; }
.view-button:hover { color: #135f50; }
.filter-bar { margin: 0 -18px 30px; padding: 20px 24px 15px; border: 1px solid #e9eee6; border-radius: 12px; background: #edf3e9; box-shadow: inset 0 1px 0 #ffffffbf, 0 7px 24px #244c3310; }
.filter-bar .filter-title { margin-bottom: 13px; }
.filter-bar .filter-title h2 { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.filter-bar .filter-title .text-button { font-size: 13px; }
.primary-filters { gap: 28px; }
.filter-bar .field > label:not(.checkbox-label) { font-size: 13px; font-weight: 600; margin-bottom: 7px; }
select { border-color: #cad7cd; background-color: #fff; color: #223f35; }
.filter-bar select { font-size: 14px; border-color: #cbd7cd; border-radius: 5px; background-color: #fff; box-shadow: 0 2px 4px #213d2b08; }
.filter-bar select:hover { border-color: #8da99a; }
.filter-guidance { margin-top: 13px; font-size: 12px; color: #52645a; }
.filter-bar .more-filters { margin-top: 8px; }
.filter-bar .more-filters > summary { font-size: 13px; color: #155a49; padding-block: 9px; }
.filter-bar .more-filter-body { border-top: 1px solid #d7e3d4; padding-top: 18px; }
.text-button, .document-count, .geography-supported, .detail-cue { color: #185e4d; }
.results-toolbar { margin-bottom: 10px; align-items: center; }
.results-toolbar h2 { font-size: 28px; font-weight: 720; letter-spacing: -.7px; }
.result-count { font-size: 13px; }
.sort-field label { font-size: 12px; }
.sort-field select { min-height: 42px; font-size: 13px; width: 200px; border-radius: 5px; }
.view-note { font-size: 12px; line-height: 1.65; padding-bottom: 16px; }
.result-row { padding: 20px 0; gap: 34px; }
.row-source { font-size: 13px; margin-bottom: 5px; }
.result-row h3 { font-size: 18px; line-height: 1.4; letter-spacing: -.25px; margin-bottom: 7px; }
.result-title { font-weight: 680; }
.row-description { font-size: 13px; line-height: 1.65; margin-bottom: 10px; }
.row-meta { font-size: 12px; gap: 6px 15px; }
.row-timing { gap: 5px; }
.status-label { color: #175a45; font-size: 12px; }
.date-label { font-size: 14px; }
.deadline-count { font-size: 12px; }
.row-timing .amount-label { color: #193c30; font-size: 14px; font-weight: 650; }
.detail-cue { font-size: 12px; }
.secondary-button { border-color: #c7d6c9; border-radius: 5px; }
.secondary-button:hover:not(:disabled) { background: #edf4e9; border-color: #99b69f; }
.filter-chip { background: #e7f0e3; border-color: #bfd3bb; color: #225340; }
.site-footer { color: #55685a; border-color: #dce5de; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #23725d; outline-offset: 3px; }
.site-header a:focus-visible { outline-color: #d7edcf; }
.opportunity-dialog { box-shadow: 0 24px 90px #12352940; }
.grant-detail-tools { background: #f0f5eb; border-color: #d5e2d1; }
.grant-key-facts, .grant-provenance { border-color: #d8e2d8; }
@media (max-width: 1100px) {
  .view-nav { gap: 24px; }
  .introduction h1 { font-size: 32px; }
  .introduction p { font-size: 15px; }
  .primary-filters { gap: 18px; }
}
@media (max-width: 850px) {
  .discovery-hero { padding-block: 28px 26px; }
  .introduction { display: block; }
  .introduction .refresh-note { display: inline-block; text-align: left; margin-top: 10px; padding: 3px 7px; }
  .introduction h1 { font-size: 30px; }
  .filter-bar { margin-inline: -10px; padding-inline: 18px; }
  .filter-bar .filter-title h2 { font-size: 16px; }
  .results-toolbar h2 { font-size: 25px; }
  .result-row { gap: 22px; }
}
@media (max-width: 620px) {
  .header-inner { min-height: 62px; }
  .brand { font-size: 14px; }
  .header-inner > span { font-size: 11px; }
  .header-contact { font-size: 11px; }
  .site-header { background-position: center, 63% center; }
  .discovery-hero { padding-block: 26px 24px; }
  .introduction { margin-bottom: 18px; }
  .introduction h1 { font-size: 29px; line-height: 1.15; max-width: 430px; letter-spacing: -.7px; }
  .introduction p { font-size: 13px; line-height: 1.6; }
  .introduction .refresh-note { font-size: 11px; }
  .search-form { min-height: 54px; gap: 6px; padding: 5px; }
  .search-form svg { width: 19px; height: 19px; margin-left: 6px; }
  .search-form input { font-size: 14px; min-width: 0; height: 42px; }
  .search-form .primary-button { min-width: 72px; font-size: 12px; padding: 9px 12px; min-height: 42px; }
  .page-shell { padding-top: 6px; }
  .view-nav { gap: 22px; margin-bottom: 17px; margin-right: calc(-1 * var(--page-gutter)); padding-right: var(--page-gutter); }
  .view-button { font-size: 13px; gap: 7px; padding-block: 14px; }
  .view-button span { font-size: 11px; padding: 1px 7px; }
  .filter-bar { padding: 14px 14px 9px; border-radius: 9px; margin-bottom: 25px; }
  .filter-bar .filter-title { margin-bottom: 12px; align-items: center; }
  .filter-bar .filter-title h2 { font-size: 14px; max-width: 215px; }
  .filter-bar .filter-title .text-button { font-size: 11px; }
  .primary-filters { gap: 14px 12px; }
  .filter-bar .field > label:not(.checkbox-label) { font-size: 12px; }
  .filter-bar select { font-size: 13px; min-height: 44px; padding-left: 9px; }
  .filter-guidance { font-size: 11px; line-height: 1.6; }
  .filter-bar .more-filters > summary { font-size: 12px; min-height: 44px; }
  .results-toolbar h2 { font-size: 24px; }
  .result-count { font-size: 11px; }
  .sort-field label { font-size: 10px; }
  .sort-field select { width: 141px; font-size: 11px; min-height: 40px; }
  .view-note { font-size: 11px; }
  .result-row { gap: 12px; padding-block: 20px; }
  .result-row h3 { font-size: 17px; }
  .row-description { font-size: 13px; }
  .row-source, .row-meta { font-size: 11px; }
  .row-timing .amount-label { font-size: 13px; }
  .date-label { font-size: 12px; }
  .deadline-count, .status-label { font-size: 11px; }
}
@media (forced-colors: active) {
  .site-header { background-image: none; }
  .filter-bar, .search-form { border: 1px solid CanvasText; }
}
@media print {
  .site-header { background: #fff; border-bottom: 1px solid #777; }
  .introduction h1, .introduction p, .introduction .refresh-note { color: #000; background: none; }
  .filter-bar { box-shadow: none; }
}
