/*
Theme Name: dds_shopo-golik.ru
Author: Андрей Зимин
Description: Аналитический блог о ритейле и архивный каталог интернет-магазинов
Version: 1.1
Text Domain: dds_shopo-golik-ru
*/

/* ---------- БАЗА ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #1e2a3a;
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e2a3a;
    font-weight: 700;
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; color: #2c5f8a; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: #2c5f8a; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color 0.18s ease; }
a:hover { color: #1e405b; }

code, pre, .metric, .data {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.92em;
}

pre {
    background: #f1f3f5;
    border-left: 3px solid #2c5f8a;
    padding: 1em 1.2em;
    overflow-x: auto;
}

blockquote {
    border-left: 3px solid #2c5f8a;
    margin: 1.4em 0;
    padding: 0.4em 1.2em;
    color: #2d3e4f;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.95em;
}
table, th, td { border: 1px solid #d8dde2; }
th, td { padding: 0.65em 0.85em; text-align: left; vertical-align: top; }
th { background: #eef1f4; font-family: 'Montserrat', sans-serif; font-weight: 600; color: #1e2a3a; }

hr { border: 0; border-top: 1px solid #d8dde2; margin: 2em 0; }

/* ---------- КОНТЕЙНЕР ---------- */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ---------- ШАПКА ---------- */
.site-top {
    background: #ffffff;
    border-bottom: 1px solid #e3e7eb;
}

.site-top-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.brand-logo,
.brand .brand-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 6px;
    display: block;
}

.brand-text { min-width: 0; }

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e2a3a;
    line-height: 1.25;
    margin: 0 0 4px;
    max-width: 540px;
}

.brand-desc {
    font-size: 0.82rem;
    color: #5a6878;
    line-height: 1.4;
    margin: 0;
    max-width: 620px;
}

.timebar {
    margin-left: auto;
    display: flex;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.timebar span {
    padding: 5px 10px;
    border: 1px solid #d8dde2;
    color: #5a6878;
    background: #f8f9fa;
}

.timebar .now {
    color: #2c5f8a;
    border-color: #2c5f8a;
    background: #fff;
}

/* ---------- НАВИГАЦИЯ ---------- */
.primary-nav {
    background: #1e2a3a;
}

.primary-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.primary-nav li a {
    display: block;
    padding: 14px 18px;
    color: #e3e7eb;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.93rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background 0.18s ease;
}

.primary-nav li a:hover,
.primary-nav .current-menu-item > a {
    background: #2c5f8a;
    color: #ffffff;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #4a5868;
    color: #e3e7eb;
    padding: 8px 14px;
    margin: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
}

.menu-toggle[hidden] { display: none !important; }

/* ---------- ХЛЕБНЫЕ КРОШКИ ---------- */
.breadcrumbs {
    font-size: 0.85rem;
    color: #5a6878;
    margin: 22px 0 6px;
    font-family: 'Montserrat', sans-serif;
}

.breadcrumbs a {
    color: #5a6878;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #2c5f8a;
    text-decoration: underline;
}

.breadcrumbs .sep {
    margin: 0 6px;
    color: #b1bac4;
}

/* ---------- КАРКАС СТРАНИЦ ---------- */
.site-main {
    padding: 28px 0 56px;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 40px;
    align-items: start;
}

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.layout-front .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.content-area { min-width: 0; }

/* ---------- САЙДБАР ---------- */
.sidebar {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e3e7eb;
    padding: 22px 22px 6px;
}

.sidebar .widget {
    margin: 0 0 24px;
    color: #1e2a3a;
}

.sidebar .widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2c5f8a;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e3e7eb;
}

