/* Premium production pipeline: stage tiles, insight cards and the aircraft profile stage tracker. */
.production-pipeline {
    margin: 1.5rem 0 2rem;
}
.production-pipeline h2 {
    margin: 0 0 0.25rem;
}
.production-pipeline-sub {
    color: #6b7280;
    margin-bottom: 1rem;
}
.production-pipeline-stages {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid rgba(127, 127, 127, 0.25);
    border-radius: 12px;
    overflow: hidden;
}
.production-pipeline-stage {
    padding: 1rem 1.1rem;
    border-right: 1px solid rgba(127, 127, 127, 0.25);
}
.production-pipeline-stage:last-child {
    border-right: 0;
}
.production-pipeline-stage span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}
.production-pipeline .production-pipeline-stage b {
    display: block;
    font-size: 1.75rem !important;
    line-height: 1.15;
    margin: 0.2rem 0;
    color: inherit;
}
.production-pipeline-stage i {
    font-style: normal;
    font-size: 0.85rem;
    color: #8a8f98;
}
body:not(.page-tv) .production-pipeline-stage small.production-pipeline-engines {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem !important;
    font-weight: 600;
    color: #9a7400;
}
.production-pipeline-insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
.production-pipeline-card {
    border: 1px solid rgba(127, 127, 127, 0.25);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    min-width: 0;
}
.production-pipeline .production-pipeline-card h3 {
    font-size: 1.1rem !important;
    margin: 0 0 0.2rem;
}
.production-pipeline-card p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}
.production-pipeline-bars,
.production-pipeline-rows {
    list-style: none;
    padding: 0;
    margin: 0;
}
.production-pipeline-bars li,
.production-pipeline-rows li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.35rem 0;
    font-size: 0.92rem;
}
.production-pipeline-bars b {
    flex: 0 0 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.production-pipeline-bars b a {
    color: inherit;
    text-decoration: none;
}
.production-pipeline-bars b a:hover,
.production-pipeline-bars b a:focus {
    text-decoration: underline;
}
.production-pipeline-bars i {
    display: block;
    max-width: calc(100% - 13rem);
    height: 10px;
    border-radius: 3px;
    background: #f5c518;
}
.production-pipeline-rows b {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.production-pipeline-lines b {
    overflow: visible;
    white-space: normal;
}
.production-pipeline-rows a {
    color: inherit;
}
.production-pipeline-bars em,
.production-pipeline-rows em {
    font-style: normal;
    color: #6b7280;
    white-space: nowrap;
}
.production-tracker {
    margin: 2.5rem 0 3rem;
}
.production-tracker h4 {
    margin: 0 0 1.25rem;
    text-align: center;
}
.production-tracker-link {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}
.production-tracker-link .fa-angle-down {
    display: none;
}
.flight-item {
    scroll-margin-top: 6rem;
}
.flight-item.is-flash,
.flight-item.is-flash > td {
    animation: production-flash 2.4s ease-out;
}
@keyframes production-flash {
    0%, 40% {
        background-color: rgba(245, 197, 24, 0.35);
    }
    100% {
        background-color: transparent;
    }
}
.production-tracker ol {
    display: grid;
    grid-template-columns: repeat(var(--production-steps, 5), minmax(0, 1fr));
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: stage;
}
.production-tracker li {
    position: relative;
    padding-top: 2.1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #8a8f98;
}
.production-tracker li::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(127, 127, 127, 0.25);
}
.production-tracker li:first-child::before {
    left: 50%;
}
.production-tracker li:last-child::before {
    right: 50%;
}
.production-tracker li::after {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: calc(50% - 0.5rem);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--bs-body-bg, #fff);
    border: 3px solid rgba(127, 127, 127, 0.4);
}
.production-tracker li.is-done::before,
.production-tracker li.is-current::before {
    background: #f5c518;
}
.production-tracker li.is-done::after {
    background: #f5c518;
    border-color: #f5c518;
}
.production-tracker li.is-current {
    color: inherit;
    font-weight: 700;
}
.production-tracker li.is-current::after {
    background: #111;
    border-color: #f5c518;
    box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.3);
}
body:not(.page-tv) .production-tracker .production-tracker-age {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem !important;
    font-weight: 600;
    color: #9a7400;
}
body:not(.page-tv) .production-tracker .production-tracker-age.is-stalled,
body:not(.page-tv) .production-tracker .production-tracker-estimate.is-late {
    color: #b54708;
}
.production-tracker .production-tracker-estimate b {
    display: inline-block;
    margin-right: 0.3rem;
    padding: 0 0.3rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: 1px;
}
.production-tracker .production-tracker-estimate-when,
.production-tracker .production-tracker-estimate-basis,
.production-tracker .production-tracker-estimate-line {
    display: block;
}
@media (max-width: 767.98px) {
    .production-tracker .production-tracker-estimate-sep {
        display: none;
    }
}
@media (min-width: 768px) {
    .production-tracker .production-tracker-estimate b {
        display: table;
        margin: 0 auto 0.15rem;
    }
    .production-tracker .production-tracker-estimate-when,
    .production-tracker .production-tracker-estimate-basis {
        display: block;
    }
    .production-tracker .production-tracker-estimate-sep {
        display: none;
    }
}
/* Fill the tracker from Allocated up to the current stage. */
.production-tracker {
    --step-time: 0.35s;
}
.production-tracker li.is-done::before,
.production-tracker li.is-current::before {
    transform-origin: left center;
    animation: production-line var(--step-time) linear calc(var(--i, 0) * var(--step-time)) both;
}
.production-tracker li.is-done::after,
.production-tracker li.is-current::after {
    animation: production-dot 0.25s ease-out calc(var(--i, 0) * var(--step-time) + var(--step-time) / 2) both;
}
.production-tracker li:first-child::after {
    animation-delay: 0s;
}
.production-tracker li.is-current {
    animation: production-label 0.25s ease-out calc(var(--i, 0) * var(--step-time) + var(--step-time) / 2) both;
}
.production-tracker .production-tracker-age {
    animation: production-fade 0.4s ease-out calc(var(--i, 0) * var(--step-time) + var(--step-time)) both;
}
@keyframes production-line {
    from { transform: scale(0, 1); }
}
@keyframes production-dot {
    from {
        background: var(--bs-body-bg, #fff);
        border-color: rgba(127, 127, 127, 0.4);
        box-shadow: none;
    }
}
@keyframes production-label {
    from { color: #8a8f98; }
}
@keyframes production-fade {
    from { opacity: 0; }
}
@media (scripting: enabled) {
    .production-tracker:not(.is-playing) li,
    .production-tracker:not(.is-playing) li::before,
    .production-tracker:not(.is-playing) li::after,
    .production-tracker:not(.is-playing) .production-tracker-age {
        animation-play-state: paused;
    }
}
@media (prefers-reduced-motion: reduce) {
    .production-tracker li,
    .production-tracker li::before,
    .production-tracker li::after,
    .production-tracker .production-tracker-age {
        animation: none !important;
    }
}
@media (max-width: 991.98px) {
    .production-pipeline-insights {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767.98px) {
    .production-pipeline-stages {
        grid-template-columns: 1fr 1fr;
    }
    .production-pipeline-stage {
        border-bottom: 1px solid rgba(127, 127, 127, 0.25);
    }
    .production-tracker li {
        font-size: 0.72rem;
    }
}
@media (max-width: 575.98px) {
    .production-tracker h4 {
        text-align: left;
    }
    .production-tracker ol {
        grid-template-columns: 1fr;
    }
    .production-tracker-link {
        display: inline-block;
        pointer-events: auto;
        cursor: pointer;
    }
    .production-tracker-link .fa-angle-down {
        display: inline-block;
        margin-left: 0.4rem;
        color: #c9a000;
    }
    .production-tracker li {
        padding: 0 0 1.1rem 2rem;
        text-align: left;
        font-size: 0.9rem;
    }
    .production-tracker li::before,
    .production-tracker li:first-child::before {
        top: 0;
        bottom: 0;
        left: 0.45rem;
        right: auto;
        width: 3px;
        height: auto;
    }
    .production-tracker li:first-child::before {
        top: 0.55rem;
    }
    .production-tracker li.is-done::before,
    .production-tracker li.is-current::before {
        transform-origin: center top;
    }
    @keyframes production-line {
        from { transform: scale(1, 0); }
    }
    .production-tracker li:last-child::before {
        bottom: auto;
        height: 0.55rem;
    }
    .production-tracker li::after {
        top: 0.05rem;
        left: 0;
    }
    body:not(.page-tv) .production-tracker .production-tracker-age {
        display: inline;
        margin: 0 0 0 0.5rem;
    }
}

/* Premium production rate: first flights vs deliveries per month. */
.production-rate {
    margin: 1.5rem 0 2rem;
}
.production-rate-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}
.production-rate h2 {
    margin: 0 0 0.25rem;
}
.production-rate-sub,
.production-rate-note {
    color: #6b7280;
    margin-bottom: 0.6rem;
}
.production-rate-note {
    font-size: 0.82rem;
    margin: 0.8rem 0 0;
}
.production-rate-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.12);
    margin-bottom: 0.6rem;
}
.production-rate-pills button {
    border: 0;
    background: none;
    color: inherit;
    font-size: 0.88rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
}
.production-rate-pills button.is-active {
    background: #111;
    color: #f5c518;
    font-weight: 700;
}
.production-rate-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
}
.production-rate-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 0.35rem;
    vertical-align: -1px;
}
.production-rate-legend .pr-key-ff { background: #f5c518; }
.production-rate-legend .pr-key-del { background: #111; }
.production-rate-legend .pr-key-gap { background: #b54708; height: 3px; vertical-align: 3px; }
.production-rate-total {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
}
.production-rate-svg {
    display: block;
    width: 100%;
    height: auto;
}
.production-rate-svg.is-narrow {
    display: none;
}
.production-rate-svg .pr-grid { stroke: rgba(127, 127, 127, 0.2); }
.production-rate-svg .pr-axis { font-size: 11px; fill: #8a8f98; }
.production-rate-svg .pr-ff { fill: #f5c518; }
.production-rate-svg .pr-del { fill: #111; }
.production-rate-svg .pr-gap { fill: none; stroke: #b54708; stroke-width: 2.2; stroke-dasharray: 5 3; }
.production-rate-svg .pr-gap-dot { fill: #b54708; }
.production-rate-svg .pr-gap-label { font-size: 11px; font-weight: 700; fill: #b54708; }
.production-rate-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}
.production-rate-card {
    border: 1px solid rgba(127, 127, 127, 0.25);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    cursor: pointer;
    min-width: 0;
}
.production-rate-card:hover,
.production-rate-card:focus-visible {
    border-color: #f5c518;
}
.production-rate-card a {
    display: block;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.production-rate-card span {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}
.production-rate-card span i {
    font-style: normal;
    color: #6b7280;
}
.production-rate-card b.is-ahead { color: #b54708; }
.production-rate-card b.is-behind { color: #1a7f37; }
body:not(.page-tv) .production-rate-card small {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem !important;
    font-weight: 600;
    color: #9a7400;
}
@media (max-width: 991px) {
    .production-rate-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .production-rate-svg.is-wide { display: none; }
    .production-rate-svg.is-narrow { display: block; }
}
.production-rate-panel {
    position: relative;
}
.production-rate-svg .pr-hit {
    fill: transparent;
    cursor: pointer;
}
.production-rate-svg .pr-month:focus {
    outline: none;
}
.production-rate-svg .pr-month.is-active .pr-hit {
    fill: rgba(245, 197, 24, 0.12);
}
.production-rate-svg .pr-month.is-active .pr-ff,
.production-rate-svg .pr-month.is-active .pr-del {
    stroke: #9a7400;
    stroke-width: 1.5;
}
.production-rate-svg .pr-gap,
.production-rate-svg .pr-gap-dot,
.production-rate-svg .pr-gap-label {
    pointer-events: none;
}
.production-rate-svg .pr-gap-dot.is-active {
    r: 6;
}
.production-rate-tip {
    position: absolute;
    z-index: 5;
    min-width: 11rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    transform: translate(-50%, -100%);
    white-space: nowrap;
}
.production-rate-tip b {
    display: block;
    color: #f5c518;
}
.production-rate-tip span {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.production-rate-tip i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    margin-right: 0.35rem;
}
.production-rate-tip em {
    font-style: normal;
    color: #d1d5db;
}
.production-rate-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.production-rate-controls .production-rate-pills {
    margin-bottom: 0;
}
.production-rate-year {
    width: auto;
    min-width: 6.5rem;
}
