:root {
    --page-bg: #dfdfdf;
    --panel-bg: #f0f0f0;
    --blue: #000080;
    --ink: #111;
    --muted: #575757;
    --shadow: #808080;
    --link: #0000ee;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--ink);
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

img { max-width: 100%; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }

.site-shell {
    width: min(95%, 1180px);
    margin: 20px auto 48px;
}

.site-shell--narrow { max-width: 480px; }

.site-header {
    text-align: center;
    padding: 8px;
}

.site-shell--narrow .site-header {
    padding-bottom: 0;
}

.site-shell--narrow > main {
    padding: 0 8px 8px;
}

.site-header__logo {
    display: block;
    width: 112px;
    margin: 0 auto 10px;
}

.site-brand {
    display: block;
    width: max-content;
    margin: 0;
    color: #000;
    text-decoration: none;
}

.site-brand:hover { text-decoration: none; }

.site-branding {
    position: relative;
    width: max-content;
    margin: 0 auto 10px;
}

.site-name {
    margin: 0 0 10px;
    color: #000;
    font-family: "Spicy Rice", cursive;
    font-size: 50px;
    font-weight: 700;
    line-height: normal;
}

.site-brand .site-name { margin-bottom: 0; }

.site-blog-link {
    position: absolute;
    left: calc(100% + 7px);
    top: auto;
    bottom: 7px;
    z-index: 3;
    margin: 0;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    padding: 3px 6px;
    background: #ffffa8;
    color: #000;
    font-family: "Share Tech Mono", monospace;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.site-blog-link:hover {
    background: #fff;
    text-decoration: none;
}

.site-blog-link:active {
    box-shadow: none;
    transform: translate(2px, 2px);
}

.win-button {
    display: inline-block;
    min-height: 36px;
    border: 2px solid #000;
    padding: 4px 10px;
    background: #e0e0e0;
    color: #000;
    box-shadow: 2px 2px 0 var(--shadow);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.win-button:hover { background: #fff; }
.win-button:active { box-shadow: none; transform: translate(2px, 2px); }
.win-button--primary { background: #ffffa8; }

.article-cta {
    border-color: #000;
    background: linear-gradient(135deg, #fff8a8 0%, #e4f7ff 52%, #ffd6e8 100%);
    box-shadow: 4px 4px 0 #000;
}

.article-cta .window-titlebar {
    background: linear-gradient(90deg, var(--blue), #8a1478);
}

.article-cta .window-content {
    padding: 22px;
}

.article-cta h2 {
    color: var(--blue);
    text-shadow: 2px 2px 0 #fff;
}

.article-cta p {
    max-width: 720px;
    font-size: 19px;
}

.window-section {
    margin-bottom: 18px;
    border: 2px solid #000;
    background: var(--panel-bg);
    box-shadow: 3px 3px 0 var(--shadow);
}

.window-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 7px 10px;
    background: var(--blue);
    color: #fff;
    font-family: "Share Tech Mono", monospace;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
}

.window-content { padding: 14px; }
.window-content > :first-child { margin-top: 0; }
.window-content > :last-child { margin-bottom: 0; }

/* Exact section styling used by index.html. */
.index-section {
    margin-bottom: 15px;
    box-shadow: 2px 2px 0 #808080;
}

.index-section .window-titlebar {
    display: block;
    min-height: 0;
    padding: 8px 10px;
    line-height: normal;
}

.index-section .window-content {
    padding: 8px;
    line-height: normal;
}

.index-section .window-content > :first-child { margin-top: 10px; }
.index-section .window-content > :last-child { margin-bottom: 10px; }
.index-section p b { font-family: "Share Tech Mono", monospace; }

.eyebrow {
    margin-bottom: 6px;
    font-family: "Share Tech Mono", monospace;
    font-weight: 700;
    text-transform: uppercase;
}

h1, h2, h3 {
    line-height: 1.16;
}

h1 { margin: 5px 0 12px; font-size: clamp(32px, 5vw, 54px); }
h2 { margin: 0 0 10px; font-size: clamp(25px, 3vw, 34px); }
h3 { margin: 18px 0 6px; font-size: 21px; }
p { margin: 10px 0; }

.lead { font-size: clamp(19px, 2.2vw, 23px); }
.muted { color: var(--muted); }
.meta { font-family: "Share Tech Mono", monospace; font-size: 16px; }
.meta span + span::before { content: " · "; }

.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
    align-items: start;
}

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

.article-aside {
    position: sticky;
    top: 14px;
}

.article-main > .window-section[id],
.article-aside .window-section[id] {
    scroll-margin-top: 10px;
}

.toc {
    margin: 0;
    padding-left: 22px;
}

.toc li { margin: 7px 0; }

.toc--plain {
    list-style: none;
    padding-left: 0;
    counter-reset: toc-item;
}

.toc--plain li {
    counter-increment: toc-item;
    display: grid;
    grid-template-columns: 2.35em minmax(0, 1fr);
    gap: 6px;
    align-items: baseline;
    margin: 9px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.toc--plain li::before {
    content: counter(toc-item, decimal-leading-zero);
    color: #e23f1c;
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
}

.toc a {
    color: #164b9b;
    text-decoration: none;
    border-bottom: 1px dotted #6b8fc7;
    padding: 1px 2px;
    margin: -1px -2px;
}

.toc a:hover {
    color: #092f70;
    background: #dcecff;
    border-bottom-style: solid;
}

.toc--extras {
    margin-top: 10px;
    padding-left: 22px;
}

.hero-card {
    overflow: hidden;
    background: #cfcfcf;
}

.hero-card .window-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: center;
    padding: 22px;
}

.hero-watch {
    min-height: 330px;
    display: grid;
    place-items: center;
}

.watch-shot {
    position: relative;
    width: 230px;
    height: 390px;
    margin: 4px auto;
}

.watch-shot__screen {
    position: absolute;
    z-index: 1;
    top: 97px;
    left: 35px;
    width: 160px;
    height: 194px;
    object-fit: cover;
    border-radius: 24px;
}

.step-section .watch-shot__screen {
    object-position: center top;
    transform: scale(1.015);
}

.offline-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
    justify-content: center;
}

.offline-gallery figure {
    margin: 0;
    text-align: center;
}

.offline-gallery .post-card__image {
    display: block;
    width: 128px;
    height: 180px;
    margin: 0 auto;
    zoom: 1.6;
}

.offline-gallery figcaption {
    margin-top: 7px;
    font-size: 0.78rem;
    font-weight: 700;
}

.watch-shot__frame {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.step-section .window-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 28px;
    align-items: center;
    padding: 22px;
}

.step-section--website .window-content {
    grid-template-columns: 1fr;
}

.step-section--website .step-media {
    width: min(100%, 500px);
    margin: 0 auto;
}

.website-shot {
    margin: 0;
    border: 2px solid #000;
    background: #fff;
    box-shadow: 3px 3px 0 var(--shadow);
}

.website-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.route-operations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.route-operations article {
    border: 2px solid #111;
    padding: 12px;
    background: #fff;
    box-shadow: 2px 2px 0 var(--shadow);
}

.route-operations .post-card__image {
    display: block;
    margin: 0 auto 12px;
    zoom: 1.6;
}

.route-operations h3,
.route-operations p { margin: 0; }

.route-operations h3 { margin-bottom: 6px; }

@media (max-width: 520px) {
    .route-operations { grid-template-columns: 1fr; }
}

.step-section--image-left .step-copy { order: 2; }
.step-section--image-left .step-media { order: 1; }
.step-section--image-left .window-content {
    grid-template-columns: 270px minmax(0, 1fr);
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-right: 8px;
    border: 2px solid #000;
    background: #ffffa8;
    box-shadow: 2px 2px 0 var(--shadow);
    font-family: "Share Tech Mono", monospace;
    vertical-align: middle;
}

.checklist { padding-left: 24px; }
.checklist li { margin: 8px 0; }
.checklist li::marker { content: "✓  "; font-weight: 800; }

.install-checklist-item {
    margin-top: 12px !important;
    padding-bottom: 8px;
}

.install-checklist-item__label {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.install-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.install-link {
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    color: #000;
    font-family: "Share Tech Mono", monospace;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: 6px 8px;
    text-decoration: none;
}

.install-link--primary { background: #ffffa8; }
.install-link--berlin { background: #e4f7ff; }
.install-link--info { background: #ffd6e8; }

.install-link:hover { background: #fff; }

.install-link:active {
    box-shadow: none;
    transform: translate(2px, 2px);
}

.callout {
    margin: 16px 0;
    border: 2px solid #000;
    border-left-width: 10px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: 2px 2px 0 var(--shadow);
}

.callout--tip { border-left-color: #14833b; }
.callout--warning { border-left-color: #d23c2c; background: #fff0e9; }
.callout--note { border-left-color: var(--blue); background: #eef1ff; }
.callout strong { font-family: "Share Tech Mono", monospace; }

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 2px solid #000;
    background: #111;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post-list {
    display: grid;
    gap: 12px;
}

.post-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 14px;
    border: 2px solid #000;
    padding: 10px;
    background: #fff;
    color: #000;
    box-shadow: 2px 2px 0 var(--shadow);
    text-decoration: none;
}

.post-card:hover { background: #ffffe5; }

.post-card[hidden] {
    display: none !important;
}

.post-card__image {
    position: relative;
    isolation: isolate;
    width: 128px;
    height: 180px;
    overflow: visible;
    justify-self: center;
    background: transparent;
}

.post-card__image::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 6px;
    bottom: 6px;
    left: 32px;
    width: 64px;
    border: 1px solid #555;
    border-radius: 8px;
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .10) 0 2px, transparent 2px 5px),
        linear-gradient(
            90deg,
            var(--strap-left, #334b63) 0 31%,
            #eee3cc 31% 72%,
            var(--strap-right, #ed7952) 72%
        );
}

.post-card__image::after {
    content: none;
}

.post-card__screen {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 5px;
    width: 118px;
    height: 140px;
    padding: 9px;
    overflow: hidden;
    border: none;
    border-radius: 38px;
    background: #a8a8a8;
    box-shadow: none;
}

.post-card__screen::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 6px;
    background: #111;
    border-radius: 31px;
    pointer-events: none;
}

.post-card__screen img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 28px;
    transform: none;
    transform-origin: center;
}

.post-card > img {
    width: 118px;
    height: 96px;
    border: 1px solid #000;
    object-fit: cover;
}

.post-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.post-card h2, .post-card h3 { margin: 0 0 5px; font-size: 21px; }
.post-card p { margin: 0; color: #333; }

.post-card__tags {
    margin-top: auto;
    padding-top: 7px;
}

.tag {
    display: inline-block;
    margin: 3px 3px 3px 0;
    border: 1px solid #000;
    padding: 1px 6px;
    background: #fff;
    font-family: "Share Tech Mono", monospace;
    font-size: 14px;
}

button.tag {
    cursor: pointer;
}

.tag.is-active {
    background: var(--blue);
    color: #fff;
}

.article-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 6px 6px 3px;
}

.topic-filter-box {
    margin-bottom: 12px;
    border: 2px solid #000;
    padding: 0;
    background: var(--panel-bg);
    box-shadow: 2px 2px 0 var(--shadow);
}

.topic-filter-box #topic-filter-label {
    margin: 0;
    padding: 2px 6px;
    border-bottom: 1px solid #777;
    background: #c8c8c8;
    color: #000;
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    line-height: 1.35;
}

.topic-filter-box #topic-filter-label b { font-weight: 700; }

.topic-filter-box .filter-status {
    margin: 0;
    padding: 1px 6px 5px;
    color: var(--muted);
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
}

.articles-error {
    margin: 0;
    color: #990000;
}

.faq details {
    border-bottom: 1px dashed #777;
    padding: 10px 0;
}

.faq details:last-child { border-bottom: 0; }
.faq summary { font-weight: 700; cursor: pointer; }

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    min-width: 0;
    flex: 1;
    border: 2px inset #aaa;
    padding: 6px 9px;
    background: #fff;
}

.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer {
    padding: 12px;
    text-align: center;
    font-size: 15px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    padding: 8px;
    background: #fff;
    z-index: 99;
}

.skip-link:focus { left: 8px; top: 8px; }

@media (max-width: 1120px) {
    .offline-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .article-grid { grid-template-columns: 1fr; }
    .article-aside {
        position: static;
        order: -1;
    }
    .hero-card .window-content,
    .step-section .window-content { grid-template-columns: 1fr; }
    .hero-watch { min-height: 0; }
    .step-section--image-left .step-copy,
    .step-section--image-left .step-media { order: initial; }
}

@media (max-width: 520px) {
    .site-shell { width: calc(100% - 14px); margin-top: 7px; }
    .window-content, .hero-card .window-content, .step-section .window-content { padding: 12px; }
    .post-card { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
    .post-card__image { width: 100px; height: 146px; }
    .post-card__image::before { left: 25px; width: 50px; }
    .post-card__screen {
        top: 17px;
        left: 3px;
        width: 94px;
        height: 111px;
        padding: 8px;
        border: none;
        border-radius: 32px;
        box-shadow: none;
    }
    .post-card__screen::after {
        inset: 5px;
        border-radius: 26px;
    }
    .post-card__screen img {
        border-radius: 23px;
        transform: none;
    }
    .offline-gallery .post-card__image,
    .route-operations .post-card__image {
        width: 128px;
        height: 180px;
    }
    .offline-gallery .post-card__image::before,
    .route-operations .post-card__image::before {
        left: 32px;
        width: 64px;
    }
    .offline-gallery .post-card__screen,
    .route-operations .post-card__screen {
        top: 20px;
        left: 5px;
        width: 118px;
        height: 140px;
        padding: 9px;
        border-radius: 38px;
    }
    .offline-gallery .post-card__screen::after,
    .route-operations .post-card__screen::after {
        inset: 6px;
        border-radius: 31px;
    }
    .offline-gallery .post-card__screen img,
    .route-operations .post-card__screen img {
        border-radius: 28px;
    }
    .route-operations .post-card__image {
        height: 180px;
        zoom: 1.8;
    }
    .route-operations .post-card__screen {
        top: 50%;
        transform: translateY(-50%);
    }
    .post-card > img { width: 86px; height: 86px; }
    .newsletter-form { display: grid; }
}

@media (max-width: 470px) {
    .offline-gallery { grid-template-columns: 1fr; }
    .offline-gallery .post-card__image {
        height: 180px;
        zoom: 1.8;
    }
    .offline-gallery .post-card__screen {
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 500px) {
    .site-shell--narrow {
        width: 95%;
        margin: 10px auto;
    }
}

@media (max-width: 400px) {
    body { font-size: 16px; }
    .site-shell--narrow {
        width: 100%;
        margin: 5px auto;
    }
    .window-titlebar { font-size: 18px; }
}
