/* ==========================================================================
   Crossen Law Firm — shared interior-page styles (hero band, sidebar layout,
   long-form content). Enqueued on singulars, pages, and archives.
   ========================================================================== */

/* Uniform section breathing at lg, matching the homepage rhythm (the py-5
   utility caps at 3rem, which reads cramped on wide screens). Mirrors the
   block at the top of home.css. Added 2026-08-14 with the interior polish
   pass — sections that intentionally carry only top padding (they pair with
   the section below) are listed separately so their bottom stays flush. */
@media (min-width: 992px) {
    #clf-contact-main,
    #clf-area-content,
    #clf-city-content,
    #clf-cities-index,
    #clf-faq-content,
    #clf-faq-hub,
    #clf-pi-areas,
    #clf-pi-content,
    #clf-member-content,
    #clf-post-content,
    #clf-about-team,
    #clf-blog-archive,
    #clf-result-content,
    #clf-results-grid,
    #clf-reviews-main,
    .clf-page-body {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }

    #clf-about-intro,
    #clf-results-intro {
        padding-top: 4.5rem !important;
    }

    /* Interior hero gets a little more presence to match the home stage */
    .clf-page-hero {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    /* When a trust band overlaps the hero seam, reclaim the bottom padding
       so the band never crowds the H1 (same device as the homepage hero). */
    .clf-page-hero.clf-has-trust {
        padding-bottom: 5.25rem !important;
    }
}

/* Page hero band */
.clf-page-hero .clf-line {
    margin-bottom: 0;
}

.clf-page-hero-subhead {
    color: var(--clf-muted-dark);
    font-family: var(--clf-font-header);
    font-weight: 500;
    font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
    line-height: 1.4;
    max-width: 60ch;
    margin-top: 1rem;
}

/* Interior trust strip: same component as the homepage, pulled up over the
   navy hero seam. Section wrapper only — the band itself lives in style.css. */
#clf-interior-trust {
    position: relative;
    z-index: 5;
}

/* Two-column content + sidebar layout */
.clf-interior-row {
    align-items: flex-start;
}

.clf-interior-content {
    max-width: 760px;
}

/* Sidebar */
.clf-sidebar {
    position: static;
    --clf-sidebar-top: calc(6.5rem + var(--wp-admin--admin-bar--height, 0px));
    top: var(--clf-sidebar-top);
}

.clf-sidebar .clf-sidebar-phone {
    color: var(--clf-primary);
    font-family: var(--clf-font-header);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
}

.clf-sidebar .clf-sidebar-phone:hover {
    text-decoration: underline;
}

.clf-form-privacy {
    font-size: .75rem;
    color: var(--clf-muted);
    line-height: 1.5;
}

.clf-sidebar-nav li {
    border-bottom: 1px solid var(--clf-line);
}

.clf-sidebar-nav li:last-child {
    border-bottom: 0;
}

.clf-sidebar-nav a {
    display: block;
    padding: .55rem 0;
    color: var(--clf-body);
    font-size: .9375rem;
    text-decoration: none;
}

.clf-sidebar-nav a:hover,
.clf-sidebar-nav a:focus {
    color: var(--clf-primary);
}

.clf-sidebar-nav .clf-current > a {
    color: var(--clf-primary);
    font-weight: 600;
}

.clf-sidebar-nav .clf-footer-viewall {
    color: var(--clf-accent) !important;
    font-weight: 600;
}

/* WPForms styling to match the design system */
.clf-sidebar .wpforms-container,
.clf-form-panel .wpforms-container {
    margin: 0;
}

.wpforms-container .wpforms-field-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--clf-dark);
}

.wpforms-container .wpforms-required-label {
    color: var(--clf-accent);
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container select,
.wpforms-container textarea {
    border: 1px solid var(--clf-line);
    border-radius: var(--clf-radius-sm);
    padding: .6rem .75rem;
    width: 100%;
}

.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
    border-color: var(--clf-primary);
    outline: 2px solid rgba(0, 53, 142, .25);
    outline-offset: 0;
}

.wpforms-container button[type="submit"] {
    background: var(--clf-accent) !important;
    border: 0 !important;
    color: #fff !important;
    font-family: var(--clf-font-header);
    font-size: .875rem !important;
    line-height: 1.35 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: var(--clf-radius-sm) !important;
    padding: 13px 16px !important;
    width: 100%;
    cursor: pointer;
}

