:root {
    --ink: #1b242c;
    --muted: #5e6973;
    --paper: #f3efe6;
    --sheet: #fffcf7;
    --line: #d9d1c3;
    --steel: #16384a;
    --steel-deep: #0e2836;
    --signal: #e24e12;
    --link: #0e4d73;
    --focus: #e24e12;
    --header-h: 4.25rem;
    --content: 90rem;
    --sans: "Source Sans 3", "Segoe UI", sans-serif;
    --display: "Oswald", "Arial Narrow", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.55;
}

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

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--signal);
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 20;
    padding: 0.5rem 0.75rem;
    background: var(--sheet);
    color: var(--ink);
}

.skip-link:focus {
    top: 0.5rem;
}

.site-header {
    position: relative;
    z-index: 10;
    background: var(--steel);
    color: #fff;
    border-bottom: 1px solid var(--steel-deep);
}

.header-inner,
.site-footer .footer-inner {
    max-width: var(--content);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-family: var(--display);
    text-decoration: none;
    line-height: 1;
}

.brand:hover {
    color: #fff;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--signal);
    font-size: 1.5rem;
    font-weight: 600;
}

.brand-name {
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.site-nav a,
.nav-details summary {
    color: #fff;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 0.45rem 0.7rem;
    transition: background-color 0.2s;
}

.site-nav a:hover,
.nav-details summary:hover,
.site-nav a.is-active,
.nav-details.is-active summary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-details {
    position: relative;
}

.nav-details summary {
    list-style: none;
    cursor: pointer;
}

.nav-details summary::-webkit-details-marker {
    display: none;
}

.nav-details summary::after {
    content: "";
    display: inline-block;
    margin-left: 0.4rem;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transform: translateY(2px);
}

.nav-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    min-width: 14rem;
    padding: 0.4rem;
    background: var(--sheet);
    border: 1px solid var(--line);
    display: grid;
}

.nav-panel a {
    color: var(--ink);
    border-bottom: 0;
    padding: 0.45rem 0.6rem;
}

.nav-panel a:hover,
.nav-panel a.is-active {
    color: var(--signal);
    background: #f6efe4;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

.page {
    flex: 1;
    width: 100%;
    max-width: var(--content);
    margin-inline: auto;
    padding: 1.25rem 1.25rem 2.5rem;
}

.layout {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

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

.side {
    position: sticky;
    top: 1.5rem;
}

.side-title {
    margin: 0 0 0.4rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.side-nav {
    display: grid;
    border-top: 1px solid var(--line);
}

.side-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.94rem;
    padding: 0.5rem 0.6rem;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--line);
    transition: padding-left 0.2s, background-color 0.2s, color 0.2s;
}

.side-nav a:hover,
.side-nav a.is-active {
    color: var(--signal);
    background: #fff;
    border-left-color: var(--signal);
    padding-left: 0.9rem;
}

.side-badge {
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

.site-footer {
    margin-top: auto;
    background: var(--steel-deep);
    color: #d5dde3;
    padding: 1.25rem 0;
    font-size: 0.95rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer a {
    color: #fff;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.92rem;
}

.crumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 0.45rem;
    color: #9aa097;
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--signal);
}

.page-head {
    margin-bottom: 1.5rem;
}

.page-head h1,
.sheet h1 {
    margin: 0 0 0.4rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    letter-spacing: 0.02em;
    line-height: 1.05;
    text-transform: uppercase;
}

.lead,
.page-head .meta {
    margin: 0;
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.15rem;
}

.page-head .meta {
    font-size: 1rem;
}

.hero {
    margin-bottom: 1rem;
    padding: 2.25rem 2rem;
    background: var(--steel);
    color: #fff;
}

.hero h1 {
    margin: 0 0 0.9rem;
    max-width: 38rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.truck-section-lead,
#panel-desc p {
    text-align: justify;
}

.hero .lead {
    color: #d5dde3;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-stats strong {
    color: var(--signal);
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
}

.catalog-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.catalog-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 16rem;
    padding: 1.4rem 1.5rem;
    background: var(--sheet);
    color: var(--ink);
    border: 1px solid var(--line);
    text-decoration: none;
}

.catalog-link:hover {
    color: var(--ink);
    border-color: var(--steel);
}

.catalog-link h2 {
    margin: 0.35rem 0;
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
}

.catalog-link p {
    margin: 0;
    max-width: 28rem;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--signal);
}

.home-articles {
    margin-top: 2rem;
}

.home-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-section-head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.home-articles .article-list {
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.home-articles .article-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.3rem 1.4rem;
}

.home-articles .article-card h2 {
    font-size: 1.35rem;
}

