/* Self-hosted Inter font */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600.woff2') format('woff2');
}

/* PlushPulse Theme — Editorial, warm, fast
   ========================================= */

:root {
    --pp-purple: #7C3AED;
    --pp-purple-light: #EDE9FE;
    --pp-purple-dark: #4C1D95;
    --pp-purple-glow: rgba(124, 58, 237, 0.12);
    --pp-warm: #FEF3C7;
    --pp-warm-dark: #F59E0B;
    --pp-coral: #FB7185;
    --pp-text: #1C1917;
    --pp-text-secondary: #1C1917;  /* Unified — never grey on any background */
    --pp-bg: #FAFAF9;
    --pp-surface: #FFFFFF;
    --pp-border: #E7E5E4;
    --pp-radius: 12px;
    --pp-radius-sm: 8px;
    --pp-max-width: 1200px;
    --pp-content-width: 720px;
    --pp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --pp-font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --pp-transition: 160ms ease;
    --pp-shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px var(--pp-border);
    --pp-shadow-card-hover: 0 12px 32px rgba(124,58,237,0.13), 0 2px 8px rgba(0,0,0,0.08);
}

/* Dark mode disabled — site renders in light mode for all users to guarantee
   consistent contrast. Removed 2026-04-07 after dark mode caused contrast bugs
   on collect pages where hardcoded text colors collided with dark surface. */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--pp-font-body);
    color: var(--pp-text);
    background: var(--pp-bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--pp-purple); text-decoration: none; transition: color var(--pp-transition); }
a:hover { color: var(--pp-purple-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ---- Header ---- */
.pp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--pp-surface);
    border-bottom: 1px solid var(--pp-border);
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.85);
}
/* Header dark mode override removed — site is light-only */

.pp-header__inner {
    max-width: var(--pp-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.pp-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pp-text);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.pp-logo:hover { color: var(--pp-purple); }

.pp-nav { flex: 1; }
.pp-nav ul { list-style: none; display: flex; gap: 1.5rem; }
.pp-nav a {
    color: var(--pp-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--pp-transition);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color var(--pp-transition), border-color var(--pp-transition);
}
.pp-nav a:hover { color: var(--pp-text); border-bottom-color: var(--pp-border); }
.pp-nav a.nav-current,
.pp-nav a[aria-current="page"] {
    color: var(--pp-purple);
    border-bottom-color: var(--pp-purple);
}

/* Language switcher */
.pp-lang-switch { position: relative; }
.pp-lang-switch__toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid var(--pp-border);
    border-radius: 6px;
    background: transparent;
    color: var(--pp-text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.05em;
}
.pp-lang-switch__dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 0.5rem;
    min-width: 140px;
    z-index: 200;
}
.pp-lang-switch__dropdown a {
    display: block;
    padding: 6px 12px;
    font-size: 0.8125rem;
    color: var(--pp-text-secondary);
    border-radius: 6px;
}
.pp-lang-switch__dropdown a:hover {
    background: var(--pp-purple-light);
    color: var(--pp-purple);
}
.pp-lang-switch:hover .pp-lang-switch__dropdown,
.pp-lang-switch:focus-within .pp-lang-switch__dropdown {
    display: block;
}

/* ---- Main ---- */
.pp-main {
    max-width: var(--pp-max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ---- Home / index ---- */
.pp-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}
.pp-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.pp-hero__subtitle {
    font-size: 1.125rem;
    color: var(--pp-text-secondary);
    max-width: 520px;
    margin: 0 auto 1.5rem;
}

/* Breaking news ticker */
.pp-ticker {
    background: var(--pp-purple);
    color: white;
    padding: 0 1.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    height: 40px;
}
.pp-ticker__label,
.pp-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.22);
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}
.pp-ticker__label::before,
.pp-ticker-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FCD34D;
    animation: pp-blink 1.2s ease-in-out infinite;
}
@keyframes pp-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
.pp-ticker-track {
    display: inline-flex;
    gap: 2.5rem;
    animation: pp-scroll 30s linear infinite;
}
.pp-ticker-item {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    flex-shrink: 0;
}
.pp-ticker-item:hover { color: white; text-decoration: underline; }
@keyframes pp-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Post grid */
.pp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pp-card {
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    overflow: hidden;
    box-shadow: var(--pp-shadow-card);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    display: flex;
    flex-direction: column;
}
.pp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pp-shadow-card-hover);
    border-color: rgba(124,58,237,0.25);
}

