/* Workflow diagrams extend the existing portfolio typography and colors. */
.project-tabs { gap: 25px; }
.project-tabs .tab-lens { margin-left: 0; }
.skills-brief { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 34px 0 30px; }
.skills-brief h2 { font: 750 30px/1.2 var(--font-display); letter-spacing: -.7px; margin: 0 0 10px; }
.skills-brief > div > p:last-child { color: #616670; margin: 0; font-size: 15px; }
.skill-key { margin: 0; padding-left: 25px; border-left: 1px solid var(--line); font-size: 13px; }
.skill-key > div { display: flex; gap: 15px; margin: 8px 0; }
.skill-key dt { font-weight: 750; min-width: 38px; }
.skill-key dd { margin: 0; color: #626975; }
.skill-story { border-top: 1px solid #b4b7be; padding: 30px 0; scroll-margin-top: 80px; }
.skill-heading { display: flex; gap: 20px; margin-bottom: 24px; }
.skill-index { color: #53617e; font: 13px/1.6 ui-monospace, monospace; padding-top: 3px; }
.skill-filename { font: 12px/1.6 ui-monospace, monospace; color: #6b7280; margin: 0 0 7px; }
.skill-heading h3 { font: 750 clamp(23px, 2.1vw, 29px)/1.3 var(--font-display); letter-spacing: -.7px; margin: 0 0 9px; }
.skill-heading p:last-child { margin: 0; font-size: 15px; color: #525c6b; line-height: 1.6; }
.skill-heading p:last-child strong { font-weight: 650; color: #263a6c; }
.routing-controls, .ux-path-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; font-size: 13px; }
.routing-controls > span, .ux-path-controls > span { color: #555e6c; font-weight: 600; }
.scenario-options, .ux-path-controls > div { display: flex; gap: 6px; flex-wrap: wrap; }
.scenario-options button, .ux-path-controls button { border: 1px solid #c9cdd5; background: transparent; padding: 8px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; }
.scenario-options button[aria-pressed="true"], .ux-path-controls button[aria-pressed="true"] { color: #233d98; background: #e5eaf8; border-color: #8c9ac6; }
.routing-note { font-size: 12px; line-height: 1.6; color: #677180; margin: 10px 0 22px; min-height: 20px; }
.council-flow, .ux-flow { display: grid; grid-template-columns: .95fr 1.5fr .95fr 1fr 1.15fr; gap: 24px; align-items: stretch; }
.flow-station { min-width: 0; position: relative; border: 1px solid #c5cbd5; border-radius: 5px; background: #fafbf9; padding: 13px; }
.flow-station.is-selected { border-color: #6980c5; box-shadow: inset 0 0 0 1px #6980c5; background: #f4f6fd; }
.station-button { border: 0; width: 100%; padding: 0; text-align: left; background: transparent; cursor: pointer; display: block; border-radius: 2px; }
.station-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.station-index { font: 11px ui-monospace, monospace; color: #798293; }
.station-top svg { width: 30px; height: 30px; fill: none; stroke: #415781; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.station-button strong { display: block; font: 750 16px/1.4 var(--font-display); color: #203351; }
.station-caption { font-size: 12px; line-height: 1.6; color: #667184; display: block; margin-top: 7px; }
.flow-arrow { position: absolute; right: -21px; top: 73px; color: #6a7891; font: 20px/1 ui-monospace, monospace; }
.flow-station:nth-child(5) > .flow-arrow { display: none; }
.station-tags { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; font-size: 11px; color: #65708a; }
.station-tags span::before { content: '—'; margin-right: 7px; }
.reviewer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 18px; }
.reviewer-role { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 7px 5px; border: 1px dashed #c5ccd7; border-radius: 3px; color: #767c85!important; background: #f0f1f0; font-size: 10px; line-height: 1.3; cursor: pointer; text-align: left; }
.reviewer-role.is-routed { background: #e9edf7; color: #2a426f!important; border: 1px solid #bbc7df; }
.reviewer-role[aria-pressed="true"] { outline: 2px solid #516ab2; outline-offset: 1px; }
.role-dot { width: 5px; height: 5px; border: 1px solid #96a1b4; border-radius: 50%; flex-shrink: 0; }
.is-routed .role-dot { background: #6881b5; border-color: #6881b5; }
.core-role.is-routed .role-dot { background: #2c4699; border-color: #2c4699; }
.independence-note { font-size: 10px; color: #546a8c; text-align: center; margin-top: 14px; border-top: 1px dashed #bac4d6; padding-top: 10px; }
.independence-note > span { font-size: 18px; margin-right: 4px; vertical-align: -1px; }
.packet-stack { margin: 22px 4px 4px 0; border: 1px solid #d0d5df; box-shadow: 4px 4px 0 #e6e9ed, 5px 5px 0 #c6cedb; padding: 9px; display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: #626f85; }
.packet-stack span + span { border-top: 1px solid #e1e5ec; padding-top: 5px; }
.disposition-list { display: flex; flex-direction: column; gap: 10px; margin-top: 23px; font-size: 11px; }
.disposition-list span { border-left: 2px solid #a2b4d1; padding-left: 7px; color: #415773; }
.disposition-list .disposition-accept { border-color: #517d6a; color: #315e49; }
.disposition-list .disposition-dismiss { border-color: #bbbfc7; color: #6a717c; }
.report-sheet { font-size: 11px; color: #66768d; display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.report-sheet strong { border-top: 1px solid #ccd4e2; padding-top: 12px; color: #294575; line-height: 1.6; }
.flow-rule { display: flex; gap: 10px; align-items: baseline; font-size: 12px; color: #6b7382; margin: 14px 0 22px; }
.flow-rule p { margin: 0; }
.rule-mark { color: #647597; font-size: 21px; }
.flow-detail { border-top: 1px solid #c7ceda; background: #e9edf4; padding: 22px 25px; min-height: 235px; }
.flow-detail article { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; }
.detail-eyebrow { margin: 0 0 5px!important; color: #627596!important; font-size: 11px!important; }
.flow-detail h4 { font: 750 18px/1.4 var(--font-display); margin: 0 0 9px; }
.flow-detail p { font-size: 13px; line-height: 1.7; color: #526077; margin: 0; }
.flow-detail .detail-output { margin-top: 13px; }
.detail-output > strong { display: block; font-size: 11px; color: #31486f; }
.rule-excerpt { margin: 0; padding-left: 24px; border-left: 1px solid #bdc8dc; }
.rule-excerpt figcaption { font-size: 11px; color: #697996; margin-bottom: 10px; }
.rule-excerpt blockquote { font: 650 17px/1.6 var(--font-display); color: #304976; margin: 0 0 11px; white-space: pre-line; }
.rule-excerpt p { font: 10px/1.7 ui-monospace, monospace; overflow-wrap: anywhere; }
.role-contract { font-size: 13px; color: #445570; padding-left: 24px; border-left: 1px solid #bdc8dc; }
.role-contract ul { font-size: 12px; line-height: 1.8; padding-left: 17px; }
.skill-evidence-link { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 17px; font-size: 12px; line-height: 1.6; }
.skill-evidence-link > span { font-weight: 650; color: #7a808b; }
.skill-evidence-link a { color: #344d83; text-underline-offset: 4px; }
.ux-story { margin-top: 12px; }
.ux-flow { grid-template-columns: repeat(5, minmax(0,1fr)); margin-bottom: 21px; }
.actor-label { display: block; font-size: 10px; color: #6b7a91; margin: 0 0 4px; }
.human-station { background: #f8f1e6; border-color: #cbb99b; }
.human-station .actor-label { color: #94682e; font-weight: 700; }
.human-station .station-top svg { stroke: #936e3d; }
.responsive-glyphs { height: 55px; display: flex; align-items: flex-end; justify-content: center; gap: 9px; margin-top: 20px; padding-bottom: 5px; }
.responsive-glyphs span { border: 1.5px solid #8c9bb8; background: repeating-linear-gradient(to bottom, transparent 0, transparent 6px, #dfe5ef 6px, #dfe5ef 8px); border-radius: 2px; position: relative; }
.device-desktop { width: 55px; height: 34px; margin-bottom: 7px; }
.device-desktop::after { content: ''; position: absolute; width: 20px; height: 6px; border-bottom: 1.5px solid #8c9bb8; bottom: -8px; left: 16px; }
.device-tablet { width: 26px; height: 37px; }
.device-phone { width: 16px; height: 28px; }
.approval-record { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; color: #637486; font-size: 10px; }
.revision-loop { grid-column: 2/5; border: 1px solid #9aaacd; border-top: 0; border-radius: 0 0 9px 9px; position: relative; padding: 7px 15px; margin: -24px 16px 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: #48639b; }
.revision-loop > span:first-child { font-size: 31px; position: absolute; left: -11px; top: 1px; background: var(--paper); }
.revision-loop p { font-size: 11px; line-height: 1.5; margin: 0; text-align: center; }
.loop-label { color: #526990; font: 10px ui-monospace, monospace; }
.ux-path-controls { margin-bottom: 19px; }
.ux-path-note { flex-basis: 100%; color: #677180; font-size: 12px; margin: 0; }
.show-approval .revision-loop { border-color: #d2d6dc; color: #85909e; }
.show-approval .revision-loop .loop-label { color: #85909e; }
.show-approval [data-station="record"] { border-color: #688572; box-shadow: inset 0 0 0 1px #688572; background: #f1f5ef; }
.show-approval [data-station="feedback"] .flow-arrow { color: #3e7757; font-weight: 750; }
.ux-evidence-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; margin-top: 22px; }
.ux-evidence-strip strong, .ux-evidence-strip span { display: block; }
.ux-evidence-strip strong { font-size: 12px; margin-bottom: 5px; color: #394b67; }
.ux-evidence-strip span { font-size: 11px; color: #737c8b; line-height: 1.6; }
.skill-sources { border-top: 1px solid var(--line); padding-top: 13px; }
.skill-sources li { overflow-wrap: anywhere; }
.skills-panel .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:1250px) { .project-tabs .tab-lens { display: none; } }
@media(max-width:1050px) {
  .skills-brief { grid-template-columns: 1fr; gap: 20px; }
  .skill-key { display: flex; gap: 25px; border: 0; padding: 0; }
  .council-flow { grid-template-columns: .9fr 1.4fr .9fr .95fr 1.05fr; gap: 17px; }
  .flow-station { padding: 10px; }
  .flow-arrow { right: -16px; font-size: 16px; }
  .station-button strong { font-size: 14px; }
  .reviewer-grid { grid-template-columns: 1fr; }
  .station-caption { font-size: 11px; }
  .flow-detail article { gap: 25px; }
  .ux-flow { gap: 17px; }
  .responsive-glyphs { gap: 5px; transform: scale(.8); transform-origin: left bottom; }
}
@media(max-width:900px) {
  .council-flow, .ux-flow { grid-template-columns: 1fr; gap: 19px; }
  .flow-station { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; padding: 16px; }
  .station-top { justify-content: flex-start; gap: 12px; margin-bottom: 9px; }
  .station-top svg { width: 24px; height: 24px; }
  .station-button strong { font-size: 16px; }
  .station-caption { font-size: 12px; }
  .reviewer-grid { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .reviewer-role { font-size: 11px; padding: 8px; }
  .independence-note { grid-column: 1/-1; margin-top: -8px; }
  .flow-arrow { right: auto; left: 30px; top: auto; bottom: -20px; transform: rotate(90deg); font-size: 18px; }
  .station-tags, .packet-stack, .disposition-list, .report-sheet, .approval-record, .responsive-glyphs { margin-top: 0; }
  .responsive-glyphs { transform: none; justify-content: flex-start; }
  .ux-flow { position: relative; margin-left: 18px; }
  .ux-flow > .flow-station { margin-left: 10px; }
  .revision-loop { position: absolute; grid-column: auto; margin: 0; top: 27%; bottom: 21%; left: -18px; width: 20px; border: 1px solid #9aaacd; border-right: 0; border-radius: 8px 0 0 8px; padding: 0; }
  .revision-loop p { display: none; }
  .revision-loop > span:first-child { left: 8px; top: -13px; font-size: 23px; transform: rotate(90deg); }
  .revision-loop .loop-label { position: absolute; writing-mode: vertical-rl; transform: rotate(180deg); left: -9px; top: 35%; background: var(--paper); padding: 5px 0; }
  .flow-detail { min-height: 0; }
  .skill-brief h2 { font-size: 25px; }
}
@media(max-width:600px) {
  .project-tabs { gap: 20px; }
  .skills-brief { padding: 26px 0; }
  .skills-brief h2 { font-size: 25px; }
  .skill-key { display: block; font-size: 12px; }
  .skill-key > div { margin: 4px 0; }
  .skill-heading { gap: 12px; }
  .skill-heading h3 { font-size: 23px; }
  .skill-heading p:last-child { font-size: 14px; }
  .routing-controls { gap: 9px; }
  .scenario-options button { font-size: 11px; padding: 8px 9px; }
  .flow-station { padding: 13px; gap: 13px; }
  .station-button strong { font-size: 14px; }
  .station-caption { font-size: 11px; }
  .station-top { margin-bottom: 8px; }
  .reviewer-grid { grid-template-columns: 1fr; gap: 4px; }
  .reviewer-role { font-size: 10px; padding: 6px; }
  .flow-detail { padding: 18px; }
  .flow-detail article { grid-template-columns: 1fr; gap: 21px; }
  .rule-excerpt, .role-contract { padding: 15px 0 0; border-left: 0; border-top: 1px solid #bdc8dc; }
  .rule-excerpt blockquote { font-size: 16px; }
  .ux-evidence-strip { grid-template-columns: 1fr; gap: 15px; }
  .skill-evidence-link { display: flex; flex-direction: column; gap: 8px; }
  .skill-story { padding-top: 24px; }
}
@media(max-width:900px) {
  .ux-flow { grid-template-columns: 18px minmax(0,1fr); column-gap: 10px; margin-left: 0; }
  .ux-flow > .flow-station { grid-column: 2; margin-left: 0; }
  .revision-loop { position: relative; grid-column: 1; grid-row: 2 / 5; top: auto; bottom: auto; left: auto; width: auto; margin: 42px 0 52px; }
  .ux-flow [data-station="prepare"] .station-button,
  .ux-flow [data-station="exercise"] .station-button,
  .ux-flow [data-station="feedback"] .station-button { grid-column: 1/-1; }
}
@media(max-width:600px) {
  .project-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; overflow: visible; }
  .project-tabs > a { white-space: normal; min-width: 0; padding: 10px 0; }
  .project-tabs .tab-number { display: none; }
  .walkthrough-page .skill-story, .walkthrough-page .claim { scroll-margin-top: 110px; }
}
