/* Sumback — cashback & deals theme for Ghost */

:root {
    --c-primary: var(--ghost-accent-color, #6d28d9);
    --c-accent: #f59e0b;
    --c-bg: #fdfdfe;
    --c-soft: color-mix(in srgb, var(--c-primary) 5%, #fbfbfc);
    --c-text: #17161f;
    --c-muted: #6f6d80;
    --c-line: color-mix(in srgb, var(--c-primary) 8%, #ebebef);
    --c-green: #16a34a;
    --r: 14px;
    --r-sm: 9px;
    --shadow: 0 6px 24px rgba(23, 22, 31, 0.07);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--gh-font-body, var(--font));
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--gh-font-heading, var(--font)); }

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-accent { background: var(--c-accent); color: #17161f; font-weight: 700; }
.btn-ghost { background: transparent; color: var(--c-text); }
.btn-light { background: #fff; color: var(--c-primary); }
.btn-outline { background: transparent; border: 1px solid var(--c-line); color: var(--c-text); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13.5px; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: var(--r-sm);
    cursor: pointer;
    color: var(--c-text);
}
.icon-btn:hover { background: var(--c-soft); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(253, 253, 254, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 76px;
}
.site-nav { margin-left: auto; }
.site-logo img { max-height: 40px; width: auto; display: block; }
.site-title { font-size: 21px; font-weight: 800; color: var(--c-primary); }

.site-nav ul, .mobile-nav ul {
    display: flex;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a, .mobile-nav ul a { /*nav*/
    display: block;
    padding: 8px 13px;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 15.5px;
    color: var(--c-muted);
}
.site-nav a:hover, .mobile-nav ul a:hover { color: var(--c-primary); background: var(--c-soft); }
.site-nav .nav-current a { color: var(--c-primary); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.btn-telegram { gap: 6px; color: var(--c-primary); border-color: color-mix(in srgb, var(--c-primary) 30%, #fff); }
.menu-toggle { display: none; }
.mobile-nav { display: none; padding: 6px 24px 18px; }
.mobile-nav ul { flex-direction: column; margin-bottom: 12px; }

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 40px;
    text-align: center;
    background:
        radial-gradient(600px 300px at 50% -80px, color-mix(in srgb, var(--c-primary) 14%, transparent), transparent);
}
.hero-title {
    margin: 0 0 10px;
    font-size: clamp(34px, 5.5vw, 58px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.08;
}
.hero-title::first-line { color: inherit; }
.hero-subtitle { margin: 0 0 34px; font-size: 19px; color: var(--c-muted); }

.hero-search {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 8px 8px 8px 26px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: #fff;
    color: var(--c-muted);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .15s, border-color .15s;
    text-align: left;
}
.hero-search:hover { transform: translateY(-2px); border-color: var(--c-primary); }
.hero-search > span:first-of-type { flex: 1; }
.hero-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    flex: none;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--c-line);
    font-size: 14.5px;
    font-weight: 500;
    transition: border-color .15s, color .15s;
}
.pill:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------- Ticker ---------- */
.ticker {
    display: flex;
    align-items: center;
    gap: 0;
    border-block: 1px solid var(--c-line);
    background: #fff;
    overflow: hidden;
    height: 48px;
}
.ticker-label {
    flex: none;
    padding: 0 18px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-primary);
    border-right: 1px solid var(--c-line);
    background: #fff;
    z-index: 2;
}
.ticker-track { flex: 1; overflow: hidden; }
.ticker-group {
    display: inline-flex;
    gap: 36px;
    padding-left: 24px;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}
.ticker:hover .ticker-group { animation-play-state: paused; }
.ticker-item { font-size: 14.5px; color: var(--c-muted); }
.ticker-item strong { color: var(--c-text); font-weight: 600; }
.ticker-item em { font-style: normal; color: var(--c-green); font-weight: 700; margin-left: 4px; }
@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Board (sidebar + grid) ---------- */
.board { padding: 48px 0 72px; }
.board-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 32px;
    align-items: start;
}
.board-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 22px; }

.sidebar-block {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    padding: 24px;
}
.sidebar-block h4 {
    margin: 0 0 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    margin: 0 -10px;
    border-radius: var(--r-sm);
    font-size: 15.5px;
    font-weight: 500;
}
.cat-list a:hover { background: var(--c-soft); color: var(--c-primary); }
.cat-list a span { font-size: 12.5px; color: var(--c-muted); }

.sort-options { display: flex; flex-direction: column; gap: 4px; }
.board-head .sort-options { flex-direction: row; }
.sort-btn {
    text-align: left;
    padding: 9px 12px;
    border: none;
    background: transparent;
    border-radius: var(--r-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--c-muted);
    cursor: pointer;
}
.sort-btn:hover { background: var(--c-soft); }
.sort-btn.is-active { background: var(--c-soft); color: var(--c-primary); font-weight: 600; }

.sidebar-cta { background: linear-gradient(140deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 65%, #000)); border: none; color: #fff; }
.sidebar-cta p { margin: 0 0 12px; font-weight: 600; font-size: 14.5px; }
.sidebar-cta .btn-primary { background: #fff; color: var(--c-primary); }

.board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.board-count { font-size: 13.5px; color: var(--c-muted); }

/* ---------- Store cards ---------- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}
.store-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    padding: 24px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-line)); }

.store-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}
.store-logo { /*logo*/
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-line);
    padding: 5px;
    background: #fff;
}
.store-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--c-muted);
    overflow: hidden;
}
.hot-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-accent) 16%, #fff);
    color: #b45309;
}
.store-name { margin: 0 0 4px; font-size: 18.5px; font-weight: 700; }
.store-name a:hover { color: var(--c-primary); }
.store-rate {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--c-text);
    line-height: 1.15;
    margin-bottom: 8px;
}
.store-trust { margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: var(--c-muted);
    margin-bottom: 14px;
}
.store-cat { font-weight: 600; color: var(--c-primary); }
.store-card .btn { margin-top: 14px; }

