.app { grid-template-columns: 244px minmax(0, 1fr); }
.main, .search, .home-details > *, .jobs-page > * { min-width: 0; }
.main { margin: 0 auto; }
.topbar { height: 72px; }
.mobile-home, .menu-backdrop { display: none; }
.search input { padding-inline-end: 65px; }
.search button {
  position: absolute;
  inset: 4px 4px 4px auto;
  min-width: 52px;
  border: 0;
  border-radius: 8px;
  background: #e7f3f5;
  color: #085972;
  font-weight: 700;
}
.hero { display: block; min-height: 0; }
.hero-copy { padding: 26px 32px; }
.hero .eyebrow { color: #90e2e7; }
.hero h1 { margin: 6px 0 9px; font-size: clamp(27px, 3vw, 38px); letter-spacing: 0; }
.hero p { margin-bottom: 16px; line-height: 1.55; }
.hero .btn { min-height: 44px; }
#home .section-title { margin: 21px 0 10px; }
#home .tool { min-width: 0; padding: 14px 16px; }
#home .tool small { line-height: 1.5; }
.home-details { margin-top: 18px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.home-details .panel { padding: 17px; }
.home-details .panel-head { margin-bottom: 12px; }
.home-details h2 { font-size: 17px; }
.home-details .link-btn { flex: none; min-height: 36px; }
.home-count { display: inline-block; margin-inline-start: 4px; padding: 2px 7px; border-radius: 12px; background: #e7f3f5; color: #085972; font-size: 12px; vertical-align: middle; }
.home-details .home-job-state { padding: 15px 4px; text-align: left; }
.job-keyword { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.job-keyword input, .job-filter-fields select { min-width: 0; width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.job-keyword button { white-space: nowrap; }
.job-filters { margin-top: 7px; }
.job-filters summary { min-height: 40px; padding: 10px 0 8px; cursor: pointer; color: var(--sea); font-weight: 700; }
.job-filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; padding-top: 4px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; padding: 22px 0 0; font-size: 13px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 36px; color: var(--sea); }
@media (max-width: 760px) {
  body { min-width: 0; }
  .main { padding: 0 14px calc(82px + env(safe-area-inset-bottom)); }
  .topbar { height: 62px; gap: 8px; }
  .top-actions { flex-shrink: 0; gap: 5px; }
  .mobile-home { display: grid; flex: 0 0 38px; place-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; }
  .top-actions .avatar { display: grid; width: 40px; height: 40px; }
  .top-actions .icon-btn { width: 38px; height: 40px; }
  .search input { padding-inline: 10px 50px; }
  .search::before { display: none; }
  .search button { min-width: 42px; padding: 0 4px; font-size: 13px; }
  .hero-copy { padding: 19px 18px; }
  .hero p { font-size: 14px; }
  .home-details { display: grid; grid-template-columns: minmax(0, 1fr); }
  .home-details > .panel { margin: 0; }
  .page-title { flex-wrap: wrap; }
  .page-title h1 { font-size: 25px; }
  .page-actions { justify-content: flex-start; }
  .mobile-nav { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); }
  .mobile-nav button { min-height: 44px; }
  .mobile-nav button.active { font-weight: 800; }
  .menu-backdrop { position: fixed; inset: 0; display: block; border: 0; background: rgba(7, 27, 44, .50); z-index: 19; }
}
@media (max-width: 365px) {
  .top-actions .icon-btn { width: 32px; }
  .top-actions { gap: 2px; }
  .job-search-panel { padding: 12px; }
}


/* Decorative vessel on the dashboard hero. */
.hero-art { display: none; }

@media (min-width: 900px) {
  .hero-copy { max-width: 66%; }
  .hero-art {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 1;
    display: block;
    width: min(55%, 720px);
    height: 100%;
    object-fit: contain;
    object-position: right center;
    pointer-events: none;
  }
}


.job-sections {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.job-sections button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}
.job-sections button[aria-pressed="true"] { background: #0c5368; color: #fff; }
.jobs-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
}
.jobs-section-head h2 { margin: 0; font-size: 19px; }
.jobs-section-head p { margin: 5px 0 0; color: var(--muted); }
.job-seeking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}
.job-seeking-grid article { display: flex; flex-direction: column; align-items: start; gap: 10px; }
.job-seeking-grid h3 { margin: 0; font-size: 17px; }
.job-seeking-grid p { margin: 0 0 4px; color: var(--muted); }
.job-seeking-grid .btn { margin-top: auto; }
@media (max-width: 760px) {
  .job-sections { width: 100%; }
  .job-sections button { flex: 1; min-width: 0; padding-inline: 8px; }
}

