/* Mobile-only refinement. Everything below is scoped to <=760px.
   Desktop has no layout overrides and uses the existing site design. */
@media (max-width:760px) {
  .site-header.has-mobile-menu .topbar-inner {
    box-sizing:border-box;
    position:relative;
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:12px 16px;
    min-height:64px;
    max-width:100%;
  }
  .site-header.has-mobile-menu .brand {
    flex:0 1 auto;
    min-width:0;
    gap:9px;
    margin:0;
    font-size:17px;
    font-weight:750;
    white-space:nowrap;
  }
  .site-header.has-mobile-menu .brand-mark,
  .site-header.has-mobile-menu .brand-mark img {
    width:36px;
    height:36px;
    flex:0 0 36px;
  }
  .site-header.has-mobile-menu .brand-name {
    display:block;
    font-size:clamp(16px,4.4vw,19px);
    line-height:1.25;
    letter-spacing:-.035em;
    white-space:nowrap;
  }
  .site-header.has-mobile-menu .mobile-nav-toggle {
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-width:84px;
    min-height:42px;
    padding:9px 12px;
    font:650 13px/1.2 system-ui,sans-serif;
    color:#edf5ff;
    background:#17334f;
    border:1px solid rgba(196,215,239,.24);
    border-radius:10px;
    cursor:pointer;
  }
  .site-header.has-mobile-menu .mobile-nav-toggle:hover,
  .site-header.has-mobile-menu .mobile-nav-toggle[aria-expanded="true"] {
    background:#244562;
    border-color:rgba(198,221,251,.46);
  }
  .site-header.has-mobile-menu .mobile-nav-toggle:focus-visible {
    outline:3px solid #9cc3ff;
    outline-offset:2px;
  }
  .site-header.has-mobile-menu .mobile-nav-icon {
    font-size:18px;
    line-height:1;
    font-weight:400;
  }
  .site-header.has-mobile-menu .nav-note {
    display:none!important;
    position:absolute;
    top:calc(100% - 1px);
    left:0;
    right:0;
    z-index:150;
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    max-height:calc(100dvh - 76px);
    overflow-y:auto;
    overscroll-behavior:contain;
    margin:0;
    padding:12px 16px 18px;
    background:#0b1f33;
    border-top:1px solid rgba(255,255,255,.10);
    border-bottom:1px solid rgba(255,255,255,.16);
    border-radius:0 0 13px 13px;
    box-shadow:0 18px 25px rgba(9,23,41,.18);
    flex-direction:column;
    align-items:stretch;
    gap:2px;
    font-size:14px;
  }
  .site-header.has-mobile-menu.is-mobile-menu-open .nav-note {display:flex!important;}
  .site-header.has-mobile-menu .nav-note > a,
  .site-header.has-mobile-menu .nav-note > .student-tools-menu > summary {
    box-sizing:border-box;
    display:flex;
    align-items:center;
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border-radius:8px;
    color:#dbe7f7;
    font-size:14px;
    font-weight:630;
    line-height:1.35;
    text-decoration:none;
    white-space:normal;
  }
  .site-header.has-mobile-menu .nav-note > a[aria-current="page"] {
    color:#fff;
    background:rgba(255,255,255,.11);
  }
  .site-header.has-mobile-menu .nav-note .student-tools-menu {
    display:block;
    width:100%;
    flex:none;
    min-width:0;
  }
  .site-header.has-mobile-menu .nav-note .student-tools-menu > summary {
    cursor:pointer;
  }
  .site-header.has-mobile-menu .nav-note .student-tools-panel {
    position:static;
    box-sizing:border-box;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:3px;
    width:100%;
    max-width:100%;
    margin:4px 0 8px;
    padding:7px;
    border:1px solid rgba(209,226,248,.19);
    border-radius:9px;
    background:#142e49;
    box-shadow:none;
  }
  .site-header.has-mobile-menu .nav-note .student-tools-panel a {
    box-sizing:border-box;
    width:100%;
    min-width:0;
    color:#e0eafb;
    background:transparent;
    font-size:12px;
    line-height:1.35;
    padding:11px 9px;
    border-radius:7px;
    overflow-wrap:break-word;
  }
  .site-header.has-mobile-menu .nav-note .student-tools-panel a:hover,
  .site-header.has-mobile-menu .nav-note .student-tools-panel a[aria-current="page"] {
    color:#fff;
    background:#274c74;
  }

  /* Compact first impression: logo + menu, then a readable headline and form. */
  body > .hero {
    padding:29px 16px 51px;
  }
  body > .hero .eyebrow {
    margin-bottom:10px;
    font-size:11px;
    line-height:1.35;
    letter-spacing:.075em;
  }
  body > .hero h1 {
    max-width:620px;
    font-size:clamp(30px,7.8vw,39px);
    line-height:1.09;
    letter-spacing:-.04em;
  }
  body > .hero p {
    margin-top:13px;
    max-width:620px;
    font-size:14px;
    line-height:1.52;
  }
  body .search-panel {
    margin-top:-27px;
    padding:0 14px;
  }
  body .search-panel .search-box {
    grid-template-columns:minmax(0,1fr);
    gap:9px;
    padding:12px;
    border-radius:15px;
    box-shadow:0 13px 30px rgba(9,30,56,.11);
  }
  body .search-panel .search-box input {
    min-width:0;
    min-height:46px;
    padding-top:11px;
    padding-bottom:11px;
    font-size:16px;
  }
  body .search-panel .search-box #q {padding-left:43px;}
  body .search-panel .search-box button {
    min-height:45px;
    padding:9px 14px;
    font-size:15px;
    border-radius:9px;
  }
  body .search-panel .filters {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding:0 14px;
    margin-top:10px;
  }
  body .search-panel .filters > select {
    min-width:0;
    min-height:43px;
    font-size:13px;
    font-weight:580;
    line-height:1.3;
    padding:8px 26px 8px 10px;
    border-radius:9px;
  }
  body .search-panel .filters > .search-advanced {
    grid-column:1 / -1;
  }
  body .search-panel .filters > .search-advanced > summary {
    min-height:43px;
    font-size:13px;
  }
  body .search-panel .filters .search-advanced-inner {
    right:14px;
    width:calc(100% - 28px);
    max-height:min(70vh,630px);
    padding:14px;
  }
  body .active-filters {padding:0 14px;}
  body .content {
    padding:18px 14px 36px;
  }
  body .content-header {
    margin-bottom:9px;
    gap:6px 14px;
  }
  body .content-header h2 {
    font-size:21px;
    line-height:1.2;
  }
  body .content-header .results-tools {
    gap:6px 13px;
  }
  body .content-header .result-count,
  body .content-header #createAlertLink {
    font-size:12px;
  }
  body .specialty-shortcuts {
    gap:6px;
    margin:0 0 13px;
    line-height:1.25;
  }
  body .specialty-shortcuts .specialty-label {
    flex-basis:100%;
    font-size:12px;
  }
  body .specialty-shortcuts > a,
  body .specialty-shortcuts .specialty-more > summary {
    min-height:31px;
    padding:6px 9px;
    border-radius:8px;
    font-size:11px;
  }
  body #out {gap:10px;}
  body #out .job-card {
    padding:16px;
    border-radius:13px;
    gap:11px;
    align-items:stretch;
  }
  body #out .job-main {width:100%;}
  body #out .job-title {
    margin-bottom:5px;
    font-size:17px;
    line-height:1.31;
  }
  body #out .company {
    margin-bottom:5px;
    font-size:14px;
    line-height:1.34;
  }
  body #out .job-meta {
    font-size:12px;
    line-height:1.35;
  }
  body #out .job-tags {
    gap:5px 6px;
    margin-top:10px;
  }
  body #out .job-tag {
    font-size:11px;
    line-height:1.25;
    padding:5px 8px;
    white-space:normal;
  }
  body #out .job-evidence {
    margin-top:9px;
    border-radius:9px;
  }
  body #out .job-evidence > summary {
    min-height:40px;
    padding:9px 10px;
    font-size:12px;
  }
  body #out .job-actions {
    box-sizing:border-box;
    display:flex;
    flex-direction:row;
    width:100%;
    gap:15px;
    align-items:center;
    justify-content:flex-start;
    flex-wrap:wrap;
    flex-shrink:0;
    margin-top:2px;
    padding-top:11px;
    border-top:1px solid #edf1f7;
  }
  body #out .job-actions .view-button {
    display:inline-flex;
    width:auto;
    min-height:41px;
    padding:9px 17px;
    font-size:13px;
    flex:0 0 auto;
  }
  body #out .job-actions .save-button {
    min-height:41px;
    font-size:13px;
  }
}
@media (max-width:350px) {
  .site-header.has-mobile-menu .topbar-inner {gap:6px;padding:11px 12px;}
  .site-header.has-mobile-menu .brand-name {font-size:16px;}
  .site-header.has-mobile-menu .mobile-nav-toggle {min-width:73px;padding:8px;}
  body .search-panel .filters > select {font-size:13px;padding-left:8px;padding-right:22px;}
  body .specialty-shortcuts > a,
  body .specialty-shortcuts .specialty-more > summary {font-size:10.5px;}
}
@media (max-width:760px) and (prefers-reduced-motion: reduce) {
  .site-header.has-mobile-menu .nav-note,
  body #out .job-card {scroll-behavior:auto;transition:none;}
}