/*
    Ušetřil.cz — modern design layer (2026 refresh)
    Loads after parent + plugin styles (enqueued at wp_enqueue_scripts priority 20).
    Clean editorial: white surfaces, red brand accent, Inter, cards, soft shadows.
*/

:root {
    --brand: #e11d2e;
    --brand-dark: #c11323;
    --brand-soft: #fdecec;
    --ink: #12141c;
    --body-c: #3f4350;
    --muted: #6e7382;
    --bg: #f6f7f9;
    --card: #ffffff;
    --line: #e8eaef;
    --radius: 16px;
    --radius-s: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .10);
    --shadow-hover: 0 2px 4px rgba(16, 24, 40, .05), 0 16px 40px -16px rgba(16, 24, 40, .18);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------------------------------------------------------------
   Base
--------------------------------------------------------------- */

body {
    background: var(--bg);
    color: var(--body-c);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.25 !important;
    letter-spacing: -0.015em;
}

h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

a, a:focus {
    color: var(--body-c);
    text-decoration: none;
    outline: 0;
}

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

::selection { background: var(--brand); color: #fff; }
::-moz-selection { background: var(--brand); color: #fff; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

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

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2em 0;
}

.main-content-section {
    padding: 40px 0 72px;
}

/* ---------------------------------------------------------------
   Buttons, forms
--------------------------------------------------------------- */

.btn,
button[type="submit"],
.wp-element-button,
.wp-block-button__link {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: var(--radius-s);
    padding: 10px 22px;
    font-weight: 600;
    font-family: var(--font);
    transition: background .2s ease, transform .2s ease;
}

.btn:hover, .btn:focus,
.wp-block-button__link:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
}

.form-control,
input[type="text"], input[type="search"], input[type="email"],
input[type="url"], input[type="password"], textarea, select {
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    font-family: var(--font);
    font-size: 15px;
    color: var(--ink);
    padding: 10px 14px;
    height: auto;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus,
input[type="text"]:focus, input[type="search"]:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
    outline: 0;
}

/* Search form (header, mobile panel, 404) */

.search-form { position: relative; }

.search-form .form-control {
    padding-right: 44px;
    border-radius: 999px;
    background: #fff;
}

.search-form .search-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 36px;
    border: 0;
    background: transparent;
    color: var(--muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color .2s ease, background .2s ease;
}

.search-form .search-submit:hover {
    color: var(--brand);
    background: var(--brand-soft);
    transform: none;
}

.search-form .search-submit .lnr-magnifier { font-size: 17px; }

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */

.header-section {
    position: sticky;
    top: 0;
    z-index: 1100;
    padding: 12px 0;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
}

body.admin-bar .header-section { top: 32px; }

.header-section .row { align-items: center; }

.site-branding { margin-bottom: 0; }

.site-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1 !important;
}

.site-title a {
    color: var(--brand);
    font-weight: 800;
}

.site-title a:hover { color: var(--brand-dark); }

.custom-logo-link img { max-height: 44px; width: auto; }

.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.header-search { flex: 0 1 220px; }

/* Desktop nav */

.primary-menu > li {
    font-size: 15px;
    font-weight: 600;
}

ul.primary-menu li a {
    color: var(--body-c);
    padding: 10px 13px;
    position: relative;
}

ul.primary-menu > li > a { text-transform: none; }

ul.primary-menu > li > a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

ul.primary-menu > li > a:hover::after,
ul.primary-menu > li.current-menu-item > a::after,
ul.primary-menu > li.current_page_item > a::after {
    transform: scaleX(1);
}

ul.primary-menu li a:hover,
ul.primary-menu li:hover > a,
ul.primary-menu li.current-menu-item > a,
ul.primary-menu li.current_page_item > a {
    color: var(--brand);
}

.primary-menu .sub-menu li {
    text-transform: none;
    border-bottom: 1px solid var(--line);
}

.primary-menu .sub-menu li:last-child { border-bottom: 0; }

.primary-menu .sub-menu li a {
    padding: 11px 18px;
    font-weight: 500;
    font-size: 14px;
}

