/* Global Variables & Themes */
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme Variables (Light Mode Only) */
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --accent: #f26f3e;
    --accent-dark: #c2410c;
    --accent-glow: rgba(242, 111, 62, 0.15);
    --bg-app: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-main: #334155;
    --text-muted: #526071;
    --text-heading: #0f172a;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
    --highlight-bg: rgba(29, 78, 216, 0.06);
    --badge-bg: rgba(242, 111, 62, 0.1);

    /* Theme Transition */
    --transition-speed: 0.3s;
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 600;
}

/* App Bar styling (Hidden in Print) */
.app-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: clamp(0.55rem, 1.5vw, 0.85rem) clamp(0.75rem, 4vw, 2rem);
    transition: background var(--transition-speed), border var(--transition-speed);
}

.app-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.app-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.05rem, 2.5vw, 1.4rem);
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-heading);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.app-logo:hover {
    opacity: 0.85;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.1em;
}

.accent-text {
    color: var(--accent);
}

.app-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.control-btn {
    background: transparent;
    border: none;
    color: #475569;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.2;
    letter-spacing: -0.005em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
    box-shadow: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    min-height: 40px;
}

.control-btn:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

.control-btn:active {
    transform: scale(0.97);
}

.control-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

.control-btn i {
    font-size: 0.95em;
    color: currentColor;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.control-btn:hover i {
    opacity: 1;
}

.primary-btn {
    background: var(--primary);
    color: #ffffff;
    padding: 0.55rem 1.1rem;
    box-shadow: 0 1px 2px rgba(29, 78, 216, 0.2);
}

.primary-btn:hover {
    background: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}

.primary-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.3);
}

.primary-btn i,
.primary-btn:hover i {
    color: #ffffff;
    opacity: 1;
}

.contact-btn-link {
    text-decoration: none;
}

/* Tooltip & Cert Row Custom Styles */
.print-tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.print-tooltip {
    visibility: hidden;
    width: 250px;
    background-color: var(--bg-card);
    color: var(--text-main);
    text-align: center;
    border-radius: var(--border-radius-md);
    padding: 0.5rem 0.75rem;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    pointer-events: none;
    line-height: 1.3;
}

.print-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 25px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--border-color) transparent transparent transparent;
}

.print-tooltip-container:hover .print-tooltip {
    visibility: visible;
    opacity: 1;
}

.cert-row-val {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.3rem;
    margin-top: 0.1rem;
}

/* Page Layout */
.page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Banner Design */
.banner-section {
    background: linear-gradient(135deg, rgba(42, 111, 219, 0.1), rgba(255, 183, 3, 0.05));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.banner-header-flex {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
}



.badge {
    display: inline-block;
    background-color: var(--badge-bg);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    border: 1px solid var(--accent-glow);
}

.main-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.15rem;
}

.quick-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.25rem 1rem;
    box-shadow: var(--shadow-sm);
    gap: 0.75rem;
}

.highlight-item {
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.highlight-item:last-child {
    border-right: none;
}

.highlight-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.highlight-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Content Grid split into sidebar and main body */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

/* Cards System */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow var(--transition-speed) ease, 
                border-color var(--transition-speed) ease;
}

.card:hover {
    border-color: rgba(42, 111, 219, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.section-icon {
    color: var(--primary);
}

/* Sidebar Specific Styles */
.sidebar {
    display: flex;
    flex-direction: column;
}

.code-font {
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.4rem;
}

.data-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.data-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.data-value-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-value {
    color: var(--text-heading);
    font-size: 0.9rem;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.copy-btn:hover {
    color: var(--accent);
    background: rgba(255, 183, 3, 0.1);
    transform: scale(1.1);
}

/* NAICS Section inside Sidebar */
.naics-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.naics-title {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.naics-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.naics-item.primary {
    border-left: 3px solid var(--primary);
    background: var(--highlight-bg);
}

.naics-code {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.85rem;
}

.naics-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    line-height: 1.3;
}

/* Certifications Listing */
.cert-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.cert-list li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
}

.badge-icon {
    color: var(--accent);
    font-size: 0.8rem;
}

.cert-number {
    font-size: 0.78rem;
    color: var(--primary);
    margin-left: 1.3rem;
}

.cert-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: 1.3rem;
}

/* Contact List styling */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.item-icon {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 0.2rem;
    width: 18px;
    text-align: center;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-val, .contact-link {
    font-size: 0.85rem;
    color: var(--text-heading);
    font-weight: 500;
    text-decoration: none;
}

.contact-sub-role {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.05rem;
}

.contact-link {
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Main Content Styling */
.main-body {
    display: flex;
    flex-direction: column;
}

.section-heading {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
}

.overview-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-align: justify;
}

.overview-text:last-of-type {
    margin-bottom: 0;
}

/* Locations Badge layout */
.locations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.loc-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--highlight-bg);
    color: var(--primary);
    padding: 0.35rem 0.7rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

/* Core Capabilities Grids */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.cap-card {
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    transition: all 0.2s ease;
}

.cap-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.full-width-cap {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.full-width-cap h3 {
    margin-bottom: 0.2rem;
}

.cap-icon-box {
    width: 34px;
    height: 34px;
    background: var(--highlight-bg);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.6rem;
    flex-shrink: 0;
}

.full-width-cap .cap-icon-box {
    margin-bottom: 0;
}

.cap-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.cap-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Differentiators & What Sets Us Apart */
.differentiators-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.diff-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.diff-bullet {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.diff-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: var(--text-heading);
}

.diff-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Turnkey Quote Blockquote */
.turnkey-quote {
    margin-top: 0.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--highlight-bg), rgba(255, 183, 3, 0.03));
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    font-style: italic;
    color: var(--text-heading);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* Past Performance & Clients (Tightened Grid) */
.performance-grid-tight {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.perf-bullet-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--bg-app);
    align-items: center;
}

