.roles-guide > .lead { max-width: 68ch; }
.role-workspace {
  display: grid;
  grid-template-columns: minmax(14rem,.85fr) minmax(0,2fr);
  align-items: start;
  gap: clamp(1.3rem,4vw,4.2rem);
  margin-top: 2rem;
}
.role-tabs { border-top: 1px solid var(--line); }
.role-tabs a {
  display: block; padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.role-tabs a:hover { background: var(--light); }
.role-tabs a[aria-selected="true"] { color: white; background: var(--panel); box-shadow: inset 4px 0 var(--amber); }
.role-select { display: none; }
.role-sheet { min-width: 0; border: 1px solid var(--line); }
.role-sheet + .role-sheet { margin-top: 1.5rem; }
.roles-guide.is-interactive .role-sheet { margin: 0; }
.role-illustration {
  margin: 0; color: white; background-color: var(--panel);
  background-image: radial-gradient(circle, #366075 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 1.05rem clamp(.8rem,2.3vw,2rem);
}
.role-illustration p, .role-illustration span {
  display: table; background: var(--panel); padding: .1rem .35rem;
  font: 500 .875rem/1.4 var(--mono); color: #d5ecf4;
}
.role-illustration span { margin-left: auto; }
.role-illustration svg { width: 100%; display: block; max-width: 34rem; margin: 0 auto; overflow: visible; }
.role-illustration .paper, .role-illustration .diamond { fill: #104862; stroke: #a8d8e6; stroke-width: 1.4; }
.role-illustration .field { fill: #32647a; stroke: #a8d8e6; }
.role-illustration .bar { fill: #7cd6e9; }
.role-illustration .hot { fill: #ffb441; }
.role-illustration .label, .role-illustration .strong { fill: white; font: 600 12px var(--sans); }
.role-illustration .sub { fill: #bce5ed; font: 11px var(--sans); }
.role-illustration .strong { fill: #ffcd78; }
.role-illustration .trace, .role-illustration .faint, .role-illustration .accent, .role-illustration .dash { fill: none; stroke: #8cd7e5; stroke-width: 2; }
.role-illustration .dash { stroke-dasharray: 3 3; }
.role-illustration .faint { stroke: #7298a8; stroke-width: 1; }
.role-illustration .accent { stroke: #ffb441; stroke-width: 3; }
.role-content { padding: clamp(1.1rem,2.7vw,2.4rem); }
.role-content h3 { font: 400 clamp(2rem,3.3vw,3.55rem)/1.05 var(--serif); letter-spacing: -.045em; }
.role-content p, .role-owners dd { color: var(--text); }
.role-content h3 + p { margin-top: .65rem; }
.role-owners { margin: 1.3rem 0; }
.role-owners div { display: grid; grid-template-columns: minmax(0,.68fr) minmax(0,1.4fr); gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.role-owners dt, .role-check h4 { font-weight: 700; }
.role-owners dd { margin: 0; }
.role-check { background: var(--light); padding: .8rem 1rem; border-left: 3px solid var(--blue); margin-bottom: 1.15rem; }
.role-check h4 { margin: 0 0 .2rem; }
.role-review { background: var(--panel); color: white; padding-block: clamp(3rem,5vw,5.6rem); }
.role-review .over { color: #bfe7fa; }
.review-intro { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 5%; }
.review-intro > p { color: #e2edf0; max-width: 50ch; }
.role-review ol { padding: 0; display: grid; grid-template-columns: repeat(4,1fr); list-style: none; margin: 2.2rem 0 0; }
.role-review li { border-top: 1px solid #87a6b4; padding: 1.3rem 1.2rem 0 0; position: relative; }
.role-review li::before { content: ''; position: absolute; top: -.28rem; left: 0; width: .5rem; height: .5rem; background: var(--amber); }
.role-review li h3 { font-size: 1.24rem; }
.role-review li p { margin-top: .6rem; color: #e2edf0; }
@media (prefers-reduced-motion: no-preference) {
  .role-sheet.in-view svg .trace, .role-sheet.in-view svg .accent { animation: role-stroke .95s ease-out both; }
  .role-sheet.in-view svg .paper, .role-sheet.in-view svg .bar, .role-sheet.in-view svg .hot { animation: role-ink .7s ease-out both; }
  @keyframes role-stroke { from { stroke-dasharray: 400; stroke-dashoffset: 400; } to { stroke-dasharray: 400; stroke-dashoffset: 0; } }
  @keyframes role-ink { from { opacity: .35; } to { opacity: 1; } }
}
@media (max-width: 760px) {
  .role-workspace, .review-intro { grid-template-columns: 1fr; gap: 1rem; }
  .is-interactive .role-tabs { display: none; }
  .is-interactive .role-select { display: grid; gap: .4rem; font-weight: 650; }
  .role-select select {
    display: block; width: 100%; padding: .8rem 2.2rem .8rem .8rem; border: 1px solid var(--blue-deep);
    border-radius: var(--control-radius); font: inherit; color: var(--ink); background-color: white; appearance: none;
    background-image: linear-gradient(45deg,transparent 50%,var(--blue-deep) 50%),linear-gradient(135deg,var(--blue-deep) 50%,transparent 50%);
    background-position: calc(100% - 17px) 50%,calc(100% - 11px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
  }
  .role-select select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
  .role-review ol { grid-template-columns: repeat(2,1fr); gap: 1.5rem 0; }
}
@media (max-width: 500px) {
  .role-owners div { grid-template-columns: 1fr; gap: .2rem; }
  .role-review ol { grid-template-columns: 1fr; gap: 0; }
  .role-review li { border: 0; border-left: 1px solid #87a6b4; padding: 0 0 1.25rem 1rem; }
  .role-review li::before { top: .32rem; left: -.28rem; }
}

/* Staffing journeys */
.staff-hero,.staff-contact,.staff-faq{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.86fr);gap:clamp(2rem,6vw,6.5rem);align-items:start}
.staff-hero{align-items:center;padding-block:2rem 1rem}
.staff-hero h1{font-size:clamp(3.2rem,5.8vw,6.1rem);line-height:1.04;max-width:13ch;margin:.35em 0}
.staff-hero h1 em{display:block;color:#075476}
.staff-actions,.staff-other,.staff-role-action{display:flex;align-items:center;gap:1rem 1.6rem;flex-wrap:wrap}
.staff-actions{margin-top:1.6rem}
.staff-sample{margin:0;background:#063953;color:white;overflow:hidden;border-radius:2px}
.staff-photo{aspect-ratio:1.85;overflow:hidden}
.staff-photo img{width:100%;height:100%;display:block;object-fit:cover;object-position:50% 46%}
.staff-sample figcaption{padding:clamp(1.2rem,2.4vw,2rem);border-left:4px solid #ff9c00}
.staff-sample figcaption span{display:block;color:#f8c36b;font:600 .76rem/1.4 monospace;text-transform:uppercase;letter-spacing:.09em}
.staff-sample figcaption strong{display:block;font-size:clamp(1.35rem,2.4vw,2.05rem);margin:.4rem 0}
.staff-sample figcaption p{color:#e1edf1;max-width:50ch;margin:.45rem 0 .8rem}
.staff-sample .textlink,.staff-contact>div .textlink{color:white}
.staff-sample .textlink:hover,.staff-contact>div .textlink:hover{color:#ffbc51}
.staff-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:2rem;gap:clamp(1.2rem,3vw,3rem)}
.staff-proof .staff-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.staff-options article{border-top:2px solid #23617a;padding:1.25rem 0 .25rem;display:flex;flex-direction:column;align-items:flex-start}
.staff-options h3{margin:0;font-size:clamp(1.35rem,2vw,1.85rem)}
.staff-options p{line-height:1.55}
.staff-options .staff-lineup{font-weight:650;color:#075476;margin:.7rem 0 0}
.staff-options a{margin-top:auto}
.staff-other{margin-top:2rem;border-top:1px solid #afc3cb;padding-top:1.25rem}
.staff-role-action{border-top:1px solid #cbd9dc;padding-top:.8rem;align-items:flex-end}
.staff-role-action label,#staff-brief label{display:grid;gap:.4rem;font-size:.9rem;font-weight:650}
.staff-role-action select,#staff-brief :is(select,input:not([type=hidden]),textarea){display:block;width:100%;min-width:0;border:1px solid #68808c;border-radius:.35rem;padding:.66rem .78rem;background:white;color:#122d3b;font:normal 1rem/1.4 inherit;font-family:inherit;font-size:1rem}
.staff-role-action a{margin-bottom:.65rem}
.staff-faq details,#staff-brief details{border-top:1px solid #aebfc6}
.staff-faq summary,#staff-brief summary{padding:1rem 0;cursor:pointer;font-weight:650}
.staff-faq details p{line-height:1.6;margin:0 0 1rem}
.staff-contact>div>p:not(.over){color:#dce9ee;max-width:38ch}
#staff-brief{background:white;color:#122d3b;border-top:4px solid #ff9c00;padding:clamp(1.25rem,3vw,2.25rem);border-radius:.3rem;display:grid;gap:1.05rem;min-width:0}
#staff-brief .staff-required{font-size:.85rem;color:#38505b;margin:0}
#staff-brief summary{font-size:.95rem}
#staff-brief details label{margin-bottom:.75rem}
.staff-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
#staff-brief button{justify-self:start}
.staff-contact :focus-visible,.staff-role-action :focus-visible,.staff-faq summary:focus-visible{outline:3px solid #0073b4;outline-offset:3px}
@media(max-width:800px){.staff-hero,.staff-contact,.staff-faq{grid-template-columns:1fr}.staff-hero{padding-top:.75rem}.staff-options,.staff-proof .staff-options{grid-template-columns:1fr}.staff-photo{aspect-ratio:1.85}.staff-options article{padding-top:1rem}}
@media(max-width:510px){.staff-field-pair{grid-template-columns:1fr}.staff-actions{gap:.75rem 1.15rem}.staff-role-action{align-items:stretch;flex-direction:column}.staff-role-action a{align-self:flex-start}}

.stack-directory>.lead,.stack-experience{max-width:74ch}
.stack-experience{line-height:1.6;color:#38505b}
.stack-tools{margin:2rem 0 1rem;max-width:42rem}
.stack-tools label,.stack-role label{display:block;font-weight:650;margin:0 0 .4rem}
.stack-tools input,.stack-role select{width:100%;padding:.75rem;background:white;color:#122d3b;border:1px solid #68808c;border-radius:.35rem;font:inherit}
.stack-tools p{margin:.45rem 0}
.stack-stage{display:grid;grid-template-columns:minmax(10rem,.36fr) minmax(0,1fr);gap:clamp(1rem,4vw,4rem);padding:1.5rem 0;border-top:1px solid #9bb1ba}
.stack-stage h3{font-size:clamp(1.2rem,2vw,1.65rem);margin:.6rem 0}
.stack-directory [hidden],#staff-brief [hidden]{display:none}
.stack-group{border-bottom:1px solid #beced3}
.stack-group summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;cursor:pointer;list-style:none;padding:.8rem .35rem;gap:.22rem .8rem}
.stack-group summary::-webkit-details-marker{display:none}
.stack-group summary strong{font-size:1.1rem}
.stack-group summary span{grid-column:1;color:#38505b;font-size:.93rem}
.stack-group summary::after{content:'+';grid-column:2;grid-row:1/3;font-size:1.55rem;color:#075476}
.stack-group[open] summary::after{content:'−'}
.stack-group[open] summary strong{color:#075476}
.stack-body{padding:.1rem .35rem 1.25rem}
.stack-body p{margin:.3rem 0 1rem}
.stack-body fieldset{border:0;padding:0;margin:0;min-width:0}
.stack-body legend{font-weight:600;font-size:.9rem;margin-bottom:.5rem}
.stack-choices{display:flex;gap:.45rem;flex-wrap:wrap}
.stack-choices label{background:white;border:1px solid #a4bac3;border-radius:.3rem;padding:.4rem .65rem;display:inline-flex;align-items:center;gap:.4rem;cursor:pointer;font-size:.93rem;line-height:1.35}
.stack-choices label:has(:checked){background:#e0f1fa;border-color:#0073b4}
.stack-choices input{width:1rem;height:1rem;accent-color:#0073b4}
.stack-role{margin-top:1.15rem}
.stack-role select{width:min(100%,19rem);display:inline-block;margin:0 1rem .5rem 0}
.stack-next{border-top:2px solid #075476;background:white;padding:1.25rem;display:flex;gap:1rem;align-items:center;justify-content:space-between}
.stack-next p{margin:.35rem 0 0;overflow-wrap:anywhere}
.stack-next a{flex-shrink:0}
#staff-selected-skills{background:#edf5f7;color:#12394b;margin:0;padding:.75rem;overflow-wrap:anywhere}
.stack-directory :focus-visible{outline:3px solid #0073b4;outline-offset:3px}
@media(max-width:720px){.stack-stage{grid-template-columns:1fr;gap:.25rem}.stack-next{align-items:flex-start;flex-direction:column}}
