/* ==========================================================
   FPLF CATEGORY LANDING LAYOUT – Path 2 Layer 1
   Loaded only on landing pages: [fplf_category_cards] inside the
   .fplf-category-hero layout (fplf_cc_is_landing_page()). Every rule
   is scoped to body.fplf-landing (added by the same check), so other
   templates and the shortcode test page are never affected.
   Content width: 1140px, aligned with the global header/footer
   container. The GeneratePress container (1200px) is unchanged;
   only its redundant inner side paddings are removed here.
   From 1120px the lower editorial sections (About, FAQ, Example,
   notice, How to Use) share one centred 960px column; the CTA stays
   1140px.
========================================================== */

/* One content edge: sections use the landing wrapper's padding only
   (Additional CSS already does this below 768px). */

body.fplf-landing .fplf-category-hero > .fplf-category-popular,
body.fplf-landing .fplf-category-hero > .fplf-category-about,
body.fplf-landing .fplf-category-hero > .fplf-category-faq,
body.fplf-landing .fplf-category-hero > .fplf-category-example,
body.fplf-landing .fplf-category-hero > .fplf-category-legal-info,
body.fplf-landing .fplf-category-hero > .fplf-category-how-to,
body.fplf-landing .fplf-category-hero > .fplf-category-final-cta {
    padding-left: 0;
    padding-right: 0;
}

body.fplf-landing .fplf-category-breadcrumbs,
body.fplf-landing .fplf-category-hero-inner,
body.fplf-landing .fplf-category-popular-inner,
body.fplf-landing .fplf-category-about-inner,
body.fplf-landing .fplf-category-faq-inner,
body.fplf-landing .fplf-category-faq-list,
body.fplf-landing .fplf-category-example-inner,
body.fplf-landing .fplf-category-legal-info-inner,
body.fplf-landing .fplf-category-how-to-inner,
body.fplf-landing .fplf-category-final-cta-inner {
    max-width: none;
}

/* Readable line length for running text (How to Use already uses 850px). */

body.fplf-landing .fplf-category-about p {
    max-width: 850px;
}

/* Paragraph spacing as in Important Legal Information / How to Use (Additional CSS). */

body.fplf-landing .fplf-category-about p + p {
    margin-top: 14px;
}

/* Hero quick links ("Popular: …" below the intro of the four main category pages, client request 2026-11;
   in place of the former search button): compact inline text links, never cards or buttons. Label and
   separators are plain text; link colours = the category cards' link, focus ring = the Layer 2 links'. */

body.fplf-landing .fplf-category-hero-content .fplf-category-hero-links {
    max-width: 720px;
    margin: 0;

    font-size: 16px;
    line-height: 1.7;
}

body.fplf-landing .fplf-category-hero-links a {
    color: #2f73d9;

    font-weight: 600;

    text-decoration: none;
}

body.fplf-landing .fplf-category-hero-links a:hover,
body.fplf-landing .fplf-category-hero-links a:focus-visible {
    color: #1d5fbf;

    text-decoration: underline;
}

body.fplf-landing .fplf-category-hero-links a:focus-visible {
    outline: 3px solid rgba(47, 111, 221, 0.35);
    outline-offset: 2px;

    border-radius: 2px;
}

/* Lower sections: one vertical rhythm (80px between sections, 56px on mobile). */

body.fplf-landing .fplf-category-hero > .fplf-category-about,
body.fplf-landing .fplf-category-hero > .fplf-category-faq,
body.fplf-landing .fplf-category-hero > .fplf-category-example,
body.fplf-landing .fplf-category-hero > .fplf-category-legal-info,
body.fplf-landing .fplf-category-hero > .fplf-category-how-to {
    padding-top: 40px;
    padding-bottom: 40px;
}

