/* CompareHOAManagers — shared stylesheet for static pages */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/static/fonts/fraunces-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/static/fonts/source-sans-3-latin.woff2') format('woff2'); }

:root {
    --navy-950: #0a0f1a; --navy-900: #0f172a; --navy-800: #1e293b; --navy-700: #334155;
    --slate-700: #334155; --slate-600: #475569; --slate-500: #64748b; --slate-400: #94a3b8;
    --slate-300: #cbd5e1; --slate-200: #e2e8f0; --slate-100: #f1f5f9; --slate-50: #f8fafc; --white: #ffffff;
    --gray-600: #4b5563; --gray-500: #6b7280; --gray-100: #f3f4f6;
    --red-700: #b91c1c; --red-600: #dc2626; --red-100: #fee2e2;
    --orange-600: #ea580c; --orange-100: #ffedd5;
    --amber-600: #d97706; --amber-100: #fef3c7;
    --green-700: #15803d; --green-600: #16a34a; --green-100: #dcfce7;
    --blue-700: #1d4ed8; --blue-600: #2563eb; --blue-100: #dbeafe;
    --teal-600: #0d9488;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --space-md: 1rem; --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05); --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
    --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--navy-800); background: var(--slate-50); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.nav-link, .nav-cta, .logo, .btn, .footer-col a, .breadcrumb a, .mobile-nav a { text-decoration: none; }
.nav-link:hover, .footer-col a:hover, .breadcrumb a:hover, .mobile-nav a:hover { text-decoration: underline; }
.nav-cta:hover, .logo:hover, .btn:hover { text-decoration: none; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--slate-200); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--navy-950); }
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; --lm-bg: #1B2A4A; --lm-fg: #FAFAF8; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--slate-600); transition: color 0.15s; }
.nav-link:hover { color: var(--navy-950); text-decoration: none; }
.nav-cta { background: var(--navy-950); color: white; padding: 8px 16px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; transition: background 0.15s; }
.nav-cta:hover { background: var(--navy-800); }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 28px; height: 28px; background: none; border: none; cursor: pointer; padding: 0; }
.burger span { display: block; width: 100%; height: 2px; background: var(--navy-800); border-radius: 2px; transition: all 0.3s; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--slate-200); padding: 16px 24px; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; padding: 12px 0; color: var(--slate-600); font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--slate-100); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--navy-900); }
.mobile-nav a.nav-cta { color: white; background: var(--navy-950); margin-top: 12px; padding: 12px 16px; border-radius: 6px; text-align: center; border-bottom: none; }
.mobile-nav a.nav-cta:hover { background: var(--navy-800); color: white; }

/* Breadcrumb */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: var(--space-md) 24px; font-size: 0.85rem; color: var(--slate-600); }
.breadcrumb a { color: var(--slate-600); }
.breadcrumb a:hover { color: var(--navy-800); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--slate-400); }

/* Main */
.main-content { max-width: 1200px; margin: 0 auto; padding: 0 24px var(--space-2xl); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-950); line-height: 1.3; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; border-radius: 8px; border: none; cursor: pointer; transition: all 0.15s; }
.btn-primary { background: var(--navy-950); color: white; }
.btn-primary:hover { background: var(--navy-800); color: white; }
.btn-secondary { background: var(--white); color: var(--navy-800); border: 1px solid var(--slate-200); }
.btn-secondary:hover { background: var(--slate-50); border-color: var(--slate-300); }

