/*
Theme Name: dds_daga88asia.com
Theme URI: https://daga88asia.com/
Author: Елизавета Климова
Description: Информационная тема для сайта с практическими разборами и советами. Японский минимализм с элементами брутализма, холодная сине-серая палитра.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: dgpract
*/

:root {
    --bg: #f2f4f8;
    --bg-alt: #e6eaf0;
    --dark: #1a1e28;
    --white: #ffffff;
    --ink: #1e222b;
    --accent: #4b7b9e;
    --accent-soft: #a3c2d9;
    --muted: #7a8599;
    --line: #d0d7e0;
    --font-head: "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    --font-body: "Noto Sans", "Open Sans", "Segoe UI", Arial, sans-serif;
}

/* --- служебные правила скрытия (должны идти до основных блоков) --- */
.cookie-banner[hidden] { display: none !important; }
.main-nav[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(30, 34, 43, 0.03) 0 0.5px, rgba(0, 0, 0, 0) 0.5px 40px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23a3c2d9' stroke-width='6' opacity='0.08'%3E%3Cpath d='M40 250 L160 40 L280 250'/%3E%3Cpath d='M90 250 L230 250'/%3E%3Ccircle cx='160' cy='40' r='14'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat, no-repeat;
    background-position: 0 0, right -30px bottom -20px;
    background-attachment: scroll, fixed;
    background-size: auto, 320px 320px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }

.entry-content a,
.widget a,
.trail a,
.card-excerpt a {
    position: relative;
    display: inline;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size 0.28s ease 0.06s;
    padding-bottom: 1px;
}
.entry-content a:hover,
.widget a:hover,
.trail a:hover,
.card-excerpt a:hover { background-size: 100% 1px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.22;
    margin: 0 0 0.7em;
}

h1 { font-size: 3.2rem; line-height: 1.15; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.15em; background: none; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    position: relative;
}
blockquote::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
}
blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--line);
    font-size: 0.95rem;
}
th, td {
    border: 1px solid var(--line);
    padding: 0.65rem 0.85rem;
    text-align: left;
}
th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 600; }

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
}
pre { padding: 1rem 1.2rem; overflow-x: auto; border: 1px solid var(--line); }

/* --- контейнер --- */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* --- кнопки --- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent);
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: 3px;
    padding: 0.62rem 1.35rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover, .btn:focus { background: var(--accent); color: #fff; }

.btn-light { color: var(--accent-soft); border-color: var(--accent-soft); }
.btn-light:hover, .btn-light:focus { background: var(--accent-soft); color: var(--dark); }

/* --- шапка --- */
.site-header {
    background: var(--dark);
    color: #e8ecf2;
    border-bottom: 1px solid #262c38;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.5rem 0;
    min-width: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    text-decoration: none;
}
.brand-logo { width: 52px; height: 52px; flex: 0 0 auto; display: block; }
.brand-text { min-width: 0; }
.site-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: #eef1f6;
    line-height: 1.25;
    max-width: 420px;
}
.site-tagline {
    display: block;
    font-size: 0.78rem;
    color: #8b96a9;
    line-height: 1.4;
    margin-top: 0.25rem;
    max-width: 460px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid #46536a;
    border-radius: 3px;
    color: #e8ecf2;
    font-family: var(--font-head);
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: #d3dae6;
    position: relative;
    padding-bottom: 3px;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--accent-soft);
    transition: width 0.28s ease 0.06s;
}
.main-nav a:hover::after { width: 100%; }
.main-nav .current-menu-item > a { color: #fff; }

/* --- заголовки секций --- */
.sec-head {
    position: relative;
    margin: 0 0 2rem;
    padding-bottom: 0.9rem;
}
.sec-head h2, .sec-head .sec-title {
    margin: 0;
    font-size: 1.9rem;
    position: relative;
}
.sec-head::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 66%;
    height: 1px;
    background: var(--accent);
}
.sec-head .sec-note {
    display: block;
    margin-top: 0.55rem;
    color: var(--muted);
    font-size: 0.95rem;
}

/* «азиатская» точка-акцент */
.entry-content h2, .entry-content h3,
.sec-head h2, .sec-head .sec-title,
.widget-title {
    position: relative;
}
.entry-content h2::before,
.entry-content h3::before,
.sec-head h2::before,
.sec-head .sec-title::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 0.12em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* --- основная раскладка --- */
.site-main { padding: 3.2rem 0 4.2rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 3%;
    align-items: start;
}
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

.sidebar {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.6rem 1.4rem;
}

