/* Ušetřil: final layer, loaded last. Header, post lists, static pages, article CTA, footer.
   Brand colours come from modern.css (--brand) and editorial.css (--editorial-green). */

/* ---------- Header ---------- */
.header-section .site-branding { text-align: left; }
.header-section .site-title { text-align: left; }
@media (max-width: 991px) {
    /* backdrop-filter would make the header the containing block of the fixed menu panel and clip it to the header. */
    .header-section { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
    .header-section .main-navigation { height: 100vh; height: 100dvh; overflow-y: auto; }
    .header-section .main-navigation .close-navigation { display: flex !important; align-items: center; justify-content: center; line-height: 1; }
    .header-section .close-navigation .lnr { display: block; line-height: 1; }
    .header-section .hamburger-menu span, .header-section .hamburger-menu.cross span { left: 0; right: 0; width: 100%; margin: 0; }
}
@media (min-width: 992px) {
    /* The off-canvas (mobile) panel styles must never bleed into the desktop bar, not even mid-transition. */
    .header-section .main-navigation {
        position: static; width: auto; max-width: none; height: auto; margin: 0; padding: 0;
        background: transparent; box-shadow: none; transition: none; overflow: visible;
    }
    .header-section .primary-menu { margin: 0; }
    .header-section .primary-menu > li:last-child > a { padding-right: 0; }
    .header-section .close-navigation { display: none; }
}

/* ---------- Post lists (home latest, search, tag, author, návody) ---------- */
.us-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.us-posts-text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.us-posts > article.post { margin: 0; padding: 0 !important; overflow: hidden; }
.us-posts > article.post > .wrap-content { display: flex; flex-direction: column; height: 100%; padding: 0; position: relative; }
.us-posts .post-thumbnail { display: block; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--editorial-soft); }
.us-posts .post-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.us-posts .post-card-body { flex: 1; gap: 8px; padding: 16px 18px 18px; align-items: flex-start; }
.us-posts .entry-header { margin: 0; }
.us-posts .entry-title { font-size: 18px; line-height: 1.35 !important; margin: 0; }
.us-posts .entry-meta-row { font-size: 12px; color: #5d6b66; }
.us-posts .entry-excerpt { font-size: 14px; line-height: 1.6; color: #565b6b; margin: 0; }
.us-posts .us-card-link { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.us-posts .us-card-link::after { content: ""; position: absolute; inset: 0; }
.us-posts > article.post:hover .entry-title { color: var(--brand); }
@media (max-width: 991px) { .us-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .us-posts, .us-posts-text { grid-template-columns: 1fr; gap: 14px; } }

/* Home and hub blocks: three balanced columns on wide screens (6 most read, 3 per rubrika, 9 guides). */
@media (min-width: 992px) {
    .usetril-home-blocks .usetril-grid, .usetril-pillarnav ~ .usetril-block .usetril-grid, .error-404 ~ .usetril-block .usetril-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .usetril-guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.usetril-latest-h { margin: 8px 0 18px; font-size: 22px; }
.home .site-main > .us-posts, .home .site-main > .dope-pagination { grid-column: 1 / -1; }
.main-content-section .page-header { margin-bottom: 20px; }
.dope-pagination { margin-top: 28px; }

/* ---------- Static pages ---------- */
.us-page .usetril-breadcrumbs { font-size: 13px; margin: 0 0 14px; }
.content-area .us-page.page, .us-page { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 0 !important; }
.us-page > .wrap-content { padding: 36px 44px 40px; }
.us-page .entry-header { margin: 0 0 22px; padding: 0; background: none; border: 0; box-shadow: none; text-align: left; }
.us-page .entry-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15 !important; letter-spacing: -.03em; color: var(--editorial-ink); margin: 0; }
.us-page .entry-content { font-size: 17px; line-height: 1.8; color: #293d35; overflow-wrap: break-word; }
.us-page .entry-content h2 { font-size: 22px; line-height: 1.35 !important; color: var(--editorial-ink); margin: 34px 0 10px; padding: 0; }
.us-page .entry-content h2::before { display: none; }
.us-page .entry-content h3 { font-size: 18px; margin: 22px 0 8px; }
.us-page .entry-content ul, .us-page .entry-content ol { padding-left: 22px; margin: 0 0 18px; }
.us-page .entry-content ul { list-style: disc; }
.us-page .entry-content ol { list-style: decimal; }
.us-page .entry-content li { margin: 6px 0; }
.us-page .entry-content a, .us-page .entry-content li a { color: var(--editorial-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.us-info-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.us-page .entry-content code { background: #f0f3f1; color: var(--editorial-ink); border-radius: 5px; padding: 2px 6px; font-size: .86em; white-space: nowrap; }
.us-page .entry-content table { width: 100%; font-size: 15px; margin: 0 0 20px; }
.us-page .entry-content th, .us-page .entry-content td { border: 1px solid #e3eae5; padding: 10px 12px; vertical-align: top; text-align: left; }
.us-page .entry-content th { background: var(--editorial-soft); color: var(--editorial-ink); }
.us-table-scroll { overflow-x: auto; }
@media (max-width: 575px) { .us-page .entry-content .us-table-scroll table { min-width: 520px; } }
.us-page-updated { font-size: 13px; color: #5d6b66; }
.us-button { display: inline-block; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--editorial-green); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.us-info-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.us-info-nav a { display: inline-block; padding: 8px 14px; border: 1px solid #dce6de; border-radius: 30px; background: #fff; color: #395146; font-size: 13px; }
.us-info-nav a[aria-current] { background: var(--editorial-green); border-color: var(--editorial-green); color: #fff; text-decoration: none; }
@media (max-width: 575px) { .us-page > .wrap-content { padding: 22px 18px 26px; } .us-page .entry-content { font-size: 16px; } }

/* /navody/: the hand-picked list of guides as a compact two-column list. */
.us-page .gb-grid-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.us-page .gb-grid-wrapper > .gb-grid-column { width: auto !important; padding: 0 !important; margin: 0; }
.us-page .gb-grid-column > .gb-container, .us-page .gb-grid-column .gb-inside-container { height: 100%; padding: 0 !important; margin: 0; background: none !important; }
.us-page .entry-content .gb-grid-column h2 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45 !important; height: 100%; }
.us-page .entry-content .gb-grid-column h2 a { display: block; height: 100%; padding: 12px 14px; border-radius: 12px; background: var(--editorial-soft); color: var(--editorial-ink); text-decoration: none; border: 0; }
.us-page .entry-content .gb-grid-column h2 a:hover { background: #e2efe7; color: var(--editorial-ink); }
@media (max-width: 639px) { .us-page .gb-grid-wrapper { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.us-go { margin: 0 0 18px; }
.us-go .affiliate-disclosure { margin: 0 0 10px; }
.us-go .editorial-go { margin: 0; }
.affiliate-disclosure { font-size: 13px; line-height: 1.6; color: #55655e; padding: 10px 14px; border-radius: 10px; background: #f5f7f6; border: 1px solid #e4eae5; margin: 0 0 18px; }
.affiliate-disclosure a { text-decoration: underline; }
.editorial-single .entry-content p.disclosure-affiliate, .editorial-single .entry-content p.disclaimer { font-size: 14px; line-height: 1.65; color: #55655e; }
.editorial-related-sidebar .editorial-related-card img { width: 96px; height: 54px; flex-basis: 96px; }
.editorial-related-bottom .editorial-related-card img { height: auto; aspect-ratio: 16 / 9; }
.editorial-single .entry-content > table, .editorial-single .entry-content figure > table { -webkit-overflow-scrolling: touch; }

/* ---------- Footer ---------- */
.footer-info { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 18px 0; margin: 8px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; list-style: none; }
.footer-info a, .footer-section .footer-contact a { color: rgba(255, 255, 255, .86); }
.footer-info a:hover, .footer-section .footer-contact a:hover { color: #ff7a85; }
.footer-section .footer-contact { color: rgba(255, 255, 255, .62); }
.footer-section .footer-bottom { padding-bottom: 22px; }
