/* ═══ DESIGN LAYER - blog index, posts and the long-form article body (loaded with pages/blog.css;
   see design.css for the rules of the layer) ═══
   Used by the blog (src/Blog/index.php, view.php) and by the security pages, which load pages/blog.css
   too. Their own classes (.security-*, .threat-*, .sev-*, .ioc-*) are in design/security.css.
   Markup this file expects:
     index  .blog-container > h1.blog-title (an h2 on /security) + .blog-subtitle + .blog-search-section
            + .blog-featured + .blog-grid > .blog-card > .blog-card-body (h3 > a, p, .tags-list)
            + .blog-card-footer (.blog-card-meta + .blog-card-read on the blog, two plain spans on /security)
     post   .blog-post > .back-link, h1, .blog-meta, .tags-list, .post-toc, .blog-post-content,
            .post-cta, .post-related, .blog-nav-bottom
   These pages carry no ad units. */

/* ─── Index: title, search, filters ─── */
html[data-design] .blog-title {
    margin: 0 0 10px;
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.05;
}
html[data-design] h1.blog-title {
    margin-bottom: 16px;
    line-height: 1;
}
html[data-design] .blog-subtitle {
    margin: 0 0 32px;
    font-size: 17px;
    color: var(--text-secondary);
}
html[data-design] .blog-feed-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}
html[data-design] .blog-feed-link:hover {
    color: var(--text-primary);
}
html[data-design] .blog-search-section {
    background: none;
    border: 0;
    padding: 0;
    margin-bottom: 40px;
}
html[data-design] .search-input {
    padding: 11px 14px;
    background: var(--d-ground);
    border: var(--d-field-border);
    border-radius: var(--d-r-sm);
    font-size: 16px;
}
html[data-design] .search-input:focus {
    border-color: var(--blue-400);
    outline: 2px solid var(--blue-400);
    outline-offset: 0;
}
html[data-design] .btn-search {
    padding: 11px 22px;
    background: var(--d-btn-bg);
    color: var(--d-btn-fg);
    border: var(--d-btn-border);
    border-radius: var(--d-r-md);
    box-shadow: var(--d-btn-shadow) !important;
    font-size: 15px;
    font-weight: var(--d-btn-weight);
    transition: background 0.15s ease, transform 0.12s var(--d-ease), box-shadow 0.12s var(--d-ease);
}
html[data-design] .btn-search:hover {
    background: var(--d-btn-bg-hover);
}
html[data-design] .btn-clear,
html[data-design] .btn-action {
    background: transparent;
    color: var(--text-primary);
    border: var(--d-btn2-border);
    border-radius: var(--d-r-md);
    box-shadow: var(--d-btn2-shadow) !important;
    font-size: 15px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s var(--d-ease), box-shadow 0.12s var(--d-ease);
}
html[data-design] .btn-clear:hover,
html[data-design] .btn-action:hover {
    background: var(--d-raised);
    border-color: var(--d-ink);
}
html[data-design] .search-error {
    background: var(--d-surface);
    border: var(--d-inset-border);
    border-color: #ef4444;
    border-radius: var(--d-r-md);
    font-size: 14px;
}
html[data-design] .tag {
    padding: 3px 9px;
    background: transparent;
    border: var(--d-inset-border);
    border-radius: var(--d-r-sm);
    font-size: 13px;
    color: var(--text-secondary);
}
html[data-design] .tag:hover {
    background: transparent;
    border-color: var(--d-ink);
    color: var(--text-primary);
}
html[data-design] .tag.tag-more,
html[data-design] .tag.tag-more:hover {
    padding-left: 2px;
    padding-right: 2px;
    border-color: transparent;
    color: var(--text-muted);
}