.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 7px 0; border-bottom: 1px dashed #e3e7eb; }
.sidebar li:last-child { border-bottom: none; }
.sidebar li a { color: #1e2a3a; text-decoration: none; font-size: 0.95rem; }
.sidebar li a:hover { color: #2c5f8a; text-decoration: underline; }
.sidebar .widget p { color: #2d3e4f; font-size: 0.93rem; margin: 0 0 0.7em; }
.sidebar .post-date { color: #5a6878; font-size: 0.82rem; font-family: 'JetBrains Mono', monospace; }

/* ---------- КАРТОЧКИ ЗАПИСЕЙ ---------- */
.card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 18px 0 28px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e3e7eb;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    border-color: #2c5f8a;
}

.card.has-thumb {
    flex-direction: row;
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: #eef1f4;
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #5a6878;
    margin: 0 0 8px;
}

.card-meta .cat { color: #2c5f8a; }

.card-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.card-title a { color: #1e2a3a; text-decoration: none; }
.card-title a:hover { color: #2c5f8a; }

.card-excerpt {
    color: #2d3e4f;
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0 0 14px;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-more {
    align-self: flex-start;
    margin-top: auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2c5f8a;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease;
}

.card-more::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.card-more:hover {
    border-bottom-color: #2c5f8a;
}

.card-more:hover::after {
    content: '→';
    opacity: 1;
}

/* ---------- КНОПКИ ---------- */
.btn {
    display: inline-block;
    padding: 11px 22px;
    background: #2c5f8a;
    color: #ffffff;
    border: 1px solid #2c5f8a;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    background: #1e405b;
    border-color: #1e405b;
    color: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: #2c5f8a;
}

.btn-ghost:hover {
    background: #2c5f8a;
    color: #ffffff;
}

/* ---------- ПАГИНАЦИЯ ---------- */
.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 32px 0 8px;
    font-family: 'Montserrat', sans-serif;
}

.pagination a,
.pagination span {
    min-width: 40px;
    padding: 9px 13px;
    text-align: center;
    border: 1px solid #d8dde2;
    background: #ffffff;
    color: #1e2a3a;
    text-decoration: none;
    font-size: 0.92rem;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.pagination a:hover {
    border-color: #2c5f8a;
    color: #2c5f8a;
}

.pagination .current {
    background: #2c5f8a;
    color: #ffffff;
    border-color: #2c5f8a;
}

/* ---------- ГЛАВНАЯ ---------- */
.front-section {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    padding: 36px 38px;
    margin: 26px 0;
}

.front-section.tinted {
    background: #f1f3f5;
}

.front-section.archival {
    background: linear-gradient(135deg, #dbccc3 0%, #e8ddd5 100%);
    border-color: #c9b8af;
}

.front-section.archival .section-title { color: #1e2a3a; }

.section-title {
    font-size: 1.7rem;
    margin: 0 0 8px;
    color: #2c5f8a;
}

.section-lead {
    color: #2d3e4f;
    font-size: 1.02rem;
    margin: 0 0 22px;
    max-width: 760px;
}

.tile-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.tile {
    background: #f8f9fa;
    border: 1px solid #e3e7eb;
    padding: 20px 22px;
}

.front-section.tinted .tile {
    background: #ffffff;
}

.tile-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #2c5f8a;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
}

.tile h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #1e2a3a;
}

.tile p {
    margin: 0;
    font-size: 0.93rem;
    color: #2d3e4f;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
    margin-top: 16px;
}

.metric-card {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    padding: 18px 20px;
    border-left: 3px solid #2c5f8a;
}

.metric-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.9rem;
    color: #2c5f8a;
    line-height: 1;
    margin: 0 0 6px;
}

.metric-num.growth { color: #5a7a5c; }
.metric-num.alert { color: #b85c4b; }

.metric-label {
    font-size: 0.85rem;
    color: #5a6878;
    margin: 0;
}

/* ---------- АРХИВНЫЕ КАРТОЧКИ ---------- */
.archive-card {
    background: #fefcf8;
    border: 1px solid #c9b8af;
    padding: 18px 20px 18px 32px;
    position: relative;
}

.archive-card::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 14px;
    bottom: 14px;
    width: 4px;
    background-image: radial-gradient(circle, #b1a098 1.5px, transparent 1.5px);
    background-size: 4px 12px;
    background-repeat: repeat-y;
}

.archive-card .year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #8a7b72;
    margin: 0 0 4px;
}

.archive-card h4 {
    margin: 0 0 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.archive-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #2d3e4f;
}

/* ---------- БУКВИЦА (только в одиночной записи) ---------- */
.single-content > p:first-of-type::first-letter {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2c5f8a;
    float: left;
    font-size: 3.6em;
    line-height: 0.9;
    margin: 0.05em 0.12em 0 0;
}

/* ---------- МЕТОДОЛОГИЯ ---------- */
.methodology {
    background: #eef1f4;
    border-left: 3px solid #5a6878;
    padding: 16px 20px;
    margin: 1.6em 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: #2d3e4f;
}

.methodology-title {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: #1e2a3a;
    margin: 0 0 6px;
}

/* ---------- ОДИНОЧНАЯ ЗАПИСЬ ---------- */
.single-article {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    padding: 32px 38px 28px;
}

.single-article .entry-title {
    margin: 0 0 6px;
    font-size: 2rem;
    line-height: 1.2;
}

.entry-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #5a6878;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e3e7eb;
}

.entry-meta span + span::before {
    content: ' · ';
    color: #b1bac4;
}

.single-content img { display: block; margin: 1.2em auto; }

.single-content ul, .single-content ol { padding-left: 1.4em; margin: 1em 0; }

.entry-tags {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid #e3e7eb;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
}

.entry-tags a {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 10px;
    background: #f1f3f5;
    color: #2c5f8a;
    text-decoration: none;
    border-radius: 4px;
}

.entry-tags a:hover { background: #2c5f8a; color: #fff; }

/* ---------- КОММЕНТАРИИ ---------- */
.comments-area {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    padding: 26px 32px;
    margin: 26px 0;
}

.comments-title {
    margin: 0 0 18px;
    font-size: 1.2rem;
    color: #2c5f8a;
}

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

.comment-list .comment,
.comment-list .pingback {
    border-bottom: 1px solid #e3e7eb;
    padding: 14px 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 22px;
    border-left: 2px solid #e3e7eb;
    margin-top: 12px;
}

.comment-author { font-family: 'Montserrat', sans-serif; font-weight: 600; color: #1e2a3a; }
.comment-metadata { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: #5a6878; margin: 2px 0 8px; }
.comment-metadata a { color: #5a6878; text-decoration: none; }

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8dde2;
    background: #f8f9fa;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
}

.comment-respond textarea { min-height: 120px; resize: vertical; }

.comment-respond label { display: block; margin-bottom: 4px; font-family: 'Montserrat', sans-serif; font-size: 0.85rem; color: #2d3e4f; }

.comment-respond .form-submit input { all: unset; }
.comment-respond .form-submit input[type="submit"] {
    display: inline-block;
    padding: 11px 22px;
    background: #2c5f8a;
    color: #ffffff;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.comment-respond .form-submit input[type="submit"]:hover { background: #1e405b; }

/* ---------- ПОИСК ---------- */
.searchform {
    display: flex;
    gap: 0;
    margin: 14px 0;
    max-width: 480px;
}

.searchform input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #d8dde2;
    border-right: none;
    background: #ffffff;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #1e2a3a;
}

.searchform button {
    padding: 10px 18px;
    background: #2c5f8a;
    color: #ffffff;
    border: 1px solid #2c5f8a;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.searchform button:hover { background: #1e405b; border-color: #1e405b; }

/* ---------- 404 ---------- */
.not-found {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    padding: 50px 40px;
    text-align: center;
}

.not-found-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    color: #2c5f8a;
    line-height: 1;
    margin: 0 0 10px;
}

.not-found h1 { margin: 0 0 14px; }
.not-found p { color: #2d3e4f; max-width: 540px; margin: 0 auto 22px; }

/* ---------- ПОДВАЛ ---------- */
.site-bottom {
    background: #1e2a3a;
    color: #d8dde2;
    padding: 44px 0 22px;
    margin-top: 36px;
}

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

.footer-columns .widget {
    color: #d8dde2;
}

.footer-columns .widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3a4a5c;
}

.footer-columns .widget p { color: #b1bac4; font-size: 0.92rem; margin: 0 0 0.8em; }

.footer-columns .widget ul { list-style: none; margin: 0; padding: 0; }
.footer-columns .widget li { padding: 6px 0; border-bottom: 1px dashed #3a4a5c; }
.footer-columns .widget li:last-child { border-bottom: none; }
.footer-columns .widget a { color: #d8dde2; text-decoration: none; font-size: 0.94rem; }
.footer-columns .widget a:hover { color: #ffffff; text-decoration: underline; }
.footer-columns .widget .post-date { color: #8a96a4; font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; }

.citation-index {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #3a4a5c;
    font-family: 'JetBrains Mono', monospace;
}

.citation-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8a96a4;
    margin: 0 0 12px;
}

.citation-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #b1bac4;
    margin: 0 0 4px;
}

.citation-row .name { flex: 0 0 130px; }
.citation-row .bar {
    flex: 1;
    height: 8px;
    background: #3a4a5c;
    position: relative;
    min-width: 0;
}
.citation-row .bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: #2c5f8a;
    width: var(--w, 30%);
}
.citation-row .num { flex: 0 0 36px; text-align: right; color: #d8dde2; }

.copyright {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid #3a4a5c;
    text-align: center;
    color: #8a96a4;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
}

/* ---------- АРХИВНАЯ ВКЛАДКА ---------- */
.archive-bookmark {
    position: fixed;
    top: 38%;
    right: 0;
    z-index: 90;
    background: #dbccc3;
    color: #1e2a3a;
    text-decoration: none;
    padding: 16px 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border: 1px solid #c9b8af;
    border-right: none;
    transition: background 0.2s ease;
}

.archive-bookmark:hover { background: #c9b8af; color: #1e2a3a; }

/* ---------- COOKIE ---------- */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1e2a3a;
    color: #ffffff;
    padding: 16px 22px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.cookie-banner p { margin: 0; flex: 1; min-width: 220px; }

.cookie-banner a { color: #b1cce0; }

.cookie-accept {
    padding: 10px 22px;
    background: #2c5f8a;
    color: #ffffff;
    border: 1px solid #2c5f8a;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.cookie-accept:hover { background: #1e405b; }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    .layout-single .content-area,
    .layout-front .content-area {
        width: 100%;
    }
    .archive-bookmark { display: none; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
    .single-article { padding: 24px 22px 20px; }
    .front-section { padding: 26px 24px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    h1 { font-size: 1.55rem; }
    h2 { font-size: 1.3rem; }

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

    .primary-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .primary-nav ul.is-open { display: flex; }

    .primary-nav li a { padding: 12px 16px; border-bottom: 1px solid #2c3a4a; }

    .primary-nav-inner { flex-wrap: wrap; }

    .site-top-inner { padding: 16px 0; }
    .timebar { margin-left: 0; order: 3; width: 100%; justify-content: flex-start; }

    .card.has-thumb { flex-direction: column; }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-thumb-wrap a {
        position: static;
    }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .card-body { padding: 18px 20px; }
    .single-article { padding: 20px 18px 18px; }
    .single-article .entry-title { font-size: 1.5rem; }
    .footer-columns { grid-template-columns: 1fr; gap: 26px; }
    .citation-row .name { flex: 0 0 100px; font-size: 0.76rem; }
    .front-section { padding: 22px 18px; }
    .cookie-banner { padding: 14px 18px; }
    .not-found { padding: 36px 22px; }
    .not-found-code { font-size: 3.6rem; }
}
