/* Phone and tablet polish. Loaded last so it can adjust earlier rules. */

/* Header buttons stay on one line. */
.header-action{white-space:nowrap}
/* Small screens hide the "+" icon on Post a Job, but the account initials must stay. */
@media(max-width:480px){
  .header-action.account-button .account-avatar{display:grid}
  .nav{gap:8px}
  .brand-button{min-width:0}
  .brand{font-size:15px;line-height:1.15}
}
@media(max-width:360px){
  .brand{max-width:118px;font-size:14px}
  .brand-mark{width:32px;height:32px}
  .header-action{padding:7px 9px;font-size:12px}
}

/* Number tiles: two per row on phones instead of one tall stack. */
@media(max-width:760px){
  .account-stats,.employer-kpis,.employer-job-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .employer-kpi{padding:14px}.employer-kpi b{font-size:24px}
}

/* My Applications: the status pill keeps its own size. */
@media(max-width:700px){
  .my-application .stage-pill{justify-self:start}
  .my-application-actions{flex-wrap:wrap}
}

/* Long words and links never push a page wider than the screen. */
.job-detail-card,.apply-card,.candidate-detail,.account-panel{overflow-wrap:anywhere}
img,video{max-width:100%;height:auto}

/* Comfortable tap targets on touch screens. */
@media(pointer:coarse){
  .link-btn{min-height:36px}
  .stage-chip{min-height:36px}
}

/* Job list sections: Envision's featured searches, then all jobs. */
.list-section{grid-column:1/-1;margin:6px 0 2px;font-size:13px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:var(--green-dark)}
.list-section + .job{margin-top:0}
