/* employee pages: layouts matched to the prototype. Shared components live in app.css. */

/* Page head with an eyebrow line above the title (date, breadcrumb). */
.e-head .eyebrow{display:block;margin-bottom:6px}
.e-head .eyebrow a{color:var(--brand);text-decoration:underline}

/* Simple list rows inside a panel: icon or initials, text, chips and actions. */
.e-list{display:flex;flex-direction:column;margin-top:10px}
.e-li{display:flex;gap:14px;align-items:center;padding:14px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.e-li:first-child{border-top:0;padding-top:4px}
.e-li .t{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:1px}
.e-li .t b{font-weight:700}
.e-li .acts{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.e-ini{width:40px;height:40px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;font-weight:800;font-size:.8rem;color:var(--muted);flex-shrink:0}
.e-ini svg{width:18px;height:18px}
a.e-li{color:inherit;text-decoration:none}
a.e-li:hover b{color:var(--brand)}

/* Butter cover card (EmployTrail ID). */
.e-cover{background:var(--cover);color:var(--cover-ink);border-radius:var(--r-md);padding:20px 22px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.e-cover .eyebrow{color:inherit;opacity:.8}
.e-cover code{font-size:1.6rem;letter-spacing:.05em;overflow-wrap:anywhere}
.e-cover p{opacity:.85;font-size:.9rem}
.btn.e-on-cover{background:var(--cover-ink);border-color:var(--cover-ink);color:var(--cover)}
.btn.e-on-cover:hover{opacity:.9;border-color:var(--cover-ink)}

/* Trail strength checklist. */
.e-strength .meter{max-width:none;margin-top:12px}
.e-checks{list-style:none;margin:8px 0 0;padding:0}
.e-checks li{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line);font-size:.94rem}
.e-checks li:first-child{border-top:0}
.e-checks a{color:inherit}

/* Jobs section heading on the trail page. */
.e-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px 20px;flex-wrap:wrap;margin:36px 0 16px}
.e-section-head h2{font-size:clamp(1.4rem,2.6vw,1.8rem);font-weight:800}
.e-section-head p{color:var(--muted);margin-top:6px;max-width:64ch}

/* Trail filter: radio buttons styled as a segmented control. Works without JS. */
.e-filter{display:inline-flex;gap:2px;padding:3px;border-radius:12px;background:var(--surface-2);flex-wrap:wrap;margin:0 0 14px;border:0}
.e-filter label{position:relative}
.e-filter input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.e-filter span{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:9px;font-weight:600;font-size:.9rem;color:var(--muted)}
.e-filter input:checked + span{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(23,25,28,.12)}
.e-filter input:focus-visible + span{outline:2.5px solid var(--brand);outline-offset:2px}
.e-jobs:has(#tf-verified:checked) .trail > .t-item:not([data-group="verified"]),
.e-jobs:has(#tf-waiting:checked) .trail > .t-item:not([data-group="waiting"]),
.e-jobs:has(#tf-action:checked) .trail > .t-item:not([data-group="action"]){display:none}
.e-jobs .e-filter-empty{display:none}

/* Stamped trail entry (also used on the employer's candidate page). */
.t-item.entry{gap:14px 18px}
.t-item.entry > .t-card{grid-column:1;grid-row:1}
.t-item.entry > .stamp{grid-column:2;grid-row:1}
.t-item.entry > .t-body,.t-item.entry > .t-foot{grid-column:1/-1;min-width:0}
.t-item.entry > .t-body:not(:has(*)){display:none}
.t-when{font-family:var(--font-m);font-size:.76rem;font-weight:700;letter-spacing:.02em;color:var(--muted);text-transform:uppercase}
.t-item.entry h3{margin-top:4px;font-size:1.15rem}
.t-meta-row{display:flex;gap:4px 10px;flex-wrap:wrap;color:var(--muted);font-size:.9rem;margin-top:4px}
.t-meta-row .sep{opacity:.7}
.t-item.entry .t-note{margin-top:0}
.t-item.entry .evid{margin-top:8px}
.t-item.entry .t-body > :first-child{margin-top:0}
.t-foot{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding-top:12px;border-top:1px dashed var(--line)}
.t-foot .t-by{display:flex;gap:6px 10px;align-items:center;flex-wrap:wrap;min-width:0;flex:1 1 300px}
.t-foot .t-by .hint{overflow-wrap:anywhere}
.t-foot .acts{display:flex;gap:6px;flex-wrap:wrap}
.t-foot .acts form{margin:0}
.stamp{width:92px;height:92px;border-radius:50%;border:2px solid currentColor;display:grid;place-items:center;text-align:center;transform:rotate(-8deg);font:800 .62rem/1.15 var(--font-h);letter-spacing:.12em;text-transform:uppercase;position:relative;flex-shrink:0;color:var(--na);padding:6px}
.stamp::before{content:"";position:absolute;inset:5px;border-radius:50%;border:1px dashed currentColor;opacity:.7}
.stamp b{display:block;font-size:.8rem;letter-spacing:.06em;margin:2px 0}
.stamp > div{max-width:76px;overflow:hidden}
.stamp.ok{color:var(--ok)}.stamp.wait{color:var(--wait)}.stamp.bad{color:var(--bad)}.stamp.ev{color:var(--ev)}.stamp.na{color:var(--na)}
@media (max-width:520px){.stamp{width:70px;height:70px;font-size:.5rem;padding:4px}.stamp b{font-size:.62rem}.stamp > div{max-width:58px}}

/* Card grid (guarantors, letters). */
.e-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
.e-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:20px 22px;display:flex;flex-direction:column;gap:12px;min-width:0}
.e-card.flat{background:transparent;border-style:dashed;justify-content:center;align-items:flex-start}
.e-card .dl{margin:0}
.e-card .t-note{margin:0}
.e-card .acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}
.e-card .acts form{margin:0}
.e-code{font-family:var(--font-m);font-weight:700;font-size:1.1rem;letter-spacing:.04em;overflow-wrap:anywhere}

/* Side note box: dashed, transparent (What happens next). */
.panel.e-flat{background:transparent;border-style:dashed}
.e-steps{margin:10px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:8px;font-size:.92rem}
.e-note{border-radius:12px;padding:12px 14px;background:var(--brand-soft);color:var(--ink);font-size:.92rem;display:flex;gap:10px;align-items:flex-start}
.e-note svg{width:18px;height:18px;color:var(--brand);margin-top:2px;flex-shrink:0}
.e-note.wait{background:var(--wait-soft)}
.e-note.wait svg{color:var(--wait)}

/* CV: editor column beside the preview. */
.e-cv{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:22px;align-items:start}
.e-cv > div{display:flex;flex-direction:column;gap:16px;min-width:0}
@media (max-width:1000px){.e-cv{grid-template-columns:1fr}}
.e-share-url{font-family:var(--font-m);font-size:.78rem;font-weight:500;overflow-wrap:anywhere;padding:8px 10px;border-radius:10px;background:var(--surface-2)}
.t-meta-row .t-co{margin:0;font-weight:500}
.e-checks li{flex-wrap:nowrap}
.e-checks li > :first-child{flex:1 1 auto;min-width:0}
.e-checks li > .chip{flex-shrink:0}
.e-card .dl .chip{white-space:normal;max-width:100%}
.e-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