/* ---------- Sign-in banner & toast ---------- */
.signin-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 34px 40px;
    border-radius: var(--r);
    background: linear-gradient(120deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 65%, #000));
    color: #fff;
}
.signin-banner h3 { margin: 0 0 4px; font-size: 22px; }
.signin-banner p { margin: 0; opacity: .85; font-size: 14.5px; }

.signin-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(420px, calc(100% - 32px));
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    box-shadow: 0 16px 48px rgba(23, 22, 31, .18);
    padding: 18px 20px;
}
.signin-toast p { margin: 0 0 12px; font-weight: 600; font-size: 15px; }
.signin-toast-actions { display: flex; gap: 8px; }

/* ---------- How it works ---------- */
.how-strip { border-top: 1px solid var(--c-line); background: #fff; padding: 56px 0; }
.how-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.how-inner h2 { margin: 0; font-size: 24px; font-weight: 800; flex: none; }
.how-steps {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    flex-wrap: wrap;
}
.how-steps li { display: flex; gap: 12px; align-items: flex-start; min-width: 200px; flex: 1; }
.how-num {
    flex: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.how-steps strong { font-size: 16.5px; }
.how-steps p { margin: 2px 0 0; font-size: 14.5px; color: var(--c-muted); }

/* ---------- Archive hero ---------- */
.archive-hero { padding: 52px 0 6px; text-align: center; }
.archive-hero h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.archive-hero p { margin: 0 auto; max-width: 540px; color: var(--c-muted); }
.author-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }

/* ---------- Deal detail ---------- */
.deal { padding: 44px 0 64px; }
.deal-grid-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}
.deal-header { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 24px; }
.deal-logo {
    flex: none;
    width: 84px;
    height: 84px;
    object-fit: contain;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    padding: 10px;
    background: #fff;
}
.deal-cat { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-primary); }
.deal-title { margin: 4px 0 8px; font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.deal-rate { font-size: 26px; font-weight: 800; color: var(--c-text); }
.deal-rate span { font-size: 14px; font-weight: 500; color: var(--c-muted); }
.deal-updated { margin: 6px 0 0; font-size: 13px; color: var(--c-muted); }

.deal-signin-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--r);
    background: var(--c-soft);
    color: var(--c-primary);
    margin-bottom: 24px;
}
.deal-signin-note p { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--c-text); }
.deal-signin-note a { color: var(--c-primary); font-weight: 700; text-decoration: underline; }

.deal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.deal-comments { margin-top: 40px; }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    margin: 0 -10px;
    border-radius: var(--r-sm);
    font-size: 14px;
}
.mini-list a:hover { background: var(--c-soft); }
.mini-list strong { color: var(--c-primary); flex: none; }

