:root {
    color-scheme: light;
    --mint: #78a832;
    --mint-strong: #5f8f22;
    --mint-soft: #edf6df;
    --ink: #182018;
    --muted: #5d685b;
    --surface: #ffffff;
    --surface-2: #f5f7f2;
    --surface-3: #e8ede3;
    --border: #d9e0d4;
    --shadow: 0 18px 45px rgba(38, 53, 31, 0.12);
    --shadow-small: 0 8px 22px rgba(38, 53, 31, 0.09);
    --radius: 20px;
    --radius-small: 13px;
    --logo-panel: rgba(255, 255, 255, 0.94);
    --card-accent: var(--mint);
    --danger: #a73a32;
    --primary: var(--mint);
    --text: var(--ink);
    --bg-soft: var(--surface-2);
    --surface-solid: var(--surface);
    --line: var(--border);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f4f7f1;
    --muted: #b5c0b1;
    --surface: #1c211d;
    --surface-2: #242b25;
    --surface-3: #303931;
    --border: #3c483d;
    --mint-soft: #26361d;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    --shadow-small: 0 8px 22px rgba(0, 0, 0, 0.28);
    --logo-panel: #f7faf4;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] {
        color-scheme: dark;
        --ink: #f4f7f1;
        --muted: #b5c0b1;
        --surface: #1c211d;
        --surface-2: #242b25;
        --surface-3: #303931;
        --border: #3c483d;
        --mint-soft: #26361d;
        --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
        --shadow-small: 0 8px 22px rgba(0, 0, 0, 0.28);
        --logo-panel: #f7faf4;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface-2);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 1000;
    transform: translateY(-140%);
    background: var(--ink);
    color: var(--surface);
    padding: 10px 14px;
    border-radius: 10px;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-logo-panel {
    width: 68px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 5px 9px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    border-radius: 14px;
    background: var(--logo-panel);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16));
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--mint);
    color: #102000;
    font-weight: 900;
}

.brand-name {
    font-size: 1.08rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a,
.theme-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.site-nav .is-active {
    background: var(--mint-soft);
    color: var(--ink);
}

.site-nav .is-active {
    font-weight: 760;
}

.language-link {
    border: 1px solid var(--border) !important;
}

.theme-toggle {
    width: 44px;
    border: 1px solid var(--border);
    font-size: 1.15rem;
}

.theme-moon {
    display: none;
}

html[data-theme="dark"] .theme-sun {
    display: none;
}

html[data-theme="dark"] .theme-moon {
    display: inline;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink);
    padding: 9px;
    cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 999px;
    background: currentColor;
}

.hero-section {
    padding: 78px 0 54px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--mint) 28%, transparent) 0, transparent 31%),
        var(--surface);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: center;
    gap: 54px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: var(--mint-strong);
    font-size: 0.86rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: var(--mint);
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 860px;
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 5.2vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-copy {
    max-width: 760px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.hero-stats,
.inline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stats > div,
.inline-stats > span {
    min-width: 132px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
}

.hero-stats strong {
    font-size: 1.45rem;
    line-height: 1;
}

.hero-stats span,
.inline-stats span {
    color: var(--muted);
}

.platform-orbit {
    position: relative;
    min-height: 350px;
    display: grid;
    place-items: center;
}

.platform-orbit::before,
.platform-orbit::after {
    content: "";
    position: absolute;
    border: 1px dashed color-mix(in srgb, var(--mint) 52%, var(--border));
    border-radius: 50%;
}

.platform-orbit::before {
    width: 310px;
    height: 310px;
}

.platform-orbit::after {
    width: 215px;
    height: 215px;
}

.orbit-center {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    border-radius: 32px;
    background: var(--mint);
    color: #122500;
    font-size: 2rem;
    font-weight: 950;
    box-shadow: var(--shadow);
}

.orbit-item {
    position: absolute;
    min-width: 84px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-small);
    text-align: center;
    font-size: 0.84rem;
    font-weight: 780;
}

.orbit-linux { transform: translate(-138px, -88px); }
.orbit-windows { transform: translate(136px, -72px); }
.orbit-macos { transform: translate(-118px, 112px); }
.orbit-android { transform: translate(134px, 102px); }

.catalogue-section {
    padding: 46px 0 80px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1.3fr) minmax(220px, 0.7fr);
    gap: 18px 22px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.search-field,
.category-field {
    display: grid;
    gap: 7px;
}

.search-field label,
.category-field label,
.platform-filter legend {
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 780;
}

input[type="search"],
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--ink);
    padding: 10px 13px;
    outline: none;
}

input[type="search"]:focus,
select:focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 24%, transparent);
}

.platform-filter {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border: 0;
}

.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
}

.platform-filter-button {
    min-height: 40px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    cursor: pointer;
}

.platform-filter-button:hover,
.platform-filter-button:focus-visible,
.platform-filter-button.is-active {
    border-color: var(--mint);
    background: var(--mint-soft);
    color: var(--ink);
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    color: var(--muted);
}

.results-bar p {
    margin: 0;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.software-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 17px;
    padding: 22px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--card-accent);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.software-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card-topline {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.software-icon-shell {
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8faf6;
    overflow: hidden;
}

.software-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.software-fallback {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--mint-soft);
    color: var(--mint-strong);
    font-weight: 900;
}

.card-heading {
    min-width: 0;
}

.category-label {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 780;
}

.card-heading h2 {
    margin-bottom: 8px;
    font-size: 1.24rem;
    line-height: 1.18;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.recommended-badge {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--mint-soft);
    color: var(--mint-strong);
    font-size: 0.74rem;
    font-weight: 850;
}

.platform-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 720;
}

