/* Board 46: the job board (hr.world/jobs) and applying (…/jobs/<posting>/apply). Loaded after pp.css (tokens, top bar,
   panels, buttons, footer) and jp.css (the jobs header, the .st pill). Rendered by src/server/jobs/board-page.ts and
   apply-page.ts. Montserrat; black, white and warm gray; no blue. */

.jb-wrap { flex: 1 1 auto; width: 100%; padding: 0 0 64px; }
.jb-wrap:focus { outline: none; }
.jb-inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 2vw, 32px); }
.jb-narrow { max-width: 720px; padding-top: 32px; }
.jb-p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.jb-small { font-size: 12px; line-height: 1.5; color: var(--soft); }
.jb-hint { font-size: 12px; line-height: 1.45; color: var(--soft); margin: 6px 0 0; }
.jb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jb-lbl { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.jb-input { width: 100%; min-height: 44px; border: 1.5px solid var(--light); border-radius: 4px; padding: 8px 12px; font-family: inherit; font-size: 15px; background: var(--paper); color: var(--ink); }
.jb-input:focus, .jb-select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.jb-select { min-height: 42px; border: 1.5px solid var(--light); border-radius: 4px; padding: 0 34px 0 12px; font-family: inherit; font-size: 14px; font-weight: 600; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c1c1c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--ink); appearance: none; }
.pp-btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.pp-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.pp-btn.primary[disabled]:hover { background: var(--ink); border-color: var(--ink); }

/* ---------------- the board: search band */
.jb-search { background: var(--paper); border-bottom: 1px solid var(--line); padding: 28px 0 20px; }
.jb-search h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 18px; }
.jb-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: stretch; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); }
.jb-field { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 54px; }
.jb-field > i { color: var(--soft); font-size: 15px; }
.jb-kw { border-right: 1px solid var(--line); }
.jb-barinput { flex: 1 1 auto; min-width: 0; height: 52px; border: 0; padding: 0; font-family: inherit; font-size: 16px; background: transparent; color: var(--ink); }
.jb-barinput:focus { outline: none; }
.jb-field:focus-within { box-shadow: inset 0 0 0 2px var(--tint); }
.jb-caret { border: 0; background: none; width: 36px; height: 36px; cursor: pointer; color: var(--ink); }
.jb-go { margin: 5px; min-height: 44px; padding: 0 24px; font-size: 15px; }
.jb-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 28px rgba(28, 28, 28, 0.14); max-height: 320px; overflow-y: auto; }
.jb-list li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 4px; font-size: 14px; cursor: pointer; }
.jb-list li[aria-selected="true"], .jb-list li:hover { background: var(--tint); }
.jb-list li small { margin-left: auto; font-size: 12px; color: var(--soft); white-space: nowrap; }
.jb-list li i { width: 16px; text-align: center; color: var(--soft); }
.jb-list li.empty { color: var(--soft); cursor: default; }
.jb-list li.empty:hover { background: none; }
.jb-list mark { background: none; color: var(--ink); font-weight: 800; }
.jb-combo { position: relative; }

