/* BoostCap: boostcap.se's purple on warm sand with a gold accent, DM Serif Display + DM Sans (chosen 2026-10-21 from
   docs/profilforslag.html, "A med typsnittet från B"); the original tokens were read from boostcap.se 2026-10-13 */
:root {
  --ink: #1C1A1F; --muted: #6B6670; --faint: #9C98A3; --line: #E6DFD3; --bg: #F6F2EA; --card: #FFFFFF;
  --brand: #5B3FA8; --brand-soft: #EFE9FB; --brand-bar: #EAE4D8; --dark: #2B2630; --dark-text: #D2CCD8;
  --accent: #C9A24D; --accent-soft: #FBF8F2;
  --good: #1E7A46; --bad: #B3261E;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'DM Sans', Arial, sans-serif; font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: inherit; }
h1, h2, h3, .serif { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
h1 { font-size: 38px; line-height: 1.1; margin: 0 0 12px; max-width: 560px; }
h1 span { color: var(--brand); }
h2 { font-size: 22px; line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 24px; max-width: 520px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* header and footer as on the site */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top img { height: 20px; width: auto; display: block; }
.top .right { display: flex; align-items: center; gap: 14px; }
.who { font-size: 14px; color: var(--muted); }
.foot { background: var(--dark); color: var(--dark-text); margin-top: 40px; padding: 36px 0; font-size: 13px; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot img { height: 16px; filter: invert(1); display: block; margin-bottom: 10px; }
.foot a { color: #fff; text-decoration: none; font-weight: 600; }

/* layout: stepper to the left, content to the right */
main .wrap.grid { display: grid; grid-template-columns: 240px minmax(0, 660px); gap: 64px; justify-content: center; padding: 48px 32px 60px; }
main .wrap.single { max-width: 724px; padding: 48px 32px 60px; }
main .wrap.wide { padding: 32px 32px 60px; }
aside { position: sticky; top: 24px; align-self: start; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; letter-spacing: 1.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; }
.eyebrow .bar { width: 28px; height: 3px; background: var(--accent); border-radius: 3px; display: inline-block; }
.stepper { list-style: none; margin: 0; padding: 0; }
.stepper li { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; color: var(--faint); }
.stepper .num { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 22px; line-height: 1; width: 34px; flex-shrink: 0; }
.stepper .name { font-size: 14px; font-weight: 500; }
.stepper a { text-decoration: none; color: inherit; }
.stepper li.now { color: var(--brand); }
.stepper li.now .name { font-weight: 700; }
.stepper li.done { color: var(--ink); }
.stepper li.done .name::after { content: " ✓"; color: var(--accent); font-weight: 700; }
.progress { display: none; height: 4px; background: var(--brand-bar); border-radius: 2px; margin: 12px 0 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.help { background: #fff; border-radius: 16px; padding: 22px; margin-top: 32px; }
.help h4 { margin: 0 0 6px; font-family: 'DM Serif Display', serif; font-size: 17px; font-weight: 400; }
.help p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.help a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* cards and fields */
.card { background: var(--card); border-radius: 18px; padding: 32px; margin: 0 0 20px; }
label { display: block; margin: 0 0 18px; font-weight: 600; font-size: 14px; }
.hint { display: block; color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1.45; margin-top: 6px; }
.hint.inline { display: inline; margin: 0 0 0 6px; }
.muted { color: var(--muted); font-size: 14px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  display: block; width: 100%; margin-top: 7px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fff; }
input[type=file] { display: block; margin-top: 7px; font: inherit; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368666F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center/16px no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
label.check { display: block; position: relative; padding-left: 30px; font-weight: 400; font-size: 15px; line-height: 1.45; margin-bottom: 12px; }
label.check input { position: absolute; left: 0; top: 3px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.row2, .row3 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.row3 { grid-template-columns: 2fr 2fr 1fr; }
.row2 > label, .row3 > label { margin-bottom: 0; }
.grid2 { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }

/* buttons as on the site */
button, .button { display: inline-block; font: inherit; font-weight: 600; font-size: 15px; padding: 14px 30px; border-radius: 999px; cursor: pointer;
  text-decoration: none; border: 1px solid var(--ink); background: transparent; color: var(--ink); white-space: nowrap; }
button.primary, .button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.small, .button.small { padding: 9px 18px; font-size: 14px; }
button.link, .button.link { border: 0; background: none; color: var(--brand); padding: 0; font-weight: 600; }
button.danger { background: var(--bad); color: #fff; border-color: var(--bad); }
form.inline { display: inline; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

/* choice cards, chips, facts */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 20px; }
.choice label { position: relative; margin: 0; border: 1.5px solid var(--line); border-radius: 16px; padding: 20px 20px 18px 20px; cursor: pointer; font-weight: 400; font-size: 14px; color: var(--muted); line-height: 1.5; background: #fff; }
.choice label input { position: absolute; top: 16px; right: 16px; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice b { display: block; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 17px; color: var(--ink); margin-bottom: 6px; padding-right: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.chips label { margin: 0; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 14px; background: #fff; }
.chips label:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.facts div { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.facts .k { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.facts .v { font-size: 14px; font-weight: 600; }
.facts .v.brand { color: var(--brand); }
.facts .wide { grid-column: 1 / -1; }
.idchip { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.idchip::before { content: "●"; font-size: 9px; }
.info { background: var(--brand-soft); border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.notice { background: #FFF6DD; border: 1px solid #EFDCA0; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 0 0 18px; }
.error { background: #FBE9E7; color: var(--bad); border: 1px solid #F2C6C0; border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; }
.bad { color: var(--bad); }
.ok { color: var(--brand); font-weight: 600; }
.person { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.person .check { font-weight: 600; margin-bottom: 10px; }
.doc { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.doc:last-of-type { border-bottom: 0; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.tag.req { background: var(--brand-soft); color: var(--brand); }
.drop { border: 1.5px dashed var(--line); border-radius: 14px; padding: 18px 22px; background: var(--accent-soft); margin-bottom: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 6px 0 14px 34px; position: relative; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); box-sizing: border-box; }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 25px; bottom: -4px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--brand); }
.timeline li.now { color: var(--ink); font-weight: 600; }
.timeline li.now::before { background: #fff; border: 3px solid var(--brand); }
.subblock { display: none; }
.lagertyp:has(#typ-nya:checked) ~ .block-nya, .lagertyp:has(#typ-bef:checked) ~ .block-bef { display: block; }

/* staff pages */
dl.summary { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; margin: 0 0 12px; }
dl.summary dt { color: var(--muted); }
dl.summary dd { margin: 0; }
table.list { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
table.list th, table.list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
table.list th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--faint); }
table.list .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 16px; margin-bottom: 16px; }
.tabs a { color: var(--muted); text-decoration: none; padding-bottom: 4px; font-weight: 600; }
.tabs a.current { color: var(--ink); border-bottom: 2px solid var(--brand); }
.status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); }
.s-submitted { background: var(--brand-soft); color: var(--brand); } .s-approved { background: #DBE9DF; color: var(--good); }
.s-rejected { background: #F7DDDD; color: var(--bad); } .s-more_info { background: #FFF6DD; }

/* BankID page */
.bankid { text-align: center; }
.bankid-msg { font-weight: 600; min-height: 1.5em; }
.bankid-qr { display: block; margin: 12px auto; width: 240px; height: 240px; cursor: zoom-in; border: 8px solid #fff; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.bankidtext { text-align: left; font-size: 14px; background: var(--bg); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  main .wrap.grid, main .wrap.single { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px 48px; }
  aside { position: static; }
  .stepper { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; }
  .stepper li { padding: 4px 0; gap: 8px; flex-shrink: 0; }
  .stepper .num { width: auto; font-size: 20px; }
  .stepper .name { display: none; }
  .stepper li.now .name { display: inline; }
  .progress { display: block; }
  .help { display: none; }
  h1 { font-size: 30px; }
  .card { padding: 24px 20px; border-radius: 16px; }
  .row2, .row3, .choice, .facts, .grid2 { grid-template-columns: 1fr; }
  .top .wrap { height: 64px; }
  .top .who { display: none; }
  dl.summary { grid-template-columns: 1fr; }
  table.list { display: block; overflow-x: auto; }
}

/* small utilities (inline styles are blocked by the CSP) */
.mb0 { margin-bottom: 0 !important; } .m0 { margin: 0 !important; } .mt8 { margin-top: 8px !important; }
.mb10 { margin-bottom: 10px !important; } .mt12 { margin-top: 12px !important; } .mt18 { margin-top: 18px !important; }
.mb18 { margin-bottom: 18px !important; } .mb14 { margin-bottom: 14px !important; } .txt13 { font-size: 13px; } .strong { font-weight: 600; }
.progress .p0 { width: 0; } .progress .p1 { width: 17%; } .progress .p2 { width: 33%; } .progress .p3 { width: 50%; }
.progress .p4 { width: 67%; } .progress .p5 { width: 83%; }

/* banner on the test site: UC and/or BankID against test data */
.testbar{background:#ffe9a8;color:#5a4300;text-align:center;padding:7px 16px;font-size:13px;font-weight:600}
