/* The root directory's layout layer. Bootstrap and hydrologyhub.css load first. */
.wrap {
  width: min(100% - 3rem, 1160px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: .5rem .875rem;
  background: #fff;
}
.skip-link:focus { top: .5rem; }

.directory-brand {
  display: block;
  width: clamp(170px, 20vw, 230px);
  height: auto;
}
@media (max-width: 1199.98px) {
  .main-navbar .navbar-center.show {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    border-bottom: 1px solid var(--hh-border);
    box-shadow: var(--hh-card-shadow);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(110deg, #344489, var(--hh-blue));
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 36%;
  background: url(assets/hero-contours.svg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 100%);
  mask-image: linear-gradient(to right, transparent, #000 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-block: 1.75rem;
}
.hero-copy { text-align: left; }
.hero h1 {
  margin-bottom: .875rem;
  color: #fff;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.hero-description {
  max-width: 80ch;
  margin: 0;
  color: #e2eafd;
  font-size: 1rem;
  line-height: 1.5;
}

.site-filters { padding-top: 2.5rem; scroll-margin-top: 4.5rem; }
.filter-actions { display: flex; align-items: center; align-self: stretch; justify-content: center; gap: .75rem; margin-top: .5rem; }
.directory { padding-block: 0 2rem; }
.section-heading { display: flex; flex-direction: column; align-items: center; margin-bottom: 1.8rem; text-align: center; }
.section-heading > div:first-child { max-width: 40rem; }
.section-kicker { margin-bottom: .5rem; color: var(--hh-blue); font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.section-heading h2, .platform-about h2 { margin-bottom: .4rem; font-size: clamp(1.9rem, 3vw, 2.45rem); letter-spacing: -.035em; }
.section-heading p:not(.section-kicker), .about-copy p { margin-bottom: 0; color: var(--hh-muted); }
.result-count { margin: .75rem 0 0; color: #8b95a1; font-size: .86rem; text-align: center; }
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  color: var(--hh-blue);
  background: #fff;
  border: 1px solid var(--hh-blue);
  border-radius: .375rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-toggle:hover { background: #f1f5f9; }
.filter-toggle:focus-visible { outline: 3px solid var(--hh-light-blue); outline-offset: 2px; }
.filter-toggle[aria-expanded="true"] .filter-chevron { transform: rotate(180deg); }
.filter-chevron { display: inline-block; font-size: .75rem; line-height: 1; }
.filter-clear {
  padding: 0;
  color: var(--hh-blue);
  font-size: .875rem;
  font-weight: 600;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.filter-clear:is(:hover, :focus-visible) { color: var(--hh-light-blue); }
.filter-panel { margin-bottom: 1rem; }
.filters {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  padding: .75rem 1rem;
  background: #f1f5f9;
  border: 1px solid var(--hh-border);
  border-radius: .5rem;
}
.filter-field { flex: 1 1 0; min-width: 0; }
.filter-search { flex: 2 1 0; }
.filter-field label { display: block; margin-bottom: .3rem; color: var(--hh-muted-strong); font-size: .76rem; font-weight: 750; }
.filter-field .form-control, .filter-field .form-select { min-height: 36px; padding-block: .3rem; font-size: .9rem; }
.filter-field .form-select { cursor: pointer; }
.filter-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.filter-label-row label { margin-bottom: .3rem; }
.status-help { padding: 0; color: var(--hh-muted); font-size: .76rem; background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.status-help:is(:hover, :focus-visible) { color: var(--hh-blue); }
.status-guide-panel {
  max-width: 760px;
  margin-top: .65rem;
  padding: .9rem 1rem;
  color: var(--hh-muted-strong);
  background: #fff;
  border: 1px solid var(--hh-border);
  border-radius: .5rem;
}
.status-guide-panel dl { margin: 0; }
.status-guide-panel dl div { display: grid; grid-template-columns: 8rem 1fr; gap: .75rem; }
.status-guide-panel dl div + div { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--hh-border); }
.status-guide-panel dt { color: var(--hh-blue); font-weight: 700; }
.status-guide-panel dd { margin: 0; }

.card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.125rem; max-width: 820px; margin-inline: auto; }
.card-grid > .app-card { flex: 0 1 calc((100% - 1.125rem) / 2); min-width: 0; }
.app-card { min-width: 0; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.app-card:is(:hover, :focus-within) {
  transform: translateY(-6px);
  border-color: var(--hh-light-blue);
  box-shadow: 0 18px 38px #2439582b;
}
.app-card:focus-within { outline: 3px solid var(--hh-light-blue); outline-offset: 3px; }
.card-visual { position: relative; display: grid; place-items: center; height: 165px; overflow: hidden; background: #e6f1f5; }
.card-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.app-card:is(:hover, :focus-within) .card-visual img { transform: scale(1.035); }
.card-visual-oregon img { object-position: center 46%; }
.card-visual-texas { background: #f4f7f8; }
.visual-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .375rem .625rem;
  color: #254065;
  background: #ffffffea;
  border-radius: .25rem;
  box-shadow: 0 3px 11px #203a4a22;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.card-content { display: flex; flex-direction: column; padding: 1rem; }
.card-topline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .625rem; }
.status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .55rem;
  border-radius: .25rem;
  color: #3f682e;
  background: #ebf5e9;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hh-green); }
.status-preliminary { color: #795b19; background: #fff4d6; }
.status-preliminary .status-dot { background: #b58826; }
.app-card h3 { margin-bottom: .4rem; font-size: 1.25rem; line-height: 1.26; letter-spacing: -.025em; }
.app-card h3 a { color: inherit; text-decoration: none; }
.app-card:is(:hover, :focus-within) h3 a { text-decoration: underline; }
.app-card .card-content > p:not(.status-note) { margin-bottom: .75rem; color: #334155; font-size: .875rem; line-height: 1.5; }
.card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; margin: 0 0 .75rem; padding-top: .75rem; border-top: 1px solid var(--hh-border); }
.card-meta dt { margin-bottom: .125rem; color: #8a97a8; font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-meta dd { margin: 0; color: var(--hh-muted-strong); font-size: .87rem; font-weight: 650; }
.card-contribution { margin-bottom: .625rem; }
.card-contribution h4 { margin-bottom: .3rem; color: var(--hh-muted-strong); font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-contribution p { margin: 0; color: #334155; font-size: .82rem; line-height: 1.5; }
.status-note { margin: 0; padding-left: .55rem; border-left: 2px solid var(--hh-green); color: var(--hh-muted-strong); font-size: .77rem; line-height: 1.5; }
.status-note--preliminary { border-color: #cfad62; color: #6c5b39; }
.empty-state { margin-top: 1.5rem; padding: 2rem 1.5rem; text-align: center; background: #fff; border: 1px dashed var(--hh-border); border-radius: .5rem; }
.empty-state h3 { margin-bottom: .4rem; }
.empty-state p { color: var(--hh-muted); }

.projects-section { padding-block: 4rem 2rem; background: #fff; border-top: 1px solid var(--hh-border); }
.projects-section .section-heading { max-width: 780px; margin-inline: auto; }
.project-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.125rem; }
.project-card { flex: 0 1 calc((100% - 2.25rem) / 3); }
.project-card .card-visual { height: 155px; }
.project-card .card-contribution { margin-top: auto; margin-bottom: 0; }
.external-label { display: inline-block; padding: .3rem .55rem; border-radius: .25rem; color: #345270; background: #e8f0f8; font-size: .69rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }

.platform-about { padding-block: 3.25rem; background: #eef2f7; border-top: 1px solid var(--hh-border); }
.platform-about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.75rem; align-items: center; }
.about-copy { max-width: 590px; line-height: 1.75; }
.about-copy p + p { margin-top: 1rem; }
.directory, .projects-section, .platform-about { scroll-margin-top: 4.5rem; }
.directory:target, .projects-section:target, .platform-about:target { outline: none; }
.directory:target { background: var(--hh-page-bg); }
.projects-section:target { background: #fff; }
.platform-about:target { background: #eef2f7; }

@media (min-width: 1200px) {
  .site-filters .section-heading { position: relative; }
  .site-filters .filter-actions { position: absolute; right: 0; bottom: 0; margin-top: 0; }
}
@media (max-width: 980px) {
  .project-card { flex-basis: calc((100% - 1.125rem) / 2); }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 2rem, 1160px); }
  .directory-brand { width: clamp(150px, 35vw, 205px); }
  .hero-inner { padding-block: 1.5rem; }
  .hero::before { display: none; }
  .hero-description { font-size: .96rem; }
  .site-filters { padding-top: 2.5rem; }
  .section-heading { gap: .4rem; }
  .directory { padding-block: 0 2rem; }
  .filters { flex-wrap: wrap; }
  .filter-field { flex-basis: calc(50% - .375rem); }
  .filter-search { flex-basis: 100%; }
  .platform-about-inner { grid-template-columns: 1fr; }
  .card-grid { max-width: 400px; }
  .card-grid > .app-card { flex-basis: 100%; }
  .projects-section { padding-block: 3rem 2rem; }
  .project-grid { max-width: 400px; margin-inline: auto; }
  .project-card { flex-basis: 100%; }
  .platform-about-inner { gap: .625rem; }
}
@media (max-width: 480px) {
  .directory-brand { width: 125px; }
  .navbar-logo-slot .figure-logo { height: 40px; }
  .filter-field { flex-basis: 100%; }
  .status-guide-panel dl div { grid-template-columns: 1fr; gap: .15rem; }
  .card-visual { height: 155px; }
  .card-meta { gap: .4rem; }
  .app-card h3 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .app-card, .card-visual img { transition: none; }
  .app-card:is(:hover, :focus-within), .app-card:is(:hover, :focus-within) .card-visual img { transform: none; }
}
