/* Executive — Premium magazine layout with gold accents and DM Serif Display */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-headline: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --color-ink: #0d1117;
    --color-paper: #f8f9fa;
    --color-rule: #dee2e6;
    --color-rule-light: #e9ecef;
    --color-accent: #c9a84c;
    --color-accent-dark: #b8942f;
    --color-muted: #6c757d;
    --color-navy: #0d1b2a;
    --color-navy-light: #1b2838;
    --color-card: #ffffff;
}

body { background: var(--color-paper); color: var(--color-ink); }
a { color: var(--color-ink); }
a:hover { color: var(--color-accent-dark); }

/* Masthead */
.masthead { background: var(--color-navy); border-bottom: 3px solid var(--color-accent); position: relative; overflow: hidden; }
.masthead .container { position: relative; z-index: 1; }
.masthead::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='600' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 Q150 60 300 100 T600 100' fill='none' stroke='%232d8a6e' stroke-width='1'/%3E%3Cpath d='M0 80 Q150 40 300 80 T600 80' fill='none' stroke='%232d8a6e' stroke-width='0.8'/%3E%3Cpath d='M0 120 Q150 80 300 120 T600 120' fill='none' stroke='%232d8a6e' stroke-width='0.8'/%3E%3Cpath d='M0 60 Q150 20 300 60 T600 60' fill='none' stroke='%232d8a6e' stroke-width='0.6'/%3E%3Cpath d='M0 140 Q150 100 300 140 T600 140' fill='none' stroke='%232d8a6e' stroke-width='0.6'/%3E%3Cpath d='M0 40 Q150 5 300 40 T600 40' fill='none' stroke='%232d8a6e' stroke-width='0.4'/%3E%3Cpath d='M0 160 Q150 125 300 160 T600 160' fill='none' stroke='%232d8a6e' stroke-width='0.4'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 600px 200px;
    background-position: center;
    animation: masthead-topo 15s linear infinite;
    pointer-events: none;
}
@keyframes masthead-topo {
    0% { background-position: 0 center; }
    100% { background-position: 600px center; }
}
@media (prefers-reduced-motion: reduce) {
    .masthead::after { animation: none; }
}
.masthead-title a { color: #fff !important; }
.masthead-subtitle { color: var(--color-accent); }
.masthead-date { color: rgba(255,255,255,0.5); }

/* Nav */
.category-nav { background: var(--color-navy-light); }
.category-nav .cat-link { color: rgba(255,255,255,0.7); }
.category-nav .cat-link:hover, .category-nav .cat-link.active { color: #fff; background: rgba(255,255,255,0.1); }

/* Grid category */
.grid-category { color: var(--color-accent-dark); font-size: 0.62rem; font-weight: 700; letter-spacing: 2px; }
.section-label { color: var(--color-accent-dark); }

/* Hero Featured */
.hero-featured {
    background: var(--color-navy) !important;
    border-radius: 12px;
    padding: 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    max-height: 400px;
}

/* Reset any IMA base lead styles that conflict */
.lead-article { border: none; padding: 0; margin: 0; }
.lead-image { display: none; }
.featured-image-container { display: none; }
.hero-featured::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40%; height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(201,168,76,0.08) 100%);
    pointer-events: none;
}
.hero-featured .grid-category { color: var(--color-accent); font-size: 0.68rem; letter-spacing: 2.5px; margin-bottom: 0.75rem; }
.hero-featured .hero-headline { font-family: var(--font-headline); font-weight: 400; font-size: 2.8rem; line-height: 1.15; color: #fff; margin-bottom: 0.75rem; }
.hero-featured .hero-headline a { color: #fff; text-decoration: none; }
.hero-featured .hero-headline a:hover { color: var(--color-accent); }
.hero-featured .hero-summary { font-family: var(--font-body); font-size: 1.15rem; line-height: 1.65; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.hero-featured .hero-meta { font-family: var(--font-sans); font-size: 0.72rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.5px; }

/* Hero with side-by-side image */
.hero-with-image { display: flex; align-items: stretch; gap: 2rem; max-height: none; overflow: visible; }
.hero-image { flex: 0 0 38%; border-radius: 8px; overflow: hidden; }
.hero-image a { display: block; height: 100%; }
.hero-image img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; display: block; }
.hero-with-image .hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }

/* Story Cards */
.story-card {
    background: var(--color-card);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--color-rule);
    height: 100%;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}
.story-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.story-card .card-headline { font-family: var(--font-headline); font-weight: 400; font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.5rem; flex-grow: 1; }
.story-card .card-headline a { text-decoration: none; color: var(--color-ink); }
.story-card .card-headline a:hover { color: var(--color-accent-dark); }
.story-card .card-summary { font-size: 0.85rem; color: var(--color-muted); line-height: 1.55; margin-bottom: 0.75rem; }
.story-card .card-meta { font-family: var(--font-sans); font-size: 0.68rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: auto; }

