/* --- Skip Navigation Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background-color: #000000;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* --- Screen-Reader-Only Content --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Core Layout & Master Sheet Theme --- */
body {
    background-color: #ffffff;
    color: #212529;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 20px;
}

.meta-data, table, code, pre, .spec-number, .nav-links {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 14px;
}

header {
    background-color: #000000;
    border-bottom: 1px solid #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 25px;
    text-decoration: none;
    position: relative;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    position: relative;
}

.logo-tm {
    position: absolute;
    bottom: 0;
    right: -8px;
    font-size: 8px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1;
}

.company-name {
    color: #ffffff;
    font-size: 55px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #adb5bd;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

h1, h2, h3 {
    scroll-margin-top: 110px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

h2 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #212529;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 15px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

p {
    margin-bottom: 20px;
    font-size: 16px;
}

.meta-data {
    color: #6c757d;
    margin: 0 0 40px;
    line-height: 1.4;
}

/* Render each dt/dd pair on one line, matching the previous strong + br layout */
.meta-data dt {
    display: inline;
    font-weight: 700;
}

.meta-data dd {
    display: inline;
    margin: 0;
}

hr {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 45px 0;
}

ul {
    margin: 0 0 25px 0;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
    font-size: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 5px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(15%);
}

.gallery-label {
    font-family: monospace;
    font-size: 11px;
    color: #6c757d;
    padding: 8px 5px;
    text-transform: uppercase;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    text-align: left;
}

th {
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid #212529;
    padding: 10px;
    background-color: #f8f9fa;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
    font-size: 15px;
}

blockquote {
    margin: 30px 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #495057;
    font-size: 15px;
}

blockquote p {
    margin: 0;
}

/* --- Google Tag Manager (noscript) --- */
.gtm-noscript-iframe {
    display: none;
    visibility: hidden;
}

/* --- Operational Parameters Table Columns --- */
.col-parameter {
    width: 25%;
}

.col-specification {
    width: 75%;
}

/* --- Domain Focus Nested List --- */
.domain-list {
    margin: 10px 0 0 0;
    padding-left: 15px;
    font-size: 14px;
}

/* --- 5.7 Technical Intake Panel --- */
.intake-panel {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.intake-protocol {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.intake-protocol-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #d9534f;
    display: block;
    margin-bottom: 5px;
}

.intake-protocol-text {
    font-size: 13px;
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

.intake-protocol-note {
    display: block;
    margin-top: 5px;
    font-style: italic;
    color: #6c757d;
}

.system-status {
    font-family: monospace;
    font-size: 12px;
    color: #2b8a3e;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.intake-contact {
    margin-bottom: 10px;
}

.intake-contact-label {
    font-size: 14px;
    text-transform: uppercase;
    display: block;
    color: #495057;
}

.intake-email {
    font-family: monospace;
    font-size: 18px;
    color: #000000;
    font-weight: 700;
    text-decoration: underline;
    letter-spacing: -0.5px;
}

/* --- Footer --- */
footer {
    background-color: #000000;
    color: #adb5bd;
    padding: 20px 20px;
    margin-top: 60px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 12px;
    text-align: center;
}

.footer-container {
    max-width: 850px;
    margin: 0 auto;
}

.footer-container p {
    margin: 0;
}

footer address {
    font-style: normal;
}

footer address a {
    color: inherit;
    text-decoration: none;
}

footer address a:hover,
footer address a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer-company {
    color: #ffffff;
    font-weight: bold;
}

.footer-copyright {
    margin: 10px 0 0;
    color: #495057;
}

/* --- Mobile Responsive Layout --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }

    .brand {
        gap: 15px;
        justify-content: center;
    }

    .logo-img {
        height: 50px;
    }

    .company-name {
        font-size: 30px;
    }

    .nav-links {
        justify-content: center;
        gap: 12px;
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 12px;
    }

    h1, h2, h3 {
        scroll-margin-top: 140px;
    }

    .container {
        padding: 30px 15px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        display: none;
    }

    td {
        border-bottom: 1px solid #dee2e6;
        padding: 10px 0;
    }

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