/* Last generated: 2026-05-08 ET */
/*
Theme Name:     SLF
Author:         Automation Amy (KW4N Design Group, LLC)
Author URI:     https://automationamy.com
Template:       Divi
Version:        redesign2026
Description:    A Child Theme for Sketchley Law Firm - The Gold Standard in Elder Law.
*/

/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1.  FOUNDATION                       — base font size, body, heading hierarchy
   2.  LAYOUT & SPACING                 — icons, lists, logo motto
   3.  BUTTONS                          — primary, secondary, sidebar CTA, hero
   4.  LINKS                            — inline content links, category pill override
   5.  NAVIGATION                       — desktop dropdowns, mobile menu
   6.  CHECKLISTS                       — checkbox / check / arrow variants
   7.  BLOG SYSTEM                      — single post header, archive grid, continue reading
   8.  SOCIAL SHARING (MONARCH)         — network colors, container, mobile
   9.  FORMS                            — Gravity Forms (Request an Appointment)
   10. CARE RESOURCE GUIDE              — jump links
   11. HOMEPAGE                         — Who We Help, hero mobile
   12. FOOTER                           — brand, nav, disclaimer, legal links, copyright
   13. PAID MEMBERSHIPS PRO (PMPRO)     — wrapper, forms, levels, account, invoices, mobile
   14. MOBILE GLOBAL REFINEMENTS        — section padding, lists, hero H1, subtitles
   15. ACCESSIBILITY                    — focus visible (WCAG 2.4.7), toggle a11y, screen reader
   ========================================================================== */


/* ==========================================================================
   SECTION 1 — FOUNDATION
   Base font size, body styling, complete heading hierarchy
   ========================================================================== */

html {
    font-size: 16px;
}

body {
    background-color: #F5F3EF; /* Base Background: Cream */
    font-family: 'Inter', sans-serif;
    color: #333333;
    line-height: 1.6;
}

/* Headings — Libre Baskerville Charcoal Blue, 700 weight */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', serif !important;
    color: #2C3E50 !important;
    font-weight: 700 !important;
}

h1 { font-size: 3em; line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 2.25em; line-height: 1.3; }
h3 { font-size: 1.625em; }
h4 { font-size: 1.25em; }
h5 { font-size: 1.125em; }
h6 { font-size: 1em; }

/* Spacing above headings */
h2 { margin-top: 1em !important; }
h3 { margin-top: 0.75em !important; }

/* Remove any inherited heading hover/decoration effects from Divi */
h1, h2, h3, h4, h5, h6,
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

h1::after, h2::after, h3::after, h4::after, h5::after, h6::after,
h1:hover::after, h2:hover::after, h3:hover::after, h4:hover::after, h5:hover::after, h6:hover::after {
    content: none !important;
    display: none !important;
}


/* ==========================================================================
   SECTION 2 — LAYOUT & SPACING
   Icon color, list styles, logo sub-headline (firm motto)
   ========================================================================== */

/* Icon Global Color */
.et-pb-icon {
    color: #6F8F84 !important;
}

/* Global unordered list styling — Theme Builder body */
.et-l--body ul {
    margin-top: 0 !important;
    padding-left: 2.25em !important;
}

.et-l--body ul li {
    line-height: 1.8 !important;
    margin-bottom: 0.25em !important;
}

/* Global ordered list styling */
.et-l--body ol,
.et_pb_text ol {
    margin-top: 0 !important;
    padding-left: 2.25em !important;
}

.et-l--body ol li,
.et_pb_text ol li {
    line-height: 1.8 !important;
    margin-bottom: 0.25em !important;
}

/* Monarch — remove list indentation and suppress any ::before arrows */
.et_social_icons_container {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.et_social_icons_container li::before {
    display: none !important;
    content: none !important;
}

/* Logo sub-headline — "The Motto" */
.firm-motto {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85em !important;
    color: #5F6F82 !important; /* Blue Slate */
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    display: block;
    margin-top: -0.5em;
    opacity: 0.9;
}


/* ==========================================================================
   SECTION 3 — BUTTONS
   Primary (Granite), Secondary (.btn-secondary), Sidebar CTA, Homepage Hero Button 2
   ========================================================================== */

/* ----- 3.1 PRIMARY BUTTON (Granite) -----
   `body #page-container` prefix beats Divi layout pack defaults */
body #page-container .et_pb_button {
    background-color: #44635B !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.125em !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    min-height: 3em !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.75em 1.5em !important;
    border-radius: 0.375em !important;
    border: none !important;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

body #page-container .et_pb_button:hover {
    background-color: #3B564F !important; /* Darker Granite */
    color: #ffffff !important;
}

body #page-container .et_pb_button:active {
    background-color: #324A44 !important; /* Deepest Granite */
    transform: translateY(0.0625em);
}

body #page-container .et_pb_button:focus {
    outline: 0.125em solid #6F8F84 !important; /* Jungle Teal */
    outline-offset: 0.125em;
}

/* Mobile button padding */
@media only screen and (max-width: 980px) {
    body #page-container .et_pb_button {
        padding: 0.875em 1.25em !important;
    }
}

/* ----- 3.2 SECONDARY BUTTON (.btn-secondary) -----
   Usage: add CSS class "btn-secondary" via Divi Button > Advanced > CSS Class
   Parchment background, Granite text and border — visually lighter than primary */
body #page-container .et_pb_button.btn-secondary {
    background-color: #F5F3EF !important;  /* Parchment */
    color: #44635B !important;             /* Granite */
    border: 2px solid #44635B !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.125em !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    min-height: 3em !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.75em 1.5em !important;
    border-radius: 0.375em !important;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

body #page-container .et_pb_button.btn-secondary:hover {
    background-color: #44635B !important;
    color: #F5F3EF !important;
    border-color: #44635B !important;
}

body #page-container .et_pb_button.btn-secondary:active {
    background-color: #3B564F !important;
    color: #F5F3EF !important;
    transform: translateY(0.0625em);
}