/* filter pills */
.jb-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.jb-pill { position: relative; display: inline-flex; align-items: center; border: 1.5px solid var(--light); border-radius: 999px; background: var(--paper); }
.jb-pill summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.jb-pill summary::-webkit-details-marker { display: none; }
.jb-pill summary i { font-size: 10px; }
.jb-pill:hover { border-color: var(--ink); }
.jb-pill.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.jb-pill.on summary { padding-right: 6px; }
.jb-x { display: inline-flex; width: 30px; height: 30px; margin-right: 6px; align-items: center; justify-content: center; border-radius: 50%; color: var(--paper); font-size: 12px; }
.jb-x:hover { background: #4a4741; color: var(--paper); }
.jb-pop { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 280px; max-width: min(360px, calc(100vw - 32px)); padding: 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 30px rgba(28, 28, 28, 0.16); }
.jb-pop-foot { display: flex; justify-content: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.jb-checks { display: flex; flex-direction: column; gap: 2px; }
.jb-check { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 6px; border-radius: 4px; font-size: 14px; cursor: pointer; }
.jb-check:hover { background: var(--warm); }
.jb-check input { width: 18px; height: 18px; accent-color: #1c1c1c; margin: 0; }
.jb-check small { margin-left: auto; font-size: 12px; color: var(--soft); }
.jb-bens { max-height: 260px; overflow-y: auto; margin-top: 8px; }
.jb-payrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.jb-money { position: relative; flex: 1 1 110px; }
.jb-money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; }
.jb-money .jb-input { padding-left: 26px; }
.jb-seg { display: inline-flex; border: 1.5px solid var(--light); border-radius: 4px; overflow: hidden; }
.jb-seg label { cursor: pointer; }
.jb-seg input { position: absolute; opacity: 0; }
.jb-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; font-size: 13px; font-weight: 700; }
.jb-seg input:checked + span { background: var(--ink); color: var(--paper); }
.jb-seg input:focus-visible + span { outline: 3px solid var(--light); outline-offset: -3px; }
.jb-phonebar, .jb-sheethead { display: none; }
.jb-count-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; align-items: center; justify-content: center; }
.jb-signsave { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--light); }
.jb-before { margin: 0; font-size: 12px; font-weight: 700; color: var(--soft); text-align: center; }
.jb-clear { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--light); }

