.site-header .inside-header {
    flex-wrap: wrap;
    gap: 10px 20px;
}

.saltem-reader-no-primary #site-navigation,
.saltem-reader-no-primary #mobile-menu-control-wrapper {
    display: none !important;
}

.saltem-reader-tools {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 22px;
    min-width: 0;
}

.saltem-reader-search {
    display: flex;
    width: min(100%, 330px);
    gap: 6px;
}

.saltem-reader-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
}

.saltem-reader-search button {
    flex: none;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    background: #1e40af;
    color: #fff;
}

.saltem-reader-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
}

.saltem-reader-categories a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 6px;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.saltem-reader-categories a[aria-current="page"] {
    color: #1e40af !important;
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

.saltem-reader-guides {
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #eff6ff;
}

.saltem-reader-guides #saltem-guides-title {
    margin: 0 0 4px !important;
    font-size: 16px !important;
    text-align: left !important;
}

.saltem-reader-guide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 18px;
}

.saltem-reader-guide-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: #1e40af !important;
    font-size: 14px;
    text-underline-offset: 0.2em;
}

body:has(.saltem-reader-search) #right-sidebar .widget_search {
    display: none !important;
}

@media (min-width: 769px) {
    #right-sidebar .inside-right-sidebar {
        display: flex;
        flex-direction: column;
    }

    #right-sidebar .inside-right-sidebar > :is(.widget_categories, :has(.wp-block-categories)) {
        order: -1;
    }
}

body.saltem-reader-feed .site-main {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.saltem-reader-feed .site-main > :not(article),
.saltem-reader-feed .site-main > article:not(.post) {
    grid-column: 1 / -1;
}

.saltem-reader-feed .site-main > .page-header {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.saltem-reader-feed .site-main > .page-header .page-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(22px, 3vw, 30px) !important;
    text-wrap: wrap !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.saltem-reader-feed .saltem-modern-card {
    position: relative;
    min-width: 0;
}

.saltem-reader-feed .gc-card-title {
    text-wrap: wrap !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
}

.saltem-reader-feed .gc-card-meta {
    flex-wrap: wrap;
}

.saltem-reader-feed .gc-cat-badge {
    white-space: nowrap;
}

.saltem-reader-feed .gc-card-title > a::after {
    position: absolute;
    inset: 0;
    content: "";
}

.saltem-reader-feed .gc-cat-badge {
    position: relative;
    z-index: 1;
}

.saltem-reader-feed .saltem-modern-card:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.saltem-reader-feed .gc-thumb-wrapper.gc-thumb-empty {
    display: none !important;
}

.single .inside-article .entry-title {
    text-wrap: wrap !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
}

.single .entry-content > .cp-tldr-box:has(+ .cp-single-herocard) {
    margin: 0 0 14px !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
}

.single .entry-content .cp-tldr-box .cp-tldr-list {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.single .entry-content .cp-tldr-list .cp-tldr-item {
    margin: 0 !important;
    padding: 5px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
}

.single .entry-content .cp-tldr-list .cp-tldr-item + .cp-tldr-item {
    border-top: 1px solid #dbe3ee !important;
}

.single .entry-content figure.saltem-purchase-comparison {
    margin: 18px 0 24px !important;
    max-width: 100%;
}

.single .entry-content .saltem-purchase-comparison .cp-table-scroll {
    margin: 0 !important;
    background: #fff;
    border-color: #cbd5e1 !important;
}

.single .entry-content .saltem-purchase-comparison table {
    table-layout: fixed;
    min-width: 0 !important;
}

.single .entry-content .saltem-purchase-comparison caption {
    padding: 12px 14px;
    color: #172554;
    background: #eff6ff;
    font-weight: 700;
    text-align: left;
}

.single .entry-content .saltem-purchase-comparison :is(th, td) {
    height: auto !important;
    word-break: keep-all !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    vertical-align: top;
}

.single .entry-content .saltem-purchase-comparison tbody th {
    color: #1e3a8a !important;
    -webkit-text-fill-color: currentColor !important;
    background: #f1f5f9 !important;
}

.single .entry-content .saltem-purchase-comparison figcaption {
    margin-top: 8px;
    color: #475569;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .single .entry-content .saltem-purchase-comparison :is(th, td) {
        padding: 9px 8px !important;
        font-size: 0.875rem !important;
        line-height: 1.45;
    }

    .single .site-header {
        position: relative !important;
    }

    .site-header .inside-header > .saltem-reader-tools {
        flex: 1 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .saltem-reader-search {
        width: 100%;
    }

    .saltem-reader-categories a {
        padding-block: 0;
    }

    body.saltem-reader-feed .site-main {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .saltem-reader-feed article.saltem-modern-card > .inside-article {
        display: grid !important;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: start;
    }

    .saltem-reader-feed article.saltem-modern-card > .inside-article:has(.gc-thumb-empty) {
        grid-template-columns: minmax(0, 1fr);
    }

    .saltem-reader-feed .saltem-modern-card .gc-thumb-wrapper {
        aspect-ratio: 1 !important;
        margin: 12px 0;
        padding: 8px !important;
        border: 0 !important;
    }

    .saltem-reader-feed .saltem-modern-card .gc-card-body {
        padding: 10px 12px !important;
    }

    .saltem-reader-feed .gc-card-meta,
    .saltem-reader-feed .gc-card-excerpt {
        margin-bottom: 6px !important;
    }

    .saltem-reader-feed .gc-card-title {
        margin-bottom: 4px !important;
    }

    .saltem-reader-feed .gc-card-footer {
        padding-top: 4px !important;
    }

    .single .entry-content > .cp-tldr-box:has(+ .cp-single-herocard) {
        padding: 12px !important;
    }

    .single .entry-content .cp-single-herocard .cp-card-img {
        max-height: 176px !important;
    }
}