.wpforms-container button[type="submit"]:hover {
    background: var(--clf-accent-deep) !important;
}

/* Blog cards */
.clf-post-card .clf-post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.clf-post-card h2, .clf-post-card h3 {
    font-size: 1.15rem;
    line-height: 1.4;
}

.clf-post-card .clf-post-meta {
    color: var(--clf-muted);
    font-size: .8125rem;
}

/* Breadcrumb-lite back links */
.clf-backlink {
    font-size: .875rem;
    color: var(--clf-muted);
    text-decoration: none;
}

.clf-backlink:hover {
    color: var(--clf-primary);
}

/* --------------------------------------------------------------------------
   Cross-page components (also used on the homepage)
   -------------------------------------------------------------------------- */

/* Review cards: the card treatment lives in style.css so the homepage and
   the Reviews page share one definition. Duplicate .clf-review-stars /
   .clf-review-author rules were removed from here 2026-08-14 - they never
   applied, because the parent theme re-enqueues the child style.css last
   (see docs/HANDOFF.md). Reviews-page-specific layout only, below. */

/* Reviews grid: testimonials run from 30 to 895 characters, so a plain grid
   row leaves tall gaps beside the longest card. Same column-flow treatment
   as the practice-area directory; markup stays a standard Bootstrap row. */
@media (min-width: 768px) {
    #clf-reviews-main .row {
        display: block;
        column-gap: 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }

    #clf-reviews-main .row > [class*="col-"] {
        display: block;
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin: 0 0 1.5rem;
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #clf-reviews-main .row { column-count: 2; }
}

@media (min-width: 992px) {
    #clf-reviews-main .row { column-count: 3; }
}

/* Office cards */
.clf-office-card {
    font-style: normal;
    line-height: 1.7;
}

.clf-office-card .clf-office-phone {
    color: var(--clf-primary);
    font-family: var(--clf-font-header);
    font-weight: 700;
    text-decoration: none;
}

.clf-office-card .clf-office-phone:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Long-form reading rhythm (practice areas, cities, FAQs, posts)
   -------------------------------------------------------------------------- */

.clf-prose {
    font-size: 1.0625rem;
}

/* Lede: the opening paragraph reads slightly larger */
.clf-prose > p:first-child {
    font-size: 1.1875rem;
    line-height: 1.65;
    color: var(--clf-dark);
}

/* Scannable section headings: red tick + generous top spacing */
.clf-prose h2 {
    margin-top: 2.5rem;
    padding-bottom: .6rem;
    position: relative;
}

.clf-prose h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 2px;
    background: var(--clf-accent);
}

.clf-prose h3 {
    margin-top: 2.25rem;
}

.clf-prose h4 {
    margin-top: 1.75rem;
}

.clf-prose h2, .clf-prose h3, .clf-prose h4 {
    scroll-margin-top: 110px; /* anchor jumps clear the sticky header */
    line-height: 1.3;
}

/* Lists: brand markers, roomier items */
.clf-prose ul, .clf-prose ol {
    padding-left: 1.4rem;
}

.clf-prose li {
    margin-bottom: .5rem;
}

.clf-prose li::marker {
    color: var(--clf-accent);
    font-weight: 700;
}

/* Quotes / callouts */
.clf-prose blockquote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--clf-light);
    border-left: 4px solid var(--clf-accent);
    border-radius: 0 var(--clf-radius-sm) var(--clf-radius-sm) 0;
    font-size: 1.0625rem;
}

.clf-prose blockquote p:last-child {
    margin-bottom: 0;
}

/* Media inside content */
.clf-prose iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: var(--clf-radius);
    margin: 1.25rem 0;
}

.clf-prose .video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: 1.25rem 0;
}

.clf-prose .video-container iframe {
    position: absolute;
    inset: 0;
    height: 100%;
    margin: 0;
}

.clf-prose img {
    margin: 1rem 0;
}

/* Editor images: leave space on the text-facing edge of classic images,
   captions and block figures. Apply the gap to the wrapper only once. */
.clf-prose :is(img, figure, .wp-caption).alignleft {
    margin: .5rem 1.5rem 1rem 0;
}

.clf-prose :is(img, figure, .wp-caption).alignright {
    margin: .5rem 0 1rem 1.5rem;
}

