/* ============================================================
   Shared styles for building subpage components
   ============================================================ */

/* ContentTile padding for all building subpage tiles */
.building-tile > .row:last-child > .col {
    padding-top: 18px;
    padding-bottom: 16px;
}

.building-subpage-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
    padding: 12px 14px;
    background: rgba(10, 10, 10, 0.45);
    border-radius: 6px;
    border: 1px solid rgba(100, 150, 255, 0.15);
}

/* Description with the production total under it - one item of the header's flex content */
.building-subpage-intro {
    min-width: 0;
}

/* Total production under the description in the header of a building with production settings */
.building-production-stat {
    margin-top: 12px;
    color: #4ade80;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.5), 2px 2px 5px black;
    letter-spacing: 0.03em;
}

/* ============================================================
   Subsidy section layout (used in all 6 building subsidy tiles)
   Phones: illustration as a strip above the text, from 768px beside it
   ============================================================ */

.subsidy-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    padding: 4px 2px;
}

.subsidy-illustration {
    width: 100%;
}

.subsidy-illustration-placeholder {
    width: 100%;
    height: 70px;
    border: 2px dashed rgba(100, 150, 255, 0.3);
    border-radius: 8px;
    background: rgba(20, 20, 50, 0.4);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-size: 1.4rem;
}

.subsidy-illustration-hint {
    color: rgba(140, 160, 230, 0.5);
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.35;
    font-style: italic;
}

.subsidy-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.subsidy-button-row {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 768px) {
    .subsidy-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .subsidy-illustration {
        flex: 0 0 190px;
        width: auto;
    }

    .subsidy-illustration-placeholder {
        height: 130px;
        flex-direction: column;
        font-size: 1.8rem;
    }

    .subsidy-illustration-hint {
        font-size: 0.7rem;
    }
}
