/* Consistent static stage indicators; these describe timeline position, not a decision outcome. */
.public-stage-indicator{display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:18px;border:1.5px solid #a6b1bf;border-radius:50%;font-size:12px;font-weight:750;line-height:1;vertical-align:middle;box-sizing:border-box;background:transparent;color:#788594}.public-stage-indicator.is-passed{border-color:#24925e;background:#e6f5ec;color:#17794b}.public-stage-indicator.is-current{border-color:#356b9f;background:#eaf2fc;color:#215687;font-size:14px;letter-spacing:-1px;padding-bottom:4px}.stage-tab-with-reference .rail-stage-name{display:flex;align-items:flex-start;gap:7px;padding-right:0;font-weight:650}.stage-tab-with-reference .rail-stage-name .public-stage-indicator{margin-top:1px}.stage-tab-with-reference .rail-stage-check{display:none!important}.stage-tab-with-reference:has([aria-selected=true]) .public-stage-indicator.is-current{background:#eaf2fc;color:#215687;border-color:#c1d5ee}.stage-tab-with-reference:has([aria-selected=true]) .public-stage-indicator.is-passed{background:#e6f5ec;color:#17794b;border-color:#a6d4b9}.project-grid .public-card-stage{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding-top:8px;padding-bottom:10px}.public-card-stage-title{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.6;font-weight:650;color:#24466e}.public-card-stage-title .public-stage-indicator{margin-top:2px}.public-card-stage-reference{padding-left:26px}.public-stage-stat h3{font-size:17px;line-height:1.5;min-height:54px}.public-stage-stat .stat-stage-reference{margin-bottom:9px}.compact-project-dates .event-decision-organizations{margin-top:9px;padding-top:8px;border-top:1px solid #e0e7ef;font-size:12px;line-height:1.7}.compact-project-dates .event-decision-organizations>span{display:block;color:#66788f;font-size:11px}.compact-project-dates .event-decision-organizations>strong{display:block;color:#294d75;font-weight:600;overflow-wrap:anywhere}@media(max-width:620px){.public-stage-stat h3{font-size:15px;min-height:0}.public-card-stage-title{font-size:13px}}

/* Reserve reference space below the name without a fixed top offset. */
.stage-tab-with-reference>.rail-legal-reference{top:auto;bottom:36px}
.stage-tab-with-reference>.project-stage-tab{min-height:154px}

/* Inline project-card stage reference in parentheses. */
.project-grid .public-card-stage{
    display:block;
    line-height:1.7;
}
.project-card .public-card-stage-title{
    display:inline;
}
.project-card .public-card-stage-title .public-stage-indicator{
    margin:0 7px 0 0;
    vertical-align:-3px;
}
.project-card .public-card-stage-reference{
    display:inline;
    padding-left:0;
    margin-left:5px;
}
.project-card .public-card-stage-reference .stage-legal-disclosure{
    display:inline-block;
    vertical-align:baseline;
}
.project-card .public-card-stage-reference summary.stage-legal-code{
    display:inline-flex;
    gap:0;
    white-space:nowrap;
    font-size:11px;
    font-weight:400;
}
.project-card .public-card-stage-reference summary.stage-legal-code::before{
    content:"(";
}
.project-card .public-card-stage-reference summary.stage-legal-code::after{
    content:")";
}

/* Remove reserved project-title space. */
.project-grid>.project-card .card-title-first{
    min-height:0;
    padding:16px 20px 6px!important;
}
.project-grid>.project-card .card-title-first h3{
    margin:0;
}
.project-grid>.project-card .public-card-stage{
    padding-top:4px;
    padding-bottom:8px;
}

/* Align card indicator and strengthen classification text. */
.project-card .public-card-stage-title .public-stage-indicator{
    transform:translateY(-3px);
}
.project-card .card-body .sector-label{
    color:var(--ink);
    font-size:13px;
    font-weight:650;
    line-height:1.6;
}

/* Compact public project general information. */
.panel.compact-project-info{
    padding:18px 20px;
}
.compact-project-info>h2{
    margin-bottom:12px;
}
.compact-project-info .detail-facts{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 24px;
}
.compact-project-info .detail-facts>div{
    min-width:0;
    padding:10px 0;
    border-top:1px solid #e5eaf0;
    line-height:1.7;
}
.compact-project-info .detail-facts dt{
    display:inline;
    font-size:13px;
}
.compact-project-info .detail-facts dt::after{
    content:":";
    margin-right:6px;
}
.compact-project-info .detail-facts dd{
    display:inline;
    margin:0;
    font-size:14px;
    font-weight:650;
    overflow-wrap:anywhere;
}
@media(max-width:620px){
    .panel.compact-project-info{
        padding:16px;
    }
    .compact-project-info .detail-facts{
        grid-template-columns:minmax(0,1fr);
    }
}

/* Current stage belongs to compact general information. */
.compact-project-info .general-info-stage .stage-legal-disclosure{
    display:inline-block;
    margin:0 0 0 4px;
    vertical-align:baseline;
}
.compact-project-info .general-info-stage summary.stage-legal-code{
    display:inline-flex;
    gap:0;
    white-space:nowrap;
    font-size:11px;
    font-weight:400;
}
.compact-project-info .general-info-stage summary.stage-legal-code::before{
    content:"(";
}
.compact-project-info .general-info-stage summary.stage-legal-code::after{
    content:")";
}

/* Inline selected-stage code and decision organizations. */
.compact-project-dates .stage-date-title{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:baseline;
    gap:4px 8px;
}
.compact-project-dates .stage-date-title h3{
    order:0;
}
.compact-project-dates .stage-date-title>.stage-legal-disclosure{
    order:1;
    display:inline-block;
}
.compact-project-dates .stage-date-title summary.stage-legal-code{
    display:inline-flex;
    gap:0;
    white-space:nowrap;
}
.compact-project-dates .stage-date-title summary.stage-legal-code::before{
    content:"(";
}
.compact-project-dates .stage-date-title summary.stage-legal-code::after{
    content:")";
}
.stage-decision-makers{
    padding:9px 14px;
    font-size:12px;
    line-height:1.7;
    border-bottom:1px solid #e5eaf0;
    overflow-wrap:anywhere;
}
.stage-decision-makers>span{
    color:#66788f;
    margin-right:6px;
}
.stage-decision-makers>strong{
    color:#294d75;
    font-weight:600;
}

/* Label project-card sectors and categories. */
.project-card .card-classifications{
    margin:0;
    font-size:13px;
    line-height:1.7;
}
.project-card .card-classifications>div+div{
    margin-top:7px;
}
.project-card .card-classifications dt{
    display:inline;
    color:var(--muted);
    font-size:13px;
    font-weight:400;
    margin-right:6px;
}
.project-card .card-classifications dd{
    display:inline;
    margin:0;
    color:var(--ink);
    font-size:13px;
    font-weight:650;
    overflow-wrap:anywhere;
}

/* Date-first stage steps without repeated organization labels. */
.compact-project-dates .mini-stage-timeline .event-date-row,
.compact-project-dates.horizontal-stage-view .mini-stage-timeline .event-date-row{
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
    gap:5px;
}
.compact-project-dates .mini-stage-timeline .event-date-value{
    order:0;
    text-align:left;
}
.compact-project-dates .mini-stage-timeline .event-date-label{
    order:1;
}
.compact-project-dates .mini-stage-timeline .event-decision-organizations{
    order:2;
    margin-top:3px;
    padding-top:0;
    border-top:0;
}

/* Temporary analysis organization below its event date. */
.compact-project-dates .mini-stage-timeline .event-analysis-organization{
    order:1;
    font-size:11px;
    line-height:1.6;
    color:#294d75;
    overflow-wrap:anywhere;
}
.event-analysis-organization>strong{
    font-weight:600;
}
.compact-project-dates .mini-stage-timeline .event-date-label{
    order:2;
}
.compact-project-dates .mini-stage-timeline .event-decision-organizations{
    order:3;
}