.pp-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--pp-purple-light);
}
.pp-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}
.pp-card:hover .pp-card__image img {
    transform: scale(1.03);
}

.pp-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pp-card__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pp-purple);
    background: var(--pp-purple-light);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}
.pp-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}
.pp-card__title a { color: var(--pp-text); }
.pp-card__title a:hover { color: var(--pp-purple); }

.pp-card__excerpt {
    font-size: 0.875rem;
    color: var(--pp-text-secondary);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 0.75rem;
}
.pp-card__meta {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--pp-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.pp-card__read-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pp-purple);
    text-decoration: none;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 180ms ease, transform 180ms ease;
}
.pp-card:hover .pp-card__read-cta {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Single post ---- */
.pp-post {
    max-width: var(--pp-content-width);
    margin: 0 auto;
    padding: 2rem 0 4rem;
}
.pp-post__header {
    margin-bottom: 2rem;
}
.pp-post__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pp-purple);
    margin-bottom: 0.75rem;
}
.pp-post__title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.pp-post__meta {
    font-size: 0.875rem;
    color: var(--pp-text-secondary);
}

.pp-post__feature-image {
    margin: 0 -2rem 2rem;
    border-radius: var(--pp-radius);
    overflow: hidden;
}

/* Article body */
.pp-post__content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--pp-text);
}
.pp-post__content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 2.75rem 0 1rem;
    color: var(--pp-text);
    line-height: 1.25;
}
.pp-post__content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2.25rem 0 0.75rem;
    color: var(--pp-text);
    line-height: 1.3;
}
.pp-post__content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.75rem 0 0.5rem;
    color: var(--pp-text);
}
.pp-post__content p {
    margin-bottom: 1.4rem;
}
.pp-post__content p:last-child { margin-bottom: 0; }
.pp-post__content ul, .pp-post__content ol {
    margin: 0 0 1.4rem 1.6rem;
}
.pp-post__content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.pp-post__content blockquote {
    border-left: 4px solid var(--pp-purple);
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin: 2rem 0;
    color: var(--pp-text);
    opacity: 0.85;
    font-style: italic;
    font-size: 1.0625rem;
    line-height: 1.75;
}
.pp-post__content blockquote p { margin-bottom: 0; }
.pp-post__content img {
    border-radius: var(--pp-radius);
    margin: 1.75rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.pp-post__content a {
    color: var(--pp-purple);
    text-decoration: underline;
    text-decoration-color: rgba(124,58,237,0.35);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--pp-transition), color var(--pp-transition);
}
.pp-post__content a:hover {
    color: var(--pp-purple-dark);
    text-decoration-color: var(--pp-purple-dark);
}
.pp-post__content strong { font-weight: 600; color: var(--pp-text); }
.pp-post__content code {
    background: var(--pp-purple-light);
    color: var(--pp-purple-dark);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* TOC for long guides */
.pp-toc {
    background: var(--pp-purple-light);
    border-radius: var(--pp-radius);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
}
.pp-toc__title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pp-purple);
    margin-bottom: 0.75rem;
}
.pp-toc a {
    display: block;
    padding: 4px 0;
    font-size: 0.875rem;
    color: var(--pp-text-secondary);
}
.pp-toc a:hover { color: var(--pp-purple); }