/* Utilities */
.text-muted { color: var(--slate-600); }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 48px 24px 24px; margin-top: var(--space-2xl); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: white; margin-bottom: 12px; }
.footer-brand .logo-mark { --lm-bg: #FAFAF8; --lm-fg: #1B2A4A; }
.footer-about { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,.6); }
.footer-col h4 { font-family: var(--font-body); font-weight: 600; color: white; font-size: 0.9rem; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a:hover { color: white; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: white; }

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; } .burger { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    h1 { font-size: 1.75rem; } h2 { font-size: 1.35rem; }
}
@media (max-width: 480px) {
    .header-inner { padding: 0 16px; } .main-content { padding: 0 16px var(--space-xl); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Cookie Banner */
.cf-cookie-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.4); backdrop-filter: blur(2px); z-index: 9998; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cf-cookie-overlay.active { opacity: 1; visibility: visible; }
.cf-cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--slate-200); box-shadow: 0 -4px 20px rgba(0,0,0,.1); z-index: 9999; transform: translateY(100%); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.cf-cookie-banner.active { transform: translateY(0); }
.cf-cookie-inner { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.cf-cookie-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cf-cookie-title { display: flex; align-items: center; gap: .625rem; margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--navy-950); }
.cf-cookie-icon { width: 24px; height: 24px; flex-shrink: 0; }
.cf-cookie-text { font-size: .9375rem; line-height: 1.6; color: var(--navy-800); margin: 0 0 1.25rem; }
.cf-cookie-text a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.cf-cookie-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cf-btn { padding: .75rem 1.5rem; font-size: .9375rem; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all .2s; border: none; font-family: inherit; }
.cf-btn-accept { background: var(--green-600); color: white; }
.cf-btn-accept:hover { background: var(--green-700); transform: translateY(-1px); }
.cf-btn-reject { background: var(--white); color: var(--navy-800); border: 1.5px solid var(--slate-200); }
.cf-btn-reject:hover { background: var(--slate-50); border-color: var(--slate-300); }
.cf-btn-settings { background: transparent; color: var(--slate-500); padding: .75rem 1rem; text-decoration: underline; text-underline-offset: 2px; }
.cf-btn-settings:hover { color: var(--navy-800); }
.cf-cookie-settings { display: none; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-200); }
.cf-cookie-settings.active { display: block; animation: cfSlideDown .3s ease; }
@keyframes cfSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.cf-settings-title { font-size: 1rem; font-weight: 600; color: var(--navy-950); margin: 0 0 1rem; }
.cf-cookie-category { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem; background: var(--slate-50); border-radius: 8px; margin-bottom: .75rem; }
.cf-cookie-category:last-of-type { margin-bottom: 1.25rem; }
.cf-category-info { flex: 1; }
.cf-category-name { font-weight: 600; color: var(--navy-800); margin: 0 0 .25rem; font-size: .9375rem; }
.cf-category-desc { font-size: .8125rem; color: var(--slate-500); margin: 0; line-height: 1.5; }
.cf-toggle { position: relative; flex-shrink: 0; }
.cf-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cf-toggle-slider { display: block; width: 48px; height: 26px; background: var(--slate-300); border-radius: 13px; cursor: pointer; transition: background .2s; position: relative; }
.cf-toggle-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.cf-toggle input:checked + .cf-toggle-slider { background: var(--green-600); }
.cf-toggle input:checked + .cf-toggle-slider::after { transform: translateX(22px); }
.cf-toggle input:disabled + .cf-toggle-slider { background: var(--green-600); opacity: .6; cursor: not-allowed; }
.cf-required-badge { display: inline-block; font-size: .6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; color: var(--slate-500); background: var(--slate-200); padding: .125rem .5rem; border-radius: 4px; margin-left: .5rem; }
.cf-btn-save { background: var(--navy-950); color: white; }
.cf-btn-save:hover { background: var(--navy-800); transform: translateY(-1px); }
.cf-cookie-settings-btn { position: fixed; bottom: 20px; left: 20px; width: 44px; height: 44px; background: var(--navy-950); border: none; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); z-index: 9990; display: none; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
.cf-cookie-settings-btn:hover { background: var(--navy-800); transform: scale(1.05); }
.cf-cookie-settings-btn svg { width: 22px; height: 22px; color: white; }
.cf-cookie-settings-btn.active { display: flex; }
@media (max-width: 640px) {
    .cf-cookie-inner { padding: 1.25rem; }
    .cf-cookie-actions { flex-direction: column; width: 100%; }
    .cf-btn { width: 100%; text-align: center; }
    .cf-btn-settings { order: 3; }
    .cf-cookie-category { flex-direction: column; gap: .75rem; }
    .cf-toggle { align-self: flex-start; }
}

