:root {
    color-scheme: light;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
}

.site-logo {
    display: block;
    width: auto;
    height: 1.875rem;
    flex: 0 0 auto;
}

.platform-intro {
    overflow: hidden;
    background-image: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
}

.status-panel {
    background: #eef5ff;
    border: 1px solid #cfe2ff;
}

.section-heading {
    max-width: 48rem;
}

.discipline-card,
.service-panel,
.contact-panel {
    scroll-margin-top: 1.5rem;
}

.discipline-card {
    position: relative;
    overflow: hidden;
}

.discipline-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 0.3rem;
    content: "";
}

.discipline-card-software::before {
    background: #0d6efd;
}

.discipline-card-electronics::before {
    background: #198754;
}

.discipline-card-3d-print::before {
    background: #6f42c1;
}

.discipline-card-software .discipline-label {
    color: #0d6efd;
}

.discipline-card-electronics .discipline-label {
    color: #146c43;
}

.discipline-card-3d-print .discipline-label {
    color: #6f42c1;
}

.discipline-list {
    padding-left: 1.2rem;
}

.discipline-list li + li {
    margin-top: 0.45rem;
}

.service-panel {
    background-image: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.contact-panel {
    background: linear-gradient(135deg, #172033 0%, #223a62 100%);
    color: #ffffff;
}

.contact-panel > .row > div > .text-uppercase {
    color: #9ec5fe;
}

.contact-note {
    border: 1px solid rgb(255 255 255 / 20%);
    background: rgb(255 255 255 / 9%);
}

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

.contact-portrait {
    display: block;
    width: 50%;
    max-width: 15rem;
    height: auto;
    margin-inline: auto;
}

.home-contact-image {
    display: block;
    width: 50%;
    max-width: 15rem;
    height: auto;
    margin-inline: auto;
}

.page-header {
    max-width: 58rem;
}

.content-section {
    scroll-margin-top: 1.5rem;
    margin-bottom: 3.5rem;
}

.content-section > h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.content-section p,
.content-section li,
.guide-definitions dd {
    line-height: 1.7;
}

.guide-navigation,
.source-panel {
    padding: 1.5rem;
    border: 1px solid #dfe4ea;
    border-radius: 1rem;
    background: #ffffff;
}

.guide-navigation a {
    display: block;
    padding: 0.45rem 0;
    text-decoration: none;
}

.guide-navigation a:hover,
.guide-navigation a:focus {
    text-decoration: underline;
}

.guide-callout {
    padding: 1.25rem 1.5rem;
    border-left: 0.35rem solid #0d6efd;
    border-radius: 0.5rem;
    background: #eef5ff;
}

.guide-callout-warning {
    border-left-color: #f0ad4e;
    background: #fff7e8;
}

.guide-callout-neutral {
    border-left-color: #6c757d;
    background: #f1f3f5;
}

.guide-steps li,
.guide-checklist li {
    margin-bottom: 0.6rem;
    padding-left: 0.25rem;
}

.guide-definitions dt,
.guide-definitions dd {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

pre {
    margin: 1.25rem 0;
    padding: 1.25rem;
    overflow-x: auto;
    border: 1px solid #2c374b;
    border-radius: 0.75rem;
    background: #172033;
    color: #f8f9fa;
}

pre code {
    color: inherit;
    white-space: pre;
}

.feature-item {
    padding: 1rem;
    border: 1px solid #dfe4ea;
    border-radius: 0.75rem;
    background: #ffffff;
}

.download-panel {
    background: #f7f9fc;
}

.usage-notice {
    border-color: #d7e3f4 !important;
    background: #f6f9fd;
}

.legal-page {
    max-width: 58rem;
    margin-inline: auto;
}

.program-actions {
    min-width: 13rem;
}

.program-statistic {
    min-width: 8.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d7e3f4;
    border-radius: 0.75rem;
    background: #f6f9fd;
}

.program-statistic strong,
.program-statistic span {
    display: block;
}

.program-statistic strong {
    font-size: 1.35rem;
    line-height: 1.2;
}

.program-statistic span {
    margin-top: 0.2rem;
    color: #5c6678;
    font-size: 0.875rem;
}

.footer-link {
    color: inherit;
    text-decoration: none;
}

.footer-link:hover,
.footer-link:focus {
    color: #0d6efd;
    text-decoration: underline;
}

.error-panel {
    max-width: 42rem;
    padding-block: 4rem;
}

@media (max-width: 575.98px) {
    pre {
        margin-inline: -0.5rem;
        padding: 1rem;
        border-radius: 0.5rem;
        font-size: 0.82rem;
    }
}
