/* ==========================================================================
   Projects portfolio: layout only. Table, chips, filter bar and empty state come from components/ui.css.
   Rows and empty states are drawn by projects.js (filterPortfolio, renderProjectRow, showPortfolioEmpty).
   ========================================================================== */
@layer app-pages {

    #portfolioScopeTabs[hidden] { display: none; }

    .port-filter-toggles {
        align-items: center;
        gap: 0.25rem 1.5rem;
    }
    .port-count { margin-left: auto; }

    .port-col-pin { width: 2.75rem; }
    .port-col-project { width: 27%; }
    .port-col-client { width: 13%; }
    .port-col-lead { width: 13%; }
    .port-col-phases { width: 18%; }
    .port-col-tasks { width: 8%; }
    .port-col-attn { width: 12%; }
    .port-col-activity { width: 8%; }

    .port-row { cursor: pointer; }

    .port-pin-cell { width: 2.75rem; text-align: center; }
    /* The card switch is the shared data_table(cards="wide"); in a card the pin is a normal row, not a narrow centred column. */
    @container (width <= 55rem) { .port-pin-cell { width: auto; text-align: left; } }
    .port-pin {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: var(--d26-target);
        min-height: var(--d26-target);
        padding: 0;
        border: 0;
        border-radius: var(--d26-radius-control);
        background: transparent;
        color: var(--d26-ink-3);
        cursor: pointer;
    }
    .port-pin:hover { color: var(--d26-wait-fg); background: var(--d26-surface); }
    .port-pin.is-pinned { color: var(--d26-wait-fg); }

    .port-name-cell {
        display: flex;
        align-items: flex-start;
        gap: 0.625rem;
    }
    .port-code {
        flex: none;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }
    .port-name-text { font-weight: 600; color: var(--d26-ink); }
    .port-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-top: 0.25rem;
    }
    .port-badges .ui-chip + .ui-chip { margin-left: 0; }

    .port-phases-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    .port-phases-chips .ui-chip + .ui-chip { margin-left: 0; }

    .port-attn-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    .port-attn-stack .ui-chip + .ui-chip { margin-left: 0; }

    .port-quiet { font-size: 0.8125rem; }

    .port-more {
        display: flex;
        justify-content: center;
        padding: 0.875rem 1rem;
        border-top: 1px solid var(--d26-line);
    }
    .port-more[hidden] { display: none; }
}