body #page-container .et_pb_button.btn-secondary:focus {
    outline: 0.125em solid #6F8F84 !important;
    outline-offset: 0.125em;
}

/* ----- 3.3 SIDEBAR CTA BUTTON ----- */
body #page-container .sidebar-cta a {
    color: #F5F3EF !important;
}

body #page-container .sidebar-cta a:hover {
    color: #2C3E50 !important;
    background-color: #F5F3EF !important;
    text-decoration: none !important;
}

/* ----- 3.4 HOMEPAGE HERO — BUTTON 2 SECONDARY STYLE -----
   Full Width Header module doesn't accept CSS classes on Button 2,
   so secondary style is applied via targeted selector */
body #page-container .et_pb_fullwidth_header .et_pb_button_two {
    background-color: #F5F3EF !important;          /* Parchment */
    color: #44635B !important;                     /* Granite */
    border: 2px solid #44635B !important;
}

body #page-container .et_pb_fullwidth_header .et_pb_button_two:hover {
    background-color: #44635B !important;
    color: #F5F3EF !important;
    border: 2px solid #44635B !important;
}


/* ==========================================================================
   SECTION 4 — LINKS
   Inline content links (Granite/Jungle Teal), category pill override
   ========================================================================== */

/* Front-end content links only — scoped to avoid admin bleed */
.et_pb_text a,
.entry-content a,
#main-content a {
    color: #44635B !important; /* Granite */
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.et_pb_text a:hover,
.entry-content a:hover,
#main-content a:hover {
    color: #6F8F84 !important; /* Jungle Teal */
    text-decoration: underline !important;
}

/* Pill category label override — color: inherit pulls from <p> parent */
#main-content .post-category-label a,
#main-content .post-category-label a:hover {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}


/* ==========================================================================
   SECTION 5 — NAVIGATION
   Desktop third-level dropdown, mobile menu styling, mobile hide rules
   ========================================================================== */

/* ----- 5.1 DESKTOP DROPDOWN (Third-Level Navigation) ----- */
.et_pb_menu .sub-menu li.menu-item-has-children > a {
    padding-right: 2em !important;
    position: relative !important;
    display: block !important;
}

.et_pb_menu .sub-menu li.menu-item-has-children > a::after {
    position: absolute !important;
    right: 0.75em !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.et_pb_menu .sub-menu li.menu-item-has-children {
    position: relative !important;
}

.et_pb_menu .sub-menu {
    overflow: visible !important;
}

.et_pb_menu .sub-menu .sub-menu {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
}

@media only screen and (max-width: 980px) {
    .et_pb_menu .sub-menu li.menu-item-has-children > a {
        padding-right: 1.25em !important;
    }

    .et_pb_menu .sub-menu .sub-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
    }
}

/* ----- 5.2 MOBILE MENU — Header colors ----- */
.et_pb_menu_0_tb_header .mobile_nav .mobile_menu_bar:before {
    color: #2C3E50 !important;
}

.et_pb_menu_0_tb_header.et_pb_menu .mobile_nav .mobile-toggle {
    color: #2C3E50 !important;
}

.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu a:hover {
    color: #F5F3EF !important;
}

/* ----- 5.3 MOBILE MENU — Item styling, active state, hide deep items ----- */

/* Subtle separator between menu items */
.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu li > a {
    border-bottom: 1px solid #D9D4CB !important;
    font-size: 15px !important;
}

/* Hover state — subtle Border tint */
.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu li > a:hover {
    background-color: #D9D4CB !important;
    color: #2C3E50 !important;
}

/* Active page — bold + left accent bar */
.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu li.current-menu-item > a,
.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu li.current_page_item > a {
    background-color: #E8E3D9 !important;
    color: #2C3E50 !important;
    font-weight: 700 !important;
    border-left: 3px solid #44635B !important;
}

/* Ancestor (parent of current page) */
.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu li.current-menu-ancestor > a,
.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu li.current-menu-parent > a {
    background-color: #E8E3D9 !important;
    color: #2C3E50 !important;
    font-weight: 600 !important;
}

/* Sub-menu items — Slate text, lighter weight (still 4.5:1 on Parchment) */
.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu .sub-menu li a {
    color: #5F6F82 !important;
    font-weight: 400 !important;
}

/* Hide 3rd-level menu items on mobile — too deep for phone nav.
   Users reach attorney/staff sub-pages via Our Attorneys + Our Staff hub pages. */
.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu .sub-menu .sub-menu {
    display: none !important;
}

/* Hide Members section on mobile — PMPro member-only pages, not for public mobile nav */
.et_mobile_menu .menu-item-2372 {
    display: none !important;
}


/* ==========================================================================
   SECTION 6 — CHECKLISTS
   Reusable checkbox / checkmark / arrow variants, page builder + theme builder
   ========================================================================== */

/* ----- 6.1 PAGE BUILDER CHECKLISTS (.et_pb_text wrapper) ----- */
.et_pb_text.checklist-checkbox ul,
.et_pb_text.checklist-check ul,
.et_pb_text.checklist-arrow ul {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin-left: 2em !important;
}

.et_pb_text.checklist-checkbox ul li,
.et_pb_text.checklist-check ul li,
.et_pb_text.checklist-arrow ul li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 6px 0 6px 1.75em !important;
    line-height: 1.8 !important;
    position: relative !important;
}

/* Variant 1 — Unchecked checkbox ☐ */
.et_pb_text.checklist-checkbox ul li::before {
    content: "☐";
    position: absolute;
    left: 0;
    top: 6px;
    color: #44635B;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Variant 2 — Checkmark ✓ */
.et_pb_text.checklist-check ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 6px;
    color: #44635B;
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.8;
}

/* Variant 3 — Arrow → */
.et_pb_text.checklist-arrow ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 6px;
    color: #6F8F84;
    font-size: 1em;
    line-height: 1.8;
}

/* ----- 6.2 THEME BUILDER CHECKLISTS (.et-l--body wrapper, blog posts) ----- */
.et-l--body .checklist-checkbox ul,
.et-l--body .checklist-check ul,
.et-l--body .checklist-arrow ul {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin-left: 2em !important;
}