/* ---- Subscribe banner ---- */
.pp-subscribe-banner {
    background: linear-gradient(135deg, var(--pp-purple-dark) 0%, var(--pp-purple) 60%, #9F67F5 100%);
    color: white;
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: var(--pp-radius);
    margin: 3.5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(124,58,237,0.28);
}
/* Decorative warm accent glow */
.pp-subscribe-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(252,211,77,0.12);
    border-radius: 50%;
    pointer-events: none;
}
.pp-subscribe-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 260px;
    height: 260px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.pp-subscribe-banner h3 {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
    position: relative;
}
.pp-subscribe-banner p {
    opacity: 0.88;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
}
.pp-subscribe-banner form {
    position: relative;
}
/* Subscribe form input inside banners */
.pp-subscribe-banner input[type="email"] {
    flex: 1;
    padding: 11px 16px;
    border: 2px solid rgba(255,255,255,0.28);
    border-radius: var(--pp-radius-sm);
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 160ms ease, background 160ms ease;
}
.pp-subscribe-banner input[type="email"]::placeholder { color: rgba(255,255,255,0.55); }
.pp-subscribe-banner input[type="email"]:focus {
    border-color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.18);
}
.pp-subscribe-banner button[type="submit"] {
    padding: 11px 22px;
    background: white;
    color: var(--pp-purple-dark);
    border: none;
    border-radius: var(--pp-radius-sm);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 160ms ease, transform 120ms ease, box-shadow 160ms ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
}
.pp-subscribe-banner button[type="submit"]:hover {
    background: #F5F3FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.pp-subscribe-banner button[type="submit"]:active { transform: translateY(0); }

/* Footer subscribe form */
.pp-subscribe {
    display: flex;
    gap: 8px;
    margin-top: 0.75rem;
}
.pp-subscribe input[type="email"] {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-sm);
    font-size: 0.8125rem;
    background: var(--pp-bg);
    color: var(--pp-text);
    outline: none;
    transition: border-color var(--pp-transition);
}
.pp-subscribe input[type="email"]:focus { border-color: var(--pp-purple); }
.pp-subscribe button {
    padding: 9px 16px;
    background: var(--pp-purple);
    color: white;
    border: none;
    border-radius: var(--pp-radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--pp-transition), transform 120ms ease;
    white-space: nowrap;
}
.pp-subscribe button:hover { background: var(--pp-purple-dark); transform: translateY(-1px); }
.pp-subscribe button:active { transform: translateY(0); }

/* ---- Footer ---- */
.pp-footer {
    border-top: 1px solid var(--pp-border);
    background: var(--pp-surface);
    padding: 3rem 0;
    margin-top: 4rem;
}
.pp-footer__inner {
    max-width: var(--pp-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.pp-footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}
.pp-footer__col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pp-text-secondary);
    margin-bottom: 0.75rem;
}
.pp-footer__col a {
    display: block;
    padding: 3px 0;
    font-size: 0.875rem;
    color: var(--pp-text-secondary);
}
.pp-footer__col a:hover { color: var(--pp-purple); }
.pp-footer__col p {
    font-size: 0.8125rem;
    color: var(--pp-text-secondary);
    line-height: 1.5;
}
.pp-footer__tagline {
    font-style: italic;
    color: var(--pp-text-secondary);
    font-size: 0.875rem;
}
.pp-footer__desc {
    font-size: 0.8125rem;
    color: var(--pp-text-secondary);
    line-height: 1.5;
    margin-top: 0.5rem;
    max-width: 280px;
}
.pp-footer__bottom {
    border-top: 1px solid var(--pp-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--pp-text-secondary);
}

/* ---- Koenig Editor Width Classes ---- */
.kg-width-wide {
    max-width: min(1040px, calc(100vw - 3rem));
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

.kg-width-full img,
.kg-width-full video {
    width: 100%;
}

/* ---- Hero section improvements ---- */
.pp-hero {
    text-align: center;
    padding: 2.5rem 0 1.75rem;
}
.pp-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.pp-hero__subtitle {
    font-size: 1.125rem;
    color: var(--pp-text-secondary);
    max-width: 520px;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
}

/* ---- Section headings ---- */
.pp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--pp-purple-light);
    padding-bottom: 0.6rem;
}
.pp-section-header h2 {
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.pp-section-header a {
    font-size: 0.8125rem;
    color: var(--pp-purple);
    font-weight: 500;
    text-decoration: none;
}
.pp-section-header a:hover { text-decoration: underline; }

/* ---- Featured post improvements ---- */
.pp-featured {
    background: linear-gradient(135deg, var(--pp-purple-light) 0%, var(--pp-purple-light) 100%);
    border-radius: var(--pp-radius);
    padding: 2rem 2rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(124,58,237,0.15);
    position: relative;
    overflow: hidden;
}
.pp-featured::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 120px; height: 120px;
    background: rgba(124,58,237,0.08);
    border-radius: 50%;
    pointer-events: none;
}
.pp-featured__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pp-purple);
    background: white;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(124,58,237,0.15);
}
.pp-featured__badge::before {
    content: '★';
    font-size: 0.625rem;
}
.pp-featured__title {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.pp-featured__title a {
    color: var(--pp-text);
    text-decoration: none;
}
.pp-featured__title a:hover { color: var(--pp-purple); }
.pp-featured__excerpt {
    font-size: 0.9375rem;
    color: var(--pp-text);
    opacity: 0.8;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 580px;
}
.pp-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--pp-purple);
    color: white;
    border-radius: var(--pp-radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background var(--pp-transition), transform 120ms ease, box-shadow 160ms ease;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}
