/* Job Assistant: recruitment exam preparation hub and per-institution question analysis. Colours come from the ph tokens only. */
.jp { display: grid; gap: 30px; min-width: 0; }
.jp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; font-size: .8rem; color: var(--ph-muted); }
.jp-crumbs a { color: var(--ph-text); }
.jp-crumbs a:hover { color: var(--ph-magenta); }
.jp-crumbs .icon { width: 12px; height: 12px; }

.jp-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: end; }
@media (min-width: 1000px) { .jp-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; } }
.jp-intro h1 { margin: 0; font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6rem); line-height: 1.3; color: var(--ph-ink); }
.jp-intro p { max-width: 62ch; margin: 8px 0 0; font-size: .88rem; line-height: 1.65; color: var(--ph-text); }
.jp-intro small { display: block; margin-top: 10px; font-size: .78rem; color: var(--ph-muted); }

.jp-bank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.jp-bank-c { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px; }
.jp-bank-c + .jp-bank-c { border-left: 1px solid var(--ph-line2); }
.jp-bank-c small { font-size: .76rem; color: var(--ph-muted); }
.jp-bank-c strong { margin-bottom: 10px; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1.1; color: var(--ph-ink); font-variant-numeric: tabular-nums; }
.jp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; margin-top: auto; padding: 0 10px; border-radius: 6px; font-size: .8rem; font-weight: 600; text-align: center; transition: background .15s ease, border-color .15s ease; }
.jp-btn .icon { width: 15px; height: 15px; flex-shrink: 0; }
@media (max-width: 359px) { .jp-bank-c { padding: 12px; } .jp-btn { font-size: .74rem; } }

.jp-sec { min-width: 0; }
.jp-sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.jp-sec-h > div { flex: 1 1 260px; min-width: 0; }
.jp-sec-h h2 { margin: 0; font-size: 1.05rem; color: var(--ph-ink); }
.jp-sec-h p { margin: 2px 0 0; font-size: .8rem; color: var(--ph-muted); }
.jp-more { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: .8rem; font-weight: 600; color: var(--ph-magenta); }
.jp-more .icon { width: 14px; height: 14px; }
.jp-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.jp-rows { border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.jp-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ph-line); }
.jp-row:last-child { border-bottom: 0; }
@media (min-width: 900px) { .jp-row { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; } .jp-row-p { width: 150px; } .jp-row-a { flex-wrap: nowrap; } }
.jp-row-main { min-width: 0; }
.jp-row-t { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .92rem; font-weight: 600; line-height: 1.45; color: var(--ph-ink); overflow-wrap: anywhere; }
.jp-row-t:hover { color: var(--ph-magenta); }
.jp-row-m { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: .76rem; color: var(--ph-muted); }
.jp-row-m span { display: inline-flex; align-items: center; gap: 4px; }
.jp-row-m b { font-weight: 600; color: var(--ph-text); }
.jp-row-m .icon { width: 13px; height: 13px; }
.jp-free { color: var(--ph-green); font-weight: 600; }
.jp-row-p { display: flex; align-items: center; gap: 8px; }
.jp-row-p small { min-width: 34px; font-size: .76rem; font-weight: 600; text-align: right; color: var(--ph-text); font-variant-numeric: tabular-nums; }
.jp-row-a { display: flex; flex-wrap: wrap; gap: 8px; }
.jp-row-a a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 6px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.jp-row-a a .icon { width: 15px; height: 15px; }
@media (max-width: 899px) { .jp-row-a a { flex: 1 1 140px; } }

.jp-meter { flex: 1; height: 6px; min-width: 0; overflow: hidden; border-radius: 3px; background: var(--ph-soft); }
.jp-meter > span { display: block; height: 100%; border-radius: 3px; background: var(--ph-magenta); }

