@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@700;800&display=swap');

:root {
  /* ---- New design-system palette ---- */
  --primary:#0070F3; --primary-dark:#0051B5; --primary-light:#E8F1FF;
  --accent:#00C48C; --accent-amber:#F59E0B; --danger:#EF4444;
  --slate:#374151; --slate-mid:#6B7280; --slate-light:#9CA3AF;
  --bg:#F9FAFB; --bg-card:#FFFFFF; --bg-tint:#F0F6FF;
  /* ---- Type scale ---- */
  --text-xs:0.72rem; --text-sm:0.85rem; --text-base:0.95rem; --text-lg:1.05rem;
  --text-xl:1.2rem; --text-2xl:1.5rem; --text-3xl:2rem; --text-4xl:2.75rem; --text-5xl:3.5rem;
  /* ---- Legacy variables remapped onto new palette (preserved for inline HTML refs) ---- */
  --navy:#0A1628; --navy-mid:#152238; --teal:#00C48C; --teal-light:#059669;
  --gold:#F59E0B; --gold-light:#FBBF24; --cream:#F9FAFB; --cream-dark:#EEF1F5;
  --white:#FFFFFF; --text-dark:#0A1628; --text-mid:#374151; --text-light:#9CA3AF;
  --border:#E5E7EB;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--navy); line-height: 1.6; }

/* Compliance bar */
.compliance-bar { background: var(--primary-light); color: var(--primary); font-size: 0.72rem; text-align: center; padding: 8px 20px; }
.compliance-bar a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* Navigation */
nav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: none; }
.logo-text { font-family: 'Inter', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.logo-text span { color: var(--primary); font-weight: 800; }

/* Nav links (shared with article.css markup) */
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--slate-mid); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta { background: var(--primary); color: var(--white) !important; padding: 10px 20px; border-radius: 8px; }
.nav-cta:hover { background: var(--primary-dark) !important; }

/* Page hero (primary bg, white Sora h1) */
.page-hero { background: var(--primary); padding: 56px 32px 48px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 40px); }
.page-hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 2; }
.breadcrumb { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.page-hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--white); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1rem; max-width: 580px; }

/* Content sections */
.content-section { max-width: 860px; margin: 0 auto; padding: 48px 32px 64px; }
.content-inner { display: flex; flex-direction: column; gap: 24px; }
.content-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 36px 40px; }
.content-card h2 { font-family: 'Inter', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 28px 0 12px; }
.content-card h2:first-child { margin-top: 0; }
.content-card h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; color: var(--navy); margin: 20px 0 8px; }
.content-card p { font-size: 0.9rem; color: var(--slate); line-height: 1.8; margin-bottom: 12px; }
.content-card ul, .content-card ol { margin: 12px 0 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.content-card li { font-size: 0.9rem; color: var(--slate); line-height: 1.7; }
.content-card a { color: var(--primary); text-decoration: none; }
.content-card a:hover { text-decoration: underline; }
.content-card strong { color: var(--navy); font-weight: 600; }

/* Update note + highlight box */
.update-note { font-size: 0.8rem; color: var(--slate-light); margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.highlight-box { background: var(--bg-tint); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 8px; padding: 18px 20px; margin: 20px 0; }
.highlight-box p { margin-bottom: 0; font-size: 0.88rem; color: var(--slate); }
.highlight-box strong { color: var(--navy); }

/* Hub item (defined inline in hub pages; vars remain defined above) */
.hub-item { background: var(--white); border: 1px solid var(--border); border-radius: 8px; transition: transform 0.2s, box-shadow 0.2s; }
.hub-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

/* Footer (kept dark navy) */
footer { background: var(--navy); color: rgba(255,255,255,0.5); padding: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer strong { color: rgba(255,255,255,0.6); }
.footer-legal { max-width: 700px; line-height: 1.7; color: rgba(255,255,255,0.45); }
.footer-copy { white-space: nowrap; color: rgba(255,255,255,0.35); }