.pp-featured__cta:hover {
    background: var(--pp-purple-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

/* ---- News list items ---- */
.pp-news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--pp-border);
    text-decoration: none;
    color: inherit;
    transition: background var(--pp-transition);
}
.pp-news-item:last-child { border-bottom: none; }
.pp-news-item__meta {
    font-size: 0.6875rem;
    color: var(--pp-text-secondary);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.pp-news-item__tag { color: var(--pp-purple); font-weight: 600; }
.pp-news-item__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pp-text);
    margin-bottom: 0.3rem;
}
.pp-news-item:hover .pp-news-item__title { color: var(--pp-purple); }
.pp-news-item__excerpt {
    font-size: 0.8125rem;
    color: var(--pp-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Guide cards ---- */
.pp-guide-card {
    display: block;
    padding: 1.25rem 1.5rem;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    text-decoration: none;
    box-shadow: var(--pp-shadow-card);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.pp-guide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pp-shadow-card-hover);
    border-color: rgba(124,58,237,0.25);
}
.pp-guide-card__badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pp-purple);
    background: var(--pp-purple-light);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}
.pp-guide-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pp-text);
    line-height: 1.35;
    margin-bottom: 0.4rem;
}
.pp-guide-card:hover .pp-guide-card__title { color: var(--pp-purple); }
.pp-guide-card__meta {
    font-size: 0.75rem;
    color: var(--pp-text-secondary);
}

/* ---- Trend index CTA ---- */
.pp-trend-cta {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--pp-surface);
    border: 2px solid var(--pp-purple);
    border-radius: var(--pp-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pp-trend-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--pp-purple-light) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.5;
}

/* ---- Post feature image ---- */
.pp-post__feature-image {
    margin: 0 -2rem 2rem;
    border-radius: var(--pp-radius);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

/* ---- Post header improvements ---- */
.pp-post__title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.pp-post__meta {
    font-size: 0.875rem;
    color: var(--pp-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ---- Share row ---- */
.pp-share {
    border-top: 1px solid var(--pp-border);
    padding-top: 1.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.pp-share__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pp-text-secondary);
}
.pp-share__link {
    display: inline-block;
    padding: 5px 14px;
    background: var(--pp-bg);
    border: 1px solid var(--pp-border);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pp-text-secondary);
    text-decoration: none;
    transition: background var(--pp-transition), color var(--pp-transition), border-color var(--pp-transition);
}
.pp-share__link:hover {
    background: var(--pp-purple-light);
    color: var(--pp-purple);
    border-color: rgba(124,58,237,0.3);
}

/* ---- Tag pills ---- */
.pp-tag-pill {
    display: inline-block;
    padding: 4px 14px;
    background: var(--pp-purple-light);
    color: var(--pp-purple);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--pp-transition), color var(--pp-transition);
}
.pp-tag-pill:hover {
    background: var(--pp-purple);
    color: white;
}

