/* ============================================================
   FILEXFLOW GUIDES V3
   Page-family stylesheet for /guides/, /es/guides/, /pt/guides/.

   Owns:
   - Guide content shell and article typography
   - Guide contextual actions
   - Guide cards, notes, source/related content and CTA presentation
   - Guide-specific responsive behavior

   Does NOT own:
   - global header / brand / auth / theme / language controls
   - global subnav
   - global footer
   - converter workflow internals
   - Visa Pre-Check workflow internals
   - Unified SEO Generator component layout

   Dependency: assets/css/layout.css MUST load before this file.
   ============================================================ */

.fxv-guide-page .fxv-shell {
    width: min(1080px, 100%);
    margin-inline: auto;
}

.fxv-guide-page .fxv-article {
    width: min(920px, 100%);
    padding: 42px 0 64px;
}

.fxv-guide-page .fxv-kicker {
    margin-bottom: 14px;
    color: var(--fx-cyan);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fxv-guide-page .fxv-article h1 {
    max-width: 860px;
    margin: 0 0 18px;
    color: var(--fx-text);
    font-size: clamp(2.15rem, 5vw, 3.65rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.fxv-guide-page .fxv-lead {
    max-width: 820px;
    margin: 0;
    color: var(--fx-text-soft);
    font-size: 1.08rem;
    line-height: 1.7;
}

.fxv-guide-page .fxv-article section {
    margin-top: 34px;
}

.fxv-guide-page .fxv-article h2 {
    margin: 0 0 12px;
    color: var(--fx-text);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.25;
    letter-spacing: -.015em;
}

.fxv-guide-page .fxv-article h3 {
    margin: 24px 0 10px;
    color: var(--fx-text);
    font-size: 1.05rem;
}

.fxv-guide-page .fxv-article p,
.fxv-guide-page .fxv-article li {
    color: var(--fx-text-soft);
    line-height: 1.72;
}

.fxv-guide-page .fxv-article p {
    margin: 0 0 14px;
}

.fxv-guide-page .fxv-article ul,
.fxv-guide-page .fxv-article ol {
    margin: 12px 0 0;
    padding-left: 1.25rem;
}

.fxv-guide-page .fxv-link {
    color: var(--fx-cyan);
    font-weight: 650;
    text-decoration: none;
}

.fxv-guide-page .fxv-link:hover,
.fxv-guide-page .fxv-link:focus-visible {
    color: var(--fx-text);
}

.fxv-guide-page .fx-guide-context-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 2px 0 4px;
}

.fxv-guide-page .fx-guide-context-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--fx-line);
    border-radius: var(--fx-radius-pill);
    background: var(--fx-surface-soft);
    color: var(--fx-text-soft);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.fxv-guide-page .fx-guide-context-action:hover,
.fxv-guide-page .fx-guide-context-action:focus-visible {
    background: var(--fx-primary-soft);
    border-color: var(--fx-line-strong);
    color: var(--fx-text);
}

/* Guides is the active content family on Guide pages. */
.fxv-guide-page .fx-guides-trigger {
    color: var(--fx-text);
    background: var(--fx-primary-soft);
}

.fxv-guide-page .fxv-cta {
    margin: 32px 0;
    padding: 22px;
    border: 1px solid var(--fx-line-strong);
    border-radius: var(--fx-radius-lg);
    background: var(--fx-surface-raised);
    color: var(--fx-text);
    text-align: center;
}

.fxv-guide-page .fxv-cta > strong {
    display: block;
    font-size: 1rem;
}

.fxv-guide-page .fxv-cta > p {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 14px 0 0;
}

.fxv-guide-page .fxv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--fx-primary);
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .22);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.fxv-guide-page .fxv-button:hover,
.fxv-guide-page .fxv-button:focus-visible {
    background: var(--fx-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, .28);
}

.fxv-guide-page .fxv-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.fxv-guide-page .fxv-guide {
    display: block;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--fx-line);
    border-radius: var(--fx-radius-md);
    background: var(--fx-surface);
    color: var(--fx-text);
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.fxv-guide-page .fxv-guide:hover,
.fxv-guide-page .fxv-guide:focus-visible {
    background: var(--fx-surface-raised);
    border-color: var(--fx-line-strong);
    transform: translateY(-1px);
}

.fxv-guide-page .fxv-guide strong {
    color: var(--fx-text);
    line-height: 1.35;
}

.fxv-guide-page .fxv-guide p {
    margin: 7px 0 0;
    color: var(--fx-text-soft);
    font-size: .92rem;
    line-height: 1.55;
}

.fxv-guide-page .fxv-note {
    color: var(--fx-text-muted);
    font-size: .9rem;
}

/* Temporary legacy Guide footer. Global footer redesign is a separate project. */
.fxv-guide-page .fxv-footer {
    width: min(1080px, 100%);
    margin: 10px auto 0;
    padding: 26px 0 34px;
    border-top: 1px solid var(--fx-line);
    color: var(--fx-text-muted);
    font-size: .82rem;
}

.fxv-guide-page .fxv-footer a {
    color: var(--fx-text-soft);
    font-weight: 600;
}

.fxv-guide-page .fxv-footer a:hover,
.fxv-guide-page .fxv-footer a:focus-visible {
    color: var(--fx-cyan);
}

@media (max-width: 760px) {
    .fxv-guide-page .fxv-article {
        padding: 30px 0 48px;
    }

    .fxv-guide-page .fxv-article h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .fxv-guide-page .fxv-lead {
        font-size: 1rem;
    }

    .fxv-guide-page .fxv-guide-grid {
        grid-template-columns: 1fr;
    }

    .fxv-guide-page .fx-guide-context-actions {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .fxv-guide-page .fx-guide-context-actions::-webkit-scrollbar {
        display: none;
    }

    .fxv-guide-page .fx-guide-context-action {
        flex: 0 0 auto;
        font-size: .72rem;
    }

    .fxv-guide-page .fxv-cta {
        padding: 18px;
    }
}