.platform-linux { border-color: color-mix(in srgb, #7cb342 50%, var(--border)); }
.platform-windows { border-color: color-mix(in srgb, #2584d8 45%, var(--border)); }
.platform-macos { border-color: color-mix(in srgb, #8b8f96 50%, var(--border)); }
.platform-android { border-color: color-mix(in srgb, #3ddc84 50%, var(--border)); }

.software-description {
    margin-bottom: 0;
    color: var(--muted);
}

.best-for {
    margin-bottom: 0;
    padding: 12px 13px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.91rem;
}

.best-for strong {
    color: var(--ink);
}

.software-details {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.software-details summary {
    color: var(--muted);
    font-weight: 750;
    cursor: pointer;
}

.software-details dl {
    margin: 12px 0 0;
}

.software-details dl > div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    padding: 5px 0;
}

.software-details dt {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 780;
}

.software-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--mint);
    color: #102000;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--mint-strong);
    color: #fff;
}

.button-secondary {
    border-color: var(--border);
    background: var(--surface-2);
    color: var(--ink);
}

.button-quiet {
    color: var(--mint-strong);
}

.empty-state {
    padding: 48px 20px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
    color: var(--muted);
}

.content-page {
    min-height: 58vh;
    padding: 68px 0 90px;
}

.content-card {
    max-width: 900px;
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.content-card h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
}

.lead {
    color: var(--muted);
    font-size: 1.18rem;
}

.prose {
    max-width: 72ch;
}

.prose p {
    margin-bottom: 1.15rem;
}

.inline-stats {
    margin-top: 26px;
}

.notice,
.error-card details {
    padding: 15px 17px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-2);
}

.error-card {
    border-top: 5px solid var(--danger);
}

.error-card pre {
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 42px;
    padding: 50px 0 30px;
}

.footer-brand {
    margin-bottom: 5px;
    font-size: 1.22rem;
    font-weight: 900;
}

.footer-grid p {
    color: var(--muted);
}

.footer-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-stats span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--mint-soft);
    color: var(--mint-strong);
    font-size: 0.82rem;
    font-weight: 780;
}

.footer-links {
    display: grid;
    align-content: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
}

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

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--mint-strong);
}

.partner-section {
    padding: 24px 0 34px;
    border-top: 1px solid var(--border);
}

.partner-section h2 {
    margin-bottom: 16px;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.partner-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.partner-logo {
    width: 132px;
    height: 58px;
    display: grid;
    place-items: center;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--logo-panel);
}

.partner-logo img {
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 28px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--mint) 60%, transparent);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .platform-orbit {
        min-height: 300px;
    }

    .software-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 68px;
    }

    .brand-name {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 8px);
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

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

    .site-nav a,
    .theme-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-section {
        padding-top: 52px;
    }

    .platform-orbit {
        transform: scale(0.88);
        margin: -20px 0;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .platform-filter {
        grid-column: auto;
    }

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

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

@media (max-width: 480px) {
    .shell {
        width: min(100% - 22px, 1180px);
    }

    .brand-logo-panel {
        width: 60px;
        height: 43px;
    }

    h1 {
        font-size: 2.3rem;
    }

    .platform-orbit {
        display: none;
    }

    .filter-panel,
    .software-card {
        padding: 17px;
    }

    .card-topline {
        gap: 12px;
    }

    .software-icon-shell {
        width: 67px;
        height: 67px;
    }

    .software-icon {
        width: 56px;
        height: 56px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* Reparatur 2.3.2: Footer-Links eindeutig klickbar halten */
.site-footer {
    position: relative;
    z-index: 5;
}

.footer-grid,
.footer-links {
    position: relative;
    z-index: 6;
}

.footer-links a.footer-link {
    display: inline-flex;
    width: fit-content;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

.footer-links a.footer-link:hover,
.footer-links a.footer-link:focus-visible {
    text-decoration-thickness: 2px;
}


/* Reparatur 2.3.4: neues Dogtruck-Logo */
.brand-logo-panel {
    width: 58px;
    height: 52px;
    padding: 5px;
}

.brand-logo {
    filter: none;
}

.orbit-logo {
    width: 74px;
    height: 74px;
    display: block;
}

.orbit-center {
    overflow: hidden;
}

/* Gewählte Plattform zusätzlich auf jeder sichtbaren Karte hervorheben */
.platform-badge {
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.platform-badge.is-selected-platform {
    border-color: var(--mint-strong);
    background: var(--mint);
    color: #102000;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 24%, transparent);
    transform: translateY(-1px);
}

html[data-theme="dark"] .platform-badge.is-selected-platform {
    color: #10180b;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] .platform-badge.is-selected-platform {
        color: #10180b;
    }
}

/* Footer führt bewusst zur veröffentlichten Website */
.footer-links a.footer-link::after {
    content: "↗";
    margin-left: 0.28em;
    font-size: 0.82em;
    text-decoration: none;
}


/* Reparatur 2.3.5: vollständiges Wort-/Icon-Logo */
.brand-logo-panel {
    width: clamp(300px, 38vw, 450px);
    height: 74px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.brand {
    min-width: 0;
}

.orbit-logo {
    width: 78px;
    height: 78px;
}

/* Footer: keine Links zu Dogtruck-Seiten, Partner bleiben verlinkt */
.footer-grid--simple {
    grid-template-columns: minmax(0, 760px);
}

.partner-logo {
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.partner-logo:hover,
.partner-logo:focus-visible {
    transform: translateY(-2px);
    border-color: var(--mint-strong);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--mint) 18%, transparent);
}

/* Ausführlichere Informationsseiten */
.content-card--wide {
    max-width: 1120px;
}

.prose--wide {
    max-width: 88ch;
}

.information-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.information-panel,
.contact-details {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-2);
}

.information-panel h2,
.text-section h2,
.contact-copy h2,
.contact-details h2 {
    margin-bottom: 10px;
    font-size: 1.16rem;
}

.information-panel p,
.text-section p,
.contact-copy p,
.contact-details dd {
    color: var(--muted);
}

.text-section {
    margin-top: 30px;
}

.plain-list {
    display: grid;
    gap: 10px;
    padding-left: 1.3rem;
    color: var(--muted);
}

.plain-list li::marker {
    color: var(--mint-strong);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 28px;
    margin-top: 30px;
}

.contact-details dl {
    display: grid;
    gap: 18px;
    margin: 0;
}

.contact-details dl > div {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.contact-details dl > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-details dt {
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-details dd {
    margin: 0;
}

.contact-email {
    color: var(--ink);
    font-weight: 760;
    overflow-wrap: anywhere;
}

.notice--quiet {
    margin-top: 25px;
}

.notice--quiet p {
    margin: 7px 0 0;
}

@media (max-width: 920px) {
    .brand-logo-panel {
        width: min(62vw, 390px);
        height: 68px;
    }

    .information-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .brand-logo-panel {
        width: 255px;
        height: 54px;
    }

    .header-inner {
        min-height: 70px;
    }

    .information-panel,
    .contact-details {
        padding: 18px;
    }
}

.brand-logo-panel {
    width: clamp(430px, 50vw, 620px);
    height: 108px;
}
.brand-logo {
    object-fit: contain;
    object-position: left center;
}
.header-inner {
    min-height: 114px;
}
@media (max-width: 920px) {
    .brand-logo-panel {
        width: min(74vw, 520px);
        height: 92px;
    }
    .header-inner {
        min-height: 96px;
    }
}
@media (max-width: 640px) {
    .brand-logo-panel {
        width: 290px;
        height: 68px;
    }
    .header-inner {
        min-height: 82px;
    }
}
.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(180px, 1fr));
    gap: 26px;
    padding-bottom: 18px;
}
.footer-column h2 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
}
.footer-brand {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}
.footer-lead {
    max-width: 50ch;
}
.footer-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}
.footer-note {
    margin: 0;
    color: var(--muted);
}
@media (max-width: 980px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* Reparatur 2.3.7: Branding vorübergehend ausschließlich als Text */
.brand--text-only {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-text {
    display: grid;
    line-height: 1;
}

.brand-text strong {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    color: var(--ink);
}

.brand-text small {
    margin-top: 5px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.035em;
    color: var(--muted);
}

.header-inner {
    min-height: 78px;
}

.orbit-center--text {
    display: grid;
    place-items: center;
    padding: 8px;
    text-align: center;
}

.orbit-center--text span {
    font-size: 0.82rem;
    font-weight: 850;
    color: #172312;
}

/* Klassischer, ruhiger Aufbau der Informationsseiten */
.info-page {
    min-height: 60vh;
}

.info-page__header {
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 80% 20%, rgba(120, 168, 50, 0.14), transparent 34%),
        var(--surface);
}

.info-page__header-inner {
    max-width: 980px;
    padding-top: clamp(54px, 8vw, 92px);
    padding-bottom: clamp(46px, 7vw, 78px);
}

.info-page__header h1 {
    max-width: 760px;
    margin: 14px 0 18px;
    font-size: clamp(2.45rem, 6vw, 4.75rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.info-page__header .lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.65;
}

.info-page__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: clamp(36px, 7vw, 84px);
    align-items: start;
    max-width: 1080px;
    padding-top: clamp(44px, 7vw, 76px);
    padding-bottom: clamp(60px, 9vw, 100px);
}

.info-page__body--contact {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.info-article {
    max-width: 760px;
}

.info-article > section {
    margin-top: 38px;
}

.info-article h2,
.contact-box h2 {
    margin: 0 0 12px;
    font-size: 1.28rem;
    letter-spacing: -0.025em;
}

.info-article p {
    color: var(--muted);
    line-height: 1.78;
}

.info-intro {
    margin-top: 0;
    color: var(--ink) !important;
    font-size: 1.12rem;
}

.info-summary {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 12px;
}

.info-summary > div {
    display: grid;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-2);
}

.info-summary strong {
    font-size: 1.9rem;
    color: var(--ink);
}

.info-summary span {
    margin-top: 3px;
    color: var(--muted);
}

.contact-box {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-2);
}

.contact-box dl {
    display: grid;
    gap: 20px;
    margin: 0;
}

.contact-box dl > div {
    padding-bottom: 17px;
    border-bottom: 1px solid var(--border);
}

.contact-box dl > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-box dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.contact-box dd {
    margin: 0;
    color: var(--ink);
    line-height: 1.58;
}

.protected-email {
    display: grid;
    gap: 10px;
}

.protected-email__button {
    width: fit-content;
    padding: 10px 14px;
    border: 1px solid var(--mint-strong);
    border-radius: 999px;
    background: var(--mint);
    color: #172312;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.protected-email__button:hover,
.protected-email__button:focus-visible {
    filter: brightness(0.96);
}

.protected-email__link {
    color: var(--ink);
    font-weight: 780;
    overflow-wrap: anywhere;
}

/* Footer enthält nur Partner und rechtliche Seiten */
.site-footer--minimal {
    padding-top: 34px;
}

.site-footer--minimal .partner-section {
    padding-top: 0;
}

.legal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 28px;
    border-top: 1px solid var(--border);
}

.legal-footer a {
    color: var(--muted);
    font-weight: 750;
    text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@media (max-width: 820px) {
    .info-page__body,
    .info-page__body--contact {
        grid-template-columns: 1fr;
    }

    .info-summary {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        order: -1;
    }
}

@media (max-width: 560px) {
    .info-summary {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 20px;
    }
}

/* DOGTRUCK HELPFUL TEXT START */
.dogtruck-help-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    border-block: 1px solid var(--line, rgba(30, 50, 70, 0.12));
    background: color-mix(in srgb, var(--bg-soft, #eef4f0) 82%, transparent);
}

.dogtruck-help-heading {
    max-width: 760px;
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.dogtruck-help-heading h2 {
    margin: 0.45rem 0 1rem;
    font-size: clamp(2rem, 4.2vw, 3.7rem);
    line-height: 1.05;
}

.dogtruck-help-heading p {
    max-width: 690px;
    margin: 0;
    color: var(--muted, #64748b);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.dogtruck-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dogtruck-help-card {
    position: relative;
    min-height: 220px;
    padding: clamp(1.4rem, 3vw, 2rem);
    overflow: hidden;
    border: 1px solid var(--line, rgba(30, 50, 70, 0.12));
    border-radius: 1.35rem;
    background: var(--surface, rgba(255, 255, 255, 0.82));
    box-shadow: var(--shadow-soft, 0 16px 40px rgba(20, 40, 30, 0.08));
}

.dogtruck-help-card::after {
    content: "";
    position: absolute;
    right: -3rem;
    bottom: -3.5rem;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary, #78a832) 16%, transparent);
    pointer-events: none;
}

.dogtruck-help-number {
    display: inline-flex;
    margin-bottom: 2.6rem;
    color: var(--primary, #78a832);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.dogtruck-help-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.dogtruck-help-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted, #64748b);
}

.empty-state p {
    max-width: 620px;
    margin: 0.65rem auto 0;
}

@media (max-width: 760px) {
    .dogtruck-help-grid {
        grid-template-columns: 1fr;
    }

    .dogtruck-help-card {
        min-height: 0;
    }

    .dogtruck-help-number {
        margin-bottom: 1.6rem;
    }
}
/* DOGTRUCK HELPFUL TEXT END */



/* DOGTRUCK SOFTWARE FILTER FEINSCHLIFF V1 START */
/* Nur die deutsche Fassung benötigt für den längeren Kategorietext mehr Platz. */
@media (min-width: 760px) {
    html[lang="de"] .filter-panel {
        grid-template-columns: minmax(300px, 0.85fr) minmax(450px, 1.15fr) !important;
    }

    html[lang="de"] .search-field,
    html[lang="de"] .category-field {
        min-width: 0;
    }

    html[lang="de"] .category-field select {
        width: 100%;
        min-width: 0;
        padding-right: 2.4rem;
        font-size: 0.93rem;
    }

    html[lang="de"] .platform-filter {
        grid-column: 1 / -1;
    }
}

@media (min-width: 760px) and (max-width: 980px) {
    html[lang="de"] .filter-panel {
        grid-template-columns: minmax(250px, 0.8fr) minmax(410px, 1.2fr) !important;
    }

    html[lang="de"] .category-field select {
        font-size: 0.88rem;
    }
}

@media (max-width: 759px) {
    html[lang="de"] .filter-panel {
        grid-template-columns: 1fr !important;
    }

    html[lang="de"] .platform-filter {
        grid-column: auto;
    }
}
/* DOGTRUCK SOFTWARE FILTER FEINSCHLIFF V1 END */

/* DOGTRUCK FOOTER STATUS V3 START */
.dogtruck-footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 6vw, 5rem);
    padding-top: clamp(2rem, 5vw, 3.5rem);
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--line, rgba(31, 55, 34, 0.12));
}

.dogtruck-footer-column {
    min-width: 0;
}

.dogtruck-footer-column h2 {
    margin: 0 0 1rem;
    color: var(--text, #172217);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dogtruck-footer-links {
    display: grid;
    gap: 0.62rem;
}

.dogtruck-footer-links a {
    width: fit-content;
    color: var(--muted, #657065);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

.dogtruck-footer-links a:hover,
.dogtruck-footer-links a:focus-visible {
    color: var(--primary, #78a832);
    transform: translateX(0.18rem);
}

.partner-section {
    padding-top: clamp(1.8rem, 4vw, 2.8rem);
}

.dogtruck-footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem 2rem;
    margin-top: clamp(1.8rem, 4vw, 2.8rem);
    padding-top: 1.45rem;
    padding-bottom: 0.25rem;
    border-top: 1px solid var(--line, rgba(31, 55, 34, 0.12));
    color: var(--muted, #657065);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.5;
}

.dogtruck-footer-meta time {
    color: inherit;
}

.dogtruck-back-to-top {
    position: fixed;
    right: clamp(1rem, 2vw, 1.6rem);
    bottom: clamp(1rem, 2.4vw, 1.5rem);
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(17, 24, 17, 0.92);
    color: #fff;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.dogtruck-back-to-top:hover,
.dogtruck-back-to-top:focus-visible {
    transform: translateY(-0.12rem);
    background: var(--primary, #78a832);
    color: #fff;
    box-shadow: 0 16px 32px rgba(57, 91, 15, 0.28);
}

@media (max-width: 900px) {
    .dogtruck-footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dogtruck-footer-column:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .dogtruck-footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dogtruck-footer-column:last-child {
        grid-column: auto;
    }

    .dogtruck-footer-meta {
        display: grid;
        justify-content: start;
    }

    .dogtruck-back-to-top {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.2rem;
        right: 0.9rem;
        bottom: 0.9rem;
    }
}
/* DOGTRUCK FOOTER STATUS V3 END */

/* DOGTRUCK LEGAL PAGES V2 START */
.site-header .brand {
    margin-bottom: 0.45rem;
}

.dogtruck-legal-page {
    min-height: 65vh;
}

.dogtruck-legal-hero {
    padding: clamp(3.6rem, 7vw, 6rem) 0 clamp(2.4rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line, rgba(31, 55, 34, 0.12));
    background:
        radial-gradient(circle at 78% 20%, color-mix(in srgb, var(--primary, #78a832) 16%, transparent), transparent 28rem),
        color-mix(in srgb, var(--bg-soft, #eef4f0) 72%, transparent);
}

.dogtruck-legal-hero__inner {
    max-width: 900px;
}

.dogtruck-legal-hero h1 {
    margin: 0.7rem 0 1rem;
    font-size: clamp(2.7rem, 6vw, 5.2rem);
}

.dogtruck-legal-hero .lead {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.dogtruck-legal-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    padding-top: clamp(2.3rem, 5vw, 4.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.dogtruck-legal-card,
.dogtruck-legal-notice {
    min-width: 0;
    padding: clamp(1.45rem, 3vw, 2.25rem);
    border: 1px solid var(--line, rgba(31, 55, 34, 0.12));
    border-radius: 1.35rem;
    background: var(--surface-solid, #fff);
    box-shadow: 0 14px 40px rgba(25, 45, 30, 0.07);
}

.dogtruck-legal-card--accent {
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--primary, #78a832) 10%, var(--surface-solid, #fff)),
        var(--surface-solid, #fff));
}

.dogtruck-legal-card h2 {
    margin: 0.55rem 0 1rem;
    font-size: clamp(1.45rem, 2.5vw, 2.15rem);
    letter-spacing: -0.03em;
}

.dogtruck-legal-card p:last-child,
.dogtruck-legal-notice p:last-child {
    margin-bottom: 0;
}

.dogtruck-legal-card--person {
    overflow: hidden;
}

.dogtruck-legal-person {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(160px, 0.55fr);
    align-items: start;
    gap: clamp(1rem, 2vw, 2rem);
    min-height: 100%;
}

.dogtruck-legal-person__content {
    min-width: 0;
    max-width: none;
    padding-block: 0.15rem;
}

.dogtruck-legal-person__portrait {
    align-self: start;
    justify-self: end;
    width: min(100%, 220px);
    margin: 1.75rem 0 0;
}

.dogtruck-legal-person__portrait picture {
    display: block;
}

.dogtruck-legal-person__portrait img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 14px 18px rgba(16, 31, 20, 0.12));
}

.dogtruck-legal-card address {
    margin: 0 0 1rem;
    color: var(--text, #172217);
    font-style: normal;
    font-weight: 700;
    line-height: 1.7;
}

.dogtruck-legal-number {
    color: var(--primary, #78a832);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dogtruck-legal-definition-list {
    display: grid;
    margin: 1.5rem 0 0;
}

.dogtruck-legal-definition-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--line, rgba(31, 55, 34, 0.12));
}

.dogtruck-legal-definition-list dt {
    max-width: 100%;
    color: var(--muted, #657065);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.dogtruck-legal-definition-list dd {
    min-width: 0;
    margin: 0;
    color: var(--text, #172217);
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.dogtruck-legal-email {
    margin-top: 1rem;
}

.dogtruck-legal-link {
    color: var(--primary, #78a832);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.22rem;
}

.dogtruck-legal-notice {
    grid-column: 1 / -1;
    border-color: color-mix(in srgb, var(--primary, #78a832) 35%, var(--line, #dbe4db));
    background: color-mix(in srgb, var(--primary, #78a832) 7%, var(--surface-solid, #fff));
}

.dogtruck-legal-notice strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text, #172217);
}

.dogtruck-legal-updated {
    grid-column: 1 / -1;
    margin: 0.5rem 0 0;
    color: var(--muted, #657065);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: right;
}

@media (max-width: 850px) {
    .dogtruck-legal-layout {
        grid-template-columns: 1fr;
    }

    .dogtruck-legal-notice,
    .dogtruck-legal-updated {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .site-header .brand {
        margin-bottom: 0.3rem;
    }

    .dogtruck-legal-person {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .dogtruck-legal-person__content {
        max-width: none;
    }

    .dogtruck-legal-person__portrait {
        justify-self: center;
        width: min(72%, 220px);
        margin: 1rem auto 0;
    }

    .dogtruck-legal-updated {
        text-align: left;
    }
}
/* DOGTRUCK LEGAL PAGES V2 END */

/* DOGTRUCK HEADER AND LOGO – CONSOLIDATED */
/* Dogtruck Logo Fix V8 */
.site-header .header-inner {
    display: flex;
    align-items: center;
}

.site-header .brand {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto !important;
    min-width: 0;
    margin-right: auto !important;
    line-height: 0;
    text-decoration: none;
}

.dogtruck-header-picture {
    display: block;
    line-height: 0;
}

.dogtruck-header-logo {
    display: block !important;
    width: 228px !important;
    max-width: 228px !important;
    height: auto !important;
    max-height: 118px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.site-header .site-nav {
    margin-left: auto;
}

.orbit-center--dogtruck {
    overflow: hidden;
}

.dogtruck-orbit-picture {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    line-height: 0;
}

.dogtruck-orbit-logo {
    display: block !important;
    width: 86% !important;
    max-width: 86% !important;
    height: 86% !important;
    max-height: 86% !important;
    margin: auto !important;
    padding: 0 !important;
    border-radius: 18%;
    object-fit: contain !important;
}

@media (max-width: 760px) {
    .dogtruck-header-logo {
        width: 180px !important;
        max-width: 180px !important;
        max-height: 92px !important;
    }
}

@media (max-width: 430px) {
    .dogtruck-header-logo {
        width: 154px !important;
        max-width: 154px !important;
        max-height: 79px !important;
    }
}

.site-header,
.site-header.is-scrolled {
    background: #f1f2ef !important;
    border-bottom-color: rgba(31, 55, 34, 0.10) !important;
}

.site-header .header-inner {
    min-height: 104px;
    padding-block: 0.3rem;
}

.site-header .brand {
    padding: 0.2rem 0.45rem 0.35rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header.is-scrolled {
    background: #2d3934 !important;
    border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] .site-header .brand {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(247, 250, 244, 0.96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] .site-header,
    html[data-theme="auto"] .site-header.is-scrolled {
        background: #2d3934 !important;
        border-bottom-color: rgba(255, 255, 255, 0.14) !important;
    }

    html[data-theme="auto"] .site-header .brand {
        border-color: rgba(255, 255, 255, 0.48);
        background: rgba(247, 250, 244, 0.96);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    }

    html[data-theme="auto"] .theme-sun {
        display: none;
    }

    html[data-theme="auto"] .theme-moon {
        display: inline;
    }
}

@media (max-width: 760px) {
    .site-header .header-inner {
        min-height: 88px;
    }
}

@media (max-width: 430px) {
    .site-header .header-inner {
        min-height: 78px;
    }

    .site-header .brand {
        padding-inline: 0.25rem;
    }
}
/* DOGTRUCK HEADER AND LOGO – CONSOLIDATED END */

/* OPERATING SYSTEM DETAIL PAGES START */
.os-page {
    min-height: 65vh;
    padding: clamp(34px, 6vw, 78px) 0 clamp(70px, 9vw, 118px);
}

.os-page__shell {
    display: grid;
    gap: 24px;
}

.os-back-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mint-strong);
    font-weight: 820;
    text-decoration: none;
}

.os-back-link:hover,
.os-back-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.os-hero-card {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 54px);
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.os-hero-card__icon {
    width: clamp(138px, 18vw, 184px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 34px;
    background: #f8faf6;
    box-shadow: var(--shadow-small);
}

.os-hero-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.os-hero-card__icon span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: var(--mint-soft);
    color: var(--mint-strong);
    font-size: 3rem;
    font-weight: 900;
}

.os-hero-card__content h1 {
    max-width: 850px;
    margin: 8px 0 14px;
    font-size: clamp(2.35rem, 6vw, 5.3rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}

.os-hero-card__summary {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.os-hero-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.os-purpose-card,
.os-note-card,
.os-information-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.os-purpose-card {
    padding: clamp(24px, 4vw, 40px);
}

.os-purpose-card h2,
.os-note-card h2,
.os-information-card h2 {
    margin: 0 0 12px;
    letter-spacing: -0.025em;
}

.os-purpose-card p,
.os-note-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.os-information-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.os-information-card {
    position: relative;
    padding: 26px 28px;
    overflow: hidden;
}

.os-information-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--mint);
}

.os-information-card--weaknesses::before {
    background: var(--danger);
}

.os-information-card--tasks::before {
    background: #2584d8;
}

.os-information-card--audience::before {
    background: #8a62c7;
}

.os-information-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 21px;
    color: var(--muted);
}

.os-information-card li::marker {
    color: var(--mint-strong);
}

.os-information-card--weaknesses li::marker {
    color: var(--danger);
}

.os-note-card {
    padding: 22px 26px;
    background: var(--surface-2);
}

@media (max-width: 760px) {
    .os-hero-card {
        grid-template-columns: 1fr;
    }

    .os-hero-card__icon {
        width: 132px;
        border-radius: 26px;
    }

    .os-information-grid {
        grid-template-columns: 1fr;
    }
}
/* OPERATING SYSTEM DETAIL PAGES END */

/* DOWNLOAD CENTRE START */
.download-page,
.download-detail-page {
    padding: 54px 0 76px;
}

.download-page__shell,
.download-detail-page__shell {
    display: grid;
    gap: 28px;
}

.download-hero {
    max-width: 790px;
}

.download-hero h1,
.download-detail-card h1 {
    margin: 8px 0 14px;
    line-height: 1.08;
}

.download-hero h1 {
    font-size: clamp(2.25rem, 6vw, 4.6rem);
}

.download-hero > p,
.download-detail-card__summary {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.download-count {
    display: inline-flex;
    margin-top: 20px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 750;
}

.download-security-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px 22px;
    border: 1px solid color-mix(in srgb, var(--mint) 45%, var(--border));
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--mint-soft) 68%, var(--surface));
}

.download-security-note__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--mint);
    color: #fff;
    font-weight: 900;
}

.download-security-note h2 {
    margin: 0 0 3px;
    font-size: 1.02rem;
}

.download-security-note p {
    margin: 0;
    color: var(--muted);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 22px;
}

.download-card,
.download-detail-card,
.download-information-card,
.download-checksum-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.download-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px;
}

.download-card--featured {
    border-color: color-mix(in srgb, var(--mint) 58%, var(--border));
}

.download-card__topline {
    display: flex;
    min-height: 29px;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.download-category,
.download-featured,
.download-platforms span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 780;
}

.download-category {
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.download-featured {
    padding: 4px 9px;
    background: var(--mint-soft);
    color: var(--mint-strong);
}

.download-card h2 {
    margin: 15px 0 9px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.download-card h2 a {
    text-decoration: none;
}

.download-card h2 a:hover {
    color: var(--mint-strong);
}

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

.download-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.download-platforms span {
    padding: 5px 9px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.download-platforms--large span {
    padding: 7px 11px;
    font-size: 0.9rem;
}

.download-meta,
.download-detail-meta {
    display: grid;
    gap: 9px;
    margin: 22px 0 0;
}

.download-meta div,
.download-detail-meta div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 7px;
}

.download-meta dt,
.download-detail-meta dt {
    color: var(--muted);
}

.download-meta dd,
.download-detail-meta dd {
    margin: 0;
    font-weight: 760;
    text-align: right;
    overflow-wrap: anywhere;
}

.download-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    padding-top: 22px;
}

.download-unavailable {
    color: var(--danger);
    font-weight: 750;
}

.download-unavailable--large {
    padding: 14px 18px;
    border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--border));
    border-radius: var(--radius-small);
    background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}

.download-empty-state {
    margin: 0;
}

.download-detail-page__shell {
    max-width: 1020px;
}

.download-detail-card {
    padding: clamp(24px, 4vw, 42px);
}

.download-detail-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
}

.download-detail-card h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
}

.download-detail-card__button {
    white-space: nowrap;
}

.project-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.project-guide-card {
    margin-top: 22px;
}

.download-detail-card__description {
    max-width: 820px;
    margin: 26px 0 0;
    font-size: 1.06rem;
}

.download-detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
    margin-top: 28px;
}

.download-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.download-information-card,
.download-checksum-card {
    padding: 24px;
}

.download-information-card h2,
.download-checksum-card h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.download-information-card p,
.download-checksum-card p {
    margin: 0;
    color: var(--muted);
}

.download-checksum-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.download-checksum-row code {
    display: block;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-2);
    overflow-wrap: anywhere;
    user-select: all;
}

.download-security-text {
    margin-top: 14px !important;
    font-size: 0.92rem;
}

@media (max-width: 780px) {
    .download-grid,
    .download-detail-grid,
    .download-detail-meta {
        grid-template-columns: 1fr;
    }

    .download-detail-card__header {
        grid-template-columns: 1fr;
    }

    .download-detail-card__button {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .download-page,
    .download-detail-page {
        padding: 36px 0 58px;
    }

    .download-security-note {
        grid-template-columns: 1fr;
    }

    .download-card,
    .download-information-card,
    .download-checksum-card {
        padding: 19px;
    }

    .download-checksum-row {
        grid-template-columns: 1fr;
    }

    .download-checksum-row .button {
        justify-self: start;
    }
}
/* DOWNLOAD CENTRE END */


/* OWN PROJECTS PAGE START */
.projects-page {
    padding: clamp(42px, 6vw, 76px) 0 clamp(68px, 9vw, 112px);
}

.projects-page__shell {
    display: grid;
    gap: clamp(46px, 7vw, 82px);
}

.projects-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: clamp(34px, 6vw, 72px);
    align-items: start;
    padding: clamp(26px, 5vw, 54px);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 8px);
    background:
        radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--mint) 20%, transparent), transparent 38%),
        var(--surface);
    box-shadow: var(--shadow-small);
    overflow: hidden;
}

.projects-profile__content {
    min-width: 0;
}

.projects-profile h1 {
    max-width: 760px;
    margin: 12px 0 16px;
    font-size: clamp(2.65rem, 7vw, 5.4rem);
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.projects-profile__lead {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.7;
}

.project-available-count {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 18px;
    padding: 7px 12px;
    border: 1px solid color-mix(in srgb, var(--mint) 46%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--mint-soft) 72%, var(--surface));
    color: var(--ink);
    font-weight: 800;
}

.projects-toc {
    max-width: 620px;
    margin-top: 28px;
    padding: 20px 22px;
    border-left: 4px solid var(--mint);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    background: var(--surface-2);
}

.projects-toc h2 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.projects-toc ol {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 1.35rem;
}

.projects-toc a {
    color: var(--ink);
    font-weight: 730;
    text-underline-offset: 0.2em;
}

.projects-toc a:hover,
.projects-toc a:focus-visible {
    color: var(--mint-strong);
}

.projects-portrait {
    align-self: start;
    display: block;
    width: 100%;
    max-width: 390px;
    justify-self: end;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 6px);
    background: var(--surface-2);
    box-shadow: var(--shadow-small);
    overflow: hidden;
}

.projects-portrait picture {
    display: flex;
    min-height: 0;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    padding: 20px 20px 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--mint-soft) 72%, var(--surface)) 0%, var(--surface-2) 100%);
}

.projects-portrait img {
    display: block;
    width: min(100%, 240px);
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center bottom;
}

.projects-portrait figcaption {
    padding: 13px 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 720;
    text-align: center;
}

.projects-portrait__figure {
    margin: 0;
}

.projects-portrait__bio {
    padding: 20px 22px 22px;
    border-top: 1px solid var(--border);
}

.projects-portrait__bio h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.projects-portrait__bio p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.68;
}

.projects-portrait__bio p:last-child {
    margin-bottom: 0;
}

.projects-toc > p {
    margin: 0;
    color: var(--muted);
}

.project-card {
    scroll-margin-top: 108px;
}

.project-section {
    scroll-margin-top: 108px;
}

.project-about-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
    gap: clamp(28px, 6vw, 70px);
    align-items: start;
}

.project-section__content,
.project-section-heading {
    max-width: 780px;
}

.project-section h2 {
    margin: 10px 0 14px;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.project-section-heading > p,
.project-section__content > p,
.project-system-grid p {
    color: var(--muted);
    line-height: 1.75;
}

.project-focus-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.project-focus-card h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.project-focus-card ul,
.project-installation-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 1.25rem;
    color: var(--muted);
    line-height: 1.6;
}

.project-focus-card li::marker,
.project-installation-steps li::marker {
    color: var(--mint-strong);
    font-weight: 900;
}

.project-catalogue-section,
.project-guide-section,
.project-systems-section,
.project-check-section {
    display: grid;
    gap: 24px;
}

.project-security-note h3 {
    margin: 0 0 3px;
    font-size: 1.02rem;
}

.project-card h3 {
    margin: 15px 0 9px;
    font-size: 1.5rem;
    line-height: 1.2;
}

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

.project-card h3 a:hover,
.project-card h3 a:focus-visible {
    color: var(--mint-strong);
}

.project-guide-section,
.project-check-section {
    padding: clamp(25px, 4vw, 42px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.project-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: project-step;
}

.project-steps li {
    counter-increment: project-step;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-2);
    color: var(--muted);
    line-height: 1.55;
}

.project-steps li::before {
    content: counter(project-step);
    display: grid;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 50%;
    background: var(--mint);
    color: #172312;
    font-weight: 900;
}

.project-command {
    max-width: 100%;
    margin: 0;
    padding: 15px 17px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-2);
    overflow-x: auto;
}

.project-command code {
    color: var(--ink);
    font-family: "Liberation Mono", "DejaVu Sans Mono", monospace;
    font-size: 0.9rem;
    white-space: pre;
}

.project-system-grid,
.project-command-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-system-grid article,
.project-command-grid > div {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.project-system-grid h3,
.project-command-grid h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
}

.project-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-detail-information-grid {
    align-items: stretch;
}

.project-installation-steps {
    margin-top: 16px;
    margin-bottom: 22px;
}

.project-detail-information-grid h3 {
    margin: 22px 0 10px;
    font-size: 1rem;
}

.project-compatibility-card {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.project-compatibility-card header {
    max-width: 800px;
    margin-bottom: 20px;
}

.project-compatibility-card h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.project-compatibility-card header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.project-compatibility-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.project-compatibility-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: var(--surface);
}

.project-compatibility-table th,
.project-compatibility-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.project-compatibility-table th {
    background: var(--surface-2);
    color: var(--ink);
    font-size: 0.8rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.project-compatibility-table td {
    color: var(--muted);
    line-height: 1.55;
}

.project-compatibility-table td strong {
    color: var(--ink);
}

.project-compatibility-table tr:last-child td {
    border-bottom: 0;
}

.about-projects-summary__primary {
    border-color: color-mix(in srgb, var(--mint) 55%, var(--border)) !important;
    background: color-mix(in srgb, var(--mint-soft) 72%, var(--surface)) !important;
}

.about-projects-summary__primary strong {
    color: var(--mint-strong);
    font-size: 2.35rem;
}

@media (max-width: 980px) {
    .projects-profile {
        grid-template-columns: 1fr;
    }

    .projects-portrait {
        width: min(100%, 480px);
        max-width: 480px;
        justify-self: center;
    }


    .project-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .project-about-section,
    .project-system-grid,
    .project-command-grid {
        grid-template-columns: 1fr;
    }

    .projects-profile {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .projects-page {
        padding-top: 30px;
    }

    .projects-profile {
        padding: 20px;
        border-radius: var(--radius);
    }

    .projects-profile h1 {
        font-size: clamp(2.35rem, 14vw, 3.65rem);
    }


    .projects-toc,
    .project-focus-card,
    .project-guide-section,
    .project-check-section,
    .project-system-grid article,
    .project-command-grid > div,
    .project-compatibility-card {
        padding: 18px;
    }

    .project-steps {
        grid-template-columns: 1fr;
    }
}
/* OWN PROJECTS PAGE END */

/* DIRCOLORS GUIDE PAGE START */
.dircolors-guide-page {
    min-height: 65vh;
    padding-bottom: clamp(72px, 9vw, 120px);
}

.dircolors-guide-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(38px, 6vw, 76px) 0 clamp(44px, 7vw, 86px);
    border-bottom: 1px solid color-mix(in srgb, var(--mint) 70%, var(--border));
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at 8% 88%, rgba(24, 32, 24, 0.16), transparent 32%),
        linear-gradient(135deg, var(--mint-strong), var(--mint));
    color: #fff;
}

.dircolors-guide-hero__inner {
    position: relative;
    z-index: 1;
}

.dircolors-guide-back {
    margin-bottom: clamp(24px, 4vw, 38px);
    color: #fff;
}

.dircolors-guide-hero .eyebrow {
    color: rgba(255, 255, 255, 0.9);
}

.dircolors-guide-hero .eyebrow::before {
    background: #fff;
}

.dircolors-guide-hero h1 {
    max-width: 880px;
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.dircolors-guide-hero p {
    max-width: 780px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.03rem, 2vw, 1.24rem);
    line-height: 1.65;
}

.dircolors-guide-meta,
.dircolors-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dircolors-guide-meta {
    margin-bottom: 22px;
}

.dircolors-guide-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.dircolors-guide-actions .button {
    min-height: 44px;
    padding-inline: 17px;
}

.dircolors-guide-actions .button-secondary {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dircolors-guide-actions .button-secondary:hover,
.dircolors-guide-actions .button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

.dircolors-guide-actions .button-primary {
    border-color: #fff;
    background: #fff;
    color: #29430f;
}

.dircolors-guide-actions .button-primary:hover,
.dircolors-guide-actions .button-primary:focus-visible {
    border-color: #eef7e4;
    background: #eef7e4;
    color: #1c3109;
}

.dircolors-guide-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 4vw, 48px);
    margin-top: clamp(30px, 5vw, 58px);
}

.dircolors-guide-toc {
    position: sticky;
    top: 102px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.dircolors-guide-toc > strong {
    display: block;
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 1.02rem;
}

.dircolors-guide-toc ol {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: dircolors-toc;
}

.dircolors-guide-toc li {
    counter-increment: dircolors-toc;
}

.dircolors-guide-toc a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 9px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
    text-decoration: none;
}

.dircolors-guide-toc a::before {
    content: counter(dircolors-toc);
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--mint-soft);
    color: var(--mint-strong);
    font-size: 0.74rem;
    font-weight: 900;
}

.dircolors-guide-toc a:hover,
.dircolors-guide-toc a:focus-visible {
    background: var(--mint-soft);
    color: var(--ink);
}

.dircolors-guide-content {
    min-width: 0;
    display: grid;
    gap: 22px;
}

.dircolors-guide-section {
    scroll-margin-top: 110px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.dircolors-guide-section h2 {
    margin-bottom: 20px;
    font-size: clamp(1.48rem, 3vw, 2.15rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.dircolors-guide-section h3 {
    margin: 28px 0 10px;
    font-size: 1.16rem;
    line-height: 1.3;
}

.dircolors-guide-section p,
.dircolors-guide-section li,
.dircolors-guide-section td {
    color: var(--muted);
}

.dircolors-guide-section p:last-child,
.dircolors-guide-section ul:last-child,
.dircolors-guide-section ol:last-child,
.dircolors-guide-section figure:last-child,
.dircolors-guide-section .dircolors-guide-table-wrap:last-child,
.dircolors-guide-section .dircolors-guide-note:last-child,
.dircolors-guide-section .dircolors-guide-warning:last-child {
    margin-bottom: 0;
}

.dircolors-guide-section code {
    padding: 0.12em 0.36em;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--ink);
    font-family: "Liberation Mono", "DejaVu Sans Mono", monospace;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

.dircolors-guide-note,
.dircolors-guide-warning {
    margin: 20px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--mint);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    background: var(--mint-soft);
    color: var(--muted);
}

.dircolors-guide-warning {
    border-left-color: #c58918;
    background: color-mix(in srgb, #ffd984 24%, var(--surface));
}

.dircolors-guide-note strong,
.dircolors-guide-warning strong {
    color: var(--ink);
}

.dircolors-guide-figure {
    max-width: 100%;
    margin: 24px 0;
}

.dircolors-guide-figure--dialog {
    max-width: 720px;
}

.dircolors-guide-figure a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-2);
    box-shadow: var(--shadow-small);
}

.dircolors-guide-figure img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 180ms ease;
}

.dircolors-guide-figure a:hover img,
.dircolors-guide-figure a:focus-visible img {
    transform: scale(1.008);
}

.dircolors-guide-figure figcaption {
    padding: 10px 4px 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.dircolors-guide-table-wrap {
    max-width: 100%;
    margin: 22px 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.dircolors-guide-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--surface);
}

.dircolors-guide-table th,
.dircolors-guide-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.dircolors-guide-table th {
    background: var(--surface-2);
    color: var(--ink);
    font-size: 0.79rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.dircolors-guide-table tr:last-child td {
    border-bottom: 0;
}

.dircolors-guide-table td:first-child {
    width: 34%;
    color: var(--ink);
}

.dircolors-guide-list,
.dircolors-guide-steps {
    margin: 20px 0;
    padding-left: 1.35rem;
}

.dircolors-guide-list li,
.dircolors-guide-steps li {
    margin: 8px 0;
    padding-left: 4px;
}

.dircolors-guide-steps {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
    counter-reset: dircolors-step;
}

.dircolors-guide-steps li {
    position: relative;
    min-height: 46px;
    margin: 0;
    padding: 12px 14px 12px 54px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-2);
    line-height: 1.55;
}

.dircolors-guide-steps li::before {
    content: counter(dircolors-step);
    counter-increment: dircolors-step;
    position: absolute;
    top: 11px;
    left: 13px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--mint);
    color: #172312;
    font-size: 0.78rem;
    font-weight: 900;
}

.dircolors-guide-steps--workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dircolors-guide-source {
    margin: 2px 0 0;
    padding: 4px 2px;
    color: var(--muted);
    font-size: 0.88rem;
}

@media (max-width: 960px) {
    .dircolors-guide-layout {
        grid-template-columns: 1fr;
    }

    .dircolors-guide-toc {
        position: static;
    }

    .dircolors-guide-toc ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 660px) {
    .dircolors-guide-hero {
        padding-top: 30px;
    }

    .dircolors-guide-toc,
    .dircolors-guide-section {
        padding: 19px;
    }

    .dircolors-guide-toc ol,
    .dircolors-guide-steps--workflow {
        grid-template-columns: 1fr;
    }

    .dircolors-guide-table {
        min-width: 520px;
    }

    .dircolors-guide-actions .button {
        width: 100%;
    }
}

@media print {
    .dircolors-guide-hero {
        padding: 20px 0;
        border: 0;
        background: #fff;
        color: #000;
    }

    .dircolors-guide-hero h1,
    .dircolors-guide-hero p,
    .dircolors-guide-hero .eyebrow,
    .dircolors-guide-back {
        color: #000;
    }

    .dircolors-guide-actions,
    .dircolors-guide-toc,
    .site-header,
    .site-footer,
    .dogtruck-back-to-top {
        display: none !important;
    }

    .dircolors-guide-layout {
        display: block;
        margin-top: 20px;
    }

    .dircolors-guide-section {
        break-inside: avoid;
        box-shadow: none;
    }
}
/* DIRCOLORS GUIDE PAGE END */

/* DirColors mobile overflow safeguard */
.dircolors-guide-layout,
.dircolors-guide-content,
.dircolors-guide-section,
.dircolors-guide-table-wrap,
.dircolors-guide-figure {
    min-width: 0;
}

.dircolors-guide-table-wrap,
.dircolors-guide-figure {
    width: 100%;
}

@media (max-width: 660px) {
    .dircolors-guide-table {
        min-width: 500px;
    }
}

.dircolors-guide-back {
    display: flex;
}