.et-l--body .checklist-checkbox ul li,
.et-l--body .checklist-check ul li,
.et-l--body .checklist-arrow ul li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 6px 0 6px 1.75em !important;
    line-height: 1.8 !important;
    position: relative !important;
}

.et-l--body .checklist-checkbox ul li::before {
    content: "☐";
    position: absolute;
    left: 0;
    top: 6px;
    color: #44635B;
    font-size: 1.1em;
    line-height: 1.8;
}

.et-l--body .checklist-check ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 6px;
    color: #44635B;
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.8;
}

.et-l--body .checklist-arrow ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 6px;
    color: #6F8F84;
    font-size: 1em;
    line-height: 1.8;
}

/* ----- 6.3 MOBILE CHECKLIST REFINEMENTS ----- */
@media only screen and (max-width: 480px) {
    .et_pb_text.checklist-checkbox ul,
    .et_pb_text.checklist-check ul,
    .et_pb_text.checklist-arrow ul {
        margin-left: 1.1em !important;
    }
}


/* ==========================================================================
   SECTION 7 — BLOG SYSTEM
   Single post header, archive grid, continue reading, practice area resources
   ========================================================================== */

/* ----- 7.1 SINGLE POST CATEGORY PILL ----- */
.post-category-label {
    display: inline !important;
    width: auto !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}