.clf-prose :is(img, figure, .wp-caption).aligncenter {
    display: block;
    margin: 1.5rem auto;
}

.clf-prose :is(figure, .wp-caption) {
    max-width: 100%;
}

.clf-prose :is(figure, .wp-caption) img {
    margin: 0;
}

.clf-prose :is(figcaption, .wp-caption-text) {
    margin-top: .5rem;
}

/* Avoid narrow text strips beside floated images on phones. */
@media (max-width: 767.98px) {
    .clf-prose :is(img, figure, .wp-caption):is(.alignleft, .alignright) {
        float: none;
        display: block;
        margin: 1.5rem auto;
    }
}

/* Tables (fee schedules, comparisons) */
.clf-prose table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: .9375rem;
}

.clf-prose th, .clf-prose td {
    padding: .65rem .75rem;
    border: 1px solid var(--clf-line);
    text-align: left;
}

.clf-prose th {
    background: var(--clf-light);
    font-weight: 600;
    color: var(--clf-dark);
}

.clf-prose hr {
    margin: 2rem 0;
    border-color: var(--clf-line);
    opacity: 1;
}

/* Links: visible affordance inside body copy */
.clf-prose p a, .clf-prose li a {
    text-decoration: underline;
    text-decoration-color: rgba(0, 53, 142, .35);
    text-underline-offset: 2px;
}

.clf-prose p a:hover, .clf-prose li a:hover {
    text-decoration-color: var(--clf-primary);
}

/* Source badge on testimonials */
.clf-review-badge {
    display: inline-block;
    margin-left: .25rem;
    padding: .1rem .5rem;
    border: 1px solid var(--clf-line);
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--clf-muted);
    text-transform: uppercase;
}

/* Search form: the child searchform.php uses type="search" (accessible-name
   fix), and the parent's input rule keys off type="text". Same box. */
.bcb-search input[type="search"] {
    padding: 10px 15px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
}

/* Member profile photo: the img carries its real width/height attributes
   (CLS fix), so height must track the w-100 scaled width. */
.clf-member-photo {
    height: auto;
}

/* Blog topic nav (blog-topics.php) + "Filed under" pills on singles.
   Same pill idiom as .clf-review-badge, sized for tap targets. */
.clf-topic-nav ul {
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.clf-topic-pill {
    display: inline-block;
    padding: .35rem .85rem;
    border: 1px solid var(--clf-line, rgba(0, 0, 0, .125));
    border-radius: 999px;
    background: #fff;
    font-family: var(--clf-font-header);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--clf-primary);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.clf-topic-pill:hover,
.clf-topic-pill:focus-visible {
    background: var(--clf-primary);
    border-color: var(--clf-primary);
    color: #fff;
}
.clf-topic-pill.clf-topic-current {
    background: var(--clf-primary);
    border-color: var(--clf-primary);
    color: #fff;
}
.clf-topic-count {
    margin-left: .4rem;
    font-weight: 400;
    opacity: .7;
}
.clf-post-terms {
    border-top: 1px solid var(--clf-line, rgba(0, 0, 0, .125));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}
.clf-post-terms-label {
    font-family: var(--clf-font-header);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--clf-muted, #6b7280);
    margin-right: .25rem;
}

/* On phones the 25-topic wrap would push articles far below the fold:
   collapse the nav to a horizontally scrollable rail instead. */
@media (max-width: 767.98px) {
    .clf-topic-nav ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .5rem;
        scrollbar-width: thin;
    }
    .clf-topic-pill {
        white-space: nowrap;
    }
}

/* Indiana office map (common-indiana-map.php) — moved from home.css so the
   contact page shares it; interior.css loads on the front page too. */
.clf-indiana {
    width: min(430px, 100%);
    margin-top: 2rem;
    overflow: visible;
}

