/* Roast Cards v1.1 — exact mockup layout */
:root {
    --rc-coral: #FF7A59;
    --rc-red: #E8442E;
    --rc-red-dark: #C62F1F;
    --rc-yellow: #FFC53D;
    --rc-cream: #FFF9F0;
    --rc-ink: #2B2118;
    --rc-muted: #8A7A6A;
}

/* ---------- HERO ---------- */
.rc-hero {
    background: linear-gradient(135deg, #F04438 0%, #D92D20 60%, #B42318 100%);
    border-radius: 22px;
    padding: 38px 40px;
    color: #fff;
    margin: 0 0 26px;
    box-shadow: 0 14px 34px rgba(217, 45, 32, .28);
    position: relative;
    overflow: hidden;
}
.rc-hero::after {
    content: "";
    position: absolute; right: -70px; top: -70px;
    width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255,255,255,.10);
}
.rc-hero-pill {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: .72rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 7px 14px; border-radius: 999px;
    margin-bottom: 16px;
}
.rc-hero h1 {
    color: #fff !important;
    font-size: 2.5rem; line-height: 1.15;
    font-weight: 800; margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.rc-hero-highlight {
    display: inline-block;
    background: var(--rc-yellow);
    color: #3A2A00;
    font-weight: 700; font-size: .95rem;
    padding: 10px 16px; border-radius: 10px;
    margin-bottom: 14px; line-height: 1.5;
}
.rc-hero-desc { color: rgba(255,255,255,.92); font-size: 1.02rem; line-height: 1.65; margin: 0 0 18px; max-width: 640px; }
.rc-hero-meta {
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    font-size: .85rem; color: rgba(255,255,255,.85); font-weight: 600;
}
.rc-hero-meta span::before { content: "\2022  "; opacity: .6; }
.rc-hero-meta span:first-child::before { content: ""; }

/* ---------- Suggested pills ---------- */
.rc-suggested { margin: 0 0 8px; font-size: .9rem; color: var(--rc-muted); }
.rc-suggested strong { color: var(--rc-ink); }
.rc-pills-wrap { display: flex; align-items: center; gap: 8px; margin: 10px 0 26px; }
.rc-pills { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding: 4px 2px 10px; flex: 1; min-width: 0; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.rc-pills a {
    all: unset;
    display: inline-block; cursor: pointer; flex: 0 0 auto; white-space: nowrap;
    background: #fff; border: 1.5px solid #F0DFC8;
    padding: 9px 18px; border-radius: 999px;
    font-size: .88rem; font-weight: 700; color: var(--rc-ink);
    transition: border-color .15s ease, transform .15s ease;
}
.rc-pills a:hover { border-color: var(--rc-coral); transform: translateY(-1px); }
.rc-pills-nav {
    all: unset; flex: 0 0 auto; cursor: pointer;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid #F0DFC8; background: #fff;
    color: var(--rc-coral); font-size: 1.25rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.rc-pills-nav:hover { background: var(--rc-coral); color: #fff; border-color: var(--rc-coral); }
@media (max-width: 600px) { .rc-pills-nav { display: none; } }

/* Hide author name site-wide */
.posted-by { display: none !important; }

/* ---------- Layout: main + sidebar ---------- */
.rc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.rc-main { min-width: 0; }
.rc-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }

/* Personalize box (yellow) */
.rc-personalize {
    background: var(--rc-yellow);
    border-radius: 18px; padding: 24px 22px;
    box-shadow: 0 10px 26px rgba(255, 197, 61, .35);
}
.rc-personalize .rc-kicker {
    font-size: .7rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: #6b4e00; margin-bottom: 8px;
}
.rc-personalize h3 { margin: 0 0 8px; font-size: 1.25rem; color: #2b1f00; }
.rc-personalize p { font-size: .9rem; color: #5c4a12; margin: 0 0 14px; line-height: 1.55; }
.rc-personalize .rc-row { display: flex; gap: 8px; }
.rc-personalize input[type=text] {
    all: unset;
    flex: 1; min-width: 0; box-sizing: border-box;
    background: #fff; border-radius: 10px;
    padding: 11px 13px; font-size: .95rem; color: var(--rc-ink);
}
.rc-personalize input[type=text]:focus { box-shadow: 0 0 0 2px #2b1f00; }
.rc-apply {
    all: unset;
    box-sizing: border-box; cursor: pointer;
    background: #2b1f00; color: #fff;
    font-weight: 800; font-size: .9rem;
    padding: 11px 18px; border-radius: 10px; white-space: nowrap;
}
.rc-apply:hover { background: #000; }

/* TOC box */
.rc-toc {
    background: #fff; border: 1.5px solid #F0DFC8;
    border-radius: 16px; padding: 20px;
}
.rc-toc h4 { margin: 0 0 12px; font-size: .95rem; }
.rc-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: rc-toc; }
.rc-toc li { margin: 0 0 9px; font-size: .88rem; line-height: 1.45; }
.rc-toc li:last-child { margin-bottom: 0; }
.rc-toc a { all: unset; cursor: pointer; color: #4a3f33; font-weight: 600; }
.rc-toc a:hover { color: var(--rc-red); }
.rc-toc a::before {
    counter-increment: rc-toc; content: counter(rc-toc) ". ";
    color: var(--rc-coral); font-weight: 800;
}
.rc-toc li.rc-toc-sub { margin-left: 18px; }
.rc-toc li.rc-toc-sub a::before { counter-increment: none; content: "\2013  "; color: #B4A48F; }

/* Descriptive paragraph under each H2 */
.rc-h2-desc { color: #5c5145; font-size: 1rem; line-height: 1.75; margin: 2px 0 18px; }

/* ---------- Headings ---------- */
.rc-main h2 {
    font-size: 1.9rem; font-weight: 800;
    margin: 34px 0 12px; line-height: 1.25;
    scroll-margin-top: 90px;
}
.rc-main h3 { scroll-margin-top: 90px; }
.rc-main h2 .rc-accent { color: var(--rc-red); }

/* ---------- Roast cards (numbered) ---------- */
.rc-card {
    all: unset;
    display: flex; align-items: flex-start; gap: 14px;
    box-sizing: border-box; width: 100%;
    max-width: 600px;
    background: #FFF6E8; border: 1.5px solid #F3E7D3;
    border-radius: 14px; padding: 15px 16px; margin: 12px 0;
    box-shadow: 0 2px 10px rgba(60, 40, 20, .05);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.rc-card:hover { transform: translateY(-2px); border-color: var(--rc-coral); box-shadow: 0 8px 20px rgba(255,122,89,.14); }
.rc-num {
    flex: none; width: 30px;
    color: var(--rc-coral); font-weight: 800; font-size: .95rem;
    padding-top: 2px;
}
.rc-card p { margin: 0; flex: 1; min-width: 0; font-size: 1rem; line-height: 1.6; color: var(--rc-ink); text-align: center; }
.rc-copy {
    all: unset;
    flex: none; box-sizing: border-box;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 9px;
}
.rc-copy svg { width: 19px; height: 19px; stroke: #B4A48F; transition: stroke .15s ease, transform .15s ease; }
.rc-copy:hover svg { stroke: var(--rc-coral); transform: scale(1.12); }

/* ---------- Share modal ---------- */
.rc-modal-backdrop {
    position: fixed; inset: 0; z-index: 99995;
    background: rgba(30, 20, 10, .55);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.rc-modal-backdrop.open { display: flex; }
.rc-modal {
    background: #FFFDF8; border-radius: 22px;
    padding: 30px; max-width: 420px; width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,.25); text-align: center;
}
.rc-modal h3 { margin: 0 0 8px; font-size: 1.35rem; }
.rc-modal p.sub { color: var(--rc-muted); margin: 0 0 16px; font-size: .93rem; }
.rc-bg-options { display: flex; gap: 12px; justify-content: center; margin: 4px 0 20px; }
.rc-bg-opt {
    width: 64px; height: 84px; border-radius: 10px; cursor: pointer;
    border: 3px solid transparent; transition: border-color .15s ease, transform .15s ease;
}
.rc-bg-opt.selected { border-color: var(--rc-red); transform: scale(1.06); }
.rc-bg-opt[data-bg="sunset"] { background: linear-gradient(160deg, #FF7A59, #B24592); }
.rc-bg-opt[data-bg="ocean"] { background: #1D6FE0; }
.rc-bg-opt[data-bg="midnight"] { background: linear-gradient(160deg, #232526, #414345); }
.rc-btn {
    all: unset;
    box-sizing: border-box; display: inline-block; cursor: pointer;
    background: var(--rc-red); color: #fff;
    border-radius: 12px; padding: 13px 30px;
    font-size: 1rem; font-weight: 800;
}
.rc-btn:hover { background: var(--rc-red-dark); }
.rc-btn.ghost { background: #f1e8dc; color: #6b5d4f; margin-left: 8px; }

/* Kill list bullets — cards replace them */
.rc-main ul, .rc-main ol { list-style: none; margin-left: 0 !important; padding-left: 0 !important; }
.rc-main li.rc-done { list-style: none; }
.rc-main li.rc-done::marker { content: none; }

/* ---------- Single posts: wide like homepage, no featured image ---------- */
body.single-post.content-width-narrow .content-container.site-container { max-width: 1280px; }
body.single-post .content-area { margin-top: 1.5rem !important; }
body.single-post .entry-header,
body.single-post .entry-content-wrap { max-width: 1280px !important; }
body.single-post .entry-header { padding-top: 10px !important; }
body.single-post .entry-taxonomies { display: none !important; }
body.single-post figure.post-thumbnail,
body.single-post .post-thumbnail,
body.single-post img.wp-post-image { display: none !important; }

/* ---------- Tables ---------- */
.rc-table-wrap { overflow-x: auto; margin: 22px 0; border-radius: 12px; }
.rc-main table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    border: 1.5px solid #F3E7D3; border-radius: 12px; overflow: hidden;
    font-size: .95rem; background: #fff;
}
.rc-main thead th {
    background: var(--rc-coral); color: #fff;
    padding: 12px 14px; text-align: left; font-weight: 800; white-space: nowrap;
}
.rc-main thead th:first-child { border-top-left-radius: 10px; }
.rc-main thead th:last-child { border-top-right-radius: 10px; }
.rc-main tbody td { padding: 11px 14px; border-top: 1px solid #F3E7D3; line-height: 1.55; }
.rc-main tbody tr:nth-child(even) td { background: #FFF9F0; }
.rc-main tbody tr:hover td { background: #FFF3E2; }

/* ---------- Toast ---------- */
.rc-toast {
    position: fixed; bottom: 90px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #222; color: #fff; padding: 12px 24px;
    border-radius: 999px; font-size: .93rem; z-index: 99999;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    max-width: 90vw; text-align: center;
}
.rc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive hardening: all posts & pages ---------- */
/* Images / embeds can never force the page wider than the screen */
.entry-content img, .rc-main img, .rc-hero img,
.wp-block-image img, figure img, .entry-content iframe,
.entry-content video {
    max-width: 100% !important;
    height: auto !important;
}
/* Long words / URLs wrap instead of overflowing */
.entry-content, .entry-content p, .entry-content li,
.rc-main, .rc-main h2, .rc-main h3,
.rc-hero, .rc-hero h1, .rc-card, .rc-toc {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
/* Flex children must be allowed to shrink inside cards */
.rc-card p { min-width: 0; flex: 1; }
/* Safety net: never allow horizontal page scroll (clip keeps position:sticky working) */
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .rc-layout { display: flex; flex-direction: column; }
    .rc-sidebar { display: contents; }
    .rc-personalize { order: -1; }
    .rc-main { order: 0; }
    .rc-toc { order: 2; margin-top: 26px; }
    .rc-hero { padding: 28px 24px; }
    .rc-hero h1 { font-size: 1.9rem; }
}
@media (max-width: 600px) {
    .rc-hero { padding: 22px 18px; border-radius: 16px; }
    .rc-hero h1 { font-size: 1.45rem; line-height: 1.3; }
    .rc-hero .rc-meta { font-size: .78rem; }
    .rc-main h2 { font-size: 1.45rem; }
    /* Portrait images: cap height on mobile so they don't fill the whole screen */
    .rc-main img, .entry-content img { max-height: 55vh !important; width: auto !important; max-width: 100% !important; margin-left: auto; margin-right: auto; display: block; }
    .rc-card { padding: 13px 14px; gap: 10px; }
    .rc-card p { font-size: .95rem; }
    .rc-personalize { padding: 18px 16px; }
    .rc-pills-wrap { margin: 8px 0 18px; }
    .rc-pills a { padding: 8px 14px; font-size: .82rem; }
}

/* ============ RC Site Footer v1.1.14 ============ */
.site-footer, #colophon { display: none !important; }
.rc-site-footer { background: #2b2119; color: #e8dcc8; margin-top: 48px; font-size: .92rem; line-height: 1.65; }
.rc-footer-inner { max-width: 1280px; margin: 0 auto; padding: 44px 24px 0; }
.rc-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.rc-footer-logo { font-size: 1.25rem; font-weight: 800; color: #f5b841; margin: 0 0 12px; }
.rc-footer-brand p { margin: 0 0 12px; color: #cbbfa8; }
.rc-footer-h { font-size: .95rem; font-weight: 700; color: #f5b841; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .04em; }
.rc-footer-col ul { list-style: none; margin: 0; padding: 0; }
.rc-footer-col li { margin: 0 0 9px; }
.rc-footer-col a { color: #e8dcc8; text-decoration: none; }
.rc-footer-col a:hover { color: #f5b841; text-decoration: underline; }
.rc-footer-bottom { border-top: 1px solid rgba(232,220,200,.16); margin-top: 32px; padding: 18px 0 22px; text-align: center; font-size: .85rem; color: #a99b83; }
.rc-footer-bottom p { margin: 0; }
.rc-footer-tag { color: #cbbfa8; }
@media (max-width: 900px) {
    .rc-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .rc-footer-cols { grid-template-columns: 1fr; gap: 26px; }
    .rc-footer-inner { padding: 36px 20px 0; }
}

/* v1.1.19: Override WP lazy-load placeholder (contain-intrinsic-size:3000px) that distorts images */
img:is([sizes="auto" i], [sizes^="auto," i]) { contain-intrinsic-size: auto 340px !important; }
/* v1.1.20: Full-width cards on desktop (user request) */
@media (min-width: 1024px) {
    .rc-card { max-width: none; }
}
