/* ── PatentMeister Article Page Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --navy: #0d1f3c; --navy-mid: #162d52; --gold: #c8973a; --gold-light: #e8b85a;
  --cream: #f7f4ee; --cream-dark: #ede8df; --white: #ffffff;
  --text-dark: #1a1a2e; --text-mid: #3a3a5c; --text-muted: #6b6b88;
  --patent-blue: #1b4f8a; --trademark-teal: #0e6b65; --copyright-burgundy: #7a1f3a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Source Sans 3', sans-serif; background: var(--cream); color: var(--text-dark); font-size: 17px; line-height: 1.7; }

/* NAV */
nav { background: var(--navy); display: flex; align-items: center; justify-content: space-between; padding: 0 5%; position: sticky; top: 0; z-index: 100; height: 68px; border-bottom: 2px solid var(--gold); }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 900; color: white; text-decoration: none; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--gold) !important; color: var(--navy) !important; padding: 8px 20px; border-radius: 4px; font-weight: 600 !important; }

/* ARTICLE HERO */
.article-hero { background: var(--navy); padding: 60px 5% 55px; border-bottom: 2px solid var(--gold); }
.article-hero-inner { max-width: 780px; margin: 0 auto; }
.back-link { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; display: inline-block; margin-bottom: 1.5rem; transition: color 0.2s; }
.back-link:hover { color: var(--gold); }
.article-category { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; margin-bottom: 1.2rem; }
.cat-patent { background: rgba(27,79,138,0.25); color: #7fb2f5; border: 1px solid rgba(27,79,138,0.4); }
.cat-trademark { background: rgba(14,107,101,0.25); color: #6dcec8; border: 1px solid rgba(14,107,101,0.4); }
.cat-copyright { background: rgba(122,31,58,0.25); color: #e8899a; border: 1px solid rgba(122,31,58,0.4); }
.article-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 900; color: white; line-height: 1.18; margin-bottom: 1rem; }
.article-meta { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* LAYOUT */
.article-layout { max-width: 1100px; margin: 0 auto; padding: 60px 5%; display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: start; }

/* ARTICLE BODY */
.article-body { min-width: 0; }
.article-body h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 2.5rem 0 0.8rem; line-height: 1.25; }
.article-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin: 1.8rem 0 0.6rem; }
.article-body p { color: var(--text-mid); margin-bottom: 1.2rem; line-height: 1.8; font-weight: 300; }
.article-body p:first-child { font-size: 1.08rem; color: var(--text-dark); font-weight: 400; }
.article-body ul, .article-body ol { margin: 0.5rem 0 1.2rem 1.5rem; }
.article-body li { color: var(--text-mid); margin-bottom: 0.5rem; line-height: 1.7; font-weight: 300; }
.article-body strong { font-weight: 600; color: var(--text-dark); }
.article-body em { font-style: italic; }
.article-body blockquote { border-left: 4px solid var(--gold); padding: 1rem 1.5rem; margin: 2rem 0; background: var(--cream-dark); border-radius: 0 6px 6px 0; }
.article-body blockquote p { color: var(--text-dark); font-weight: 400; font-size: 1.05rem; margin: 0; }

/* CALLOUT BOX */
.callout { background: var(--navy); border-radius: 6px; padding: 1.5rem 2rem; margin: 2rem 0; }
.callout p { color: rgba(255,255,255,0.85) !important; margin: 0; font-weight: 300 !important; font-size: 0.95rem !important; }
.callout strong { color: white !important; }
.callout-warning { background: #fdecea; border-left: 4px solid var(--copyright-burgundy); border-radius: 0 6px 6px 0; padding: 1.2rem 1.5rem; margin: 2rem 0; }
.callout-warning p { color: #5c1228 !important; margin: 0; }

/* SIDEBAR */
.article-sidebar { position: sticky; top: 88px; }
.sidebar-card { background: var(--navy); border-radius: 8px; padding: 1.8rem; color: white; margin-bottom: 1.5rem; }
.sidebar-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: white; margin-bottom: 0.6rem; line-height: 1.3; }
.sidebar-card p { font-size: 0.87rem; color: rgba(255,255,255,0.65); font-weight: 300; line-height: 1.65; margin-bottom: 1.2rem; }
.sidebar-card a { display: block; background: var(--gold); color: var(--navy); text-align: center; padding: 11px; border-radius: 4px; font-weight: 600; font-size: 0.88rem; text-decoration: none; transition: background 0.2s; }
.sidebar-card a:hover { background: var(--gold-light); }
.sidebar-related { background: white; border: 1px solid #e0ddd7; border-radius: 8px; padding: 1.5rem; }
.sidebar-related h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.related-link { display: block; color: var(--text-mid); text-decoration: none; font-size: 0.88rem; padding: 6px 0; border-bottom: 1px solid #f0ede8; transition: color 0.2s; }
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--navy); }

/* BOTTOM CTA BAR */
.article-cta-bar { background: var(--cream-dark); border-top: 1px solid rgba(200,151,58,0.25); border-bottom: 1px solid rgba(200,151,58,0.25); padding: 40px 5%; }
.article-cta-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.article-cta-inner strong { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); display: block; margin-bottom: 0.3rem; }
.article-cta-inner p { font-size: 0.92rem; color: var(--text-muted); font-weight: 300; margin: 0; }
.btn-gold { background: var(--gold); color: var(--navy); padding: 14px 28px; font-weight: 600; font-size: 0.95rem; border-radius: 4px; text-decoration: none; white-space: nowrap; display: inline-block; transition: background 0.2s; }
.btn-gold:hover { background: var(--gold-light); }

/* FOOTER */
footer { background: var(--text-dark); padding: 60px 5% 30px; color: rgba(255,255,255,0.55); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 2rem; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 900; color: white; margin-bottom: 0.8rem; }
.footer-brand span { color: var(--gold); }
.footer-tagline { font-size: 0.88rem; line-height: 1.65; max-width: 300px; font-weight: 300; }
.footer-col h5 { font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; font-weight: 300; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.8rem; flex-wrap: wrap; gap: 1rem; }
.disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.07); line-height: 1.6; }

@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { position: static; } }
@media (max-width: 640px) { .nav-links li:not(:last-child) { display: none; } .footer-top { grid-template-columns: 1fr; } .article-cta-inner { flex-direction: column; } }