/* Newsletter Box */
.newsletter-box { background: var(--color-navy); border-radius: 10px; padding: 2rem; color: #fff; }
.newsletter-box h5 { font-family: var(--font-headline); font-weight: 400; font-size: 1.3rem; color: #fff; margin: 0 0 0.5rem; }
.newsletter-box p { font-family: var(--font-body); font-size: 0.85rem; color: rgba(255,255,255,0.6); margin: 0 0 1.25rem; line-height: 1.5; }
.newsletter-box input { padding: 10px 14px; font-family: var(--font-sans); font-size: 0.82rem; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: #fff; border-radius: 6px; }
.newsletter-box input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-box input:focus { outline: none; border-color: var(--color-accent); background: rgba(255,255,255,0.12); }

/* Lead/Sidebar overrides for this theme */
.lead-headline { font-family: var(--font-headline); }
.sidebar-headline { font-family: var(--font-headline); }

/* Article page */
.article-page-headline { font-family: var(--font-headline); font-weight: 400; }
.article-page-summary { color: var(--color-muted); }
.article-content { font-family: var(--font-body); }
.article-content h2, .article-content h3 { font-family: var(--font-headline); }
.article-content blockquote { border-color: var(--color-accent); }

/* Pagination */
.pagination .page-link { background: #fff; border-color: var(--color-rule); color: var(--color-ink); }
.pagination .active .page-link { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-navy); }

/* Footer */
.newspaper-footer { background: var(--color-navy); }

/* Breadcrumb */
.breadcrumb-item a { color: var(--color-accent); }
.breadcrumb-item.active { color: var(--color-muted); }


/* --- Variant Overrides --- */
/* Executive (Emerald) — Rich green accent with dark forest header */

:root {
    --color-accent: #2d8a6e;
    --color-accent-dark: #1f6e55;
    --color-navy: #0e2620;
    --color-navy-light: #1a3830;
}

body { background: #f5f9f7; }

.masthead { background: #0e2620; border-bottom-color: #2d8a6e; }
.masthead-subtitle { color: #2d8a6e; }
.masthead-date { color: #6a9a88; }

.category-nav { background: #1a3830; }
.category-nav .cat-link { color: rgba(255,255,255,0.7); }
.category-nav .cat-link:hover, .category-nav .cat-link.active { color: #fff; background: rgba(45,138,110,0.15); }

.grid-category { color: #2d8a6e; }
.section-label { color: #2d8a6e; }

.hero-featured { background: #0e2620; }
.hero-content .grid-category { color: #2d8a6e; }

.story-card { border-color: #d0e0d8; }
.story-card:hover { border-color: #2d8a6e; box-shadow: 0 4px 12px rgba(45,138,110,0.12); }


.newspaper-footer { background: #0e2620; }

a:hover { color: #2d8a6e; }
.card-headline a:hover, .hero-headline a:hover { color: #2d8a6e; }

.pagination .active .page-link { background: #2d8a6e; border-color: #2d8a6e; }


/* Newsletter Box — Base */
.newsletter-box { background: var(--color-navy); border-radius: 10px; padding: 2rem; color: #fff; }
.newsletter-box h5 { font-family: var(--font-headline); font-weight: 400; font-size: 1.3rem; color: #fff; margin: 0 0 0.5rem; }
.newsletter-box p { font-family: var(--font-body); font-size: 0.85rem; color: rgba(255,255,255,0.6); margin: 0 0 1.25rem; line-height: 1.5; }
.newsletter-box input { padding: 10px 14px; font-family: var(--font-sans); font-size: 0.82rem; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: #fff; border-radius: 6px; }
.newsletter-box input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-box input:focus { outline: none; border-color: var(--color-accent); background: rgba(255,255,255,0.12); }
.newsletter-box button { width: 100%; padding: 11px 24px; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; background: var(--color-accent); color: var(--color-navy); border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.newsletter-box button:hover { background: var(--color-accent-dark); }

/* Newsletter — Glassmorphism Float */
.newsletter-glass-bg {
    background: linear-gradient(135deg, #6c5ce7 0%, #0984e3 50%, #00cec9 100%);
    border-radius: 14px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.newsletter-glass-card {
    background: rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    width: 100%;
    animation: newsletter-float 4s ease-in-out infinite;
}
.newsletter-glass-card h5 { color: #fff; }
.newsletter-glass-card p { color: rgba(255,255,255,0.75); }
.newsletter-glass-card input {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.newsletter-glass-card input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-glass-card input:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}
.newsletter-glass-card button {
    background: #6c5ce7;
    color: #fff;
}
.newsletter-glass-card button:hover {
    background: #5a4bd1;
}
@keyframes newsletter-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
    .newsletter-glass-card { animation: none; }
}
