@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../fonts/NHaasGroteskTXPro-55Rg.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../fonts/NHaasGroteskTXPro-75Bd.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* Base styles scoped to .container to avoid affecting navbar/footer */
.main-wrapper > .container {
    font-family: 'Neue Haas Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: #e8e8e8;
    color: #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.container header {
    text-align: left;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-top: 3px double #1a1a1a;
    border-bottom: 3px double #1a1a1a;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
    align-items: center;
}

.container header .header-text {
    grid-column: 1;
}

.container header .header-image {
    grid-column: 2;
    width: 200px;
    height: 200px;
    border: 2px solid #1a1a1a;
    background-color: #c8c8c8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container h1 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.container h2 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 0.5rem;
}

.container h3 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.container p {
    font-weight: 400;
    font-size: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: #555;
    font-weight: 400;
}

.container section {
    margin-bottom: 4rem;
    position: relative;
}

.container section::before {
    content: attr(data-section);
    position: absolute;
    top: -1.5rem;
    right: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.1em;
}

.intro {
    font-size: 1.125rem;
    line-height: 1.8;
    text-align: left;
    color: #2a2a2a;
    background-color: #e8e8e8;
    padding: 2rem;
    border: 2px solid #1a1a1a;
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 2rem;
    align-items: center;
}

.intro p {
    grid-column: 1;
}

.intro-image {
    grid-column: 2;
    width: 150px;
    height: 150px;
    border: 2px solid #1a1a1a;
    background-color: #c8c8c8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-intro {
    color: #555;
    margin-bottom: 2rem;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    background-color: #e8e8e8;
    padding: 2rem;
    border: 1px solid #a0a0a0;
}

.container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-family: 'JetBrains Mono', monospace;
}

.container thead {
    background-color: transparent;
}

.container th {
    text-align: left;
    padding: 1rem;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
    border-bottom: 2px solid #999;
}

.container td {
    padding: 1rem;
    border-bottom: 1px solid #b0b0b0;
    color: #1a1a1a;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.container tbody tr {
    background-color: transparent;
}

.container tbody tr:hover {
    background-color: #d8d8d8;
}

/* Status badges */
.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.status.passed {
    background-color: transparent;
    color: #006600;
    border-color: #006600;
}

.status.active {
    background-color: transparent;
    color: #cc8800;
    border-color: #cc8800;
}

.status.rejected {
    background-color: transparent;
    color: #cc0000;
    border-color: #cc0000;
}

/* Links */
.container a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

.container a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.cta-link {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.875rem;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s;
}

.cta-link:hover {
    background-color: #1a1a1a;
    color: #e8e8e8;
    text-decoration: none;
}

/* AIP Types */
.aip-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.aip-type {
    padding: 1.5rem;
    background-color: #e8e8e8;
    border: 2px solid #1a1a1a;
}

.aip-type h3 {
    margin-bottom: 0.5rem;
}

.aip-type p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* Process Steps */
.how-it-works {
    background-color: #e8e8e8;
    padding: 3rem 2rem;
    border: 2px solid #1a1a1a;
    margin-top: 4rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* Page footer (inside content, not the site footer) */
.container > footer {
    text-align: center;
    padding-top: 3rem;
    margin-top: 4rem;
    border-top: 3px double #1a1a1a;
    padding-bottom: 2rem;
    color: #555;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    .container h1 {
        font-size: 2rem;
    }

    .container h2 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1rem;
    }

    .container table {
        font-size: 0.875rem;
    }

    .container th, .container td {
        padding: 0.75rem 0.5rem;
    }

    .how-it-works {
        padding: 2rem 1rem;
    }

    .container header {
        grid-template-columns: 1fr;
    }

    .header-image {
        display: none;
    }

    .intro {
        grid-template-columns: 1fr;
    }

    .intro-image {
        display: none;
    }
}
