/* style.css - Base stylesheet for PHP JSON flat-file sites
   Design tokens are injected as CSS custom properties via site_tokens_css().
   Add site-specific overrides below the base layer. */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: var(--header-height, 64px);
    background: var(--color-bg, #fff);
    color: var(--color-text, #1a1a1a);
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 1rem;
    line-height: 1.65;
}

a {
    color: var(--color-accent, #2563eb);
    text-decoration: underline;
}

a:hover {
    color: var(--color-accent-strong, #1d4ed8);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Header ────────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 64px);
    background: var(--color-surface, #fff);
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    z-index: 100;
}

.site-header__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.site-logo {
    text-decoration: none;
}

.site-logo__wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28em;
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.site-logo__prefix {
    color: var(--color-text, #1a1a1a);
}

.site-logo__accent {
    color: var(--color-accent, #2a63c7);
}

.site-logo__tagline {
    font-style: italic;
    font-size: 0.7rem;
    color: var(--color-text-muted, #5b6577);
}

/* ── Navigation ────────────────────────────────────────────────────────────── */

.site-nav {
    margin-left: auto;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.site-nav__list a {
    color: var(--color-text, #1a1a1a);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
    color: var(--color-accent, #2563eb);
}

.site-nav__item--has-dropdown {
    position: relative;
}

.nav-chevron::after {
    content: ' \25BE';
    font-size: 0.75em;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-small, 6px);
    padding: 0.5rem 0;
    min-width: 200px;
    list-style: none;
    margin: 0;
    box-shadow: var(--shadow-card);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}

/* Click/focus-driven, not bare :hover -- hover loses the dropdown the
   instant the pointer crosses the gap between trigger and panel. See
   assets/js/nav.js for the .is-open toggle. */
.site-nav__item--has-dropdown.is-open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    font-size: 0.875rem;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
}

.nav-hamburger span:not(.nav-hamburger__label) {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text, #1a1a1a);
    border-radius: 2px;
}

.nav-hamburger__label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--color-text, #1a1a1a);
}

@media (max-width: 768px) {
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.page-wrapper {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.content-layout--single {
    grid-template-columns: 1fr;
    max-width: 760px;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: calc(var(--header-height, 64px) + 1.5rem);
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────────── */

.breadcrumbs {
    margin-bottom: 1.5rem;
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--color-text-muted, #6b7280);
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: '/';
    margin-right: 0.5rem;
}

.breadcrumbs__item.is-current {
    color: var(--color-text, #1a1a1a);
}

/* ── Sidebar blocks ───────────────────────────────────────────────────────── */

.sidebar-block {
    background: var(--color-surface, #f8f9fa);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-medium, 10px);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.sidebar-block__title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted, #6b7280);
}

.sidebar-block__links {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-block__links a {
    font-size: 0.875rem;
}

.cta-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--color-accent, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-small, 6px);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--color-border, #e5e7eb);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    background: var(--color-surface, #f8f9fa);
}

.site-footer__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-footer__top {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.site-footer__brand-name {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.site-footer__tagline {
    margin: 0 0 0.5rem;
    color: var(--color-text-muted, #6b7280);
    font-size: 0.875rem;
}

.site-footer__contact a {
    color: var(--color-text-muted, #6b7280);
    font-size: 0.875rem;
}

.site-footer__col-heading {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 0.75rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.site-footer__links a {
    color: var(--color-text, #1a1a1a);
    text-decoration: none;
    font-size: 0.875rem;
}

.site-footer__links a:hover {
    color: var(--color-accent, #2563eb);
}

.site-footer__bottom {
    border-top: 1px solid var(--color-border, #e5e7eb);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted, #6b7280);
}

/* ── Typography (headings + content areas) ────────────────────────────────────
   The base template shipped with zero styling for h1-h4/p/lists/cards inside
   actual page content -- only header/nav/footer/sidebar/buttons/error-page
   were designed. Every real page (home, about, glossary, FAQ, directory) was
   rendering in raw browser-default typography as a result. This section is
   the fix. */

h1, h2, h3, h4 {
    font-family: var(--font-display, system-ui, sans-serif);
    color: var(--color-accent-strong, #14284d);
}

h1 {
    font-weight: 300;
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
}

h2 {
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 2.5rem 0 1rem;
}

h3 {
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 1.75rem 0 0.75rem;
}

h4 {
    font-weight: 600;
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem;
}

p, ul, ol {
    margin: 0 0 1.25rem;
}

.prose {
    font-size: 1.05rem;
}

.prose > *:first-child {
    margin-top: 0;
}

/* First paragraph after the H1 reads as the page's lede -- larger and
   muted, same "editorial excerpt" treatment used elsewhere in the portfolio. */
.prose > h1 + p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text-muted, #5b6577);
}

/* ── Index/list pages (FAQ, glossary) ──────────────────────────────────────── */

.faq-index__list,
.glossary-index__list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.faq-index__list li,
.glossary-index__list li {
    border-bottom: 1px solid var(--color-border, #dde3ee);
    padding: 0.85rem 0;
}

.faq-index__list li:first-child,
.glossary-index__list li:first-child {
    border-top: 1px solid var(--color-border, #dde3ee);
}

.faq-index__list a,
.glossary-index__list a {
    text-decoration: none;
    font-weight: 500;
}

.faq-index__list a:hover,
.glossary-index__list a:hover {
    text-decoration: underline;
}

.glossary-index__short-def {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted, #5b6577);
}

.glossary-index__letter-group h2 {
    margin-top: 2.5rem;
}

/* ── Directory ─────────────────────────────────────────────────────────────── */

.directory-root__grid,
.directory-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.directory-listing__image {
    max-width: 320px;
    border-radius: var(--radius-medium, 10px);
    margin-bottom: 1.25rem;
}

.directory-listing__fields {
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--color-surface, #f7f9fc);
    border-radius: var(--radius-medium, 10px);
}

.directory-listing__fields dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted, #5b6577);
    margin-top: 0.75rem;
}

.directory-listing__fields dt:first-child {
    margin-top: 0;
}

.directory-listing__fields dd {
    margin: 0.15rem 0 0;
}

.directory-category-card,
.directory-listing-card {
    display: block;
    background: var(--color-surface, #f7f9fc);
    border: 1px solid var(--color-border, #dde3ee);
    border-radius: var(--radius-medium, 10px);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--color-text, #101828);
    transition: box-shadow 0.15s, transform 0.15s;
}

.directory-category-card:hover,
.directory-listing-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.directory-category-card h2,
.directory-category-card h3,
.directory-listing-card h2,
.directory-listing-card h3 {
    margin-top: 0;
    font-size: 1.15rem;
}

.directory-category-card p,
.directory-listing-card p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted, #5b6577);
}

/* ── Glossary term / FAQ item detail ──────────────────────────────────────── */

.glossary-term__aka {
    font-size: 0.9rem;
    color: var(--color-text-muted, #5b6577);
    margin-bottom: 0.5rem;
}

.glossary-term__short-def {
    font-size: 1.1rem;
}

.glossary-term__related ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

/* ── Utility ─────────────────────────────────────────────────────────────────── */

.text-muted {
    color: var(--color-text-muted, #6b7280);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-small, 6px);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--color-accent, #2563eb);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-accent-strong, #1d4ed8);
    color: #fff;
}

.btn--outline {
    border: 1px solid var(--color-accent, #2563eb);
    color: var(--color-accent, #2563eb);
    background: transparent;
}

/* ── Error page ─────────────────────────────────────────────────────────────── */

.error-page {
    text-align: center;
    padding: 5rem 1rem;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 200;
    margin: 0 0 0.5rem;
    color: var(--color-text-muted, #6b7280);
}

.error-page p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ── Mobile ─────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-height, 64px);
        left: 0;
        right: 0;
        background: var(--color-surface, #fff);
        border-bottom: 1px solid var(--color-border, #e5e7eb);
        padding: 1rem 1.5rem;
        z-index: 99;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
    }

    .site-nav__item--has-dropdown:hover .nav-dropdown {
        display: none;
    }

    .site-nav.is-open .nav-dropdown {
        display: block;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }

    .site-footer__top {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Midland redesign layer */

:root {
    --midland-ink: #091426;
    --midland-navy: #0c2d4f;
    --midland-blue: #145f9f;
    --midland-cyan: #38b9da;
    --midland-orange: #ff9900;
    --midland-paper: #f3f6fa;
    --midland-line: #d9e3ef;
}

html {
    background: var(--midland-paper);
}

body {
    padding-top: var(--header-height, 106px);
    background: var(--midland-paper);
    color: #132238;
    font-family: var(--font-body, 'Segoe UI', system-ui, sans-serif);
    line-height: 1.62;
    overflow-x: hidden;
}

a {
    color: #0f58a8;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
    color: var(--midland-orange);
}

h1,
h2,
h3,
h4 {
    color: #11233d;
    font-family: var(--font-display, 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    letter-spacing: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    height: var(--header-height, 106px);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(12, 45, 79, 0.08);
    box-shadow: 0 8px 24px rgba(9, 20, 38, 0.06);
}

.site-header__inner {
    max-width: 1760px;
    padding: 0 clamp(1rem, 4vw, 4.5rem);
    gap: clamp(1rem, 2vw, 2.4rem);
}

.site-brand {
    flex: 0 0 auto;
}

.site-logo {
    display: inline-flex;
    align-items: center;
}

.site-logo__image {
    width: clamp(190px, 16vw, 300px);
    height: auto;
}

.site-nav {
    margin-left: auto;
}

.site-nav__list {
    gap: clamp(1rem, 1.7vw, 2.1rem);
}

.site-nav__list a {
    color: #1c2635;
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list a.is-active,
.site-nav__list a:focus-visible {
    color: #0f58a8;
}

.nav-chevron::after {
    content: '⌄';
    display: inline-block;
    margin-left: 0.38rem;
    font-size: 0.82em;
}

.nav-dropdown {
    top: calc(100% + 1.1rem);
    border-color: rgba(12, 45, 79, 0.12);
    border-radius: 8px;
    box-shadow: 0 20px 44px rgba(9, 20, 38, 0.15);
}

.site-header__tools {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 0 0 auto;
}

.site-header__phone {
    color: #0c2d4f;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__search {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(12, 45, 79, 0.16);
    border-radius: 999px;
    color: #091426;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 8px 18px rgba(9, 20, 38, 0.07);
}

.site-header__search span,
.site-search-form button::before {
    content: '';
    width: 18px;
    height: 18px;
    display: block;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
}

.site-header__search span::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    right: -6px;
    bottom: -3px;
    background: currentColor;
    transform: rotate(45deg);
    border-radius: 2px;
}

.site-search-form button::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    left: calc(50% + 5px);
    top: calc(50% + 6px);
    background: currentColor;
    transform: rotate(45deg);
    border-radius: 2px;
}

.breadcrumb-band {
    background: #06111f;
}

.breadcrumbs {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1.05rem clamp(1rem, 4vw, 4.5rem);
}

.breadcrumbs__list {
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.94rem;
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: '›';
    margin-right: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
}

.breadcrumbs__item a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.breadcrumbs__item a:hover,
.breadcrumbs__item a:focus-visible,
.breadcrumbs__item.is-current {
    color: #fff;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(7, 16, 28, 0.98), rgba(9, 39, 72, 0.96) 58%, rgba(17, 84, 132, 0.96)),
        #07101c;
    color: #fff;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    margin: 0 auto;
    padding: clamp(4rem, 7vw, 7.25rem) clamp(1rem, 4vw, 4.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    gap: clamp(2rem, 5vw, 5.5rem);
    align-items: center;
}

.page-hero--interior .page-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 340px;
}

.page-hero__copy {
    max-width: 960px;
    min-width: 0;
}

.page-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    margin: 0 0 1.8rem;
    color: var(--midland-orange);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.page-hero__eyebrow::before {
    content: '';
    width: 42px;
    height: 1px;
    background: var(--midland-orange);
}

.page-hero__title {
    max-width: 1100px;
    margin: 0;
    color: #fff;
    font-size: 5.7rem;
    font-weight: 250;
    line-height: 1.04;
    text-wrap: balance;
}

.page-hero--interior .page-hero__title {
    font-size: 5rem;
}

.page-hero__lede {
    max-width: 820px;
    margin: 2rem 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.34rem;
    line-height: 1.52;
}

.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.3rem;
}

.page-hero__visual {
    position: relative;
    min-height: 400px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero__visual img {
    width: min(100%, 610px);
    aspect-ratio: 970 / 717;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.35);
}

.page-hero__note {
    position: absolute;
    left: 0;
    right: 2rem;
    bottom: 1.2rem;
    padding: 1rem 1.1rem;
    color: #fff;
    background: rgba(6, 17, 31, 0.78);
    border-left: 4px solid var(--midland-orange);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.search-band {
    background: linear-gradient(90deg, #58afe2, #135b93 54%, #0c4676);
    color: #fff;
}

.search-band__inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1.65rem clamp(1rem, 4vw, 4.5rem);
    display: grid;
    grid-template-columns: 1fr auto minmax(320px, 460px);
    gap: clamp(1rem, 4vw, 4rem);
    align-items: center;
}

.search-band__kicker {
    font-size: 1.45rem;
    font-weight: 600;
}

.search-band__phone {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.site-search-form {
    display: flex;
    width: 100%;
    min-width: 0;
}

.site-search-form input {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 1px solid rgba(9, 20, 38, 0.28);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    padding: 0 1rem;
    color: #091426;
    background: #fff;
    font: inherit;
    outline: none;
}

.site-search-form input:focus {
    border-color: var(--midland-orange);
    box-shadow: inset 0 0 0 1px var(--midland-orange);
}

.site-search-form button {
    position: relative;
    width: 56px;
    min-width: 56px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(9, 20, 38, 0.28);
    border-radius: 0 8px 8px 0;
    color: #091426;
    background: #fff;
    cursor: pointer;
}

.site-search-form button:hover,
.site-search-form button:focus-visible {
    color: #fff;
    background: var(--midland-orange);
    border-color: var(--midland-orange);
}

.page-wrapper {
    max-width: 1500px;
    padding: clamp(3.25rem, 6vw, 6.25rem) clamp(1rem, 4vw, 4.5rem);
}

.page-wrapper--home {
    padding-top: clamp(3rem, 5vw, 5.2rem);
}

.content-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: clamp(2rem, 4vw, 4.5rem);
}

.content-layout--single {
    max-width: 980px;
}

.content-main {
    background: transparent;
}

.content-sidebar {
    top: calc(var(--header-height, 106px) + 1.5rem);
}

.prose {
    max-width: 940px;
    color: #26364a;
    font-size: 1.05rem;
}

.prose p {
    color: #34445a;
}

.prose h2,
.faq-index__group h2,
.glossary-index__letter-group h2,
.directory-category__subcategories h2,
.directory-category__listings h2,
.search-page h2 {
    margin: 2.4rem 0 1rem;
    color: #102542;
    font-size: 2.35rem;
    font-weight: 300;
    line-height: 1.16;
}

.prose h3 {
    color: #122944;
    font-size: 1.28rem;
    font-weight: 650;
}

.home-intro > h2:first-child {
    margin-top: 0;
    max-width: 850px;
    font-size: 3.85rem;
}

.home-intro > p {
    max-width: 860px;
    color: #41516a;
    font-size: 1.22rem;
}

.pull-quote {
    position: relative;
    margin: clamp(2rem, 4vw, 3.5rem) 0;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-left: 6px solid var(--midland-orange);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(9, 20, 38, 0.08);
}

.pull-quote::before {
    content: '“';
    position: absolute;
    top: -0.4rem;
    right: 1.1rem;
    color: rgba(255, 153, 0, 0.18);
    font-size: 8rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.pull-quote p {
    position: relative;
    margin: 0;
    color: #102542;
    font-size: 1.55rem;
    line-height: 1.38;
}

.home-card-grid,
.directory-root__grid,
.directory-listing-grid,
.case-study-index__grid,
.proof-index__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: clamp(2rem, 4vw, 3.5rem) 0 0;
}

.feature-card,
.directory-category-card,
.directory-listing-card,
.case-study-card,
.proof-card,
.search-result-card {
    display: block;
    min-height: 100%;
    padding: clamp(1.2rem, 2.4vw, 1.85rem);
    color: #132238;
    background: #fff;
    border: 1px solid rgba(12, 45, 79, 0.11);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(9, 20, 38, 0.07);
    text-decoration: none;
}

.feature-card {
    border-top: 4px solid var(--midland-orange);
}

.feature-card span,
.search-result-card__label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #0f58a8;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.feature-card h2,
.directory-category-card h2,
.directory-category-card h3,
.directory-listing-card h2,
.directory-listing-card h3,
.case-study-card h2,
.proof-card h2,
.search-result-card h2 {
    margin: 0 0 0.7rem;
    color: #102542;
    font-size: 1.55rem;
    font-weight: 350;
    line-height: 1.18;
}

.feature-card p,
.directory-category-card p,
.directory-listing-card p,
.case-study-card p,
.proof-card p,
.search-result-card p {
    margin: 0;
    color: #4d5e75;
    font-size: 0.98rem;
}

.directory-category-card:hover,
.directory-listing-card:hover {
    box-shadow: 0 20px 48px rgba(9, 20, 38, 0.13);
    transform: translateY(-2px);
}

.directory-listing-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.directory-category__description,
.directory-listing__description,
.glossary-term__short-def,
.case-study__summary,
.proof-entry__summary {
    color: #41516a;
    font-size: 1.22rem;
    line-height: 1.58;
}

.directory-listing__image {
    width: min(100%, 680px);
    max-width: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(9, 20, 38, 0.12);
}

.directory-listing__fields {
    border: 1px solid rgba(12, 45, 79, 0.11);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(9, 20, 38, 0.06);
}

.faq-index__list,
.glossary-index__list {
    background: #fff;
    border: 1px solid rgba(12, 45, 79, 0.1);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(9, 20, 38, 0.06);
}

.faq-index__list li,
.glossary-index__list li {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e5edf6;
}

.faq-index__list li:first-child,
.glossary-index__list li:first-child {
    border-top: 0;
}

.faq-index__list li:last-child,
.glossary-index__list li:last-child {
    border-bottom: 0;
}

.faq-index__list a,
.glossary-index__list a,
.case-study-card a,
.proof-card a,
.search-result-card a {
    color: #0c2d4f;
    text-decoration: none;
}

.faq-index__list a:hover,
.glossary-index__list a:hover,
.case-study-card a:hover,
.proof-card a:hover,
.search-result-card a:hover {
    color: #0f58a8;
    text-decoration: underline;
}

.glossary-term__aka {
    display: inline-block;
    margin: 0 0 1.2rem;
    padding: 0.45rem 0.7rem;
    color: #0c2d4f;
    background: rgba(56, 185, 218, 0.12);
    border: 1px solid rgba(56, 185, 218, 0.24);
    border-radius: 6px;
}

.glossary-term__related ul,
.topic-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.glossary-term__related a,
.topic-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 0.8rem;
    color: #0c2d4f;
    background: #fff;
    border: 1px solid rgba(12, 45, 79, 0.12);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(9, 20, 38, 0.05);
}

.btn,
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
}

.btn--primary,
.cta-btn {
    color: #091426;
    background: var(--midland-orange);
}

.btn--primary:hover,
.btn--primary:focus-visible,
.cta-btn:hover,
.cta-btn:focus-visible {
    color: #091426;
    background: #ffb347;
}

.btn--outline {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    color: #091426;
    border-color: #fff;
    background: #fff;
}

.sidebar-block {
    overflow: hidden;
    margin-bottom: 1.1rem;
    padding: 1.45rem;
    background: #fff;
    border: 1px solid rgba(12, 45, 79, 0.1);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(9, 20, 38, 0.07);
}

.sidebar-block__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    color: #091426;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.sidebar-block__title::before {
    content: '';
    width: 0.42rem;
    height: 1.5rem;
    display: inline-block;
    border-radius: 999px;
    background: var(--midland-orange);
}

.sidebar-block--search .sidebar-block__title::after {
    content: none;
}

.sidebar-block__body {
    color: #43556d;
}

.sidebar-block__body p:last-child {
    margin-bottom: 0;
}

.sidebar-block__links {
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.sidebar-block__links a {
    color: #0c2d4f;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-block__links a:hover,
.sidebar-block__links a:focus-visible {
    color: #0f58a8;
    text-decoration: underline;
}

.sidebar-block__link-description {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.82rem;
}

.sidebar-block__photo-wrap {
    text-align: center;
    margin-bottom: 0.75rem;
}

.sidebar-block__photo {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-block__image {
    width: calc(100% + 2.9rem);
    max-width: none;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    margin: -1.45rem -1.45rem 1.1rem;
}

.sidebar-block--contact {
    color: #fff;
    background: linear-gradient(145deg, #07101c, #0c2d4f 62%, #145f9f);
    border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-block--contact .sidebar-block__title,
.sidebar-block--contact .sidebar-block__body {
    color: #fff;
}

.sidebar-block--contact .cta-btn {
    width: 100%;
}

.sidebar-block--feature-photo {
    padding-bottom: 1.3rem;
}

.search-page {
    max-width: 920px;
}

.site-search-form--page {
    margin-bottom: 2rem;
}

.site-search-form--page input {
    height: 58px;
    font-size: 1.06rem;
}

.site-search-form--page button {
    width: 64px;
    min-width: 64px;
    height: 58px;
}

.search-page__empty {
    padding: clamp(1.5rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid rgba(12, 45, 79, 0.1);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(9, 20, 38, 0.06);
}

.search-page__empty h2 {
    margin-top: 0;
}

.search-results__count {
    margin-bottom: 1rem;
    color: #52627a;
    font-weight: 700;
}

.search-result-card {
    margin-bottom: 1rem;
}

.site-footer {
    margin-top: 0;
    padding: 3.5rem 0 1.6rem;
    color: rgba(255, 255, 255, 0.74);
    background: #06111f;
    border-top: 0;
}

.site-footer__inner {
    max-width: 1500px;
    padding: 0 clamp(1rem, 4vw, 4.5rem);
}

.site-footer__brand-name,
.site-footer__col-heading {
    color: #fff;
}

.site-footer__tagline,
.site-footer__contact a,
.site-footer__bottom {
    color: rgba(255, 255, 255, 0.68);
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
    color: var(--midland-orange);
}

.site-footer__bottom {
    border-top-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1220px) {
    .site-header__phone {
        display: none;
    }
}

@media (max-width: 1400px) {
    .page-hero__title {
        font-size: 4.85rem;
    }

    .page-hero--interior .page-hero__title {
        font-size: 4.55rem;
    }

    .home-intro > h2:first-child {
        font-size: 3.25rem;
    }
}

@media (max-width: 1100px) {
    .site-header {
        height: 82px;
    }

    body {
        padding-top: 82px;
    }

    .nav-hamburger {
        display: flex !important;
        width: 44px;
        min-width: 44px;
        height: 44px;
        align-items: center;
        margin-left: auto;
        border: 1px solid rgba(12, 45, 79, 0.16);
        border-radius: 8px;
        background: #fff;
    }

    .nav-hamburger__label {
        display: none;
    }

    .site-nav {
        display: none;
        position: fixed;
        top: 82px;
        left: 0;
        right: 0;
        padding: 1.15rem clamp(1rem, 4vw, 2rem);
        background: #fff;
        border-bottom: 1px solid rgba(12, 45, 79, 0.12);
        box-shadow: 0 18px 40px rgba(9, 20, 38, 0.14);
        z-index: 99;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-dropdown {
        position: static;
        min-width: 0;
        padding: 0.5rem 0 0 1rem;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .site-header__search {
        width: 44px;
        height: 44px;
    }

    .page-hero__inner {
        grid-template-columns: 1fr;
    }

    .page-hero__title,
    .page-hero--interior .page-hero__title {
        font-size: 3.85rem;
    }

    .page-hero__lede {
        font-size: 1.18rem;
    }

    .search-band__kicker {
        font-size: 1.28rem;
    }

    .search-band__phone {
        font-size: 1.48rem;
    }

    .page-hero__visual {
        min-height: 300px;
        justify-content: flex-start;
    }

    .page-hero__visual img {
        width: min(100%, 520px);
    }

    .page-hero__note {
        right: auto;
        width: min(100%, 520px);
    }

    .search-band__inner {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .search-band__phone {
        justify-self: start;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .site-header {
        height: 76px;
    }

    body {
        padding-top: 76px;
    }

    .site-header__inner {
        padding-inline: 1rem;
    }

    .site-logo__image {
        width: min(60vw, 220px);
    }

    .site-nav {
        top: 76px;
    }

    .site-header__tools {
        gap: 0.5rem;
    }

    .site-header__search {
        display: none;
    }

    .breadcrumb-band {
        display: none;
    }

    .page-hero__inner {
        padding: 2.35rem 1rem;
    }

    .page-hero__eyebrow {
        margin-bottom: 1.2rem;
        font-size: 0.72rem;
    }

    .page-hero__eyebrow::before {
        width: 30px;
    }

    .page-hero__title,
    .page-hero--interior .page-hero__title {
        font-size: 2.18rem;
        line-height: 1.12;
        text-wrap: pretty;
    }

    .page-hero__lede {
        margin-top: 1.25rem;
        font-size: 1.05rem;
        overflow-wrap: break-word;
    }

    .page-hero__actions {
        margin-top: 1.5rem;
    }

    .page-hero__visual {
        min-height: 210px;
        display: block;
    }

    .page-hero__note {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }

    .search-band__inner {
        padding: 1.2rem 1rem;
    }

    .search-band__kicker {
        font-size: 1.08rem;
    }

    .search-band__phone {
        font-size: 1.28rem;
    }

    .home-card-grid,
    .directory-root__grid,
    .directory-listing-grid,
    .case-study-index__grid,
    .proof-index__grid {
        grid-template-columns: 1fr;
    }

    .page-wrapper {
        padding: 2.35rem 1rem;
    }

    .prose h2,
    .faq-index__group h2,
    .glossary-index__letter-group h2,
    .directory-category__subcategories h2,
    .directory-category__listings h2,
    .search-page h2 {
        font-size: 1.8rem;
    }

    .home-intro > h2:first-child {
        font-size: 2rem;
    }
}

@media (max-width: 430px) {
    .page-hero__title,
    .page-hero--interior .page-hero__title {
        font-size: 2.35rem;
    }

    .site-header__search {
        display: none;
    }
}