/* --- хлебные крошки --- */
.trail {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    line-height: 1.6;
}
.trail a { color: var(--accent); }
.trail-sep { color: var(--accent-soft); margin: 0 0.25rem; }

/* --- карточки записей --- */
.card-list { display: flex; flex-direction: column; gap: 1.5rem; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card-inner { display: flex; flex-direction: row; align-items: stretch; min-height: 190px; }

.card-thumb-wrap {
    flex: 0 0 30%;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    min-width: 0;
}
.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: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
}
.card-title { font-size: 1.28rem; margin: 0 0 0.55rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #3c4453; font-size: 0.96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-actions { margin-top: auto; padding-top: 1rem; }

.post-meta {
    font-size: 0.8rem;
    color: var(--muted);
    font-family: var(--font-head);
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--accent); }
.meta-dot {
    width: 4px; height: 4px;
    background: var(--accent-soft);
    display: inline-block;
}

/* --- пагинация --- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}
.pager .page-numbers {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 3px;
    padding: 0.45rem 0.85rem;
    min-width: 42px;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.pager .page-numbers:hover { background: var(--accent); color: #fff; }
.pager .page-numbers.current { background: var(--accent); color: #fff; }
.pager .page-numbers.dots {
    border-color: transparent;
    color: var(--muted);
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    min-width: 0;
}
.pager .page-numbers.dots:hover { background: transparent; color: var(--muted); }

/* --- запись / страница --- */
.entry {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 2.4rem 2.4rem 2.6rem;
}
.entry-title { font-size: 2.4rem; margin-bottom: 0.7rem; }
.entry-thumb { margin: 1.4rem 0 1.8rem; }
.entry-thumb img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.entry-content { margin-top: 1.4rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content img { margin: 1.2rem 0; }

.page-head { margin-bottom: 1.8rem; }
.page-head .page-title { font-size: 2.3rem; margin-bottom: 0.5rem; }

.post-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.8rem;
    font-family: var(--font-head);
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.post-nav span { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 0.2rem; }

/* --- виджеты --- */
.widget { margin-bottom: 2rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 1.02rem;
    margin: 0 0 0.9rem;
    padding-bottom: 0.55rem;
    position: relative;
}
.widget-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 60%; height: 1px;
    background: var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 0.7rem; line-height: 1.5; }

