/* Styles for the guide pages (long-form answers). The header, buttons, FAQ list
   and footer come from styles.css and industry.css. */
.guide-container {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
}

.guide-page .guide-hero {
    padding: 3.25rem 0 2.5rem;
    background: linear-gradient(180deg, #f4f8fb 0%, #fff 82%);
}

.guide-eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid #cfe6da;
    border-radius: 999px;
    background: #f3faf6;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.guide-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.1;
    font-weight: 780;
    letter-spacing: 0;
    color: #0c1f35;
    margin-bottom: 1.1rem;
}

.guide-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.7;
    color: #4f6176;
}

.guide-meta {
    margin-top: 1rem;
    color: #66778a;
    font-size: 0.92rem;
}

.guide-short-answer {
    margin-top: 2rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid #cfe6da;
    border-radius: 8px;
    background: #f3faf6;
}

.guide-short-answer h2 {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    color: #0c1f35;
}

.guide-short-answer ul,
.guide-list {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding-inline-start: 1.25rem;
}

.guide-short-answer li,
.guide-list li {
    color: #31445b;
    font-size: 1.03rem;
    line-height: 1.65;
}

.guide-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.guide-body {
    padding: 0 0 3.5rem;
}

.guide-section {
    padding: 2.5rem 0 0;
}

.guide-section h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.18;
    letter-spacing: 0;
    color: #0c1f35;
    scroll-margin-top: 90px;
}

.guide-section > * + * {
    margin-top: 1.1rem;
}

.guide-section p {
    color: #31445b;
    font-size: 1.05rem;
    line-height: 1.72;
}

.guide-body a:not(.cta-primary):not(.guide-related-card) {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guide-steps {
    counter-reset: guide-step;
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.guide-steps li {
    counter-increment: guide-step;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid #dfe8f1;
    border-radius: 8px;
    background: #fff;
    color: #31445b;
    font-size: 1.03rem;
    line-height: 1.62;
}

.guide-steps li::before {
    content: counter(guide-step);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e8f6ef;
    color: var(--primary-green);
    font-weight: 800;
}

.guide-table-wrap {
    overflow-x: auto;
    border: 1px solid #dfe8f1;
    border-radius: 8px;
}

.guide-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 0.97rem;
    line-height: 1.5;
}

.guide-table th,
.guide-table td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid #e5edf5;
    text-align: start;
    vertical-align: top;
    color: #31445b;
}

.guide-table th {
    background: #f7fafc;
    color: #0c1f35;
    font-weight: 750;
}

.guide-table tr:last-child td {
    border-bottom: 0;
}

.guide-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.guide-split-column {
    padding: 1.2rem 1.25rem;
    border: 1px solid #dfe8f1;
    border-radius: 8px;
    background: #fff;
}

.guide-split-column h3 {
    margin-bottom: 0.75rem;
    font-size: 1.08rem;
    color: #0c1f35;
}

.guide-note {
    padding: 0.9rem 1rem;
    border: 1px solid #dfe8f1;
    border-radius: 8px;
    background: #f7fafc;
    color: #5f7084;
    font-size: 0.94rem;
    line-height: 1.6;
}

.guide-related-card {
    display: block;
    padding: 1.1rem 1.25rem;
    border: 1px solid #dfe8f1;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-related-card:hover,
.guide-related-card:focus {
    border-color: var(--primary-green);
    box-shadow: 0 12px 30px rgba(18, 48, 77, 0.08);
}

.guide-related-card strong {
    display: block;
    color: #0c1f35;
    font-size: 1.08rem;
    line-height: 1.35;
}

.guide-related-card span {
    display: block;
    margin-top: 0.35rem;
    color: #5f7084;
    font-size: 0.96rem;
    line-height: 1.55;
}

.guide-disclosure {
    margin-top: 2.5rem;
    color: #66778a;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 760px) {
    .guide-container {
        width: min(100% - 28px, 860px);
    }

    .guide-page .guide-hero {
        padding: 2.5rem 0 2rem;
    }

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

    .guide-short-answer {
        padding: 1.1rem 1.1rem;
    }
}

/* Keep the header button inside a phone screen in every language. */
@media (max-width: 480px) {
    .guide-page .header-content {
        gap: 0.6rem;
        padding-left: 14px;
        padding-right: 14px;
    }

    .guide-page .header-actions {
        gap: 0.5rem;
    }

    .guide-page .logo {
        flex-shrink: 0;
    }

    /* A long label (Russian, Polish, German) wraps onto two lines
       so the button never pushes the page wider than the screen. */
    .guide-page .header-cta {
        padding: 0.5rem 0.7rem;
        font-size: 0.82rem;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }
}
