:root {
    --blog-page-width: 1420px;
    --blog-page-padding: 25px;
    --blog-accent: #a64000;
    --blog-accent-bright: #e87820;
    --blog-ink: #222;
    --blog-muted: #666;
    --blog-surface: #f6f5f2;
}
* { box-sizing: border-box; }
body { margin: 0; color: #444; background: #fff; font: 16px/1.7 Arial, Helvetica, sans-serif; }
a { color: var(--blog-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--blog-accent); outline-offset: 4px; }
h1, h2, h3, h4 { color: #333; font-weight: 400; line-height: 1.25; }
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 21px; }
select, input, button { max-width: 100%; padding: 7px 10px; border: 1px solid #ccc; border-radius: 0; background: #fff; font: inherit; }
button { cursor: pointer; color: #fff; background: var(--blog-accent); border-color: var(--blog-accent); }

/* Header aligns with the main Systemstöd site's 1420px container. */
.blog-nav { background: #fff; border-bottom: 1px solid #ddd; }
.blog-nav > div { display: flex; align-items: stretch; max-width: var(--blog-page-width); min-height: 82px; margin: 0 auto; padding: 0 var(--blog-page-padding); }
.blog-brand { display: flex; align-items: center; flex: 0 0 auto; margin-right: auto; padding-right: 24px; color: var(--blog-ink); font-size: 24px; font-weight: 700; line-height: 40px; }
.blog-brand:hover { text-decoration: none; }
.blog-nav > div > a:not(.blog-brand) { display: flex; align-items: center; justify-content: center; padding: 0 20px; color: #444; font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: .025em; text-transform: uppercase; white-space: nowrap; text-decoration: none; transition: background-color .12s ease, color .12s ease; }
.blog-nav > div > a:not(.blog-brand):hover { background: #f1f1f1; color: #111; }
.blog-nav a:focus-visible { outline-offset: -4px; }

/* The image comes from the Blog Banner media picker in CMS. */
.blog-banner { position: relative; isolation: isolate; display: flex; align-items: center; background: #333; border-bottom: 1px solid #e6e3dc; }
.blog-banner-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.blog-banner::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #000b, #0009); }
.blog-banner > div { width: 100%; max-width: var(--blog-page-width); margin: auto; padding: 48px var(--blog-page-padding); }
.blog-banner p { max-width: 980px; margin: 0; color: #fff; font-size: clamp(27px, 3vw, 40px); font-weight: 600; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: break-word; }

/* Main content and filters. */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 64px; width: 100%; max-width: var(--blog-page-width); margin: 44px auto 60px; padding: 0 var(--blog-page-padding); }
.blog-layout > main, .blog-layout > aside { min-width: 0; }
.blog-topics { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid #deddd8; }
.blog-topics label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.blog-topics p { margin: 0 0 14px; color: var(--blog-muted); font-size: 15px; }
.blog-topics select {
    display: block; width: 360px; max-width: 100%; min-height: 54px;
    padding: 13px 48px 13px 18px; appearance: none; -webkit-appearance: none;
    color: var(--blog-ink); background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
    border-color: #c8c6bf; font-size: 16px; line-height: 1.5; cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.blog-topics select:hover { border-color: #555; }
.blog-topics select:focus-visible { outline: 2px solid #9b7200; outline-offset: 3px; border-color: #9b7200; box-shadow: 0 0 0 4px #ffcb0026; }

/* Article list: quiet metadata, stronger headlines, distinct actions. */
.blog-posts { list-style: none; margin: 0; padding: 0; }
.blog-list-heading { margin: 0 0 28px; font-size: clamp(26px, 2.3vw, 34px); font-weight: 600; letter-spacing: -.02em; }
.blog-posts > li { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid #e6e3dc; }
.blog-posts article { display: flex; flex-direction: column; align-items: flex-start; }
.blog-posts h2 { order: 1; max-width: 30ch; margin: 0 0 12px; font-size: clamp(24px, 2.2vw, 31px); font-weight: 600; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: break-word; hyphens: auto; }
.blog-posts h2 a:hover { color: var(--blog-accent); text-decoration: none; }
.blog-posts .blog-meta { order: 0; }
.blog-meta { margin: 0 0 12px; color: var(--blog-muted); font-size: 13px; }
.blog-meta time { display: block; margin-bottom: 7px; }
.blog-tag { display: inline-block; margin: 0 5px 4px 0; padding: 3px 8px; color: #555; background: #f1efeb; font-size: 11px; font-weight: 600; line-height: 1.4; }
.blog-tag:hover { color: var(--blog-accent); background: #fff0df; text-decoration: underline; }
.blog-posts p { order: 2; max-width: 72ch; margin: 0 0 16px; font-size: 17px; font-weight: 400; line-height: 1.7; }
.blog-posts .blog-read-more { order: 3; margin-bottom: 0; font-size: 14px; font-weight: 700; }
.blog-read-more a, .blog-back a, .blog-pager a { color: var(--blog-accent); }
.blog-read-more a { display: inline-flex; align-items: center; gap: 9px; }
.blog-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; }
.blog-back { margin-top: 40px; }

/* Article body retains the editor's content formatting. */
.blog-article h1 { max-width: 28ch; margin-top: 0; font-size: clamp(29px, 3vw, 42px); font-weight: 600; letter-spacing: -.025em; overflow-wrap: break-word; hyphens: auto; }
.blog-body { max-width: 70ch; font-size: clamp(18px, calc(16px + .2vw), 20px); line-height: 1.75; word-break: normal; overflow-wrap: break-word; hyphens: auto; }
.blog-body, .blog-article h1, .blog-posts h2 { hyphenate-limit-chars: 12 4 4; }
.blog-body img { max-width: 100%; height: auto; }
.blog-body iframe { max-width: 100%; }
.blog-body iframe[src*="youtube.com/embed/"], .blog-body iframe[src*="youtube-nocookie.com/embed/"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.blog-body table { display: block; max-width: 100%; overflow: auto; }
.blog-body h2, .blog-body h3, .blog-body h4 { margin-top: 30px; }
.blog-body blockquote { margin-right: 0; margin-left: 0; padding-left: 20px; border-left: 4px solid #ddd; }
.blog-body pre { max-width: 100%; overflow-x: auto; white-space: pre; hyphens: none; }
.blog-body code { hyphens: none; }
.blog-body a { text-decoration: underline; text-underline-offset: 3px; }
.blog-body a:hover { color: var(--blog-accent); }
.blog-body .row { display: flex; flex-wrap: wrap; gap: 24px; }
.blog-body .col-md-6 { flex: 1 1 250px; min-width: 0; }

/* Published recommendations are separate from the editor's article body. */
.blog-related { margin-top: 40px; padding-top: 28px; border-top: 1px solid #e6e3dc; }
.blog-related > h2 { margin: 0 0 24px; font-size: 26px; font-weight: 600; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.blog-related-grid > li { min-width: 0; }
.blog-related-card { display: block; height: 100%; }
.blog-related-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--blog-surface); }
.blog-related-card h3 { margin: 14px 0 0; font-size: 19px; font-weight: 600; line-height: 1.4; overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 12 4 4; }
.blog-related-card:hover { color: var(--blog-accent); }

/* Sidebar and footer. */
.blog-layout > aside { padding: 26px; background: var(--blog-surface); border-top: 3px solid var(--blog-accent-bright); }
.blog-layout > aside section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid #deddd8; }
.blog-layout > aside section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.blog-layout > aside h2 { margin: 0 0 16px; font-size: 19px; font-weight: 600; line-height: 1.35; }
.blog-layout > aside p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; }
.blog-layout > aside a:hover { color: var(--blog-accent); }
.blog-layout > aside section:first-child > a { display: inline-block; color: var(--blog-accent); border-bottom: 1px solid var(--blog-accent); font-size: 14px; font-weight: 700; }
.blog-layout > aside form { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-layout > aside input { width: 100%; min-width: 0; font-size: 14px; }
.blog-layout > aside button { padding: 8px 18px; font-size: 14px; font-weight: 600; }
.blog-footer { padding: 25px max(25px, calc((100% - 1370px) / 2)); color: #555; background: var(--blog-surface); border-top: 1px solid #ddd; font-size: 14px; }
.blog-footer > div { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.blog-footer h2 { font-size: 18px; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 1000px) {
    .blog-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
    .blog-layout > aside { padding: 22px; }
}
@media (max-width: 760px) {
    .blog-related-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    h1 { font-size: 29px; }
    .blog-nav > div { flex-wrap: wrap; }
    .blog-brand { width: 100%; padding: 16px 0; }
    .blog-nav > div > a:not(.blog-brand) { min-height: 48px; padding: 0 14px; }
    .blog-banner > div { padding-top: 32px; padding-bottom: 32px; }
    .blog-layout { grid-template-columns: minmax(0, 1fr); margin-top: 30px; gap: 36px; }
    .blog-posts h2 { max-width: none; }
    .blog-layout > aside { padding: 24px; }
    .blog-body { font-size: 17px; }
    .blog-footer > div { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
    .blog-nav > div > a:not(.blog-brand) { padding: 0 10px; font-size: 14px; }
}
@media (forced-colors: active) {
    .blog-topics select { appearance: auto; background-image: none; }
}
@media (prefers-reduced-motion: reduce) {
    .blog-nav a, .blog-topics select { transition: none; }
}