.perf-bullet-tag {
    background: var(--primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 0.4rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perf-bullet-desc {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    color: var(--text-main);
}

/* Footer Section */
.footer-section {
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 0;
    text-align: center;
    background: var(--bg-app);
    margin-top: 2.5rem;
}

.footer-container p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Custom Notification Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    transform: translateY(0);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quick-highlights.four-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .highlight-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
    }
    
    .highlight-item:nth-child(even) {
        border-right: none;
    }
    
    .highlight-item:nth-child(3),
    .highlight-item:nth-child(4) {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 600px) {
    .main-title {
        font-size: 1.8rem;
    }

    .banner-section {
        padding: 1.5rem;
    }

    .banner-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .quick-highlights.four-columns {
        grid-template-columns: 1fr;
    }

    .highlight-item {
        border-bottom: 1px solid var(--border-color) !important;
        padding-bottom: 0.5rem !important;
    }

    .highlight-item:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    /* App bar: centered logo row + full-width segmented control below */
    .app-bar-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .app-logo {
        justify-content: center;
    }

    .app-controls {
        display: flex;
        width: 100%;
    }

    .control-btn,
    .print-tooltip-container {
        flex: 1 1 0;
        min-width: 0;
    }

    .print-tooltip-container .control-btn {
        width: 100%;
    }

    .control-btn {
        padding: 0.7rem 0.5rem;
        min-height: 44px;
        font-size: 0.875rem;
    }

    /* "/ Save PDF" suffix collapses on phones; print button keeps just "Print" */
    .hide-on-mobile {
        display: none;
    }

    /* Hover tooltip is desktop-only (no hover on touch) */
    .print-tooltip {
        display: none;
    }
}

/* Funding Grids & Items */
.funding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.funding-item {
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.funding-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.funding-tag {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.funding-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* PRINT STYLESHEET (Meticulously crafted for physical/PDF outputs) */
@media print {
    /* Set page specifications */
    @page {
        size: letter;
        margin: 0.25in 0.25in;
    }

    body {
        background-color: #ffffff !important;
        color: #111111 !important;
        font-size: 7.8pt !important;
        line-height: 1.3 !important;
    }

    /* Force Light Mode variables for print ink saving */
    :root {
        --primary: #1d4ed8 !important;
        --accent: #b45309 !important;
        --bg-app: #ffffff !important;
        --bg-card: #ffffff !important;
        --text-main: #222222 !important;
        --text-muted: #555555 !important;
        --text-heading: #000000 !important;
        --border-color: #cccccc !important;
        --highlight-bg: #f3f4f6 !important;
        --badge-bg: #fef3c7 !important;
    }

    /* Hide elements not needed in printed PDF */
    .no-print,
    .copy-btn,
    #copy-toast,
    header,
    footer,
    #theme-toggle,
    #print-btn,
    .print-tooltip {
        display: none !important;
    }

    .page-container {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* Print Header Banner */
    .banner-section {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
        border: 2px solid #1d4ed8 !important;
        border-radius: 6px !important;
        background: #f8fafc !important;
        box-shadow: none !important;
    }

    .banner-section::before {
        display: none !important;
    }

    .banner-grid {
        display: grid;
        grid-template-columns: 1.4fr 1fr !important;
        gap: 1rem !important;
        align-items: center !important;
    }

    .banner-header-flex {
        gap: 1rem !important;
        margin-top: 0.25rem !important;
    }



    .main-title {
        font-size: 16pt !important;
        color: #1d4ed8 !important;
        margin-bottom: 0.15rem !important;
    }

    .tagline {
        font-size: 8pt !important;
        color: #333333 !important;
    }

    .quick-highlights {
        padding: 0.4rem !important;
        background: #ffffff !important;
        border: 1px solid #cccccc !important;
        gap: 0.4rem !important;
    }

    .highlight-item {
        border-right: 1px solid #dddddd !important;
    }

    .highlight-num {
        font-size: 11pt !important;
    }

    .highlight-label {
        font-size: 5.5pt !important;
        margin-top: 0.1rem !important;
    }

    /* Rearrange Grid for 2-column print layout */
    .content-grid {
        display: grid;
        grid-template-columns: 1.15fr 1.85fr !important;
        gap: 0.75rem !important;
    }

    /* Compact Cards for Print */
    .card {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        border: 1px solid #cccccc !important;
        background: #ffffff !important;
        border-radius: 4px !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
    }

    .card-title,
    .section-heading {
        font-size: 9.5pt !important;
        margin-bottom: 0.5rem !important;
        padding-bottom: 0.2rem !important;
        border-bottom: 1.5px solid #1d4ed8 !important;
    }

    .data-list {
        gap: 0.35rem !important;
    }

    .data-row {
        padding-bottom: 0.2rem !important;
    }

    .data-value {
        font-size: 8pt !important;
    }

    .naics-section {
        margin-top: 0.75rem !important;
        padding-top: 0.75rem !important;
    }

    .naics-title {
        font-size: 7.5pt !important;
        margin-bottom: 0.4rem !important;
    }

    .naics-item {
        margin-bottom: 0.35rem !important;
        padding: 0.3rem 0.5rem !important;
        background: #ffffff !important;
        border: 1px solid #dddddd !important;
    }

    .naics-item.primary {
        border-left: 2.5px solid #1d4ed8 !important;
        background: #f3f4f6 !important;
    }

    .naics-code {
        font-size: 8pt !important;
    }

    .naics-label {
        font-size: 6.5pt !important;
    }

    /* Compact lists */
    .cert-list {
        gap: 0.4rem !important;
    }

    .cert-list li {
        gap: 0.05rem !important;
    }

    .cert-header {
        font-size: 7.5pt !important;
    }

    .cert-number, .cert-sub {
        font-size: 7pt !important;
        margin-left: 0.5rem !important;
    }

    .contact-details {
        gap: 0.4rem !important;
    }

    .contact-item {
        gap: 0.4rem !important;
    }

    .contact-val, .contact-link {
        font-size: 7.5pt !important;
    }

    .contact-sub-role {
        font-size: 6.5pt !important;
    }

    /* Overview, Capabilities & Past Performance */
    .overview-text {
        font-size: 8pt !important;
        margin-bottom: 0.4rem !important;
    }

    .locations-grid {
        margin-top: 0.5rem !important;
        gap: 0.4rem !important;
    }

    .loc-badge {
        padding: 0.25rem 0.5rem !important;
        font-size: 7pt !important;
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
    }

    .cap-card {
        padding: 0.5rem !important;
        background: #ffffff !important;
        border: 1px solid #dddddd !important;
    }

    .cap-icon-box {
        display: none !important; /* Hide icon box on print to fit text */
    }

    .cap-card h3 {
        font-size: 8pt !important;
        color: #1d4ed8 !important;
        margin-bottom: 0.15rem !important;
    }

    .cap-card p {
        font-size: 7pt !important;
        line-height: 1.3 !important;
    }

    .full-width-cap {
        gap: 0 !important;
        padding: 0.5rem !important;
    }

    .full-width-cap h3 {
        font-size: 8pt !important;
        color: #1d4ed8 !important;
    }

    .diff-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .differentiators-list {
        gap: 0.75rem !important;
    }

    .diff-item {
        gap: 0.4rem !important;
    }

    .diff-bullet {
        font-size: 7.5pt !important;
        color: #b45309 !important;
    }

    .diff-item h4 {
        font-size: 8pt !important;
    }

    .diff-item p {
        font-size: 7.5pt !important;
    }

    .turnkey-quote {
        margin-top: 0.25rem !important;
        padding: 0.75rem !important;
        font-size: 8.5pt !important;
    }

    .performance-grid-tight {
        gap: 0.35rem !important;
    }

    .perf-bullet-item {
        grid-template-columns: 80px 1fr !important;
        border: 1px solid #cccccc !important;
        background: #ffffff !important;
    }

    .perf-bullet-tag {
        font-size: 6.5pt !important;
        padding: 0.25rem !important;
        background: #1d4ed8 !important;
    }

    .perf-bullet-desc {
        padding: 0.35rem 0.6rem !important;
        font-size: 7.5pt !important;
    }

    .funding-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
        margin-top: 0.5rem !important;
    }

    .funding-item {
        padding: 0.5rem !important;
        background: #ffffff !important;
        border: 1px solid #cccccc !important;
        border-radius: 4px !important;
        box-shadow: none !important;
    }

    .funding-tag {
        font-size: 8pt !important;
        color: #1d4ed8 !important;
        margin-bottom: 0.2rem !important;
    }

    .funding-desc {
        font-size: 7.5pt !important;
        line-height: 1.3 !important;
    }
}
