/*
Theme Name: Bleib Virenfrei Magazin
Theme URI: https://www.bleib-virenfrei.de/
Author: bleib-Virenfrei
Author URI: https://www.bleib-virenfrei.de/
Description: Ein schnelles, zugängliches Magazin-Theme für IT-Sicherheit, Tests und Anleitungen.
Version: 1.2.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bleib-virenfrei
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --bv-ink: #111d2c;
  --bv-muted: #5f6c7b;
  --bv-line: #dfe6ec;
  --bv-paper: #ffffff;
  --bv-soft: #f4f7fa;
  --bv-brand: #3983ab;
  --bv-brand-dark: #245a78;
  --bv-accent: #f39200;
  --bv-danger: #c74242;
  --bv-radius: 16px;
  --bv-shadow: 0 16px 42px rgba(17, 29, 44, .10);
  --bv-font: "Segoe UI Variable Text", "Segoe UI", Arial, Helvetica, sans-serif;
  --bv-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bv-ink);
  background: var(--bv-paper);
  font-family: var(--bv-font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--bv-brand-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--bv-brand); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--bv-accent); outline-offset: 3px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: fixed; z-index: 100000; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; }
.wrap { width: min(calc(100% - 40px), var(--bv-width)); margin-inline: auto; }

/* Header */
.site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--bv-line); box-shadow: 0 7px 24px rgba(17,29,44,.045); }
.site-header__main { display: flex; align-items: center; min-height: 82px; gap: 34px; }
.site-branding { display: flex; align-items: center; flex: 0 0 auto; }
.header-logo { display: block; width: clamp(230px, 28vw, 315px); height: auto; }
.brand-link { display: inline-flex; align-items: center; color: var(--bv-ink); text-decoration: none; }
.brand-name { font-family: Verdana, Geneva, sans-serif; font-size: 35px; font-weight: 700; line-height: 1; letter-spacing: .5px; white-space: nowrap; }
.brand-blue { color: #3983ab; }
.brand-orange { color: #f39200; }
.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { display: block; padding: 11px 12px; color: var(--bv-ink); font-size: 14px; font-weight: 650; line-height: 1.35; letter-spacing: .005em; text-decoration: none; border-radius: 8px; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--bv-brand-dark); background: var(--bv-soft); }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.icon-button, .menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: var(--bv-ink); background: transparent; border: 1px solid var(--bv-line); border-radius: 50%; cursor: pointer; }
.icon-button svg, .menu-toggle svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }
.search-panel { display: none; padding: 0 0 18px; }
.search-panel.is-open { display: block; }
.search-form { position: relative; display: flex; }
.search-field { width: 100%; min-height: 50px; padding: 10px 130px 10px 16px; border: 1px solid var(--bv-line); border-radius: 10px; }
.search-submit { position: absolute; inset: 5px 5px 5px auto; padding: 0 18px; color: #fff; background: var(--bv-brand); border: 0; border-radius: 7px; font-weight: 800; cursor: pointer; }

/* Front page */
.breaking { border-bottom: 1px solid var(--bv-line); }
.breaking__inner { display: flex; align-items: center; min-height: 47px; gap: 15px; overflow: hidden; }
.breaking__label { flex: 0 0 auto; padding: 5px 9px; color: #fff; background: var(--bv-danger); border-radius: 5px; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.breaking__link { overflow: hidden; color: var(--bv-ink); font-size: 14px; font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.front-main { padding: 38px 0 70px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); gap: 22px; }
.story { position: relative; overflow: hidden; background: var(--bv-soft); border-radius: var(--bv-radius); }
.story--lead { min-height: 430px; }
.story__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.4); background: linear-gradient(135deg, #112838, #3983ab); }
.story__placeholder svg { width: 120px; }
.story::after { content: ""; position: absolute; inset: 20% 0 0; background: linear-gradient(transparent, rgba(6, 17, 29, .94)); }
.story__body { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 34px; color: #fff; }
.story__body a { color: inherit; text-decoration: none; }
.story__title { max-width: 780px; margin: 10px 0 12px; font-family: var(--bv-font); font-size: clamp(30px, 4vw, 50px); font-weight: 720; line-height: 1.08; letter-spacing: -.035em; }
.story__excerpt { max-width: 680px; margin: 0; color: #dce6eb; font-size: 16px; line-height: 1.55; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--bv-brand-dark); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.story .eyebrow { color: var(--bv-accent); }
.eyebrow::before { content: ""; width: 19px; height: 2px; background: currentColor; }
.meta { color: var(--bv-muted); font-size: 13px; font-weight: 650; }
.story .meta { color: #dce6eb; }
.side-stack { display: grid; gap: 22px; }
.mini-story { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 14px; min-height: 0; padding: 12px; background: #fff; border: 1px solid var(--bv-line); border-radius: var(--bv-radius); box-shadow: 0 8px 24px rgba(17,29,44,.04); }
.mini-story > div { min-width: 0; }
.mini-story__media { overflow: hidden; aspect-ratio: 1 / .84; background: var(--bv-soft); border-radius: 10px; }
.mini-story__media img { width: 100%; height: 100%; object-fit: cover; }
.mini-story h3 { margin: 4px 0 6px; font-family: var(--bv-font); font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.018em; }
.mini-story h3 a { color: var(--bv-ink); text-decoration: none; }
.mini-story h3 a:hover { color: var(--bv-brand); }
.guide-card { position: relative; overflow: hidden; padding: 22px; color: #fff; background: var(--bv-brand); border-radius: var(--bv-radius); }
.guide-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -75px; bottom: -90px; border: 30px solid rgba(255,255,255,.1); border-radius: 50%; }
.guide-card__kicker { display: inline-flex; padding: 5px 8px; color: #2d1b00; background: var(--bv-accent); border-radius: 5px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.guide-card h2 { position: relative; margin: 11px 0 8px; font-family: var(--bv-font); font-size: 23px; font-weight: 720; line-height: 1.13; letter-spacing: -.025em; }
.guide-card p { position: relative; margin: 0 0 14px; color: #eef6fb; font-size: 13px; line-height: 1.48; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 15px; border-radius: 8px; font-size: 14px; font-weight: 850; text-decoration: none; }
.button--light { color: var(--bv-ink); background: #fff; }
.button--light:hover { color: var(--bv-brand-dark); }
.button--brand { color: #fff; background: var(--bv-brand); }
.button--brand:hover { color: #fff; background: var(--bv-brand-dark); }
.section { margin-top: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 13px; border-bottom: 1px solid var(--bv-line); }
.section-title { margin: 0; font-family: var(--bv-font); font-size: clamp(27px, 3vw, 36px); font-weight: 720; line-height: 1.12; letter-spacing: -.03em; }
.section-link { flex: 0 0 auto; font-size: 14px; font-weight: 800; text-decoration: none; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cards-grid--with-resource { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.post-card { min-width: 0; padding: 14px 14px 18px; background: #fff; border: 1px solid var(--bv-line); border-radius: var(--bv-radius); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--bv-shadow); }
.post-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 17px; background: var(--bv-soft); border-radius: 12px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__media img { transform: scale(1.025); }
.post-card h3 { margin: 7px 0 9px; font-family: var(--bv-font); font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.post-card h3 a { color: var(--bv-ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--bv-brand); }
.post-card p { margin: 0; color: var(--bv-muted); font-size: 15px; line-height: 1.6; }
.ransomware-card { display: flex; flex-direction: column; border-top: 3px solid var(--bv-accent); }
.ransomware-card__media { display: grid; place-items: center; color: var(--bv-brand-dark); background: linear-gradient(135deg, #edf4f8 0%, #dcebf3 100%); }
.ransomware-card__media svg { width: 60px; height: 60px; }
.ransomware-card__link { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin-top: auto; padding-top: 16px; color: var(--bv-brand-dark); font-size: 14px; font-weight: 850; text-decoration: none; }
.ransomware-card__link:hover { color: var(--bv-accent); }
.topic-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.topic-link { display: flex; align-items: center; justify-content: space-between; min-height: 75px; padding: 16px 18px; color: var(--bv-ink); background: var(--bv-soft); border: 1px solid transparent; border-radius: 12px; font-weight: 850; text-decoration: none; }
.topic-link:hover { color: var(--bv-brand-dark); border-color: var(--bv-brand); background: #fff; }
.topic-icon { flex: 0 0 auto; width: 21px; height: 21px; color: var(--bv-brand); transition: transform .2s ease; }
.topic-link:hover .topic-icon { transform: translate(2px, -2px); }
.front-bottom { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr); gap: 42px; padding: 34px; background: var(--bv-soft); border-radius: 20px; }
.front-bottom--no-feed { grid-template-columns: 1fr; }
.editorial-box { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 28px; background: #fff; border: 1px solid var(--bv-line); border-radius: var(--bv-radius); }
.editorial-box h2 { margin: 8px 0 10px; font-size: 24px; font-weight: 720; line-height: 1.2; letter-spacing: -.025em; }
.editorial-box p { max-width: 580px; margin: 0; color: var(--bv-muted); font-size: 15px; line-height: 1.65; }
.front-bottom--no-feed { padding: 0; background: transparent; }
.front-bottom--no-feed .editorial-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 30px 34px; background: linear-gradient(135deg, #edf4f8 0%, #f8fafc 100%); border-color: #d5e2ea; }
.feed-list { display: grid; gap: 0; }
.feed-item { display: grid; grid-template-columns: 190px 1fr; gap: 22px; padding: 22px 0; border-top: 1px solid var(--bv-line); }
.feed-item:first-child { padding-top: 0; border-top: 0; }
.feed-item__media { overflow: hidden; aspect-ratio: 16/10; background: var(--bv-soft); border-radius: 10px; }
.feed-item__media img { width: 100%; height: 100%; object-fit: cover; }
.feed-item h3 { margin: 5px 0 8px; font-family: var(--bv-font); font-size: 22px; font-weight: 700; line-height: 1.22; }
.feed-item h3 a { color: var(--bv-ink); text-decoration: none; }
.feed-item p { margin: 0; color: var(--bv-muted); font-size: 14px; line-height: 1.55; }
.sidebar-box { padding: 24px; background: #fff; border: 1px solid var(--bv-line); border-radius: var(--bv-radius); }
.sidebar-box + .sidebar-box { margin-top: 20px; }
.sidebar-box h2, .sidebar-box h3 { margin: 0 0 12px; font-family: var(--bv-font); font-size: 21px; font-weight: 700; line-height: 1.28; }
.sidebar-box p { margin: 0 0 14px; color: var(--bv-muted); font-size: 14px; }
.sidebar-box ul { margin: 0; padding-left: 20px; }

/* Article, archives and standard content */
.content-wrap { width: min(calc(100% - 40px), 1120px); margin: 0 auto; padding: 54px 0 80px; }
.archive-header { max-width: 780px; margin-bottom: 38px; }
.archive-header h1, .entry-header h1 { max-width: 980px; margin: 0 0 16px; font-family: var(--bv-font); font-size: clamp(36px, 4.3vw, 50px); font-weight: 730; line-height: 1.1; letter-spacing: -.038em; }
.archive-description { color: var(--bv-muted); }
.posts-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 26px; }
.archive-posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.author-profile { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 48px; padding: 32px; background: linear-gradient(135deg, #f2f7fa 0%, #fff 100%); border: 1px solid var(--bv-line); border-radius: 18px; }
.author-profile__avatar { display: block; width: 150px; height: 150px; object-fit: cover; border: 5px solid #fff; border-radius: 50%; box-shadow: 0 10px 28px rgba(17,29,44,.13); }
.author-profile h1 { margin: 8px 0 12px; font-family: var(--bv-font); font-size: clamp(36px, 4vw, 50px); font-weight: 730; line-height: 1.08; letter-spacing: -.038em; }
.author-profile__bio { max-width: 820px; color: var(--bv-muted); font-size: 17px; line-height: 1.72; }
.author-profile__bio p { margin: 0; }
.author-profile__link { display: inline-flex; align-items: center; margin-top: 17px; color: var(--bv-brand-dark); font-size: 14px; font-weight: 800; text-decoration: none; }
.author-profile__link:hover { color: var(--bv-accent); }
.author-posts-title { margin-bottom: 25px; padding-bottom: 13px; border-bottom: 1px solid var(--bv-line); font-size: clamp(25px, 3vw, 34px); font-weight: 720; letter-spacing: -.03em; }
.entry-header { max-width: 1120px; margin: 0 auto 28px; padding-top: 42px; padding-bottom: 24px; text-align: left; }
.entry-header .meta { margin-top: 16px; }
.single .entry-header { margin-top: 32px; padding: 24px 0 10px; background: none; border: 0; border-radius: 0; }
.single .entry-header .eyebrow { padding: 6px 10px; background: #e4f0f6; border-radius: 999px; }
.single .entry-header .eyebrow::before { display: none; }
.single .entry-header h1 { margin-top: 15px; }
.entry-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.entry-byline a { color: var(--bv-brand-dark); text-decoration: none; }
.entry-author-wrap, .entry-author { display: inline-flex; align-items: center; gap: 7px; }
.entry-author { font-weight: 750; }
.entry-author__avatar { display: block; width: 32px; height: 32px; object-fit: cover; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(17,29,44,.16); }
.entry-author:hover span { color: var(--bv-accent); }
.entry-hero { overflow: hidden; width: min(calc(100% - 40px), 940px); margin: 0 auto 40px; border-radius: 15px; }
.entry-hero img { width: 100%; max-height: 380px; aspect-ratio: 5 / 2; object-fit: cover; }
.entry-content { width: min(calc(100% - 40px), 880px); margin: 0 auto; font-family: var(--bv-font); font-size: 18px; line-height: 1.78; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--bv-ink); font-family: var(--bv-font); font-weight: 620; line-height: 1.25; letter-spacing: -.015em; }
.entry-content h2 { margin: 1.3em 0 .4em; font-size: 31px; }
.entry-content h3 { margin: 1.25em 0 .4em; font-size: 24px; }
.entry-content h4 { margin: 1.2em 0 .35em; }
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: 24px; }
.entry-content a { font-weight: 650; }
.entry-content blockquote { margin: 2em 0; padding: 5px 0 5px 24px; color: #344455; border-left: 4px solid var(--bv-brand); font-size: 22px; }
.entry-content img { border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--bv-font); font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--bv-line); text-align: left; }
.entry-content th { background: var(--bv-soft); }
.entry-content pre { overflow: auto; padding: 20px; color: #eef6f5; background: var(--bv-ink); border-radius: 10px; font-size: 14px; }
.entry-footer { width: min(calc(100% - 40px), 880px); margin: 35px auto 0; padding-top: 20px; border-top: 1px solid var(--bv-line); }
.single-layout--wide .entry-content, .single-layout--wide .entry-footer, .single-layout--wide .comments-area { width: min(calc(100% - 40px), 1080px); }
.single-layout--wide .entry-hero { width: min(calc(100% - 40px), 1120px); }
.single-layout--narrow .entry-content, .single-layout--narrow .entry-footer, .single-layout--narrow .comments-area { width: min(calc(100% - 40px), 720px); }
.single-layout--narrow .entry-hero { width: min(calc(100% - 40px), 820px); }
.single-layout--toc .entry-hero { width: min(calc(100% - 40px), 1180px); }
.article-body--toc { display: grid; grid-template-columns: minmax(210px, 240px) minmax(0, 820px); justify-content: center; align-items: start; gap: 48px; width: min(calc(100% - 40px), 1180px); margin: 0 auto; }
.article-body--toc .entry-content { grid-column: 2; width: 100%; margin: 0; }
.article-body--toc-empty { display: block; max-width: 820px; }
.single-layout--toc .entry-footer, .single-layout--toc .comments-area { width: min(calc(100% - 40px), 820px); margin-right: max(20px, calc((100% - 1180px) / 2)); }
.article-toc { grid-column: 1; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding: 0 0 0 15px; background: transparent; border: 0; border-left: 2px solid #e1e9f0; border-radius: 0; }
.article-toc__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; color: var(--bv-ink); background: transparent; border: 0; cursor: default; text-align: left; }
.article-toc__title { color: var(--bv-ink); font-size: 13px; font-weight: 750; letter-spacing: .065em; line-height: 1.2; text-transform: uppercase; }
.article-toc__toggle-icon { display: none; flex: 0 0 auto; width: 20px; height: 20px; transition: transform .18s ease; }
.article-toc__toggle[aria-expanded="true"] .article-toc__toggle-icon { transform: rotate(180deg); }
.article-toc__panel { margin-top: 14px; }
.article-toc__list { counter-reset: article-toc; margin: 0; padding: 0; list-style: none; }
.article-toc__item { counter-increment: article-toc; display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: start; gap: 0; }
.article-toc__item::before { content: counter(article-toc, decimal-leading-zero); padding-top: 1px; color: #9aa9bb; font-size: 12px; font-weight: 700; line-height: 1.42; }
.article-toc__item + .article-toc__item { margin-top: 8px; }
.article-toc__item--h3 a { padding-left: 9px; }
.article-toc a { display: block; color: #68778d; font-size: 13px; font-weight: 500; line-height: 1.36; text-decoration: none; }
.article-toc a:hover, .article-toc a:focus-visible, .article-toc a.is-active { color: #276bb5; }
.tag-links a { display: inline-block; margin: 4px; padding: 5px 9px; color: var(--bv-muted); background: var(--bv-soft); border-radius: 5px; font-size: 12px; text-decoration: none; }
.navigation.pagination { margin-top: 45px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding-inline: 8px; color: var(--bv-ink); border: 1px solid var(--bv-line); border-radius: 7px; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--bv-brand); border-color: var(--bv-brand); }
.not-found { max-width: 720px; margin: 0 auto; padding: 16px 0 28px; text-align: center; }
.not-found h1 { margin: 0 0 12px; font-family: var(--bv-font); font-size: clamp(30px, 4vw, 40px); font-weight: 730; line-height: 1.1; }
.not-found p { margin: 0 0 22px; color: var(--bv-muted); }
.comments-area { width: min(calc(100% - 40px), 880px); margin: 54px auto 70px; padding: 30px; background: var(--bv-soft); border: 1px solid var(--bv-line); border-radius: var(--bv-radius); }
.comments-area h2, .comments-area h3 { font-weight: 720; letter-spacing: -.02em; }
.comment-list { padding: 0; list-style: none; }
.comment-body { padding: 20px 0; border-top: 1px solid var(--bv-line); }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 12px; background: #fff; border: 1px solid #cbd7df; border-radius: 10px; }
.submit { padding: 11px 17px; color: #fff; background: var(--bv-brand); border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; }

/* Footer */
.site-footer { color: var(--bv-muted); background: #fff; border-top: 3px solid var(--bv-brand); }
.site-footer__main { display: grid; grid-template-columns: 1.25fr repeat(2, .75fr); gap: 50px; padding-block: 52px; }
.site-footer .brand-link { color: var(--bv-ink); }
.footer-logo { display: block; width: min(290px, 100%); height: auto; }
.footer-about { max-width: 410px; margin: 18px 0 0; color: var(--bv-muted); font-size: 14px; }
.footer-title { margin: 0 0 14px; color: var(--bv-ink); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.footer-menu, .site-footer .menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li + li, .site-footer .menu li + li { margin-top: 8px; }
.footer-menu a, .site-footer .menu a { color: var(--bv-brand-dark); font-size: 14px; text-decoration: none; }
.footer-menu a:hover, .site-footer .menu a:hover { color: var(--bv-accent); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 18px; padding-block: 17px; border-top: 1px solid var(--bv-line); color: #667787; font-size: 12px; }
.site-footer__bottom p { margin: 0; }

@media (max-width: 980px) {
  .main-navigation { display: none; position: absolute; top: 100%; right: 20px; left: 20px; padding: 14px; background: #fff; border: 1px solid var(--bv-line); border-radius: 12px; box-shadow: var(--bv-shadow); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: block; }
  .main-navigation a { padding: 12px; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; }
  .lead-grid, .front-bottom, .posts-layout { grid-template-columns: 1fr; }
  .cards-grid--with-resource { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-stack { grid-template-columns: repeat(2, 1fr); }
  .guide-card { grid-column: 1 / -1; }
  .topic-strip { grid-template-columns: repeat(2, 1fr); }
  .posts-layout aside { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .sidebar-box + .sidebar-box { margin-top: 0; }
  .author-profile { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 26px; }
  .author-profile__avatar { width: 120px; height: 120px; }
  .article-body--toc { display: block; width: min(calc(100% - 40px), 820px); }
  .article-toc { position: static; max-height: none; margin-bottom: 30px; }
  .article-toc__toggle { cursor: pointer; }
  .article-toc__toggle-icon { display: block; }
  .single-layout--toc .entry-footer, .single-layout--toc .comments-area { margin-right: auto; }
}

@media (max-width: 680px) {
  .wrap, .content-wrap, .entry-content, .entry-footer, .comments-area { width: min(calc(100% - 28px), var(--bv-width)); }
  .site-header__main { min-height: 68px; gap: 12px; }
  .site-branding { min-width: 0; }
  .brand-link { min-width: 0; }
  .header-logo { width: clamp(155px, 50vw, 235px); }
  .brand-name { font-size: clamp(22px, 7.2vw, 30px); letter-spacing: .25px; }
  .front-main { padding-top: 20px; }
  .lead-grid, .side-stack, .cards-grid, .posts-grid, .site-footer__main { grid-template-columns: 1fr; }
  .story--lead { min-height: 440px; }
  .story__body { padding: 23px; }
  .story__title { font-size: 34px; }
  .story__excerpt { display: none; }
  .mini-story { grid-template-columns: 105px 1fr; }
  .mini-story h3 { overflow-wrap: anywhere; }
  .section { margin-top: 48px; }
  .topic-strip { grid-template-columns: 1fr; }
  .feed-item { grid-template-columns: 110px 1fr; gap: 15px; }
  .feed-item h3 { font-size: 18px; }
  .feed-item p { display: none; }
  .posts-layout aside { grid-template-columns: 1fr; }
  .author-profile { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .author-profile__avatar { width: 110px; height: 110px; }
  .site-footer__main { gap: 30px; }
  .site-footer__bottom { display: block; }
  .front-bottom { padding: 22px; }
  .front-bottom--no-feed { padding: 0; }
  .front-bottom--no-feed .editorial-box { grid-template-columns: 1fr; padding: 24px; }
  .single .entry-header { width: min(calc(100% - 28px), var(--bv-width)); margin-top: 22px; padding: 20px 0 8px; }
  .entry-hero { width: min(calc(100% - 28px), 940px); }
  .entry-hero img { aspect-ratio: 16 / 9; }
  .single-layout--wide .entry-content, .single-layout--wide .entry-footer, .single-layout--wide .comments-area,
  .single-layout--narrow .entry-content, .single-layout--narrow .entry-footer, .single-layout--narrow .comments-area { width: min(calc(100% - 28px), var(--bv-width)); }
  .single-layout--wide .entry-hero, .single-layout--narrow .entry-hero, .single-layout--toc .entry-hero { width: min(calc(100% - 28px), 1180px); }
  .article-body--toc { width: min(calc(100% - 28px), 820px); }
  .article-toc { padding: 0 0 0 15px; }
}

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