@media (min-width: 992px) {
    .primary-menu li:hover > ul {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-s);
        box-shadow: var(--shadow-hover);
        overflow: hidden;
        padding: 6px 0;
    }
    .primary-menu li:hover > ul li a::after { display: none; }
}

.main-navigation .arrow {
    color: var(--muted);
    padding: 8px;
}

/* Hamburger (3 spans; parent CSS assumed 4 spans — fully overridden here) */

.header-section .hamburger-menu {
    position: relative;
    width: 26px;
    height: 20px;
    right: auto;
    margin-left: 4px;
    transition: transform .3s ease;
}

.header-section .hamburger-menu span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    top: 0;
    transition: transform .3s ease, opacity .25s ease, top .3s ease;
}

.header-section .hamburger-menu span:nth-child(2) { top: 9px; }
.header-section .hamburger-menu span:nth-child(3) { top: 18px; }

.header-section .hamburger-menu.cross span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.header-section .hamburger-menu.cross span:nth-child(2) { opacity: 0; }
.header-section .hamburger-menu.cross span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Mobile nav panel — keep off-canvas mechanics from parent JS/CSS */

@media (max-width: 991px) {
    .header-search { display: none; }

    .main-navigation {
        width: 340px;
        max-width: calc(100% - 60px);
        left: -400px;
        background: #fff;
        padding: 72px 24px 40px;
        box-shadow: 24px 0 60px rgba(16, 24, 40, .12);
        transition: left .35s ease;
    }

    .logged-in .main-navigation { margin-top: 0 !important; }

    .main-navigation .mobile-search { margin-bottom: 20px; }

    .main-navigation ul.primary-menu li {
        border-bottom: 1px solid var(--line);
    }

    .main-navigation ul.primary-menu li:last-child { border-bottom: 0; }

    .main-navigation ul.primary-menu li a {
        display: block;
        padding: 15px 2px;
        font-size: 16px;
        font-weight: 600;
        color: var(--ink);
    }

    .main-navigation ul.primary-menu > li > a::after { display: none; }

    .main-navigation ul li ul {
        background: var(--bg);
        border-radius: var(--radius-s);
        margin: 4px 0 12px;
        padding: 4px 0;
    }

    .main-navigation ul li ul li a {
        padding: 10px 16px;
        font-size: 15px;
        font-weight: 500;
    }

    .close-navigation {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--bg);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-navigation .lnr-cross { font-size: 18px; color: var(--ink); }
}

@media (min-width: 992px) {
    .header-section .hamburger-menu { display: none !important; }
    .main-navigation .mobile-search { display: none; }
}

/* Body overlay — parent default state has no opacity/visibility/pointer-events
   rules (only .is-active sets them with !important), so the always-present
   div would intercept clicks across the page. Normalize: hidden and
   click-through unless the mobile menu is open. */

.body-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.body-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ---------------------------------------------------------------
   Cards (posts, pages, widgets)
--------------------------------------------------------------- */

