/* bluprntOS website — shared stylesheet (used by the plain HTML build and the Next.js build).
   Colours: Cobalt #1A5CF2, Forest #17643A, Ink #0B1736, White. Fonts: Sora (display), Inter (text),
   IBM Plex Mono (labels), IBM Plex Sans Arabic (all Arabic text). Layout uses logical properties,
   so the same rules work left-to-right (English) and right-to-left (Arabic). */

:root {
  --cobalt: #1A5CF2;
  --cobalt-tint: #E6EEFF;
  --forest: #17643A;
  --forest-tint: #E8F1EC;
  --ink: #0B1736;
  --amber: #E3AE2E;
  --text: #3A4560;
  --muted: #4A5570;
  --soft: #6A7590;
  --line: #D5DBEA;
  --line-strong: #9AA6BF;
  --alt: #F5F7FA;
  --white: #FFFFFF;
  --font-display: "Sora", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-text: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, monospace;
}
html[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-text: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* Type */
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; color: var(--muted); margin: 0; }
html[lang="ar"] .mono { letter-spacing: 0; font-size: 14px; }
.h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.025em; margin: 20px 0 0; }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 14px 0 0; max-width: 820px; }
html[lang="ar"] .h1, html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.35; font-weight: 600; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text); margin: 18px 0 0; max-width: 700px; }
.body { font-size: 15.5px; line-height: 1.65; color: var(--text); margin: 8px 0 0; }
html[lang="ar"] .lead, html[lang="ar"] .body { line-height: 1.85; }
.ct { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0; }

/* Sections */
.sec { padding: 104px 0; border-top: 1px solid var(--line); }
.alt { background: var(--alt); }
@media (max-width: 640px) { .sec { padding: 72px 0; } }
.rulehead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--ink); padding-top: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 64px; align-items: center; }
.split.top { align-items: start; }

/* Buttons and tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; font-family: var(--font-text); font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 2px; cursor: pointer; border: 1px solid transparent; }
.btn-p { background: var(--cobalt); color: var(--white); border-color: var(--cobalt); }
.btn-p:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-t { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; padding: 3px 8px; border: 1px solid #C9D2E3; color: var(--text); border-radius: 2px; }
.tag-c { border-color: var(--cobalt); color: var(--cobalt); }
.tag-f { border-color: var(--forest); color: var(--forest); }

/* Audience bar + header */
.audbar { background: var(--ink); }
.audbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 40px; }
.audbar nav { display: flex; flex-wrap: wrap; }
.audbar a { color: #C9D2E3; text-decoration: none; font-size: 13px; padding: 11px 14px 9px; border-bottom: 2px solid transparent; }
.audbar a:hover { color: var(--white); border-bottom-color: var(--white); }
.audbar .side { display: flex; gap: 20px; align-items: center; }
.audbar .lang { color: var(--white); font-weight: 600; }
@media (max-width: 640px) { .audbar nav a { padding: 11px 8px 9px; } }

.header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo img { height: 32px; width: auto; }
.mainnav { display: flex; gap: 32px; flex-wrap: wrap; }
.navlink { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.navlink:hover, .navlink[aria-current="page"] { border-bottom-color: var(--cobalt); color: var(--ink); }
.menu-btn { display: none; min-height: 44px; padding: 0 14px; background: var(--white); border: 1px solid var(--ink); border-radius: 2px; font: 600 14px var(--font-text); color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .header .wrap { flex-wrap: wrap; }
  .mainnav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: 16px; }
  .mainnav.open { display: flex; }
  .mainnav .navlink { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header .btn-p { display: none; }
  .mainnav.open + .btn-p { display: inline-flex; }
}

/* Hero */
.hero { padding: 96px 0 88px; }
.frame { background: var(--white); border: 1px solid #C9D2E3; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(11, 23, 54, .35); margin: 0; }
.fbar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--alt); direction: ltr; }
.fbar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.fbar span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-inline-start: 8px; }
html[lang="ar"] .fbar { direction: rtl; }
.caption { margin-top: 14px; font-size: 12px; }
.cta-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--ink); margin-top: 88px; }
.facts div { padding: 24px 24px 0 0; }
html[dir="rtl"] .facts div { padding: 24px 0 0 24px; }
.facts .n { margin: 0; font-family: "Sora", var(--font-display); font-size: 48px; font-weight: 500; color: var(--cobalt); unicode-bidi: isolate; }
.facts .n.alt { color: var(--forest); }
.facts .mono { margin-top: 6px; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 2px; }
.card .ill { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.card .pad { padding: 26px; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 15px; text-decoration: none; }
html[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }

/* Lifecycle */
.lc-scroll { overflow-x: auto; margin-top: 64px; }
.lc { min-width: 1080px; border-top: 1px solid var(--ink); padding-bottom: 8px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lc > div { border-inline-start: 1px solid var(--line); padding: 0 22px; }
.lc .num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--cobalt); background: var(--white); align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--cobalt); margin-top: -15px; }
.lc .num.last { border-color: var(--forest); color: var(--forest); }
.lc .work { margin-top: 14px; min-height: 104px; }
.lc .rec { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.lc .rec .mono { font-size: 11px; color: var(--soft); }
.lc .rec p:last-child { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }

/* Ordered steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps .k { font-family: var(--font-mono); font-size: 15px; color: var(--cobalt); }
.steps .k.last { color: var(--forest); }
.steps .ct { font-size: 17px; }
.steps .body { margin-top: 4px; }
.stageline { margin-top: 28px; line-height: 2; }

/* Outputs */
.outlist { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid var(--line); }
.outlist li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--text); }
@media (max-width: 520px) { .outlist { grid-template-columns: 1fr; } }
.ev { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.ev div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: center; }
.ev .body { margin: 0; }
@media (max-width: 520px) { .ev div { grid-template-columns: 1fr; gap: 4px; } }
.stack { display: flex; flex-direction: column; gap: 28px; }

