@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700;800&family=Source+Serif+4:wght@400;600;700;800&display=swap');

:root {
    --accent: #005594;
    --accent-dark: #003f6e;
    --accent-light: #e6f0f8;
    --star: #f59e0b;
    --pro: #047857;
    --con: #b91c1c;
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --text: #111111;
    --text-muted: #6b7280;
    --border: #e5e7eb;
}

body.article-page { font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); }
body.article-page h1, body.article-page h2, body.article-page h3 { font-family: 'Source Serif 4', Georgia, serif; }

.ap-advertorial { background: #fffbeb; color: #92400e; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; padding: 6px 0; border-bottom: 1px solid #fde68a; }

.ap-header { background: #fff; border-bottom: 1px solid var(--border); }
.ap-header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.ap-logo { height: 32px; }
.ap-nav { display: flex; align-items: center; gap: 16px; }
.ap-nav-link { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; text-decoration: none; transition: color 0.2s; }
.ap-nav-link:hover { color: var(--text); }
.ap-btn-register { background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 7px 18px; border-radius: 4px; text-decoration: none; transition: background 0.2s; }
.ap-btn-register:hover { background: var(--accent-dark); }

.ap-category { max-width: 1200px; margin: 0 auto; padding: 20px 16px 0; }
.ap-category span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.ap-category .sep { color: #d1d5db; margin: 0 8px; }

.ap-main { max-width: 1200px; margin: 0 auto; padding: 16px; display: flex; gap: 32px; }
.ap-article { flex: 1; min-width: 0; }
.ap-sidebar { width: 340px; flex-shrink: 0; }
@media (max-width: 1023px) { .ap-sidebar { display: none; } .ap-main { flex-direction: column; } }

.ap-title { font-size: 1.8rem; font-weight: 800; line-height: 1.2; margin: 8px 0 14px; letter-spacing: -0.01em; color: #0a0a0a; }
@media (min-width: 768px) { .ap-title { font-size: 2.35rem; } }

.ap-subtitle { font-size: 1.05rem; color: #374151; line-height: 1.5; margin-bottom: 18px; font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; }

.ap-meta { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-muted); padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 22px; flex-wrap: wrap; }
.ap-meta .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.ap-meta .author-block { display: flex; align-items: center; gap: 8px; }
.ap-meta strong { color: var(--text); font-weight: 600; }

.ap-hero { margin-bottom: 8px; border-radius: 6px; overflow: hidden; }
.ap-hero img { width: 100%; display: block; height: auto; }
.ap-figcaption { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; padding: 8px 2px 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }

.ap-body { font-family: 'Source Serif 4', Georgia, serif; }
.ap-body p { font-size: 1.05rem; line-height: 1.75; color: #1f2937; margin-bottom: 16px; }
.ap-body p.lead { font-size: 1.15rem; font-weight: 600; color: #111827; }
.ap-body h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.ap-body h3 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.ap-body a { color: var(--accent); text-decoration: underline; }
.ap-body a:hover { color: var(--accent-dark); }
.ap-body ul { margin: 10px 0 18px 0; padding-left: 22px; }
.ap-body li { font-size: 1.02rem; line-height: 1.7; color: #1f2937; margin-bottom: 6px; }

.ap-pullquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; margin: 22px 0; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.25rem; line-height: 1.5; color: #111827; font-style: italic; font-weight: 600; }

.ap-inline-img { margin: 22px 0; border-radius: 6px; overflow: hidden; }
.ap-inline-img img { width: 100%; display: block; height: auto; }
.ap-inline-img .caption { font-size: 0.78rem; color: var(--text-muted); padding: 8px 2px 0; line-height: 1.5; font-family: 'Source Sans 3', sans-serif; }

.ap-highlight { background: var(--accent-light); border-left: 4px solid var(--accent); padding: 16px 18px; margin: 22px 0; border-radius: 0 6px 6px 0; font-family: 'Source Sans 3', sans-serif; }
.ap-highlight strong { color: var(--accent-dark); display: block; margin-bottom: 6px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.ap-highlight p { font-size: 0.95rem; margin: 0; color: #111827; line-height: 1.6; font-family: 'Source Sans 3', sans-serif; }

.ap-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.9rem; font-family: 'Source Sans 3', sans-serif; }
.ap-table th { background: var(--accent); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ap-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.ap-table tr:nth-child(even) td { background: var(--bg-alt); }
.ap-table .profit { color: var(--pro); font-weight: 600; }

.ap-specs { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.ap-specs h4 { font-size: 0.85rem; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.ap-specs-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 0.82rem; }
.ap-specs-row:last-child { border-bottom: none; }
.ap-specs-label { color: var(--text-muted); }
.ap-specs-value { font-weight: 600; color: var(--text); }

.ap-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 32px 16px; margin-top: 40px; }
.ap-footer-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.ap-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 20px; }
.ap-footer-nav a { font-size: 0.75rem; color: var(--text-muted); text-decoration: none; }
.ap-footer-nav a:hover { color: var(--text); }
.ap-footer p { font-size: 0.72rem; color: #9ca3af; line-height: 1.6; max-width: 700px; margin: 0 auto 10px; }

.ap-mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -2px 10px rgba(0,0,0,0.06); transform: translateY(100%); transition: transform 0.3s; }
.ap-mobile-bar.visible { transform: translateY(0); }
.ap-mobile-bar-inner { padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.ap-mobile-bar-cta { flex: 1; background: var(--accent); color: #fff; text-align: center; font-weight: 700; font-size: 0.82rem; padding: 10px; border-radius: 4px; text-decoration: none; }

.ap-floating-cta { position: fixed; bottom: 16px; right: 16px; background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 50px; font-weight: 600; font-size: 0.85rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,85,148,0.4); transition: background 0.2s, transform 0.1s; z-index: 30; }
.ap-floating-cta:hover { background: var(--accent-dark); transform: translateY(-2px); }

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

/* Form overrides */
#form { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); margin: 28px 0; }
#form #next-button, #form #create-account-button { background: var(--accent) !important; border-radius: 6px !important; }
#form #next-button:hover, #form #create-account-button:hover { background: var(--accent-dark) !important; }
#form h2, #form h3 { color: var(--text) !important; font-family: 'Source Serif 4', Georgia, serif !important; }
#form .bg-gray-100 { background: var(--accent-light) !important; }
#form .border-gray-300 { border-color: var(--border) !important; }