/* results and rail */
.jb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; padding-top: 24px; }
.jb-resultsbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.jb-count { font-size: 15px; color: var(--muted); }
.jb-count b { color: var(--ink); }
.jb-sortform { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.jb-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.jb-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px 18px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.jb-card { position: relative; cursor: pointer; }
.jb-card:hover, .jb-card:focus-within { border-color: var(--ink); background: #fbfaf8; }
.jb-card:hover .jb-title a { text-decoration: underline; text-underline-offset: 4px; }
/* The title link stretches over the whole card; the company, View job, Apply and Save sit above it. */
.jb-title a::after { content: ''; position: absolute; inset: 0; border-radius: 8px; }
.jb-title a:focus-visible { outline: none; }
.jb-title a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 2px; }
.jb-card .jb-co, .jb-card .jb-acts, .jb-card .jb-posted { position: relative; z-index: 1; }
.jb-excerpt { font-size: 14px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.jb-logo { display: inline-flex; width: 52px; height: 52px; border-radius: 8px; background: var(--warm); border: 1px solid var(--line); align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--accent); overflow: hidden; flex: 0 0 auto; }
.jb-logo.sm { width: 40px; height: 40px; font-size: 13px; }
.jb-logo-img { background: var(--paper); }
.jb-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.jb-card-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.jb-title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; }
.jb-title a { color: var(--ink); }
.jb-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.jb-co { width: fit-content; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--light); }
span.jb-co { text-decoration: none; }
.jb-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); }
.jb-facts span { display: inline-flex; align-items: center; gap: 7px; }
.jb-facts i { font-size: 12px; color: var(--soft); }
.jb-paytext b { color: var(--ink); }
.jb-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.jb-chips li { padding: 3px 10px; border-radius: 999px; background: var(--tint); font-size: 13px; font-weight: 600; }
.jb-chips li.more { background: var(--paper); border: 1.5px solid var(--light); }
.jb-match { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; padding: 10px 12px; border-radius: 6px; background: var(--warm); font-size: 13px; line-height: 1.5; color: var(--muted); }
.jb-match i { margin-top: 3px; color: var(--ink); }
.jb-match b { color: var(--ink); }
.jb-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 150px; }
.jb-posted { font-size: 13px; color: var(--soft); white-space: nowrap; }
.jb-acts { display: flex; flex-direction: column; gap: 8px; width: 150px; }
.jb-acts .pp-btn { width: 100%; }
.jb-acts .jb-view { min-height: 40px; }
.pp-btn.jb-save.on { border-color: var(--ink); }
.jb-applied { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; font-size: 14px; font-weight: 700; }
.jb-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.jb-showing { font-size: 14px; color: var(--muted); }
.jb-pgs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.jb-pg { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; border: 1.5px solid var(--light); border-radius: 4px; background: var(--paper); font-size: 14px; font-weight: 700; color: var(--ink); }
a.jb-pg:hover { border-color: var(--ink); color: var(--ink); }
.jb-pg.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.jb-pg i { font-size: 11px; }
.jb-gap { padding: 0 4px; color: var(--soft); }
.jb-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--top) + 16px); }
.jb-side { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.jb-side h2 { margin: 0; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.jb-side h2 i { font-size: 15px; }
.jb-alert-form, .jb-alert-code { display: flex; flex-direction: column; gap: 10px; }
.jb-codeinput { letter-spacing: 0.4em; font-size: 20px; font-weight: 700; text-align: center; }
.jb-how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.jb-how li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.jb-how i { margin-top: 3px; text-align: center; color: var(--ink); }
.jb-empty { padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.jb-empty h2 { margin: 0; font-size: 19px; font-weight: 800; }
.jb-empty-ic { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; background: var(--tint); align-items: center; justify-content: center; }
.jb-onrow { display: flex; flex-wrap: wrap; gap: 8px; }
.jb-onpill { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; }
.jb-onpill:hover { background: var(--accent); color: var(--paper); }
.jb-emptyacts { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.jb-done { padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.jb-done h1 { margin: 0; font-size: 24px; font-weight: 800; }

/* ---------------- applying */
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-top: 22px; }
.ap-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ap-back { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: 14px; font-weight: 700; color: var(--ink); }
.ap-eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.ap-h1 { margin: -8px 0 4px; font-size: 28px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.ap-signin { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 6px; background: var(--tint); font-size: 14px; }
.ap-a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--light); cursor: pointer; }
.ap-a:hover { text-decoration-color: var(--ink); }
.ap-form { display: flex; flex-direction: column; gap: 16px; }
.ap-sec { padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; }
.ap-sec.ap-selfid { border-style: dashed; border-color: var(--light); }
.ap-sechead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-sechead h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; }
.ap-n { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: 0 0 auto; }
.ap-n.done { background: var(--ink); color: var(--paper); }
.ap-n.done i, .pp-panel h2 .ap-n.done i { font-size: 12px; color: var(--paper); }
.ap-meta { font-size: 13px; font-weight: 700; color: var(--muted); }
.ap-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.ap-you { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 6px; }
.ap-you > div { padding: 14px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ap-you > div:first-child { border-left: 0; }
.ap-you dt { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.ap-you dd { margin: 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.ap-you .ap-a { font-size: 13px; width: fit-content; }
.ap-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ap-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ap-field > label { font-size: 13px; font-weight: 800; }
.ap-help { margin: 0; font-size: 12px; line-height: 1.45; color: var(--soft); }
.ap-err { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); display: flex; gap: 6px; }
.ap-err[hidden] { display: none; }
.ap-err::before { content: "\f071"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; margin-top: 1px; }
.ap-bad .jb-input, .jb-input.ap-bad, .ap-bad .ap-yn span, .ap-bad.ap-tick { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }

/* the profile card, files */
.ap-profile { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; border: 1.5px solid var(--ink); border-radius: 8px; }
.ap-photo { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #8a867d, #c9c6bf); color: var(--paper); align-items: center; justify-content: center; font-size: 20px; font-weight: 800; overflow: hidden; }
.ap-photo img { width: 100%; height: 100%; object-fit: cover; }
.ap-profile-id { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ap-profile-id h3 { margin: 0; font-size: 17px; font-weight: 800; }
.ap-sub { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.ap-counts { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.ap-counts span { display: inline-flex; gap: 6px; align-items: center; }
.ap-counts i { color: var(--soft); font-size: 12px; }
.ap-profile-acts { display: flex; flex-direction: column; gap: 8px; }
.ap-left { margin: -6px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.ap-tick { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--light); border-radius: 6px; cursor: pointer; }
.ap-tick:hover { border-color: var(--ink); }
.ap-tick input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #1c1c1c; flex: 0 0 auto; }
.ap-tick span { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.ap-tick small { font-size: 13px; color: var(--muted); }
.ap-tick:has(input:checked) { border-color: var(--ink); }
.ap-filebox { display: flex; flex-direction: column; gap: 12px; }
.ap-fileacts { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-fileinput { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ap-file { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 6px; background: var(--warm); border: 1px solid var(--line); }
.ap-file-ic { display: inline-flex; width: 40px; height: 46px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); align-items: center; justify-content: center; font-size: 18px; }
.ap-file b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.ap-file small { font-size: 13px; color: var(--muted); }
.ap-file-acts { display: flex; gap: 8px; }
.ap-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px; border: 2px dashed var(--ink); border-radius: 8px; text-align: center; }
.ap-drop.over { background: var(--warm); }
.ap-drop-ic { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; background: var(--tint); align-items: center; justify-content: center; font-size: 18px; }
.ap-drop p { margin: 0; }
.ap-tip { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; line-height: 1.5; }
.ap-tip i { margin-top: 3px; }

/* questions */
.ap-q { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.ap-sec .ap-q:first-of-type { padding-top: 0; border-top: 0; }
.ap-qlabel { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; font-weight: 800; line-height: 1.4; }
.ap-req, .ap-opt { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ap-opt { color: var(--soft); }
.ap-long { min-height: 120px; resize: vertical; line-height: 1.5; }
.ap-number { max-width: 200px; }
.ap-date { max-width: 240px; }
.ap-yn { display: inline-flex; width: fit-content; border: 1.5px solid var(--light); border-radius: 4px; overflow: hidden; }
.ap-yn label { cursor: pointer; }
.ap-yn input { position: absolute; opacity: 0; }
.ap-yn span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 120px; min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 700; border-left: 1px solid var(--light); }
.ap-yn label:first-child span { border-left: 0; }
.ap-yn span i { display: none; font-size: 12px; }
.ap-yn input:checked + span { background: var(--ink); color: var(--paper); }
.ap-yn input:checked + span i { display: inline; }
.ap-yn input:focus-visible + span { outline: 3px solid var(--light); outline-offset: -3px; }
.ap-choices { display: flex; flex-direction: column; gap: 2px; }
.ap-choices.row { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
.ap-choices.long { max-height: 280px; overflow-y: auto; flex-direction: column; flex-wrap: nowrap; }
.ap-choices .jb-check { padding-left: 0; }
.ap-qfile-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ap-qfile-name { font-size: 13px; font-weight: 700; }

/* statements and consent */
.ap-stlist { border-radius: 6px; background: var(--warm); padding: 4px 16px; }
.ap-st { border-top: 1px solid var(--line); padding: 12px 0; }
.ap-st:first-child { border-top: 0; }
.ap-st summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 800; }
.ap-st summary::-webkit-details-marker { display: none; }
.ap-st[open] .jp-show i { transform: rotate(180deg); }
.ap-st .jp-st-body { margin-top: 8px; }
.ap-notice { padding: 16px; border-radius: 6px; background: var(--warm); }
.ap-notice h3 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 800; }
.ap-confirm b { font-size: 15px; }
.ap-info { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: 6px; background: var(--tint); font-size: 14px; line-height: 1.5; }
.ap-info i { margin-top: 3px; }
.ap-lockbox { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 6px; background: var(--tint); }
.ap-lockbox i { margin-top: 3px; }
/* Board 87 A: the self-identification step's lead paragraph. */
.ap-silead { margin: 0 0 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.ap-silead b { color: var(--ink, #1c1c1c); }
.ap-lockbox p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ap-alert { padding: 14px 16px; border-radius: 6px; background: #5a564e; color: #fff; font-size: 14px; font-weight: 600; }
.ap-submitrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* the rail */
.ap-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--top) + 16px); }
.ap-sum { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ap-sumjob { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ap-sumjob b { display: block; font-size: 15px; }
.ap-sumjob span { font-size: 13px; color: var(--muted); }
.ap-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ap-steps li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; }
.ap-steps small { font-size: 12px; font-weight: 600; color: var(--soft); }
.ap-dot { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--light); align-items: center; justify-content: center; }
.ap-dot i { display: none; font-size: 9px; }
.ap-steps li.done .ap-dot { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ap-steps li.done .ap-dot i { display: inline; }
.ap-submit { width: 100%; }
.ap-submitrow .ap-submit { width: auto; }
.ap-after { padding: 20px; }
.ap-after h2 { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.ap-sticky { display: none; }

/* states (frame E) */
.ap-state { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 8px; background: var(--tint); font-size: 15px; line-height: 1.5; }
.ap-state > i { margin-top: 4px; }
.ap-state p { margin: 4px 0 10px; }
.ap-state.dark { background: #5a564e; color: #fff; }
.ap-state.dark .pp-btn { color: var(--ink); }
.ap-stateacts { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-state[hidden] { display: none; }

/* the code step (D2) */
.ap-code { padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ap-code h2 { margin: 0; font-size: 26px; font-weight: 800; }
.ap-code h2:focus { outline: none; }
.ap-code-ic, .ap-sent-ic { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); align-items: center; justify-content: center; font-size: 20px; }
.ap-sent-ic { background: var(--ink); color: var(--paper); }
.ap-boxes { display: flex; gap: 10px; border: 0; padding: 0; margin: 0 0 6px; }
.ap-box { width: 52px; height: 60px; border: 1.5px solid var(--light); border-radius: 6px; text-align: center; font-family: inherit; font-size: 26px; font-weight: 800; color: var(--ink); background: var(--paper); }
.ap-box:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--tint); }
.ap-code-err { margin-bottom: 4px; }
.ap-code-msg:empty { display: none; }
.ap-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* sent (C2, D3) */
.ap-sent { padding: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ap-sent h1 { margin: 0; font-size: 30px; font-weight: 800; }
.ap-next { list-style: none; margin: 0; padding: 0; width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.ap-next li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.ap-next li:first-child { border-top: 0; }
.ap-num { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.ap-sentacts { display: flex; gap: 10px; flex-wrap: wrap; }

/* dialogs (Preview C3, Your files) */
.ap-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 24px 60px rgba(28, 28, 28, 0.3); color: var(--ink); }
.ap-dialog[open] { display: flex; flex-direction: column; }
.ap-dialog::backdrop { background: rgba(28, 28, 28, 0.55); }
.ap-dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.ap-dhead h2 { margin: 2px 0 0; font-size: 21px; font-weight: 800; }
.ap-x { border: 0; background: none; width: 40px; height: 40px; border-radius: 4px; font-size: 18px; cursor: pointer; color: var(--ink); }
.ap-x:hover { background: var(--warm); }
.ap-dbody { padding: 18px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.ap-dfoot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); }
.ap-pvsec { border-radius: 6px; background: var(--warm); padding: 12px 14px; }
.ap-pvsec h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.ap-pvsec h3 small { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--soft); }
.ap-pv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ap-pv:first-of-type { border-top: 0; }
.ap-pv b { display: block; font-size: 14px; }
.ap-pv span { font-size: 13px; color: var(--muted); }
.ap-pv label { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ap-pv input { width: 18px; height: 18px; accent-color: #1c1c1c; }
.ap-pv.out b, .ap-pv.out span { text-decoration: line-through; color: var(--soft); }
.ap-fl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ap-fl button { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.ap-fl button:hover, .ap-fl button:focus-visible { border-color: var(--ink); }
.ap-fl b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.ap-fl small { font-size: 12px; color: var(--soft); }

/* ---------------- narrow screens (frame F) */
@media (max-width: 960px) {
  .jb-grid, .ap-grid { grid-template-columns: minmax(0, 1fr); }
  .jb-rail, .ap-rail { position: static; }
  .ap-rail .ap-sum { display: none; }
}
@media (max-width: 700px) {
  .jb-search { padding: 18px 0 14px; }
  .jb-search h1 { font-size: 24px; margin-bottom: 12px; }
  .jb-bar { grid-template-columns: minmax(0, 1fr); }
  .jb-kw { border-right: 0; border-bottom: 1px solid var(--line); }
  .jb-go { margin: 0; border-radius: 0 0 4px 4px; }
  /* Frame F: "Filters n" opens the panels as a sheet from the bottom; nothing scrolls sideways. */
  .jb-phonebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
  .jb-pills { display: none; }
  .jb-pills.open { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; margin: 0; padding: 0 16px 20px; background: var(--paper); border-radius: 14px 14px 0 0; box-shadow: 0 -12px 40px rgba(28, 28, 28, 0.25); }
  .jb-sheethead { display: flex; position: sticky; top: 0; z-index: 1; justify-content: space-between; align-items: center; padding: 14px 0; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 17px; }
  .jb-pill { width: 100%; border-radius: 8px; }
  .jb-pill details { width: 100%; }
  .jb-pill summary { justify-content: space-between; width: 100%; }
  .jb-pop { position: static; box-shadow: none; border: 0; min-width: 0; max-width: none; padding: 4px 4px 12px; }
  .jb-clear { align-self: flex-start; }
  .jb-card { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .jb-logo { width: 44px; height: 44px; }
  .jb-card-side { grid-column: 1 / -1; align-items: stretch; }
  .jb-posted { order: -1; }
  .jb-acts { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .jb-acts .pp-btn { flex: 1 1 0; min-height: 44px; }
  .jb-acts .jb-view { flex: 1 1 100%; }
  .jb-signsave { min-height: 44px; display: inline-flex; align-items: center; }
  .jb-applied { flex: 1 1 0; }
  .ap-h1 { font-size: 22px; }
  .ap-sec { padding: 18px 16px; }
  .ap-you { grid-template-columns: minmax(0, 1fr); }
  .ap-you > div { border-left: 0; border-top: 1px solid var(--line); }
  .ap-you > div:first-child { border-top: 0; }
  .ap-two { grid-template-columns: minmax(0, 1fr); }
  .ap-profile { grid-template-columns: 52px minmax(0, 1fr); }
  .ap-photo { width: 52px; height: 52px; font-size: 17px; }
  .ap-profile-acts { grid-column: 1 / -1; flex-direction: row; }
  .ap-profile-acts .pp-btn { flex: 1 1 0; }
  .ap-file { grid-template-columns: 36px minmax(0, 1fr); }
  .ap-file-acts { grid-column: 1 / -1; }
  .ap-yn span { min-width: 0; flex: 1 1 0; }
  .ap-yn { display: flex; width: 100%; }
  .ap-yn label { flex: 1 1 0; }
  .ap-yn span { width: 100%; }
  .ap-submitrow { display: none; }
  .ap-body .pp-foot { padding-bottom: 96px; }
  .ap-sticky { display: flex; flex-direction: column; gap: 6px; position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(28, 28, 28, 0.08); text-align: center; }
  .ap-sticky .pp-btn { width: 100%; }
  .ap-sticky:empty { display: none; }
  .ap-boxes { gap: 6px; }
  .ap-box { width: 44px; height: 54px; font-size: 22px; }
  .ap-sent { padding: 22px 18px; }
  .ap-sent h1 { font-size: 24px; }
  .ap-sentacts .pp-btn { width: 100%; }
}
.ap-submit[aria-disabled="true"] { background: var(--tint); border-color: var(--tint); color: var(--soft); }
.ap-submit[aria-disabled="true"]:hover { background: var(--tint); border-color: var(--tint); color: var(--soft); }

/* The hidden attribute wins over every display rule above (code step, drop zone, file row, errors, states). */
.jb-body [hidden] { display: none !important; }
