/*
Theme Name:  Cobaltz Pathways
Theme URI:   https://cobaltzpathways.com/blog
Author:      Teniqs
Author URI:  https://teniqs.com
Description: Custom WordPress theme for Cobaltz Pathways blog — matches the main site design system exactly.
Version:     1.0.0
License:     Private
Text Domain: cobaltz-pathways
*/

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
    --bg-primary:   #FAF9F6;
    --bg-cream:     #F4F1EA;
    --bg-mist:      #EEF3F8;
    --cobalt:       #1E3A8A;
    --cobalt-soft:  #4F7CCB;
    --cobalt-light: #EEF3F8;
    --charcoal:     #1A1A2E;
    --slate:        #5A6478;
    --border:       #E5E2DB;
    --sand:         #E8DCC4;
    --sage:         #A8B89F;
    --white:        #ffffff;
    --font-serif:   'Fraunces', Georgia, serif;
    --font-sans:    'Inter', system-ui, sans-serif;
    --max-w:        1200px;
    --radius:       20px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--charcoal);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.2;
    color: var(--charcoal);
}

a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ── Header ────────────────────────────────────────────────────────────────── */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 40;
    height: 88px;
    transition: all 300ms ease;
    background: transparent;
}
#site-header.scrolled {
    height: 68px;
    backdrop-filter: blur(12px);
    background: rgba(250,249,246,0.88);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.site-logo {
    display: flex;
    align-items: center;
    line-height: 0;
}
#site-header.scrolled .site-logo img {
    height: 60px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-top: 0;
}
.site-logo img {padding-top:15px!important; width: 144px; height: auto; object-fit: contain; vertical-align: top; display: block; }
/* Desktop nav */
.primary-nav {
    display: none;
    align-items: center;
    gap: 32px;
    list-style: none;
}
@media (min-width: 1024px) { .primary-nav { display: flex; } }

.primary-nav a {
    font-size: 15px;
    color: var(--charcoal);
    transition: color 200ms;
    text-decoration: none;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--cobalt); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a svg { width: 14px; height: 14px; margin-top: 2px; transition: transform 200ms; }
.nav-dropdown:hover > a svg { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 50;
    list-style: none;
}
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: 12px;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--charcoal);
    font-size: 14px;
    transition: background 150ms;
    text-decoration: none;
}
.dropdown-menu li a:hover { background: var(--bg-cream); }
.dropdown-menu .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cobalt-soft);
    flex-shrink: 0;
}

/* CTA button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cobalt);
    color: var(--white);
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 250ms cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30,58,138,0.15);
    color: var(--white);
    text-decoration: none;
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--cobalt);
    color: var(--cobalt);
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 250ms ease;
}
.btn-ghost:hover { background: var(--cobalt); color: var(--white); text-decoration: none; }

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px; height: 40px;
    background: none; border: none;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--charcoal);
    transition: all 300ms ease;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile nav overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: var(--bg-cream);
    display: flex;
    flex-direction: column;
    padding: 112px 32px 48px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    overflow-y: auto;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.mobile-nav ul li a {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--charcoal);
    text-decoration: none;
    transition: color 200ms;
}
.mobile-nav ul li a:hover { color: var(--cobalt); }
.mobile-nav .mobile-courses { margin-left: 16px; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav .mobile-courses a { font-family: var(--font-sans); font-size: 1.1rem; }
.mobile-nav .mobile-cta { margin-top: 32px; }
.mobile-nav .mobile-cta .btn-primary { width: 100%; justify-content: center; }

/* ── Blog Hero ─────────────────────────────────────────────────────────────── */
.blog-hero {
    padding-top: 88px;
    background: var(--bg-cream);
    border-bottom: 1px solid var(--border);
}
.blog-hero-inner {
    padding: 56px 0 48px;
}
.blog-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    margin-bottom: 20px;
}
.blog-hero .eyebrow::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--cobalt-soft);
}
.blog-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 16px;
    max-width: 600px;
}
.blog-hero h1 em { font-style: italic; color: var(--cobalt); }
.blog-hero p {
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 560px;
    line-height: 1.7;
}

/* ── Blog Grid ─────────────────────────────────────────────────────────────── */
.blog-main { padding: 64px 0 80px; }

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* Post card */
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 280ms cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--cobalt-soft);
}
.post-card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-mist);
}
.post-card-thumb-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-mist) 0%, var(--sand) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    font-size: 2rem;
}
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.post-card-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--bg-mist);
    color: var(--cobalt);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
    text-decoration: none;
}
.post-card-cat:hover { background: var(--cobalt); color: var(--white); text-decoration: none; }

.post-card-title {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 10px;
    line-height: 1.35;
    flex: 1;
}
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--cobalt); text-decoration: none; }

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.post-card-date {
    font-size: 12px;
    color: var(--slate);
}
.post-card-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--cobalt);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 200ms ease;
}
.post-card-link:hover { gap: 8px; text-decoration: none; }

