/* SD Coupon Core - store/category pages.
   Uses the parent theme design tokens (teal primary, coral accent, Inter)
   so coupon pages read as one system with the blog. All rules scoped to .sdc */

.sdc {
    /* "Paper & Red v2" (06/07/2026): newspaper minimalism, accent = the real
       Daily Deal Here logo red (#FF3131, re-extracted after the GD palette
       trap), deepened to #E02B2B for button/text contrast on paper. ONE red
       for everything clickable. Olive = verified, amber = urgency. */
    --sdc-primary: #191714;
    --sdc-primary-light: #ECE7DA;
    --sdc-accent: #E02B2B;
    --sdc-accent-hover: #C42424;
    --sdc-success: #3F6212;
    --sdc-success-light: #EAEFDB;
    --sdc-warn: #B45309;
    --sdc-warn-light: #F6EBD9;
    --sdc-text: #191714;
    --sdc-text-2: #45413A;
    --sdc-muted: #807A6F;
    --sdc-bg: #F7F3EA;
    --sdc-surface: #FFFDF8;
    --sdc-border: #DED7C7;
    --sdc-border-subtle: #EAE4D6;
    --sdc-serif: "Playfair Display", Georgia, serif;
    --sdc-radius: 8px;
    --sdc-shadow: 0 1px 2px rgba(26, 29, 33, .05);
    --sdc-shadow-lift: 0 10px 28px rgba(26, 29, 33, .12);
    /* The coupon area paints its own paper canvas: the theme flips the body
       dark on a schedule (data-theme in header.php) and our ink text would
       otherwise sit on a dark background. */
    background: var(--sdc-bg);
    color-scheme: light;
    color: var(--sdc-text);
    padding-bottom: 56px;
}

/* Night edition of Paper & Red: warm dark paper, pale ink, brighter red.
   Follows the theme's scheduled dark mode so the page stays one system. */
[data-theme="dark"] .sdc {
    --sdc-primary: #E8E4DA;
    --sdc-primary-light: #2E2B25;
    --sdc-accent: #FF6459;
    --sdc-accent-hover: #FF7A70;
    --sdc-success: #A3C46A;
    --sdc-success-light: #2A331C;
    --sdc-warn: #E09A4E;
    --sdc-warn-light: #3A2E1D;
    --sdc-text: #EAE6DC;
    --sdc-text-2: #C8C3B7;
    --sdc-muted: #9A9384;
    --sdc-bg: #191713;
    --sdc-surface: #23201B;
    --sdc-border: #3A362E;
    --sdc-border-subtle: #2E2B25;
    --sdc-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --sdc-shadow-lift: 0 10px 28px rgba(0, 0, 0, .5);
    color-scheme: dark;
}
/* ink/paper pairs that hardcode a counterpart color */
[data-theme="dark"] .sdc-chip--link:hover,
[data-theme="dark"] .sdc-az__nav a:hover { color: #191713; }
[data-theme="dark"] .sdc { --color-bg-alt: #2A2721; } /* warm alt, not the theme's cool #12151A */
[data-theme="dark"] .sdc-table th { color: #191713; }
[data-theme="dark"] .sdc-card__badge.is-code { background: #3A211E; }

.sdc .container { max-width: var(--container-xl, 1200px); }

/* ---------- Breadcrumb ---------- */
.sdc-crumb { margin: 18px 0 6px; font-size: .82rem; }
.sdc-crumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sdc-crumb li { display: flex; align-items: center; gap: 6px; color: var(--sdc-muted); }
.sdc-crumb li + li::before { content: "/"; color: var(--sdc-border); }
.sdc-crumb a { color: var(--sdc-muted); text-decoration: none; }
.sdc-crumb a:hover { color: var(--sdc-primary); }

/* ---------- Hero ---------- */
.sdc-hero {
    display: flex; align-items: flex-start; gap: 22px;
    background: var(--sdc-surface);
    border: 1px solid var(--sdc-border);
    border-radius: var(--sdc-radius);
    box-shadow: var(--sdc-shadow);
    padding: 26px 28px;
    margin: 10px 0 22px;
}
.sdc-hero--cat { background: linear-gradient(135deg, var(--sdc-primary-light), var(--sdc-surface) 70%); }
.sdc-hero__main { flex: 1; min-width: 0; }
.sdc-hero__title { font-size: clamp(1.45rem, 3.2vw, 2.05rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.18; margin: 2px 0 8px; }
.sdc-hero__sub { color: var(--sdc-text-2); font-size: .95rem; line-height: 1.55; margin: 0 0 12px; max-width: 62ch; }
.sdc-hero__cta { flex-shrink: 0; }

.sdc-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--sdc-muted); }
.sdc-byline strong { color: var(--sdc-text); font-weight: 600; }
.sdc-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--sdc-primary-light); color: var(--sdc-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .75rem;
}
.sdc-avatar--img { background: none; object-fit: cover; }
.sdc-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--sdc-border); }
.sdc-verified { color: var(--sdc-success); font-weight: 600; }

/* ---------- Logo ---------- */
.sdc-logo {
    width: var(--sdc-logo, 64px); height: var(--sdc-logo, 64px);
    flex: 0 0 var(--sdc-logo, 64px);
    border-radius: 12px; border: 1px solid var(--sdc-border-subtle);
    background: #fff; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
}
.sdc-logo__img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.sdc-logo--letter { font-weight: 800; font-size: calc(var(--sdc-logo, 64px) * .42); color: var(--sdc-primary); background: var(--sdc-primary-light); }

/* ---------- Layout ---------- */
.sdc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.sdc-side { position: sticky; top: 92px; display: grid; gap: 16px; }