.home-articles .lead {
    font-size: 1rem;
}

.home-articles .article-more {
    align-self: flex-start;
    margin-top: auto;
}

.sheet {
    background: var(--sheet);
    border: 1px solid var(--line);
    padding: 1.5rem 1.6rem 2rem;
}

.maker-list {
    display: grid;
    padding-inline: 1.25rem;
    background: var(--sheet);
    border: 1px solid var(--line);
}

.maker-row {
    display: grid;
    grid-template-columns: 10rem 1fr 7.5rem;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.maker-row:last-child {
    border-bottom: 0;
}

.maker-row:hover {
    color: inherit;
}

.maker-row:hover h2 {
    color: var(--signal);
}

.maker-row h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

.maker-row p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.maker-count {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
    white-space: nowrap;
}

.maker-count strong {
    color: var(--signal);
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
}

.article-list {
    display: grid;
    gap: 1.25rem;
}

.article-card h2 {
    margin: 0.6rem 0 0.8rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.article-card h2 a {
    color: var(--ink);
    text-decoration: none;
}

.article-card h2 a:hover {
    color: var(--signal);
}

.article-card .lead {
    margin-bottom: 1rem;
}

.article-cover {
    display: block;
    max-width: 40rem;
    margin: 0 0 1rem;
    background: #f7f4ee;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-more {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--steel);
    color: var(--steel);
    font-weight: 600;
    text-decoration: none;
}

.article-more:hover {
    background: var(--steel);
    color: #fff;
}

.byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.9rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.page-head .byline {
    margin-bottom: 0.6rem;
}

.byline-avatar {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--steel);
    color: #fff;
    font-family: var(--display);
    font-size: 0.95rem;
}

.byline-author {
    color: var(--ink);
    font-weight: 600;
}

.logo-slot {
    width: 10rem;
    height: 4rem;
    aspect-ratio: 5 / 2;
    overflow: hidden;
    position: relative;
}

.logo-slot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
}

.logo-slot:has(img) .monogram {
    display: none;
}

.monogram {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 1.6rem;
    color: var(--steel);
}

.maker-top {
    display: grid;
    grid-template-columns: 12.5rem 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

.maker-top .page-head {
    margin-bottom: 0;
}

.maker-top .logo-slot {
    width: 12.5rem;
    height: 5rem;
}

.section-title {
    margin: 2rem 0 1rem;
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(16.5rem, (100% - 2rem) / 3)), 1fr));
    gap: 1rem;
}

.machine-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    min-height: 100%;
}

.machine-card:hover {
    color: inherit;
    border-color: var(--steel);
}

.machine-card h3 {
    margin: 0;
    padding: 0.75rem 0.85rem 0.35rem;
    font-size: 1.2rem;
}

.machine-card .frame {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f7f4ee;
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--muted);
    overflow: hidden;
}

.machine-card .frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spec-mini {
    margin: auto 0 0;
    font-size: 0.92rem;
}

.spec-mini > div,
.key-specs dl > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.1rem 0.75rem;
}

.spec-mini > div {
    padding: 0.28rem 0.85rem;
}

.spec-mini dt {
    color: var(--muted);
}

.spec-mini dd,
.key-specs dd {
    min-width: 0;
    margin: 0 0 0 auto;
    text-align: right;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.machine-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1rem;
}

.gallery {
    position: relative;
    background: #f7f4ee;
    border: 1px solid var(--line);
}

.gallery-slide {
    position: relative;
    display: none;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
}

.gallery-slide.is-active {
    display: grid;
}

.gallery-slide > .gallery-zoom,
.gallery-slide > img {
    position: absolute;
    inset: 0;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.machine-card .frame .machine-placeholder,
.gallery-slide .machine-placeholder {
    padding: 8%;
    background: #fff;
    object-fit: contain;
}

.gallery-arrow,
.tab-list button {
    font: inherit;
    cursor: pointer;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgb(255 252 247 / 0.92);
    color: var(--ink);
    transform: translateY(-50%);
}

.gallery-arrow:hover {
    background: var(--sheet);
    color: var(--signal);
}

.gallery-arrow svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-arrow--prev {
    left: 0.6rem;
}

.gallery-arrow--next {
    right: 0.6rem;
}

.gallery-zoom {
    display: block;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.gallery-zoom img {
    display: block;
}

.charts {
    display: grid;
    gap: 1.25rem;
}

.chart {
    margin: 0;
    padding: 1.25rem;
    border: 1px solid var(--line);
    background: #f7f4ee;
    text-align: center;
}

.chart .gallery-zoom {
    margin-inline: auto;
}

.chart img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 42rem;
    margin-inline: auto;
}

.lightbox-open {
    overflow: hidden;
}

.lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: none;
    max-height: none;
    overflow: visible;
}