/* ---------- Ghost content ---------- */
.gh-content { font-size: 17.5px; }
.gh-content > * + * { margin-top: 1.1em; }
.gh-content h2 { font-size: 24px; margin-top: 1.7em; letter-spacing: -.01em; }
.gh-content h3 { font-size: 19px; margin-top: 1.5em; }
.gh-content a { color: var(--c-primary); text-decoration: underline; }
.gh-content blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--c-accent);
    color: var(--c-muted);
}
.gh-content pre { background: #17161f; color: #eee; padding: 18px; border-radius: var(--r-sm); overflow-x: auto; font-size: 14px; }
.gh-content img { border-radius: var(--r-sm); }
.gh-content hr { border: none; border-top: 1px solid var(--c-line); margin: 2.2em 0; }
.gh-content .kg-button-card a { text-decoration: none; }

/* Coupon code block: use a code block or kg-callout in the editor */
.gh-content .kg-callout-card {
    border-radius: var(--r-sm);
}
.kg-width-wide { position: relative; width: min(1100px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 36px;
    font-weight: 600;
    font-size: 15px;
}
.pagination:empty { display: none; margin: 0; }
.pagination a { color: var(--c-primary); }

/* ---------- Error ---------- */
.error-page { padding: 100px 24px; text-align: center; }
.error-code { margin: 0; font-size: 92px; font-weight: 800; color: var(--c-primary); }
.error-message { margin: 6px 0 26px; color: var(--c-muted); font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--c-line); background: #fff; margin-top: 48px; }
.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    padding: 56px 32px 44px;
}
.footer-brand { max-width: 300px; }
.footer-newsletter { width: min(400px, 100%); }
.footer-telegram { width: min(320px, 100%); }
.footer-telegram h3 { margin: 0 0 6px; font-size: 16px; }
.footer-telegram p { margin: 0; font-size: 15px; color: var(--c-muted); }
.footer-telegram-link { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.footer-telegram-link:hover { opacity: .8; }
.footer-nav-cols h4 {
    margin: 0 0 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.footer-nav-cols ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 40px;
}
.footer-nav-cols li { break-inside: avoid; }
.footer-nav-cols a { display: block; padding: 5px 0; font-size: 15px; color: var(--c-muted); }
.footer-nav-cols a:hover { color: var(--c-primary); }
.footer-copy { margin: 0; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { color: var(--c-muted); display: inline-flex; }
.footer-social a:hover { color: var(--c-primary); }
.footer-newsletter h3 { margin: 0 0 4px; font-size: 18px; }
.footer-newsletter > p { margin: 0 0 14px; color: var(--c-muted); font-size: 14px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    font-size: 14.5px;
    font-family: inherit;
}
.newsletter-form input:focus { outline: 2px solid color-mix(in srgb, var(--c-primary) 40%, #fff); border-color: var(--c-primary); }
.newsletter-note { margin: 10px 0 0; font-size: 12.5px; color: var(--c-muted); }




.footer-brand p { margin: 12px 0 0; font-size: 15px; color: var(--c-muted); }
.footer-bottom { border-top: 1px solid var(--c-line); padding: 16px 24px; font-size: 13px; color: var(--c-muted); }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .board-grid { grid-template-columns: 1fr; gap: 8px; }
    .board-sidebar { position: static; gap: 4px; }
    .board-sidebar .sidebar-block {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0 0 10px;
    }
    .board-sidebar .sidebar-block h4 { margin-bottom: 8px; }
    .cat-list, .board-sidebar .sort-options {
        display: flex;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .cat-list::-webkit-scrollbar, .board-sidebar .sort-options::-webkit-scrollbar { display: none; }
    .cat-list li { flex: none; }
    .cat-btn, .board-sidebar .sort-btn {
        width: auto;
        margin: 0;
        white-space: nowrap;
        border: 1px solid var(--c-line);
        border-radius: 999px;
        background: #fff;
        padding: 8px 16px;
    }
    .cat-btn.is-active, .board-sidebar .sort-btn.is-active { border-color: var(--c-primary); background: var(--c-soft); }
    .deal-grid-layout { grid-template-columns: 1fr; }

}
@media (max-width: 760px) {
    .site-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .mobile-nav.is-open { display: block; }
    .header-actions .btn-ghost,
    .header-signin { display: none; }
    .header-actions .btn-primary { display: none; }
    .hero { padding: 52px 0 32px; }
    .how-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer-top { flex-direction: column; gap: 32px; }
    .footer-nav-cols ul { columns: 1; }
    .deal-header { flex-direction: column; }
}

/* ---------- Static page ---------- */
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.post-header { padding: 52px 0 8px; text-align: center; }
.post-title { margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.post-feature-image { margin: 24px auto; }
.post-feature-image img { border-radius: var(--r); width: 100%; }
.page .gh-content { padding: 24px 24px 48px; }

/* ---------- Blog ---------- */
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head-row h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.see-all { font-weight: 600; font-size: 14.5px; color: var(--c-primary); }
.blog-strip { border-top: 1px solid var(--c-line); padding: 56px 0 64px; }

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}
.article-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card-image { display: block; aspect-ratio: 16/9; background: var(--c-soft); }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; }
.article-card-noimage { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 800; color: var(--c-muted); }
.article-card-body { padding: 24px 26px 26px; }
.article-card-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-primary); }
.article-card h3 { margin: 6px 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.article-card h3 a:hover { color: var(--c-primary); }
.article-card-excerpt { margin: 0 0 14px; font-size: 15.5px; color: var(--c-muted); }
.article-card-meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--c-muted); }
.meta-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* ---------- Article page ---------- */
.article-header { padding: 56px 0 20px; text-align: center; }
.article-title { margin: 10px 0 12px; font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.article-excerpt { margin: 0 auto 18px; max-width: 620px; font-size: 18px; color: var(--c-muted); }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--c-muted); }
.article-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-text); }
.article-author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.article-feature { margin: 26px auto; }
.article-feature img { width: 100%; border-radius: var(--r); }
.article-feature figcaption { text-align: center; font-size: 13px; color: var(--c-muted); margin-top: 10px; }