.sidebar .widget-title { color: var(--ink); }
.sidebar .widget, .sidebar .widget p, .sidebar .widget li { color: #3c4453; }
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .post-date { display: block; font-size: 0.78rem; color: var(--muted); }

/* --- подвал --- */
.site-footer {
    background: var(--dark);
    color: #c3ccdb;
    padding: 3.4rem 0 1.8rem;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid #2a313e;
}
.footer-cols .widget-title { color: #f0f3f7; }
.footer-cols .widget-title::after { background: var(--accent-soft); }
.footer-cols .widget,
.footer-cols .widget p,
.footer-cols .widget li { color: #b3bdcd; font-size: 0.93rem; }
.footer-cols .widget a { color: #dbe3ee; }
.footer-cols .widget a:hover { color: var(--accent-soft); }
.footer-cols .post-date { color: #8b96a9; font-size: 0.78rem; display: block; }

.footer-bottom {
    padding-top: 1.5rem;
    font-size: 0.82rem;
    color: #8b96a9;
    line-height: 1.6;
}

/* --- форма поиска --- */
.search-form { display: flex; gap: 0.5rem; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    padding: 0.55rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.93rem;
    color: var(--ink);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--accent); }

/* --- комментарии --- */
.comments-area {
    margin-top: 2.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 2rem 2.2rem 2.2rem;
}
.comments-title { font-size: 1.4rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ul.children { list-style: none; margin: 1rem 0 0 1.4rem; padding: 0 0 0 1.2rem; border-left: 1px solid var(--line); }
.comment-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; gap: 0.9rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 0.4rem; }
.comment-author { font-family: var(--font-head); font-weight: 600; }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-reply { font-size: 0.85rem; }
.comment-wait { color: var(--muted); font-size: 0.88rem; }

.comment-form label { display: block; font-size: 0.85rem; font-family: var(--font-head); margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}
.comment-form textarea { min-height: 150px; }
.comment-form .form-submit input {
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: 3px;
    padding: 0.62rem 1.35rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.comment-form .form-submit input:hover { background: var(--accent); color: #fff; }

/* ===========================================================
   ГЛАВНАЯ
   =========================================================== */

.front-wrap { padding-bottom: 4rem; }

.front-section { padding: 90px 0; }
.front-section.alt { background: var(--bg-alt); }
.front-section .inner { width: 85%; margin-left: auto; margin-right: auto; min-width: 0; }

/* Блок 1 — hero */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: #eef1f6;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.55; }
.hero-veil {
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(45deg, rgba(163, 194, 217, 0.07) 0 1px, rgba(0, 0, 0, 0) 1px 40px),
        linear-gradient(100deg, rgba(26, 30, 40, 0.94) 0%, rgba(26, 30, 40, 0.72) 55%, rgba(26, 30, 40, 0.4) 100%);
}
.hero-inner {
    position: relative;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 96px 0 96px 5%;
    max-width: 100%;
}
.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-soft);
    display: block;
    margin-bottom: 1.1rem;
}
.hero h1 { color: #f4f7fb; max-width: 16ch; margin-bottom: 1.1rem; }
.hero-desc { color: #c3ccdb; font-size: 1.05rem; max-width: 58ch; margin-bottom: 1.9rem; }
.hero-mark {
    width: 54px; height: 1px;
    background: var(--accent-soft);
    margin-bottom: 1.6rem;
}

/* Блок 2 — таймлайн */
.tl { position: relative; padding-left: 2.4rem; }
.tl::before {
    content: "";
    position: absolute;
    left: 4px; top: 8px; bottom: 8px;
    width: 1px;
    background: var(--accent);
}
.tl-item { position: relative; padding: 0 0 2.1rem 0; min-width: 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: "";
    position: absolute;
    left: -2.4rem; top: 0.5rem;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--accent);
}
.tl-step {
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 0.3rem;
}
.tl-item h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.tl-item h3::before { display: none; }
.tl-item p { margin: 0; color: #3c4453; font-size: 0.97rem; }

/* Последние записи на главной */
.front-latest .card-list { gap: 1.5rem; }
.front-latest .more-link { margin-top: 2rem; }

/* Блок 3 — статистика */
.facts {
    background:
        repeating-linear-gradient(45deg, rgba(30, 34, 43, 0.06) 0 0.5px, rgba(0, 0, 0, 0) 0.5px 40px),
        linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.facts-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.6rem;
    padding: 2.2rem 2rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    position: relative;
}
.facts-grid::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
}
.fact { text-align: center; min-width: 0; }
.fact-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.fact-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.45;
}

/* Блок 4 — карта тем */
.topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.topic {
    display: block;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--white);
    padding: 2rem 1.8rem;
    min-width: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.topic:hover { border-color: var(--accent); background: var(--bg-alt); }
.topic svg { width: 34px; height: 34px; display: block; margin-bottom: 1.1rem; }
.topic-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}
.topic-note { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }

/* --- 404 --- */
.notfound { text-align: left; }
.notfound .code {
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-soft);
    line-height: 1;
    margin-bottom: 0.6rem;
}
.notfound .search-form { max-width: 420px; margin: 1.5rem 0; }

/* --- cookie-баннер --- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: var(--dark);
    color: #d3dae6;
    border-top: 3px solid var(--accent);
    padding: 1.1rem 1.4rem;
}
.cookie-inner {
    width: min(92%, 1180px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 0.88rem; min-width: 0; }
.cookie-inner a { color: var(--accent-soft); }

/* --- адаптив --- */
@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .layout-single { width: 100%; }
    .front-section .inner { width: 100%; }
    .hero-inner { width: 92%; padding: 72px 0 72px 0; }
    .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .nav-toggle { display: inline-block; }
    .header-inner { flex-wrap: wrap; }
    .main-nav { flex: 1 0 100%; }
    .main-nav ul { flex-direction: column; gap: 0.85rem; padding-top: 1rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .site-main { padding: 2.2rem 0 3rem; }
    .front-section { padding: 56px 0; }
    .hero-inner { padding: 56px 0; }
    .hero h1 { max-width: none; }
    .entry { padding: 1.5rem 1.3rem 1.8rem; }
    .entry-title { font-size: 1.8rem; }
    .comments-area { padding: 1.4rem 1.2rem 1.6rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.6rem 1.4rem; }
    .topics { grid-template-columns: minmax(0, 1fr); }
    .topic { padding: 1.5rem 1.4rem; }
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .card-inner { flex-direction: column; min-height: 0; }
    .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: 1.2rem 1.2rem 1.3rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
    .entry-content h2::before,
    .entry-content h3::before,
    .sec-head h2::before,
    .sec-head .sec-title::before { display: none; }
}