/* ---- Hamburger button — hidden on desktop ---- */
.pp-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    flex-shrink: 0;
}
.pp-nav-toggle:hover { background: var(--pp-purple-light); }
.pp-nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--pp-text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
    transform-origin: center;
}
/* Animated X when open */
.pp-nav-toggle[aria-expanded="true"] .pp-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.pp-nav-toggle[aria-expanded="true"] .pp-nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.pp-nav-toggle[aria-expanded="true"] .pp-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    html { font-size: 16px; }
    .pp-header__inner { gap: 1rem; height: 56px; }
    .pp-logo__text { font-size: 1rem; }
    .pp-hero__title { font-size: 1.875rem; }
    .pp-hero__subtitle { font-size: 1rem; }
    .pp-grid { grid-template-columns: 1fr; }
    .pp-post__title { font-size: 1.75rem; }
    .pp-post__feature-image { margin: 0 0 1.5rem; }
    .pp-footer__links { grid-template-columns: 1fr; gap: 1.5rem; }
    .pp-footer__bottom { flex-direction: column; gap: 0.5rem; }
    .pp-subscribe-banner { padding: 2.5rem 1.25rem; }
    .pp-subscribe-banner h3 { font-size: 1.375rem; }
    .pp-featured { padding: 1.5rem; }
    .pp-featured__title { font-size: 1.375rem; }
    .pp-ticker { font-size: 0.75rem; padding: 0 1rem; }
    /* Show hamburger, hide horizontal nav */
    .pp-nav-toggle {
        display: flex;
    }
    #pp-nav-menu {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--pp-surface);
        border-bottom: 1px solid var(--pp-border);
        padding: 0.5rem 0;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 200;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        box-sizing: border-box;
    }
    #pp-nav-menu.is-open {
        display: flex;
    }
    /* Ghost outputs nav links directly — style them for vertical mobile menu */
    #pp-nav-menu a {
        display: block;
        padding: 0.875rem 1.5rem;
        border-bottom: 1px solid var(--pp-border);
        font-size: 1rem;
        font-weight: 500;
        color: var(--pp-text);
        text-decoration: none;
        width: 100%;
        box-sizing: border-box;
    }
    #pp-nav-menu a:last-child { border-bottom: none; }
    #pp-nav-menu a:hover { color: var(--pp-purple); background: var(--pp-purple-light); }
    /* position: fixed dropdown does not require relative parent — keep header as sticky */
}

@media (max-width: 480px) {
    .pp-subscribe-banner form { flex-direction: column; }
    .pp-subscribe-banner button[type="submit"] { width: 100%; }
    .pp-grid { gap: 1rem; }
    .pp-card__body { padding: 1rem; }
}

/* ---- Focus & accessibility ---- */
:focus-visible {
    outline: 2px solid var(--pp-purple);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .pp-ticker-track { animation: none; }
}

/* ─── Search button in header ─── */
.pp-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--pp-text);
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.pp-search-btn:hover {
    background: var(--pp-purple-light);
    color: var(--pp-purple);
}

/* ─── Search modal overlay ─── */
.pp-search-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}
.pp-search-modal[hidden] { display: none; }

.pp-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.pp-search-modal__box {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 1rem;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.pp-search-modal__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--pp-border);
    flex-shrink: 0;
}

.pp-search-modal__input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.pp-search-modal__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--pp-text);
    font-family: inherit;
}
.pp-search-modal__input::placeholder { color: var(--pp-text-secondary); }

.pp-search-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--pp-text-secondary);
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.pp-search-modal__close:hover {
    color: var(--pp-text);
    background: var(--pp-border);
}

.pp-search-modal__results {
    overflow-y: auto;
    padding: 0.5rem 0;
    flex: 1;
}

.pp-search-modal__hint {
    text-align: center;
    color: var(--pp-text-secondary);
    font-size: 0.875rem;
    padding: 2rem 1rem;
    margin: 0;
}

/* Individual result items */
.pp-search-result {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--pp-text);
    transition: background 0.1s;
    border-bottom: 1px solid var(--pp-border);
}
.pp-search-result:last-child { border-bottom: none; }
.pp-search-result:hover { background: var(--pp-purple-light); }

.pp-search-result__tag {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pp-purple);
    margin-bottom: 0.2rem;
}

.pp-search-result__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.pp-search-result__excerpt {
    font-size: 0.8125rem;
    color: var(--pp-text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pp-search-no-results {
    text-align: center;
    color: var(--pp-text-secondary);
    font-size: 0.875rem;
    padding: 2rem 1rem;
}

@media (max-width: 480px) {
    .pp-search-modal { padding-top: 0; align-items: flex-end; }
    .pp-search-modal__box { border-radius: 12px 12px 0 0; max-height: 80vh; margin: 0; }
}