/* Prose / article content */
.page-hero { background: var(--navy-950); padding: 3rem 24px; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { color: white; }
.page-hero .hero-sub { color: rgba(255,255,255,.7); margin-top: 0.75rem; font-size: 1.1rem; max-width: 640px; }
.page-hero .hero-meta { color: rgba(255,255,255,.5); margin-top: 0.5rem; font-size: 0.875rem; }
.prose { max-width: 720px; }
.prose h2 { margin: 2.25rem 0 0.875rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--slate-200); font-size: 1.4rem; }
.prose h3 { margin: 1.75rem 0 0.625rem; font-size: 1.15rem; }
.prose p { margin-bottom: 1.25rem; color: var(--slate-700); line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.5rem; }
.prose li { margin-bottom: 0.375rem; color: var(--slate-700); line-height: 1.7; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.prose thead th { background: var(--slate-100); padding: 0.625rem 0.875rem; text-align: left; border: 1px solid var(--slate-200); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--slate-600); font-family: var(--font-body); }
.prose td { padding: 0.625rem 0.875rem; border: 1px solid var(--slate-200); vertical-align: top; color: var(--slate-700); }
.prose strong { color: var(--navy-800); }
.prose a { color: var(--blue-600); }
.prose blockquote { border-left: 3px solid var(--slate-300); padding-left: 1.25rem; color: var(--slate-600); margin: 1.5rem 0; font-style: italic; }
.last-updated { font-size: 0.85rem; color: var(--slate-500); margin-top: 0.375rem; }

/* Page layout */
.content-layout { display: grid; grid-template-columns: 1fr 260px; gap: 48px; max-width: 1200px; margin: 2rem auto 0; padding: 0 24px 3rem; }
.content-main { min-width: 0; }
.content-sidebar {}
.sidebar-box { background: white; border: 1px solid var(--slate-200); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-box h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--slate-500); margin-bottom: 0.875rem; font-family: var(--font-body); font-weight: 600; }
.sidebar-box a { display: block; color: var(--slate-700); font-size: 0.9rem; padding: 0.375rem 0; border-bottom: 1px solid var(--slate-100); text-decoration: none; }
.sidebar-box a:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-box a:hover { color: var(--navy-900); text-decoration: none; }
.sidebar-box a.active { color: var(--blue-600); font-weight: 600; }
.stat-highlight { background: var(--navy-950); color: white; border-radius: 12px; padding: 1.5rem; margin-bottom: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat-highlight .stat { text-align: center; }
.stat-highlight .stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: white; line-height: 1; }
.stat-highlight .stat-label { font-size: 0.8rem; color: rgba(255,255,255,.6); margin-top: 0.375rem; }
.guide-card { background: white; border: 1px solid var(--slate-200); border-radius: 12px; padding: 1.5rem; display: block; text-decoration: none; transition: box-shadow 0.15s, border-color 0.15s; }
.guide-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); border-color: var(--slate-300); text-decoration: none; }
.guide-card .guide-tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--teal-600); margin-bottom: 0.5rem; }
.guide-card h3 { font-size: 1.1rem; color: var(--navy-950); margin-bottom: 0.5rem; }
.guide-card p { font-size: 0.9rem; color: var(--slate-600); line-height: 1.6; margin: 0; }
.guide-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 900px) {
    .content-layout { grid-template-columns: 1fr; }
    .content-sidebar { display: none; }
    .stat-highlight { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .stat-highlight { grid-template-columns: 1fr; gap: 1rem; }
    .page-hero { padding: 2rem 16px; }
    .content-layout { padding: 0 16px 2rem; margin-top: 1.5rem; }
}
