/* CANDI89PRO visual refinement: no vertical side borders, one stable color system. */
:root {
    --neutral-0: #ffffff;
    --neutral-50: #f7f7f5;
    --neutral-100: #eef0f2;
    --neutral-200: #e1e4e8;
    --neutral-400: #9aa2ad;
    --neutral-600: #626b78;
    --neutral-700: #454d59;
    --neutral-900: #1d222a;
    --primary: #5267d9;
    --primary-hover: #3e50bd;
    --primary-soft: #edf0ff;
    --ink: var(--neutral-900);
    --ink-soft: var(--neutral-600);
    --paper: var(--neutral-50);
    --white: var(--neutral-0);
    --lime: var(--primary-soft);
    --coral: var(--primary);
    --line: var(--neutral-200);
    --radius-sm: 10px;
    --radius-md: 18px;
}

[data-theme="dark"] {
    --ink: #f4f5f7;
    --ink-soft: #b5bcc6;
    --paper: #16191f;
    --white: #20242b;
    --lime: #2e3764;
    --coral: #92a0ff;
    --line: #343a44;
}

body { background: var(--paper); }
.header, .mobile-nav { background: var(--paper); }
.header.scrolled { background: var(--paper); border-color: var(--line); }
.btn-primary, .btn-dark { border: 0; border-radius: var(--radius-sm); transition: transform var(--ease); }
.btn-primary { color: var(--ink); }
.btn-primary:hover, .btn-dark:hover { background: var(--primary-hover); color: #fff; }
.btn-search:hover, .theme-toggle:hover { color: var(--primary-hover); }
.text-link:hover, .article-link:hover, .story-body h3 a:hover, .story-row h3 a:hover { border-color: var(--primary-hover); color: var(--primary-hover); }
.nav a:hover, .nav a.active, .footer-links a:hover { color: var(--primary-hover); }
.theme-toggle { align-items: center; background: transparent; border: 0; color: var(--ink); display: inline-flex; height: 44px; justify-content: center; width: 44px; }
.theme-toggle svg { height: 17px; width: 17px; }
.feature-image, .story-image, .article-hero-img, .related-grid .article-card-img { border-radius: var(--radius-md); }
.feature-caption { border-radius: 0 0 var(--radius-md) var(--radius-md); margin-left: 0; width: 88%; }
.feature-stamp { display: none; }
.section-intro { border-bottom: 0; padding-bottom: 0; }
.about-copy { border-left: 0; padding-left: 0; }
.trend-stat { border-right: 0; padding-left: 0; padding-right: 24px; }
.article-content-body blockquote { background: var(--lime); border-left: 0; border-radius: var(--radius-md); color: var(--ink); padding: 22px 26px; }
.related-grid .article-card { border-top: 0; padding-top: 0; }
.related-grid .article-card-body { background: var(--paper); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.newsletter-form { border-bottom: 0; background: rgb(23 36 58 / 0.08); border-radius: var(--radius-sm); padding: 7px 7px 7px 16px; }
.newsletter-form .btn-dark { border-radius: 7px; }
.footer-top { border-bottom: 0; }
.footer { background: var(--ink); }
.story-row, .faq-item { border-color: var(--line); }
.aos-init { will-change: transform, opacity; }
.faq-icon, .back-to-top, .search-overlay-close { align-items: center; display: inline-flex; justify-content: center; }
.faq-icon svg, .back-to-top svg, .search-overlay-close svg, .article-link svg, .row-arrow svg { height: 18px; width: 18px; }
.search-overlay-close svg { height: 28px; width: 28px; }
.back-to-top svg { height: 17px; width: 17px; }
.search-overlay-close { height: 44px; min-width: 44px; }
.footer-newsletter-btn { min-height: 44px; min-width: 44px; }

[data-theme="dark"] .hero { background: #20242b; }
[data-theme="dark"] .section-paper, [data-theme="dark"] .faq-section, [data-theme="dark"] .article-page { background: var(--paper); }
[data-theme="dark"] .about-section, [data-theme="dark"] .related-section { background: var(--white); }
[data-theme="dark"] .trend-section { background: #303a73; color: #fff; }
[data-theme="dark"] .newsletter-section { background: #e7ebff; color: var(--neutral-900); }
[data-theme="dark"] .newsletter-form { background: rgb(29 34 42 / 0.1); }

@media (max-width: 900px) {
    .trend-stat { padding-right: 0; }
}

@media (max-width: 640px) {
    .text-link, .article-link, .article-card-link { min-height: 44px; }
    .hero-bottom a { align-items: center; display: inline-flex; min-height: 44px; }
    .row-arrow { align-items: center; display: inline-flex; height: 44px; justify-content: center; min-width: 44px; right: -4px; top: 50%; transform: translateY(-50%); }
    .footer-links a { align-items: center; display: inline-flex; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    [data-aos] { opacity: 1 !important; transform: none !important; }
}