/* Featured post (first post — full width) */
.post-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
}
@media (max-width: 767px) { .post-card.featured { flex-direction: column; } }
.post-card.featured .post-card-thumb,
.post-card.featured .post-card-thumb-placeholder {
    width: 420px;
    height: 100%;
    min-height: 300px;
    max-height: 380px;
    flex-shrink: 0;
    object-fit: cover;
    
}

@media (max-width: 767px) {
    .post-card.featured .post-card-thumb,
    .post-card.featured .post-card-thumb-placeholder { width: 100%; height: 220px; }
}
.post-card.featured .post-card-title { font-size: 1.5rem; }

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    color: var(--charcoal);
    background: var(--white);
    text-decoration: none;
    transition: all 180ms ease;
}
.blog-pagination a:hover { border-color: var(--cobalt); color: var(--cobalt); text-decoration: none; }
.blog-pagination .current { background: var(--cobalt); color: var(--white); border-color: var(--cobalt); }

/* ── Single Post ───────────────────────────────────────────────────────────── */
.single-hero {
    padding-top: 88px;
    background: var(--bg-cream);
    border-bottom: 1px solid var(--border);
}
.single-hero-inner { padding: 48px 0 40px; max-width: 760px; }

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--slate);
    margin-bottom: 20px;
}
.post-breadcrumb a { color: var(--slate); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--cobalt); }

.single-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--bg-mist);
    color: var(--cobalt);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
    text-decoration: none;
}
.single-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1.15;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--slate);
    flex-wrap: wrap;
}
.post-meta span { display: flex; align-items: center; gap: 6px; }

/* Post content */
.post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 0 80px;
}
@media (min-width: 1024px) {
    .post-layout { grid-template-columns: 1fr 300px; }
}

.post-featured-image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 40px;
    max-height: 480px;
    object-fit: cover;
}

.post-content { max-width: 720px; }
.post-content h2 { font-size: 1.6rem; margin: 36px 0 14px; }
.post-content h3 { font-size: 1.25rem; margin: 28px 0 10px; }
.post-content p { font-size: 1rem; line-height: 1.8; color: var(--charcoal); margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 20px; }
.post-content li { font-size: 1rem; line-height: 1.7; margin-bottom: 8px; color: var(--charcoal); }
.post-content a { color: var(--cobalt); text-decoration: underline; }
.post-content blockquote {
    border-left: 3px solid var(--cobalt);
    margin: 28px 0;
    padding: 16px 20px;
    background: var(--bg-mist);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--slate);
}
.post-content img { border-radius: 12px; margin: 24px 0; }
.post-content code {
    background: var(--bg-cream);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: monospace;
}
.post-content pre {
    background: var(--charcoal);
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

/* Sidebar */
.blog-sidebar { padding-top: 4px; }
.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.sidebar-recent li {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.sidebar-recent li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-recent li a { color: var(--charcoal); text-decoration: none; line-height: 1.4; }
.sidebar-recent li a:hover { color: var(--cobalt); }
.sidebar-recent li span { display: block; font-size: 11px; color: var(--slate); margin-top: 3px; }

.sidebar-cats li {
    list-style: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats li a { color: var(--charcoal); text-decoration: none; }
.sidebar-cats li a:hover { color: var(--cobalt); }

.sidebar-cta {
    background: var(--cobalt);
    border-color: var(--cobalt);
    color: var(--white);
}
.sidebar-cta h3 { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15); }
.sidebar-cta p { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 16px; }
.sidebar-cta .btn-primary { background: var(--white); color: var(--cobalt); width: 100%; justify-content: center; }
.sidebar-cta .btn-primary:hover { background: var(--bg-cream); }

/* Post tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.post-tag {
    font-size: 12px;
    background: var(--bg-cream);
    color: var(--slate);
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 180ms;
}
.post-tag:hover { border-color: var(--cobalt); color: var(--cobalt); text-decoration: none; }

/* Author box */
.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-cream);
    border-radius: 16px;
    padding: 24px;
    margin-top: 40px;
}
.author-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-mist); }
.author-info h4 { font-size: 1rem; margin-bottom: 4px; }
.author-info p { font-size: 13px; color: var(--slate); line-height: 1.6; margin: 0; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
#site-footer {
    background: var(--bg-cream);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }
}
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-brand { grid-column: auto; } }

.footer-brand img { width: 144px; height: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--slate); line-height: 1.65; margin-bottom: 20px; max-width: 240px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    color: var(--slate);
    transition: all 200ms;
    text-decoration: none;
}
.footer-social a:hover { background: var(--cobalt); color: var(--white); }
.footer-social svg { width: 15px; height: 15px; }

