button.stage-legal-code{display:inline-flex;align-items:center;background:transparent;border:0;border-bottom:1px dotted #9aa8b8;border-radius:0;color:#66778d;font:inherit;font-size:11px;font-weight:400;line-height:1.5;padding:2px 1px;cursor:pointer;vertical-align:baseline;min-height:24px}.stage-legal-code:hover{color:#173c6a;border-bottom-color:#173c6a}.stage-legal-code:focus-visible{outline:2px solid #ae8732;outline-offset:3px}.stage-date-title>.stage-legal-code{flex-shrink:0;margin-right:5px}.public-stage-stat h3 a{color:inherit}.stage-tab-with-reference{position:relative;min-width:0;display:flex;align-items:stretch}.stage-tab-with-reference>.project-stage-tab{width:100%;min-width:0;height:100%}.stage-tab-with-reference .rail-legal-reference{position:absolute;top:10px;left:9px;z-index:2;font-size:10px}.stage-tab-with-reference .rail-code-placeholder{color:transparent!important}.stage-tab-with-reference .rail-code-placeholder .rail-stage-check{color:#17824b}.stage-tab-with-reference:has([aria-selected=true])>.rail-legal-reference{color:#dae5f2;border-bottom-color:#b9c9dd}.stage-tab-with-reference:has(.is-future-stage)>.rail-legal-reference{color:#718096}.stage-legal-dialog{width:calc(100% - 32px);max-width:620px;max-height:80dvh;overflow:auto;border:1px solid #d1dce9;border-radius:9px;padding:24px;color:#173c6a;background:#fff}.stage-legal-dialog::backdrop{background:#07182bbb}.stage-legal-dialog h2{font-size:17px;margin:0 0 14px}.stage-legal-dialog p{font-size:16px;line-height:1.85;margin:0 0 20px}.stage-legal-dialog button{border:1px solid #b9c9dd;border-radius:5px;padding:8px 16px;background:#fff;color:#173c6a;cursor:pointer}.stage-legal-dialog button:focus-visible{outline:2px solid #ae8732;outline-offset:3px}@media print{.stage-legal-dialog{display:none!important}}

.stage-tab-with-reference>.project-stage-tab:after{display:none}.stage-tab-with-reference:not(:last-child):after{content:'→';position:absolute;left:calc(100% + 1px);top:17px;width:13px;text-align:center;font-size:15px;color:#7b93b2;pointer-events:none}

/* Stage names lead; legal references stay secondary. */
.stage-tab-with-reference>.project-stage-tab{
    min-height:150px;
    gap:7px;
}
.stage-tab-with-reference .rail-stage-name{
    order:0;
    font-size:13px;
    font-weight:650;
    line-height:1.45;
    min-height:57px;
    padding-right:12px;
}
.stage-tab-with-reference .rail-code-placeholder{
    order:1;
    min-height:24px;
}
.stage-tab-with-reference .rail-current-badge,
.stage-tab-with-reference .rail-completed-badge,
.stage-tab-with-reference .rail-future-badge{
    order:2;
}
.stage-tab-with-reference>.rail-legal-reference{
    top:76px;
    font-size:10px;
    font-weight:400;
}
.compact-project-dates .stage-date-title{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
}
.compact-project-dates .stage-date-title h3{
    order:-1;
    font-size:16px;
    font-weight:700;
    margin:0;
}