.widget,
.post,
.content-area .page,
.not-found {
    background: var(--card);
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.post.sticky { background: var(--card) !important; color: inherit; }

.hentry { margin: 0 0 24px; }

.wrap-content { padding: 0; }

.post .post-thumbnail {
    display: block;
    overflow: hidden;
    margin: -26px -26px 0;
    border-radius: var(--radius) var(--radius) 0 0;
}

.post .post-thumbnail img {
    display: block;
    width: 100%;
    transition: transform .4s ease;
}

.post:hover .post-thumbnail img { transform: scale(1.04); }

.post .wrap-content { padding: 20px 26px 24px; }

.post-card-body { display: flex; flex-direction: column; gap: 10px; }

.entry-category {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.entry-category a {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease;
}

.entry-category a:hover {
    background: var(--brand);
    color: #fff;
}

.entry-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35 !important;
    letter-spacing: -0.01em;
    margin: 0;
}

.entry-title a { color: var(--ink); transition: color .2s ease; }
.entry-title a:hover { color: var(--brand); }

.entry-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.entry-meta-row .meta-sep { opacity: .5; }

/* ---------------------------------------------------------------
   Homepage grid (featured + 2 columns) & archives
--------------------------------------------------------------- */

.home .site-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.home .site-main > .hentry,
.home .site-main > article { margin: 0; display: flex; }

.home .site-main > article > .wrap-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.home .site-main .dope-pagination { grid-column: 1 / -1; margin: 8px 0 0; }

/* Featured first post (page 1 only) */

.post-featured { grid-column: 1 / -1; }

.post-featured .wrap-content {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    align-items: stretch;
}

.post-featured .post-thumbnail {
    margin: 0;
    border-radius: 0;
    height: 100%;
}

.post-featured .post-thumbnail img { height: 100%; object-fit: cover; }

.post-featured .post-card-body {
    padding: 32px;
    justify-content: center;
}

.post-featured .entry-title { font-size: 30px; line-height: 1.25 !important; }
.post-featured .entry-meta-row { font-size: 14px; }

@media (max-width: 767px) {
    .home .site-main { grid-template-columns: 1fr; }
    .post-featured .wrap-content { grid-template-columns: 1fr; }
    .post-featured .post-thumbnail img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
}

/* Tag archive — full width, 3 columns */

.tag .site-main .col-md-12 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tag .site-main .col-md-12 > .hentry,
.tag .site-main .col-md-12 > article { margin: 0; display: flex; }
.tag .site-main .col-md-12 > article > .wrap-content { display: flex; flex-direction: column; width: 100%; }
.tag .site-main .col-md-12 > .dope-pagination { grid-column: 1 / -1; margin-top: 8px; }

@media (max-width: 991px) {
    .tag .site-main .col-md-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .tag .site-main .col-md-12 { grid-template-columns: 1fr; }
}

/* Category/date archives — single column with sidebar */

.archive .site-main .hentry { margin: 0 0 24px; }

/* Page headers on archives (flatten the parent card) */

.page-header {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 0 28px;
}

.page-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.archive-description { color: var(--muted); max-width: 720px; }

/* Pagination */

.dope-pagination { margin: 16px 0 8px; }

.page-numbers {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 0;
    min-width: 42px;
    height: 42px;
    line-height: 40px;
    margin: 0 4px;
    font-weight: 600;
    font-family: var(--font);
    font-size: 15px;
    box-shadow: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

a.page-numbers:hover {
    background: #fff;
    color: var(--brand);
    border-color: var(--brand);
}

.page-numbers.current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.page-numbers.dots { border: 0; background: transparent; }

/* ---------------------------------------------------------------
   Sidebar widgets
--------------------------------------------------------------- */

.widget { margin: 0 0 24px; }

.widget-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    width: 32px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
    bottom: 0;
}

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

.widget ul li {
    border-bottom: 1px solid var(--line);
    padding: 10px 2px;
    font-size: 15px;
}

.widget ul li:last-child { border-bottom: 0; }

.widget ul li a { color: var(--body-c); font-weight: 500; }
.widget ul li a:hover { color: var(--brand); }

.widget.widget_recent_entries ul li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.widget.widget_recent_entries .post-date { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* Tag cloud pills */

.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 13px !important;
    color: var(--body-c);
    line-height: 1.3;
    transition: all .2s ease;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand);
}

/* ---------------------------------------------------------------
   Single article
--------------------------------------------------------------- */

.single .entry-title,
.page .entry-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
    margin: 6px 0 10px;
}

.single .entry-header .entry-meta-row { margin: 0 0 8px; }

.entry-content {
    font-size: 17px;
    line-height: 1.75;
    color: #3a3f4d;
}

.entry-content p { margin-bottom: 1.4em; }

.entry-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 1.8em 0 .7em;
    position: relative;
    padding-left: 16px;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 5px;
    border-radius: 3px;
    background: var(--brand);
}

.entry-content h3 { font-size: 20px; font-weight: 700; margin: 1.6em 0 .6em; }

.entry-content a {
    color: var(--brand);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(225, 29, 46, .35);
    text-underline-offset: 3px;
}

.entry-content a:hover { color: var(--brand-dark); text-decoration-color: var(--brand-dark); }