.jp-inst, .jp-subj { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .jp-inst, .jp-subj { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .jp-inst, .jp-subj { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .jp-subj { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jp-inst-c, .jp-subj-c { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); transition: border-color .15s ease; }
.jp-inst-c:hover, .jp-subj-c:hover { border-color: var(--ph-magenta); }
.jp-inst-c .qx-ohead:hover strong { color: var(--ph-magenta); }
.jp-subj-t { font-size: .95rem; font-weight: 600; line-height: 1.4; color: var(--ph-ink); overflow-wrap: anywhere; }
.jp-subj-t:hover { color: var(--ph-magenta); }

.jp-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.jp-figs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jp-figs > div { min-width: 0; padding: 0 10px; border-left: 1px solid var(--ph-line); }
.jp-figs > div:first-child { padding-left: 0; border-left: 0; }
.jp-figs dt { overflow: hidden; font-size: .7rem; color: var(--ph-muted); text-overflow: ellipsis; white-space: nowrap; }
.jp-figs dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 600; color: var(--ph-ink); font-variant-numeric: tabular-nums; }

.jp-prog { display: flex; align-items: center; gap: 10px; }
.jp-prog small { flex-shrink: 0; font-size: .74rem; color: var(--ph-muted); }
.jp-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--ph-line); }
.jp-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 6px; background: var(--ph-soft); font-size: .78rem; font-weight: 600; color: var(--ph-text); transition: color .15s ease, background .15s ease; }
.jp-links a:first-child { color: var(--ph-magenta); }
.jp-links a:hover { color: var(--ph-magenta); }
.jp-links .icon { width: 14px; height: 14px; }

/* Analysis */
.jp-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.jp-who .qx-logo { width: 44px; height: 44px; }
.jp-who h1 { min-width: 0; overflow-wrap: anywhere; }
.jp-sum { padding: 16px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.jp-sum dd { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }

.jp-share { border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.jp-share-r { border-bottom: 1px solid var(--ph-line); }
.jp-share-r:last-child { border-bottom: 0; }
.jp-share-r summary { display: grid; grid-template-columns: minmax(0, 1fr) 16px; grid-template-areas: "n chev" "c c" "b b"; gap: 6px 12px; align-items: center; min-height: 48px; padding: 12px 16px; list-style: none; cursor: pointer; }
.jp-share-r summary::-webkit-details-marker { display: none; }
.jp-share-r summary:hover .jp-share-n { color: var(--ph-magenta); }
.jp-share-r summary:focus-visible { outline: 2px solid var(--ph-magenta); outline-offset: -2px; }
@media (min-width: 760px) { .jp-share-r summary { grid-template-columns: minmax(0, 1fr) minmax(0, 170px) minmax(0, 1.1fr) 16px; grid-template-areas: "n c b chev"; gap: 16px; } }
.jp-share-n { grid-area: n; font-size: .9rem; font-weight: 600; color: var(--ph-ink); overflow-wrap: anywhere; }
.jp-share-c { grid-area: c; display: flex; gap: 12px; font-size: .76rem; color: var(--ph-muted); }
.jp-share-c b { font-weight: 600; color: var(--ph-text); font-variant-numeric: tabular-nums; }
.jp-share-b { grid-area: b; display: flex; align-items: center; gap: 10px; }
.jp-share-b b { min-width: 44px; font-size: .82rem; text-align: right; color: var(--ph-ink); font-variant-numeric: tabular-nums; }
.jp-chev { grid-area: chev; width: 16px; height: 16px; color: var(--ph-muted); transition: transform .2s ease; }
.jp-share-r[open] .jp-chev { transform: rotate(180deg); }
.jp-topics { display: grid; gap: 12px; padding: 0 16px 16px; }
.jp-topics ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .jp-topics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jp-topics li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--ph-line); font-size: .8rem; color: var(--ph-text); }
.jp-topics li span { min-width: 0; overflow-wrap: anywhere; }
.jp-topics li b { font-weight: 600; color: var(--ph-ink); font-variant-numeric: tabular-nums; }
.jp-topics .jp-links { border-top: 0; padding-top: 0; }

.jp-scroll { overflow-x: auto; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.jp-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.jp-table th, .jp-table td { padding: 10px 14px; border-bottom: 1px solid var(--ph-line); text-align: left; white-space: nowrap; color: var(--ph-text); }
.jp-table tbody tr:last-child th, .jp-table tbody tr:last-child td { border-bottom: 0; }
.jp-table thead th { background: var(--ph-soft); font-size: .72rem; font-weight: 700; color: var(--ph-ink); }
.jp-table tbody th { position: sticky; left: 0; background: var(--ph-surface); font-weight: 600; color: var(--ph-ink); }
.jp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.jp-table .nil { color: var(--ph-muted); }
.jp-table td b { color: var(--ph-ink); }

@media (prefers-reduced-motion: reduce) { .jp-chev, .jp-btn, .jp-links a, .jp-inst-c, .jp-subj-c { transition: none; } }
