/* careers.vwsol.com: job board + manager admin. Builds on site.css tokens. */

/* ---- Public header/footer ---- */
.careers-header { background: rgb(255 255 255 / 92%); }
.careers-nav { display: flex; gap: 4px; }
.careers-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.careers-nav a:hover { background: var(--tint); }
.careers-footer { border-top: 1px solid var(--line); background: var(--tint); padding: 28px 0; font-size: .9rem; color: var(--muted); }
.careers-footer p { margin: 0 0 4px; }
.careers-footer a { color: var(--muted); }

/* ---- Job board ---- */
.careers-hero { position: relative; padding: 76px 0 60px; color: #fff; background: var(--green-900); overflow: hidden; isolation: isolate; }
.careers-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60rem 30rem at 85% -10%, rgb(59 180 74 / 38%), transparent 60%), radial-gradient(40rem 24rem at -10% 120%, rgb(236 32 40 / 22%), transparent 60%); }
.careers-hero h1 { color: #fff; max-width: 18ch; }
.careers-hero .eyebrow { color: #9be3a4; }
.careers-hero .lead { color: rgb(255 255 255 / 82%); }
.careers-hero a:not(.btn) { color: #9be3a4; }

.jobs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.jobs-head h2 { margin: 0; }
.jobs-count { color: var(--muted); font-weight: 600; font-size: .95rem; }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.job-card { display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; position: relative; }
.job-card:hover { border-color: #b9dcbe; transform: translateY(-1px); }
.job-card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.job-card h3 a { color: var(--ink); text-decoration: none; }
.job-card h3 a::after { content: ""; position: absolute; inset: 0; }
.job-card .btn { position: relative; flex: none; }
.job-summary { margin: 10px 0 0; color: var(--body); max-width: 70ch; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: var(--muted); font-size: .93rem; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta .icon { width: 18px; height: 18px; color: var(--green-700); }
.job-meta-lg { font-size: 1rem; margin: 4px 0 18px; }
.careers-hero .job-meta, .job-hero .job-meta { color: rgb(255 255 255 / 85%); }
.job-hero .job-meta .icon { color: #9be3a4; }
.empty-jobs { padding: 44px 28px; text-align: center; border: 1.5px dashed #c8d4cb; border-radius: var(--radius); background: var(--tint); }
.empty-jobs p { color: var(--muted); margin: 0; }
@media (max-width: 680px) { .job-card { flex-direction: column; align-items: stretch; padding: 20px; } }

.job-hero { padding: 48px 0 44px; color: #fff; background: var(--green-900); position: relative; isolation: isolate; overflow: hidden; }
.job-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50rem 26rem at 90% -20%, rgb(59 180 74 / 36%), transparent 60%); }
.job-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .3em; }
.job-hero .lead { color: rgb(255 255 255 / 82%); margin-bottom: 22px; }
.crumbs { font-size: .9rem; margin: 0 0 14px; color: var(--muted); }
.job-hero .crumbs a { color: #9be3a4; }
.preview-banner { background: #fff6d6; color: #5c4700; text-align: center; padding: 10px 16px; font-size: .93rem; border-bottom: 1px solid #f0dd9a; }

.job-layout { display: grid; gap: 40px; }
.job-layout > * { max-width: 880px; min-width: 0; }
.job-description { font-size: 1.02rem; }
.job-description h3 { margin-top: 1.4em; font-size: 1.25rem; }
.job-description h3:first-child { margin-top: 0; }
.job-description ul { padding-left: 1.2em; }

/* ---- Application form ---- */
.apply-form { scroll-margin-top: 90px; }
.apply-form-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 8px; }
.apply-form-head h2 { font-size: 1.6rem; margin-bottom: .3em; scroll-margin-top: 100px; }
.apply-form-head p { margin: 0 0 6px; }
.apply-form-head .req-note { margin: 8px 0 0; }
.app-section { padding: 22px 0 6px; border-bottom: 1px solid var(--line); }
.app-section:last-of-type { border-bottom: 0; }
.app-section h3 { font-size: 1.2rem; margin: 0 0 4px; color: var(--green-900); }
.app-section-text { color: var(--muted); font-size: .93rem; margin: 0 0 6px; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding-top: 12px; }
.app-grid .w-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .app-grid { grid-template-columns: 1fr; } }
.field .label { display: block; font-weight: 600; font-size: .93rem; color: var(--ink); margin-bottom: 8px; padding: 0; }
.choice-group { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.choices .opt { padding: 9px 16px 9px 12px; border: 1.5px solid #cdd6cf; border-radius: 999px; background: #fff; transition: border-color .15s, background .15s; font-size: .95rem; }
.choices .opt:hover { border-color: var(--green); }
.choices .opt:has(input:checked) { border-color: var(--green-700); background: #e9f6eb; color: var(--green-900); }
.choices .opt:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.field .opt input, .opt input { width: 18px; height: 18px; margin: 0; padding: 0; flex: none; accent-color: var(--green-700); box-shadow: none; }
.field.has-error .choices .opt { border-color: #f1a7aa; }
.field input[type="date"] { max-width: none; }
.file-drop { display: flex !important; align-items: center; gap: 14px; padding: 16px 18px; margin: 0 !important; border: 1.5px dashed #b9c6bd; border-radius: 12px; background: var(--tint); color: var(--muted); cursor: pointer; font-weight: 400 !important; transition: border-color .15s, background .15s; }
.file-drop:hover { border-color: var(--green); background: #eaf5ec; }
.file-drop .icon { color: var(--green-700); }
.file-drop-text strong { color: var(--ink); margin-right: 4px; }
.file-drop.has-file { border-style: solid; border-color: var(--green-700); background: #e9f6eb; }
.field .file-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.file-input:focus-visible + * , .file-drop:has(+ .file-input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.apply-form .btn-block { margin-top: 22px; }
.apply-fine { font-size: .85rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

.thanks-hero { text-align: center; padding: 90px 0; }
.thanks-hero h1 { margin-inline: auto; }
.thanks-hero .lead { margin-inline: auto; }
.thanks-hero .btn-outline { border-color: #9be3a4; color: #fff; }
.thanks-hero .btn-outline:hover { background: #fff; color: var(--green-900); }
.thanks-mark { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.thanks-mark svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Admin ---- */
.careers-admin { background: #f5f7f5; }
.admin-bar { background: var(--green-900); color: #fff; position: sticky; top: 0; z-index: 40; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.admin-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 700 1.05rem var(--font-head); }
.admin-brand img { background: #fff; border-radius: 8px; padding: 3px 6px; width: 46px; height: auto; }
.admin-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.admin-nav a, .admin-nav .linklike { color: rgb(255 255 255 / 85%); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.admin-nav a:hover, .admin-nav .linklike:hover { background: rgb(255 255 255 / 10%); color: #fff; }
.admin-nav form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--green-700); }
.linklike.danger { color: var(--red-700); font-weight: 600; }
.admin-main { padding: 32px 0 80px; }
.admin-main h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 4px; }
.admin-main .crumbs a { color: var(--green-700); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-sub { color: var(--muted); margin: 0; font-size: .95rem; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: var(--body); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: #c3cec6; color: var(--ink); }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafcfa; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fafcfa; }
.admin-table tr.is-new .row-title { font-weight: 700; }
.row-title { font-weight: 600; color: var(--ink); text-decoration: none; }
a.row-title:hover { color: var(--green-700); text-decoration: underline; }
.row-sub { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions > * { margin-left: 6px; }
.row-actions form { display: inline; }
.nowrap { white-space: nowrap; }
.empty-row { text-align: center; color: var(--muted); padding: 40px 16px !important; }
.muted { color: var(--muted); }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eef1ef; color: var(--body); white-space: nowrap; }
.pill-open, .pill-hired { background: #e3f4e5; color: var(--green-900); }
.pill-draft, .pill-reviewing { background: #fff3cf; color: #6b5200; }
.pill-closed, .pill-declined { background: #eef1ef; color: var(--muted); }
.pill-new { background: #fde8e9; color: var(--red-700); }
.pill-interview { background: #e3eefc; color: #1d4f91; }
.new-badge { font-size: .78rem; font-weight: 700; color: var(--red-700); background: #fde8e9; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }

.flash { border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-weight: 500; }
.flash-ok { background: #e3f4e5; color: var(--green-900); }
.link-box p { margin: 0 0 10px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font: .9rem/1.4 ui-monospace, Consolas, monospace; padding: 9px 12px; border: 1.5px solid #b9dcbe; border-radius: 8px; background: #fff; }

.filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input { font: inherit; font-size: .95rem; padding: 8px 12px; border: 1.5px solid #cdd6cf; border-radius: 10px; background: #fff; }
.filter-bar input { flex: 1; min-width: 200px; }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .editor-grid { grid-template-columns: 1fr; } }
.editor-col { display: grid; gap: 24px; min-width: 0; }
.editor-card { padding: 24px; }
.editor-card h2 { font-size: 1.2rem; margin-bottom: 14px; }
.editor-side { display: grid; gap: 16px; }
.sticky-card { position: sticky; top: 80px; }
@media (max-width: 960px) { .sticky-card { position: static; } }
.status-pick { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.status-pick .opt { font-size: .93rem; }
.slug-input { display: flex; align-items: center; border: 1.5px solid #cdd6cf; border-radius: 10px; overflow: hidden; background: #fff; }
.slug-input span { padding: 0 2px 0 12px; color: var(--muted); font-size: .93rem; }
.field .slug-input input { border: 0; padding-left: 2px; box-shadow: none !important; }
.slug-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgb(59 180 74 / 18%); }
.danger-zone { padding: 0 8px; }
.danger-zone .field-help { margin-top: 4px; }
.form-alert ul { margin: 6px 0 0; padding-left: 1.2em; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: #eef1ef; padding: 1px 5px; border-radius: 4px; }

/* Form builder */
.builder-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.builder-head h2 { margin-bottom: 2px; }
.builder-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.builder-tools select { font: inherit; font-size: .9rem; padding: 6px 10px; border: 1.5px solid #cdd6cf; border-radius: 999px; background: #fff; }
.builder { display: grid; gap: 6px; margin-bottom: 14px; }
.b-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.b-item.b-section { background: var(--tint); border-color: #cfe5d3; margin-top: 10px; }
.b-item.b-section:first-child { margin-top: 0; }
.b-item.is-open { border-color: var(--green); box-shadow: 0 0 0 3px rgb(59 180 74 / 14%); }
.b-head { display: flex; align-items: center; gap: 6px; padding-right: 6px; }
.b-toggle { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); border-radius: 10px; }
.b-toggle:hover { background: rgb(0 0 0 / 2%); }
.b-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .93rem; }
.b-summary strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.b-section .b-summary strong { font: 700 1rem var(--font-head); color: var(--green-900); }
.b-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; min-width: 92px; }
.b-tag { font-size: .72rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #eef1ef; color: var(--muted); }
.b-req { background: #fde8e9; color: var(--red-700); }
.b-lock { background: #e3eefc; color: #1d4f91; }
.b-actions { display: flex; gap: 2px; }
.b-icon { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--muted); font-size: 1.05rem; line-height: 1; }
.b-icon:hover:not([disabled]) { background: #eef1ef; color: var(--ink); }
.b-icon[disabled] { opacity: .3; cursor: default; }
.b-del:hover:not([disabled]) { background: #fde8e9; color: var(--red-700); }
.b-edit { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.b-edit .field { margin: 12px 0 0; }
.b-edit .field-row { gap: 12px; }
.b-edit .field label { font-size: .85rem; }
.b-edit .field input, .b-edit .field select, .b-edit .field textarea { padding: 8px 11px; font-size: .95rem; }
.b-checks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: .93rem; }
.builder-add { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .b-kind { min-width: 0; } }

/* Application detail */
.answers { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.answer { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.answer-wide { grid-column: 1 / -1; }
.answer dt { font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.answer dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 600px) { .answers { grid-template-columns: 1fr; } }
.lock { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; background: #fff3cf; color: #6b5200; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.file-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.file-link .icon { width: 18px; height: 18px; }

/* Sign-in */
.auth-page { background: var(--green-900); min-height: 100vh; }
.auth-page .careers-header, .auth-page .careers-footer { display: none; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(50rem 30rem at 80% -10%, rgb(59 180 74 / 32%), transparent 60%); }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 4px; }
.auth-logo { width: 72px; height: auto; margin-bottom: 18px; }
.auth-sub { color: var(--muted); margin-bottom: 20px; }
.auth-fine { font-size: .85rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
@media (max-width: 700px) { .admin-bar { position: static; } }