.lightbox::backdrop {
    background: rgb(14 40 54 / 0.88);
}

.lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 82vh;
    background: var(--sheet);
}

.lightbox-close {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgb(255 255 255 / 0.45);
    border-radius: 50%;
    background: rgb(14 40 54 / 0.75);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-link {
    color: #fff;
    font-size: 0.95rem;
}

.lightbox-link:hover {
    color: #fff;
}

.placeholder {
    color: var(--muted);
    text-align: center;
    padding: 2rem 1rem;
}

.key-specs {
    border: 1px solid var(--line);
    background: #fff;
}

.key-specs h2 {
    margin: 0;
    padding: 0.7rem 0.9rem;
    background: var(--steel);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.key-specs dl {
    margin: 0;
}

.key-specs dl > div {
    padding: 0.55rem 0.9rem;
    border-top: 1px solid var(--line);
}

.key-specs dt {
    color: var(--muted);
}

.key-specs dd {
    font-weight: 700;
}

.key-specs .empty {
    padding: 0.9rem;
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 1px solid var(--line);
}

.tab-list button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    padding: 0.65rem 0.85rem;
    margin-bottom: -1px;
}

.tab-list button[aria-selected="true"] {
    color: var(--ink);
    border-bottom-color: var(--signal);
}

.tab-panel {
    padding: 1.1rem 0.15rem 0;
}

.prose {
    max-width: none;
}

.prose p,
.prose ul,
.prose ol,
.prose table {
    margin: 0 0 0.9rem;
}

.prose ul,
.prose ol {
    padding-left: 1.2rem;
}

.prose h2,
.prose h3 {
    margin: 1.4rem 0 0.5rem;
    line-height: 1.2;
}

.prose img {
    max-width: min(600px, 100%);
    height: auto;
}

.prose p > img {
    display: block;
    width: auto;
    margin: 0.8rem auto;
}

.prose .manufacturer-series {
    display: grid;
    grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.prose .manufacturer-series img {
    max-width: 100%;
}

.prose .manufacturer-series h3 {
    margin-top: 0;
}

.prose table,
.specs,
.specs-extra table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.specs {
    min-width: 36rem;
}

.specs th,
.specs td,
.specs-extra table th,
.specs-extra table td,
.prose table th,
.prose table td {
    border: 1px solid var(--line);
    padding: 0.4rem 0.55rem;
    text-align: center;
    vertical-align: top;
}

.specs th:first-child,
.specs td:first-child,
.specs-extra table th:first-child,
.specs-extra table td:first-child,
.prose table th:first-child,
.prose table td:first-child {
    text-align: left;
}

.specs thead th {
    background: var(--steel);
    color: #fff;
    font-weight: 600;
}

.specs tbody tr:nth-child(even) td {
    background: #f7f4ee;
}

.table-wrap {
    overflow-x: auto;
}

.specs-note {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.specs-extra {
    margin-top: 1.5rem;
}

.specs-extra table {
    min-width: 36rem;
}

.specs-extra table tbody tr:nth-child(even) td {
    background: #f7f4ee;
}

.doc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-list li + li {
    margin-top: 0.4rem;
}

.doc-meta {
    margin-left: 0.5rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.empty {
    margin: 0;
    color: var(--muted);
}

.machine-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.type-label {
    color: var(--muted);
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .layout,
    .catalog-primary,
    .maker-top {
        grid-template-columns: 1fr;
    }

    .machine-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .side {
        position: static;
    }

    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        margin: 0;
        padding: 0.5rem 1rem 0.9rem;
        background: var(--steel-deep);
        flex-direction: column;
        align-items: stretch;
    }

    body.nav-open .site-nav {
        display: flex;
    }

    .nav-panel {
        position: static;
        background: transparent;
        border: 0;
        padding: 0 0 0 0.7rem;
    }

    .nav-panel a {
        color: #fff;
    }

    .nav-panel a:hover,
    .nav-panel a.is-active {
        background: transparent;
        color: var(--signal);
    }
}

@media (max-width: 640px) {
    .prose .manufacturer-series {
        grid-template-columns: minmax(0, 1fr);
    }

    .prose .manufacturer-series img {
        width: 10rem;
    }

    .maker-row {
        grid-template-columns: 10rem 1fr;
    }

    .maker-count {
        text-align: left;
        white-space: normal;
    }

    .catalog-link {
        min-height: 11rem;
    }
}
