/*
 * The press page -- decision log #2058, docs/ui-spec.md section 3.13i, drawn on the approved canvas
 * `Press Kit` (design/press-kit/project/).
 *
 * A STATIC SHEET AND NOT A BLOCK IN app.css, so the page looks right without waiting for a rebuild of
 * the asset bundle. TOKENS ONLY: every colour is a `var(--color-*)` declared by `@theme` in
 * resources/css/app.css (docs/ui-spec.md section 5c); there is no raw colour here, which is what the
 * accessibility audit's "tokens only" rule asks of a screen. Phone first; `min-width` adds the desktop.
 */

.press {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-inline: auto;
    max-width: 72rem;
    padding-block: 4px 8px;
}

.press-left,
.press-right {
    display: contents;
}

.press h2,
.press-family-barlow-condensed {
    font-family: 'Barlow Condensed', 'Arial Narrow', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
}

/* THE PAGE TITLE is the shared head's (`x-page-header`, `.page-title--sub`): the uppercase 28 / 34 of every level-3 page. */

.press h2 {
    color: var(--color-ink);
    font-size: 26px;
    line-height: 1.1;
    margin: 6px 0 2px;
}

.press-family-barlow-condensed {
    font-size: 24px;
}

.press-h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.press-lead {
    color: var(--color-muted);
    font-size: 15px;
    margin: 6px 0 0;
}

.press-note {
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.press-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.press-card {
    background-color: var(--color-surface);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    box-shadow:
        0 0 0 1px var(--color-subtle),
        0 3px 12px var(--color-subtle);
}

.press-logos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.press-plate {
    align-items: center;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding: 18px;
}

.press-plate img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 260px;
}

.press-plate-light {
    background-color: var(--color-canvas);
}

.press-plate-dark {
    background-color: var(--color-ink);
}

.press-icon {
    border-radius: 22px;
    height: 96px;
    width: 96px;
}

.press-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.press-card.press-list {
    gap: 0;
}

.press-row {
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid var(--color-subtle);
    display: flex;
    font-size: 14px;
    gap: 12px;
    justify-content: space-between;
    padding: 9px 0;
}

.press-list > .press-row:first-child,
.press-facts > .press-row:first-child {
    border-top: 0;
}

.press-row dd {
    font-weight: 600;
    margin: 0;
    text-align: end;
}

.press-row dt {
    margin: 0;
}

.press-links {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 4px 14px;
    justify-content: flex-end;
    margin: 0;
}

.press-links a,
.press-link {
    color: var(--color-accent-deep);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.press-links a,
.press-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

.press-swatches {
    color: var(--color-muted);
    display: grid;
    font-size: 11px;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.press-sw {
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px var(--color-strong);
    display: block;
    height: 52px;
    margin-bottom: 4px;
}

.press-hex {
    font-variant-numeric: tabular-nums;
}

.press-sw-accent {
    background-color: var(--color-accent);
}

.press-sw-accent-deep {
    background-color: var(--color-accent-deep);
}

.press-sw-ink {
    background-color: var(--color-ink);
}

.press-sw-muted {
    background-color: var(--color-muted);
}

.press-sw-canvas {
    background-color: var(--color-canvas);
}

.press-sw-surface {
    background-color: var(--color-surface);
}

.press-copy {
    gap: 10px;
}

.press-text {
    color: var(--color-ink);
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-line;
}

.press-text-line {
    font-size: 15px;
}

.press-copy-button[hidden] {
    display: none;
}

.press-screens {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    overflow-x: auto;
    padding: 0 0 6px;
    scroll-snap-type: x proximity;
}

.press-screens li {
    display: flex;
    flex: 0 0 130px;
    flex-direction: column;
    gap: 4px;
    scroll-snap-align: start;
}

.press-screens img {
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--color-strong);
    display: block;
    height: auto;
    width: 100%;
}

.press-desktops {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.press-desktops li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.press-desktops img {
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--color-strong);
    display: block;
    height: auto;
    width: 100%;
}

.press-all {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
    order: 99;
}

.press-all .press-note {
    text-align: center;
}

@media (min-width: 900px) {
    .press {
        column-gap: 24px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        padding-inline: 20px;
        row-gap: 22px;
    }

    .press h2 {
        font-size: 28px;
    }

    .press-head {
        align-self: end;
    }

    .press-all {
        align-self: end;
        justify-self: end;
        margin-bottom: 0;
        order: 0;
    }

    .press-all .press-note {
        display: none;
    }

    .press-left,
    .press-right {
        display: flex;
        flex-direction: column;
        gap: 22px;
        min-width: 0;
    }

    .press-wide {
        grid-column: 1 / -1;
    }

    .press-logos {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .press-logos > .press-card {
        flex: 1 1 220px;
    }

    .press-screens {
        display: grid;
        gap: 16px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .press-screens li {
        align-items: center;
        flex: none;
    }

    .press-screens img {
        max-width: 240px;
    }

    .press-desktops {
        display: grid;
        gap: 16px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .press-copy {
        align-items: center;
        flex-direction: row;
        gap: 14px;
    }

    .press-copy > div {
        flex: 1;
    }
}

/* The contact form -- decision log #2088. Tokens only. */
.press-form {
    margin-top: 12px;
    position: relative;
}

.press-label {
    color: var(--color-ink);
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 600;
    gap: 4px;
}

.press-input {
    background-color: var(--color-canvas);
    border: 1px solid var(--color-subtle);
    border-radius: 10px;
    color: var(--color-ink);
    font: inherit;
    font-weight: 400;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.press-status {
    color: var(--color-ink);
    font-weight: 600;
    margin: 0;
}

.press-status-error,
.press-error {
    color: var(--color-negative);
}