/* Origin band */
.origin { background: var(--ink); border-top: 0; color: var(--white); }
.origin .rulehead { border-top-color: var(--white); }
.origin .mono { color: #C9D2E3; }
.origin .h2, .origin .ct { color: var(--white); }
.origin .lead { color: #D5DBEA; }
.origin .body { color: #C9D2E3; }
.origin .points { border-top: 1px solid #3A4A70; }
.origin .points > div { display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-bottom: 1px solid #3A4A70; }
.origin .points .k { font-family: var(--font-mono); color: #9FC0FF; font-size: 15px; }
.origin .points .k.last { color: #9FD7B4; }

/* Programme + pilot */
.ruled { border-top: 2px solid var(--cobalt); padding-top: 18px; }
.ruled.last { border-top-color: var(--forest); }
.pilot { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.pilot .k { font-family: var(--font-mono); color: var(--cobalt); font-size: 15px; margin: 0; }
.pilot .k.last { color: var(--forest); }

/* Forms */
.form { background: var(--white); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 520px) { .form { padding: 22px; } }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.fld .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.fld input:not([type="checkbox"]):not([type="radio"]), .fld textarea, .fld select, .dial select, .dial input { font-family: var(--font-text); font-size: 15px; border: 1px solid var(--line-strong); border-radius: 2px; padding: 12px; background: var(--white); color: var(--ink); width: 100%; }
.fld input[type="file"] { padding: 10px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fields .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.dial { display: grid; grid-template-columns: 120px 1fr; gap: 8px; direction: ltr; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; font-size: 15px; font-weight: 400; color: var(--text); }
.checks label { display: flex; gap: 8px; align-items: center; }
.checks input { margin: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text); }
.consent input { margin-top: 3px; }
/* Spam honeypot: visually and focusably hidden; the Worker rejects submissions that fill it */
.hp { position: absolute !important; inset-inline-start: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 14px; margin: 0; padding: 12px 14px; border-inline-start: 3px solid var(--cobalt); background: var(--cobalt-tint); }
.status[data-kind="error"] { border-color: #B42318; background: #FDECEA; color: #7A1A12; }
.status[data-kind="ok"] { border-color: var(--forest); background: var(--forest-tint); color: var(--forest); }
.status:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 18px; color: var(--cobalt); }
.founder-note { margin-top: 40px; padding: 20px 22px; border-inline-start: 2px solid var(--forest); background: var(--white); }

/* Team */
.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; border-top: 1px solid var(--ink); padding-top: 32px; }
.member { min-height: 320px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 2px; }
.member .top { display: flex; justify-content: space-between; align-items: flex-start; }
.member .li { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; text-decoration: none; font-family: "Inter", sans-serif; font-weight: 700; font-size: 18px; border-radius: 2px; }
.member .name { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.15; letter-spacing: -.02em; }
html[lang="ar"] .member .name { letter-spacing: 0; font-weight: 600; }
.member .title { margin-top: 14px; }
.member .loc { margin-top: 22px; padding-top: 14px; border-top: 1px solid currentColor; font-size: 12px; }
.member.forest { background: var(--forest); color: var(--white); } .member.forest .mono { color: #CFE7D9; } .member.forest .li { background: var(--white); color: var(--forest); }
.member.cobalt { background: var(--cobalt); color: var(--white); } .member.cobalt .mono { color: #E6EEFF; } .member.cobalt .li { background: var(--white); color: var(--cobalt); }
.member.ink { background: var(--ink); color: var(--white); } .member.ink .mono { color: #C9D2E3; } .member.ink .li { background: var(--white); color: var(--ink); }
.member.amber { background: var(--amber); color: var(--ink); } .member.amber .mono { color: #3A3020; } .member.amber .li { background: var(--ink); color: var(--amber); }
.member .name { color: inherit; }

/* Join roles */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; margin-top: 56px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.roles { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.roles.invest { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.role { text-align: start; cursor: pointer; min-height: 96px; padding: 18px; border-radius: 2px; color: var(--ink); background: var(--white); border: 1px solid #C9D2E3; font: inherit; }
.role:hover { border-color: var(--cobalt); }
.role[aria-pressed="true"] { background: var(--cobalt-tint); border: 2px solid var(--cobalt); padding: 17px; }
.role .rl { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.role .rn { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.prompt { margin-top: 40px; padding: 18px 20px; border: 1px dashed var(--line-strong); background: var(--white); }
.apply { margin-top: 40px; border-top: 3px solid var(--cobalt); padding: 36px; }
.apply-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

/* Ventures */
.vsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 56px; border-top: 1px solid var(--ink); }
.vsum div { padding: 18px 20px 0 0; }
html[dir="rtl"] .vsum div { padding: 18px 0 0 20px; }
.vsum p:last-child { margin: 6px 0 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.vrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 72px; align-items: center; padding: 96px 0; border-top: 1px solid var(--line); }
.stage { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border: 1px solid var(--ink); color: var(--ink); border-radius: 2px; }
.stage .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.vname { font-family: var(--font-display); font-weight: 500; font-size: 40px; letter-spacing: -.02em; margin: 14px 0 0; }
html[lang="ar"] .vname { letter-spacing: 0; font-weight: 600; }
.vfacts { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 520px; }
.vfacts li { font-size: 15px; line-height: 1.5; color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--line); }
.sbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 22px; max-width: 420px; }
.sbar span { height: 6px; background: var(--line); }
.sbar span.on { background: var(--ink); }
.slbl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 8px; max-width: 420px; font-family: var(--font-mono); font-size: 11px; color: var(--soft); }
.vshot { display: flex; justify-content: center; }
.vshot img { width: 332px; filter: drop-shadow(0 40px 40px rgba(11, 23, 54, .25)); }

/* Privacy */
.draft { padding: 14px 18px; border-inline-start: 3px solid var(--amber); background: #FBF3DE; font-size: 14px; margin-top: 24px; }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 40px 0 0; }

/* Footer */
.footer { background: var(--ink); color: #C9D2E3; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.footer .brand { margin: 0; font-family: "Sora", sans-serif; font-weight: 600; font-size: 20px; color: var(--white); }
.footer nav { display: flex; gap: 24px; font-size: 13px; flex-wrap: wrap; }
.footer a { color: #C9D2E3; }
.footer a:hover { color: var(--white); }
.footer .mono { color: #C9D2E3; font-size: 12px; }

/* Platform dropdown */
.navitem { position: relative; display: flex; align-items: center; }
.navitem .caret { font-size: 10px; margin-inline-start: 6px; color: var(--muted); }
.sub { display: none; position: absolute; top: 100%; inset-inline-start: -14px; background: var(--white); border: 1px solid var(--line); min-width: 210px; padding: 8px 0; box-shadow: 0 12px 24px -16px rgba(11, 23, 54, .35); z-index: 30; }
.navitem:hover .sub, .navitem:focus-within .sub { display: block; }
.sub a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-size: 14px; }
.sub a:hover { background: var(--alt); }
@media (max-width: 960px) {
  .navitem { display: block; }
  .navitem .caret { display: none; }
  .navitem > .navlink { display: block; }
  .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .sub a { padding: 10px 0; padding-inline-start: 16px; border-bottom: 1px solid var(--line); }
}
.mainnav { gap: 28px; }

/* Team page links and partner pilot note */
.teamline { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.teamline .ct { font-size: 17px; margin-inline-end: 8px; }
.pilot-note { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding: 18px 22px; border-inline-start: 2px solid var(--cobalt); background: var(--white); }
.pilot-note .body { margin: 4px 0 0; }

[hidden] { display: none !important; }
[id] { scroll-margin-top: 100px; }

/* About, audience and apply pages */
.audbar a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }
.layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.layers.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 32px; }
.layer { border-top: 2px solid var(--ink); padding-top: 18px; }
.layer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.badge { font-family: var(--font-mono); font-size: 12px; padding: 3px 8px; border-radius: 2px; white-space: nowrap; }
.badge-live { background: var(--forest); color: var(--white); }
.badge-dev { background: var(--white); color: var(--ink); border: 1px dashed var(--ink); }
.statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; color: var(--white); margin: 24px 0 0; max-width: 980px; }
html[lang="ar"] .statement { line-height: 1.6; font-weight: 600; }
.origin .lead { margin-top: 24px; }
.faqs { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--cobalt); }
.faq[open] summary::after { content: "–"; }
.faq .body { margin-top: 10px; }
.pilot.five { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.crit .k { color: var(--forest); }

/* Careers */
.navlink .count { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border: 1px solid var(--cobalt); border-radius: 999px; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--cobalt); vertical-align: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips.small { margin-top: 18px; }
.chip { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border: 1px solid var(--ink); color: var(--ink); background: var(--white); }
.chips.small .chip { font-size: 11px; padding: 3px 8px; border-color: var(--line); }
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.track { border-top: 2px solid var(--ink); padding-top: 18px; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 24px; margin-top: 40px; }
@media (max-width: 520px) { .roles-grid { grid-template-columns: 1fr; } }
.rolecard { background: var(--white); border: 1px solid var(--line); padding: 28px; }
.rc-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rc-title { margin-top: 14px; font-size: 22px; }
.rc-tracks { margin: 18px 0 0; display: grid; gap: 12px; }
.rc-tracks div { border-inline-start: 2px solid var(--line); padding-inline-start: 12px; }
.rc-tracks dt { font-size: 11px; }
.rc-tracks dd { margin: 4px 0 0; }
.pilot.six { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pick { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 14px; line-height: 1.5; }
.pick input { margin-top: 4px; width: auto; }
.pick:has(input:checked) { border: 2px solid var(--cobalt); padding: 13px 15px; }
.checks.col { display: grid; gap: 10px; }
.checks.col input { width: auto; }
.vrole { margin: 18px 0 0; }
.vrole a { font-weight: 600; text-decoration: none; }

/* Scenario test */
.testfor { margin-top: 16px; }
.ainote { margin-top: 20px; padding: 16px 20px; border-inline-start: 2px solid var(--ink); background: var(--alt); font-size: 15px; line-height: 1.6; max-width: 820px; }
.h2.part { margin-top: 32px; font-size: 26px; }
.scenario { border-top: 1px solid var(--ink); padding-top: 20px; margin-top: 12px; display: grid; gap: 16px; }
.action { border: 0; padding: 0; margin: 0; }
.action legend { font-size: 15px; line-height: 1.55; padding: 0; margin-bottom: 10px; color: var(--ink); }
.action legend .mono { margin-inline-end: 6px; }
.rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 640px) { .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rate { position: relative; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate span { display: block; text-align: center; padding: 9px 6px; border: 1px solid var(--line); background: var(--white); font-size: 13px; cursor: pointer; }
.rate input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 600; }
.rate input:checked + span::before { content: "✓ "; }
.rate input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
[data-tasks] { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