/* Per-category pill colors — accessibility-compliant white text, ≥4.5:1 contrast */
.category-estate-planning .post-category-label                      { background: #5F6F82 !important; color: #ffffff !important; }   /* 5.2:1 */
.category-fiduciary-representation .post-category-label             { background: #4D6E63 !important; color: #ffffff !important; }   /* 5.8:1 */
.category-guardianship .post-category-label                         { background: #2C3E50 !important; color: #ffffff !important; }   /* 11.0:1 */
.category-health-care-cost-medicaid-planning .post-category-label   { background: #54677F !important; color: #ffffff !important; }   /* 6.2:1 */
.category-litigation .post-category-label                           { background: #8B6F5E !important; color: #ffffff !important; }   /* 4.7:1 */
.category-probate-trust-administration .post-category-label         { background: #536158 !important; color: #ffffff !important; }   /* 6.0:1 */
.category-special-needs-planning .post-category-label               { background: #7C6748 !important; color: #ffffff !important; }   /* 5.8:1 */
.category-community-firm-news .post-category-label                  { background: #6E624E !important; color: #ffffff !important; }

/* ----- 7.2 POST HEADER SECTION (Theme Builder) ----- */
.post-header-section .et_pb_text_0_tb_body a,
.post-header-section .et_pb_text_0_tb_body a:hover {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.post-header-section .et_pb_text,
.post-header-section h1,
.post-header-section p {
    color: #ffffff !important;
}

.post-header-section .et_pb_column_0_tb_body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    min-height: 420px !important;
}

/* Pill module — constrain to text width */
.post-header-section .et_pb_text_0_tb_body {
    display: inline !important;
    width: auto !important;
}

.post-header-section .et_pb_text_0_tb_body .et_pb_text_inner {
    display: inline !important;
    width: auto !important;
}

.post-header-section .et_pb_text_0_tb_body .et_pb_text_inner p {
    display: inline !important;
    width: auto !important;
    margin-bottom: 0 !important;
}

.post-header-section .et_pb_column a.post-category-label,
.post-header-section .post-category-label a,
.post-header-section .et_pb_text_0_tb_body a {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.post-header-section .et_pb_column a.post-category-label:hover,
.post-header-section .post-category-label a:hover,
.post-header-section .et_pb_text_0_tb_body a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* Title sizing */
.post-header-section .et_pb_text_1_tb_body .et_pb_text_inner {
    font-size: 2em !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* Date styling */
.post-header-section .et_pb_text_2_tb_body .et_pb_text_inner {
    font-size: 0.9em !important;
    opacity: 0.8 !important;
    margin-top: 0 !important;
}

/* ----- 7.3 BLOG POST HEADER — TITLE + FEATURED IMAGE ----- */
.blog-post-header-title h1 {
    font-family: 'Libre Baskerville', serif !important;
    font-size: 2em !important;
    line-height: 1.25 !important;
    color: #2C3E50 !important;
    font-weight: 400 !important;
}

@media (max-width: 980px) {
    .blog-post-header-title h1 {
        font-size: 1.85em !important;
    }
}

@media (max-width: 767px) {
    .blog-post-header-title h1 {
        font-size: 1.65em !important;
    }
}

.blog-post-header .et_pb_title_featured_container {
    border-radius: 0.3em;
    overflow: hidden;
    margin-top: 0.8em;
    margin-bottom: 0.8em;
}

.blog-post-header .et_pb_title_featured_container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Featured image cap — constrain height on post title modules */
.post-title-featured-cap .et_pb_title_featured_container {
    max-height: 360px;
    overflow: hidden;
}

.post-title-featured-cap .et_pb_title_featured_container img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

@media (max-width: 980px) {
    .post-title-featured-cap .et_pb_title_featured_container,
    .post-title-featured-cap .et_pb_title_featured_container img {
        height: 280px;
        max-height: 280px;
    }
}

@media (max-width: 767px) {
    .post-title-featured-cap .et_pb_title_featured_container,
    .post-title-featured-cap .et_pb_title_featured_container img {
        height: 200px;
        max-height: 200px;
    }
}

/* ----- 7.4 BLOG POST BODY — Margin/padding cleanup ----- */
.blog-post-body,
.blog-post-body .et_pb_module_inner,
.blog-post-body .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: hidden;
}

.blog-post-body .entry-content > *:first-child,
.blog-post-body .et_pb_module_inner > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.blog-post-body .entry-content h1:first-child,
.blog-post-body .entry-content h2:first-child,
.blog-post-body .entry-content h3:first-child,
.blog-post-body .entry-content p:first-child {
    margin-top: 0 !important;
}

.blog-post-body,
.blog-post-body .et_pb_module_inner,
.blog-post-body > div {
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: flow-root;
}

.blog-post-body *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove gap between post content and footer */
.et-l--post .et_pb_section_0 {
    padding-bottom: 0 !important;
}

.et_pb_post_content_0_tb_body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ----- 7.5 BLOG ARCHIVE / CATEGORY GRID -----
   Fullwidth layout: .et_pb_posts > .et_pb_ajax_pagination_container > article.et_pb_post */
@media only screen and (min-width: 981px) {
    .et_pb_posts .et_pb_ajax_pagination_container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5em !important;
    }

    .et_pb_posts .et_pb_ajax_pagination_container .et_pb_post {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Card styling — matches bio page card system */
.et_pb_posts .et_pb_post {
    background: #ffffff !important;
    border: 1px solid #D9D4CB !important;
    border-radius: 8px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.et_pb_posts .et_pb_post:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important;
}

.et_pb_posts .entry-title {
    margin-bottom: 0.4em !important;
}

/* Archive category pill — base styles */
.et_pb_posts p.post-meta a {
    display: inline-block !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75em !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 3px 10px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    margin-bottom: 8px !important;
}

/* Archive per-category pill colors — #main-content prefix beats Section 4 link rule */
#main-content .et_pb_posts p.post-meta a[href*="estate-planning"]                   { background: #5F6F82 !important; color: #ffffff !important; }
#main-content .et_pb_posts p.post-meta a[href*="fiduciary-representation"]           { background: #4D6E63 !important; color: #FFFFFF !important; }
#main-content .et_pb_posts p.post-meta a[href*="guardianship"]                       { background: #2C3E50 !important; color: #ffffff !important; }
#main-content .et_pb_posts p.post-meta a[href*="health-care-cost-medicaid-planning"] { background: #54677F !important; color: #ffffff !important; }
#main-content .et_pb_posts p.post-meta a[href*="litigation"]                         { background: #8B6F5E !important; color: #ffffff !important; }
#main-content .et_pb_posts p.post-meta a[href*="probate-trust-administration"]       { background: #536158 !important; color: #ffffff !important; }
#main-content .et_pb_posts p.post-meta a[href*="special-needs-planning"]             { background: #7C6748 !important; color: #ffffff !important; }
#main-content .et_pb_posts p.post-meta a[href*="community-firm-news"]                { background: #6E624E !important; color: #ffffff !important; }

/* Hide redundant category pills on category archive pages (already shown in page header) */
body[class*="category-"] .et_pb_posts p.post-meta {
    display: none !important;
}

/* ----- 7.6 CONTINUE READING LINK — styled directly on real link text, arrow decoratively added ----- */
.et_pb_posts .more-link {
    display: block !important;
    margin-top: 1.25em !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    color: #2C3E50 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.et_pb_posts .more-link:hover {
    color: #6F8F84 !important;
}

.et_pb_posts .more-link::after {
    content: " \2192";
}

/* ----- 7.7 PRACTICE AREA RESOURCES BLOG (3-column override) ----- */
#main-content .resources-blog .et_pb_ajax_pagination_container {
    grid-template-columns: repeat(3, 1fr) !important;
    align-items: start;
}


/* ==========================================================================
   SECTION 8 — SOCIAL SHARING (MONARCH)
   Network color overrides, container styling, mobile fixes
   ========================================================================== */

/* Override network color on the <li> — Monarch sets background-color per network */
.et_monarch .et_social_inline .et_social_facebook,
.et_monarch .et_social_inline .et_social_linkedin,
.et_monarch .et_social_inline .et_social_gmail,
.et_monarch .et_social_inline .et_social_printfriendly {
    background-color: #44635B !important;
}

.et_monarch .et_social_inline .et_social_facebook:hover,
.et_monarch .et_social_inline .et_social_linkedin:hover,
.et_monarch .et_social_inline .et_social_gmail:hover,
.et_monarch .et_social_inline .et_social_printfriendly:hover {
    background-color: #6F8F84 !important;
}

/* <a> button background */
.et_social_inline .et_social_share {
    background-color: #44635B !important;
}

.et_social_inline .et_social_share:hover {
    background-color: #6F8F84 !important;
}

/* Overlay span — make transparent so our color shows through */
.et_social_inline .et_social_share .et_social_overlay {
    background-color: transparent !important;
}

/* Remove <li> padding so <a> button fills edge to edge */
.et_monarch .et_social_inline .et_social_icons_container li {
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0.5em !important;
}

.et_social_inline .et_social_share {
    display: block !important;
    width: 100% !important;
}

/* Icon and text color */
.et_social_inline .et_social_share,
.et_social_inline .et_social_share i,
.et_social_inline .et_social_networkname {
    color: #ffffff !important;
}

/* Prevent global link color rules bleeding into share button anchors */
#main-content .et_social_icons_container a,
#main-content .et_social_icons_container a:hover,
.et-l--body .et_social_icons_container a,
.et-l--body .et_social_icons_container a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}

/* Mobile — Stack buttons vertically, equal width to widest button */
@media only screen and (max-width: 980px) {
    .et_monarch .et_social_inline .et_social_icons_container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: fit-content !important;
        margin: 0 auto !important;
    }

    .et_monarch .et_social_inline .et_social_icons_container li {
        margin-right: 0 !important;
        margin-bottom: 0.5em !important;
        width: 100% !important;
    }
}


/* ==========================================================================
   SECTION 9 — FORMS (Gravity Forms)
   Request an Appointment form — WCAG 2.1 AA compliant
   ========================================================================== */

/* ----- Form container ----- */
#main-content .gform_wrapper {
    max-width: 720px;
    margin: 0;
}

/* ----- Labels ----- */
#main-content .gform_wrapper .gfield_label {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2C3E50 !important;
    margin-bottom: 6px !important;
    display: block;
}

/* "(Required)" indicator (handled by GF native Text indicator) */
#main-content .gform_wrapper .gfield_required {
    color: #44635B;
    font-weight: 400;
    margin-left: 2px;
}

/* Description / helper text */
#main-content .gform_wrapper .gfield_description {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #5F6F82;
    margin-top: 4px;
}

/* Inputs / textareas / selects */
#main-content .gform_wrapper input[type="text"],
#main-content .gform_wrapper input[type="email"],
#main-content .gform_wrapper input[type="tel"],
#main-content .gform_wrapper textarea,
#main-content .gform_wrapper select {
    background-color: #ffffff !important;
    border: 1.5px solid #5F6F82 !important;   /* Slate — meets 3:1 against white */
    border-radius: 4px !important;
    padding: 14px !important;
    min-height: 48px !important;
    color: #333333 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;               /* 16px prevents iOS zoom-on-focus */
    line-height: 1.5 !important;
    width: 100%;
    box-sizing: border-box;
}

#main-content .gform_wrapper textarea {
    min-height: 140px !important;
}

/* Placeholder contrast */
#main-content .gform_wrapper input::placeholder,
#main-content .gform_wrapper textarea::placeholder {
    color: #5F6F82 !important;
    opacity: 1;
}

