/* ============================================================
 * V6.1 Agent 5 — Press + Contact fixes
 *
 * Loaded sitewide at priority 41 (after v6-1-status-pill at 40)
 * so it overrides earlier press-mentions and layout-overhaul rules.
 *
 * Scope (additive only, never modifies sealed sheets):
 *   - .latoxica-wrap--wide  : wider container for the press grid so
 *                             cards have breathing room on large screens.
 *   - .latoxica-press-card__placeholder : brand-tinted block to replace
 *                                         the broken Rosa portrait.
 *   - body.page-id-47 / 199 : guards in case the contact intro ever
 *                             needs the same wide constraint.
 * ============================================================ */

/* Wide wrap on the press coverage section only — scoped so it does not
 * affect other consumers of .latoxica-wrap--wide (footer logo row,
 * reservation grid). The press grid gets a generous 1680px ceiling so
 * the 15-card layout breathes on large screens; layout-overhaul keeps
 * its existing --latoxica-content-wide cap everywhere else. */
.latoxica-press-coverage .latoxica-wrap.latoxica-wrap--wide {
    max-width: 1680px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 3rem);
    width: 100%;
    box-sizing: border-box;
}

/* Placeholder block: replaces the 404 rosa-castellanos-portrait.jpg.
 * Stays in the press intro media slot at the same aspect ratio so the
 * surrounding grid does not jump. Decorative only (parent has aria-hidden). */
.latoxica-press-intro__media--placeholder {
    display: block;
}

.latoxica-press-card__placeholder {
    aspect-ratio: 9 / 11;
    width: 100%;
    background: linear-gradient(
        135deg,
        var(--noir-azabache, #0F0F0F) 0%,
        var(--latoxica-pink, #EC2C91) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--creme-tortilla, #F2EAD6);
    font-family: var(--latoxica-font-mono, ui-monospace, "SF Mono", Menlo, monospace);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 1.5rem;
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.latoxica-press-card__placeholder-eyebrow {
    font-size: 0.75rem;
    opacity: 0.85;
}

.latoxica-press-card__placeholder-title {
    font-family: var(--latoxica-font-display, Georgia, serif);
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    letter-spacing: 0.04em;
    text-transform: none;
    line-height: 1.15;
}

/* Defensive: if the press grid container ever exceeds the wide wrap,
 * keep the cards on a tidy auto-fill column rhythm. Scoped to the
 * press coverage section so other grids elsewhere are untouched. */
.latoxica-press-coverage .latoxica-wrap--wide .latoxica-press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Contact intro: keep entry-content readable on narrow viewports.
 * No-op when the latoxica-contact-grid-v5 partial is present (priority 26)
 * because that grid sets its own max-width. Guard exists in case Suzie
 * ever drops Gutenberg copy outside a wrap. */
body.page-id-47 .entry-content,
body.page-id-199 .entry-content {
    max-width: none;
}

body.page-id-47 .entry-content > p,
body.page-id-47 .entry-content > h2,
body.page-id-47 .entry-content > ul,
body.page-id-199 .entry-content > p,
body.page-id-199 .entry-content > h2,
body.page-id-199 .entry-content > ul {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

/* Typeform embed: ensure the container hits a reasonable min height so
 * the iframe is not collapsed before its script attaches. */
body.page-id-47 [data-tf-live],
body.page-id-199 [data-tf-live] {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    min-height: 600px;
}
