/* Visible, localized help shared by every Studio tool. */
.studio-seo-guide {
    width: calc(100% - 2rem);
    max-width: 1120px;
    margin: 3rem auto 0;
    padding: 1rem;
    color: #cbd5e1;
    background: #111827;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Standalone tool descriptions use the same centered content width as the
   interactive tool. On wide desktops this leaves uninterrupted 160px or
   larger gutters on both sides for AdSense vertical rails. */
@media (min-width: 1200px) {
    main > .studio-seo-guide {
        width: min(1120px, calc(100% - 320px));
    }
}

/* Dedicated responsive banner below a converter description. The wrapper is
   omitted when the placement is disabled, so it never creates an empty gap. */
.tt-ad-bottom {
    width: calc(100% - 2rem);
    max-width: 970px;
    min-height: 110px;
    margin: 1.25rem auto 120px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a1322;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
}

.tt-ad-bottom:empty,
.tt-ad-bottom.is-unfilled,
.tt-ad-bottom .manual-ad-wrapper.is-unfilled {
    display: none;
}

.tt-ad-bottom .manual-ad-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
}

/* Keep the last lines of the description above a desktop bottom anchor ad.
   A configured manual bottom banner supplies its own protected spacing. */
main > .studio-seo-guide {
    margin-bottom: 120px;
}

main > .studio-seo-guide:has(+ .tt-ad-bottom) {
    margin-bottom: 0;
}

.studio-seo-guide__section + .studio-seo-guide__section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #253247;
}

.studio-seo-guide h2 {
    margin: 0 0 0.45rem;
    color: #60a5fa;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.studio-seo-guide h3 {
    margin: 0.7rem 0 0.25rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 700;
}

.studio-seo-guide p,
.studio-seo-guide ol,
.studio-seo-guide ul {
    margin: 0;
}

.studio-seo-guide ol,
.studio-seo-guide ul {
    padding-left: 1.25rem;
}

.studio-seo-guide li + li {
    margin-top: 0.3rem;
}

.studio-page > .studio-seo-guide {
    width: 100%;
    max-width: 68rem;
    margin: 4.75rem auto 0;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
    row-gap: 2.25rem;
    background: linear-gradient(145deg, #111827 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.studio-page > .studio-seo-guide .studio-seo-guide__section {
    margin: 0;
    padding: 0;
    border: 0;
}

@media (max-width: 767px) {
    .studio-seo-guide {
        width: calc(100% - 1rem);
        margin-top: 2rem;
    }

    main > .studio-seo-guide {
        margin-bottom: 80px;
    }

    .tt-ad-bottom {
        width: calc(100% - 1rem);
        min-height: 70px;
        margin-bottom: 80px;
        padding: 0.5rem;
    }

    .studio-page > .studio-seo-guide {
        grid-template-columns: 1fr;
        margin-top: 3rem;
        padding: 1.25rem;
        row-gap: 1.75rem;
    }
}