/* Focus state (keyboard users) */
#main-content .gform_wrapper input:focus,
#main-content .gform_wrapper textarea:focus,
#main-content .gform_wrapper select:focus {
    border: 3px solid #6F8F84 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(111,143,132,0.25) !important;
}

/* Field spacing */
#main-content .gform_wrapper .gfield {
    margin-bottom: 20px;
}

/* Validation / error states */
#main-content .gform_wrapper .gfield_error input,
#main-content .gform_wrapper .gfield_error textarea,
#main-content .gform_wrapper .gfield_error select {
    border: 2px solid #B5523B !important;     /* Warm rust — 3:1 against white */
    background-color: #ffffff !important;
}

#main-content .gform_wrapper .gfield_validation_message,
#main-content .gform_wrapper .validation_message {
    color: #B5523B !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

#main-content .gform_wrapper .validation_error,
#main-content .gform_wrapper .gform_validation_errors {
    color: #B5523B !important;
    border: 2px solid #B5523B !important;
    background-color: #fdf2ef;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

/* Submit button */
#main-content .gform_wrapper .gform_button,
#main-content .gform_wrapper button.gform_button {
    background-color: #2C3E50 !important;
    border: none !important;
    border-radius: 4px !important;
    color: #F5F3EF !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 16px 32px !important;
    min-height: 48px !important;
    cursor: pointer;
    transition: background-color 0.25s ease !important;
}

#main-content .gform_wrapper .gform_button:hover {
    background-color: #44635B !important;
}

#main-content .gform_wrapper .gform_button:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(111,143,132,0.25) !important;
}

/* Confirmation message (after submit) */
#main-content .gform_confirmation_message {
    background-color: #ffffff;
    padding: 30px 0;
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

#main-content .gform_confirmation_message h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

#main-content .gform_confirmation_message a {
    color: #2C3E50;
    text-decoration: underline;
}

/* Mobile form refinements */
@media (max-width: 480px) {
    #main-content .gform_wrapper input[type="text"],
    #main-content .gform_wrapper input[type="email"],
    #main-content .gform_wrapper input[type="tel"],
    #main-content .gform_wrapper textarea,
    #main-content .gform_wrapper select {
        padding: 12px 14px !important;
        min-height: 44px !important;
    }

    #main-content .gform_wrapper .gform_button {
        width: 100% !important;
        text-align: center;
    }
}


/* ==========================================================================
   SECTION 10 — CARE RESOURCE GUIDE
   Jump links — pill-style nav bar
   ========================================================================== */

.jump-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 5px 0;
}

.jump-links a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ffffff;
    color: #2C3E50 !important;
    border: 1px solid #D9D4CB;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#main-content .jump-links a:hover {
    background-color: #6F8F84;
    color: #ffffff !important;
    border-color: #6F8F84;
}


/* ==========================================================================
   SECTION 11 — HOMEPAGE
   Who We Help section, hero overlay/button mobile
   ========================================================================== */

/* ----- 11.1 WHO WE HELP — tighter line-height inside text modules ----- */
.who-we-help .et_pb_text p {
    line-height: 1.6 !important;
}

/* ----- 11.2 HERO OVERLAY + BUTTON ON MOBILE ----- */
@media (max-width: 980px) {
    body.home .et_pb_fullwidth_header_overlay {
        background-color: rgba(44, 62, 80, 0.85) !important;
    }

    body.home .et_pb_fullwidth_header .et_pb_button {
        padding: 14px 24px !important;
        font-size: 15px !important;
        white-space: nowrap !important;
    }
}


/* ==========================================================================
   SECTION 12 — FOOTER
   Brand column, headings, legal links (dotted underline), copyright, logos
   ========================================================================== */

/* ----- 12.1 FIRM NAME ----- */
.footer-col-brand h3.footer-firm-name,
.footer-firm-name {
    font-family: 'Libre Baskerville', serif !important;
    font-size: 1.25em !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 4px !important;
}

/* ----- 12.2 TAGLINE ----- */
.footer-tagline {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.7em !important;
    font-weight: 600 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #D9D4CB !important;
    margin: 0 0 8px !important;
    white-space: nowrap !important;
}