.entry-content img,
.entry-content .wp-caption {
    border-radius: var(--radius-s);
}

.entry-content blockquote {
    border-left: 4px solid var(--brand);
    background: var(--bg);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    padding: 20px 24px;
    margin: 1.6em 0;
    font-size: 17px;
    color: var(--ink);
}

.entry-content blockquote p:last-of-type { margin-bottom: 0; }

.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: .4em; }

/* Tables (incl. TablePress) */

.entry-content table,
.tablepress {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 1.6em 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    overflow: hidden;
}

.entry-content th,
.tablepress th,
.entry-content td,
.tablepress td {
    padding: 11px 14px;
    border: 1px solid var(--line);
}

.entry-content th, .tablepress th {
    background: #1a1d26;
    color: #fff;
    font-weight: 600;
    text-align: left;
}

.tablepress .odd td, .entry-content tr:nth-child(odd) td { background: #fff; }
.tablepress .even td, .entry-content tr:nth-child(even) td { background: #f8f9fb; }

/* Table of contents (easy-table-of-contents) */

#ez-toc-container {
    background: var(--bg);
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
    padding: 20px 24px !important;
    margin: 1.8em 0;
}

#ez-toc-container .ez-toc-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
}

#ez-toc-container a { color: var(--body-c); font-weight: 500; }
#ez-toc-container a:hover { color: var(--brand); }

/* Elegant Builder / Shortcodes Ultimate content boxes */

.et-box, .su-service, .su-note, .su-box {
    border-radius: var(--radius-s);
}

.alert {
    border-radius: 999px;
    font-weight: 600;
    padding: 10px 20px;
}

code, pre {
    background: #1a1d26;
    color: #e6e8ef;
    border-radius: 8px;
    font-size: .9em;
}

pre { padding: 16px 18px; overflow-x: auto; }
code { padding: 2px 6px; }
pre code { background: transparent; padding: 0; }

/* ---------------------------------------------------------------
   Leták viewer
--------------------------------------------------------------- */

.single-letak .entry-title { font-size: 30px; font-weight: 800; }

.single-letak .entry-content > .row { align-items: center; }

.single-letak .entry-content img.img-responsive,
.single-letak .entry-content img[class*="align"] {
    display: block;
    margin: 0 auto 24px;
    border-radius: var(--radius-s);
    box-shadow: var(--shadow-hover);
    max-width: 100%;
    height: auto;
}

.single-letak .alert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------------------------------------------------------------
   Leták / produkt grids (taxonomy-letak-tag, /letaky, produkty)
--------------------------------------------------------------- */

.taxonomy-letak-tag .page-header,
.page-id-1090 .page-header,
.page-template-1090 .page-header {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.taxonomy-letak-tag .page-header .row > .col-md-4,
.page-id-1090 .page-header .row > .col-md-4,
.single-produkt .related .col-md-6 {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.taxonomy-letak-tag .page-header .row > .col-md-4:hover,
.page-id-1090 .page-header .row > .col-md-4:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.taxonomy-letak-tag .page-header .col-md-4 img,
.page-id-1090 .page-header .col-md-4 img {
    width: 100%;
    border-radius: calc(var(--radius) - 6px);
    transition: transform .35s ease;
}

.taxonomy-letak-tag .page-header .col-md-4:hover img,
.page-id-1090 .page-header .col-md-4:hover img { transform: scale(1.03); }

.taxonomy-letak-tag .page-header h2,
.page-id-1090 .page-header h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 4px 0 0;
    line-height: 1.35 !important;
}

.taxonomy-letak-tag .page-header h2 a,
.page-id-1090 .page-header h2 a { color: var(--ink); }
.taxonomy-letak-tag .page-header h2 a:hover,
.page-id-1090 .page-header h2 a:hover { color: var(--brand); }

.taxonomy-letak-tag .page-header .col-md-4 .su-service,
.page-id-1090 .page-header .col-md-4 .su-service {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}

.taxonomy-letak-tag .page-header .col-md-4 .su-service .su-service-title,
.page-id-1090 .page-header .col-md-4 .su-service .su-service-title { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------
   Related posts lists (single templates)
--------------------------------------------------------------- */

.list-group { margin-top: 28px; display: grid; gap: 0; }

.list-group-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-s) !important;
    padding: 12px 16px !important;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.list-group-item img.attachment-thumbnail,
.list-group-item img.wp-post-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-s);
    flex: 0 0 auto;
    margin: 0;
}

