/* Staffhero Jobs - job board + candidate portal.
   Loaded after app.css; matches the public site (assets/css/site.css). */

.portal-body {
    --navy:    #0b2545;
    --navy2:   #13315c;
    --amber:   #f4a300;
    --amber-d: #d98e00;
    --ink:     #1d2733;
    --muted:   #5a6b80;
    --bg:      #f6f8fb;
    --line:    #e3e8ef;
    --brand:   #13315c;
    --brand-dark: #0b2545;
    --radius:  14px;

    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.portal-body a { color: var(--navy2); }

/* ---------- Header ---------- */

.pnav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 14px 6%;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.pnav-logo { font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; text-decoration: none; }
.pnav-logo span { color: var(--amber); }
.pnav-logo small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 8px; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.pnav-links { display: flex; gap: 6px; align-items: center; }
.pnav-links a, .pnav-form button {
    display: inline-block; padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 15px;
    color: var(--navy); background: none; border: 0; cursor: pointer; font-family: inherit; text-decoration: none;
}
.pnav-links a:hover, .pnav-links a.active, .pnav-form button:hover { background: #eef2f8; text-decoration: none; }
.pnav-links a.pnav-cta { background: var(--amber); color: var(--navy); }
.pnav-links a.pnav-cta:hover { background: var(--amber-d); }
.pnav-form { display: inline; }
.pnav-toggle, .pnav-burger { display: none; }

/* ---------- Hero band ---------- */

.phero {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy2) 60%, #1c4076 100%);
    color: #fff; padding: 56px 6% 84px; position: relative; overflow: hidden;
}
.phero::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(244, 163, 0, .25), transparent 70%); border-radius: 50%;
}
.phero-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 2; }
.phero .eyebrow {
    display: inline-block; background: rgba(244, 163, 0, .18); color: var(--amber); padding: 5px 13px;
    border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px;
}
.phero h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -.8px; margin: 0 0 10px; }
.phero h1 em { font-style: normal; color: var(--amber); }
.phero p { font-size: 17px; color: #cdd9e8; max-width: 640px; margin: 0; }
.phero.compact { padding: 40px 6% 72px; }
.phero .crumb { font-size: 14px; margin-bottom: 14px; }
.phero .crumb a { color: #cdd9e8; }
.phero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 15px; color: #cdd9e8; }
.phero .meta span::before { content: "\25CF"; font-size: 8px; vertical-align: 3px; margin-right: 8px; color: var(--amber); }

/* ---------- Main column ---------- */

.pmain { width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 6% 56px; flex: 1; }
.pmain.narrow { max-width: 560px; }
.pmain.lifted { margin-top: -52px; position: relative; z-index: 3; }
.portal-body .alert { border-radius: 10px; }

/* ---------- Search / filter bar ---------- */

.pfilter {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(11, 37, 69, .12); padding: 16px; margin-bottom: 22px;
    display: grid; grid-template-columns: 1fr 220px auto; gap: 12px; align-items: end;
}
.pfilter .field { margin: 0; }
.pfilter label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pfilter input, .pfilter select { min-height: 46px; border-radius: 10px; font-size: 15px; }
.pfilter .actions { display: flex; gap: 8px; }
.pfilter .clear { align-self: center; font-size: 14px; color: var(--muted); white-space: nowrap; }

.presults { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.presults h2 { margin: 0; font-size: 18px; color: var(--navy); }
.presults .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
.chip a { color: var(--navy); font-weight: 700; text-decoration: none; }

/* ---------- Job cards ---------- */

.pjobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pjob {
    display: flex; flex-direction: column; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px;
    transition: transform .15s, box-shadow .15s; position: relative;
}
.pjob:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11, 37, 69, .08); }
.pjob .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }
.tag-new { background: rgba(244, 163, 0, .16); color: #9a6300; }
.tag-closing { background: #fdecec; color: #9b2226; }
.tag-applied { background: #e6f4ea; color: #1e6b3a; }
.pjob h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; line-height: 1.25; }
.pjob h3 a { color: inherit; text-decoration: none; }
.pjob h3 a::after { content: ""; position: absolute; inset: 0; }          /* whole card is a link */
.pjob .where { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.pjob .where svg { width: 15px; height: 15px; flex: none; }
.pjob .snippet { margin: 0; font-size: 14.5px; color: #3c4a5c; flex: 1; }
.pjob .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 4px; font-size: 13px; color: var(--muted); }
.pjob .foot .btn-row { position: relative; z-index: 1; }                     /* buttons above the card link */

.pempty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; }
.pempty h3 { margin: 0 0 8px; font-size: 20px; color: var(--navy); }
.pempty p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Buttons (override the recruiter-app palette) ---------- */

.portal-body .btn { min-height: 42px; border-radius: 10px; font-weight: 700; padding: 9px 18px; }
.portal-body .btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.portal-body .btn-primary { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.portal-body .btn-primary:hover { background: var(--amber-d); border-color: var(--amber-d); color: var(--navy); }
.portal-body .btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.portal-body .btn-navy:hover { background: var(--navy2); border-color: var(--navy2); color: #fff; }
.portal-body .btn-ghost { color: var(--navy); }

/* ---------- Cards, detail layout, forms ---------- */

.portal-body .card { border-radius: var(--radius); box-shadow: 0 1px 3px rgba(11, 37, 69, .06); }
.portal-body .card-head h2 { color: var(--navy); font-size: 16px; }
.pdetail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.pdetail .side { position: sticky; top: 84px; }
.advert { font-size: 16px; line-height: 1.7; white-space: pre-line; color: #2a3646; }
.advert-empty { color: var(--muted); font-size: 15px; }
.pkv { margin: 0; }
.pkv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pkv div:last-child { border-bottom: 0; }
.pkv dt { color: var(--muted); }
.pkv dd { margin: 0; font-weight: 600; text-align: right; }
.pcta { display: flex; flex-direction: column; gap: 10px; }
.pcta .btn { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; }
.pcta .hint { text-align: center; font-size: 13px; color: var(--muted); }

.portal-form { max-width: 520px; margin: 0 auto; }
.portal-form .btn { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; }
.portal-form .links { text-align: center; font-size: 14px; margin: 16px 0 0; color: var(--muted); }
.portal-hero { margin-bottom: 22px; }
.portal-hero h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.4px; color: var(--navy); }
.portal-hero p { margin: 0; color: var(--muted); font-size: 15px; max-width: 620px; }
.portal-body input, .portal-body select, .portal-body textarea { min-height: 44px; border-radius: 10px; }
.portal-body textarea { min-height: 96px; }

.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.progress span { display: block; height: 100%; background: var(--amber); border-radius: 99px; }

.profile-section { margin-bottom: 10px; }
.profile-section summary {
    cursor: pointer; font-weight: 700; font-size: 15px; padding: 16px 20px; list-style: none; color: var(--navy);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.profile-section summary::-webkit-details-marker { display: none; }
.profile-section summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; }
.profile-section[open] summary::after { content: "\2013"; }
.profile-section summary .done { font-size: 12px; color: var(--muted); font-weight: 500; }
.profile-section .card-body { border-top: 1px solid var(--line); }
.yesno { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 400; font-size: 14px; padding-top: 6px; }
.yesno label { display: flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.yesno input { width: auto; min-height: 0; }
.profile-view h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 6px; }
.profile-view h3:first-child { margin-top: 0; }

/* ---------- Footer ---------- */

.pfoot { background: var(--navy); color: #cdd9e8; padding: 36px 6% 24px; margin-top: auto; }
.pfoot-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.pfoot .pnav-logo { color: #fff; }
.pfoot p { margin: 4px 0 0; font-size: 13px; }
.pfoot-links { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.pfoot-links a { color: #cdd9e8; font-size: 14px; font-weight: 600; text-decoration: none; }
.pfoot-links a:hover { color: var(--amber); }
.pfoot-copy { max-width: 1080px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .pdetail { grid-template-columns: 1fr; }
    .pdetail .side { position: static; }
    .pfilter { grid-template-columns: 1fr 1fr; }
    .pfilter .actions { grid-column: 1 / -1; }
    .pfilter .actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 640px) {
    .pnav { padding: 12px 16px; }
    .pnav-burger { display: flex; flex-direction: column; gap: 5px; padding: 10px; margin: -10px; cursor: pointer; }
    .pnav-burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
    .pnav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 12px; }
    .pnav-toggle:checked ~ .pnav-links { display: flex; }
    .pnav-links a, .pnav-form button { width: 100%; text-align: left; padding: 12px 14px; }
    .pnav-links a.pnav-cta { text-align: center; }
    .phero { padding: 36px 16px 72px; }
    .phero.compact { padding: 28px 16px 64px; }
    .pmain { padding-left: 16px; padding-right: 16px; }
    .pmain.lifted { margin-top: -48px; }
    .pfilter { grid-template-columns: 1fr; padding: 14px; }
    .pjobs { grid-template-columns: 1fr; }
    .pjob { padding: 18px; }
    .pjob .foot { flex-direction: column; align-items: stretch; }
    .pjob .foot .btn-row { width: 100%; }
    .pjob .foot .btn-row .btn { flex: 1; justify-content: center; }
    .portal-body .grid-2 { grid-template-columns: 1fr; }
    .pfoot-inner { flex-direction: column; }
}