/* ----- 12.3 DESCRIPTION ----- */
.footer-desc {
    font-size: 0.85em !important;
    color: rgba(255,255,255,0.80) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.footer-col-brand .footer-tagline + p,
.footer-col-brand .footer-desc {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ----- 12.4 COLUMN HEADINGS ----- */
.footer-heading {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.7em !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #F5F3EF !important;
    margin: 0 0 8px !important;
}

/* ----- 12.5 NAV LIST ----- */
.footer-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-nav li {
    list-style: none !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
}

.footer-nav li::before {
    display: none !important;
}

.footer-nav a,
.footer-nav a:hover {
    font-size: 0.875em !important;
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    transition: color 0.3s ease !important;
}

.footer-nav a:hover {
    color: #ffffff !important;
}

/* ----- 12.6 DISCLAIMER + LEGAL LINKS ----- */
.footer-disclaimer {
    font-size: 0.8em !important;
    color: rgba(255,255,255,0.85) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.footer-col-disclaimer .footer-heading {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
}

.footer-col-disclaimer .footer-disclaimer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.footer-col-disclaimer p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Legal links — dotted underline default, solid + brighter on hover */
.footer-col-disclaimer a,
.footer-col-disclaimer #usercentrics-psl {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: underline !important;
    text-decoration-style: dotted !important;
    text-decoration-color: currentColor !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
    cursor: pointer !important;
    transition: text-decoration-style 0.2s ease, text-decoration-thickness 0.2s ease, color 0.2s ease;
}

.footer-col-disclaimer a:hover,
.footer-col-disclaimer #usercentrics-psl:hover {
    text-decoration-style: solid !important;
    text-decoration-thickness: 2px !important;
    color: #F5F3EF !important;
}

/* ----- 12.7 COPYRIGHT BAR ----- */
.footer-copyright {
    font-size: 0.8em !important;
    color: rgba(255,255,255,0.85) !important;
    text-align: left !important;
    margin: 0 !important;
}

.et_pb_section_1_tb_footer .footer-copyright {
    text-align: center !important;
}

/* ----- 12.8 CERTIFICATION LOGOS ----- */
.footer-logo img {
    mix-blend-mode: luminosity !important;
    opacity: 0.65 !important;
    border-radius: 6px !important;
    transition: opacity 0.3s ease !important;
}

.footer-logo img:hover {
    opacity: 0.85 !important;
}

/* Display logos side by side */
.et_pb_column_0_tb_footer .et_pb_image_0_tb_footer,
.et_pb_column_0_tb_footer .et_pb_image_1_tb_footer {
    display: inline-block !important;
    width: auto !important;
    vertical-align: middle !important;
}

.et_pb_column_0_tb_footer .et_pb_image_0_tb_footer .et_pb_image_wrap {
    padding-right: 24px !important;
}

.et_pb_column_0_tb_footer .et_pb_image_0_tb_footer img {
    width: 70px !important;
    height: auto !important;
}

.et_pb_column_0_tb_footer .et_pb_image_1_tb_footer img {
    width: 100px !important;
    height: auto !important;
}

/* ----- 12.9 SPACING CLEANUP ----- */
.et-l--body .et_pb_section:last-child {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.et_pb_section:last-child {
    margin-bottom: 0 !important;
}

.et_pb_section_0_tb_footer {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.et_pb_section_1_tb_footer {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* ==========================================================================
   SECTION 13 — PAID MEMBERSHIPS PRO (PMPRO)
   Wrapper, forms, levels table, account, invoices, no access page, mobile
   ========================================================================== */

/* ----- 13.1 WRAPPER & CARD ----- */
.pmpro {
    background-color: #FFFFFF;
    border: 1px solid #D9D4CB;
    border-radius: 0.5em;
    padding: 2.5em 3em;
    margin-top: 1.5em;
    font-family: 'Inter', sans-serif;
    color: #333333;
}

@media only screen and (max-width: 768px) {
    .pmpro {
        padding: 1.5em 1.25em;
    }
}

/* ----- 13.2 HEADINGS INSIDE PMPRO ----- */
.pmpro h2,
.pmpro h3 {
    font-family: 'Libre Baskerville', serif !important;
    color: #2C3E50 !important;
    font-weight: 700 !important;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
}

.pmpro_checkout-field legend,
.pmpro_checkout-field > label:first-child,
.pmpro_section_name {
    font-family: 'Inter', sans-serif;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5F6F82;
    display: block;
    margin-bottom: 1em;
    border-bottom: 1px solid #D9D4CB;
    padding-bottom: 0.5em;
}

/* ----- 13.3 FORM INPUTS & LABELS ----- */
#pmpro_form label,
.pmpro_checkout-field label,
.pmpro_account label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375em;
    font-weight: 600;
    color: #2C3E50;
    display: block;
    margin-bottom: 0.35em;
}

#pmpro_form input[type="text"],
#pmpro_form input[type="email"],
#pmpro_form input[type="password"],
#pmpro_form input[type="tel"],
#pmpro_form input[type="number"],
#pmpro_form select,
#pmpro_form textarea,
.pmpro_checkout-field input[type="text"],
.pmpro_checkout-field input[type="email"],
.pmpro_checkout-field input[type="password"],
.pmpro_checkout-field select {
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    color: #333333;
    background-color: #FFFFFF;
    border: 1px solid #D9D4CB;
    border-radius: 0.375em;
    padding: 0.65em 0.875em;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

#pmpro_form input[type="text"]:focus,
#pmpro_form input[type="email"]:focus,
#pmpro_form input[type="password"]:focus,
#pmpro_form input[type="tel"]:focus,
#pmpro_form select:focus,
.pmpro_checkout-field input:focus,
.pmpro_checkout-field select:focus {
    outline: none;
    border-color: #44635B;
    box-shadow: 0 0 0 3px rgba(68, 99, 91, 0.15);
}

/* Checkbox & radio */
#pmpro_form input[type="checkbox"],
#pmpro_form input[type="radio"] {
    width: auto;
    margin-right: 0.5em;
    accent-color: #44635B;
}

/* Required asterisk */
#pmpro_form .pmpro_asterisk,
.pmpro_required {
    color: #C0392B;
    margin-left: 0.2em;
}

/* Field spacing */
.pmpro_checkout-field,
#pmpro_form .input-group {
    margin-bottom: 1.25em;
}

/* ----- 13.4 BUTTONS ----- */
#pmpro_form input[type="submit"],
.pmpro_btn,
.pmpro_btn-submit,
a.pmpro_btn,
button.pmpro_btn {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.125em !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    background-color: #44635B !important;
    border: none !important;
    border-radius: 0.375em !important;
    padding: 0.75em 1.75em !important;
    cursor: pointer;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-height: 3em;
    line-height: 1.4;
}

#pmpro_form input[type="submit"]:hover,
.pmpro_btn:hover,
a.pmpro_btn:hover {
    background-color: #3B564F !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

#pmpro_form input[type="submit"]:active,
.pmpro_btn:active {
    background-color: #324A44 !important;
    transform: translateY(1px);
}

#pmpro_form input[type="submit"]:focus,
.pmpro_btn:focus {
    outline: 2px solid #6F8F84 !important;
    outline-offset: 2px;
}

/* Cancel / secondary link-style button */
.pmpro_btn-cancel,
a.pmpro_btn-cancel {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9375em !important;
    font-weight: 600 !important;
    color: #5F6F82 !important;
    background: transparent !important;
    border: 1px solid #D9D4CB !important;
    border-radius: 0.375em !important;
    padding: 0.65em 1.25em !important;
    text-decoration: none !important;
    display: inline-block;
    transition: border-color 0.2s ease, color 0.2s ease;
    margin-left: 0.75em;
}

.pmpro_btn-cancel:hover,
a.pmpro_btn-cancel:hover {
    border-color: #5F6F82 !important;
    color: #2C3E50 !important;
    text-decoration: none !important;
}

/* ----- 13.5 MEMBERSHIP LEVELS TABLE ----- */
#pmpro_levels {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    margin-top: 1.5em;
}

#pmpro_levels th {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.125em;
    font-weight: 700;
    color: #2C3E50;
    text-align: left;
    padding: 1em 1.25em;
    border-bottom: 2px solid #44635B;
    background-color: #F5F3EF;
}

#pmpro_levels td {
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    color: #333333;
    padding: 1em 1.25em;
    border-bottom: 1px solid #D9D4CB;
    vertical-align: top;
}