.list-group-item a { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.4; }
.list-group-item a:hover { color: var(--brand); }

.single .site-main > .list-group { list-style: none; padding: 0; }

/* Post navigation (prev/next) */

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: inline-block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 12px 18px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: border-color .2s ease, color .2s ease;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover { border-color: var(--brand); color: var(--brand); }

.post-navigation .nav-txt {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: 4px;
}

/* ---------------------------------------------------------------
   Comments
--------------------------------------------------------------- */

.comments-title { font-size: 22px; font-weight: 800; }

.comment-list .card,
.comment-list .media-body {
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    box-shadow: var(--shadow);
}

.comment-list .card { margin-bottom: 16px; overflow: hidden; }
.comment-list .card-header, .comment-list .card-footer { background: var(--bg); border-color: var(--line); padding: 10px 16px; }
.comment-list .card-body { padding: 16px; }
.comment-list .media-body { padding: 14px 18px; }

.comment-reply-link { color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */

.footer-section {
    background: #14161d;
    color: rgba(255, 255, 255, .72);
    padding: 56px 0 0;
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-logo a { color: var(--brand); }
.footer-logo a:hover { color: #ff4d5c; }

.footer-tagline {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .55);
    max-width: 340px;
}

.footer-heading {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .45);
    margin: 0 0 16px;
}

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

.footer-menu li { margin-bottom: 10px; }

.footer-menu a {
    color: rgba(255, 255, 255, .72);
    font-size: 14.5px;
    font-weight: 500;
    transition: color .2s ease;
}

.footer-menu a:hover { color: #ff4d5c; }

.footer-menu li a { display: inline-block; }
.footer-categories li a { color: rgba(255, 255, 255, .72); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 20px 0;
}

.footer-bottom .site-info {
    color: rgba(255, 255, 255, .4);
    font-size: 13px;
    margin: 0;
}

.footer-bottom .site-info a.footer-link {
    color: rgba(255, 255, 255, .55);
    font-weight: 500;
}

.footer-bottom .site-info a.footer-link:hover { color: #ff4d5c; }

/* Footer topic pills (wp_tag_cloud list format) */

.footer-section .wp-tag-cloud {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-section .wp-tag-cloud li { margin: 0; }

.footer-section .wp-tag-cloud a {
    display: inline-block;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px !important;
    line-height: 1.3;
    color: rgba(255, 255, 255, .7);
    transition: all .2s ease;
}

.footer-section .wp-tag-cloud a:hover {
    color: #ff4d5c;
    border-color: rgba(255, 77, 92, .5);
    background: rgba(225, 29, 46, .10);
}

@media (max-width: 767px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Scroll-to-top (keep display:none default — JS fadeIn manages visibility) */

.scroll-top {
    width: 44px;
    height: 44px;
    line-height: 44px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(225, 29, 46, .35);
    text-align: center;
    right: 24px;
    bottom: 24px;
    transition: background .2s ease, transform .2s ease;
}

.scroll-top:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }

/* ---------------------------------------------------------------
   Misc
--------------------------------------------------------------- */

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }

.no-results .page-title, .not-found .page-title { font-size: 26px; }

.search-results .page-header { margin-bottom: 24px; }

@media (max-width: 480px) {
    h1, h2 { font-size: 26px; }
    .entry-title { font-size: 18px; }
    .single .entry-title, .page .entry-title { font-size: 26px; }
    .post-featured .entry-title { font-size: 24px; }
    .post .post-thumbnail { margin: -20px -20px 0; }
    .post .wrap-content { padding: 16px 20px 20px; }
}

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

@media print {
    .header-section, .footer-section, .scroll-top, .dope-pagination, .widget { display: none !important; }
    body { background: #fff; color: #000; }
}