/* ─── Index: latest post and the list ─── */
html[data-design] .blog-featured::before,
html[data-design] .blog-card::before {
    display: none;
}
html[data-design] .blog-featured,
html[data-design] .no-results,
html[data-design] .blog-error {
    background: var(--d-surface);
    border: var(--d-panel-border);
    border-radius: var(--d-r-lg);
    box-shadow: var(--d-panel-shadow) !important;
}
html[data-design] .no-results,
html[data-design] .blog-error {
    padding: 32px;
    text-align: left;
}
html[data-design] .no-results p,
html[data-design] .blog-error p {
    font-size: 16px;
    color: var(--text-secondary);
}
html[data-design] .blog-featured-label {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}
html[data-design] .blog-featured h2 {
    margin-bottom: 12px;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.08;
}
html[data-design] .blog-featured p {
    font-size: 17px;
    line-height: 1.55;
}
html[data-design] .blog-card-footer,
html[data-design] .blog-card-meta,
html[data-design] .blog-card-read {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
html[data-design] .blog-card {
    transform: none;
}
html[data-design] .blog-card-body h3 {
    transition: color 0.2s ease;
}
html[data-design] .blog-card-body h3 a {
    color: inherit;
}
/* the whole row or card opens the post; the tag links stay clickable above it */
html[data-design] .blog-card-body h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
}
html[data-design] .blog-card .tags-list {
    position: relative;
    z-index: 1;
}
html[data-design] .blog-card:hover .blog-card-body h3 {
    color: var(--blue-400);
}
html[data-design] .blog-card-body p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
}
html[data-design] .pagination {
    justify-content: flex-start;
    font-variant-numeric: tabular-nums;
}
html[data-design] .pagination .current {
    background: var(--d-btn-bg);
    border-color: var(--d-btn-bg);
    color: var(--d-btn-fg);
    font-weight: var(--d-btn-weight);
}

/* ─── Post: head ─── */
html[data-design] .back-link {
    margin-bottom: 28px;
    font-size: 15px;
    color: var(--text-muted);
}
html[data-design] .back-link:hover {
    color: var(--text-primary);
}
html[data-design] .blog-post h1 {
    margin: 0 0 20px;
    font-size: clamp(30px, 6vw, 56px);
    line-height: 1.04;
    text-wrap: balance;
}
html[data-design] .blog-post .blog-error h1 {
    font-size: clamp(28px, 4.4vw, 40px);
}
html[data-design] .blog-meta {
    gap: 6px 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}
html[data-design] .post-toc strong {
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}
html[data-design] .post-toc li {
    font-size: 15px;
}

/* ─── Post: the article body. 17px on 1.65, text blocks at most about 70 characters wide;
   tables, code and pictures may use the full column. ─── */
html[data-design] .blog-post-content {
    margin-top: 36px;
    font-size: 17px;
    line-height: 1.65;
}
html[data-design] .blog-post-content > p,
html[data-design] .blog-post-content > ul,
html[data-design] .blog-post-content > ol,
html[data-design] .blog-post-content > blockquote {
    max-width: 35em;
}
html[data-design] .blog-post-content > p,
html[data-design] .blog-post-content blockquote p,
html[data-design] .blog-post-content li {
    font-size: 17px;
    line-height: 1.65;
}
/* the opening paragraph is the short answer: one step larger */
html[data-design] .blog-post-content > p:first-child {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-primary);
}
html[data-design] .blog-post-content h2 {
    margin: 52px 0 16px;
    padding: 0;
    border: 0;
    font-size: clamp(23px, 5vw, 28px);
    line-height: 1.15;
}
html[data-design] .blog-post-content h3 {
    margin: 36px 0 10px;
    font-size: clamp(19px, 4.4vw, 21px);
    line-height: 1.25;
}
html[data-design] .blog-post-content ul,
html[data-design] .blog-post-content ol {
    margin: 0 0 20px;
    padding-left: 1.3em;
}
html[data-design] .blog-post-content li::marker {
    color: var(--text-muted);
}
html[data-design] .blog-post-content a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
html[data-design] .blog-post-content a:hover {
    color: var(--text-primary);
}
html[data-design] .blog-post-content code {
    color: var(--text-primary);
}
html[data-design] .blog-post-content pre {
    padding: 18px 20px;
    background: var(--d-surface);
    border: var(--d-inset-border);
    border-radius: var(--d-r-md);
}
html[data-design] .blog-post-content pre code {
    background: none;
    border: 0;
    color: var(--text-secondary);
}
html[data-design] .blog-post-content blockquote {
    margin: 28px 0;
    padding: 4px 0 4px 20px;
    background: none;
    border: 0;
    border-left: 2px solid var(--blue-500);
    font-style: normal;
    color: var(--text-primary);
}
html[data-design] .blog-post-content blockquote p:last-child {
    margin-bottom: 0;
}
html[data-design] .blog-post-content img {
    border: var(--d-inset-border);
    border-radius: var(--d-r-md);
}
html[data-design] .blog-post-content th,
html[data-design] .blog-post-content td {
    line-height: 1.5;
    vertical-align: top;
    font-variant-numeric: tabular-nums;
}
html[data-design] .blog-post-content hr {
    margin: 40px 0;
    border-top: var(--d-rule);
}