/* ---------- Stats strip ---------- */
.sdc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.sdc-stats__item {
    background: var(--sdc-surface); border: 1px solid var(--sdc-border);
    border-radius: 12px; padding: 12px 8px; text-align: center;
}
.sdc-stats__item b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--sdc-primary); }
.sdc-stats__item span { font-size: .72rem; color: var(--sdc-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Blocks & headings ---------- */
.sdc-block { margin-bottom: 30px; }
.sdc-block > h2, .sdc-faqs > h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; }

/* ---------- Quick code table ---------- */
.sdc-table { width: 100%; border-collapse: collapse; background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: 12px; overflow: hidden; font-size: .9rem; }
.sdc-table th { background: var(--sdc-primary); color: #fff; text-align: left; padding: 10px 14px; font-weight: 600; }
.sdc-table td { padding: 10px 14px; border-top: 1px solid var(--sdc-border-subtle); vertical-align: middle; }
.sdc-code {
    display: inline-block; font-family: var(--font-mono, monospace);
    font-weight: 700; font-size: .85rem; letter-spacing: .06em;
    padding: 4px 10px; border: 1.5px dashed var(--sdc-primary);
    border-radius: 8px; color: var(--sdc-primary); background: var(--sdc-primary-light);
    cursor: copy; white-space: nowrap;
}
.sdc-code.is-copied { background: var(--sdc-success-light); border-color: var(--sdc-success); color: var(--sdc-success); }

/* ---------- Coupon cards ---------- */
.sdc-cards { display: grid; gap: 14px; }
.sdc-card {
    position: relative;
    display: grid; grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 16px; align-items: center;
    background: var(--sdc-surface); border: 1px solid var(--sdc-border);
    border-radius: var(--sdc-radius); box-shadow: var(--sdc-shadow);
    padding: 18px;
    transition: transform .15s ease, box-shadow .15s ease;
}
/* Exclusive offers: accent border + corner ribbon so users spot them instantly */
.sdc-card--exclusive { border: 2px solid var(--sdc-accent); padding-top: 24px; }
.sdc-card__ribbon {
    position: absolute; top: -1px; left: 14px;
    background: var(--sdc-accent); color: #fff;
    font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    padding: 4px 10px 5px; border-radius: 0 0 8px 8px;
}
.sdc-card:hover { transform: translateY(-2px); box-shadow: var(--sdc-shadow-lift); }
.sdc-card__badge {
    align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--sdc-primary-light); color: var(--sdc-primary);
    border-radius: 10px; padding: 10px 6px; text-align: center;
}
.sdc-card__badge.is-code { background: #FBE4E1; color: var(--sdc-accent); }
.sdc-card__badge-big { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.sdc-card__badge-small { font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.sdc-card__title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 2px 0 8px; }
.sdc-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }

.sdc-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .72rem; font-weight: 600; line-height: 1;
    padding: 5px 9px; border-radius: 999px;
    background: var(--color-bg-alt, #F7F5F0); color: var(--sdc-text-2);
    border: 1px solid var(--sdc-border-subtle);
    text-decoration: none;
}
.sdc-chip--ok { background: var(--sdc-success-light); color: var(--sdc-success); border-color: transparent; }
.sdc-chip--warn { background: var(--sdc-warn-light); color: #92400E; border-color: transparent; }
.sdc-chip--muted { color: var(--sdc-muted); }
.sdc-chip--exclusive { background: var(--sdc-accent); color: #fff; border-color: transparent; text-transform: uppercase; letter-spacing: .08em; font-size: .64rem; }
.sdc-chip--best { background: var(--sdc-primary-light); color: var(--sdc-primary); border-color: transparent; }
.sdc-chip--link:hover { background: var(--sdc-primary); color: #fff; }

/* ---------- Buttons ---------- */
.sdc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; line-height: 1;
    padding: 13px 22px; border-radius: 10px; border: 0; cursor: pointer;
    text-decoration: none; white-space: nowrap;
    transition: background .15s ease, transform .1s ease;
}
.sdc-btn:active { transform: scale(.97); }
.sdc-btn--deal { background: var(--sdc-accent); color: #fff; }
.sdc-btn--deal:hover { background: var(--sdc-accent-hover); color: #fff; }
.sdc-btn--visit { background: var(--sdc-accent); color: #fff; }
.sdc-btn--visit:hover { background: var(--sdc-accent-hover); color: #fff; }
.sdc-btn--block { width: 100%; }
.sdc-btn--copy { background: var(--sdc-accent); color: #fff; padding: 12px 18px; }

/* SHOW CODE peel: right corner folds up revealing the code tail */
.sdc-btn--code { position: relative; background: var(--sdc-accent); color: #fff; padding-right: 52px; overflow: hidden; }
.sdc-btn--code:hover { background: var(--sdc-accent-hover); }
.sdc-btn--code::after {
    content: attr(data-peel);
    position: absolute; top: 0; right: 0; bottom: 0; width: 44px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: #191714; /* peel is always white paper */
    font-family: var(--font-mono, monospace); font-size: .74rem; font-weight: 700;
    border-left: 1.5px dashed var(--sdc-border-strong, #D1CEC6);
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.sdc-btn--code::before {
    content: ""; position: absolute; top: -7px; right: 30px;
    border: 8px solid transparent; border-bottom-color: rgba(0, 0, 0, .18);
    transform: rotate(45deg);
}

/* ---------- Editorial prose ---------- */
.sdc-prose { margin-bottom: 26px; font-size: .95rem; line-height: 1.7; color: var(--sdc-text-2); }
.sdc-prose h2, .sdc-prose h3 { color: var(--sdc-text); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin: 26px 0 10px; font-size: 1.25rem; }
.sdc-prose h4 { color: var(--sdc-text); font-weight: 700; margin: 18px 0 6px; font-size: 1rem; }
.sdc-prose p { margin: 0 0 12px; }
.sdc-prose ul, .sdc-prose ol { margin: 0 0 14px; padding-left: 22px; }
.sdc-prose li { margin-bottom: 6px; }
.sdc-prose a { color: var(--sdc-primary); }
.sdc-prose table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: .88rem; background: var(--sdc-surface); }
.sdc-prose table th { background: var(--color-bg-alt, #F7F5F0); color: var(--sdc-text); font-weight: 700; text-align: left; }
.sdc-prose table th, .sdc-prose table td { border: 1px solid var(--sdc-border); padding: 9px 12px; vertical-align: top; }
.sdc-prose--summary { background: var(--sdc-primary-light); border: 1px solid transparent; border-radius: var(--sdc-radius); padding: 20px 22px; }
.sdc-prose--summary h2, .sdc-prose--summary h3 { margin-top: 0; }
.sdc-prose--pros-cons table td:first-child { border-left: 3px solid var(--sdc-success); }

/* ---------- FAQ ---------- */
.sdc-faq { border: 1px solid var(--sdc-border); border-radius: 12px; background: var(--sdc-surface); margin-bottom: 10px; overflow: hidden; }
.sdc-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: .93rem; list-style: none; position: relative; padding-right: 40px; }
.sdc-faq summary::-webkit-details-marker { display: none; }
.sdc-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--sdc-primary); font-weight: 800; }
.sdc-faq[open] summary::after { content: "\2212"; }
.sdc-faq__a { padding: 0 18px 14px; font-size: .9rem; line-height: 1.65; color: var(--sdc-text-2); }

/* Deep dive: long DDH review essays folded away so the page stays scannable */
.sdc-deepdive { margin: 4px 0 26px; border: 1px solid var(--sdc-border); border-radius: var(--sdc-radius); background: var(--sdc-surface); overflow: hidden; }
.sdc-deepdive > summary { cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: .95rem; color: var(--sdc-primary); list-style: none; position: relative; padding-right: 42px; }
.sdc-deepdive > summary::-webkit-details-marker { display: none; }
.sdc-deepdive > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 800; }
.sdc-deepdive[open] > summary::after { content: "\2212"; }
.sdc-deepdive > .sdc-prose { padding: 0 18px 6px; margin-bottom: 8px; }

.sdc-method { margin: 8px 0 18px; border: 1px dashed var(--sdc-border); border-radius: 12px; padding: 0; }
.sdc-method summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: .85rem; color: var(--sdc-muted); }
.sdc-method .sdc-prose { padding: 0 16px 8px; margin: 0; font-size: .85rem; }
.sdc-smallprint { font-size: .76rem; color: var(--sdc-muted); line-height: 1.6; border-top: 1px solid var(--sdc-border-subtle); padding-top: 14px; }
.sdc-smallprint h2, .sdc-smallprint h3, .sdc-smallprint h4 { font-size: .8rem; margin: 10px 0 4px; color: var(--sdc-muted); }

/* ---------- Sidebar ---------- */
.sdc-side__card { background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: var(--sdc-radius); box-shadow: var(--sdc-shadow); padding: 20px; }
.sdc-side__card h3 { font-size: 1.02rem; font-weight: 800; margin: 10px 0; }
.sdc-side__store { text-align: center; }
.sdc-side__store .sdc-logo { margin: 0 auto; }
.sdc-side__rating { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .85rem; margin: 0 0 10px; }
.sdc-side__rating span { color: var(--sdc-muted); }
.sdc-side__facts { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; }
.sdc-side__facts li { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; padding: 7px 0; border-bottom: 1px dashed var(--sdc-border-subtle); }
.sdc-side__facts span { color: var(--sdc-muted); }
.sdc-side__cats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0 0; }
.sdc-side__related { list-style: none; margin: 0; padding: 0; }
.sdc-side__related li + li { border-top: 1px solid var(--sdc-border-subtle); }
.sdc-side__related a { display: flex; align-items: center; gap: 10px; padding: 9px 0; text-decoration: none; color: var(--sdc-text); }
.sdc-side__related a:hover .sdc-side__rname { color: var(--sdc-primary); }
.sdc-side__rname { flex: 1; min-width: 0; font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Stars ----------
   Both rows MUST be horizontal flex with non shrinking svgs: the parent theme
   sets svg to display block, which otherwise stacks the stars vertically. */
.sdc-stars { position: relative; display: inline-flex; line-height: 0; vertical-align: middle; }
.sdc-stars__bg, .sdc-stars__fill { display: flex; gap: 1px; }
.sdc-stars svg { display: block; flex: 0 0 auto; width: var(--sdc-star, 16px); height: calc(var(--sdc-star, 16px) * .94); fill: var(--sdc-border); }
.sdc-stars__fill { position: absolute; inset: 0; overflow: hidden; }
.sdc-stars__fill svg { fill: var(--sdc-warn); }

/* ---------- Store grid (category page) ---------- */
.sdc-storegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 6px 0 30px; }
.sdc-storecard {
    display: flex; flex-direction: column; gap: 8px;
    background: var(--sdc-surface); border: 1px solid var(--sdc-border);
    border-radius: var(--sdc-radius); box-shadow: var(--sdc-shadow);
    padding: 20px; text-decoration: none; color: var(--sdc-text);
    transition: transform .15s ease, box-shadow .15s ease;
}
.sdc-storecard:hover { transform: translateY(-3px); box-shadow: var(--sdc-shadow-lift); color: var(--sdc-text); }
.sdc-storecard__name { font-size: 1.02rem; font-weight: 800; margin: 4px 0 0; }
.sdc-storecard__desc { font-size: .84rem; color: var(--sdc-text-2); line-height: 1.5; margin: 0; flex: 1; }
.sdc-storecard__foot { display: flex; gap: 6px; flex-wrap: wrap; }
.sdc-storecard__go { font-size: .84rem; font-weight: 700; color: var(--sdc-primary); }

/* ---------- A-Z directory ---------- */
.sdc-az__nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; }
.sdc-az__nav a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid var(--sdc-border); border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .82rem; color: var(--sdc-text); background: var(--sdc-surface); }
.sdc-az__nav a:hover { background: var(--sdc-primary); color: #fff; border-color: var(--sdc-primary); }
.sdc-az__letter { font-size: 1.1rem; font-weight: 800; margin: 22px 0 10px; color: var(--sdc-primary); }
.sdc-az__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sdc-az__item { display: flex; align-items: center; gap: 10px; background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--sdc-text); }
.sdc-az__item:hover { border-color: var(--sdc-primary); color: var(--sdc-primary); }
.sdc-az__name { flex: 1; font-weight: 600; font-size: .88rem; }
.sdc-az__count { font-size: .72rem; color: var(--sdc-muted); }

/* ---------- Score box ----------
   Desktop: score summary left, distribution bars right.
   Mobile: summary becomes ONE horizontal row (4.9/5 + stars + chip), bars below. */
.sdc-score__box {
    display: grid; grid-template-columns: 172px 1fr; gap: 22px; align-items: center;
    background: var(--sdc-surface); border: 1px solid var(--sdc-border);
    border-radius: var(--sdc-radius); box-shadow: var(--sdc-shadow); padding: 20px 22px;
}
.sdc-score__left { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-right: 1px dashed var(--sdc-border); padding-right: 18px; text-align: center; }
.sdc-score__numrow { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.sdc-score__num { font-size: 2.9rem; font-weight: 800; line-height: 1; color: var(--sdc-text); letter-spacing: -.02em; }
.sdc-score__of { font-size: 1rem; font-weight: 600; color: var(--sdc-muted); }
.sdc-score__starsrow { display: inline-flex; line-height: 0; }
.sdc-score__label { font-size: .8rem; font-weight: 700; color: var(--sdc-primary); background: var(--sdc-primary-light); border-radius: 999px; padding: 3px 12px; }
.sdc-score__count { font-size: .74rem; color: var(--sdc-muted); }
.sdc-score__bars { display: grid; gap: 7px; min-width: 0; }
.sdc-score__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: .78rem; color: var(--sdc-muted); white-space: nowrap; }
.sdc-score__row b { text-align: right; color: var(--sdc-text-2); font-weight: 600; }
.sdc-score__track { height: 8px; border-radius: 999px; background: var(--color-bg-alt, #F7F5F0); overflow: hidden; }
.sdc-score__fill { height: 100%; border-radius: 999px; background: var(--sdc-warn); }
.sdc-score__new { margin: 0; color: var(--sdc-text-2); grid-column: 1 / -1; }
.sdc-score__how { font-size: .8rem; margin: 8px 2px 0; }
.sdc-score__how a { color: var(--sdc-primary); font-weight: 600; text-decoration: none; }

/* ---------- Reader reviews (RC card format) ---------- */
.sdc-reviews__meta { display: flex; align-items: center; gap: 7px; font-size: .9rem; margin: 0 0 4px; }
.sdc-reviews__meta span { color: var(--sdc-muted); font-size: .8rem; }
.sdc-reviews__note { font-size: .76rem; color: var(--sdc-muted); margin: 0 0 14px; }
.sdc-reviews__empty { background: var(--color-bg-alt, #F7F5F0); border: 1px dashed var(--sdc-border); border-radius: 12px; padding: 14px 18px; color: var(--sdc-text-2); font-size: .9rem; }
.sdc-reviews__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.sdc-review { background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: 12px; padding: 15px 17px 13px; }
.sdc-review__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sdc-review__date { color: var(--sdc-muted); font-size: .74rem; }
.sdc-review__title { display: block; font-size: .94rem; margin-top: 7px; color: var(--sdc-text); }
.sdc-review__text { margin: 5px 0 10px; font-size: .87rem; color: var(--sdc-text-2); line-height: 1.6; }
.sdc-review__who { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--sdc-text-2); border-top: 1px solid var(--color-bg-alt, #F7F5F0); padding-top: 9px; }
.sdc-review__who .sdc-avatar { width: 22px; height: 22px; font-size: .66rem; }

/* Review form */
.sdc-reviews .comment-respond { background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: 14px; padding: 20px 20px 18px; margin-top: 6px; }
.sdc-reviews .comment-reply-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 2px; }
.sdc-form__sub { font-size: .8rem; color: var(--sdc-muted); margin: 0 0 14px; }
.sdc-reviews .comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.sdc-reviews .comment-form > * { grid-column: 1 / -1; }
.sdc-reviews .comment-form .comment-form-author { grid-column: 1; }
.sdc-reviews .comment-form .comment-form-email { grid-column: 2; }
.sdc-reviews .comment-form p { margin: 0 0 12px; }
.sdc-reviews textarea, .sdc-reviews input[type="text"], .sdc-reviews input[type="email"] {
    width: 100%; border: 1.5px solid var(--sdc-border); border-radius: 10px; padding: 11px 13px;
    font-size: .88rem; font-family: inherit; background: var(--sdc-bg); color: var(--sdc-text);
    transition: border-color .12s ease, box-shadow .12s ease;
}
.sdc-reviews textarea:focus, .sdc-reviews input:focus {
    outline: none; border-color: var(--sdc-primary); box-shadow: 0 0 0 3px var(--sdc-primary-light);
}
.sdc-reviews textarea::placeholder, .sdc-reviews input::placeholder { color: var(--sdc-muted); }
.sdc-reviews .form-submit { margin: 2px 0 0; }
.sdc-reviews .form-submit .submit {
    background: var(--sdc-accent); color: #fff; border: 0; border-radius: 10px;
    padding: 12px 26px; font-weight: 700; font-size: .92rem; cursor: pointer;
    transition: filter .12s ease;
}
.sdc-reviews .form-submit .submit:hover { filter: brightness(1.08); }
.sdc-reviews .comment-form-cookies-consent { display: flex; align-items: center; gap: 7px; font-size: .74rem; color: var(--sdc-muted); }
.sdc-reviews .comment-form-cookies-consent input { width: auto; }
.sdc-reviews .logged-in-as { font-size: .78rem; color: var(--sdc-muted); }

/* Rating picker in the review form (DOM order 5..1, so ~ selects lower stars) */
.sdc-rate { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.sdc-rate__hint { font-size: .84rem; font-weight: 600; color: var(--sdc-text-2); }
.sdc-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.sdc-rate__stars input { position: absolute; opacity: 0; pointer-events: none; }
.sdc-rate__stars label { font-size: 1.85rem; line-height: 1; color: var(--sdc-border); cursor: pointer; transition: color .1s ease, transform .1s ease; }
.sdc-rate__stars label:hover { transform: scale(1.12); }
.sdc-rate__stars label:hover, .sdc-rate__stars label:hover ~ label,
.sdc-rate__stars input:checked ~ label { color: var(--sdc-warn); }

/* ---------- Bottom link blocks + latest articles ---------- */
.sdc-links p { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.sdc-latest__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sdc-latest__card { display: flex; flex-direction: column; gap: 8px; background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--sdc-text); transition: transform .15s ease, box-shadow .15s ease; }
.sdc-latest__card:hover { transform: translateY(-2px); box-shadow: var(--sdc-shadow-lift); color: var(--sdc-text); }
.sdc-latest__card img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
.sdc-latest__card span { font-size: .84rem; font-weight: 700; line-height: 1.4; }
.sdc-latest__card em { font-size: .72rem; color: var(--sdc-muted); font-style: normal; }
@media (max-width: 1024px) { .sdc-latest__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sdc-latest__grid { grid-template-columns: 1fr; } }

/* ---------- Mobile sticky bar ---------- */
.sdc-stickybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: none; align-items: center; gap: 12px;
    background: var(--sdc-surface); border-top: 1px solid var(--sdc-border);
    box-shadow: 0 -6px 24px rgba(26, 29, 33, .12);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.sdc-stickybar__label { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sdc-stickybar__label b { font-size: .92rem; color: var(--sdc-primary); }
.sdc-stickybar__label span { font-size: .74rem; color: var(--sdc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Modal ---------- */
.sdc-modal { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 18px; }
.sdc-modal[hidden] { display: none; }
.sdc-modal__backdrop { position: absolute; inset: 0; background: var(--color-overlay, rgba(26, 29, 33, .5)); }
.sdc-modal__box {
    position: relative; width: 100%; max-width: 420px;
    background: var(--sdc-surface); border-radius: 18px;
    box-shadow: var(--sdc-shadow-lift); padding: 30px 26px 24px;
    text-align: center; animation: sdcPop .18s ease;
}
@keyframes sdcPop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sdc-modal__box .sdc-logo { margin: 0 auto 8px; }
.sdc-modal__close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--sdc-muted); cursor: pointer; }
.sdc-modal__store { font-size: .8rem; color: var(--sdc-muted); margin: 0 0 4px; }
.sdc-modal__title { font-size: 1.05rem; font-weight: 800; margin: 0 0 16px; }
.sdc-modal__coderow { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.sdc-modal__code {
    flex: 1; font-family: var(--font-mono, monospace); font-size: 1.15rem; font-weight: 800; letter-spacing: .1em;
    border: 2px dashed var(--sdc-primary); border-radius: 10px; background: var(--sdc-primary-light); color: var(--sdc-primary);
    padding: 12px 10px; overflow-wrap: anywhere;
}
.sdc-modal__hint { font-size: .78rem; color: var(--sdc-muted); margin: 0 0 14px; }
.sdc-modal__vote { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-size: .8rem; color: var(--sdc-muted); }
.sdc-modal__vote button { border: 1px solid var(--sdc-border); background: var(--sdc-surface); border-radius: 8px; padding: 6px 10px; font-size: 1rem; cursor: pointer; }
.sdc-modal__vote button:hover { border-color: var(--sdc-primary); }
.sdc-modal__vote button.is-voted { background: var(--sdc-primary-light); border-color: var(--sdc-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .sdc-layout { grid-template-columns: 1fr; }
    .sdc-side { position: static; }
    .sdc-storegrid, .sdc-az__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .sdc-hero { flex-direction: column; padding: 20px; gap: 14px; }
    .sdc-hero__cta { width: 100%; }
    .sdc-hero__cta .sdc-btn { width: 100%; }
    .sdc-stats { grid-template-columns: repeat(2, 1fr); }
    .sdc-card { grid-template-columns: 72px minmax(0, 1fr); }
    .sdc-card__cta { grid-column: 1 / -1; }
    .sdc-card__cta .sdc-btn { width: 100%; }
    .sdc-card__badge-big { font-size: 1.05rem; }
    .sdc-storegrid, .sdc-az__grid { grid-template-columns: 1fr; }
    .sdc-stickybar { display: flex; }
    .sdc-table { font-size: .8rem; display: block; overflow-x: auto; }
    .sdc-score__box { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
    .sdc-score__left {
        flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start;
        gap: 10px; text-align: left;
        border-right: 0; border-bottom: 1px dashed var(--sdc-border); padding: 0 0 13px;
    }
    .sdc-score__num { font-size: 2.2rem; }
    .sdc-score__count { flex-basis: 100%; }
    .sdc-reviews .comment-form { grid-template-columns: 1fr; }
    .sdc-reviews .comment-form .comment-form-author, .sdc-reviews .comment-form .comment-form-email { grid-column: 1 / -1; }
}

/* ---------- Paper & Red skin: serif editorial voice, red = clickable ---------- */
.sdc-hero__title, .sdc-block > h2, .sdc-faqs > h2, .sdc-card__title,
.sdc-review__title, .sdc-side__card h3, .sdc-modal__title,
.sdc-prose h2, .sdc-prose h3 { font-family: var(--sdc-serif); }
.sdc-prose, .sdc-review__text, .sdc-hero__sub { font-family: var(--sdc-serif); }
.sdc-prose a, .sdc-score__how a, .sdc-faq__a a { color: var(--sdc-accent); }

/* ---------- Homepage (Home 5: search-first, blog + leaderboard, new shelf) ---------- */
.sdc-home__hero { text-align: center; padding: 34px 16px 30px; }
.sdc-home__hero h1 { font-family: var(--sdc-serif); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
.sdc-home__sub { color: var(--sdc-text-2); font-size: .95rem; max-width: 56ch; margin: 0 auto 20px; font-family: var(--sdc-serif); }
.sdc-find { position: relative; display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.sdc-find input {
    flex: 1; min-width: 0; border: 2px solid var(--sdc-primary); border-radius: 9px;
    background: var(--sdc-surface); color: var(--sdc-text);
    padding: 13px 16px; font-size: .95rem; font-family: inherit;
}
.sdc-find input:focus { outline: none; border-color: var(--sdc-accent); box-shadow: 0 0 0 3px rgba(224, 43, 43, .13); }
.sdc-find__list {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
    background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: 10px;
    box-shadow: var(--sdc-shadow-lift); overflow: hidden; text-align: left;
}
.sdc-find__list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 15px; font-size: .9rem; font-weight: 600; color: var(--sdc-text); text-decoration: none; border-bottom: 1px solid var(--sdc-border-subtle); }
.sdc-find__list a > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdc-find__list a:last-child { border-bottom: 0; }
.sdc-find__list a:hover, .sdc-find__list a.is-active { background: var(--sdc-primary-light); }
.sdc-find__list .sdc-find__none { padding: 10px 15px; font-size: .85rem; color: var(--sdc-muted); }
.sdc-find__tag { flex: 0 0 auto; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; }
.sdc-find__tag--store { background: var(--sdc-primary-light); color: var(--sdc-primary); }
.sdc-find__tag--blog { background: #F7ECE9; color: var(--sdc-accent); }
.sdc-find__go { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 48px; border: 0; border-radius: 9px; background: var(--sdc-accent); color: #fff; cursor: pointer; font-size: 1.1rem; }
.sdc-find__go:hover { background: var(--sdc-accent-hover); }
[data-theme="dark"] .sdc-find__tag--blog { background: #3A211E; }

.sdc-kicker {
    display: inline-block; font-size: .78rem; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase; color: var(--sdc-accent);
    border-bottom: 2px solid var(--sdc-accent); padding-bottom: 4px; margin: 0 0 16px;
}
/* New on the Shelf + Most Used: stacked on mobile (Most Used first via source
   order), side by side on PC with New on the Shelf in the wide left column. */
.sdc-home__shelf { display: grid; gap: 28px; margin: 10px 0 34px; align-items: start; }
@media (min-width: 861px) {
    .sdc-home__shelf { grid-template-columns: 2fr 1fr; }
    .sdc-home__shelf .sdc-home__new { order: 1; }
    .sdc-home__shelf .sdc-home__side { order: 2; }
}
.sdc-reviews__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.sdc-home__posts { display: grid; gap: 12px; }
.sdc-home__post {
    display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; align-items: center;
    background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: var(--sdc-radius);
    padding: 10px; text-decoration: none; color: var(--sdc-text);
    transition: transform .15s ease, box-shadow .15s ease;
}
.sdc-home__post:hover { transform: translateY(-2px); box-shadow: var(--sdc-shadow-lift); color: var(--sdc-text); }
.sdc-home__post img { width: 108px; height: 76px; object-fit: cover; border-radius: 6px; }
.sdc-home__post b { display: block; font-family: var(--sdc-serif); font-size: .96rem; line-height: 1.35; }
.sdc-home__post em { font-size: .74rem; color: var(--sdc-muted); font-style: normal; margin-top: 4px; display: block; }

.sdc-rankbox { background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: var(--sdc-radius); padding: 6px 14px; }
.sdc-rank { display: flex; align-items: center; gap: 11px; padding: 10px 0; text-decoration: none; color: var(--sdc-text); border-bottom: 1px dotted var(--sdc-border); }
.sdc-rankbox .sdc-rank:last-of-type { border-bottom: 0; }
.sdc-rank__num { font-family: var(--sdc-serif); font-weight: 800; font-size: 1.25rem; color: var(--sdc-accent); width: 20px; text-align: center; flex: 0 0 auto; }
.sdc-rank__main { flex: 1; min-width: 0; }
.sdc-rank__main b { display: block; font-size: .92rem; margin-bottom: 5px; }
.sdc-rank:hover .sdc-rank__main b { color: var(--sdc-accent); }
.sdc-rank__track { display: block; height: 6px; border-radius: 999px; background: var(--color-bg-alt, #F7F5F0); overflow: hidden; }
.sdc-rank__fill { display: block; height: 100%; border-radius: 999px; background: var(--sdc-primary); }
.sdc-rank__used { font-size: .74rem; color: var(--sdc-muted); flex: 0 0 auto; }
.sdc-home__note { font-size: .74rem; color: var(--sdc-muted); margin: 8px 2px 0; }
.sdc-home__new { margin-bottom: 26px; }

/* ---------- New on the Shelf: store-directory layout (SimplyCode structure,
   Paper & Red skin). Header row + category filter pills + cards with a
   real-clicks bar. Colours are our tokens, not SimplyCode's black/green. ---- */
.sdc-dir__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.sdc-kicker--diamond { border-bottom: 0; padding-bottom: 0; margin-bottom: 6px; }
.sdc-kicker--diamond::before { content: "\25C6"; margin-right: 7px; font-size: .82em; vertical-align: 1px; }
.sdc-dir__title { font-family: var(--sdc-serif); font-size: 2rem; line-height: 1.12; font-weight: 800; margin: 0; color: var(--sdc-text); }
.sdc-dir__links { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.sdc-dir__links a { font-size: .84rem; font-weight: 700; color: var(--sdc-accent); text-decoration: none; }
.sdc-dir__links a:hover { text-decoration: underline; }

.sdc-dir__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.sdc-pill {
    font: inherit; font-size: .82rem; font-weight: 600; line-height: 1.1; cursor: pointer;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--sdc-border); background: transparent; color: var(--sdc-text-2);
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.sdc-pill:hover { border-color: var(--sdc-accent); color: var(--sdc-accent); }
.sdc-pill.is-active { background: var(--sdc-accent); border-color: var(--sdc-accent); color: #fff; font-weight: 800; }
[data-theme="dark"] .sdc-pill.is-active { color: #191713; } /* dark ink on the bright night-red, like other accent pills */

.sdc-storegrid--dir { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 0; }
.sdc-storecard--dir { gap: 10px; padding: 16px; }
.sdc-storecard__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sdc-storecard--dir .sdc-storecard__name { margin: 0; font-size: .98rem; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdc-storecard__stat { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--sdc-text-2); }
.sdc-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--sdc-success); flex: 0 0 auto; }
.sdc-bar { display: block; height: 6px; border-radius: 999px; background: var(--color-bg-alt, #F7F5F0); overflow: hidden; }
.sdc-bar__fill { display: block; height: 100%; border-radius: 999px; background: var(--sdc-accent); }
.sdc-storecard__used { font-size: .72rem; color: var(--sdc-muted); }

@media (max-width: 640px) {
    .sdc-home__hero { padding: 22px 4px 24px; }
    .sdc-home__post { grid-template-columns: 88px minmax(0, 1fr); }
    .sdc-home__post img { width: 88px; height: 64px; }
}
.sdc-home__post-ph { width: 108px; height: 76px; border-radius: 6px; background: var(--sdc-primary-light); color: var(--sdc-muted); display: flex; align-items: center; justify-content: center; font-family: var(--sdc-serif); font-weight: 800; }
.sdc-home__post img { background: #fff; }
.sdc-latest__card img { background: #fff; }

/* ---------- Homepage blog band: feature + 5 side posts + load more ---------- */
.sdc-home__blog { margin: 6px 0 34px; }
.sdc-blogband { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: stretch; }
.sdc-feature {
    display: flex; flex-direction: column;
    background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: var(--sdc-radius);
    overflow: hidden; text-decoration: none; color: var(--sdc-text);
    transition: transform .15s ease, box-shadow .15s ease;
}
.sdc-feature:hover { transform: translateY(-2px); box-shadow: var(--sdc-shadow-lift); color: var(--sdc-text); }
.sdc-feature__media { display: block; background: #fff; border-bottom: 1px solid var(--sdc-border-subtle); }
.sdc-feature__media img { width: 100%; height: 300px; object-fit: contain; display: block; padding: 10px; box-sizing: border-box; }
.sdc-feature__body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.sdc-feature__body > b { font-family: var(--sdc-serif); font-size: 1.45rem; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.sdc-feature:hover .sdc-feature__body > b { color: var(--sdc-accent); }
.sdc-feature__excerpt { font-family: var(--sdc-serif); font-size: .92rem; color: var(--sdc-text-2); line-height: 1.6; }
.sdc-feature__body em { font-size: .76rem; color: var(--sdc-muted); font-style: normal; }
.sdc-blogband__side { display: grid; gap: 10px; align-content: start; }
.sdc-home__more { display: flex; justify-content: center; margin: 18px 0 0; }

@media (max-width: 860px) {
    .sdc-blogband { grid-template-columns: 1fr; }
    .sdc-feature__media img { height: 210px; }
}

/* ---------- Blog listing page (/blog/) ---------- */
.sdc-blogpage { padding-top: 8px; }
.sdc-blogpage__title { font-family: var(--sdc-serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 18px 0 20px; }
.sdc-pager { margin: 30px 0 8px; }
.sdc-pager ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.sdc-pager a, .sdc-pager span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--sdc-border); border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--sdc-text); background: var(--sdc-surface); }
.sdc-pager a:hover { border-color: var(--sdc-accent); color: var(--sdc-accent); }
.sdc-pager .current { background: var(--sdc-accent); border-color: var(--sdc-accent); color: #fff; }
.sdc-pager .dots { border-color: transparent; background: transparent; }

/* ---------- Homepage live stats box (under Most Used) ---------- */
.sdc-livestats { margin-top: 16px; background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: var(--sdc-radius); padding: 14px 16px; }
.sdc-livestats__title { margin: 0 0 12px; font-family: var(--sdc-serif); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sdc-text); }
.sdc-livestats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.sdc-livestats__tile { text-align: center; }
.sdc-livestats__tile b { display: block; font-family: var(--sdc-serif); font-size: 1.5rem; font-weight: 800; color: var(--sdc-accent); line-height: 1.1; }
.sdc-livestats__tile span { font-size: .7rem; color: var(--sdc-muted); text-transform: uppercase; letter-spacing: .04em; }
.sdc-livestats__tile--ok b { color: var(--sdc-success); }

/* ---------- Homepage reader-review ticker (2nd sidebar box) ---------- */
.sdc-reviewtick { margin-top: 16px; background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: var(--sdc-radius); padding: 14px 16px; }
.sdc-reviewtick__vp { overflow: hidden; }
.sdc-rev { display: block; max-height: 82px; padding: 9px 0; text-decoration: none; color: var(--sdc-text); border-top: 1px dotted var(--sdc-border); overflow: hidden; transition: max-height .45s ease, opacity .45s ease, padding .45s ease; }
.sdc-rev:first-child { border-top: 0; }
.sdc-rev.is-entering, .sdc-rev.is-leaving { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
.sdc-rev__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sdc-rev__stars { font-size: 13px; letter-spacing: 1px; white-space: nowrap; flex: 0 0 auto; }
.sdc-rev__stars .on { color: var(--sdc-warn); }
.sdc-rev__stars .off { color: var(--sdc-border); }
.sdc-rev__store { font-size: .76rem; font-weight: 700; color: var(--sdc-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdc-rev__title { display: block; font-family: var(--sdc-serif); font-size: .84rem; line-height: 1.35; color: var(--sdc-text); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdc-rev__who { display: block; font-size: .72rem; color: var(--sdc-muted); margin-top: 2px; }
.sdc-rev:hover .sdc-rev__title { color: var(--sdc-accent); }

/* ===== Cây danh mục (kiểu thụt lề) ===== */
.sdc-cattree {
    max-width: 560px;
    background: var(--sdc-surface);
    border: 1px solid var(--sdc-border);
    border-radius: var(--sdc-radius);
    padding: 18px 22px;
    box-shadow: var(--sdc-shadow);
}
.sdc-cattree__parent {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 14px;
}
.sdc-cattree__parent:first-child { margin-top: 0; }
.sdc-cattree__plink {
    font-family: var(--sdc-serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--sdc-text);
    text-decoration: none;
}
.sdc-cattree__plink:hover { color: var(--sdc-accent); }
.sdc-cattree__arrow { color: var(--sdc-accent); margin-right: 7px; font-size: .7em; }
.sdc-cattree__children { margin: 3px 0 0 12px; }
.sdc-cattree__child {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 4px 0;
    font-family: var(--sdc-serif);
    font-size: .95rem;
}
.sdc-cattree__joint { color: var(--sdc-border); font-family: monospace; }
.sdc-cattree__child a { color: var(--sdc-text); text-decoration: none; }
.sdc-cattree__child a:hover { color: var(--sdc-accent); }
.sdc-cattree__count {
    font-family: inherit;
    font-size: .68rem;
    font-weight: 700;
    color: var(--sdc-success);
    background: var(--sdc-success-light);
    border-radius: 999px;
    padding: 1px 8px;
    line-height: 1.6;
}

/* ==========================================================================
   Home: hover feedback = teal (user choice 07/2026). Base states stay red;
   ONLY :hover switches to teal, scoped to .sdc-home so store/other pages keep
   the red hover. Teal = theme --color-primary (#0D7377 / dark #14B8A6).
   ========================================================================== */
.sdc-home { --sdc-teal: #0D7377; }
[data-theme="dark"] .sdc-home { --sdc-teal: #14B8A6; }

/* text links + card titles/names -> teal on hover */
.sdc-home .sdc-dir__links a:hover,
.sdc-home .sdc-find__list a:hover,
.sdc-home .sdc-feature:hover .sdc-feature__body > b,
.sdc-home .sdc-home__post:hover .sdc-home__post-body b,
.sdc-home .sdc-rank:hover .sdc-rank__main b,
.sdc-home .sdc-storecard:hover .sdc-storecard__name,
.sdc-home .sdc-latest__card:hover span,
.sdc-home .sdc-rev:hover .sdc-rev__title { color: var(--sdc-teal); }

/* category filter pills -> teal outline on hover (active pill stays red) */
.sdc-home .sdc-pill:hover { border-color: var(--sdc-teal); color: var(--sdc-teal); }

/* solid buttons -> teal fill on hover (dark ink on the brighter night teal) */
.sdc-home .sdc-find__go:hover,
.sdc-home .sdc-btn--visit:hover { background: var(--sdc-teal); border-color: var(--sdc-teal); }
[data-theme="dark"] .sdc-home .sdc-find__go:hover,
[data-theme="dark"] .sdc-home .sdc-btn--visit:hover { color: #191713; }

/* ===== RC-refresh (08/07/2026): store page reshaped to RC's new template ===== */

/* hero anchor nav: Coupons / Saving tips / Reviews */
.sdc-hero__anchors { display: flex; gap: 16px; margin-top: 10px; font-size: .85rem; font-weight: 600; }
.sdc-hero__anchors a { color: var(--sdc-accent); text-decoration: none; border-bottom: 1px solid transparent; }
.sdc-hero__anchors a:hover { border-bottom-color: currentColor; }
.sdc-byline__rlink { color: var(--sdc-accent); text-decoration: none; }
.sdc-byline__rlink:hover { text-decoration: underline; }

/* reviews aggregate: big score + real star breakdown (RC keeps this inside Reviews) */
.sdc-revagg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 34px; align-items: center;
  background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: 8px; padding: 16px 20px; margin: 4px 0 14px; }
.sdc-revagg__left { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sdc-revagg__num { font-family: var(--sdc-serif); font-size: 2.9rem; font-weight: 700; line-height: 1; color: var(--sdc-text); letter-spacing: -.02em; }
.sdc-revagg__count { font-size: .82rem; color: var(--sdc-muted); }
.sdc-revagg__bars { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sdc-revagg__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: .78rem; color: var(--sdc-muted); white-space: nowrap; }
.sdc-revagg__row b { text-align: right; color: var(--sdc-text-2); font-weight: 600; }
.sdc-revagg__track { height: 8px; border-radius: 999px; background: var(--color-bg-alt, #F7F5F0); overflow: hidden; }
.sdc-revagg__fill { height: 100%; border-radius: 999px; background: var(--sdc-warn); }
@media (max-width: 640px) { .sdc-revagg { grid-template-columns: 1fr; } }

/* AI review summary, labelled like RC ("Created with AI, based on recent reviews") */
.sdc-aisum { background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: 8px; padding: 14px 18px; margin: 0 0 14px; }
.sdc-aisum__badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--sdc-muted); border: 1px solid var(--sdc-border); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.sdc-aisum p { margin: 0 0 8px; font-size: .92rem; color: var(--sdc-text-2); }
.sdc-aisum p:last-child { margin-bottom: 0; }

/* coupon card "See Details" expander */
.sdc-card__details { margin-top: 6px; font-size: .82rem; }
.sdc-card__details summary { cursor: pointer; color: var(--sdc-accent); font-weight: 600; list-style: none; }
.sdc-card__details summary::-webkit-details-marker { display: none; }
.sdc-card__details summary::after { content: " \25BE"; font-size: .7em; }
.sdc-card__details[open] summary::after { content: " \25B4"; }
.sdc-card__details p { margin: 6px 0 0; color: var(--sdc-muted); }

/* closing CTA, RC's "Ready to save at X?" block */
.sdc-endcta { text-align: center; background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: 8px; padding: 26px 20px; }
.sdc-endcta h2 { margin: 0 0 6px; }
.sdc-endcta p { margin: 0 0 14px; color: var(--sdc-text-2); }

/* coupon cards "view more": collapse everything past the 5th card */
.sdc-cards.is-collapsed > .sdc-card:nth-child(n+6) { display: none; }
.sdc-morebtn { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 16px auto 0; padding: 11px 22px; background: var(--sdc-surface); color: var(--sdc-accent); border: 1px solid var(--sdc-border); border-radius: 999px; font: 600 .95rem/1 var(--sdc-serif); cursor: pointer; transition: background .15s, border-color .15s; }
.sdc-morebtn:hover { background: var(--sdc-primary-light); border-color: var(--sdc-accent); }
.sdc-morebtn__count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sdc-accent); color: #fff; font-size: .8rem; font-family: var(--sdc-serif); }

/* representative brand image under the About prose */
.sdc-about-img { margin: 18px 0 4px; text-align: center; }
.sdc-about-img img { display: inline-block; width: auto; max-width: 100%; height: auto; max-height: 340px; background: #fff; padding: 8px; border-radius: var(--sdc-radius, 10px); border: 1px solid var(--sdc-border); }
.sdc-about-img figcaption { margin-top: 6px; font-size: .8rem; color: var(--sdc-muted); text-align: center; }

/* ---------- Meet the Team (author grid, [ddh_team]) ----------
   Child selectors are 2-class (.ddh-team .ddh-team__x) so they beat the parent
   theme's .page-content a / p (0,1,1) that otherwise underlines/re-spaces the
   card links and text. */
.ddh-team {
    --sdc-serif: "Playfair Display", Georgia, "Times New Roman", serif; /* match site headings */
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 24px 0;
}
.ddh-team .ddh-team__card {
    display: flex; flex-direction: column;
    background: var(--sdc-surface); border: 1px solid var(--sdc-border); border-radius: 14px; padding: 24px;
    box-shadow: 0 1px 2px rgba(26, 29, 33, .04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ddh-team .ddh-team__card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(138, 7, 41, .10); border-color: var(--sdc-accent); }
.ddh-team .ddh-team__head { display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; margin: 0 0 16px; }
.ddh-team .ddh-team__avatar {
    flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, #8A0729, #B5123E); color: #FBF6EC;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--sdc-serif); font-weight: 700; font-size: 1.5rem; line-height: 1;
    box-shadow: 0 4px 12px rgba(138, 7, 41, .22);
}
/* uploaded Custom Avatar variant: photo fills the circle (no gradient tile) */
.ddh-team .ddh-team__avatar--img { background: none; object-fit: cover; box-shadow: 0 4px 12px rgba(26, 29, 33, .14); }
.ddh-team .ddh-team__id { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ddh-team .ddh-team__name { font-family: var(--sdc-serif); font-weight: 700; font-size: 1.15rem; line-height: 1.2; color: var(--sdc-text); }
.ddh-team .ddh-team__role { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sdc-accent); }
.ddh-team .ddh-team__bio { margin: 0 0 16px; font-size: .9rem; line-height: 1.65; color: var(--sdc-text-2); }
.ddh-team .ddh-team__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.ddh-team .ddh-team__tag { font-size: .72rem; font-weight: 600; color: var(--sdc-text-2); background: var(--sdc-primary-light); border-radius: 999px; padding: 4px 11px; }
.ddh-team .ddh-team__link { margin-top: auto; font-size: .86rem; font-weight: 700; color: var(--sdc-accent); text-decoration: none; }
.ddh-team .ddh-team__link:hover { text-decoration: underline; }
.ddh-team .ddh-team__head:hover .ddh-team__name { color: var(--sdc-accent); }

/* Back to top button (store single) */
.sdc-totop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--sdc-border);
    border-radius: 50%;
    background: var(--sdc-surface);
    color: var(--sdc-accent);
    box-shadow: var(--sdc-shadow-lift);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.sdc-totop.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sdc-totop:hover { background: var(--sdc-accent); color: #fff; border-color: var(--sdc-accent); }
.sdc-totop:focus-visible { outline: 2px solid var(--sdc-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sdc-totop { transition: opacity .2s ease; transform: none; } }
@media (max-width: 600px) { .sdc-totop { right: 14px; bottom: 14px; } }
