/* Mobile navigation, readable controls and compact opportunity cards. */
.filter-backdrop { display: none; }
@media (max-width: 800px) {
    .filter-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: #14271970; z-index: 49; }
    .shell { width: calc(100% - 32px); }
    .nav-toggle { width: 44px; height: 44px; border-radius: 12px; }
    .main-nav { max-height: calc(100dvh - 74px); overflow-y: auto; padding: 16px; gap: 8px; }
    .main-nav > a, .main-nav .nav-link-button { min-height: 44px; display: flex; align-items: center; padding: 12px; font-size: 16px; }
    .main-nav > form, .main-nav .nav-link-button { width: 100%; }
    .listing-grid > *, .card-top > *, .job-heading { min-width: 0; }
    .filter-mobile-button { width: 100%; min-height: 48px; margin-bottom: 16px; border: 1px solid var(--border); background: white; font-size: 16px; border-radius: 12px; }
    .filter-panel { width: min(420px, 100%); height: 100dvh; padding: 20px 20px max(24px, env(safe-area-inset-bottom)); overscroll-behavior: contain; box-shadow: none; }
    .filter-title { top: -20px; padding: 16px 0; z-index: 1; }
    .filter-close { min-width: 44px; min-height: 44px; }
    .filter-check { min-height: 44px; }
    .filter-panel .form-select, .filter-panel .form-control { min-height: 48px; font-size: 16px; }
    .form-control, .form-select, .specialty-select > summary { font-size: 16px; min-height: 48px; }
    .specialty-select-options > label { min-height: 44px; font-size: 16px; }
    .content-panel, .detail-article, .job-summary { border-radius: 16px; }
    .form-page, .content-page, .detail-page { padding-top: 28px; padding-bottom: 36px; }
    .footer-content { gap: 16px; padding-top: 28px; padding-bottom: 28px; }
    .footer-content p, .footer-content > span { font-size: 14px; margin: 0; }
    .page-button { min-width: 44px; min-height: 44px; }
    .pagination-bar { flex-wrap: wrap; gap: 12px; }
    .pagination-bar > div { display: flex; flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 650px) {
    .hero { background: radial-gradient(ellipse at 100% 0, #3c7053 0, transparent 60%), linear-gradient(145deg, #123e32, #1c513e); color: #fff; }
    .hero::before { width: 260px; height: 260px; top: -115px; right: -120px; background: transparent; border: 1px solid #d6ee8e30; box-shadow: 0 0 0 35px #d6ee8e07, 0 0 0 70px #d6ee8e05; pointer-events: none; }
    .hero::after { content: ''; position: absolute; width: 170px; height: 170px; left: -110px; bottom: -70px; border-radius: 50%; border: 1px solid #d6ee8e25; pointer-events: none; }
    .hero-inner { position: relative; z-index: 1; padding: 36px 0 52px; text-align: center; }
    .hero-copy { max-width: 460px; margin: 0 auto; }
    .hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid #ffffff24; border-radius: 30px; background: #ffffff08; color: #e4efd9; font-size: 9px; letter-spacing: 1.4px; line-height: 1.5; }
    .hero .live-dot { background: #d6ee8e; box-shadow: 0 0 0 4px #d6ee8e18; flex-shrink: 0; }
    .hero h1 { font-size: clamp(33px, 9vw, 46px); line-height: 1.15; letter-spacing: -1.3px; margin: 24px 0; font-weight: 800; color: #fff; text-wrap: balance; }
    .hero h1 > span { color: #d6ee8e; }
    .hero h1 svg { stroke: #d6ee8e; opacity: .7; height: 10px; bottom: -7px; }
    .hero-copy > p { font-size: 15px; line-height: 1.75; color: #d9e5dc; margin: 0 auto; max-width: 350px; text-wrap: pretty; }
    .hero-meta { justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; font-size: 11px; color: #e6eee7; }
    .hero-tools { flex-direction: column; align-items: center; }
    .hero-tools > a { max-width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 9px; background: var(--green); border: 1px solid var(--green); color: #fff; font-size:20px; }
    .hero-tools > a:hover { background: var(--deep); color: #fff; }
    .hero-meta span:last-child { max-width: none; }
    .hero-meta i { color: #d6ee8e; }
    .hero-browse { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px auto 0; max-width: 350px; padding: 12px 20px; border-radius: 13px; background: #d6ee8e; color: #123e32; font-size: 16px; font-weight: 750; box-shadow: 0 8px 24px #08291d35; }
    .hero-browse i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #123e3210; }
    .hero-browse:hover { background: #e2f4b1; color: #123e32; text-decoration: none; }
    .hero-browse:focus-visible { outline-color: #fff; }
    .search-bar { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border-radius: 16px; }
    .search-bar .search-field { flex: auto; width: 100%; min-width: 0; min-height: 54px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--border); }
    .search-field input, .search-field select { width: 100%; min-width: 0; font-size: 16px; }
    .search-bar .search-submit { width: 100%; min-height: 48px; margin-top: 10px; font-size: 16px; border-radius: 10px; }
    .popular { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; gap: 8px; font-size: 12px; white-space: nowrap; }
    .popular a { flex-shrink: 0; min-height: 40px; display: inline-flex; align-items: center; }
    .section-heading h2 { font-size: 28px; line-height: 1.2; }
    .section-heading p { font-size: 15px; line-height: 1.6; }
    .results-toolbar { gap: 12px; padding: 14px; font-size: 14px; }
    .sort-label { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
    .sort-label select { font-size: 16px; min-height: 44px; min-width: 0; }
    .job-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .job-card { padding: 16px; }
    .job-heading h3 { font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
    .company-name { font-size: 14px; overflow-wrap: anywhere; }
    .save-job { width: 40px; height: 40px; }
    .job-meta { font-size: 14px; gap: 8px; }
    .job-excerpt { font-size: 14px; }
    .card-bottom { flex-direction: column; align-items: stretch; gap: 12px; }
    .job-dates { font-size: 12px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
    .view-job { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; border-radius: 10px; }
    .content-panel, .detail-article, .job-summary { padding: 20px; }
    .detail-article h1, .form-page h1, .content-page h1 { font-size: 28px; overflow-wrap: anywhere; }
    .job-summary dd { overflow-wrap: anywhere; }
    .recruiter-banner { padding: 22px; gap: 20px; flex-direction: column; align-items: stretch; }
    .recruiter-banner .btn { width: 100%; min-height: 48px; }
    .footer-content { flex-direction: column; align-items: flex-start; }
}