#pmpro_levels tr:last-child td {
    border-bottom: none;
}

#pmpro_levels tr:hover td {
    background-color: #F5F3EF;
}

.pmpro_level-name,
#pmpro_levels .pmpro_level_name {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.25em;
    font-weight: 700;
    color: #2C3E50;
}

.pmpro_level-cost,
#pmpro_levels .pmpro_level_cost,
#pmpro_level_cost {
    font-size: 1.0625em;
    color: #44635B;
    font-weight: 600;
}

.pmpro_level-description,
#pmpro_levels .pmpro_level_description {
    font-size: 0.9375em;
    color: #5F6F82;
    margin-top: 0.5em;
    line-height: 1.6;
}

/* ----- 13.6 ACCOUNT PAGE ----- */
.pmpro_account-membership,
.pmpro_account-profile,
.pmpro_account-invoices,
.pmpro_account-links {
    background-color: #F5F3EF;
    border: 1px solid #D9D4CB;
    border-radius: 0.375em;
    padding: 1.5em 1.75em;
    margin-bottom: 1.5em;
}

.pmpro_account-membership h3,
.pmpro_account-profile h3,
.pmpro_account-invoices h3,
.pmpro_account-links h3 {
    font-family: 'Libre Baskerville', serif !important;
    font-size: 1.125em !important;
    color: #2C3E50 !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #D9D4CB;
}

.pmpro_account-links ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pmpro_account-links ul li {
    padding: 0.35em 0;
}

.pmpro_account-links ul li a {
    color: #44635B;
    font-weight: 600;
    font-size: 0.9375em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pmpro_account-links ul li a:hover {
    color: #6F8F84;
    text-decoration: underline;
}

.pmpro_actionlinks a,
.pmpro_account a.pmpro_btn {
    display: inline-block;
    margin-top: 0.75em;
}

/* ----- 13.7 INVOICES & BILLING TABLES ----- */
.pmpro_invoice,
.pmpro_invoices_list {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375em;
    margin-top: 1em;
}

.pmpro_invoice th,
.pmpro_invoices_list th {
    font-weight: 600;
    color: #2C3E50;
    text-align: left;
    padding: 0.75em 1em;
    background-color: #F5F3EF;
    border-bottom: 2px solid #D9D4CB;
}

.pmpro_invoice td,
.pmpro_invoices_list td {
    padding: 0.75em 1em;
    border-bottom: 1px solid #D9D4CB;
    color: #333333;
}

.pmpro_invoice tr:last-child td,
.pmpro_invoices_list tr:last-child td {
    border-bottom: none;
}

.pmpro_invoice .pmpro_total td {
    font-weight: 700;
    color: #2C3E50;
    border-top: 2px solid #D9D4CB;
}

/* ----- 13.8 MESSAGES & NOTICES ----- */
.pmpro_message,
.pmpro_error,
.pmpro_alert,
div.pmpro_message {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375em;
    line-height: 1.6;
    padding: 1em 1.25em;
    border-radius: 0.375em;
    margin-bottom: 1.25em;
    border-left: 4px solid;
}

.pmpro_message {
    background-color: #EEF4F2;
    border-left-color: #44635B;
    color: #2C3E50;
}

.pmpro_error,
.pmpro_message.pmpro_error {
    background-color: #FDF2F2;
    border-left-color: #C0392B;
    color: #7B2020;
}

.pmpro_alert-success,
.pmpro_message.pmpro_alert-success {
    background-color: #EEF4F2;
    border-left-color: #44635B;
    color: #2C3E50;
}

/* ----- 13.9 CONFIRMATION PAGE ----- */
.pmpro_confirmation table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.25em;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375em;
}

.pmpro_confirmation table th {
    text-align: left;
    padding: 0.65em 1em;
    background-color: #F5F3EF;
    font-weight: 600;
    color: #2C3E50;
    border-bottom: 2px solid #D9D4CB;
}

.pmpro_confirmation table td {
    padding: 0.65em 1em;
    border-bottom: 1px solid #D9D4CB;
    color: #333333;
}

/* ----- 13.10 NO ACCESS PAGE (Download Monitor) ----- */
.dlm-no-access-message,
.dlm_no_access {
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    color: #333333;
    line-height: 1.6;
}

.dlm-no-access-message p,
.dlm_no_access p {
    margin-bottom: 1em;
}

/* ----- 13.11 ACTION NAV LINKS ----- */
.pmpro_actions_nav {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #D9D4CB;
    display: flex;
    justify-content: flex-end;
}