/* ─── Post: what follows the article ─── */
html[data-design] .post-cta strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}
html[data-design] .post-cta p {
    font-size: 15px;
}
html[data-design] .post-related h2 {
    margin-bottom: 16px;
    font-size: 24px;
}
html[data-design] .post-related-card strong {
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}
html[data-design] .post-related-card span {
    font-size: 15px;
}
html[data-design] .post-related-card:hover strong {
    color: var(--blue-400);
}
@media (max-width: 768px) {
    html[data-design] .post-cta {
        text-align: left;
    }
}

/* ═══════════════════════ A · Swiss grid ═══════════════════════ */
html[data-design="swiss"] h1.blog-title {
    font-size: clamp(40px, 6vw, 72px);
}
/* the tag filter is a plain index of words */
html[data-design="swiss"] .tag-filter {
    gap: 4px 18px;
}
html[data-design="swiss"] .tag-filter a {
    padding: 2px 0;
    background: none;
    border: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    text-underline-offset: 4px;
}
html[data-design="swiss"] .tag-filter a:hover,
html[data-design="swiss"] .tag-filter a.active {
    background: none;
    color: var(--text-primary);
    text-decoration: underline;
}
html[data-design="swiss"] .tag-filter a.active {
    color: var(--blue-400);
}
/* no boxes: a strong rule on top of a block */
html[data-design="swiss"] .blog-featured,
html[data-design="swiss"] .no-results,
html[data-design="swiss"] .blog-error,
html[data-design="swiss"] .post-toc,
html[data-design="swiss"] .post-cta {
    background: none;
    border: 0;
    border-top: 1px solid var(--d-ink);
}
html[data-design="swiss"] .no-results,
html[data-design="swiss"] .blog-error,
html[data-design="swiss"] .post-cta {
    padding: 22px 0 0;
}
/* latest post: text left, tags and the button at the foot of the right column */
html[data-design="swiss"] .blog-featured {
    align-items: end;
    gap: 24px 32px;
    padding: 20px 0 44px;
    margin-bottom: 0;
}
html[data-design="swiss"] .blog-featured-label {
    display: block;
    margin-bottom: 24px;
    font-weight: 400;
    color: var(--text-muted);
}
/* the list: ruled rows, title left, summary right; the line below holds the date and the tags */
html[data-design="swiss"] .blog-grid {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
}
html[data-design="swiss"] .blog-grid::before,
html[data-design="swiss"] .blog-meta::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    transform-origin: left center;
}
html[data-design="swiss"] .blog-grid::before {
    top: 0;
    background: var(--d-ink);
}
html[data-design="swiss"] .blog-card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 10px 32px;
    align-items: start;
    padding: 22px 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--d-line);
}
html[data-design="swiss"] .blog-card-body {
    display: contents;
}
html[data-design="swiss"] .blog-card-body h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.22;
}
html[data-design="swiss"] .blog-card-body p {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}
html[data-design="swiss"] .blog-card-body .tags-list {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0 !important;   /* the security list sets a top margin inline */
}
html[data-design="swiss"] .blog-card-footer {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    border: 0;
}
html[data-design="swiss"] .blog-card-footer > * + *::before {
    content: '·';
    margin-right: 8px;
    color: var(--d-line);
}
/* post: a hairline under the meta line (drawn on load), the icons go */
html[data-design="swiss"] .blog-meta {
    position: relative;
}
html[data-design="swiss"] .blog-meta::after {
    bottom: 0;
    background: var(--d-line);
}
html[data-design="swiss"] .blog-meta svg {
    display: none;
}
html[data-design="swiss"] .post-toc {
    margin-top: 32px;
    padding: 16px 0 0;
}
html[data-design="swiss"] .post-toc strong {
    margin-bottom: 10px;
    font-weight: 400;
}
html[data-design="swiss"] .blog-post-content h2 {
    padding-top: 20px;
    border-top: 1px solid var(--d-line);
}
html[data-design="swiss"] .blog-post-content strong {
    font-weight: 600;
}
html[data-design="swiss"] .blog-post-content th,
html[data-design="swiss"] .blog-post-content td {
    padding: 10px 20px 10px 0;
    border: 0;
    border-bottom: 1px solid var(--d-line);
}
html[data-design="swiss"] .blog-post-content th {
    background: none;
    border-bottom: var(--d-rule-strong);
    font-weight: 500;
}
/* related posts: ruled rows like the index */
html[data-design="swiss"] .post-related-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--d-ink);
}
html[data-design="swiss"] .post-related-card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 6px 24px;
    align-items: start;
    padding: 18px 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--d-line);
}
html[data-design="swiss"] .post-related-card span {
    margin-top: 0;
}
@media (min-width: 641px) {
    html[data-design="swiss"] .post-toc {
        display: grid;
        grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
        column-gap: 24px;
    }
}
@media (max-width: 768px) {
    html[data-design="swiss"] .blog-card,
    html[data-design="swiss"] .post-related-card {
        grid-template-columns: 1fr;
    }
    html[data-design="swiss"] .blog-card-body h3,
    html[data-design="swiss"] .blog-card-body p,
    html[data-design="swiss"] .blog-card-body .tags-list,
    html[data-design="swiss"] .blog-card-footer {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ═══════════════════════ D · Neo-brutalist ═══════════════════════ */
html[data-design="brutal"] h1.blog-title {
    font-size: clamp(38px, 5.5vw, 68px);
}
html[data-design="brutal"] .search-form {
    gap: 14px;
}
html[data-design="brutal"] .search-input:focus {
    outline: 0;
    border-color: var(--d-ink);
    box-shadow: 4px 4px 0 #3b82f6 !important;
}
html[data-design="brutal"] .btn-clear,
html[data-design="brutal"] .btn-action,
html[data-design="brutal"] .back-link {
    font-weight: 700;
}
html[data-design="brutal"] .tag-filter-label {
    font-weight: 800;
    color: var(--text-primary);
}
html[data-design="brutal"] .tag,
html[data-design="brutal"] .tag-filter a {
    font-weight: 600;
}
html[data-design="brutal"] .tag-filter a {
    padding: 3px 10px;
    background: var(--d-ground);
    border: var(--d-inset-border);
    border-radius: var(--d-r-sm);
    font-size: 13px;
    color: var(--text-secondary);
}
html[data-design="brutal"] .tag-filter a:hover {
    background: var(--d-raised);
    border-color: var(--d-ink);
    color: var(--text-primary);
}
html[data-design="brutal"] .tag-filter a.active {
    background: var(--blue-500);
    border-color: var(--d-ink);
    color: #0a0f1a;
    font-weight: 800;
}
/* stickers: the "Latest post" label, the date on a card, the label of the contents box */
html[data-design="brutal"] .blog-featured-label,
html[data-design="brutal"] .post-toc strong,
html[data-design="brutal"] .blog-card .blog-card-meta span:last-child,
html[data-design="brutal"] .blog-card-footer > span:last-child:not(.blog-card-read) {
    display: inline-block;
    padding: 2px 10px;
    background: var(--blue-500);
    border: 2px solid var(--d-ink);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
    color: #0a0f1a;
    transform: rotate(-2deg);
}
html[data-design="brutal"] .blog-card .blog-card-meta span:last-child,
html[data-design="brutal"] .blog-card-footer > span:last-child:not(.blog-card-read) {
    order: -1;
    pointer-events: none;   /* a click on the date still opens the post */
}
html[data-design="brutal"] .blog-card .blog-card-meta span + span::before {
    content: none;
}
html[data-design="brutal"] .blog-featured {
    margin-bottom: 36px;
}
/* cards: the date line sits on top, then the title, the summary and the tags */
html[data-design="brutal"] .blog-card {
    overflow: visible;
    background: var(--d-surface);
    border: var(--d-panel-border);
    border-radius: var(--d-r-lg);
    box-shadow: 6px 6px 0 #3b82f6 !important;
    transition: transform 0.2s var(--d-pop), box-shadow 0.2s var(--d-ease);
}
html[data-design="brutal"] .blog-card-footer {
    order: -1;
    align-items: flex-start;
    padding: 18px 20px 0;
    border: 0;
}
html[data-design="brutal"] .blog-card-footer,
html[data-design="brutal"] .blog-card-meta,
html[data-design="brutal"] .blog-card-read,
html[data-design="brutal"] .blog-meta {
    font-weight: 600;
    color: var(--text-secondary);
}
html[data-design="brutal"] .blog-card-body {
    padding: 14px 20px 20px;
}
html[data-design="brutal"] .blog-card-body h3 {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
html[data-design="brutal"] .pagination .current {
    border-color: var(--d-ink);
}
/* post */
html[data-design="brutal"] .back-link {
    color: var(--text-primary);
}
html[data-design="brutal"] .back-link:hover {
    color: var(--blue-400);
}
html[data-design="brutal"] .blog-meta {
    border-bottom: var(--d-rule);
}
html[data-design="brutal"] .blog-meta svg {
    color: var(--blue-400);
    stroke-width: 2.5;
}
html[data-design="brutal"] .post-toc,
html[data-design="brutal"] .post-related-card,
html[data-design="brutal"] .blog-post-content blockquote {
    background: var(--d-surface);
    border: var(--d-panel-border);
    border-radius: var(--d-r-md);
    box-shadow: var(--d-item-shadow) !important;
}
html[data-design="brutal"] .post-toc {
    position: relative;
    margin-top: 38px;
    padding: 26px 22px 18px;
}
html[data-design="brutal"] .post-toc strong {
    position: absolute;
    top: -15px;
    left: 18px;
    margin: 0;
}
html[data-design="brutal"] .post-toc ol {
    font-weight: 800;
    color: var(--blue-400);
}
html[data-design="brutal"] .post-toc a {
    font-weight: 600;
}
html[data-design="brutal"] .blog-post-content h2 {
    padding-bottom: 10px;
    border-bottom: var(--d-rule);
}
html[data-design="brutal"] .blog-post-content a {
    text-decoration-thickness: 2px;
}
html[data-design="brutal"] .blog-post-content li::marker {
    font-weight: 800;
    color: var(--blue-400);
}
html[data-design="brutal"] .blog-post-content pre {
    border: 2px solid var(--d-ink);
}
html[data-design="brutal"] .blog-post-content blockquote {
    padding: 16px 20px;
}
html[data-design="brutal"] .blog-post-content th,
html[data-design="brutal"] .blog-post-content td {
    border: 2px solid var(--d-ink);
}
html[data-design="brutal"] .blog-post-content th {
    background: var(--blue-700);
    color: #ffffff;
    font-weight: 800;
}
/* the upload box under a post: a flat deep-blue block */
html[data-design="brutal"] .post-cta {
    background: var(--blue-700);
    border: var(--d-panel-border);
    border-radius: var(--d-r-lg);
    box-shadow: 6px 6px 0 var(--d-ink) !important;
}
html[data-design="brutal"] .post-cta strong {
    color: #ffffff;
}
html[data-design="brutal"] .post-cta p {
    color: var(--text-primary);
}
html[data-design="brutal"] .post-related-grid {
    gap: 18px;
}
html[data-design="brutal"] .post-related-card {
    transition: transform 0.2s var(--d-pop), box-shadow 0.2s var(--d-ease);
}
html[data-design="brutal"] .post-related-card strong {
    font-weight: 800;
}

/* ═══════════════════════ Motion ═══════════════════════
   A short entrance for the title and the first block; the article body gets one short rise. */
@media (prefers-reduced-motion: no-preference) {
    /* A: the head rises in three steps, the rules are drawn from the left */
    html[data-design="swiss"] h1.blog-title,
    html[data-design="swiss"] .blog-post h1 {
        animation: d-rise 0.7s var(--d-ease) both;
    }
    html[data-design="swiss"] h1.blog-title + .blog-subtitle,
    html[data-design="swiss"] .blog-post .blog-meta {
        animation: d-rise 0.7s var(--d-ease) 0.08s both;
    }
    html[data-design="swiss"] h1.blog-title ~ .blog-search-section,
    html[data-design="swiss"] .blog-post .post-toc {
        animation: d-rise 0.7s var(--d-ease) 0.16s both;
    }
    html[data-design="swiss"] h1.blog-title ~ .blog-featured,
    html[data-design="swiss"] h1.blog-title ~ .blog-grid,
    html[data-design="swiss"] .blog-post-content {
        animation: d-rise 0.6s var(--d-ease) 0.24s both;
    }
    html[data-design="swiss"] .blog-meta::after,
    html[data-design="swiss"] .blog-grid::before {
        animation: d-draw-x 0.7s var(--d-ease) 0.2s both;
    }

    /* D: the title pops in, boxes drop in, cards arrive one after another; stickers wobble */
    html[data-design="brutal"] h1.blog-title,
    html[data-design="brutal"] .blog-post h1 {
        animation: d-pop-in 0.5s var(--d-pop) both;
    }
    html[data-design="brutal"] h1.blog-title + .blog-subtitle,
    html[data-design="brutal"] .blog-post .blog-meta {
        animation: d-rise 0.5s var(--d-ease) 0.1s both;
    }
    html[data-design="brutal"] h1.blog-title ~ .blog-featured,
    html[data-design="brutal"] .blog-post .post-toc {
        animation: d-drop-in 0.5s var(--d-pop) 0.16s both;
    }
    html[data-design="brutal"] .blog-post-content {
        animation: d-rise 0.5s var(--d-ease) 0.26s both;
    }
    /* "backwards": once a card has arrived, its transform is free again for the hover */
    html[data-design="brutal"] h1.blog-title ~ .blog-grid .blog-card {
        animation: d-pop-in 0.45s var(--d-pop) 0.42s backwards;
    }
    html[data-design="brutal"] h1.blog-title ~ .blog-grid .blog-card:nth-child(1) { animation-delay: 0.24s; }
    html[data-design="brutal"] h1.blog-title ~ .blog-grid .blog-card:nth-child(2) { animation-delay: 0.3s; }
    html[data-design="brutal"] h1.blog-title ~ .blog-grid .blog-card:nth-child(3) { animation-delay: 0.36s; }
    html[data-design="brutal"] .blog-featured-label {
        animation: d-wobble 5s ease-in-out 1s infinite;
    }
    html[data-design="brutal"] .blog-card:hover .blog-card-meta span:last-child,
    html[data-design="brutal"] .blog-card:hover .blog-card-footer > span:last-child:not(.blog-card-read) {
        animation: d-wobble 0.6s ease-in-out;
    }
    /* cards and buttons lift on hover and land on click */
    html[data-design="brutal"] .blog-card:hover,
    html[data-design="brutal"] .post-related-card:hover {
        transform: translate(-3px, -3px);
    }
    html[data-design="brutal"] .blog-card:hover {
        box-shadow: 9px 9px 0 #3b82f6 !important;
    }
    html[data-design="brutal"] .post-related-card:hover {
        box-shadow: 7px 7px 0 #3b82f6 !important;
    }
    html[data-design="brutal"] .blog-card:active,
    html[data-design="brutal"] .post-related-card:active {
        transform: translate(2px, 2px);
        box-shadow: 2px 2px 0 #3b82f6 !important;
    }
    html[data-design="brutal"] .btn-search:hover {
        transform: translate(-2px, -2px);
        box-shadow: 6px 6px 0 var(--d-ink) !important;
    }
    html[data-design="brutal"] .btn-clear:hover,
    html[data-design="brutal"] .btn-action:hover {
        transform: translate(-2px, -2px);
        box-shadow: 6px 6px 0 #3b82f6 !important;
    }
    html[data-design="brutal"] .btn-search:active,
    html[data-design="brutal"] .btn-clear:active,
    html[data-design="brutal"] .btn-action:active {
        transform: translate(3px, 3px);
        box-shadow: 0 0 0 var(--d-ink) !important;
    }
}