.article-body { padding-top: 12px; padding-bottom: 40px; }
.article-footer { padding: 8px 24px 40px; }

.author-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: #fff;
}
.author-card-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.author-card h4 { margin: 0 0 4px; font-size: 16px; }
.author-card h4 a:hover { color: var(--c-primary); }
.author-card p { margin: 0; font-size: 14px; color: var(--c-muted); }

@media (max-width: 980px) {
    .article-layout { grid-template-columns: minmax(0, 720px); }
    .article-toc { display: none; }
}

/* ---------- Refinements ---------- */
/* Feature image: contained editorial style */
.article-feature { max-width: 880px; }
.article-feature img { max-height: 440px; object-fit: cover; }

/* Long custom excerpts: degrade gracefully from big rate to small text */
.store-rate.is-text,
.deal-rate.is-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-muted);
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.deal-rate.is-text span { display: none; }

/* Category filter buttons */
.cat-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% + 20px);
    padding: 9px 12px;
    margin: 0 -10px;
    border: none;
    background: transparent;
    border-radius: var(--r-sm);
    font-size: 15.5px;
    font-weight: 500;
    font-family: inherit;
    color: var(--c-text);
    cursor: pointer;
    text-align: left;
}
.cat-btn:hover { background: var(--c-soft); color: var(--c-primary); }
.cat-btn.is-active { background: var(--c-soft); color: var(--c-primary); font-weight: 600; }
.cat-btn span { font-size: 12.5px; color: var(--c-muted); }

/* Category icons */
.cat-btn { justify-content: flex-start; gap: 10px; }
.cat-btn > span:last-child { margin-left: auto; }
.cat-icon { display: inline-flex; color: var(--c-muted); flex: none; }
.cat-btn:hover .cat-icon, .cat-btn.is-active .cat-icon { color: var(--c-primary); }

/* ---------- Command palette ---------- */
.palette-overlay[hidden] { display: none; }
.palette-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(23, 22, 31, .4);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 20px 20px;
}
.palette {
    width: min(560px, 100%);
    background: #fff;
    border-radius: var(--r);
    box-shadow: 0 24px 64px rgba(23, 22, 31, .25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}
.palette-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--c-line);
    color: var(--c-muted);
}
.palette-input-row input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    color: var(--c-text);
    background: transparent;
}
.palette kbd {
    font-family: inherit;
    font-size: 11px;
    color: var(--c-muted);
    border: 1px solid var(--c-line);
    border-radius: 5px;
    padding: 2px 6px;
    background: var(--c-soft);
}
.palette-results { overflow-y: auto; padding: 6px 8px; flex: 1; }
.palette-group {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-muted);
    padding: 12px 12px 6px;
}
.palette-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-size: 14.5px;
}
.palette-item:hover, .palette-item.is-active { background: var(--c-soft); }
.palette-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 7px;
    border: 1px solid var(--c-line);
    background: #fff;
    padding: 3px;
    flex: none;
}
.palette-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-muted);
    background: var(--c-soft);
}
.palette-caticon { display: inline-flex; color: var(--c-muted); flex: none; width: 28px; justify-content: center; }
.palette-item.is-active .palette-caticon, .palette-item:hover .palette-caticon { color: var(--c-primary); }
.palette-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; max-width: 220px; }
.palette-cat { color: var(--c-muted); font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item strong { color: var(--c-primary); font-weight: 800; margin-left: auto; }
.palette-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--c-muted);
    background: var(--c-soft);
    border-radius: 6px;
    padding: 2px 8px;
}
.palette-empty { padding: 28px; text-align: center; color: var(--c-muted); font-size: 14.5px; }
.palette-foot {
    display: flex;
    gap: 18px;
    padding: 10px 18px;
    border-top: 1px solid var(--c-line);
    font-size: 12px;
    color: var(--c-muted);
}