body.fplf-landing .fplf-category-hero > .fplf-category-final-cta {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Header → breadcrumb: 40px (32px ≤ 1024px, 24px ≤ 767px) – the same top spacing as the Single Form page and the
   Forms archive. Three paddings used to stack here: GeneratePress's one-container #content (40px, 30px ≤ 768px), the
   wrapper (module 09: 72 / 56 / 42px) and the breadcrumb row (22 / 18px); the wrapper alone sets it now. */

body.fplf-landing.one-container #content.site-content,
body.fplf-landing .fplf-category-breadcrumbs {
    padding-top: 0;
}

body.fplf-landing .fplf-category-hero {
    padding-top: 40px;
}

@media (max-width: 1024px) {
    body.fplf-landing .fplf-category-hero {
        padding-top: 32px;
    }
}

@media (max-width: 767px) {
    body.fplf-landing .fplf-category-hero {
        padding-top: 24px;
    }
}

/* CTA → footer: 80px (56px mobile). The wrapper's and #content's bottom paddings are
   dropped on landing pages; the global footer keeps its own 40px top margin. */

body.fplf-landing .fplf-category-hero,
body.fplf-landing #content.site-content {
    padding-bottom: 0;
}

/* Category grid → About uses the same rhythm (the category section keeps its top padding). */

body.fplf-landing .fplf-category-hero > .fplf-category-popular {
    padding-bottom: 40px;
}

/* Optional state navigation below the category grid (e.g. Bill of Sale "by State"). */

body.fplf-landing .fplf-category-state-link {
    margin: 28px 0 0;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

body.fplf-landing .fplf-category-state-link a {
    color: #2f73d9;
    font-weight: 600;
    text-decoration: none;
}

body.fplf-landing .fplf-category-state-link a:hover,
body.fplf-landing .fplf-category-state-link a:focus-visible {
    color: #1d5fbf;
    text-decoration: underline;
}

/* Example: compact two columns – text, then a 300px document preview. */

@media (min-width: 768px) {
    body.fplf-landing .fplf-category-example-inner {
        grid-template-columns: minmax(0, 1fr) 300px;
        column-gap: 48px;
    }
}

body.fplf-landing .fplf-category-example-content p {
    max-width: 600px;
}

body.fplf-landing .fplf-category-example-inner img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 767px) {
    body.fplf-landing .fplf-category-hero > .fplf-category-about,
    body.fplf-landing .fplf-category-hero > .fplf-category-faq,
    body.fplf-landing .fplf-category-hero > .fplf-category-example,
    body.fplf-landing .fplf-category-hero > .fplf-category-legal-info,
    body.fplf-landing .fplf-category-hero > .fplf-category-how-to,
    body.fplf-landing .fplf-category-hero > .fplf-category-final-cta {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    body.fplf-landing .fplf-category-hero > .fplf-category-popular {
        padding-bottom: 28px;
    }

    body.fplf-landing .fplf-category-hero > .fplf-category-final-cta {
        padding-bottom: 16px;
    }

    body.fplf-landing .fplf-category-example-inner img {
        max-width: 280px;
    }

    body.fplf-landing .fplf-category-state-link {
        margin-top: 22px;
        padding: 14px 16px;
    }
}

/* From 1120px GeneratePress applies its 1200px container:
   drop its side paddings and let the wrapper set a 30px gutter (= 1140px). */

@media (min-width: 1120px) {
    body.fplf-landing #page.site.grid-container,
    body.fplf-landing.one-container #content.site-content {
        padding-left: 0;
        padding-right: 0;
    }

    body.fplf-landing .fplf-category-hero {
        padding-left: 30px;
        padding-right: 30px;
    }

    /* Lower editorial sections: one centred 960px column (the notice box itself,
       incl. background, border and radius); Additional CSS centres them. */
    body.fplf-landing .fplf-category-about-inner,
    body.fplf-landing .fplf-category-faq-inner,
    body.fplf-landing .fplf-category-example-inner,
    body.fplf-landing .fplf-category-legal-info-inner,
    body.fplf-landing .fplf-category-how-to-inner {
        max-width: 960px;
    }
}
