:root {
    color-scheme: light;
    --canvas: #f3f6fb;
    --ink: #14243a;
    --muted: #45566e;
    --brand: #1649a5;
    --line: #d1dbea;
    --surface: #fff;
    font: 16px/1.55 "Aptos", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #ca7700; outline-offset: 3px; }
.wrap { width: min(1100px, calc(100% - 2.5rem)); margin-inline: auto; }
.top { background: #102846; }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.15rem; }
.top a { color: #e4edff; }
.top .brand { font-weight: 800; font-size: 1.2rem; text-decoration: none; }
main { min-height: 65vh; padding-block: 2.2rem 3.5rem; }
.footer { padding-block: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
h1, h2 { line-height: 1.16; margin: 0 0 .65rem; }
h1 { font-size: clamp(2rem, 5.7vw, 3.65rem); letter-spacing: -.045em; }
h2 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
.intro { padding: clamp(1.3rem, 4vw, 2.8rem); margin-bottom: 1.15rem; background: #e5edfb; border-radius: 1.1rem; }
.intro .back { display: inline-block; margin-bottom: 1rem; }
.intro .filters { margin-top: 1.6rem; }
.detail { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.15rem; align-items: start; }
.panel, .role, .table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: .8rem;
}
.panel, .role { padding: 1.25rem; }
.narrow { width: min(100%, 44rem); margin-inline: auto; }
.narrow h1 { font-size: clamp(1.85rem, 4vw, 2.8rem); }
.list, .stack { display: grid; gap: .85rem; }
.role, .section-heading, .actions, .staff-nav { display: flex; gap: .85rem; align-items: center; }
.role, .section-heading { justify-content: space-between; }
.section-heading { margin-bottom: 1rem; }
.role p:last-child { margin-bottom: 0; }
.company { font-weight: 750; color: var(--brand); margin-bottom: .35rem; }
.meta, small { color: var(--muted); }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.filters { display: flex; align-items: end; gap: .8rem; flex-wrap: wrap; }
.filters.panel { margin-bottom: 1rem; }
label { display: grid; gap: .3rem; font-weight: 650; font-size: .94rem; min-width: 0; }
label.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; }
input, select, textarea {
    font: inherit;
    font-weight: 400;
    color: var(--ink);
    min-width: 0;
    width: 100%;
    padding: .55rem .65rem;
    border: 1px solid #8696ad;
    border-radius: .4rem;
    background: white;
}
select { min-width: 10rem; }
input[type=checkbox] { width: 1rem; height: 1rem; margin: .2rem 0 0; flex: 0 0 auto; }
input[type=file] { max-width: 100%; }
button, .button {
    display: inline-block;
    font: inherit;
    font-weight: 750;
    color: white;
    text-decoration: none;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: .45rem;
    padding: .53rem .8rem;
    cursor: pointer;
    white-space: nowrap;
}
button:hover, .button:hover { background: #103779; }
.stack button { justify-self: start; }
.staff-nav { margin-bottom: 1.5rem; flex-wrap: wrap; }
.staff-nav form { margin-left: auto; }
.quiet { color: var(--brand); background: white; }
.quiet:hover { color: white; }
.actions { margin-top: 1rem; }
.error, .notice { padding: .75rem; border-radius: .45rem; }
.error { color: #811b28; background: #ffe7ea; }
.notice { color: #105833; background: #e2f4e8; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .72rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #334860; background: #eef3fa; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td small { display: block; }
dt { font-weight: 700; }
dd { margin: 0 0 .65rem; overflow-wrap: anywhere; }
@media (max-width: 660px) {
    .wrap { width: calc(100% - 1.4rem); }
    main { padding-top: 1.3rem; }
    .detail { grid-template-columns: 1fr; }
    .role { align-items: flex-start; flex-direction: column; }
    .filters label { flex-basis: 100%; }
}