/* ---------- Hero split (two-column) ---------- */
.hero-split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}
.hero-copy .hero-title { font-size: clamp(36px, 4.5vw, 60px); }
.hero-copy .hero-subtitle { max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.hero-meta { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--c-muted); flex-wrap: wrap; }
.hero-meta strong { color: var(--c-primary); font-weight: 800; }

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    transition: transform .15s, border-color .15s;
    animation: hero-float 6s ease-in-out infinite;
}
.hero-card:nth-child(2) { animation-delay: -1.5s; transform: translateY(10px); }
.hero-card:nth-child(3) { animation-delay: -3s; }
.hero-card:nth-child(4) { animation-delay: -4.5s; transform: translateY(10px); }
.hero-card:hover { border-color: var(--c-primary); }
.hero-card img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-line);
    padding: 4px;
    background: #fff;
    flex: none;
}
.hero-card-fallback {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--c-muted);
    background: var(--c-soft);
    border-radius: var(--r-sm);
    overflow: hidden;
    flex: none;
}
.hero-card strong { display: block; font-size: 15px; }
.hero-card em { font-style: normal; font-weight: 800; font-size: 17px; color: var(--c-primary); }
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; }
    .hero-copy .hero-subtitle { margin-inline: auto; }
    .hero-actions, .hero-meta { justify-content: center; }
    .hero-cards { display: none; }
}

/* ---------- Hero campaign slider ---------- */
.hero-slider { position: relative; height: min(560px, 62vh); overflow: hidden; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 8, 18, .78) 0%, rgba(10, 8, 18, .35) 55%, rgba(10, 8, 18, .05) 100%);
}
.hero-slide-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
}
.hero-slide-content h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    max-width: 620px;
}
.hero-slide-content p {
    margin: 0 0 26px;
    font-size: 17.5px;
    max-width: 520px;
    opacity: .9;
}
.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
}
.hero-slider-dots button {
    width: 22px;
    height: 5px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: background .2s, width .2s;
    padding: 0;
}
.hero-slider-dots button.is-active { background: #fff; width: 34px; }
@media (max-width: 760px) {
    .hero-slider { height: 420px; }
}




/* Mobile menu: clean sheet style */
@media (max-width: 760px) {
    .header-actions { margin-left: auto; }
    .mobile-nav {
        border-top: 1px solid var(--c-line);
        background: var(--c-bg);
    }
    .mobile-nav.is-open { display: block; }
    .mobile-nav ul { margin-bottom: 0; }
    .mobile-nav ul a { padding: 12px 4px; font-size: 16px; color: var(--c-text); border-radius: 0; }
    .mobile-nav li + li { border-top: 1px solid var(--c-line); }
    .mobile-nav-auth {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--c-line);
        margin-top: 4px;
        padding-top: 14px;
    }
    .mobile-nav-auth > a:first-child { font-size: 15.5px; font-weight: 500; color: var(--c-text); padding: 8px 4px; }
}

/* ---------- Embeds: never overflow the viewport ---------- */
html, body { overflow-x: clip; }
.gh-content iframe,
.gh-content embed,
.gh-content object,
.gh-content video {
    max-width: 100%;
}
.gh-content .kg-embed-card {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}
.gh-content .kg-embed-card > * { max-width: 100% !important; min-width: 0 !important; }
@media (max-width: 760px) {
    .gh-content { font-size: 17px; }
}

/* ---------- Text size setting ---------- */
body.ts-small { zoom: .93; }
body.ts-large { zoom: 1.08; }

/* ---------- Article editorial-left layout ---------- */
.article-header {
    text-align: left;
    padding: 48px 24px 20px;
}
.article-chip {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 7px;
    background: var(--c-soft);
    color: var(--c-text);
    margin-bottom: 16px;
}
.article-chip:hover { color: var(--c-primary); }
.article-title { text-align: left; margin: 0 0 14px; }
.article-excerpt { margin: 0 0 20px; max-width: 560px; text-align: left; }
.article-meta { justify-content: flex-start; }
.article-feature { margin: 10px auto 30px; }
.article-feature img { border-radius: var(--r); }

/* Header sign-in as plain text (WB style) */
.header-signin {
    padding: 8px 12px;
    font-weight: 500;
    font-size: 15.5px;
    color: var(--c-text);
    border-radius: var(--r-sm);
}
.header-signin:hover { color: var(--c-primary); }
.header-actions .btn-primary { padding: 9px 20px; font-size: 14.5px; }