.footer-col h4 { font-family: var(--font-serif); font-size: 1rem; font-weight: 400; margin-bottom: 16px; color: var(--charcoal); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--slate); text-decoration: none; transition: color 200ms; }
.footer-col ul li a:hover { color: var(--cobalt); }
.footer-col ul li span { font-size: 13px; color: var(--slate); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (min-width: 1024px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom p { font-size: 12px; color: var(--slate); }
.footer-bottom p a { color: var(--slate); }
.footer-bottom p a:hover { color: var(--cobalt); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { font-size: 12px; color: var(--slate); text-decoration: none; transition: color 200ms; }
.footer-links a:hover { color: var(--cobalt); }

/* ── WhatsApp Float ────────────────────────────────────────────────────────── */
@keyframes soft-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50%       { box-shadow: 0 4px 20px rgba(37,211,102,0.6), 0 0 0 8px rgba(37,211,102,0.1); }
}
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 30;
    height: 56px;
    border-radius: 999px;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    text-decoration: none;
    animation: soft-pulse 3s ease-in-out infinite;
    transition: padding 300ms cubic-bezier(0.22,1,0.36,1);
}
.whatsapp-float svg { width: 24px; height: 24px; flex-shrink: 0; }
.whatsapp-float .wa-label {
    display: inline-block;
    width: 0; overflow: hidden; opacity: 0;
    white-space: nowrap;
    transition: width 300ms cubic-bezier(0.22,1,0.36,1), opacity 200ms ease 80ms;
    font-size: 14px; font-weight: 600;
    font-family: var(--font-sans);
}
.whatsapp-float:hover .wa-label { width: 90px; opacity: 1; }
.whatsapp-float:hover { text-decoration: none; color: white; }

/* ── Cookie Banner ─────────────────────────────────────────────────────────── */
#cookie-banner {
    position: fixed;
    bottom: 1.5rem; left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 9999;
    width: calc(100% - 3rem);
    max-width: 680px;
    background: var(--charcoal);
    color: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
    display: flex; flex-direction: column; gap: 1rem;
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s ease;
    font-size: 0.875rem; line-height: 1.6;
}
#cookie-banner.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.cb-top { display: flex; align-items: flex-start; gap: 1rem; }
.cb-icon { flex-shrink: 0; width: 2.25rem; height: 2.25rem; background: rgba(255,255,255,0.08); border-radius: 0.6rem; display: flex; align-items: center; justify-content: center; }
.cb-icon svg { width: 1.1rem; height: 1.1rem; }
.cb-title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 400; margin: 0 0 0.3rem; }
.cb-desc { color: rgba(255,255,255,0.6); margin: 0; font-size: 0.8125rem; }
.cb-desc a { color: #93b4f5; text-decoration: underline; }
.cb-toggles { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0.875rem 1rem; background: rgba(255,255,255,0.05); border-radius: 0.6rem; border: 1px solid rgba(255,255,255,0.08); }
.cb-toggle-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: rgba(255,255,255,0.75); cursor: pointer; user-select: none; }
.cb-toggle-item input[type="checkbox"] { display: none; }
.cb-switch { width: 2.25rem; height: 1.25rem; background: rgba(255,255,255,0.15); border-radius: 999px; position: relative; transition: background 0.2s; flex-shrink: 0; }
.cb-switch::after { content: ''; position: absolute; width: 0.9rem; height: 0.9rem; background: #fff; border-radius: 50%; top: 0.175rem; left: 0.175rem; transition: transform 0.2s; }
.cb-toggle-item input:checked ~ .cb-switch { background: var(--cobalt); }
.cb-toggle-item input:checked ~ .cb-switch::after { transform: translateX(1rem); }
.cb-toggle-item.disabled { opacity: 0.45; cursor: not-allowed; }
.cb-actions { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.cb-btn { flex: 1; min-width: 120px; padding: 0.6rem 1rem; border-radius: 0.5rem; font-size: 0.8125rem; font-weight: 500; cursor: pointer; border: none; transition: all 0.18s; text-align: center; }
.cb-btn-accept { background: var(--cobalt); color: #fff; border: 1px solid #2D4FA0; }
.cb-btn-accept:hover { background: #2D4FA0; }
.cb-btn-save { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.12); }
.cb-btn-reject { background: transparent; color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.08); }
#cookie-reopen { position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 9998; background: var(--charcoal); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem; padding: 0.45rem 0.75rem; font-size: 0.75rem; cursor: pointer; display: none; align-items: center; gap: 0.4rem; }
#cookie-reopen svg { width: 0.875rem; height: 0.875rem; }

/* ── Reveal animation ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms cubic-bezier(0.22,1,0.36,1), transform 600ms cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
    #cookie-banner { bottom: 0; border-radius: 1rem 1rem 0 0; width: 100%; left: 0; transform: translateY(120%); }
    #cookie-banner.visible { transform: translateY(0); }
    .cb-btn { min-width: 0; }
}