.clf-indiana-shape {
    fill: url(#clf-in-fill);
    stroke: var(--clf-primary);
    stroke-width: 1.5;
    stroke-linejoin: round;
    filter: drop-shadow(0 10px 22px rgba(10, 31, 68, .14));
}

.clf-indiana-dot {
    fill: var(--clf-accent);
}

.clf-indiana-ring {
    fill: none;
    stroke: var(--clf-accent);
    stroke-width: 1.25;
    opacity: .45;
    transform-box: fill-box;
    transform-origin: center;
    animation: clf-pin-pulse 2.4s ease-out infinite;
}

.clf-indiana-pin:nth-of-type(2) .clf-indiana-ring {
    animation-delay: 1.2s;
}

@keyframes clf-pin-pulse {
    from { transform: scale(1); opacity: .5; }
    to   { transform: scale(1.9); opacity: 0; }
}

.clf-indiana-leader {
    fill: none;
    stroke: var(--clf-accent);
    stroke-width: 1;
    opacity: .55;
}

.clf-indiana-label {
    font-family: var(--clf-font-header);
    font-weight: 600;
    fill: var(--clf-dark);
}

.clf-indiana-label-sub {
    font-family: var(--clf-font-header);
    font-weight: 500;
    fill: var(--clf-muted);
}

@media (prefers-reduced-motion: reduce) {
    .clf-indiana-ring { animation: none; opacity: .45; }
}


/* Trevor's headshot follows the bio while its column remains in view.
   Short viewports and stacked mobile layouts keep normal document flow. */
@media (min-width: 768px) and (min-height: 600px) {
    .postid-102 .clf-member-photo {
        position: sticky;
        top: calc(6.5rem + var(--wp-admin--admin-bar--height, 0px));
    }
}

.clf-member-results {
    border-top: 1px solid var(--clf-line);
    margin-top: 2rem;
    padding-top: 1.5rem;
}


/* Opt-in team layout. Other page types keep their existing presentation. */
.clf-attorney-profile .clf-page-hero {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.clf-attorney-profile #clf-member-content {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.clf-attorney-bio {
    padding: 1.25rem;
    background: var(--clf-light);
    border: 1px solid var(--clf-line);
    border-radius: var(--clf-radius);
    overflow-wrap: anywhere;
}

.clf-attorney-bio .clf-prose {
    font-size: 1.0625rem;
    line-height: 1.7;
}

.clf-attorney-bio .clf-prose h2 {
    margin: 2.25rem 0 1rem;
    padding: 0 0 0 1rem;
    border-left: 4px solid var(--clf-accent);
    color: var(--clf-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.clf-attorney-bio .clf-prose h2:first-child {
    margin-top: 0;
}

.clf-attorney-bio .clf-prose h2::after {
    display: none;
}

.clf-attorney-bio .clf-prose > :last-child {
    margin-bottom: 0;
}

.clf-attorney-bio img {
    max-width: 100%;
    height: auto;
}

.clf-attorney-profile .clf-sidebar-cta {
    border-top: 3px solid var(--clf-accent);
}

.clf-attorney-portrait {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
    border-radius: var(--clf-radius-sm);
}

.clf-attorney-profile #clf-interior-trust {
    padding-bottom: 2rem;
}

.clf-attorney-profile .clf-trust-band {
    margin-top: 0;
}

@media (min-width: 768px) {
    .clf-attorney-bio {
        padding: 2rem;
    }
    .clf-attorney-bio .clf-prose {
        font-size: 1.125rem;
    }
    .clf-attorney-bio .clf-prose h2 {
        font-size: 1.75rem;
    }
}

@media (min-width: 992px) {
    .clf-attorney-portrait {
        width: 240px;
    }
}

@media (min-width: 1200px) {
    .clf-attorney-bio .clf-prose {
        font-size: 1.1875rem;
    }
}

/* Shared consultation sidebars stay within their content row and viewport. */
@media (min-width: 992px) and (min-height: 700px) {
    .clf-interior-row:has(.clf-sidebar) {
        align-items: stretch;
    }

    .clf-sidebar {
        position: sticky;
        max-height: calc(100vh - var(--clf-sidebar-top) - var(--clf-fixed-cta-height, 0px) - 1rem);
        max-height: calc(100dvh - var(--clf-sidebar-top) - var(--clf-fixed-cta-height, 0px) - 1rem);
        overflow-y: auto;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        padding: 2px;
    }

    .clf-sidebar:focus-visible {
        outline: 2px solid var(--clf-primary);
        outline-offset: 3px;
    }
}

/* Allow the full consultation label to wrap on narrow sidebars. */
.clf-sidebar .wpforms-container .wpforms-form button.wpforms-submit {
    height: auto !important;
    min-height: 44px;
}