.pmpro_actions_nav a {
    color: #44635B !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pmpro_actions_nav a:hover {
    color: #6F8F84 !important;
    text-decoration: underline !important;
}

/* PMPro inline link — direct child of .pmpro wrapper */
.pmpro > a {
    color: #44635B !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.pmpro > a:hover {
    color: #6F8F84 !important;
    text-decoration: underline !important;
}

/* ----- 13.12 ACCOUNT PAGE CARD STRUCTURE ----- */
.pmpro_section {
    margin-bottom: 2em;
}

.pmpro_section_title {
    font-family: 'Libre Baskerville', serif !important;
    color: #2C3E50 !important;
    font-weight: 700 !important;
    font-size: 1.625em !important;
    margin-bottom: 0.75em !important;
}

.pmpro_card {
    background-color: #FFFFFF;
    border: 1px solid #D9D4CB;
    border-radius: 0.5em;
    overflow: hidden;
}

.pmpro_card_content {
    padding: 1.5em 1.75em;
}

.pmpro_card_actions {
    background-color: #F5F3EF;
    border-top: 1px solid #D9D4CB;
    padding: 0.875em 1.75em;
}

.pmpro .pmpro_card_action a {
    color: #44635B !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375em;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pmpro .pmpro_card_action a:hover {
    color: #6F8F84 !important;
    text-decoration: underline !important;
}

/* Links inside card content */
.pmpro .pmpro_card_content a {
    color: #44635B !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.pmpro .pmpro_card_content a:hover {
    color: #6F8F84 !important;
    text-decoration: underline !important;
}

.pmpro_card_action_separator {
    color: #D9D4CB;
    margin: 0 0.25em;
}

/* Plain list inside cards */
.pmpro_list-plain {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pmpro_list-plain .pmpro_list_item {
    padding: 0.35em 0 !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    color: #333333;
    font-size: 0.9375em;
}

/* ----- 13.13 MOBILE — PMPRO ----- */
@media only screen and (max-width: 768px) {
    #pmpro_levels th,
    #pmpro_levels td {
        padding: 0.75em 0.875em;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    #pmpro_levels thead {
        display: none;
    }

    #pmpro_levels tr {
        display: block;
        margin-bottom: 1.5em;
        border: 1px solid #D9D4CB;
        border-radius: 0.375em;
        overflow: hidden;
    }

    .pmpro_invoice th,
    .pmpro_invoice td,
    .pmpro_invoices_list th,
    .pmpro_invoices_list td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .pmpro_invoice thead,
    .pmpro_invoices_list thead {
        display: none;
    }

    .pmpro_account-membership,
    .pmpro_account-profile,
    .pmpro_account-invoices,
    .pmpro_account-links {
        padding: 1.25em;
    }

    #pmpro_form input[type="submit"],
    .pmpro_btn {
        width: 100% !important;
        text-align: center !important;
    }
}


/* ==========================================================================
   SECTION 14 — MOBILE GLOBAL REFINEMENTS
   Site-wide mobile breakpoints for sections, lists, headings, subtitles
   ========================================================================== */

@media only screen and (max-width: 980px) {
    /* H1/H2 sizing reduction */
    h1 { font-size: 2em !important; }
    h2 { font-size: 1.5em !important; }

    /* Section padding — 3em desktop is too tall on phone/tablet, 2em is balanced */
    .et_pb_section {
        padding: 2em 0 !important;
    }

    /* Bullet list line-height — desktop 1.8 reads airy on narrow viewports, 1.5 is balanced */
    .et-l--body ul,
    .et_pb_text ul {
        line-height: 1.5 !important;
    }

    /* Practice area + interior page hero H1 — prevent overflow on long titles */
    body .et_pb_fullwidth_header .header-content h1,
    body .et_pb_fullwidth_header .header-content .et_pb_module_header {
        font-size: 32px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Care Resource Guide blog-at-bottom — show only the most recent post on mobile */
    .resources-blog .et_pb_post:nth-child(n+2) {
        display: none !important;
    }
}

/* Practice area hero subtitle — line-height for clean wrap on mobile */
body .et_pb_fullwidth_header .header-content .et_pb_fullwidth_header_subhead {
    line-height: 1.7 !important;
}

/* Blog archive card category pill — line-height for proper wrap */
.et_pb_posts p.post-meta a {
    line-height: 1.7 !important;
}


/* ==========================================================================
   SECTION 15 — ACCESSIBILITY
   Site-wide focus visible (WCAG 2.4.7), Divi toggle a11y, screen reader utility
   ========================================================================== */

/* ----- 15.1 SITE-WIDE FOCUS VISIBLE (WCAG 2.4.7)
   Overrides Divi parent theme's :focus { outline: 0 } reset */

/* Modern browsers: show focus only on keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.et_pb_button:focus-visible {
    outline: 3px solid #6F8F84 !important;
    outline-offset: 2px !important;
}

/* Hide focus indicator on mouse clicks (cleaner UX for sighted mouse users) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.et_pb_button:focus:not(:focus-visible) {
    outline: 0 !important;
}

/* Dark background overrides — brighter Parchment outline for contrast */
.et_mobile_menu a:focus-visible,
[class*="footer-col"] a:focus-visible,
.et_pb_section_dark a:focus-visible,
.et_pb_section_dark button:focus-visible,
.et_pb_section_dark .et_pb_button:focus-visible {
    outline-color: #F5F3EF !important;
}

/* ----- 15.2 DIVI TOGGLE KEYBOARD ACCESSIBILITY
   Inset box-shadow used because Divi's overflow:hidden parent clips outline */
body #main-content .et_pb_toggle .et_pb_toggle_title:focus,
body #main-content .et_pb_toggle .et_pb_toggle_title:focus-visible {
    outline: none !important;
    box-shadow: inset 0 0 0 3px #6F8F84 !important;
    border-radius: 4px !important;
}

/* ----- 15.3 SCREEN READER TEXT UTILITY (WordPress accessibility convention)
   Visually hides content while preserving accessibility tree presence */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
