/* Site stylesheet for leftoverlovers.org (Korean, dark theme).
   Extracted verbatim from the home page's inline <style> block so the internal pages look native.
   Theme palette: bg #0f1419, surface #1a2332, accent #f59e0b. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --clr-bg: #0f1419;
    --clr-surface: #1a2332;
    --clr-surface-alt: #243044;
    --clr-border: #2e3f56;
    --clr-text: #e8edf4;
    --clr-muted: #8fa3bc;
    --clr-accent: #f59e0b;
    --clr-accent-dark: #d97706;
    --clr-accent-glow: rgba(245, 158, 11, 0.15);
    --clr-link: #60a5fa;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
    --font-base: 'Noto Sans KR', system-ui, sans-serif;
    --max-w: 1140px;
    --sidebar-w: 300px;
}

html { scroll-behavior: smooth; }

body#pg-body {
    font-family: var(--font-base);
    background: var(--clr-bg);
    color: var(--clr-text);
    font-size: 1.05rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--clr-link); }

/* ── Top bar ── */
#pg-topbar {
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: 0.75rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
#pg-topbar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
#pg-logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--clr-text);
}
#pg-logo-img { height: 36px; width: auto; }
#pg-logo-text {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}
#pg-top-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    background: var(--clr-accent);
    color: #111;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}
#pg-top-cta:hover {
    background: var(--clr-accent-dark);
    transform: translateY(-1px);
}

/* ── Hero band ── */
#pg-hero {
    background: linear-gradient(160deg, #1a2332 0%, #0f1419 60%, #172554 100%);
    border-bottom: 1px solid var(--clr-border);
    padding: 3rem 1.25rem 2.5rem;
}
#pg-hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
#pg-hero-badge {
    display: inline-block;
    background: var(--clr-accent-glow);
    border: 1px solid var(--clr-accent);
    color: var(--clr-accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
#pg-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    max-width: 780px;
    margin-bottom: 1rem;
}
#pg-hero-lead {
    color: var(--clr-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin-bottom: 1.75rem;
}
#pg-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.pg-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.pg-stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--clr-accent);
}
.pg-stat-lbl {
    font-size: 0.8rem;
    color: var(--clr-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Layout shell ── */
#pg-shell {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: 2rem;
    align-items: start;
}

/* ── Sidebar offer card ── */
#pg-sidebar {
    position: sticky;
    top: 72px;
}
#pg-offer-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}
#pg-offer-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-accent), #fbbf24);
    border-radius: 4px 4px 0 0;
    margin: -1.5rem -1.5rem 1.25rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
#pg-offer-logo {
    display: block;
    height: 48px;
    width: auto;
    margin: 0 auto 1rem;
}
#pg-offer-heading {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
#pg-offer-bonus {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
}
#pg-offer-stars {
    text-align: center;
    color: var(--clr-accent);
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
}
#pg-offer-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem;
    background: var(--clr-accent);
    color: #111;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s;
}
#pg-offer-btn:hover { background: var(--clr-accent-dark); }
#pg-offer-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--clr-muted);
    margin-top: 0.75rem;
}

/* ── TOC ── */
#pg-toc {
    background: var(--clr-surface-alt);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
#pg-toc-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clr-muted);
    margin-bottom: 0.75rem;
}
#pg-toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.5rem;
}
#pg-toc-list a {
    color: var(--clr-text);
    text-decoration: none;
    font-size: 0.92rem;
    display: block;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
#pg-toc-list a:hover {
    color: var(--clr-accent);
    border-bottom-color: var(--clr-accent);
}

/* ── Content sections ── */
#pg-main { min-width: 0; }

.blk-section {
    margin-bottom: 2.75rem;
    padding-bottom: 2.75rem;
    border-bottom: 1px solid var(--clr-border);
}
.blk-section:last-of-type { border-bottom: none; }

.blk-heading {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
    color: var(--clr-text);
    letter-spacing: -0.01em;
}
.blk-subheading {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--clr-accent);
}

.blk-text { margin-bottom: 1rem; color: #c8d4e3; }
.blk-text:last-child { margin-bottom: 0; }

.blk-list {
    list-style: none;
    margin: 0.75rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-left: 0;
}
.blk-list li {
    padding: 0.65rem 1rem;
    background: var(--clr-surface-alt);
    border-left: 3px solid var(--clr-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.97rem;
}
.blk-list strong { color: var(--clr-text); }

/* ── Inline CTA strip ── */
.blk-cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.blk-cta-strip-text { font-weight: 600; font-size: 0.95rem; }
.blk-cta-strip-btn {
    padding: 0.6rem 1.25rem;
    background: var(--clr-accent);
    color: #111;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.blk-cta-strip-btn:hover { background: var(--clr-accent-dark); }

/* ── Banner ── */
.blk-banner {
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--clr-border);
}
.blk-banner a { display: block; line-height: 0; }
.blk-banner img { width: 100%; height: auto; display: block; }

/* ── FAQ accordion ── */
#pg-faq-wrap { margin-top: 0.5rem; }
.faq-item {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.6rem;
    overflow: hidden;
    background: var(--clr-surface);
}
.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--clr-text);
    font-family: var(--font-base);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-q::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--clr-accent);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    display: none;
    padding: 0 1.25rem 1rem;
    color: var(--clr-muted);
    font-size: 0.97rem;
    line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ── Author ── */
#pg-author {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
}
#pg-author-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--clr-border);
}
#pg-author-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
#pg-author-bio {
    font-size: 0.9rem;
    color: var(--clr-muted);
    line-height: 1.65;
}

/* ── Footer ── */
#pg-footer {
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    padding: 2.5rem 1.25rem;
    margin-top: 1rem;
}
#pg-footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}
#pg-footer-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
#pg-footer-badges img { height: 38px; width: auto; opacity: 0.85; }
#pg-footer-copy {
    font-size: 0.85rem;
    color: var(--clr-muted);
    margin-bottom: 0.75rem;
}
#pg-footer-disclaimer {
    font-size: 0.78rem;
    color: #5a6f88;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Mobile sticky bottom CTA ── */
#pg-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
#pg-mobile-cta a {
    display: block;
    text-align: center;
    padding: 0.85rem;
    background: var(--clr-accent);
    color: #111;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

@media (max-width: 900px) {
    #pg-shell {
        grid-template-columns: 1fr;
    }
    #pg-sidebar { position: static; }
    #pg-toc-list { grid-template-columns: 1fr; }
    #pg-mobile-cta { display: block; }
    body#pg-body { padding-bottom: 70px; }
}

@media (max-width: 480px) {
    #pg-hero { padding: 2rem 1rem 1.75rem; }
    #pg-hero-stats { gap: 1rem; }
    #pg-author { flex-direction: column; align-items: center; text-align: center; }
}
